:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --secondary: #FF6B6B;
    --accent: #4ECDC4;
    --yellow: #FFE66D;
    --orange: #FF8C42;
    --pink: #FF6B9D;
    --blue-light: #74B9FF;
    --green: #00B894;
    --bg-light: #F8F9FF;
    --text-dark: #2D3436;
    --text-muted: #636E72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s;
}

.loader-content {
    text-align: center;
    color: #fff;
}

.loader-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    transition: all 0.3s;
}

.navbar-custom.scrolled {
    padding: 5px 0;
    box-shadow: 0 2px 40px rgba(108, 99, 255, 0.15);
}

.navbar-brand-custom {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand-custom small {
    font-size: 0.55rem;
    display: block;
    -webkit-text-fill-color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-link-custom {
    font-weight: 700;
    color: var(--text-dark) !important;
    position: relative;
    margin: 0 5px;
    font-size: 0.9rem;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 70%;
}

.nav-link-custom:hover {
    color: var(--primary) !important;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background: var(--yellow);
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: 10%;
    left: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-shapes .shape-3 {
    width: 150px;
    height: 150px;
    background: var(--pink);
    top: 40%;
    right: 20%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--yellow);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 550px;
}

.hero-btns .btn-hero-primary {
    background: var(--yellow);
    color: var(--text-dark);
    border: none;
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s;
}

.hero-btns .btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 230, 109, 0.4);
}

.hero-btns .btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 700;
    font-size: 1rem;
    margin-left: 15px;
    transition: all 0.3s;
}

.hero-btns .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.hero-stats {
    margin-top: 50px;
    display: flex;
    gap: 40px;
}

.hero-stat {
    text-align: center;
    color: #fff;
}

.hero-stat h3 {
    font-size: 2.2rem;
    font-weight: 900;
}

.hero-stat p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.hero-illustration {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-illustration img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.hero-illustration-placeholder {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.hero-illustration-placeholder .edu-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
}

.hero-illustration-placeholder .edu-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: bounceIn 0.6s ease-out;
}

.edu-icon:nth-child(1) {
    background: rgba(255, 107, 107, 0.3);
    animation-delay: 0.1s;
}

.edu-icon:nth-child(2) {
    background: rgba(78, 205, 196, 0.3);
    animation-delay: 0.2s;
}

.edu-icon:nth-child(3) {
    background: rgba(255, 230, 109, 0.3);
    animation-delay: 0.3s;
}

.edu-icon:nth-child(4) {
    background: rgba(116, 185, 255, 0.3);
    animation-delay: 0.4s;
}

.edu-icon:nth-child(5) {
    background: rgba(255, 140, 66, 0.3);
    animation-delay: 0.5s;
}

.edu-icon:nth-child(6) {
    background: rgba(0, 184, 148, 0.3);
    animation-delay: 0.6s;
}

.edu-icon:nth-child(7) {
    background: rgba(255, 107, 157, 0.3);
    animation-delay: 0.7s;
}

.edu-icon:nth-child(8) {
    background: rgba(108, 99, 255, 0.3);
    animation-delay: 0.8s;
}

.edu-icon:nth-child(9) {
    background: rgba(253, 203, 110, 0.3);
    animation-delay: 0.9s;
}

/* Section styling */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(78, 205, 196, 0.1));
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* About */
.about-section {
    background: var(--bg-light);
}

.about-image-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-placeholder {
    width: 100%;
    min-height: 450px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}

.about-image-placeholder::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -20px;
    left: -20px;
}

.about-image-placeholder i {
    font-size: 5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.about-image-placeholder span {
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.9;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--yellow);
    color: var(--text-dark);
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.about-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.15);
}

.about-feature-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.about-feature-item span {
    font-weight: 700;
    font-size: 0.9rem;
}



/* ===================================================
   STUDENT HIGHLIGHT / TOPPERS SECTION
   =================================================== */

/* Section wrapper */
.toppers-section {
    background: linear-gradient(145deg, #0f0c29 0%, #1a1060 40%, #0e2259 75%, #0b3d4a 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Floating decorative blobs */
.toppers-bg-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
    animation: topperBlobFloat 9s ease-in-out infinite alternate;
}

.toppers-deco-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    top: -120px;
    left: -120px;
    animation-delay: 0s;
}

.toppers-deco-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #FFE66D, transparent 70%);
    bottom: -100px;
    right: -80px;
    animation-delay: -3s;
}

.toppers-deco-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #4ECDC4, transparent 70%);
    top: 40%;
    left: 55%;
    animation-delay: -6s;
}

@keyframes topperBlobFloat {
    from { transform: translateY(0) scale(1); }
    to   { transform: translateY(-40px) scale(1.08); }
}

/* Section tag override for dark bg */
.toppers-tag {
    background: rgba(255, 230, 109, 0.15) !important;
    color: #FFE66D !important;
    border: 1px solid rgba(255, 230, 109, 0.3);
    letter-spacing: 2px;
}

/* Section heading */
.toppers-heading {
    color: #fff !important;
    font-size: 2.6rem;
    font-weight: 900;
}

.toppers-heading span {
    background: linear-gradient(135deg, #FFE66D, #FF8C42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toppers-subtitle {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 1.1rem;
    margin-bottom: 40px !important;
}

/* ---- Batch Photo Frame ---- */
.topper-batch-photo {
    margin-bottom: 0;
}

.topper-batch-frame {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255,230,109,0.25), rgba(255,140,66,0.15), rgba(168,85,247,0.2));
    box-shadow:
        0 0 0 2px rgba(255, 230, 109, 0.4),
        0 25px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.topper-batch-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    object-fit: contain;
}

/* Decorative corner brackets */
.topper-batch-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    pointer-events: none;
    z-index: 3;
}

.topper-batch-corner::before,
.topper-batch-corner::after {
    content: '';
    position: absolute;
    background: #FFE66D;
    border-radius: 3px;
}

.topper-batch-corner::before { width: 4px; height: 100%; }
.topper-batch-corner::after  { width: 100%; height: 4px; }

.topper-bc-tl { top: 0; left: 0; }
.topper-bc-tr { top: 0; right: 0; transform: scaleX(-1); }
.topper-bc-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.topper-bc-br { bottom: 0; right: 0; transform: scale(-1); }

/* Badge on batch photo */
.topper-batch-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFE66D, #FF8C42);
    color: #1a1060;
    font-weight: 900;
    font-size: 1rem;
    padding: 10px 28px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

/* ---- Grid label ---- */
.toppers-grid-label {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #FFE66D;
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.toppers-grid-label i {
    font-size: 1rem;
    vertical-align: middle;
    opacity: 0.85;
}

/* ---- Topper Card Base ---- */
.topper-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 30px 22px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(12px);
    height: 100%;
}

.topper-card:hover {
    transform: translateY(-10px);
}

/* Subtle inner shine on hover */
.topper-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 60%);
    pointer-events: none;
}

/* Sparkles floating text */
.topper-sparkles {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 1.3rem;
    animation: sparkleFloat 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes sparkleFloat {
    from { transform: translateY(0) rotate(-5deg); opacity: 0.8; }
    to   { transform: translateY(-8px) rotate(5deg); opacity: 1; }
}

/* ---- Glow blobs per card (top 3) ---- */
.topper-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.25;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.topper-glow-gold   { background: #FFE66D; }
.topper-glow-silver { background: #c0c0c0; }
.topper-glow-bronze { background: #cd7f32; }

/* ---- Rank 1 (Gold) ---- */
.topper-rank-1 {
    border-color: rgba(255, 230, 109, 0.5);
    box-shadow: 0 0 40px rgba(255, 230, 109, 0.2), 0 20px 50px rgba(0,0,0,0.5);
    background: linear-gradient(160deg, rgba(255,230,109,0.12) 0%, rgba(255,140,66,0.08) 50%, rgba(255,255,255,0.04) 100%);
}

.topper-rank-1:hover {
    box-shadow: 0 0 60px rgba(255, 230, 109, 0.35), 0 30px 60px rgba(0,0,0,0.5);
}

/* ---- Rank 2 (Silver) ---- */
.topper-rank-2 {
    border-color: rgba(192, 192, 192, 0.45);
    box-shadow: 0 0 40px rgba(192,192,192,0.15), 0 20px 50px rgba(0,0,0,0.5);
    background: linear-gradient(160deg, rgba(192,192,192,0.12) 0%, rgba(160,160,170,0.06) 60%, rgba(255,255,255,0.04) 100%);
}

.topper-rank-2:hover {
    box-shadow: 0 0 60px rgba(200,200,200,0.3), 0 30px 60px rgba(0,0,0,0.5);
}

/* ---- Rank 3 (Bronze) ---- */
.topper-rank-3 {
    border-color: rgba(205, 127, 50, 0.45);
    box-shadow: 0 0 40px rgba(205,127,50,0.2), 0 20px 50px rgba(0,0,0,0.5);
    background: linear-gradient(160deg, rgba(205,127,50,0.14) 0%, rgba(180,100,30,0.06) 60%, rgba(255,255,255,0.04) 100%);
}

.topper-rank-3:hover {
    box-shadow: 0 0 60px rgba(205,127,50,0.3), 0 30px 60px rgba(0,0,0,0.5);
}

/* ---- Rank 4-9 (Rest) ---- */
.topper-rank-rest {
    border-color: rgba(108, 99, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.topper-rank-rest:hover {
    box-shadow: 0 20px 50px rgba(108,99,255,0.25), 0 0 30px rgba(78,205,196,0.1);
    border-color: rgba(108, 99, 255, 0.5);
}

/* ---- Rank badge ---- */
.topper-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.rank-gold   { background: linear-gradient(135deg, #FFE66D, #FF8C42); color: #1a1060; box-shadow: 0 4px 15px rgba(255,230,109,0.5); }
.rank-silver { background: linear-gradient(135deg, #e8e8e8, #a8a8a8); color: #1a1060; box-shadow: 0 4px 15px rgba(180,180,180,0.4); }
.rank-bronze { background: linear-gradient(135deg, #e0a060, #a0601c); color: #fff;    box-shadow: 0 4px 15px rgba(205,127,50,0.4); }
.rank-rest   { background: rgba(108,99,255,0.2); color: rgba(255,255,255,0.85); border: 1px solid rgba(108,99,255,0.4); }

.rank-num {
    font-size: 1rem;
    font-weight: 900;
}

/* ---- Avatar ---- */
.topper-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.topper-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    position: relative;
    transition: transform 0.3s ease;
}

.topper-card:hover .topper-avatar {
    transform: scale(1.1);
}

.topper-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.6;
}

.topper-av-gold   { background: linear-gradient(135deg, #FFE66D, #FF8C42); box-shadow: 0 8px 25px rgba(255,230,109,0.45); }
.topper-av-gold::after { border-color: #FFE66D; }

.topper-av-silver { background: linear-gradient(135deg, #e8e8e8, #909090); box-shadow: 0 8px 25px rgba(192,192,192,0.4); }
.topper-av-silver::after { border-color: #c0c0c0; }

.topper-av-bronze { background: linear-gradient(135deg, #e0a060, #a05010); box-shadow: 0 8px 25px rgba(205,127,50,0.4); }
.topper-av-bronze::after { border-color: #cd7f32; }

.topper-av-rest   { background: linear-gradient(135deg, #6C63FF, #4ECDC4); box-shadow: 0 8px 25px rgba(108,99,255,0.35); }
.topper-av-rest::after { border-color: #6C63FF; }

/* ---- Card info ---- */
.topper-info { position: relative; z-index: 1; }

.topper-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 4px;
}

.topper-subject {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

/* ---- Marks Progress Bar ---- */
.topper-marks {
    margin-bottom: 10px;
}

.marks-bar-wrap {
    height: 7px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.marks-bar {
    height: 100%;
    border-radius: 10px;
    position: relative;
    animation: marksGrow 1.2s ease-out both;
    animation-delay: 0.4s;
}

@keyframes marksGrow {
    from { width: 0 !important; }
    to   { /* keeps inline width */ }
}

.marks-bar-gold   { background: linear-gradient(90deg, #FFE66D, #FF8C42); box-shadow: 0 0 10px rgba(255,230,109,0.5); }
.marks-bar-silver { background: linear-gradient(90deg, #c8c8c8, #888); }
.marks-bar-bronze { background: linear-gradient(90deg, #e0a060, #a05010); }
.marks-bar-rest   { background: linear-gradient(90deg, #6C63FF, #4ECDC4); }

.marks-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.marks-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.marks-of {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* Percentage pill */
.topper-percent {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.topper-rank-1 .topper-percent { background: rgba(255,230,109,0.2); color: #FFE66D; }
.topper-rank-2 .topper-percent { background: rgba(192,192,192,0.2); color: #d0d0d0; }
.topper-rank-3 .topper-percent { background: rgba(205,127,50,0.2);  color: #e0a060; }

/* ---- Footer note ---- */
.toppers-footer-note {
    text-align: center;
    margin-top: 50px;
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    display: inline-block;
    width: 100%;
    letter-spacing: 0.3px;
}

.toppers-footer-note i {
    color: #FFE66D;
    margin-right: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .toppers-heading { font-size: 2rem; }

    .topper-batch-badge {
        font-size: 0.85rem;
        padding: 8px 18px;
        bottom: 12px;
    }
}

@media (max-width: 767.98px) {
    .toppers-heading { font-size: 1.65rem; }
    .toppers-subtitle { font-size: 0.95rem !important; }

    .topper-batch-img { max-height: 260px; }
    .topper-batch-corner { width: 26px; height: 26px; }

    .topper-batch-badge {
        font-size: 0.78rem;
        padding: 7px 14px;
        bottom: 8px;
    }

    .topper-avatar { width: 64px; height: 64px; font-size: 1.8rem; }
    .topper-name   { font-size: 0.95rem; }
    .marks-num     { font-size: 1.25rem; }
}

@media (max-width: 575.98px) {
    .toppers-heading { font-size: 1.4rem; }

    .topper-card { padding: 22px 16px 18px; }

    .topper-batch-img { max-height: 200px; }

    .toppers-footer-note {
        font-size: 0.85rem;
        padding: 14px 16px;
        border-radius: 16px;
    }
}






/* Vision Mission */
.vm-section {
    background: #fff;
}

.vm-card {
    background: linear-gradient(135deg, var(--bg-light), #fff);
    border-radius: 25px;
    padding: 40px;
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.vm-card:hover {
    border-color: rgba(108, 99, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.1);
}

.vm-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.vm-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.vm-card ul {
    list-style: none;
    padding: 0;
}

.vm-card ul li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
}

.vm-card ul li i {
    color: var(--green);
    margin-top: 4px;
}

/* Courses */
.courses-section {
    background: var(--bg-light);
}

.course-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    border-color: rgba(108, 99, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.12);
}

.course-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: #fff;
}

.course-card h4 {
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.course-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Programs */
.programs-section {
    background: #fff;
}

.program-category-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 30px;
    padding: 15px 25px;
    border-radius: 15px;
    display: inline-block;
}

.program-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.1);
}

.program-card h5 {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.program-card ul {
    list-style: none;
    padding: 0;
}

.program-card ul li {
    padding: 5px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.program-card ul li i {
    color: var(--accent);
    margin-right: 8px;
}

.program-card .program-note {
    margin-top: 12px;
    padding: 8px 15px;
    background: rgba(108, 99, 255, 0.08);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

/* Why Choose */
.why-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='m0 40l40-40h-20l-40 40zm40 0v-40h-20l-40 40'/%3E%3C/g%3E%3C/svg%3E");
}

.why-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.why-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--yellow);
}

.why-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Teaching Approach */
.approach-section {
    background: var(--bg-light);
}

.approach-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.approach-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.12);
}

.approach-num {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.approach-item h5 {
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 1rem;
}

.approach-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Faculty */
.faculty-section {
    background: #fff;
}

.faculty-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s;
    height: 100%;
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.12);
}

.faculty-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faculty-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.faculty-card h5 {
    font-weight: 800;
    margin-bottom: 3px;
    font-size: 1rem;
}

.faculty-card .faculty-subject {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.faculty-card .faculty-exp {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.faculty-card .faculty-social {
    margin-top: 12px;
}

.faculty-card .faculty-social a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    color: var(--primary);
    margin: 0 3px;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.faculty-card .faculty-social a:hover {
    background: var(--primary);
    color: #fff;
}

/* Students */
.students-section {
    background: var(--bg-light);
}

.student-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.student-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.12);
}

.student-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    font-weight: 800;
}

.student-avatar img {
    width: 99%;
    height: 99%;
    border-radius: 50%;
    object-fit: cover;
}

.student-card h5 {
    font-weight: 800;
    margin-bottom: 3px;
}

.student-card .student-class {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.student-card .student-score {
    font-weight: 800;
    color: var(--green);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.student-card .student-quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    padding: 0 10px;
}

.student-card .student-quote::before {
    content: '\201C';
    font-size: 3rem;
    color: rgba(108, 99, 255, 0.2);
    position: absolute;
    top: -15px;
    left: -5px;
}

/* Gallery */
.gallery-section {
    background: #fff;
}

.gallery-filters {
    margin-bottom: 40px;
}

.gallery-filters .filter-btn {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
}

.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.4s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    font-weight: 700;
    position: relative;
}

.gallery-item-inner i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gallery-item-inner span {
    font-size: 0.9rem;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: #fff;
}

.gallery-item.hidden {
    display: none;
}

/* Brochure */
.brochure-section {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    position: relative;
    overflow: hidden;
}

.brochure-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.brochure-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    position: relative;
}

.brochure-card h2 {
    color: #fff;
    font-weight: 900;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.brochure-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-brochure {
    background: var(--yellow);
    color: var(--text-dark);
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-brochure:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.brochure-upload-area {
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.8);
}

.brochure-upload-area:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.brochure-upload-area i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.brochure-upload-area p {
    margin: 0;
}

/* Achievements */
.achievements-section {
    background: var(--bg-light);
}

.counter-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.counter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.1);
}

.counter-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.counter-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.counter-card p {
    color: var(--text-muted);
    font-weight: 600;
}

/* Tips */
.tips-section {
    background: #fff;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.tip-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.08);
}

.tip-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.2rem;
}

.tip-item h6 {
    font-weight: 700;
    margin-bottom: 3px;
}

.tip-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA / Join */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: var(--yellow);
    color: var(--text-dark);
    border: none;
    border-radius: 50px;
    padding: 16px 45px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 230, 109, 0.4);
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer h5 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    color: var(--yellow);
}

.footer-links li {
    padding: 5px 0;
}

.footer-links li i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 40px;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.4);
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
    text-align: center;
}

.lightbox-modal .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    filter: invert(1);
    z-index: 10;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 25px;
        flex-wrap: wrap;
    }

    .hero-illustration-placeholder {
        max-width: 350px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-btns .btn-hero-secondary {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-illustration-placeholder {
        margin-top: 40px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .edu-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    .hero-illustration-placeholder .edu-icons {
        gap: 12px;
        padding: 25px;
    }

    .brochure-card {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-title {
        font-size: 1.7rem;
    }
}

/* Marquee for faculty on mobile */
.faculty-scroll-wrapper {
    overflow: hidden;
}