/*
   Cape Institute of Technology — index.css
   Palette: Deep Blue · White · Light Blue · Gold accent
   NAV STYLES ARE IN nav.css — do not add nav rules here
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════════════════════ */
:root {
    --primary:        #02147E;
    --primary-lift:   #0D2494;
    --primary-mid:    #1A3BAD;
    --primary-light:  #EEF2FF;
    --primary-pale:   #F5F7FF;
    --gold:           #C9973A;
    --gold-light:     #E0AE50;
    --gold-pale:      rgba(201,151,58,0.12);
    --gold-glow:      0 0 40px rgba(201,151,58,0.28);
    --white:          #FFFFFF;
    --off-white:      #F8FAFF;
    --light-blue:     #DDE6F7;
    --text:           #0B1033;
    --text-mid:       #3D4875;
    --text-muted:     #6B7BAD;
    --text-on-dark:   #C8D3F0;
    --border:         #D4DCF0;
    --red:            #02147E;
    --green:          #2D5E3A;
    --font-display:   'Poppins', sans-serif;
    --font-ui:        'Poppins', sans-serif;
    --font-body:      'Poppins', sans-serif;
    --shadow-xs:  0 1px 4px rgba(2,20,126,0.06);
    --shadow-sm:  0 4px 12px rgba(2,20,126,0.08);
    --shadow-md:  0 8px 28px rgba(2,20,126,0.11);
    --shadow-lg:  0 20px 50px rgba(2,20,126,0.14);
    --shadow-xl:  0 32px 72px rgba(2,20,126,0.18);
    --shadow-gold:0 6px 24px rgba(201,151,58,0.38);
    --ease:     cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-out: cubic-bezier(0.0,  0.0, 0.2,  1);
    --t-fast:   0.18s ease;
    --t-med:    0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
    --t-slow:   0.56s cubic-bezier(0.0,  0.0, 0.2,  1);
    --r-sm:   6px;
    --r-md:   12px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-pill: 50px;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: clip; /* clip instead of hidden — won't break position:fixed nav */
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--primary); margin-bottom: 0.75rem; }
a   { text-decoration: none; color: inherit; transition: var(--t-fast); }
ul  { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.container    { max-width: 1260px; margin: 0 auto; padding: 0 40px; }
.text-center  { text-align: center; }
.text-white   { color: #fff !important; }
.text-light   { color: var(--text-on-dark) !important; }
.accent-color { color: var(--gold-light) !important; }
.text-primary { color: var(--gold) !important; }
.text-muted   { color: var(--text-muted) !important; }
.bg-light     { background-color: var(--primary-light); }
.mb-3 { margin-bottom: 1rem; }   .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1rem; }      .mt-4 { margin-top: 1.5rem; }    .mt-5 { margin-top: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2    { margin: 0 14px; }
.shadow-lg  { box-shadow: var(--shadow-lg); }
.shadow-xl  { box-shadow: var(--shadow-xl); }
.rounded-xl { border-radius: var(--r-xl); }
.img-fluid  { width: 100%; display: block; }
.relative   { position: relative; }
.z-10       { position: relative; z-index: 10; }

/* ═══════════════════════════════════════════════════════════
   SECTION TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
.section { padding: 90px 0; }
.section-subtitle {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 0.6rem;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.section-subtitle::before, .section-subtitle::after { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: 0.5; }
.about-content .section-subtitle, .placements-content .section-subtitle { justify-content: flex-start; }
.about-content .section-subtitle::before, .about-content .section-subtitle::after,
.placements-content .section-subtitle::before, .placements-content .section-subtitle::after { display: none; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--primary); margin-bottom: 1.2rem; letter-spacing: -0.02em; }
.section-text  { font-size: 1.05rem; color: var(--text-mid); max-width: 680px; line-height: 1.8; margin-bottom: 2rem; }
.section-header { margin-bottom: 20px; }
.section-header .section-text { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 30px; font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.03em; border-radius: var(--r-sm); border: 1.5px solid transparent; cursor: pointer; transition: all var(--t-med); }
.btn-large { padding: 16px 38px; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--primary); font-weight: 700; }
.btn-primary:hover { transform: translateY(-2px); color: var(--primary); box-shadow: var(--shadow-gold); }
.btn-secondary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-lift); transform: translateY(-2px); color: white; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: white; color: var(--primary); transform: translateY(-2px); }
.btn-glow { box-shadow: var(--shadow-gold); }
.btn-glow:hover { box-shadow: 0 10px 32px rgba(201,151,58,0.55); }
.btn-ghost-hero { background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.35); color: #fff; padding: 13px 26px; border-radius: var(--r-sm); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: all var(--t-med); text-decoration: none; }
.btn-ghost-hero:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.7); }
.btn-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.92rem; color: var(--gold); transition: gap var(--t-fast), color var(--t-fast); }
.btn-link:hover { gap: 12px; color: var(--gold-light); }
.btn-link i { font-size: 0.85rem; }
.view-all-btn { border-color: var(--primary); color: var(--primary); }
.view-all-btn:hover { background: var(--primary); color: white; }

/* ═══════════════════════════════════════════════════════════
   HERO — deep blue gradient + video bg
═══════════════════════════════════════════════════════════ */
.hero { position: relative; width: 100%; height: 100vh; min-height: 620px; overflow: hidden; display: flex; align-items: center; }

/* Fallback bg if video is hidden on mobile */
.hero { background: linear-gradient(135deg, #02147E 0%, #0D2494 60%, #1A3BAD 100%); }

.hero-video-wrapper { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-video {
    width: 100vw; height: 100vh; object-fit: cover;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    opacity: 0.99; 
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(2, 20, 126, 0.55) 0%,
        rgba(2, 20, 126, 0.35) 50%,
        rgba(5, 12, 50, 0.55) 100%
    );
}

.hero-slider-overlay { position: absolute; inset: 0; z-index: 4; }
.hero-slider-overlay .slider-track { width: 100%; height: 100%; position: relative; }

/* ── Slides ── */
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0s linear 0.8s; z-index: 1; }
.slide.active { opacity: 1; visibility: visible; transition: opacity 0.8s ease, visibility 0s linear 0s; z-index: 2; }
.slide.exit { opacity: 0; visibility: hidden; z-index: 2; transition: opacity 0.8s ease, visibility 0s linear 0.8s; }

.slide-inner {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 80px; gap: 60px; box-sizing: border-box;
}

.slide-center {
    flex: 1; max-width: 600px; text-align: center; margin: 0 auto;
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.65s ease 0.15s, transform 0.65s ease 0.15s;
}
.slide.active .slide-center { opacity: 1; transform: translateY(0); }

.slide-float-card {
    width: 700px; height: 400px; flex-shrink: 0;
    border-radius: var(--r-lg); overflow: hidden;
    border: 2.5px solid rgba(255,255,255,0.15);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    opacity: 0; transform: translateX(32px);
    transition: opacity 0.65s ease 0.3s, transform 0.65s ease 0.3s;
}
.slide.active .slide-float-card { opacity: 1; transform: translateX(0); }
.slide-float-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slide-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); background: rgba(0, 0, 0, 0.18); border: 1px solid rgba(201,151,58,0.45); padding: 7px 18px; border-radius: var(--r-pill); margin-bottom: 22px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.slide-tag::before { content: ''; width: 6px; height: 6px; background: var(--gold-light); border-radius: 50%; animation: tagPulse 2s ease-in-out infinite; }
@keyframes tagPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.4); } }

.slide-center h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 800; color: #fff; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.slide-center h1 em { font-style: normal; color: var(--gold-light); }
.slide-center p { font-size: 1rem; color: rgba(255,255,255,0.78); line-height: 1.75; max-width: 480px; margin: 0 auto 32px; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.slide-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Stat strip */
.hero-stat-strip { position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; background: rgba(2,20,126,0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(201,151,58,0.25); display: flex; align-items: center; justify-content: center; padding: 18px 40px; }
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 40px; }
.hero-stat strong { font-size: 1.6rem; font-weight: 800; color: var(--gold-light); line-height: 1; }
.hero-stat span   { font-size: 0.7rem; color: rgba(255,255,255,0.55); font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; }
.stat-divider     { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* Slider controls */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 46px; height: 46px; background: rgba(2,20,126,0.55); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 50%; font-size: 0.9rem; cursor: pointer; backdrop-filter: blur(10px); transition: all 0.22s ease; display: flex; align-items: center; justify-content: center; }
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--primary); transform: translateY(-50%) scale(1.1); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; align-items: center; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; cursor: pointer; padding: 0; transition: all 0.3s ease; }
.slider-dot.active { background: var(--gold-light); width: 28px; border-radius: 4px; }
.slider-dot:hover  { background: rgba(255,255,255,0.7); }
.slider-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.10); z-index: 10; }
.slider-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width linear; }

/* ═══════════════════════════════════════════════════════════
   RANKINGS
═══════════════════════════════════════════════════════════ */
.rankings-section { background: linear-gradient(135deg, #000105 0%, #000000 50%, #1A3BAD 100%); padding: 60px 0; position: relative; overflow: hidden; }
.rankings-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at 30% 50%, rgba(201,151,58,0.08) 0%, transparent 60%); pointer-events: none; }
.rankings-header { text-align: center; margin-bottom: 40px; }
.rankings-header h4 { color: #E0AE50; font-size: 0.85rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.rankings-header h2 { color: #fff; font-size: 2rem; font-weight: 700; }
.rankings-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: stretch; }
.ranking-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(201,151,58,0.25); border-radius: 16px; padding: 28px 24px; text-align: center; flex: 1; min-width: 160px; max-width: 200px; transition: all 0.3s ease; }
.ranking-card:hover { background: rgba(201,151,58,0.12); border-color: #E0AE50; transform: translateY(-4px); }
.ranking-card .rank-body-name { font-size: 0.72rem; color: #E0AE50; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.ranking-card .rank-number { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; display: block; }
.ranking-card .rank-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 6px; display: block; }
.accreditation-strip { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.accred-badge { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 12px 24px; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 0.85rem; font-weight: 600; }
.accred-badge i { color: #E0AE50; font-size: 1.1rem; }
.accred-badge .grade { font-size: 1.1rem; font-weight: 800; color: #E0AE50; }

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about-section { padding-top: 110px; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-list { margin: 28px 0; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 14px; font-size: 1rem; font-weight: 500; color: var(--text-mid); padding: 12px 16px; background: var(--primary-light); border-radius: var(--r-sm); border-left: 3px solid var(--gold); transition: all var(--t-fast); }
.feature-list li:hover { background: var(--light-blue); transform: translateX(4px); }
.feature-list li i { color: var(--gold); font-size: 1rem; flex-shrink: 0; }
.about-image { position: relative; }
.image-wrapper { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.image-wrapper:hover .img-fluid { transform: scale(1.04); }
.img-fluid { transition: transform 0.6s var(--ease); }
.experience-badge { position: absolute; bottom: -24px; left: -24px; background: var(--primary); color: white; padding: 24px 28px; border-radius: var(--r-lg); box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 16px; border-bottom: 4px solid var(--gold); }
.experience-years { font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--gold-light); }
.experience-text  { font-size: 0.9rem; font-weight: 600; line-height: 1.4; color: var(--text-on-dark); }

/* ═══════════════════════════════════════════════════════════
   PROGRAMS
═══════════════════════════════════════════════════════════ */
.programs-section { background: var(--primary-light); }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.program-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--t-med); border: 1px solid var(--border); display: flex; flex-direction: column; }
.program-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-10px); border-color: var(--gold); }
.program-img { height: 230px; position: relative; overflow: hidden; }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.program-card:hover .program-img img { transform: scale(1.08); }
.program-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(2,20,126,0.12)); opacity: 0; transition: opacity var(--t-med); }
.program-card:hover .program-img::after { opacity: 1; }
.program-category { position: absolute; top: 16px; left: 16px; background: rgba(2,20,126,0.82); backdrop-filter: blur(8px); color: var(--gold-light); padding: 5px 14px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; border: 1px solid rgba(201,151,58,0.3); }
.program-content { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.program-content h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 10px; transition: color var(--t-fast); }
.program-card:hover .program-content h3 { color: var(--primary-mid); }
.program-content p { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 24px; flex: 1; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════════════════ */
.stats-modern-section { background: var(--primary); padding: 90px 0; position: relative; overflow: hidden; }
.stats-modern-section.has-bg-image { background: transparent; }
.stats-bg-image { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; z-index: 1; }
.stats-overlay-dark { position: absolute; inset: 0; background: rgba(2,20,126,0.88); z-index: 2; }
.stats-modern-section::after { content: ''; position: absolute; top: 50%; right: -8%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(201,151,58,0.12) 0%, transparent 70%); border-radius: 50%; transform: translateY(-50%); z-index: 3; pointer-events: none; }
.stats-modern-section .section-title { color: white; }
.stats-modern-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 10; }
.stat-modern-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(201,151,58,0.2); border-radius: var(--r-lg); padding: 36px 24px; text-align: center; transition: all var(--t-med); position: relative; overflow: hidden; }
.stat-modern-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity var(--t-med); }
.stat-modern-card:hover { transform: translateY(-8px); background: rgba(201,151,58,0.08); border-color: var(--gold); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.stat-modern-card:hover::before { opacity: 1; }
.stat-icon-wrapper { width: 56px; height: 56px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--primary); box-shadow: 0 6px 20px rgba(201,151,58,0.3); }
.stat-modern-card .stat-content h2 { color: white; font-size: 2.8rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.03em; }
.stat-modern-card .stat-content p  { color: var(--text-on-dark); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
.gallery-section { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 16px; margin-top: 52px; }
.gallery-item { position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide  { grid-column: span 2; }
.gallery-item img   { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 28px 22px 22px; background: linear-gradient(to top, rgba(2,20,126,0.88) 0%, transparent 100%); color: white; transform: translateY(6px); opacity: 0; transition: all var(--t-med); border-bottom: 2px solid var(--gold); }
.gallery-item:hover .gallery-overlay { transform: translateY(0); opacity: 1; }
.gallery-overlay h3 { color: white; font-size: 1.1rem; font-weight: 600; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   PLACEMENTS
═══════════════════════════════════════════════════════════ */
.placements-section { background: var(--primary); position: relative; overflow: hidden; padding: 100px 0; }
.placements-section::before { content: ''; position: absolute; top: -40%; right: -15%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(201,151,58,0.10) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.placements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.placements-content .section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); color: white; }
.placement-stats { display: flex; gap: 40px; margin-top: 28px; }
.p-stat h3 { font-size: 2.8rem; font-weight: 700; margin-bottom: 4px; color: var(--gold-light); }
.p-stat p  { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.05em; color: var(--text-on-dark); }
.recruiters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.recruiter-logo { display: flex; align-items: center; justify-content: center; height: 72px; background: rgba(255,255,255,0.95); border: 1.5px solid rgba(255,255,255,0.15); border-radius: var(--r-md); transition: all var(--t-fast); cursor: pointer; overflow: hidden; }
.recruiter-logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.recruiter-logo img { max-width: 85%; max-height: 45px; height: auto; transition: transform 0.25s ease; }
.recruiter-logo:hover { background: var(--primary-light); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.25); }
.recruiter-logo:hover img { transform: scale(1.08); }

/* ═══════════════════════════════════════════════════════════
   JOURNEY VIDEO
═══════════════════════════════════════════════════════════ */
.journey-video-section { background: var(--primary); padding: 90px 0; }
.journey-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--gold); margin-bottom: 32px; letter-spacing: -0.02em; }
.journey-container { display: grid; grid-template-columns: 380px 1fr; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); min-height: 420px; }
.journey-list { display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--border); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.journey-list::-webkit-scrollbar { width: 4px; }
.journey-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.journey-item { display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; transition: background 0.18s ease, border-color 0.18s ease; min-height: 96px; }
.journey-item:last-child { border-bottom: none; }
.journey-item:hover  { background: var(--primary-light); }
.journey-item.active { background: var(--primary-light); border-left-color: var(--gold); }
.journey-thumb { position: relative; flex-shrink: 0; width: 120px; height: 72px; border-radius: var(--r-sm); overflow: hidden; background: var(--primary-mid); }
.journey-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.journey-item:hover .journey-thumb img { transform: scale(1.06); }
.play-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.18s ease; }
.journey-item:hover .play-icon, .journey-item.active .play-icon { opacity: 1; }
.play-icon i { color: white; font-size: 0.9rem; background: rgba(201,151,58,0.9); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding-left: 3px; }
.journey-item p { font-size: 0.88rem; font-weight: 600; color: var(--text-mid); line-height: 1.45; margin: 0; }
.journey-item.active p { color: var(--primary); }
.journey-player { position: relative; min-height: 360px; background: #000; }
.journey-player iframe { width: 100%; height: 100%; min-height: 360px; border-radius: 12px; display: block; }

/* ═══════════════════════════════════════════════════════════
   NEWS
═══════════════════════════════════════════════════════════ */
.news-masonry-section { background: var(--white); }
.news-masonry-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.news-masonry-item { border-radius: var(--r-lg); overflow: hidden; position: relative; background: white; box-shadow: var(--shadow-md); transition: all var(--t-med); }
.news-masonry-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.news-masonry-item.featured { height: 100%; min-height: 500px; }
.news-masonry-item.featured img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.news-masonry-item.featured:hover img { transform: scale(1.04); }
.news-overlay-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 44px 32px 32px; background: linear-gradient(to top, rgba(2,20,126,0.95) 0%, rgba(2,20,126,0.6) 50%, transparent 100%); color: white; border-bottom: 3px solid var(--gold); }
.news-overlay-content h3 { color: white; font-size: 1.7rem; font-weight: 700; margin-bottom: 12px; }
.news-overlay-content p  { color: var(--text-on-dark); font-size: 0.95rem; }
.news-masonry-column { display: grid; grid-template-rows: 1fr 1fr; gap: 28px; }
.news-masonry-item.standard { display: flex; flex-direction: column; }
.news-masonry-item.standard img { height: 190px; width: 100%; object-fit: cover; }
.news-content-box { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.news-content-box.full-box { height: 100%; }
.news-content-box.bg-primary { background: var(--primary); }
.news-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.news-category { color: var(--gold); }
.news-date-text { color: var(--text-muted); }
.news-overlay-content .news-date-text { color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════════════════════
   EVENTS
═══════════════════════════════════════════════════════════ */
.events-section { background: var(--primary-light); }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { display: flex; background: white; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all var(--t-med); }
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--gold); }
.event-date { background: var(--primary); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px; min-width: 90px; text-align: center; position: relative; }
.event-date::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.event-date.bg-accent { background: var(--gold); }
.event-date.bg-accent::after { background: var(--off-white); }
.event-date .day { font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--gold-light); }
.event-date.bg-accent .day, .event-date.bg-accent .month { color: var(--off-white); }
.event-date .month { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.event-content { padding: 22px 24px; }
.event-content .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; padding: 3px 10px; background: var(--primary-light); border-radius: var(--r-pill); }
.event-content h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.event-content h4 a { color: var(--primary); }
.event-content h4 a:hover { color: var(--gold); }
.event-content p   { color: var(--text-muted); font-size: 0.88rem; margin: 5px 0; display: flex; align-items: center; gap: 7px; }
.event-content p i { color: var(--gold); font-size: 0.82rem; width: 16px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   CTA
═══════════════════════════════════════════════════════════ */
.cta-section { background: var(--off-white); padding: 90px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 700px; height: 300px; background: radial-gradient(ellipse, rgba(2,20,126,0.06) 0%, transparent 70%); pointer-events: none; }
.cta-section h2    { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--primary); margin-bottom: 1rem; }
.cta-buttons       { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer { background: #040D40; color: var(--text-on-dark); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(201,151,58,0.15); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer h3 { color: white; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid rgba(201,151,58,0.2); }
.footer ul { display: flex; flex-direction: column; gap: 11px; }
.footer a  { color: var(--text-on-dark); font-size: 0.92rem; transition: all var(--t-fast); }
.footer a:hover { color: var(--gold-light); padding-left: 6px; }
.footer p  { font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-sm); color: var(--text-on-dark); font-size: 0.9rem; transition: all var(--t-fast); }
.social-links a:hover { background: var(--gold); color: var(--primary); border-color: var(--gold); padding: 0; transform: translateY(-3px); }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info li   { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; line-height: 1.6; }
.contact-info li i { color: var(--gold-light); margin-top: 3px; font-size: 0.85rem; flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom a       { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: var(--gold-light); padding-left: 0; }

/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENT SIDEBAR
═══════════════════════════════════════════════════════════ */
.announcement-sidebar { position: fixed; top: 0; right: -410px; width: 390px; height: 100vh; background: white; z-index: 10000; box-shadow: -8px 0 32px rgba(2,20,126,0.18); transition: right var(--t-slow); display: flex; flex-direction: column; }
.announcement-sidebar.active { right: 0; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(2,20,126,0.45); z-index: 9999; opacity: 0; visibility: hidden; transition: all var(--t-fast); backdrop-filter: blur(2px); }
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.sidebar-header { padding: 22px 24px; background: var(--primary); color: white; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--gold); }
.sidebar-header h3 { color: white; margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.sidebar-header h3 i { color: var(--gold-light); }
.close-sidebar { background: transparent; border: none; color: rgba(255,255,255,0.7); font-size: 1.3rem; cursor: pointer; transition: all var(--t-fast); padding: 4px; }
.close-sidebar:hover { color: var(--gold-light); transform: rotate(90deg); }
.sidebar-content { padding: 24px; overflow-y: auto; flex-grow: 1; }
.announcement-item { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
.announcement-item.new { background: var(--primary-light); border-left: 3px solid var(--gold); padding: 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; border-bottom: none; }
.announcement-date { font-size: 0.75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 6px; }
.announcement-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.announcement-item p  { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════
   FIXED ENQUIRE + POPUP
═══════════════════════════════════════════════════════════ */
.fixed-enquire-btn { position: fixed; bottom: 28px; right: 28px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--primary); border: none; padding: 14px 24px; font-size: 0.88rem; font-weight: 800; letter-spacing: 0.06em; cursor: pointer; z-index: 9999; box-shadow: 0 8px 28px rgba(201,151,58,0.5); border-radius: 50px; transition: all var(--t-med); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.fixed-enquire-btn:hover { background: var(--primary); color: var(--gold-light); box-shadow: 0 12px 36px rgba(2,20,126,0.4); transform: translateY(-3px); }
.fixed-enquire-btn i { font-size: 1rem; }
.enquiry-popup-overlay { position: fixed; inset: 0; background: rgba(2,20,126,0.75); backdrop-filter: blur(6px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--t-med); }
.enquiry-popup-overlay.show { opacity: 1; visibility: visible; }
.enquiry-popup-content { background: white; width: 90%; max-width: 880px; border-radius: var(--r-xl); overflow: hidden; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,0.4); transform: translateY(28px) scale(0.97); transition: all 0.42s var(--ease); border-top: 4px solid var(--gold); }
.enquiry-popup-overlay.show .enquiry-popup-content { transform: translateY(0) scale(1); }
.close-popup { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; background: rgba(2,20,126,0.07); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text-mid); cursor: pointer; z-index: 10; transition: all var(--t-fast); }
.close-popup:hover { background: var(--gold); color: var(--primary); transform: rotate(90deg); }
.popup-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.popup-image { background-image: url('../assets/images/form.jpeg'); background-size: cover; background-position: center; position: relative; }
.popup-image-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 32px; background: linear-gradient(to top, rgba(2,20,126,0.92) 0%, transparent 100%); color: white; }
.popup-image-overlay h3 { color: white; font-size: 1.4rem; }
.popup-image-overlay p  { color: var(--text-on-dark); font-size: 0.9rem; }
.popup-form-container { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.popup-form-container h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.popup-form-container > p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-control { width: 100%; padding: 11px 16px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-family: var(--font-body); font-size: 0.95rem; transition: all var(--t-fast); background: var(--primary-pale); color: var(--text); }
.form-control:focus { outline: none; border-color: var(--primary-mid); background: white; box-shadow: 0 0 0 3px rgba(2,20,126,0.12); }
.w-100 { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   COUNTDOWN
═══════════════════════════════════════════════════════════ */
.deadline-section { background: linear-gradient(135deg, #C9973A 0%, #E0AE50 100%); padding: 50px 0; }
.deadline-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.deadline-text h3 { font-size: 1.5rem; font-weight: 700; color: #02147E; margin: 0 0 6px; }
.deadline-text p  { color: rgba(2,20,126,0.7); margin: 0; font-size: 0.9rem; }
.countdown-boxes { display: flex; gap: 12px; }
.countdown-box { background: rgba(2,20,126,0.15); border-radius: 10px; padding: 14px 18px; text-align: center; min-width: 72px; }
.countdown-box .count-num   { font-size: 2rem; font-weight: 800; color: #02147E; display: block; line-height: 1; }
.countdown-box .count-label { font-size: 0.7rem; color: rgba(2,20,126,0.65); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.deadline-action .btn { background: #02147E; color: #fff; padding: 14px 30px; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-block; transition: all 0.3s; }
.deadline-action .btn:hover { background: #0D2494; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════
   CAMPUS TOUR CTA
═══════════════════════════════════════════════════════════ */
.campus-tour-cta { position: relative; overflow: hidden; padding: 80px 0; background: #02147E; }
.campus-tour-cta .tour-bg { position: absolute; inset: 0; background-image: url('https://capeitech.org/wp-content/uploads/2020/04/DJI_0042-scaled.jpg'); background-size: cover; background-position: center; opacity: 0.18; }
.campus-tour-cta .container { position: relative; z-index: 2; text-align: center; }
.campus-tour-cta h2 { font-size: 2.2rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.campus-tour-cta p  { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 30px; font-size: 1rem; line-height: 1.7; }
.tour-btn { display: inline-flex; align-items: center; gap: 10px; background: #C9973A; color: #02147E; font-weight: 700; padding: 16px 34px; border-radius: 50px; font-size: 1rem; text-decoration: none; transition: all 0.3s; }
.tour-btn:hover { background: #E0AE50; transform: scale(1.04); }

/* ═══════════════════════════════════════════════════════════
   QUICK APPLY STRIP
═══════════════════════════════════════════════════════════ */
.quick-apply-strip { background: #25397a; padding: 50px 0; border-top: 3px solid #C9973A; }
.quick-apply-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.quick-apply-text { flex: 1; min-width: 220px; }
.quick-apply-text h3 { font-size: 1.6rem; font-weight: 700; color: #f8f8f8; margin-bottom: 6px; }
.quick-apply-text p  { color: #f7f9ff; font-size: 0.9rem; }
.quick-apply-form { flex: 2; display: flex; gap: 12px; flex-wrap: wrap; }
.quick-apply-form input,
.quick-apply-form select { flex: 1; min-width: 150px; padding: 13px 16px; border: 1px solid #D4DCF0; border-radius: 8px; font-size: 0.88rem; font-family: 'Poppins', sans-serif; outline: none; background: #fff; color: #0B1033; }
.quick-apply-form input:focus,
.quick-apply-form select:focus { border-color: #C9973A; }
.quick-apply-form button { background: #C9973A; color: #02147E; font-weight: 700; padding: 13px 26px; border: none; border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 0.88rem; cursor: pointer; white-space: nowrap; transition: all 0.3s; }
.quick-apply-form button:hover { background: #E0AE50; }

/* ═══════════════════════════════════════════════════════════
   INTERNATIONAL
═══════════════════════════════════════════════════════════ */
.international-section { padding: 90px 0; background: #fff; }
.international-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.international-left h4 { color: #C9973A; font-size: 0.82rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.international-left h2 { font-size: 2rem; font-weight: 700; color: #02147E; margin-bottom: 16px; line-height: 1.3; }
.international-left p  { color: #3D4875; line-height: 1.8; margin-bottom: 28px; }
.world-map-placeholder { background: linear-gradient(135deg, #02147E, #1A3BAD); border-radius: 20px; padding: 40px; position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.international-collab-img { max-width: 100%; height: auto; display: block; border-radius: 12px; }

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS (auto-scroll strip)
═══════════════════════════════════════════════════════════ */
.testimonials-section { padding: 90px 0; background: #EEF2FF; overflow: hidden; }
.testimonials-track-wrapper { overflow: hidden; margin-top: 40px; position: relative; }
.testimonials-track-wrapper::before { left: 0; background: linear-gradient(to right, #EEF2FF, transparent); content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
.testimonials-track-wrapper::after  { right: 0; background: linear-gradient(to left, #EEF2FF, transparent); content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
.testimonials-track { display: flex; gap: 24px; animation: scroll-testimonials 30s linear infinite; width: max-content; }
.testimonials-track:hover { animation-play-state: paused; }
@keyframes scroll-testimonials { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.testimonial-card { background: #fff; border: 1px solid #D4DCF0; border-radius: 16px; padding: 28px; width: 340px; flex-shrink: 0; box-shadow: 0 4px 20px rgba(2,20,126,0.07); }
.testimonial-card .stars { color: #C9973A; font-size: 0.85rem; margin-bottom: 14px; }
.testimonial-card p { color: #3D4875; font-size: 0.9rem; line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #02147E, #C9973A); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.author-info strong { display: block; font-size: 0.88rem; color: #02147E; font-weight: 600; }
.author-info span   { font-size: 0.78rem; color: #6B7BAD; }

/* ═══════════════════════════════════════════════════════════
   RESEARCH
═══════════════════════════════════════════════════════════ */
.research-section { padding: 90px 0; background: #EEF2FF; }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.research-content h4 { color: #C9973A; font-size: 0.82rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.research-content h2 { font-size: 2rem; font-weight: 700; color: #02147E; margin-bottom: 16px; line-height: 1.3; }
.research-content p  { color: #3D4875; line-height: 1.8; margin-bottom: 28px; }
.research-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.research-pillar { background: #fff; border-left: 3px solid #C9973A; border-radius: 8px; padding: 14px 16px; }
.research-pillar i { color: #C9973A; font-size: 1.2rem; margin-bottom: 6px; display: block; }
.research-pillar strong { font-size: 0.88rem; color: #02147E; display: block; }
.research-pillar span  { font-size: 0.78rem; color: #6B7BAD; }
.research-stats-row { display: flex; gap: 30px; margin-top: 10px; }
.r-stat h3 { font-size: 2rem; font-weight: 800; color: #02147E; margin: 0; }
.r-stat p  { font-size: 0.8rem; color: #6B7BAD; margin: 0; }
.research-image-stack { position: relative; height: 400px; }
.research-img-main  { width: 78%; height: 340px; object-fit: cover; border-radius: 16px; position: absolute; right: 0; top: 0; box-shadow: 0 20px 50px rgba(2,20,126,0.18); }
.research-img-accent{ width: 55%; height: 200px; object-fit: cover; border-radius: 12px; position: absolute; left: 0; bottom: 0; box-shadow: 0 15px 40px rgba(2,20,126,0.2); border: 4px solid #fff; }
.research-funding-tag { position: absolute; top: 20px; left: 0; background: #02147E; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; z-index: 2; }
.research-funding-tag span { color: #E0AE50; font-size: 1.1rem; font-weight: 800; display: block; }

/* ═══════════════════════════════════════════════════════════
   DEPARTMENTS PAGE
═══════════════════════════════════════════════════════════ */
.depts-page { font-family: 'Poppins', sans-serif; padding: 60px 0 80px; background: #f7f8fa; min-height: 60vh; }
.depts-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.depts-heading { text-align: center; margin-bottom: 36px; }
.depts-heading h1 { font-size: 2rem; font-weight: 700; color: #1a1a2e; margin: 0 0 6px; }
.depts-heading p { color: #666; font-size: 0.95rem; margin: 0; }
.depts-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-tab { padding: 8px 20px; border: 2px solid #ddd; border-radius: 30px; background: #fff; color: #444; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all .2s; font-family: inherit; }
.filter-tab:hover, .filter-tab.active { border-color: #c0392b; background: #c0392b; color: #fff; }
.depts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.dept-card { background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; display: block; box-shadow: 0 2px 8px rgba(0,0,0,.07); transition: transform .25s, box-shadow .25s; }
.dept-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.dept-card img { width: 100%; height: 200px; object-fit: cover; display: block; background: #e0e0e0; }
.dept-card-body { padding: 18px 20px 20px; }
.dept-card-body h3 { font-size: 1rem; font-weight: 600; color: #1a1a2e; margin: 0 0 10px; line-height: 1.4; }
.dept-card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: #c0392b; text-transform: uppercase; letter-spacing: .04em; }
.dept-card-cta svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s; }
.dept-card:hover .dept-card-cta svg { transform: translateX(4px); }
.depts-empty { display: none; text-align: center; padding: 60px 0; color: #999; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (about, history, vision etc.)
═══════════════════════════════════════════════════════════ */
.about-hero { position: relative; min-height: 380px; display: flex; align-items: center; background-size: cover; background-position: center; background-color: var(--primary); }
.about-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(2,20,126,0.92) 0%, rgba(2,20,126,0.70) 50%, rgba(5,12,50,0.85) 100%); }
.about-hero-inner { position: relative; z-index: 2; padding: 80px 40px 60px; }
.about-hero-inner h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: #fff; margin-bottom: 14px; line-height: 1.15; max-width: 700px; }
.about-hero-inner h1 em { font-style: normal; color: var(--gold-light); }
.about-hero-inner p { font-size: 1.05rem; color: rgba(255,255,255,0.72); max-width: 560px; }
.breadcrumb-nav { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.breadcrumb-nav a { color: var(--gold-light); transition: color 0.18s; }
.breadcrumb-nav a:hover { color: #fff; }
.bc-sep { font-size: 0.65rem; opacity: 0.5; }

/* Stats strip */
.about-stats-strip { background: var(--white); border-bottom: 1px solid var(--border); padding: 0; box-shadow: var(--shadow-sm); }
.about-stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.about-stat-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 28px 16px; text-align: center; border-right: 1px solid var(--border); transition: background 0.2s; }
.about-stat-item:last-child { border-right: none; }
.about-stat-item:hover { background: var(--primary-light); }
.about-stat-icon { width: 40px; height: 40px; background: var(--primary-light); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; margin-bottom: 6px; }
.about-stat-item strong { font-size: 1.25rem; font-weight: 800; color: var(--primary); line-height: 1; }
.about-stat-item span { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* Vision & Mission */
.vision-mission-section { background: var(--primary-light); }
.vm-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; margin-top: 48px; align-items: stretch; }
.vm-card { border-radius: var(--r-xl); padding: 40px; position: relative; overflow: hidden; }
.vision-card { background: var(--primary); color: white; }
.vision-card::after { content: ''; position: absolute; bottom: -40px; right: -40px; width: 180px; height: 180px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.mission-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.vm-icon { width: 56px; height: 56px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 22px; flex-shrink: 0; }
.vision-card .vm-icon { background: rgba(255,255,255,0.12); color: var(--gold-light); }
.mission-card .vm-icon { background: var(--primary-light); color: var(--primary); }
.vm-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; }
.vision-card h3 { color: white; }
.mission-card h3 { color: var(--primary); }
.vision-card p  { color: rgba(255,255,255,0.82); line-height: 1.8; font-size: 0.98rem; }
.mission-list   { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; list-style: none; }
.mission-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.92rem; color: var(--text-mid); line-height: 1.6; }
.mission-list li i { color: var(--gold); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.value-card { background: var(--primary-light); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; text-align: center; transition: all var(--t-med); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.value-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform var(--t-med); }
.value-card:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-card:hover::before { transform: scaleX(1); }
.value-icon { width: 54px; height: 54px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gold-light); margin: 0 auto 16px; flex-shrink: 0; }
.value-card h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.value-card p  { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 1024px
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .slide-inner { padding: 0 50px; gap: 40px; }
    .slide-float-card { width: 700px; height: 500px; }
    .hero-stat { padding: 0 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-section { padding-top: 80px; }
    .experience-badge { left: 0; bottom: 0; border-radius: 0 var(--r-lg) 0 var(--r-lg); }
    .about-image { padding-bottom: 32px; }
    .placements-grid { grid-template-columns: 1fr; gap: 48px; }
    .stats-modern-wrapper { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .journey-container { grid-template-columns: 300px 1fr; }
    .section { padding: 72px 0; }
    .about-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .about-stat-item  { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .about-stat-item:nth-child(3n) { border-right: none; }
    .vm-grid          { grid-template-columns: 1fr; }
    .values-grid      { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 900px (tablet)
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .container { padding: 0 24px; }

    /* Hero */
    .hero {
        height: auto;
        min-height: 100svh;
    }
    .slide-inner {
        flex-direction: column;
        padding: 90px 24px 130px;
        gap: 28px;
        justify-content: center;
        align-items: center;
        min-height: 100svh;
        box-sizing: border-box;
    }
    .slide-center { text-align: center; max-width: 100%; }
    .slide-float-card {
        width: 100%;
        max-width: 420px;
        height: 240px;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Slider controls — move arrows to bottom on mobile */
    .slider-dots { bottom: 90px; z-index: 30; }
    .slider-progress { z-index: 30; }
    .slider-arrow {
        top: auto;
        bottom: 110px;
        transform: none;
        width: 38px;
        height: 38px;
    }
    .slider-arrow:hover { transform: scale(1.1); }
    .slider-prev { left: 16px; }
    .slider-next { right: 16px; }

    /* Disable video on mobile */
    .hero-video-wrapper { display: none; }

    /* Grids */
    .hero-stat-strip { padding: 12px 16px; }
    .hero-stat { padding: 0 14px; }
    .hero-stat strong { font-size: 1.2rem; }
    .hero-stat span { font-size: 0.6rem; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .news-masonry-grid { grid-template-columns: 1fr; }
    .news-masonry-item.featured { min-height: 360px; }
    .events-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .popup-grid { grid-template-columns: 1fr; }
    .popup-image { height: 180px; }
    .recruiters-grid { grid-template-columns: repeat(3, 1fr); }

    /* Journey video */
    .journey-container { grid-template-columns: 1fr; min-height: unset; }
    .journey-player { order: -1; aspect-ratio: 16 / 9; min-height: unset; }
    .journey-player iframe { min-height: unset; height: 100%; border-radius: 0; }
    .journey-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: none; border-top: 1px solid var(--border); padding: 10px; gap: 10px; }
    .journey-item { flex-direction: column; align-items: flex-start; min-width: 150px; max-width: 150px; min-height: unset; flex-shrink: 0; border-bottom: none; border-left: none; border-radius: var(--r-sm); padding: 10px; border: 1.5px solid var(--border); }
    .journey-item.active { border-color: var(--gold); background: var(--primary-light); }
    .journey-thumb { width: 100%; height: 80px; }

    /* Misc */
    .section { padding: 64px 0; }
    .placements-section { padding: 72px 0; }
    .rankings-grid { gap: 12px; }
    .ranking-card { min-width: 130px; padding: 20px 14px; }
    .research-grid, .international-inner { grid-template-columns: 1fr; }
    .research-image-stack { height: 260px; margin-top: 20px; }
    .deadline-inner { flex-direction: column; text-align: center; }
    .quick-apply-inner { flex-direction: column; }
    .quick-apply-form { width: 100%; }

    /* About page */
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stat-item:nth-child(2n) { border-right: none; }
    .values-grid      { grid-template-columns: repeat(2, 1fr); }
    .about-hero-inner { padding: 60px 20px 40px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 600px (mobile)
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .container { padding: 0 18px; }

    /* Hero */
    .hero { min-height: 100svh; }
    .slide-inner { padding: 80px 18px 120px; gap: 22px; }
    .slide-float-card { height: 200px; max-width: 100%; }

    /* Hero text */
    .slide-center h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); word-break: break-word; }
    .slide-center p  { font-size: 0.88rem; }
    .slide-actions { flex-direction: column; align-items: center; gap: 10px; width: 100%; }
    .slide-actions .btn,
    .slide-actions .btn-ghost-hero { width: 100%; justify-content: center; text-align: center; }

    /* Quick apply — stack vertically */
    .quick-apply-form { flex-direction: column; gap: 10px; }
    .quick-apply-form input,
    .quick-apply-form select,
    .quick-apply-form button { width: 100%; min-width: unset; flex: unset; box-sizing: border-box; }

    /* Grids */
    .stats-modern-wrapper { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-modern-card { padding: 22px 14px; }
    .stat-modern-card .stat-content h2 { font-size: 2rem; }
    .programs-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
    .gallery-item.large, .gallery-item.wide { grid-column: span 1; grid-row: span 1; }
    .events-grid { grid-template-columns: 1fr; }
    .news-masonry-item.featured { min-height: 260px; }
    .placement-stats { flex-direction: column; gap: 16px; }
    .p-stat h3 { font-size: 2rem; }
    .recruiters-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

    /* CTA / popup */
    .cta-buttons { flex-direction: column; align-items: center; }
    .popup-image { display: none; }
    .popup-form-container { padding: 24px 18px; }

    /* Fixed button */
    .fixed-enquire-btn { font-size: 0.76rem; padding: 10px 14px; bottom: 14px; right: 14px; }

    /* Typography */
    .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .section { padding: 52px 0; }
    .about-section { padding-top: 56px; }
    .experience-badge { padding: 16px 18px; }
    .experience-years { font-size: 2.2rem; }

    /* Journey */
    .journey-item { min-width: 130px; max-width: 130px; }
    .journey-thumb { height: 68px; }
    .journey-item p { font-size: 0.78rem; }
    .journey-video-section { padding: 56px 0; }
    .journey-title { font-size: 1.4rem; margin-bottom: 20px; }

    /* Alumni slider — 1 card per view */
    .alumni-slider-viewport { overflow: hidden; }
    .alumni-slide { min-width: 100% !important; flex: 0 0 100% !important; }

    /* Countdown */
    .countdown-boxes { gap: 8px; }
    .countdown-box { padding: 10px 12px; min-width: 58px; }
    .countdown-box .count-num { font-size: 1.5rem; }

    /* About page */
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid      { grid-template-columns: 1fr; }
    .vm-card          { padding: 24px; }

    /* Depts */
    .depts-heading h1 { font-size: 1.5rem; }
    .depts-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .dept-card img { height: 150px; }
}

/* Alumni slider — 2 cards per view on tablet */
@media (min-width: 601px) and (max-width: 900px) {
    .alumni-slide { min-width: 50% !important; flex: 0 0 50% !important; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 400px (very small phones)
═══════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .slide-inner { padding: 60px 14px 100px; }
    .slide-center h1 { font-size: 1.7rem; }
    .slide-float-card { display: none !important; } /* too cramped — hide on tiny phones */
    .stats-modern-wrapper { grid-template-columns: 1fr; }
    .section-title { font-size: 1.4rem; }
    .section { padding: 44px 0; }
    .btn-large { padding: 12px 22px; font-size: 0.9rem; }
    .footer h3 { font-size: 0.74rem; }
    .footer a  { font-size: 0.85rem; }
    .fixed-enquire-btn span { display: none; }
    .fixed-enquire-btn { padding: 12px; border-radius: 50%; }
    .recruiters-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .depts-grid { grid-template-columns: 1fr; }
}

.footer {
      background: #1a3a8c;
      color: #fff;
      font-family: sans-serif;
      padding: 3rem 0 0;
    }

    .footer__inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* ── Grid ── */
    .footer__grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
      padding-bottom: 2.5rem;
    }

    @media (max-width: 1024px) {
      .footer__grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 580px) {
      .footer__grid {
        grid-template-columns: 1fr;
      }
    }

    /* ── Column headings ── */
    .footer__col h3 {
      font-size: 1rem;
      font-weight: 700;
      margin: 0 0 .5rem;
      color: #fff;
    }

    .footer__divider {
      border: none;
      border-top: 2px solid rgba(255,255,255,0.35);
      margin: 0 0 1.2rem;
    }

    /* ── Phone row ── */
    .footer__phone-row {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-bottom: 1rem;
    }

    .footer__phone-row span:first-child { font-size: 1.2rem; }
    .footer__phone-row span:last-child  { font-size: .875rem; color: rgba(255,255,255,0.9); }

    /* ── Sub-labels ── */
    .footer__label {
      font-weight: 700;
      font-size: .9rem;
      margin: 0 0 .5rem;
    }

    /* ── Ordered list ── */
    .footer__ol {
      padding-left: 1.1rem;
      margin: 0 0 1rem;
    }

    .footer__ol li {
      font-size: .82rem;
      color: rgba(255,255,255,0.85);
      margin-bottom: .3rem;
    }

    /* ── Social icons ── */
    .footer__social {
      margin-top: .75rem;
    }

    .footer__social-label {
      font-weight: 700;
      font-size: .9rem;
      margin: 0 0 .75rem;
    }

    .footer__social-icons {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .footer__social-icons a {
      width: 34px;
      height: 34px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      text-decoration: none;
      font-size: 14px;
      font-weight: 700;
    }

    /* ── Helpline / address rows ── */
    .footer__info-row {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-bottom: 1.2rem;
    }

    .footer__info-row .icon { font-size: 1.1rem; flex-shrink: 0; }

    .footer__info-row span,
    .footer__info-row a {
      font-size: .875rem;
      color: rgba(255,255,255,0.9);
      text-decoration: none;
      line-height: 1.6;
    }

    /* ── Download section ── */
    .footer__download-title {
      font-size: 1rem;
      font-weight: 700;
      margin: 2rem 0 .5rem;
      color: #fff;
    }

    /* ── Generic link list ── */
    .footer__linklist {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer__linklist li { margin-bottom: .45rem; }

    .footer__linklist a {
      font-size: .875rem;
      color: rgba(255,255,255,0.85);
      text-decoration: none;
      transition: color .2s;
    }

    .footer__linklist a:hover { color: #fff; }

    .footer__linklist a.highlight {
      color: #fff;
      font-weight: 700;
    }

    /* ── Bottom bar ── */
    .footer__bottom {
      border-top: 1px solid rgba(255,255,255,0.2);
      padding: 1rem 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: .5rem;
    }

    .footer__bottom p {
      font-size: .8rem;
      color: rgba(255,255,255,0.7);
    }

    .footer__bottom-links {
      display: flex;
      flex-wrap: wrap;
      gap: 1.25rem;
    }

    .footer__bottom-links a {
      font-size: .8rem;
      color: rgba(255,255,255,0.7);
      text-decoration: none;
      transition: color .2s;
    }

    .footer__bottom-links a:hover { color: #fff; }

    @media (max-width: 480px) {
      .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
      }
    }