/* ============================================================
   1. GLOBAL RESET & VARIABLES (UPDATED FOR NATIVE DARK MODE)
   ============================================================ */
:root {
    /* Browser ko batayen k ye site Dark/Light dono support krti hy */
    color-scheme: light dark; 
    
    /* --- LIGHT THEME (Default) --- */
    --primary: #2563eb;       
    --secondary: #1e3c72;     
    --gold: #ffcc00;          
    --text: #334155;
    --bg: #f8fafc;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --icon-bg: #f0f4f8;
    --input-bg: #ffffff;
    --placeholder: #64748b;
}

/* --- DARK THEME OVERRIDES --- */
[data-theme="dark"] {
    /* Force Browser to use Dark Native Controls (Dropdowns, Scrollbars etc) */
    color-scheme: dark;
    
    --primary: #60a5fa;       
    --secondary: #f1f5f9;     
    --text: #cbd5e1;          
    --bg: #0f172a;            
    --white: #1e293b;         
    --card-bg: #1e293b;
    --border: #334155;        
    --icon-bg: #334155;       
    --input-bg: #1e293b;      
    --placeholder: #94a3b8;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    color: var(--text);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s; /* Smooth Transition */
}

a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   2. HEADER STYLES
   ============================================================ */
.main-header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1050; 
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.brand-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon { color: var(--gold); font-size: 28px; }
.logo-text { letter-spacing: -0.5px; }
.highlight { color: var(--gold); }

/* NAVIGATION LINKS */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text); /* Uses variable for Dark Mode */
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link .fa-chevron-down {
    transition: transform 0.3s ease; 
}

/* DROPDOWN (Desktop) */
.nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 60px;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    min-width: 240px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    border: 1px solid var(--border);
    z-index: 1100;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.dropdown-menu a:hover {
    background: var(--bg);
    color: var(--primary);
    padding-left: 25px;
}

/* --- THEME TOGGLE BUTTON STYLE --- */
.theme-btn {
    background: var(--icon-bg);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 18px;
    margin-left: 15px;
}
.theme-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
/* Fix for Blue Highlight on Click */
.theme-btn:focus, .theme-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background-color: var(--icon-bg);
    border-color: var(--border);
    color: var(--text);
}

.mobile-toggle, .sidebar-header { display: none; }
.header-left-group { display: flex; align-items: center; gap: 15px; }

/* ============================================================
   3. MOBILE RESPONSIVE (DARK MODE FIXED)
   ============================================================ */
@media (max-width: 991px) {
    .mobile-toggle { display: block; font-size: 24px; background: none; border: none; cursor: pointer; color: var(--text); }
    
    .nav-links { 
        position: fixed; top: 0; left: -320px; width: 85%; max-width: 300px; height: 100vh; 
        background: var(--white); /* Updated */
        flex-direction: column; padding: 0; box-shadow: 10px 0 30px rgba(0,0,0,0.2); 
        transition: 0.3s ease-in-out; z-index: 1100; align-items: stretch; overflow-y: auto; 
    }
    .nav-links.active { left: 0; }
    
    .sidebar-header { 
        display: flex; justify-content: space-between; align-items: center; padding: 20px; 
        background: var(--white); /* Updated */
        border-bottom: 1px solid var(--border); 
    }
    
    .close-btn { background: none; border: none; font-size: 24px; color: var(--text); }
    
    .nav-item-dropdown { display: block; width: 100%; height: auto; }
    
    .nav-link { 
        width: 100%; padding: 15px 20px; 
        border-bottom: 1px solid var(--border); 
        justify-content: space-between; 
        color: var(--text); /* Updated */
        background: var(--white); /* Updated */
    }
    
    .nav-item-dropdown.active .nav-link .fa-chevron-down { transform: rotate(180deg); color: var(--primary); }
    .nav-item-dropdown.active .nav-link { color: var(--primary); font-weight: 700; }
    
    .dropdown-menu { 
        position: static; width: 100%; box-shadow: none; border: none; 
        background: var(--white); /* Updated */
        opacity: 1; visibility: visible; transform: none; display: none; padding: 0; 
    }
    .nav-item-dropdown.active .dropdown-menu { display: block; }
    
    .dropdown-menu a { 
        padding-left: 40px; font-size: 14px; 
        color: var(--text); 
        border-bottom: 1px solid var(--border); 
    }
    
    .sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; backdrop-filter: blur(2px); }
    .sidebar-overlay.active { display: block; }
}

/* ============================================================
   4. HOMEPAGE STYLES
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 80px 0; color: white; text-align: center; border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); margin-bottom: 60px;
}
.hero-title { font-weight: 800; font-size: 2.5rem; margin-bottom: 15px; }
.search-container { position: relative; max-width: 600px; margin: 30px auto; }

/* SEARCH BOX UPDATED */
.main-search { 
    width: 100%; padding: 18px 30px; border-radius: 50px; 
    border: 1px solid transparent; 
    font-size: 17px; outline: none; 
    background-color: var(--white); /* Variable */
    color: var(--text);
    transition: 0.3s;
}
[data-theme="dark"] .main-search { border-color: var(--border); }
[data-theme="dark"] .main-search::placeholder { color: var(--placeholder); }

.search-btn-icon { position: absolute; right: 5px; top: 5px; height: 50px; width: 50px; background: var(--gold); border: none; border-radius: 50%; color: #333; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.section-heading { text-align: center; font-weight: 800; margin-bottom: 40px; text-transform: uppercase; color: var(--secondary); }
.section-heading span { color: var(--primary); }

/* CARDS COMMON STYLES */
.org-card, .job-card, .subject-card {
    background: var(--white);
    border-radius: 15px; padding: 25px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; height: 100%;
    border: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    text-decoration: none; 
    color: var(--text);
}
.org-card:hover, .job-card:hover, .subject-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.org-card h5, .job-card h5 { color: var(--text); }

.org-icon-box { 
    width: 70px; height: 70px; 
    background: var(--icon-bg); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--secondary); margin-bottom: 15px; 
}

/* Job Borders */
.job-card { position: relative; overflow: hidden; }
.job-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.border-police::before { background: #2563eb; } .border-army::before { background: #166534; } .border-fia::before { background: #dc2626; } .border-edu::before { background: #eab308; } .border-rail::before { background: #9333ea; }

/* Subject Gradients */
.bg-gk { background: linear-gradient(45deg, #ff9966, #ff5e62); color: white; } .bg-isl { background: linear-gradient(45deg, #56ab2f, #a8e063); color: white; } .bg-pak { background: linear-gradient(45deg, #11998e, #38ef7d); color: white; } .bg-eng { background: linear-gradient(45deg, #4568dc, #b06ab3); color: white; } .bg-sci { background: linear-gradient(45deg, #F2994A, #F2C94C); color: white; } .bg-com { background: linear-gradient(45deg, #3a7bd5, #3a6073); color: white; }
.subject-card i { font-size: 50px; opacity: 0.3; margin-bottom: 10px; }

/* ============================================================
   5. NEW ADDITIONS (MOCK & STATS)
   ============================================================ */
.mock-banner-simple {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.2);
}
.mock-btn-simple {
    background: white;
    color: #11998e;
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: 0.3s;
}
.mock-btn-simple:hover { transform: scale(1.05); color: #0e7f76; }

/* Stats Section */
.stats-section-simple {
    background: var(--white);
    padding: 50px 0;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}
.stat-box { text-align: center; margin-bottom: 20px; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--secondary); margin-bottom: 5px; }
.stat-label { color: #64748b; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
/* ============================================================
   6. FOOTER STYLES
   ============================================================ */
.ratoolz-footer { 
    background-color: #f1f5f9; /* Overridden in Dark Mode */
    color: #334155; 
    padding-top: 80px; margin-top: 100px; 
    transition: background-color 0.3s, color 0.3s;
}

.footer-brand-logo { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin-bottom: 20px; gap: 10px; }
.footer-brand-logo .logo-icon { font-size: 32px; color: var(--gold); }
.footer-brand-logo .logo-text { font-size: 26px; font-weight: 800; color: var(--secondary); letter-spacing: -0.5px; }
.footer-brand-logo .highlight { color: var(--gold); }
.footer-description { color: #64748b; font-size: 15px; max-width: 500px; margin: 0 auto 25px auto; line-height: 1.6; }

.location-badge { 
    display: inline-block; 
    background: var(--white); 
    padding: 10px 25px; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    color: var(--text); 
    font-weight: 500; font-size: 14px; margin-bottom: 30px; 
    border: 1px solid var(--border); 
}

.footer-socials { display: flex; justify-content: center; gap: 15px; }
.social-circle { width: 40px; height: 40px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 16px; text-decoration: none; border: 1px solid var(--border); transition: 0.3s; }
.social-circle:hover { background: var(--primary); color: white; transform: translateY(-3px); border-color: var(--primary); }

.footer-heading { color: #0f172a; font-weight: 800; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 20px; margin-top: 10px; }

.footer-nav { padding: 0; list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #64748b; text-decoration: none; font-size: 15px; transition: 0.2s; display: inline-block; }
.footer-nav a:hover { color: var(--primary); transform: translateX(5px); }

.footer-bottom-bar { 
    border-top: 1px solid var(--border); 
    padding: 30px 0; text-align: center; color: #94a3b8; font-size: 14px; font-weight: 500; margin-top: 50px; 
    background: #f8fafc; /* Overridden in Dark Mode */
}

.heart-beat { color: #ef4444; animation: heartbeat 1.5s infinite; display: inline-block; }
@keyframes heartbeat { 0% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } }
.moving-icon { display: inline-block; animation: bounceMove 2s infinite ease-in-out; font-size: 18px; margin: 0 2px; }
@keyframes bounceMove { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ============================================================
   7. DARK MODE FORCE FIXES (Bootstrap & Custom)
   ============================================================ */
   
/* Force Text Colors */
[data-theme="dark"] .text-dark { color: #e2e8f0 !important; }
[data-theme="dark"] .text-muted { color: #94a3b8 !important; }

/* Dark Mode 'bg-light' Fix for Announcements (Subtle Elevation instead of Black Hole) */
[data-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Card Inner Text Fixes */
[data-theme="dark"] .bg-light h6 { color: #fff !important; }
[data-theme="dark"] .bg-light small { color: #cbd5e1 !important; }

/* Main Cards BG (Force) */
[data-theme="dark"] .bg-white {
    background-color: var(--white) !important;
    color: var(--text) !important;
}

/* Footer Fixes */
[data-theme="dark"] .ratoolz-footer, 
[data-theme="dark"] .footer-bottom-bar {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}
[data-theme="dark"] .footer-heading { color: #fff !important; }

/* New Subject Colors */
.bg-math { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.bg-urdu { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: white; }
.bg-iq { background: linear-gradient(135deg, #fce38a 0%, #f38181 100%); color: white; }
.bg-pedagogy { background: linear-gradient(135deg, #42275a 0%, #734b6d 100%); color: white; }
.bg-ca { background: linear-gradient(135deg, #141E30 0%, #243B55 100%); color: white; }
.bg-verbal { background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%); color: white; }

/* Ensure icons inside colored cards are white */
.subject-card[class*="bg-"] i, 
.subject-card[class*="bg-"] .sub-title, 
.subject-card[class*="bg-"] .sub-count {
    color: white !important;
}
/* ============================================================
   8. ABOUT PAGE STYLES
   ============================================================ */

/* --- ABOUT HERO SECTION --- */
.about-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white; 
    padding: 130px 0 200px; 
    text-align: center;
    border-radius: 0 0 50% 50% / 60px; 
    margin-bottom: -120px;
    position: relative; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero-bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cube-coat.png'); 
    opacity: 0.1;
}

.btn-contact-hero {
    background: var(--gold); 
    color: #0f172a; 
    font-weight: 700;
    padding: 14px 40px; 
    border-radius: 50px; 
    text-decoration: none;
    display: inline-block; 
    transition: 0.3s; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative; z-index: 5; 
    border: 2px solid var(--gold);
}
.btn-contact-hero:hover { 
    background: transparent; 
    color: var(--gold); 
    transform: translateY(-3px); 
}

/* --- STATS CARDS --- */
.stats-container { position: relative; z-index: 5; margin-bottom: 100px; }
.about-stat-card {
    background: var(--white);
    padding: 35px 20px; 
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
    text-align: center;
    border-bottom: 5px solid var(--gold); 
    transition: 0.3s;
    border: 1px solid var(--border);
}
.about-stat-card:hover { transform: translateY(-10px); }
.stat-number-large { font-size: 2.8rem; font-weight: 800; color: var(--secondary); display: block; margin-bottom: 5px; }

/* --- MISSION CARDS --- */
.mission-card {
    background: var(--white); 
    padding: 40px 30px; 
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 1px solid var(--border);
    transition: 0.3s; height: 100%; 
    position: relative; overflow: hidden;
}
.mission-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--gold); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
}
.mission-icon {
    width: 70px; height: 70px; 
    background: var(--icon-bg); 
    color: var(--primary);
    border-radius: 18px; 
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin-bottom: 25px; 
    transition: 0.3s;
}
.mission-card:hover .mission-icon { background: var(--primary); color: white; }
.mission-title { font-weight: 800; font-size: 1.4rem; margin-bottom: 15px; color: var(--text); }
.mission-desc { color: var(--text); opacity: 0.8; line-height: 1.7; font-size: 0.95rem; }

/* --- PROCESS SECTION --- */
.process-section { 
    background: var(--white); 
    padding: 100px 0; margin: 100px 0; 
    border-top: 1px solid var(--border); 
    border-bottom: 1px solid var(--border); 
}
.step-num { 
    font-size: 4rem; font-weight: 900; 
    color: var(--border); /* Light grey in light mode, dark grey in dark mode */
    position: absolute; 
    top: -20px; left: 50%; 
    transform: translateX(-50%); z-index: 0; 
    opacity: 0.5;
}
.step-content { position: relative; z-index: 1; }
.step-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

/* --- FOUNDER CARD --- */
.founder-card {
    background: var(--white);
    border-radius: 30px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.1); 
    border: 1px solid var(--border); 
    overflow: hidden; 
    margin-bottom: 80px;
}
/* Specific fix for Founder Gradient in Dark Mode */
[data-theme="dark"] .founder-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.founder-img-col { position: relative; min-height: 300px; }
.founder-img { width: 100%; height: 100%; object-fit: cover; }
.founder-info { padding: 50px; display: flex; flex-direction: column; justify-content: center; height: 100%; }

/* --- TEAM CARDS --- */
.team-card {
    background: var(--white); 
    border-radius: 20px; padding: 40px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center;
    transition: 0.3s; 
    border: 1px solid var(--border); 
    height: 100%;
    display: flex; flex-direction: column; align-items: center;
}
.team-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.team-avatar {
    width: 110px; height: 110px; border-radius: 50%; margin-bottom: 20px;
    overflow: hidden; 
    border: 4px solid var(--bg); /* Avatar border matches background */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
}
.initials-bg { background: var(--icon-bg); color: var(--primary); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; }
.team-name { font-weight: 700; color: var(--text); margin-bottom: 5px; font-size: 1.3rem; }
.team-role { font-size: 0.85rem; color: var(--text); opacity: 0.7; font-weight: 600; text-transform: uppercase; margin-bottom: 15px; display: block; letter-spacing: 1px; }
.team-bio { font-size: 0.95rem; color: var(--text); opacity: 0.8; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }

.social-row { display: flex; justify-content: center; gap: 10px; margin-top: auto; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; 
    background: var(--icon-bg); 
    color: var(--secondary);
    display: flex; align-items: center; justify-content: center; 
    transition: 0.2s; text-decoration: none; font-size: 18px;
    border: 1px solid var(--border);
}
.social-btn:hover { background: var(--primary); color: white; transform: scale(1.1); border-color: var(--primary); }
/* ============================================================
   9. CONTACT PAGE STYLES
   ============================================================ */

/* --- HEADER SECTION --- */
.contact-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 60px 0 80px;
    border-radius: 0 0 40px 40px;
    margin-bottom: -50px;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border); /* Subtle border for dark mode */
}
.contact-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.contact-subtitle { opacity: 0.8; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.contact-container { position: relative; z-index: 2; margin-bottom: 50px; }

/* --- INFO CARD (Left Side) --- */
.contact-info-card {
    background: #1e3c72; /* Default Blue */
    color: white;
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
/* Dark Mode Override for Info Card */
[data-theme="dark"] .contact-info-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid var(--border);
}

.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px; }

.info-icon { 
    width: 50px; height: 50px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 20px; color: var(--gold); flex-shrink: 0;
}

.info-title { font-weight: 700; font-size: 18px; margin-bottom: 5px; color: white; }
.info-text { opacity: 0.8; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.9); }
.info-text a { color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; transition: 0.3s; }
.info-text a:hover { border-color: var(--gold); color: var(--gold); }

/* --- FORM CARD (Right Side) --- */
.contact-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.form-label { font-weight: 600; color: var(--text); font-size: 14px; margin-bottom: 8px; display: block; }

.form-control {
    background-color: var(--input-bg); /* Dark in dark mode */
    color: var(--text);
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid var(--border);
    font-size: 15px;
    transition: 0.3s;
    width: 100%;
}
.form-control:focus { 
    border-color: var(--primary); 
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); 
    color: var(--text);
}
.form-control::placeholder { color: var(--placeholder); }

.btn-send {
    background: var(--primary); color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    width: 100%;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}
.btn-send:hover { transform: translateY(-2px); opacity: 0.9; }

/* Social Icons in Contact Card */
.contact-social-links { display: flex; gap: 10px; margin-top: 40px; }
.contact-social-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; transition: 0.3s;
}
.contact-social-btn:hover { background: var(--gold); color: #1e3c72; transform: translateY(-3px); }
/* ============================================================
   10. UNIVERSAL ORGANIZATION PAGE STYLES (Reusable)
   ============================================================ */

/* --- 1. SHARED HEADER STRUCTURE --- */
.org-page-header {
    padding: 80px 0; 
    text-align: center;
    border-radius: 0 0 50px 50px; 
    margin-bottom: 60px;
    position: relative; 
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.org-page-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); 
    opacity: 0.1;
}

/* --- 2. HEADER COLOR VARIANTS (Use these classes on different pages) --- */
.header-bg-ppsc { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.header-bg-police { background: linear-gradient(135deg, #000428 0%, #004e92 100%); }
.header-bg-army { background: linear-gradient(135deg, #134E5E 0%, #71B280 100%); }
.header-bg-asf { 
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); 
    border-bottom: 5px solid #4ca1af; }
.header-bg-educators { 
    background: linear-gradient(135deg, #FF8008 0%, #FFC837 100%); /* Orange/Gold */
    border-bottom: 5px solid #1d2b64; /* Deep Blue Accent */
}
/* --- FIA Theme (Black & Red) --- */
.header-bg-fia { 
    background: linear-gradient(135deg, #000000 0%, #434343 100%); /* Black Gradient */
    border-bottom: 5px solid #e53935; /* Red Accent */
}

.mock-bg-fia {
    background: linear-gradient(45deg, #8E0E00, #1F1C18) !important; /* Deep Red & Black */
}

/* Optional: Banner Variant for Educators */
.mock-bg-edu {
    background: linear-gradient(45deg, #1d2b64, #f8cdda) !important;
}

/* Optional: Agar Mock Banner ko bhi blue rakhna chahein */
.mock-bg-blue {
    background: linear-gradient(45deg, #2C3E50, #4CA1AF) !important;
}
/* --- Forces Theme (Military Green & Sand) --- */
.header-bg-forces { 
    background: linear-gradient(135deg, #3E5151 0%, #DECBA4 100%); /* Sand/Military Green */
    border-bottom: 5px solid #134E5E; /* Deep Green Accent */
}

/* Mock Banner for Forces */
.mock-bg-forces {
    background: linear-gradient(45deg, #134E5E, #71B280) !important; /* Deep Green Gradient */
}
/* --- FPSC Theme (Professional Dark & Blue) --- */
.header-bg-fpsc { 
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); 
    border-bottom: 5px solid #3a7bd5; /* Professional Blue Accent */
}

/* Mock Banner for FPSC */
.mock-bg-fpsc {
    background: linear-gradient(45deg, #3a7bd5, #3a6073) !important;
}
/* --- NTS Theme (Red/Pink) --- */
.header-bg-nts { 
    background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%); 
    border-bottom: 5px solid #ff512f; /* Bright Red Accent */
}

/* Mock Banner for NTS */
.mock-bg-nts {
    background: linear-gradient(45deg, #FF512F, #DD2476) !important; /* Vivid Pink/Red */
}
/* --- PHP (Punjab Highway Patrol) Theme --- */
.header-bg-php { 
    background: linear-gradient(135deg, #232526 0%, #414345 100%); /* Asphalt Dark Grey */
    border-bottom: 5px solid #F7971E; /* Highway Yellow Accent */
}

/* Mock Banner for PHP */
.mock-bg-php {
    background: linear-gradient(45deg, #F7971E, #FFD200) !important; /* Traffic Yellow/Orange */
}
/* PHP Mock Banner Text Color Fix (Yellow background needs Dark text) */
.mock-bg-php h2, .mock-bg-php p {
    color: #232526 !important; /* Dark Text for readability */
}
/* --- Punjab Police Theme (Deep Blue/Black) --- */
.header-bg-police { 
    background: linear-gradient(135deg, #000000 0%, #0f172a 50%, #1e3a8a 100%); 
    border-bottom: 5px solid #3b82f6; /* Police Blue Accent */
}

/* Mock Banner for Police */
.mock-bg-police {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6) !important; /* Royal Blue */
}
/* --- Pakistan Railway Theme (Green & Gold) --- */
.header-bg-railway { 
    background: linear-gradient(135deg, #093028 0%, #237A57 100%); /* Deep Green */
    border-bottom: 5px solid #F2C94C; /* Gold Accent */
}

/* Mock Banner for Railway */
.mock-bg-railway {
    background: linear-gradient(45deg, #F2994A, #F2C94C) !important; /* Gold/Yellow */
}

/* Railway Banner Text Color Fix (Light Background needs Dark Text) */
.mock-bg-railway h2, .mock-bg-railway p {
    color: #093028 !important; /* Deep Green Text for readability */
}


/* --- 3. MOCK BANNER (Reusable) --- */
.mock-banner {
    background: linear-gradient(45deg, #11998e, #38ef7d); /* Default Green */
    border-radius: 20px; 
    overflow: hidden; 
    color: white;
    position: relative; 
    transition: 0.3s;
}
.mock-banner:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* --- 4. SUBJECT CARD DESIGN (Reusable) --- */
.sub-card {
    background: var(--white); 
    border-radius: 20px; 
    padding: 30px 20px;
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s; 
    border: 1px solid var(--border); 
    cursor: pointer;
    height: 100%; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.sub-card:hover { 
    transform: translateY(-7px); 
    border-color: var(--gold); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

.icon-wrapper {
    width: 80px; height: 80px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 32px;
    color: white; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.sub-name { 
    font-weight: 800; 
    font-size: 1.1rem; 
    color: var(--text); 
    margin-bottom: 5px; 
}

.mcq-count-badge {
    background: var(--icon-bg);
    color: var(--text); 
    font-size: 0.85rem; font-weight: 600;
    padding: 6px 18px; border-radius: 50px; margin-top: 10px; 
    border: 1px solid var(--border);
}
.sub-card:hover .mcq-count-badge { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
}
/* ============================================================
   11. MOCK TEST PAGE STYLES (UPDATED)
   ============================================================ */

/* --- HEADER --- */
.header-bg-mock { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Deep Purple Gradient */
    border-bottom: 5px solid #a855f7; /* Lighter Purple Accent */
}

/* --- SELECTION CARD (THEME FIXED) --- */
.selection-card {
    background: var(--white); /* Uses variable, so it changes in dark mode */
    border-radius: 20px; 
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    border: 1px solid var(--border);
    transition: 0.3s;
}

.mock-form-label { 
    font-weight: 700; 
    color: var(--text); 
    margin-bottom: 8px;
    display: block;
}

/* --- FEATURES SECTION --- */
.mock-feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
    height: 100%;
}
.mock-feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.feature-icon {
    width: 60px; height: 60px;
    background: var(--icon-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 20px auto;
}

/* --- FAQ SECTION (BOOTSTRAP OVERRIDES FOR DARK MODE) --- */
.accordion-item {
    background-color: var(--white);
    border: 1px solid var(--border);
}
.accordion-button {
    background-color: var(--white);
    color: var(--text);
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    background-color: var(--icon-bg);
    color: var(--primary);
    box-shadow: none;
}
.accordion-body {
    color: var(--text);
    opacity: 0.9;
}

/* --- RESULT CARD --- */
.result-card {
    border-radius: 20px; 
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.result-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white; 
    padding: 2rem 1rem;
}
.result-stat-box {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--bg);
    height: 100%;
}
.result-stat-box h5 { color: var(--text); opacity: 0.7; font-size: 0.9rem; margin-bottom: 5px; text-transform: uppercase; }
.result-stat-box h1 { margin: 0; font-size: 2.5rem; }

/* Analysis Cards */
.analysis-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 5px solid; 
}

/* --- ACTIVE TEST MODE --- */
.timer-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1020;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.question-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}
.question-text { color: var(--text); font-weight: 700; margin-bottom: 20px; font-size: 1.1rem; }

.option-label {
    display: block; width: 100%; text-align: left;
    background: var(--white); color: var(--text);
    border: 1px solid var(--border);
    padding: 15px 20px; border-radius: 10px;
    cursor: pointer; transition: 0.2s; position: relative; margin-bottom: 10px;
}
.option-label:hover { background: var(--bg); border-color: var(--primary); }
.option-label.active-opt {
    background-color: rgba(37, 99, 235, 0.1) !important; 
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 600;
}
/* ============================================================
   12. FORM INPUTS & DROPDOWN FIXES (DARK MODE)
   ============================================================ */

/* 1. Input Box & Select Box ka Background Color Fix */
.form-control, .form-select {
    background-color: var(--input-bg) !important; /* Dark Mode mein Dark, Light mein White */
    color: var(--text) !important;
    border-color: var(--border) !important;
}

/* 2. Jab user click kary (Focus) tab bhi White na ho */
.form-control:focus, .form-select:focus {
    background-color: var(--input-bg) !important;
    color: var(--text) !important;
    border-color: var(--primary) !important;
    box-shadow: none !important; /* Blue glow hata kar simple border rakhen */
}

/* 3. Dropdown ke andar walay Options (Pop-up Box) */
select option {
    background-color: var(--white) !important; /* Dark Mode mein Dark Slate */
    color: var(--text) !important;
}

/* 4. Autofill Fix (Agar browser khud fill kary to Yellow/White na ho) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}
/* ============================================================
   13, 14 & 15. SEARCH, TEST PAGE & DOWNLOAD STYLES (ALL FIXED)
   ============================================================ */

/* --- 1. HEADERS --- */
.header-bg-search, .header-bg-test {
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%); 
    color: white; 
    padding: 50px 0 60px; 
    border-radius: 0 0 40px 40px; 
    margin-bottom: -40px; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
    border-bottom: 5px solid #6366f1;
}

/* --- 2. QUESTION CARD --- */
.q-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative;
}
.q-card:hover { transform: translateY(-5px); }

.q-number {
    background: var(--icon-bg);
    color: var(--primary);
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.q-text {
    color: var(--text);
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
    font-size: 1.1rem;
}

/* --- 3. OPTION BUTTONS --- */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.option-btn {
    width: 100%;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: 0.2s;
    cursor: pointer;
    position: relative;
}
.option-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--bg);
}

/* Correct/Wrong Colors */
.option-btn.correct-click {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
    font-weight: 700;
}
.option-btn.wrong-click {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
}

/* Dark Mode Text Fixes */
[data-theme="dark"] .option-btn.correct-click { color: #34d399 !important; }
[data-theme="dark"] .option-btn.wrong-click { color: #f87171 !important; }

/* --- 4. RESULT BOX & EXPLANATION --- */
.result-box {
    display: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
}
.result-box.correct { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid #10b981; }
.result-box.wrong { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid #ef4444; }

.explanation-text { 
    font-size: 14px; color: var(--text); opacity: 0.9; margin-top: 5px; 
    font-weight: normal; border-top: 1px solid var(--border); padding-top: 8px; 
}

.ref-badge { 
    background-color: var(--white); color: var(--primary); 
    border: 1px solid var(--border); font-size: 11px; font-weight: 700; 
    padding: 4px 10px; border-radius: 20px; margin-left: 5px; 
    white-space: nowrap; display: inline-block; 
}
[data-theme="dark"] .ref-badge { background-color: rgba(255,255,255,0.1); color: #fbbf24; border-color: #fbbf24; }

/* --- 5. DOWNLOAD SECTION (NEW FIXED VERSION) --- */
.bottom-action-area { text-align: center; margin: 40px 0 80px; }
.btn-download-main {
    background: var(--primary); color: white;
    padding: 15px 40px; font-size: 18px; font-weight: 700;
    border-radius: 50px; border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    cursor: pointer; transition: 0.3s;
}
.btn-download-main:hover { transform: translateY(-3px); opacity: 0.9; }

/* Popup Box */
.download-options-box {
    display: none; 
    background: var(--white); 
    padding: 25px; 
    border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
    max-width: 450px; 
    margin: 20px auto; 
    border: 1px solid var(--border); 
    text-align: left;
    animation: fadeInUp 0.3s ease-out;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Tabs */
.download-tabs-group {
    display: flex;
    background: var(--bg);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.download-tab-btn {
    flex: 1; background: transparent; border: none; padding: 10px;
    border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text);
    cursor: pointer; transition: 0.3s;
}
.download-tab-btn.active {
    background: var(--white); color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
[data-theme="dark"] .download-tab-btn.active { background: var(--primary); color: white; }

/* Info Box (Questions 1-20) */
.info-box {
    background-color: var(--icon-bg); color: var(--text);
    border: 1px solid var(--border); padding: 15px; border-radius: 10px;
    text-align: center; font-weight: 700; margin-bottom: 20px; font-size: 16px;
}
.info-box span { color: var(--primary); }

/* Buttons & Inputs */
.btn-action-group { display: flex; gap: 15px; }
.btn-sub-option { 
    flex: 1; padding: 12px; border-radius: 10px; border: 2px solid; 
    font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-unsolved { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-unsolved:hover { background: var(--primary); color: white; }
.btn-solved { background: #10b981; border-color: #10b981; color: white; }
.btn-solved:hover { background: #059669; border-color: #059669; }

.qty-input {
    width: 100%; padding: 12px; border: 2px solid var(--border);
    border-radius: 10px; font-size: 15px; text-align: center;
    background: var(--input-bg); color: var(--text); font-weight: 600;
}

/* --- 6. PAGINATION & LOADER --- */
.pagination-area { display: flex; justify-content: center; gap: 15px; margin-bottom: 60px; }
.page-btn { padding: 10px 20px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.page-btn-prev { background: var(--white); color: var(--primary); border: 1px solid var(--primary); }
.page-btn-next { background: var(--primary); color: white; border: 1px solid var(--primary); }

#loadingOverlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(255, 255, 255, 0.95); z-index: 9999; 
    display: none; justify-content: center; align-items: center; flex-direction: column; 
}
[data-theme="dark"] #loadingOverlay { background: rgba(15, 23, 42, 0.95); }
.spinner { width: 50px; height: 50px; border: 5px solid var(--border); border-top: 5px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- 7. PRINT VIEW (Iframe) --- */
body.print-view { background: white !important; color: black !important; padding: 40px; font-family: 'Poppins', sans-serif; }
.print-view .print-header { text-align: center; border-bottom: 2px solid #1e3c72; padding-bottom: 15px; margin-bottom: 30px; }
.print-view .logo-area { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 5px; }
.print-view .print-logo-text { font-size: 28px; font-weight: 800; color: #1e3c72 !important; }
.print-view .print-meta { font-size: 14px; color: #555; margin-top: 5px; font-weight: 500; }
.print-view .q-card { border-bottom: 1px dashed #ccc; padding: 15px 0; break-inside: avoid; background: transparent; border-radius: 0; box-shadow: none; margin: 0; border: none; }
.print-view .q-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; color: black; }
.print-view .options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; padding-left: 10px; }
.print-view .opt { color: #333; }
.print-view .correct-answer { font-weight: 900; text-decoration: underline; color: black !important; }
.print-view .explanation-box { margin-top: 10px; padding: 8px 12px; border-left: 3px solid #1e3c72; font-size: 11px; color: #4b5563; }
.print-view .watermark { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-45deg); font-size: 60px; font-weight: 900; color: rgba(0,0,0,0.08) !important; z-index: -1; text-align: center; width: 100%; }
.print-view .print-footer { text-align: center; font-size: 10px; color: #999; margin-top: 30px; border-top: 1px solid #eee; padding-top: 10px; }
/* ============================================================
   16. USER FEATURES (BOOKMARK & ENROLL)
/* --- HEART BOOKMARK STYLE --- */
.bookmark-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #cbd5e1; /* Default Grey (Empty Heart) */
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 10;
}

/* Hover Effect */
.bookmark-btn:hover {
    color: #ef4444; /* Light Red */
    transform: scale(1.2); /* Thoda bara ho ga */
}

/* Active State (Filled Heart) */
.bookmark-btn.active {
    color: #dc2626; /* Deep Red */
    filter: drop-shadow(0 4px 6px rgba(220, 38, 38, 0.3)); /* Glow effect */
}

/* --- ENROLL COURSE CARD (For Organization Pages) --- */
.enroll-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.enroll-info h4 { font-weight: 800; color: var(--text); margin-bottom: 5px; }
.enroll-info p { margin: 0; color: var(--text); opacity: 0.7; font-size: 14px; }

.btn-enroll {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}
.btn-enroll:hover { transform: translateY(-3px); background: var(--secondary); color: white; }

/* If already enrolled */
.btn-enroll.enrolled {
    background: #10b981; /* Green */
    pointer-events: none; /* Disable click */
}
/* ============================================================
   23. MODERN AUTH PAGE (Bootstrap Enhanced & Fixed)
   ============================================================ */

/* --- Hero Section (The Blue Header) --- */
.auth-hero-section {
    /* Yeh gradient zaroori hy ta k white text nazar aye */
    background: linear-gradient(135deg, #1e3c72 0%, #2563eb 100%);
    padding: 80px 15px 120px 15px; /* Bottom padding for overlap */
    position: relative;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    color: #ffffff; /* Force white text */
    text-align: center;
}

/* Glassy Badges in Header */
.glass-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
}
.glass-badge:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
}

/* --- Auth Card (The Floating Box) --- */
.auth-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
}

/* Input Fields Styling */
.form-control {
    background-color: var(--input-bg) !important; /* Theme Aware */
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.3s ease-in-out;
}

.form-control:focus {
    background-color: var(--white) !important;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    color: var(--text);
}

/* Placeholder color fix */
.form-control::placeholder {
    color: var(--placeholder, #a0aec0);
    font-size: 0.9rem;
}

/* Icons inside inputs */
.position-absolute.text-muted {
    color: var(--primary) !important; 
    opacity: 0.7;
}

/* Captcha Box in Dark Mode */
[data-theme="dark"] .bg-light {
    background-color: rgba(255,255,255,0.05) !important;
    border-color: var(--border) !important;
}

/* --- Feature Cards (Bottom Section) --- */
.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    border-color: var(--border) !important;
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--primary) !important;
}

.hover-up h5 { color: var(--text); }
.hover-up p { color: var(--text); opacity: 0.7; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .auth-hero-section {
        padding-bottom: 100px;
        border-radius: 0 0 30px 30px;
    }
    .auth-card {
        padding: 25px;
        margin-top: -80px; /* Pull up card more on mobile */
    }
    .glass-badge {
        font-size: 0.8rem;
        padding: 5px 15px;
    }
}
/* ============================================================
   24. USER DASHBOARD STYLES (PROFILE PAGE)
   ============================================================ */

/* --- Welcome Box --- */
.welcome-box {
    background: var(--white);
    border-left: 5px solid var(--primary) !important;
}

/* --- Profile Mini Card --- */
.profile-mini-card {
    background: var(--white);
}
.avatar-circle {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    font-size: 32px; font-weight: 800;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.btn-danger-soft {
    background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
    transition: 0.3s;
}
.btn-danger-soft:hover { background: #dc2626; color: white; }

/* --- Stats Cards --- */
.stat-card { transition: transform 0.3s; }
.stat-card:hover { transform: translateY(-5px); }

.icon-square {
    width: 45px; height: 45px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.bg-blue-light { background: rgba(37, 99, 235, 0.1); }
.bg-gold-light { background: rgba(245, 158, 11, 0.1); }
.bg-red-light { background: rgba(220, 38, 38, 0.1); }

/* --- Saved MCQ Card --- */
.saved-mcq-card {
    transition: 0.3s;
    border-left: 4px solid var(--gold) !important;
}
.saved-mcq-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

.bg-primary-soft {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 700; font-size: 0.75rem;
    padding: 5px 12px; border-radius: 50px;
}

.btn-delete-icon {
    width: 35px; height: 35px;
    border-radius: 50%;
    background: #fef2f2; color: #ef4444;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s; text-decoration: none;
}
.btn-delete-icon:hover { background: #ef4444; color: white; }

/* Mini Options Grid */
.options-grid-mini {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.options-grid-mini .opt {
    font-size: 0.9rem; padding: 8px 12px;
    background: var(--bg); border-radius: 8px;
    color: var(--text); border: 1px solid var(--border);
}
.options-grid-mini .opt.correct {
    background: #d1fae5; color: #065f46; border-color: #10b981; font-weight: 700;
}

/* Empty State Dashed Border */
.border-dashed { border: 2px dashed var(--border) !important; }

/* --- DARK MODE ADJUSTMENTS --- */
[data-theme="dark"] .welcome-box,
[data-theme="dark"] .profile-mini-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .saved-mcq-card {
    background: var(--white); /* Uses theme variable for dark bg */
    border-color: var(--border) !important;
}

[data-theme="dark"] .options-grid-mini .opt {
    background: var(--bg); color: var(--text);
}
[data-theme="dark"] .options-grid-mini .opt.correct {
    background: rgba(16, 185, 129, 0.2); color: #34d399; border-color: #059669;
}
[data-theme="dark"] .btn-danger-soft {
    background: rgba(220, 38, 38, 0.2); color: #f87171; border-color: #991b1b;
}
/* ============================================================
   25. SIMPLE MODAL DARK MODE FIX
   ============================================================ */
[data-theme="dark"] .modal-content {
    background-color: #1e293b; /* Dark Blue-Grey */
    color: #ffffff;
}

[data-theme="dark"] .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* White Cross Icon */
}

[data-theme="dark"] .modal-body .form-control {
    background-color: #0f172a; /* Darker Input BG */
    border-color: #334155;
    color: #ffffff;
}

[data-theme="dark"] .modal-body .form-control:disabled {
    background-color: #334155 !important; /* Disabled Input looks grey */
    color: #cbd5e1;
}
/* ============================================================
   26. DARK MODE FIX FOR SETTINGS BUTTON
   ============================================================ */
[data-theme="dark"] .btn-light {
    background-color: rgba(255, 255, 255, 0.1) !important; /* Transparent Dark */
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.2) !important; /* Thora light hover pr */
    color: var(--primary) !important;
}
/* --- Vertical Navigation List Fix --- */
.dropdown-menu .list-container {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.nav-list-item {
    padding: 12px 20px !important;
    border-bottom: 1px solid var(--border);
    color: var(--text) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    width: 100%;
    transition: 0.3s;
}

.nav-list-item:hover {
    background: var(--bg);
    color: var(--primary) !important;
    padding-left: 25px !important;
}

/* --- Menu Close Cross (X) Position Fix --- */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .brand-logo {
    margin: 0;
}

.close-btn {
    background: transparent !important;
    border: none !important;
    font-size: 22px !important;
    color: var(--text) !important;
    padding: 5px !important;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    box-shadow: none !important;
}

/* --- Theme & Account Icons No-Background Fix --- */
.theme-btn, .account-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.header-right-actions i {
    font-size: 20px;
}

@media (max-width: 991px) {
    .close-btn {
        position: fixed !important;
        top: 25px !important;
        left: 315px !important; /* Outside the white menu box */
        background: #1e293b !important; /* Dark color to be visible */
        color: #ffffff !important; /* White cross */
        border: 2px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        display: none !important; /* Hidden initially */
        z-index: 2000 !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
        transition: 0.3s ease;
        cursor: pointer;
    }

    /* Only visible when nav-links are active */
    .nav-links.active ~ .close-btn {
        display: flex !important;
    }

    /* Hide the old cross inside the sidebar header on mobile */
    .sidebar-header .close-btn {
        display: none !important;
    }
}
/* ============================================================
   27. POST DETAILS PAGE STYLES
   ============================================================ */

/* --- Hero Section (Specific for Posts) --- */
.post-hero-section {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 80px 0 120px;
    position: relative; 
    overflow: hidden; 
    text-align: center; 
    color: white;
    border-radius: 0 0 50px 50px;
    margin-bottom: -60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.category-badge {
    background: rgba(255, 255, 255, 0.15); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: var(--gold);
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    padding: 8px 20px; 
    border-radius: 50px; 
    display: inline-block; 
    margin-bottom: 20px; 
    backdrop-filter: blur(5px);
}

.post-main-title { 
    font-weight: 800; 
    font-size: 2.5rem; 
    line-height: 1.3; 
    margin-bottom: 15px; 
    text-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}

.content-wrapper { 
    position: relative; 
    z-index: 10; 
    margin-bottom: 60px; 
}

/* --- Blog Content Card --- */
.blog-card { 
    background: var(--card-bg); 
    color: var(--text);
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid var(--border); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.featured-image-container { 
    width: 100%; 
    height: 400px; 
    background: var(--icon-bg); 
    position: relative; 
}

.featured-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.article-body { 
    padding: 50px; 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: var(--text); 
    font-family: 'Poppins', sans-serif; 
}

/* Article Headings */
.article-body h1, .article-body h2, .article-body h3 { 
    color: var(--primary); 
    font-weight: 800; 
    margin-top: 30px; 
    margin-bottom: 15px; 
}

/* Article Images */
.article-body img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 10px; 
    margin: 20px 0; 
    border: 1px solid var(--border);
}

/* --- Share Footer --- */
.share-footer { 
    background: var(--bg); 
    padding: 30px; 
    border-top: 1px solid var(--border); 
    text-align: center; 
}

.share-icon-btn { 
    width: 45px; height: 45px; 
    border-radius: 50%; 
    display: inline-flex; align-items: center; justify-content: center; 
    font-size: 18px; color: white; margin: 0 5px; 
    transition: 0.3s; text-decoration: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.share-icon-btn:hover { transform: translateY(-3px); color: white; opacity: 0.9; }

/* Share Brand Colors */
.btn-wa { background: #25D366; } 
.btn-fb { background: #1877F2; } 
.btn-tw { background: #000000; } 
.btn-mail { background: #EA4335; }

/* --- Related Posts Section --- */
.section-label { 
    font-weight: 800; 
    font-size: 1.5rem; 
    color: var(--text); 
    margin-bottom: 25px; 
    border-left: 5px solid var(--gold); 
    padding-left: 15px; 
}

.related-card { 
    background: var(--card-bg); 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: 0.3s; 
    border: 1px solid var(--border); 
    height: 100%; 
    display: flex; flex-direction: column;
}
.related-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary);
}

.related-img { 
    height: 180px; 
    width: 100%; 
    object-fit: cover; 
    background: var(--icon-bg); 
}

.related-body { 
    padding: 20px; 
    flex-grow: 1; 
    display: flex; flex-direction: column; 
    color: var(--text);
}

.related-title { 
    font-weight: 700; 
    font-size: 1.05rem; 
    color: var(--text); 
    margin-bottom: 10px; 
    line-height: 1.4; 
}

.related-link { 
    margin-top: auto; 
    color: var(--primary); 
    font-weight: 600; 
    text-decoration: none; 
    font-size: 0.9rem; 
}
.related-link:hover { text-decoration: underline; }

/* Dark Mode specific for guide card background */
.related-guide-bg {
    background-color: var(--icon-bg);
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    border: 1px solid var(--border);
}

/* Mobile Adjustments */
@media (max-width: 768px) { 
    .post-main-title { font-size: 1.8rem; } 
    .featured-image-container { height: 250px; } 
    .article-body { padding: 20px; } 
}
/* ============================================================
   MOBILE BOTTOM NAVIGATION (FINAL COMPLETE CODE)
   ============================================================ */

/* Desktop par chupay rahein */
.mobile-bottom-nav { display: none; }

/* Backdrop (Peeche ka andhera) */
.modal-backdrop.show { z-index: 1050 !important; opacity: 0.6 !important; }

@media (max-width: 991px) {
    /* Hide Desktop Header */
    .main-header { display: none !important; }
    
    /* Body Padding taake content bar k peeche na chupe */
    body { padding-bottom: 80px; }

    /* --- 1. BAR CONTAINER (SAB SE UPAR - ATTACHED STYLE) --- */
    .mobile-bottom-nav {
        display: block; 
        position: fixed; 
        bottom: 0; left: 0;
        width: 100%; height: 75px; 
        z-index: 1060; /* HIGHEST LAYER (Menu k upar) */
        
        background: #ffffff; 
        border-top: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.06);
        border-radius: 20px 20px 0 0; /* Sirf upar se gol */
    }

    .nav-container {
        display: flex; justify-content: space-between; align-items: center;
        width: 100%; height: 100%; padding: 0 5px;
    }

    /* --- 2. NAV ITEMS (Classic: Icon Top, Text Bottom) --- */
    .nav-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        color: #94a3b8; text-decoration: none; 
        height: 100%; flex: 1; padding-top: 5px;
        transition: all 0.2s ease; background: transparent;
    }
    
    .nav-item i { 
        font-size: 22px; margin-bottom: 4px; 
        transition: 0.2s; z-index: 2; 
    }
    
    .nav-item span { 
        font-size: 11px; font-weight: 500; 
        opacity: 1; display: block; letter-spacing: 0.3px; 
    }

    /* ACTIVE STATE (Purple Theme) */
    .nav-item.active { color: #7c3aed; background: transparent; }
    
    .nav-item.active i { 
        transform: translateY(-3px); 
        filter: drop-shadow(0 4px 6px rgba(124, 58, 237, 0.3)); 
    }
    
    .nav-item.active span { font-weight: 700; color: #7c3aed; }

    /* --- 3. MENUS (BEHIND THE BAR ANIMATION) --- */
    .win11-modal { z-index: 1055 !important; /* Bar (1060) se neechay */ }

    .win11-modal .modal-dialog {
        position: fixed; left: 0; bottom: 0; margin: 0; 
        width: 100%; max-width: 100%;
        
        /* Slide Up Animation */
        transform: translateY(100%) !important; 
        opacity: 0 !important;
        transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s !important;
        
        /* Height Limit taake button screen se bahar na jaye */
        max-height: 85vh; 
        display: flex; flex-direction: column;
    }
    
    .win11-modal.show .modal-dialog { 
        transform: translateY(0) !important; 
        opacity: 1 !important;
    }
    
    .win11-modal .modal-content { 
        border-radius: 24px 24px 0 0; 
        border: none; background: #ffffff;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
        padding: 0; 
        display: flex; flex-direction: column;
        max-height: 100%;
        padding-bottom: 80px; /* Bar k liye jagah */
    }

    /* Modal Body (Scrollable Area) */
    .win11-modal-body {
        padding: 20px 20px 10px 20px;
        overflow-y: auto; /* Sirf ye hissa scroll karega */
    }

    /* --- 4. STICKY INSTALL BUTTON CONTAINER (Hidden by Default) --- */
    /* Ye JS se show hoga jab PWA ready hoga */
    .win11-modal-footer-fixed {
        display: none; /* Gap khatam karne k liye */
        padding: 10px 20px 20px 20px;
        background: #ffffff;
        border-top: 1px solid rgba(0,0,0,0.05);
        margin-top: auto; /* Push to bottom */
    }

    /* --- 5. GRID & LIST STYLES --- */
    .win11-grid { 
        display: grid !important; grid-template-columns: repeat(4, 1fr) !important; 
        gap: 12px !important; margin-top: 10px; width: 100% !important;
    }
    
    .win11-icon-btn { 
        display: flex !important; flex-direction: column !important; align-items: center !important; 
        color: #475569; font-size: 11px; font-weight: 600; text-decoration: none; width: 100%; text-align: center;
    }
    
    .win11-icon-box { 
        width: 100%; aspect-ratio: 1/1; max-width: 55px; border-radius: 18px; 
        background: #f1f5f9; color: #7c3aed; 
        display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 8px;
    }
    
    /* Profile List */
    .profile-list-container { display: flex; flex-direction: column; gap: 5px; width: 100%; }
    
    .win11-list-btn { 
        display: flex !important; align-items: center; width: 100%; padding: 15px; 
        border-radius: 12px; color: #334155; text-decoration: none; 
        font-weight: 600; font-size: 15px; border-bottom: 1px solid #f1f5f9;
    }
    
    .win11-list-btn i { 
        width: 25px; text-align: center; margin-right: 15px; 
        color: #7c3aed; font-size: 18px; 
    }

    /* Install Button Style */
    .btn-install-premium {
        display: flex; /* Button ready rahega inside container */
        width: 100%;
        background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
        color: white !important; border: none; border-radius: 12px; padding: 15px;
        font-weight: 700; 
        align-items: center; justify-content: center; gap: 10px;
        box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
    }

    /* --- 6. DARK MODE FIXES (COMPLETE) --- */
    [data-theme="dark"] .mobile-bottom-nav { background: #0f172a; border-top: 1px solid rgba(255,255,255,0.05); }
    [data-theme="dark"] .nav-item { color: #64748b; }
    [data-theme="dark"] .nav-item.active { color: #a78bfa; }
    [data-theme="dark"] .nav-item.active i { filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.5)); }
    [data-theme="dark"] .nav-item.active span { color: #a78bfa; }

    /* Dark Mode Menus */
    [data-theme="dark"] .win11-modal .modal-content { background: #1e293b; color: white; }
    [data-theme="dark"] .win11-modal-footer-fixed { background: #1e293b; border-top-color: rgba(255,255,255,0.1); }
    
    [data-theme="dark"] .win11-icon-box { background: rgba(255, 255, 255, 0.1); color: #a78bfa; }
    [data-theme="dark"] .win11-icon-btn { color: #cbd5e1; }

    /* Profile Fixes */
    [data-theme="dark"] .win11-list-btn { color: #e2e8f0; border-bottom-color: #334155; }
    [data-theme="dark"] .win11-list-btn:hover { background: rgba(255,255,255,0.05); }
    [data-theme="dark"] .win11-list-btn i { color: #a78bfa !important; }
    
    /* Login Link Color Fix */
    .text-purple-theme { color: #7c3aed !important; }
    [data-theme="dark"] .text-purple-theme { color: #a78bfa !important; }
    
    /* Avatar Circle Fix */
    .avatar-circle {
        width: 45px; height: 45px; border-radius: 50%;
        background: #f3e8ff; color: #7c3aed; 
        display: flex; align-items: center; justify-content: center;
        font-size: 18px; font-weight: bold;
    }
    [data-theme="dark"] .avatar-circle {
        background: rgba(124, 58, 237, 0.2); color: #a78bfa;
    }
    
    /* FLICKER FIX: Stop Animation on Theme Icon */
    #profile-theme-icon {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}
