/* Base Variables & Typography */
:root {
  --gold: #d4af37;
  --paper: #f4f4f9;
  --dark: #1a202c;
  --blue: #2c3e50;
  --light: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--dark);
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Utility Bar */
.utility-bar { background: var(--blue); color: var(--light); font-size: 14px; padding: 8px 0; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; }
.lang-btn { background: none; border: 1px solid var(--light); color: var(--light); padding: 2px 8px; cursor: pointer; border-radius: 3px; font-size: 12px; margin-left: 5px;}
.lang-btn.is-active { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* Header & Nav */
.site-header { background: var(--light); box-shadow: 0 2px 5px rgba(0,0,0,0.05); padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--dark); gap: 15px; }
.brand-text strong { display: block; font-size: 1.4rem; font-family: 'Fraunces', serif; }
.brand-text small { color: #666; font-size: 0.8rem; }
.main-nav { display: flex; gap: 20px; align-items: center; }
.main-nav a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 15px; transition: 0.3s; }
.main-nav a:hover { color: var(--gold); }
.login-btn { background: var(--blue); color: var(--light) !important; padding: 10px 20px; border-radius: 5px; }
.login-btn:hover { background: var(--gold); color: var(--dark) !important;}

/* Hero Carousel */
.hero { position: relative; height: 75vh; min-height: 500px; display: flex; align-items: center; overflow: hidden;}
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 1; }
.carousel-slide.active { opacity: 1; z-index: 2; }
.slide-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.hero-inner { position: relative; z-index: 3; color: var(--light); max-width: 800px; padding-top: 50px; }
.eyebrow { font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; color: var(--gold); letter-spacing: 1px; font-size: 0.9rem; }
.hero-inner h1 { font-family: 'Fraunces', serif; font-size: 3.5rem; margin: 10px 0; line-height: 1.1; }
.hero-lede { font-size: 1.2rem; line-height: 1.6; margin-bottom: 30px; color: #ccc; }
.btn-gold { background: var(--gold); color: var(--dark); padding: 15px 30px; text-decoration: none; font-weight: bold; border-radius: 4px; display: inline-block; transition: 0.3s;}
.btn-gold:hover { background: #fff; }

/* Carousel Dots */
.carousel-indicators { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; }
.dot.active { background: var(--gold); }

/* Sections */
.section { padding: 80px 0; }
.director-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; }
.director-copy h2 { font-family: 'Fraunces', serif; font-size: 2.5rem; color: var(--blue); margin-top: 5px; }
.director-copy blockquote { font-size: 1.2rem; line-height: 1.8; border-left: 4px solid var(--gold); padding-left: 20px; margin-left: 0; font-style: italic; color: #444;}
.signature-title { color: #666; margin-top: -10px; font-size: 0.9rem;}

/* Grades/Exams Grid */
.division-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; margin-top: 30px; }
.division-card { background: var(--paper); padding: 25px 15px; border-radius: 8px; text-align: center; border-bottom: 4px solid var(--blue); transition: 0.3s; cursor: pointer; color: var(--blue); font-weight: bold; font-size: 1.1rem; }
.division-card:hover { transform: translateY(-5px); border-bottom-color: var(--gold); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* News Ticker */
.ticker { background: var(--dark); color: var(--light); display: flex; align-items: center; overflow: hidden; }
.ticker-label { background: var(--gold); color: var(--dark); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; padding: 10px 20px; white-space: nowrap; flex-shrink: 0; }
.ticker-track { display: flex; align-items: center; white-space: nowrap; padding: 10px 20px; animation: ticker-scroll 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-size: 0.9rem; }
.ticker-sep { color: var(--gold); margin: 0 14px; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Daily News & Circulars */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.section-head h2 { font-family: 'Fraunces', serif; font-size: 2.2rem; color: var(--blue); margin: 5px 0 0 0; }
.filter-group { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip { background: var(--light); border: 1px solid #ddd; color: var(--blue); padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.filter-chip:hover { border-color: var(--blue); }
.filter-chip.is-active { background: var(--blue); color: var(--light); border-color: var(--blue); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.news-card { background: var(--light); border-radius: 8px; padding: 25px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-top: 4px solid var(--gold); transition: 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.news-tag { display: inline-block; background: var(--paper); color: var(--blue); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.news-card h3 { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--dark); margin: 0 0 10px 0; }
.news-excerpt { color: #555; font-size: 0.9rem; line-height: 1.6; margin-bottom: 15px; }
.news-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #888; }
.news-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.news-link:hover { color: var(--gold); }
.no-news { text-align: center; color: #777; font-style: italic; padding: 40px 0; grid-column: 1 / -1; }

/* Courses */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.course-card { background: var(--light); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: 0.3s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.course-banner-wrap { width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--blue), var(--dark)); overflow: hidden; position: relative; }
.course-banner-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-banner-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 2rem; }
.course-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.course-tag { display: inline-block; align-self: flex-start; background: var(--paper); color: var(--blue); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.course-card h3 { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--dark); margin: 0 0 10px 0; }
.course-desc { color: #555; font-size: 0.9rem; line-height: 1.6; margin: 0; }
.no-courses { text-align: center; color: #777; font-style: italic; padding: 40px 0; grid-column: 1 / -1; }

/* Partner Divisions */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.partner-card { background: var(--light); border-radius: 8px; padding: 35px 30px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-bottom: 4px solid var(--blue); transition: 0.3s; }
.partner-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.partner-icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--blue); }
.partner-card h3 { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--dark); margin: 0 0 12px 0; }
.partner-card p { color: #555; font-size: 0.92rem; line-height: 1.7; margin: 0 0 20px 0; }
.partner-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; text-decoration: none; font-size: 0.9rem; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.partner-link:hover { color: var(--gold); }
.partner-logo-wrap { width: 90px; height: 90px; margin: 0 auto 20px; }
.partner-logo { width: 90px; height: 90px; border-radius: 50%; object-fit: contain; background: var(--paper); padding: 10px; box-sizing: border-box; display: block; }
.partner-logo-fallback { width: 90px; height: 90px; border-radius: 50%; background: var(--paper); align-items: center; justify-content: center; font-size: 1.8rem; color: var(--blue); }

/* Testimonials */
.testimonial-carousel-wrap { max-width: 720px; margin: 0 auto; }
.testimonial-track { position: relative; min-height: 320px; }
.testimonial-slide { display: none; text-align: center; }
.testimonial-slide.active { display: block; animation: testimonial-fade 0.5s ease; }
@keyframes testimonial-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-quote-icon { font-size: 2rem; color: var(--gold); margin-bottom: 20px; }
.testimonial-text { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 400; line-height: 1.7; color: var(--dark); margin: 0 0 25px 0; }
.testimonial-avatar-wrap { width: 70px; height: 70px; margin: 0 auto 12px; }
.testimonial-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--gold); }
.testimonial-avatar-fallback { width: 70px; height: 70px; border-radius: 50%; background: var(--blue); color: #fff; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; border: 3px solid var(--gold); }
.testimonial-name { margin: 0; font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--dark); }
.testimonial-role { color: #777; font-size: 0.85rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testimonial-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #ddd; cursor: pointer; padding: 0; transition: 0.3s; }
.testimonial-dot.active { background: var(--gold); width: 26px; border-radius: 5px; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-list { list-style: none; padding: 0; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-list li { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.contact-list span { display: block; font-family: 'IBM Plex Mono', monospace; color: var(--gold); font-size: 0.85rem; text-transform: uppercase; margin-bottom: 5px; }
.contact-list strong { font-size: 1.1rem; color: var(--blue); }

/* Footer */
.site-footer { background: var(--dark); color: var(--light); padding: 30px 0; text-align: center; font-size: 0.9rem; }

@media (max-width: 768px) {
  .director-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .hero-inner h1 { font-size: 2.5rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .course-grid, .news-grid { grid-template-columns: 1fr; }
  .filter-group { gap: 8px; }
  .filter-chip { padding: 6px 12px; font-size: 12px; }
}

/* ---------------------------------------------------------
   Minimal grid utilities (Bootstrap-style class names used
   by the Features section below, without pulling in all of
   Bootstrap so it can't clash with the site's existing CSS)
--------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row.g-4 { margin: 0 -12px; }
.row > [class*="col-"] { width: 100%; padding: 12px; box-sizing: border-box; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.text-center { text-align: center; }

@media (min-width: 768px) {
  .col-md-6 { width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
}

/* Keep the "Why Choose Our Platform?" cards on a single line at every
   screen size instead of stacking on tablet/mobile. On narrow screens
   the row scrolls horizontally rather than wrapping. */
.cyber-features-section .row {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}
.cyber-features-section .col-lg-3 {
  flex: 0 0 260px;
  width: 260px;
  scroll-snap-align: start;
}
@media (min-width: 1100px) {
  .cyber-features-section .row { overflow-x: visible; }
  .cyber-features-section .col-lg-3 { flex: 1 1 0; width: auto; }
}

/* ---------------------------------------------------------
   "Why Choose Our Platform?" cyber features section
--------------------------------------------------------- */
.cyber-features-section {
  background: linear-gradient(160deg, #0f1420 0%, #171d2e 45%, #1b1030 100%);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(0, 224, 255, 0.16), transparent 40%),
    radial-gradient(circle at 88% 20%, rgba(212, 175, 55, 0.16), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(155, 81, 224, 0.14), transparent 50%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cyber-features-section .section-heading h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  color: #ffffff;
  margin: 0 0 15px 0;
}
.cyber-features-section .section-heading h2 span {
  background: linear-gradient(90deg, #00e0ff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cyber-features-section .section-heading p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.feature-cyber-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 40px 25px;
  text-align: center;
  transition: transform 0.15s ease-out, border-color 0.35s ease, box-shadow 0.35s ease;
}
.feature-cyber-card:hover {
  border-color: var(--accent, #00e0ff);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px -5px var(--accent, #00e0ff);
}
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* Rotate a distinct accent colour through the four cards */
.col-lg-3:nth-child(1) .feature-cyber-card { --accent: #00e0ff; }
.col-lg-3:nth-child(2) .feature-cyber-card { --accent: #35d07f; }
.col-lg-3:nth-child(3) .feature-cyber-card { --accent: #b06bf5; }
.col-lg-3:nth-child(4) .feature-cyber-card { --accent: #d4af37; }

.feature-icon-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #00e0ff), rgba(255,255,255,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #0f1420;
  box-shadow: 0 0 25px -4px var(--accent, #00e0ff);
}

.feature-cyber-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0 0 12px 0;
}
.feature-cyber-card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Scroll-reveal (paired with the JS in assets/js/script.js) */
[data-aos] { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="zoom-in"] { transform: scale(0.85); }
[data-aos].aos-animate { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 767px) {
  .cyber-features-section .section-heading h2 { font-size: 1.9rem; }
  .feature-cyber-card { padding: 30px 20px; }
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--blue, #1c3a5e);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.is-visible {
    display: block;
    opacity: 1;
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        max-width: 80vw;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 90px 24px 24px 24px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }

    .main-nav a.login-btn {
        margin-top: 16px;
        text-align: center;
        border-bottom: none;
    }

    body.nav-open {
        overflow: hidden;
    }
}
