/* Hidayah — 메인: 히어로 캐러셀·About */

.hero {
  padding: 0;
}

.hero .carousel {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background-color: var(--background-color);
  position: relative;
}

.hero .carousel-inner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1);
  transform-origin: center center;
}

.hero .carousel-item.active > img {
  animation: heroZoomIn 5s ease-out forwards;
}

.hero .carousel-item {
  min-height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero .carousel-item::before {
  content: "";
  background-color: rgba(6, 6, 6, 0.58);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .carousel-item.hero-slide-dense::before {
  background-color: rgba(7, 31, 68, 0.88);
}

.hero .carousel-container {
  position: absolute;
  inset: 90px 0 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  z-index: 3;
}

.hero .hero-content-wrap {
  width: 100%;
  padding-left: 70px;
  padding-right: 70px;
}

.hero .hero-text-group {
  width: min(100%, 760px);
}

.hero .hero-main-text {
  margin: 0;
  font-family: "Exo 2", "Noto Sans KR", sans-serif;
  font-size: clamp(2.6rem, 5.8vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
  animation: fadeInDown 1s both;
}

.hero .hero-middle-text {
  margin: 8px 0 0;
  font-family: "Exo 2", "Noto Sans KR", sans-serif;
  font-size: clamp(1.2rem, 2.3vw, 2rem);
  line-height: 1.2;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s both 0.2s;
}

.hero .hero-sub-text {
  margin: 26px 0 0;
  max-width: 800px;
  font-size: clamp(1.18rem, 1.85vw, 1.5rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s both 0.35s;
}

@media (min-width: 1024px) {
  .hero .hero-content-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero .hero-text-group {
    width: min(100%, 760px);
  }
}

@media (max-width: 768px) {
  .hero .carousel-container {
    inset: 84px 0 86px 0;
  }

  .hero .hero-content-wrap {
    padding-left: 50px;
    padding-right: 50px;
  }

  .hero .hero-main-text {
    font-size: clamp(1.9rem, 8.2vw, 2.8rem);
  }

  .hero .hero-middle-text {
    margin-top: 6px;
    font-size: clamp(1.02rem, 4.9vw, 1.45rem);
  }

  .hero .hero-sub-text {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 32px;
  border-radius: 4px;
  transition: 0.4s;
  margin: 10px;
  animation: fadeInUp 1s both 0.4s;
}

.hero .btn-get-started:hover {
  filter: brightness(1.08);
  color: var(--contrast-color);
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 10%;
  transition: 0.3s;
  opacity: 0.55;
  z-index: 4;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.95;
}

@media (min-width: 1024px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 5%;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 32px;
  line-height: 1;
  color: #fff;
}

.hero .carousel-indicators {
  z-index: 4;
  margin-bottom: 1.5rem;
}

.hero .carousel-indicators [type="button"] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
}

.hero .carousel-indicators .active {
  background-color: var(--accent-color);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroZoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .carousel-item.active > img {
    animation: none;
  }
}

/* Partners */
.partners.section {
  padding: 120px 0;
  background: var(--background-color);
}

.partners-heading {
  margin-bottom: 42px !important;
}

.partners-title-en {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.02;
  color: #1c2f52;
  text-shadow: none;
}

.partners-title-ko {
  margin: 18px 0 0;
  font-size: clamp(1.0rem, 2.1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2f3f57;
  text-shadow: none;
}

.partners-title-ko span {
  color: #e5891f;
}

.partners-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partners-marquee + .partners-marquee {
  margin-top: 18px;
}

.partners-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-width: max-content;
}

.partners-track-left {
  animation: partnersMarqueeLeft 34s linear infinite;
}

.partners-track-right {
  animation: partnersMarqueeRight 34s linear infinite;
}

.partner-logo-item {
  width: 220px;
  min-width: 220px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--background-color), #fff 22%);
}

.partner-logo-item img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes partnersMarqueeLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes partnersMarqueeRight {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 991px) {
  .partner-logo-item {
    width: 180px;
    min-width: 180px;
    height: 84px;
  }

  .partners-track-left,
  .partners-track-right {
    animation-duration: 28s;
  }
}

@media (max-width: 575px) {
  .partners-title-ko {
    margin-top: 12px;
    font-size: 1rem;
  }

  .partner-logo-item {
    width: 150px;
    min-width: 150px;
    height: 74px;
    margin: 0 8px;
    padding: 10px;
  }

  .partner-logo-item img {
    max-height: 48px;
  }
}
