/* --- GLOBAL VARIABLES --- */
:root {
    --primary: #0f172a;      /* Dark Navy */
    --secondary: #1e293b;    /* Lighter Navy */
    --accent: #f59e0b;       /* Gold/Amber */
    --accent-glow: #fbbf24;  /* Brighter Gold for glow */
    --text-light: #f1f5f9;
    --text-dark: #334155;
    --white: #ffffff;
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #172554 100%);
    --card-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f0f4f8;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- NAVIGATION --- */
/* --- PREMIUM ANIMATED NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(15, 23, 42, 0.2); /* Transparent initially */
    backdrop-filter: blur(10px); /* Glass Effect */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* State when scrolling down */
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95); /* Darker solid color */
    padding: 0.8rem 5%; /* Shrinks slightly */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--accent);
}

/* Logo Styling */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.logo i {
    color: var(--accent);
    transition: 0.5s;
    filter: drop-shadow(0 0 5px var(--accent));
}

.logo:hover i {
    transform: rotate(360deg); /* Spins on hover */
}

/* Nav Links Container */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Link Styling */
.nav-links a {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Animated Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease-in-out;
    box-shadow: 0 0 10px var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Active Link State */
.nav-links a.active {
    color: var(--accent);
}
.nav-links a.active::after {
    width: 100%;
}

/* Special "Join" Button in Nav */


.nav-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0%; height: 100%;
    background: var(--accent);
    transition: 0.3s;
    z-index: -1;
}


/* --- DROPDOWN CSS --- */

/* 1. Container for the dropdown */
.dropdown {
    position: relative; /* Needed to position the menu below it */
}

/* 2. The Dropdown Menu (Hidden by default) */
.dropdown-content {
    position: absolute;
    top: 100%; /* Pushes it right below the link */
    left: 0;
    background: rgba(15, 23, 42, 0.95); /* Dark background */
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-top: 3px solid var(--accent); /* Gold top border */
    border-radius: 0 0 10px 10px;
    
    /* Animation Properties */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    
    /* Reset list styles */
    display: block; 
    padding: 10px 0;
}

/* 3. Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 4. Links inside the Dropdown */
.dropdown-content li {
    display: block; /* Stack them vertically */
    margin: 0;
}

.dropdown-content li a {
    display: block;
    padding: 12px 20px;
    color: #cbd5e1;
    font-size: 0.95rem;
    white-space: nowrap; /* Prevents text breaking */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
    padding-left: 25px; /* Slide effect on hover */
}

/* Remove the 'underline' effect from the main dropdown parent link if preferred, 
   or keep it. The below removes the glowing line for the submenu items */
.dropdown-content li a::after {
    display: none; 
}

/* --- MOBILE RESPONSIVE DROPDOWN --- */
/* --- MOBILE RESPONSIVE DROPDOWN FIX --- */
/* --- COMPLETE MOBILE MENU FIX (Aligned & Clean) --- */



/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    transition: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        background: var(--primary); /* Solid bg on mobile */
        padding: 1rem 5%;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%); /* Hidden top */
        transition: 0.5s ease;
        border-bottom: 2px solid var(--accent);
    }

    .nav-links.active {
        transform: translateY(0); /* Slides down */
    }
    
    .menu-toggle {
        display: block;
    }
}

/* --- BUTTON WITH MOVING LIGHT BORDER --- */
.btn-neon {
    position: relative;
    padding: 12px 30px;
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border-radius: 5px;
    transition: 0.5s;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.btn-neon:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent), 0 0 40px var(--accent);
}

.btn-neon span {
    position: absolute;
    display: block;
}

/* Top Line Animation */
.btn-neon span:nth-child(1) {
    top: 0; left: -100%; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent));
    animation: btn-anim1 1s linear infinite;
}
@keyframes btn-anim1 { 0% { left: -100%; } 50%,100% { left: 100%; } }

/* Right Line Animation */
.btn-neon span:nth-child(2) {
    top: -100%; right: 0; width: 2px; height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent));
    animation: btn-anim2 1s linear infinite; animation-delay: 0.25s;
}
@keyframes btn-anim2 { 0% { top: -100%; } 50%,100% { top: 100%; } }

/* Bottom Line Animation */
.btn-neon span:nth-child(3) {
    bottom: 0; right: -100%; width: 100%; height: 2px;
    background: linear-gradient(270deg, transparent, var(--accent));
    animation: btn-anim3 1s linear infinite; animation-delay: 0.5s;
}
@keyframes btn-anim3 { 0% { right: -100%; } 50%,100% { right: 100%; } }

/* Left Line Animation */
.btn-neon span:nth-child(4) {
    bottom: -100%; left: 0; width: 2px; height: 100%;
    background: linear-gradient(360deg, transparent, var(--accent));
    animation: btn-anim4 1s linear infinite; animation-delay: 0.75s;
}
@keyframes btn-anim4 { 0% { bottom: -100%; } 50%,100% { bottom: 100%; } }


/* --- HERO SECTION --- */
.hero-section {
    height: 95vh;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), 
                url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Floating Particles Background */
.hero-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(var(--secondary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid { 0% { transform: translateY(0); } 100% { transform: translateY(-50px); } }

.hero-content { z-index: 2; position: relative; }

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
    line-height: 1.1;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(to right, #f59e0b, #fbbf24, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p { font-size: 1.3rem; margin-bottom: 40px; color: #cbd5e1; }


/* --- AGE CALCULATOR SECTION --- */
.calc-section {
    background: var(--primary);
    padding: 80px 10%;
    color: white;
    text-align: center;
}

.calc-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.calc-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.calc-input-group input {
    padding: 15px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.result-box {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
    min-height: 30px;
}

/* --- SECTIONS COMMON --- */
.section-padding { padding: 80px 10%; }
.section-header { text-align: center; margin-bottom: 10px; }
.section-header h2 { font-size: 3rem; color: var(--primary); margin-bottom: 10px; }
.section-header p { color: #64748b; font-size: 1.1rem; }

/* --- CARD HOVER EFFECTS --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    border-top: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-15px);
    border-top: 5px solid var(--accent);
}

.card i { font-size: 3.5rem; color: var(--secondary); margin-bottom: 20px; transition: 0.3s; }
.card:hover i { color: var(--accent); transform: scale(1.1); }


/* --- SELECTION / TESTIMONIALS --- */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.selection-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    text-align: center;
}
.selection-img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    background: #ccc;
}
.selection-info { padding: 20px; }
.selection-info h4 { color: var(--primary); font-size: 1.2rem; }
.selection-info span { color: var(--accent); font-weight: bold; font-size: 0.9rem; }


/* --- FOOTER --- */
/* --- NEW PREMIUM FOOTER --- */
/* --- PREMIUM FOOTER STYLES --- */
footer {
    background: linear-gradient(to right, #0f172a, #020617); /* Deep Navy Gradient */
    color: #cbd5e1;
    position: relative;
    font-size: 0.95rem;
}


.footer-wave svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: #0f172a; /* Matches footer background */
}

.footer-container {
    padding: 40px 10% 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Footer Columns */
.footer-col h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* Golden underline under headings */
.footer-col h3::after {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -8px;
    border-radius: 2px;
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #94a3b8;
}

/* Links Styling */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px); /* Slide right effect */
}

/* Contact Info Styling */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

/* Footer Bottom Bar */
.footer-bottom {
    background: #020617;
    padding: 20px 10%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-bottom span {
    color: var(--accent);
    font-weight: 500;
}
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; right: -100%; top: 70px; height: 100vh; width: 100%;
        background: var(--primary); flex-direction: column; align-items: center;
        justify-content: center; transition: 0.4s; z-index: 999;
    }
    .nav-links.active { right: 0; }
    .menu-toggle { display: block; font-size: 1.5rem; cursor: pointer; color: white; }
    .hero-content h1 { font-size: 2.5rem; }
}

/* --- UPDATED GRID FOR 4 ITEMS IN A ROW --- */
.section-padding {
    padding: 80px 2%; /* Reduced side padding to fit 4 cards */
    max-width: 1600px; /* Allow site to be wider */
    margin: 0 auto;
}

.grid-container {
    display: grid;
    /* This forces exactly 4 columns on large screens */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Smaller gap to fit everything */
    justify-content: center;
}

/* --- RECTANGULAR BANNER & CARD --- */
.card {
    background: var(--white);
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Makes all cards equal height */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.course-banner {
    width: 100%;
    /* 16:9 Aspect Ratio for perfect Rectangle */
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid var(--accent); /* Adds a nice divider */
}

.course-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills rectangle without stretching */
    transition: 0.5s;
}

.card:hover .course-banner img {
    transform: scale(1.1);
}

/* Card Content Styling */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.2rem; /* Slightly smaller text to fit */
    margin-bottom: 10px;
    color: var(--primary);
    white-space: nowrap; /* Prevents title from breaking lines if possible */
}

.card-content ul {
    flex-grow: 1; /* Pushes buttons to the bottom */
    padding-left: 0;
    margin-bottom: 15px;
}

.card-content ul li {
    list-style: none;
    font-size: 0.85rem; /* Smaller font to fit content */
    margin-bottom: 5px;
    color: #555;
}

.card-content ul li::before {
    content: '►';
    color: var(--accent);
    margin-right: 5px;
    font-size: 0.8rem;
}

/* Button Group *//* --- UPDATED DUAL BUTTONS (Slimmer & Animated) --- *//* --- UPDATED DUAL BUTTONS (Fixed Alignment) --- */
.course-btn-group {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
}

.btn-card {
    padding: 10px 0; /* Slightly more padding for touch targets */
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* FLEXBOX ALIGNMENT FIX */
    display: flex;
    align-items: center;      /* Vertically centers text and icon */
    justify-content: center;  /* Horizontally centers content */
    gap: 8px;                 /* Space between text and icon */
    line-height: 1;           /* Removes extra text spacing issues */
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

/* 1. Read More Button */
.btn-read {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-read::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--primary);
    transition: 0.3s ease;
    z-index: -1;
}

.btn-read:hover {
    color: white;
    transform: translateY(-3px);
}

.btn-read:hover::before { width: 100%; }

/* 2. WhatsApp Button */
.btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* Icon Specific Fix */
.btn-whatsapp i {
    font-size: 1rem; /* Icon size */
    margin-top: -50px;  /* Micro-adjustment to lift icon slightly if it looks dropped */
}

.btn-whatsapp::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:hover::after { left: 100%; }

/* Mobile Adjustment for buttons */
@media (max-width: 400px) {
    .course-btn-group {
        grid-template-columns: 1fr; /* Stack buttons on very small screens */
    }
}
/* --- RESPONSIVE MEDIA QUERIES --- */
/* On Tablets (IPad) -> 2 per row */
@media (max-width: 1100px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* On Mobile Phones -> 1 per row */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .section-padding {
        padding: 60px 5%;
    }
}

@media (max-width: 400px) {
    .course-btn-group { grid-template-columns: 1fr; }
}

/* --- STUDENT REVIEW SECTION --- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.4s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

/* Big Quote Icon in Background */
.review-card::before {
    content: '\f10d'; /* FontAwesome Quote Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    color: rgba(245, 158, 11, 0.1); /* Faint Gold */
    z-index: 0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.reviewer-info h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.reviewer-info span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.review-stars {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.review-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* --- POP-UP MODAL STYLES --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark background */
    z-index: 9999; /* Highest priority to sit on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Animation States */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

/* Class to show the modal */
.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: transparent;
    padding: 0;
    width: 90%;
    max-width: 500px; /* Max width of the image */
    position: relative;
    border-radius: 15px;
    transform: scale(0.7); /* Starts small */
    transition: all 0.5s ease;
}

/* Animation when active */
.popup-overlay.show .popup-content {
    transform: scale(1); /* Zooms to normal size */
}

.popup-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 4px solid var(--white);
}

/* The Close 'X' Button */
.close-popup {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #ef4444; /* Red color */
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 2px solid white;
    transition: 0.3s;
    z-index: 10;
}

.close-popup:hover {
    background: #dc2626;
    transform: rotate(90deg); /* Spins when hovered */
}
/* About us */
/* --- SUB-PAGE HEADER (For About, Courses, Contact) --- */
.page-header {
    height: 50vh; /* Shorter than home page */
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), 
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 50px;
    position: relative;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Breadcrumb style (Home > About) */
.breadcrumb {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 10px;
}
/* About us end*/

/* --- NEW HALL OF FAME (NESTING GRID) --- */

/* Section Background & Padding */
.hof-section {
    padding: 80px 5%; /* Slightly wider on sides */
    background-color: #1e293b; /* Dark background for premium feel */
}

/* Header Styling */
.hof-header {
    text-align: center;
    margin-bottom: 50px;
}

.hof-header h2 {
    font-size: 3rem;
    color: var(--white); /* Using white text on dark bg */
    margin-bottom: 10px;
}

.hof-header p {
    color: #94a3b8; /* Lighter gray text */
    font-size: 1.1rem;
}

/* The Nesting Grid Layout */
.hof-grid {
    display: grid;
    /* This magic line creates the responsive nesting: */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* The Individual Student Tile */
.hof-tile {
    position: relative;
    border-radius: 15px;
    overflow: hidden; /* Keeps image zoom inside box */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    /* Ensures all tiles are portrait rectangles */
    aspect-ratio: 3 / 4; 
}

/* The Student Image */
.hof-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* The Dark Gradient Overlay */
.hof-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* Covers bottom 60% of image */
    background: linear-gradient(to top, rgba(15, 23, 42, 1), transparent);
    display: flex;
    align-items: flex-end; /* Pushes text to bottom */
    padding: 20px;
    opacity: 0.9;
    transition: 0.3s;
}

/* Text Container */
.hof-text {
    width: 100%;
}

.hof-text h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* The Gold Achievement Badge */
.hof-badge {
    display: inline-block;
    background: var(--accent); /* Uses your brand gold color */
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

/* --- Hover Animations --- */

/* Zoom image slightly */
.hof-tile:hover .hof-img {
    transform: scale(1.1);
}

/* Make overlay darker */
.hof-tile:hover .hof-overlay {
    opacity: 1;
    height: 70%; /* Gradient rises slightly */
}

/* Lift the tile up */
.hof-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- SSC PAGE SPECIFIC STYLES --- */

/* 1. Animated Hero Section */
.ssc-hero {
    height: 70vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.8)), 
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed; /* Parallax Effect */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Floating Badge in Hero */
.hero-badge {
    position: absolute;
    right: 10%;
    top: 30%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
    display: none; /* Hidden on mobile */
}

@media (min-width: 768px) {
    .hero-badge { display: block; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* 2. Gradient Cards for "Why SSC" */
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    transition: 0.4s;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.feature-card:hover::before {
    height: 100%; /* Fills card on hover */
    z-index: -1;
    opacity: 0.1;
}

.feature-icon-box {
    width: 70px; height: 70px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: 0.4s;
}

.feature-card:hover .feature-icon-box {
    background: var(--accent);
    color: white;
    transform: rotateY(360deg);
}

/* 3. Importance Section (Battle Strategy Look) */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.strategy-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: 0.3s;
}

/* Glowing Border Animation */
.strategy-card.maths { border-top: 5px solid #3b82f6; }
.strategy-card.reasoning { border-top: 5px solid #f59e0b; }

.strategy-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.score-meter {
    background: #f1f5f9;
    height: 10px;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%; /* Animates via AOS or inline style */
    transition: width 1.5s ease-out;
}

/* 4. Total Marks Pulse */
.total-marks-circle {
    width: 150px;
    height: 150px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.7);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(15, 23, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0); }
}


/* --- DEFENCE PAGE SPECIFIC STYLES --- */

/* 1. Tactical Hero Section */
.defence-hero {
    height: 70vh;
    /* Dark overlay + Jet Fighter Image */
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6)), 
                url('https://images.unsplash.com/photo-1543965860-82f346e3fb21?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Radar Animation Effect in Hero */
.radar-scan {
    position: absolute;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(74, 222, 128, 0.3); /* Green radar color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-scan::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: conic-gradient(transparent 270deg, rgba(74, 222, 128, 0.4));
    border-radius: 50%;
    animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin { 100% { transform: rotate(360deg); } }

/* 2. Exam Cards (Military Cards) */
.military-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.military-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

/* Specific Border Colors */
.military-card.nda { border-bottom-color: #16a34a; } /* Army Green */
.military-card.cds { border-bottom-color: #2563eb; } /* Navy Blue */
.military-card.afcat { border-bottom-color: #0ea5e9; } /* Sky Blue */

.military-card:hover {
    transform: translateY(-10px);
}

.m-card-header {
    padding: 20px;
    color: white;
    text-align: center;
}

.nda .m-card-header { background: #15803d; }
.cds .m-card-header { background: #1e40af; }
.afcat .m-card-header { background: #0284c7; }

.m-card-body { padding: 25px; }

.m-list li {
    list-style: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-list li i { color: var(--accent); }

/* 3. The "Maths is Key" Warning Section */
.alert-box {
    background: #fff1f2;
    border-left: 5px solid #e11d48;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

/* --- BANKING PAGE SPECIFIC STYLES --- */

/* 1. Corporate Hero Section */
.bank-hero {
    height: 70vh;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(124, 58, 237, 0.6)), 
                url('https://images.unsplash.com/photo-1601597111158-2fceff292cdc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Floating Graph Animation in Hero */
.graph-anim {
    position: absolute;
    right: 10%;
    bottom: 20%;
    width: 300px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px;
}

.graph-bar {
    width: 30px;
    background: #4ade80; /* Green bars */
    border-radius: 5px 5px 0 0;
    animation: growBar 2s infinite alternate;
}

@keyframes growBar {
    0% { height: 20%; }
    100% { height: 90%; }
}

/* 2. Banking Exam Cards (Purple Theme) */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.bank-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-top: 5px solid #7c3aed; /* Purple Border */
    position: relative;
}

.bank-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.bank-icon {
    width: 60px; height: 60px;
    background: #f3e8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* 3. The "Speed Game" Timer Section */
.timer-section {
    background: #1e1b4b; /* Deep Indigo */
    color: white;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.timer-circle {
    min-width: 120px;
    height: 120px;
    border: 5px solid #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    animation: pulse-orange 1.5s infinite;
}

@keyframes pulse-orange {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* --- STATE EXAMS PAGE SPECIFIC STYLES --- */

/* 1. Himalayan Hero Section */
.state-hero {
    height: 70vh;
    /* Dark overlay + Himalaya/Mussoorie Image */
    background: linear-gradient(to right, rgba(20, 83, 45, 0.85), rgba(15, 23, 42, 0.7)), 
                url('https://images.unsplash.com/photo-1596541223298-b80c5e662973?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Floating Map Pin Animation */
.map-pin-anim {
    position: absolute;
    right: 15%;
    top: 40%;
    animation: bouncePin 2s infinite;
}

@keyframes bouncePin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 2. Exam Cards (Nature Theme) */
.state-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-left: 5px solid #16a34a; /* Green Border */
    position: relative;
    overflow: hidden;
}

.state-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.2);
}

.state-card h3 { color: #166534; margin-bottom: 10px; }

/* 3. The "Subject Weightage" Bars */
.pattern-section {
    background: #f0fdf4; /* Light Green Bg */
    padding: 60px 10%;
}

.subject-row {
    margin-bottom: 25px;
}

.subject-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: #16a34a;
    width: 0%; /* Animates via inline style */
    transition: width 1.5s ease-out;
}

/* Different colors for subjects */
.bar-gk { background: #f97316; } /* Saffron for UK GK */
.bar-hindi { background: #ea580c; }
.bar-maths { background: #16a34a; } /* Green */