@import url("root-styles.css");

* {
  box-sizing: border-box;
}

body {
  font-family: var(--main-font);
  color: #222;
  overflow-x: hidden;
  margin: 0;
}

/* ── HERO ── */
#hero {
  background: url("../IMG/parallax-banner-large.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 5rem 0 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: clamp(320px, 80vw, 1200px);
  width: 100%;
}
.hero-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey-accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: #1a1a2e;
  margin-bottom: 1.2rem;
}
.hero-sub {
  max-width: clamp(320px, 80vw, 700px);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: var(--grey);
  opacity: 0.7;
  margin: 0 auto 2rem;
}
.btn-collaborate {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 1.2rem 2.4rem;
  letter-spacing: 0.1em;
  border-radius: 5px;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}
.btn-collaborate:hover {
  background: var(--grey);
}
.hero-img-wrap {
  position: relative;
  z-index: 10;
  margin-top: 2.5rem;
  overflow: hidden;
  max-width: clamp(320px, 80vw, 1000px);
  width: 100%;
}
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.hero-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-carousel-img.active {
  opacity: 1;
}
.hero-img-caption {
  position: absolute;
  bottom: 2rem;
  letter-spacing: 2px;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: 50%;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 2rem;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.5s ease;
}
.hero-img-caption.fade-out {
  opacity: 0;
}

/* ── OUR COMMITMENT ── */
.commitment-wrap {
  margin-top: 2rem;
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: end;
  background-color: var(--white);
}
.commitment-text {
  padding: clamp(2.5rem, 5vw, 6rem) clamp(2.5rem, 5vw, 6rem) clamp(2rem, 4vw, 4rem);
  width: clamp(320px, 70vw, 1400px);
  margin: 0 auto;
  background-color: var(--white);
  text-align: center;
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  z-index: 3;
}
.commitment-text h2 {
  font-family: var(--main-font);
  font-weight: 700;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin-bottom: 1.2rem;
}
.commitment-text p {
  font-style: italic;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #555;
  line-height: 1.8;
}

/* ── THE ADVANTAGE ── */
#advantage {
  background: var(--navy);
  padding: 5rem 0;
  color: #fff;
}

#advantage .container {
  width: clamp(620px, 60vw, 1200px);
}

.advantage-label {
  color: var(--grey-accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

#advantage h2 {
  font-family: var(--main-font);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 0.8rem;
  color: var(--white);
  line-height: 1.1;
}

#advantage p.lead-text {
  color: var(--white);
  opacity: 0.8;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  line-height: 1.7;
  font-weight: 300;
}

.advantage-item {
  background: var(--white);
  border-radius: 0.8rem;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--navy);
}

.advantage-item:nth-child(2 of .advantage-item) {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--white);
}

.advantage-dot {
  width: 16px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: var(--dark-bg);
  flex-shrink: 0;
}

.advantage-dot.second-dot {
  background-color: var(--white);
}

.btn-readmore-gold {
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: none;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.btn-readmore-gold:hover {
  background: var(--dark-bg);
  color: var(--white);
}

.advantage-img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  aspect-ratio: 9/16;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── CURRICULUM ── */
#curriculum {
  background: var(--light-bg);
  padding: 5rem 0;
  text-align: center;
}
.curriculum-label {
  color: var(--grey-accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
#curriculum h2 {
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
}
.curriculum-card {
  background: #fff;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  aspect-ratio: 16/9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.curriculum-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.curriculum-card i {
  font-size: 5rem;
  color: var(--navy);
  margin-bottom: 1.2rem;
  display: block;
}
.curriculum-card h5 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.curriculum-card p {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
  line-height: 1.7;
}
.btn-readmore-navy {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  border-radius: 6px;
  padding: 0.75rem 2rem;
  border: none;
  text-decoration: none;
  display: inline-block;
  margin-top: 2.5rem;
  transition: all 0.3s ease;
}
.btn-readmore-navy:hover {
  background: var(--accent);
  color: var(--navy);
}

/* ── NEWS ── */
#news {
  background: var(--navy);
  padding: 5rem 0;
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.news-label {
  color: var(--grey-accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
#news h2 {
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
}
.news-card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}
.news-card {
  background: var(--footer-text);
  border-radius: 1rem;
  overflow: hidden;
  color: #333;
  text-align: left;
  height: 100%;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.news-card-link:hover .news-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(29, 70, 110, 0.25);
}
.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.news-card-body {
  padding: 1.2rem 1.4rem;
}
.news-date {
  color: var(--accent);
  font-size: 0.82rem;
  font-style: italic;
  margin-bottom: 0.4rem;
}
.news-card-body h6 {
  color: var(--white);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}
.btn-readmore-gold-outline {
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: none;
  text-decoration: none;
  display: inline-block;
  margin-top: 2.5rem;
  transition: all 0.3s ease;
}
.btn-readmore-gold-outline:hover {
  background: var(--dark-bg);
  color: var(--white);
}
.news-empty {
  color: #999;
  font-size: 1rem;
  padding: 2rem 0;
  line-height: 1.6;
}

/* ── NEWS SLIDER ── */
.news-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.news-slider {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  min-width: 0;
}
.news-slider::-webkit-scrollbar {
  display: none;
}
.news-slider.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.news-slide {
  flex: 0 0 calc(50% - 0.75rem);
  scroll-snap-align: none;
  min-width: 0;
}
.news-slide:nth-child(odd) {
  scroll-snap-align: start;
}
.news-nav {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  padding: 0;
}
.news-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
}
.news-nav:disabled {
  opacity: 0.3;
  cursor: default;
}
.news-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.news-dot.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* ── ABOUT US ── */
#about {
  background: var(--white);
  padding: 5rem 0;
}
.about-label {
  color: var(--grey-accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
#about h2 {
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.about-body {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.about-img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(29, 70, 110, 0.18);
  display: block;
  margin: 0 auto;
}
.about-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 0;
  background: var(--accent);
  border-radius: 12px;
  padding: 0.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(252, 185, 0, 0.4);
  min-width: 90px;
}
.about-badge-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.about-badge-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── SCHOLARSHIP ── */
#scholarship {
  background: var(--dark-bg);
  padding: 5rem 0;
  color: var(--white);
}
.scholarship-label {
  color: var(--grey-accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
#scholarship h2 {
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1.4rem;
  line-height: 1.1;
}
.scholarship-body {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.scholarship-highlight-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.scholarship-highlight-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.scholarship-highlight-item i {
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.scholarship-highlight-item h6 {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}
.scholarship-highlight-item p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

/* ── OUR PARTNERS ── */
#partners {
  background: var(--light-bg);
  padding: 5rem 0;
  text-align: center;
}
.partners-label {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
#partners h2 {
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}
.partners-sub {
  font-size: 0.95rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.partners-category {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  text-align: left;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.partner-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.1rem 0.8rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy);
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
  line-height: 1.4;
}
.partner-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 18px rgba(29, 70, 110, 0.14);
  transform: translateY(-2px);
}
.partner-tech-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(29, 70, 110, 0.1);
  border: 2px solid var(--navy);
}
.partner-tech-icon {
  font-size: 2.8rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
  display: block;
}
.partner-tech-card h6 {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.partner-tech-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ── SCROLL TO TOP ── */
#scrollTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    opacity 0.3s ease;
  opacity: 0;
}
#scrollTop.show {
  display: flex;
  opacity: 1;
}
#scrollTop:hover {
  background: var(--grey);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE – TABLET (max 991px)
   ============================================= */
@media (max-width: 991.98px) {
  /* Hero */
  #hero {
    padding: 4rem 0 0;
  }
  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }
  .btn-collaborate {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  .hero-img-caption {
    font-size: 0.85rem;
    padding: 0.75rem 1.2rem;
    max-width: 65%;
    letter-spacing: 1px;
  }

  /* Commitment */
  .commitment-wrap {
    height: auto;
    margin-top: 0;
  }
  .commitment-text {
    padding: 3rem 2.5rem 3rem;
    width: 100%;
    border-radius: 1.5rem 1.5rem 0 0;
  }
  .commitment-text h2 {
    font-size: 2.2rem;
  }

  /* Advantage */
  #advantage .container {
    width: 100%;
    padding: 0 1.5rem;
  }
  .advantage-img {
    aspect-ratio: 4/3;
    max-width: 100%;
    margin-top: 2rem;
  }

  /* Curriculum card — relax aspect ratio on tablet */
  .curriculum-card {
    aspect-ratio: auto;
    padding: 2rem 1.5rem;
  }
  .curriculum-card i {
    font-size: 3.5rem;
  }

  /* About */
  #about {
    padding: 4rem 0;
  }
  #about h2 {
    font-size: 2.2rem;
  }
  .about-img {
    max-width: 100%;
    aspect-ratio: 16/9;
    margin-top: 2rem;
  }
  .about-badge {
    right: 0.5rem;
    bottom: 1rem;
  }

  /* Scholarship */
  #scholarship {
    padding: 4rem 0;
  }
  #scholarship h2 {
    font-size: 2.2rem;
  }
  .scholarship-highlight-box {
    margin-top: 2rem;
  }

  /* Partners */
  #partners {
    padding: 4rem 0;
  }
  #partners h2 {
    font-size: 2.2rem;
  }
  .partners-category {
    display: block;
    text-align: center;
  }
}

/* =============================================
   RESPONSIVE – MOBILE (max 575px)
   ============================================= */
@media (max-width: 575.98px) {
  /* Hero */
  #hero {
    padding: 3rem 0rem 0;
  }
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.15;
  }
  .hero-sub {
    font-size: 0.82rem;
  }
  .btn-collaborate {
    padding: 0.85rem 1.6rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
  .hero-img-wrap {
    max-width: 100%;
  }
  .hero-img-wrap img {
    aspect-ratio: 4/3;
  }
  /* Hide caption on very small screens to avoid clutter */
  .hero-img-caption {
    display: none;
  }

  /* Commitment */
  .commitment-wrap {
    height: auto;
    padding-top: 0;
  }
  .commitment-text {
    padding: 2rem 1.2rem 2rem;
    border-radius: 1rem 1rem 0 0;
  }
  .commitment-text h2 {
    font-size: 1.7rem;
  }
  .commitment-text p {
    font-size: 0.9rem;
  }

  /* Advantage */
  #advantage {
    padding: 3rem 0;
  }
  #advantage .container {
    width: 100%;
    padding: 0 2rem;
  }
  #advantage h2 {
    font-size: 2rem;
  }
  .advantage-item {
    font-size: 0.82rem;
    padding: 0.85rem 1rem;
  }
  .advantage-img {
    aspect-ratio: 3/2;
    border-radius: 10px;
    margin-top: 2rem;
  }
  .btn-readmore-gold {
    width: 100%;
    text-align: center;
    margin-top: 0;
    border-radius: 10px
  }

  /* Curriculum */
  #curriculum {
    padding: 3rem 0;
  }
  #curriculum h2 {
    font-size: 2rem;
  }
  #curriculum .container {
    padding: 0 2rem;
  }
  .curriculum-card {
    aspect-ratio: auto;
    padding: 1.8rem 1rem;
  }
  .curriculum-card i {
    font-size: 3rem;
    margin-bottom: 0.8rem;
  }
  .curriculum-card h5 {
    font-size: 1rem;
  }
  .btn-readmore-navy {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
  }

  /* News */
  #news {
    padding: 3rem 0;
  }
  #news h2 {
    font-size: 2rem;
  }
  .news-slider .news-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
  .news-nav {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
  .news-btn-div {
    padding: 0 1rem;
  }
  .btn-readmore-gold-outline {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  /* About */
  #about {
    padding: 3rem 0;
  }
  #about h2 {
    font-size: 2rem;
  }
  .about-img {
    border-radius: 10px;
    aspect-ratio: 16/9;
  }
  .about-badge {
    right: 0;
    bottom: 0.5rem;
    padding: 0.5rem 0.9rem;
  }
  .about-badge-num {
    font-size: 1.6rem;
  }
  .btn-readmore-navy {
    width: 100%;
    text-align: center;
  }

  /* Scholarship */
  #scholarship {
    padding: 3rem 0;
  }
  #scholarship h2 {
    font-size: 2rem;
  }
  .scholarship-highlight-box {
    margin-top: 2rem;
  }

  /* Partners */
  #partners {
    padding: 3rem 0;
  }
  #partners h2 {
    font-size: 2rem;
  }
  .partners-category {
    display: block;
    text-align: center;
  }
  .partner-card {
    font-size: 0.75rem;
    padding: 0.9rem 0.5rem;
  }

  /* Scroll to top — keep away from bottom edge on mobile */
  #scrollTop {
    bottom: 1.2rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
