/* --- Variables for consistent colors --- */
:root {
    --primary-blue: #0f172a;
    --accent-gold: #f59e0b;
    --text-dark: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

/* --- General Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body { background-color: var(--white); color: var(--text-dark); line-height: 1.6; }

.bg-light { background-color: var(--bg-light); }

/* --- Buttons --- */
.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: #d97706;
    color: white;
    transform: translateY(-2px);
}

/* --- Navigation --- */
header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo { font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo i { color: var(--accent-gold); }

header nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

header nav a:hover { color: var(--accent-gold); }

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1600&q=80') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text h1 { color: var(--white); font-size: 4rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero-text .highlight { color: var(--accent-gold); }
.hero-text p { color: #cbd5e1; font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Dashboard Stats --- */
.dashboard {
    display: flex;
    justify-content: space-around;
    background: var(--white);
    padding: 40px;
    width: 85%;
    margin: -60px auto 60px auto;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-radius: 15px;
    position: relative;
    z-index: 10;
}

.stat-box { text-align: center; }
.stat-box i { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 10px; }
.stat-box h2 { font-size: 2.5rem; color: var(--primary-blue); font-weight: 700; }
.stat-box p { color: var(--text-light); font-weight: 500; }

/* --- Section Titles --- */
.section-container { padding: 80px 8%; text-align: center; }
.section-title { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 50px; font-weight: 700; }
.section-title span { color: var(--accent-gold); }

/* --- About Us Section --- */
.about-section { padding: 80px 8%; }
.about-container { display: flex; align-items: center; gap: 50px; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-text { flex: 1; }
.about-text p { color: var(--text-light); margin-bottom: 20px; font-size: 1.1rem; }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; font-weight: 500;}
.feature-list i { color: var(--accent-gold); font-size: 1.2rem; }

/* --- Grid & Cards --- */
.grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.card {
    background: var(--white);
    border-radius: 15px;
    width: 300px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card h3 { color: var(--primary-blue); margin: 15px 0 5px 0; font-size: 1.4rem; padding: 0 15px; }
.card .designation { color: var(--accent-gold); font-weight: 600; padding: 0 15px 20px 15px; }

/* Activity Card Image Overlay */
.activity-card { position: relative; }
.activity-card img { height: 250px; margin-bottom: 0; display: block; }
.activity-card .overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
    padding: 20px; text-align: left;
}
.activity-card .overlay h3 { color: var(--white); margin: 0; padding: 0; }

/* --- Contact Section --- */
.contact-wrapper { display: flex; gap: 40px; justify-content: center; max-width: 1000px; margin: 0 auto; text-align: left; }
.contact-info { flex: 1; background: var(--primary-blue); color: var(--white); padding: 40px; border-radius: 15px; }
.contact-info h3 { color: var(--accent-gold); margin-bottom: 20px; font-size: 1.5rem; }
.contact-info p { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; }
.contact-info i { color: var(--accent-gold); font-size: 1.2rem; }

.contact-form-container { flex: 1.5; background: var(--white); padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
form { display: flex; flex-direction: column; gap: 20px; }
input, textarea { width: 100%; padding: 15px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; font-family: 'Poppins', sans-serif; background: #f8fafc; transition: border 0.3s; }
input:focus, textarea:focus { outline: none; border-color: var(--accent-gold); }

/* --- Footer --- */
footer { background: #020617; color: var(--text-light); text-align: center; padding: 30px; font-size: 1rem; }

/* --- Modal Pop-up --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8); z-index: 1000; backdrop-filter: blur(5px); }
.modal-content {
    background: var(--white); width: 90%; max-width: 450px; margin: 12% auto; padding: 40px; text-align: center; border-radius: 20px; position: relative;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.modal-icon i { font-size: 3rem; color: var(--accent-gold); margin-bottom: 15px; }
.modal-content h2 { color: var(--primary-blue); margin-bottom: 15px; font-size: 2rem; }
.modal-content p { color: var(--text-light); margin-bottom: 25px; font-size: 1.1rem; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #94a3b8; transition: color 0.3s; }
.close-btn:hover { color: var(--primary-blue); }

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .about-container, .contact-wrapper { flex-direction: column; }
    header { flex-direction: column; gap: 15px; }
    .hero-text h1 { font-size: 2.5rem; }
    .dashboard { flex-direction: column; gap: 30px; }
}
/* --- Notice Bar --- */
.notice-bar {
    display: flex;
    background: #e2e8f0;
    align-items: center;
    border-bottom: 2px solid var(--accent-gold);
}
.notice-label {
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 10px 20px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
}
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    color: var(--primary-blue);
    font-weight: 500;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Quick Links --- */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 5%;
    flex-wrap: wrap;
    background: var(--white);
}
.link-card {
    background: var(--primary-blue);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 220px;
    transition: all 0.3s;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    border-bottom: 4px solid var(--accent-gold);
}
.link-card:hover {
    transform: translateY(-8px);
    background: #002244;
}
.link-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}
.link-card h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}
.link-card p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    width: 350px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: left;
    border-left: 5px solid var(--accent-gold);
}
.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin: 15px 0;
}
.testimonial-card .stars i {
    color: var(--accent-gold);
}
.testimonial-card h4 {
    color: var(--primary-blue);
}
/* --- Admission Form Specific Styling --- */
.admission-content {
    max-width: 550px;
    padding: 30px 40px;
    text-align: left;
}
.admission-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.input-row {
    display: flex;
    gap: 15px;
}
.input-row input, .input-row select {
    flex: 1; /* Dono ko barabar jagah dega */
}
.admission-form input, .admission-form select, .admission-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.admission-form input:focus, .admission-form select:focus, .admission-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}
.admission-form select {
    cursor: pointer;
    color: var(--text-dark);
}

/* Mobile responsive ke liye */
@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        gap: 15px;
    }
}
/* --- Admin Portal Button in Navbar --- */
header nav a.admin-link {
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

header nav a.admin-link:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Mobile responsive ke liye */
@media (max-width: 768px) {
    header nav a.admin-link {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
    }
}
/* ==========================================
   DARK MODE THEME (Interview Winning Feature)
========================================== */
.theme-btn {
    background: transparent;
    color: var(--white);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    color: var(--accent-gold);
}

/* Jab body me 'dark-mode' class add hogi, tab ye colors apply honge */
body.dark-mode {
    background-color: #0f172a; /* Deep Dark Blue Background */
    color: #e2e8f0; /* Light Gray Text */
}

/* Backgrounds ko dark karna */
body.dark-mode .bg-light,
body.dark-mode .quick-links {
    background-color: #1e293b;
}

/* Cards aur Boxes ko dark theme dena */
body.dark-mode .dashboard,
body.dark-mode .card,
body.dark-mode .testimonial-card,
body.dark-mode .contact-form-container,
body.dark-mode .contact-info,
body.dark-mode .modal-content,
body.dark-mode .notice-bar {
    background-color: #1e293b;
    color: #f8fafc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-color: #334155;
}

/* Headings aur Text ko light karna */
body.dark-mode .section-title,
body.dark-mode .card h3,
body.dark-mode .stat-box h2,
body.dark-mode .stat-box p,
body.dark-mode .modal-content h2,
body.dark-mode .marquee-text {
    color: #f8fafc;
}

/* Inputs aur Forms ko dark karna */
body.dark-mode input, 
body.dark-mode textarea, 
body.dark-mode select {
    background-color: #0f172a;
    color: white;
    border: 1px solid #334155;
}

/* Header aur Footer ko deep black karna */
body.dark-mode header, 
body.dark-mode footer {
    background-color: #020617;
    border-bottom: 1px solid #1e293b;
}

/* Toppers Section Fix */
body.dark-mode #dynamicResultsContainer > div,
body.dark-mode #dynamicResultsContainer > div > div {
    background-color: #1e293b !important;
}
body.dark-mode #dynamicResultsContainer h4 { color: white !important; }
/* ==========================================
   TOAST NOTIFICATION STYLING & ANIMATION
========================================== */
.toast-notification {
    visibility: hidden; /* Pehle chhupa rahega */
    min-width: 250px;
    background-color: #16a34a; /* Premium Green Color */
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px 20px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Jab JS se 'show' class add hogi tab ye dikhega */
.toast-notification.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Niche se upar aane ka animation */
@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

/* Wapas gayab hone ka animation */
@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}
/* ==========================================
   EMERGENCY ALERT BANNER (Blinking Effect)
========================================== */
.emergency-banner {
    background-color: #ef4444; /* Laal Rang */
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2000; /* Sabse upar dikhega */
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    animation: bgBlink 1.5s infinite alternate;
}

.emergency-banner .blink-icon {
    animation: iconBlink 0.8s infinite alternate;
    margin-right: 10px;
    color: #fef08a; /* Yellow danger icon */
    font-size: 1.3rem;
}

@keyframes bgBlink {
    from { background-color: #ef4444; }
    to { background-color: #b91c1c; } /* Dark red me badlega */
}

@keyframes iconBlink {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0.5; transform: scale(1.3); }
}
/* ========================================= */
/* 🌟 PREMIUM ANIMATED SEARCH & UPLOAD CSS   */
/* ========================================= */

/* 1. Animated Search Bar Wrapper */
.search-wrapper {
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: 0.3s ease;
}
.search-wrapper:focus-within {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    transform: translateY(-2px);
}
.search-wrapper input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 20px !important;
    font-size: 1rem;
    box-shadow: none !important;
}

/* 2. Animated Search Button */
.btn-animated-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    background: #0f172a;
    color: #f59e0b;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-animated-search::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: #f59e0b;
    z-index: -1;
    transition: all 0.4s ease;
    border-radius: 40px;
}
.btn-animated-search:hover {
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    transform: scale(1.02);
}
.btn-animated-search:hover::before { width: 100%; }
.btn-animated-search i { transition: transform 0.3s ease; }
.btn-animated-search:hover i { transform: scale(1.2) rotate(15deg); }

/* 3. Premium File Upload (PDF/Photo) */
.custom-file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-weight: 600;
    width: 100%;
    text-align: center;
}
.custom-file-upload:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}
.custom-file-upload input[type="file"] {
    position: absolute;
    left: 0; top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%; width: 100%;
}
.custom-file-upload i {
    font-size: 2rem;
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.3s ease;
}
.custom-file-upload:hover i {
    transform: translateY(-5px) scale(1.1);
    color: #3b82f6;
}