
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    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 (homepage version)
═══════════════════════════════════════════════════════════ */
.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; }

/* ═══════════════════════════════════════════════════════════
   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); }

/* ═══════════════════════════════════════════════════════════
   STATS (modern cards)
═══════════════════════════════════════════════════════════ */
.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; }

/* ═══════════════════════════════════════════════════════════
   COUNTDOWN / DEADLINE
═══════════════════════════════════════════════════════════ */
.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); }

/* ═══════════════════════════════════════════════════════════
   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; }

/* ═══════════════════════════════════════════════════════════
   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 SECTION
═══════════════════════════════════════════════════════════ */
.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; }

/* ═══════════════════════════════════════════════════════════
   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; }

/* ═══════════════════════════════════════════════════════════
   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; }

/* ═══════════════════════════════════════════════════════════
   FIXED ENQUIRE BUTTON + 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; }

/* ═══════════════════════════════════════════════════════════
   HOME PAGE — RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .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); }
    .journey-container { grid-template-columns: 300px 1fr; }
    .research-grid   { grid-template-columns: 1fr; }
    .international-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .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-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; }
    .hero-video-wrapper { display: none; }

    .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-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; }

    .placements-section { padding: 72px 0; }
    .rankings-grid { gap: 12px; }
    .ranking-card  { min-width: 130px; padding: 20px 14px; }
    .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%; }
}

@media (max-width: 600px) {
    .hero         { min-height: 100svh; }
    .slide-inner  { padding: 80px 18px 120px; gap: 22px; }
    .slide-float-card { height: 200px; max-width: 100%; }
    .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-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; }

    .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); }

    .cta-buttons    { flex-direction: column; align-items: center; }
    .popup-image    { display: none; }
    .popup-form-container { padding: 24px 18px; }
    .fixed-enquire-btn { font-size: 0.76rem; padding: 10px 14px; bottom: 14px; right: 14px; }

    .about-section  { padding-top: 56px; }
    .experience-badge { padding: 16px 18px; }
    .experience-years { font-size: 2.2rem; }

    .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-viewport { overflow: hidden; }
    .alumni-slide { min-width: 100% !important; flex: 0 0 100% !important; }

    .countdown-boxes { gap: 8px; }
    .countdown-box   { padding: 10px 12px; min-width: 58px; }
    .countdown-box .count-num { font-size: 1.5rem; }
}

@media (min-width: 601px) and (max-width: 900px) {
    .alumni-slide { min-width: 50% !important; flex: 0 0 50% !important; }
}

@media (max-width: 400px) {
    .slide-inner  { padding: 60px 14px 100px; }
    .slide-center h1 { font-size: 1.7rem; }
    .slide-float-card { display: none !important; }
    .fixed-enquire-btn span { display: none; }
    .fixed-enquire-btn { padding: 12px; border-radius: 50%; }
    .recruiters-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}