/*
Theme Name: My Simple School Theme
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: A custom WordPress theme for a school website.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, education, school
Text Domain: my-school-theme
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-blue: #1a237e;
    /* Deep Blue from School Logo */
    --primary-gold: #ffc107;
    /* Gold/Yellow from Logo */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f4f4f4;

    /* House Colors */
    --house-red: #d32f2f;
    --house-green: #388e3c;
    --house-blue: #1976d2;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. TOP NOTIFICATION BAR
   ========================================= */
.top-bar {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    font-weight: bold;
    padding: 8px 0;
    font-size: 14px;
}

.marquee-container {
    display: flex;
    align-items: center;
}

.badge {
    background-color: red;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 80px;
    /* Adjust based on your logo quality */
    width: auto;
}

.school-identity h1 {
    font-size: 24px;
    color: var(--primary-blue);
    line-height: 1.2;
}

.tagline {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-gold);
    background: var(--primary-blue);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.sub-address {
    font-size: 12px;
    color: var(--text-light);
}

.contact-quick {
    display: flex;
    gap: 20px;
}

.info-box {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.info-box .label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
}

.info-box .value {
    font-weight: bold;
    color: var(--primary-blue);
}

/* Navbar */
.navbar {
    background-color: var(--primary-blue);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 15px;
    transition: background 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
}

.btn-apply {
    background: linear-gradient(45deg, #FFD700, #ffca28);
    /* Gold Gradient */
    color: var(--primary-blue);
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    /* Glow effect */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    background: linear-gradient(45deg, #fff, #FFD700);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    /* PLACEHOLDER COLOR until you add image */
    background-color: #ddd;
    /* UNCOMMENT THE LINE BELOW AFTER ADDING school_hero.jpg */
    background-image: url('images/school_hero.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    /* Dark overlay for text readability */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-subtitle {
    display: block;
    font-size: 18px;
    color: var(--primary-gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.primary-btn {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
}

.primary-btn:hover {
    background-color: #e0a800;
}

.secondary-btn {
    border: 2px solid var(--white);
    color: var(--white);
}

.secondary-btn:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* =========================================
   5. HIGHLIGHTS & SECTIONS
   ========================================= */
.section-padding {
    padding: 60px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: -50px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.highlight-box {
    background: var(--white);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary-gold);
    border-radius: 5px;
    transition: transform 0.3s;
}

.highlight-box:hover {
    transform: translateY(-5px);
}

.highlight-box h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-gold);
    margin: 10px auto 0;
}

/* =========================================
   6. LEADERSHIP (Director & Principal)
   ========================================= */
.bg-light {
    background-color: var(--light-bg);
}

.message-card {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.message-card.reverse {
    flex-direction: row-reverse;
}

.image-box {
    flex: 1;
    height: 400px;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-box {
    flex: 1.5;
    padding: 40px;
}

.role-badge {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.text-box h3 {
    font-size: 28px;
    margin-top: 10px;
    color: var(--primary-blue);
}

.text-box h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.quote {
    font-style: italic;
    font-size: 18px;
    color: #444;
    border-left: 4px solid var(--primary-blue);
    padding-left: 15px;
    margin-bottom: 20px;
}

/* =========================================
   7. HOUSE SYSTEM
   ========================================= */
.house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.house-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.house-card:hover {
    transform: translateY(-10px);
}

.house-icon img {
    height: 100px;
    margin-bottom: 20px;
}

.house-card .slogan {
    font-weight: bold;
    font-style: italic;
    margin: 10px 0;
}

/* Specific House Styling */
.red-theme {
    border-top: 5px solid var(--house-red);
}

.red-theme .slogan {
    color: var(--house-red);
}

.green-theme {
    border-top: 5px solid var(--house-green);
}

.green-theme .slogan {
    color: var(--house-green);
}

.blue-theme {
    border-top: 5px solid var(--house-blue);
}

.blue-theme .slogan {
    color: var(--house-blue);
}

/* =========================================
   8. FACILITIES & GALLERY
   ========================================= */
.bg-dark {
    background-color: #1a1a1a;
    color: var(--white);
}

.white-text h2 {
    color: var(--white);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.facility-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-gold);
}

.facility-item h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 18px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    text-align: center;
}

.gallery-placeholder {
    background-color: #ddd;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #777;
    border-radius: 5px;
    margin-bottom: 5px;
    border: 2px dashed #bbb;
}

/* =========================================
   9. FOOTER
   ========================================= */
.cta-section {
    background: linear-gradient(to right, var(--primary-blue), #2c3e50);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.cta-section ul {
    list-style: none;
    margin: 20px 0;
}

.white-btn {
    background: var(--white);
    color: var(--primary-blue);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.main-footer {
    background-color: #111;
    color: #aaa;
    padding: 50px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: var(--primary-gold);
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.social-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    text-align: center;
}

.fb {
    background: #3b5998;
}

.yt {
    background: #c4302b;
}

.insta {
    background: #C13584;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* =========================================
   10. RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: row;
        /* Keeps Logo and Text side-by-side */
        align-items: center;
        text-align: left;
        padding: 5px 10px;
        /* Reduces vertical space */
        justify-content: flex-start;
        gap: 10px;
    }

    .contact-quick {
        display: none;
        /* Hide quick contact on small mobile to save space */
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .message-card,
    .message-card.reverse {
        flex-direction: column;
    }

    /* Force 2 columns for features on mobile */
    .grid-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 items per row */
        gap: 10px;
        margin-top: -30px;
    }

    .logo-area {
        display: flex;
        flex-direction: row;
        align-items: center;
        /* Vertically center logo with text */
        width: 100%;
        gap: 12px;
        /* Space between Logo and School Name */
    }

    /* Hide the Quick Contact (Phone/Email) on mobile to save space */
    .contact-quick {
        display: none;
    }

    .highlight-box {
        padding: 15px;
        /* Smaller padding inside boxes */
        font-size: 13px;
        /* Smaller text */
    }

    .highlight-box h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .image-box {
        height: 250px;
        width: 100%;
    }
}

/* =========================================
   NEW SCROLLING GALLERY STYLES
   ========================================= */

.gallery-scroller {
    display: flex;
    overflow-x: auto;
    /* Allows scrolling sideways */
    scroll-snap-type: x mandatory;
    /* Makes it "snap" to each picture */
    gap: 20px;
    padding-bottom: 20px;
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iPhones */
}

/* Hide the ugly scrollbar but keep functionality */
.gallery-scroller::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroller::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gallery-scroller::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

.gallery-card {
    flex: 0 0 300px;
    /* Fixed width for laptop view */
    scroll-snap-align: center;
    /* Snaps to center when scrolling */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.gallery-card img {
    width: 100%;
    height: 200px;
    /* Fixed height for all images */
    object-fit: cover;
    /* Crops image nicely without stretching */
}

.gallery-card .caption {
    padding: 15px;
    text-align: center;
}

.gallery-card h4 {
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 18px;
}

.gallery-card p {
    font-size: 14px;
    color: #666;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .gallery-card {
        flex: 0 0 85%;
        /* On phones, make card take up 85% of screen width */
    }
}

/* =========================================
   1. LOADER STYLES
   ========================================= */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-text {
    margin-top: 20px;
    font-weight: bold;
    color: var(--primary-blue);
    letter-spacing: 1px;
    animation: blink 1.5s infinite;
}

/* A Simple Book Animation */
.book-loader {
    border: 4px solid var(--primary-blue);
    width: 60px;
    height: 45px;
    position: relative;
    perspective: 150px;
}

.book-loader ul {
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.book-loader li {
    position: absolute;
    top: 0;
    left: 0;
    border: 2px solid var(--primary-gold);
    width: 100%;
    height: 100%;
    transform-origin: 0% 50%;
    background: #fff;
    animation: flip 2s infinite linear;
}

@keyframes flip {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(-180deg);
        opacity: 0;
    }

    100% {
        transform: rotateY(-180deg);
        opacity: 0;
    }
}

/* =========================================
   2. MODERN CAROUSEL (Infinite Scroll)
   ========================================= */
.overflow-hidden {
    overflow: hidden;
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    width: calc(300px * 12);
    /* 300px width * 12 cards */
    animation: scroll 30s linear infinite;
    /* Auto Scroll Animation */
}

/* Hover pauses the scroll so they can read */
.carousel-track:hover {
    animation-play-state: paused;
}

.modern-card {
    width: 300px;
    height: 220px;
    margin: 0 15px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.modern-card:hover {
    transform: scale(1.05);
}

.modern-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Overlay Effect */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
    color: white;
    transform: translateY(100%);
    /* Hidden initially */
    transition: transform 0.3s ease;
}

.modern-card:hover .overlay {
    transform: translateY(0);
    /* Slides up on hover */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-300px * 6 - 90px));
    }

    /* Scroll half width */
}

/* =========================================
   3. MODERN CTA (Join Family)
   ========================================= */
.cta-modern {
    position: relative;
    background-image: url('images/school_hero.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.9), rgba(20, 20, 50, 0.9));
    /* Deeper, richer blue */
}

.relative-z {
    position: relative;
    z-index: 2;
    width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    /* Stronger blur for premium feel */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px 40px;
    border-radius: 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    /* Deep shadow for depth */
}

.glass-card h2 {
    color: var(--primary-gold);
    font-size: 36px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: inline-block;
    border-bottom: 3px solid var(--primary-gold);
    padding-bottom: 10px;
}

.cta-sub {
    font-size: 18px;
    line-height: 1.6;
    max-width: 80%;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.features-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
}

/* PROFESSIONAL WHATSAPP BUTTON */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    /* Official Gradient */
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    /* Glowing Green Shadow */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 12px;
}

.btn-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #2cf575 0%, #16a090 100%);
}

.wa-icon {
    font-size: 24px;
}

/* =========================================
   4. MINIMALIST FOOTER
   ========================================= */
.footer-minimal {
    background-color: #111;
    color: #888;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.f-logo {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-gold);
    padding-left: 10px;
}

.f-col h4 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.f-col ul {
    list-style: none;
}

.f-col ul li {
    margin-bottom: 10px;
}

.f-col ul li a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.f-col ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.f-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: 0.3s;
}

.social-btn.fb {
    background: #3b5998;
}

.social-btn.yt {
    background: #c4302b;
}

.social-btn.in {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.footer-bar {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
}

/* =========================================
   5. NEW JS FEATURES STYLING
   ========================================= */

/* Mobile Menu Button (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
    transition: 0.4s;
}

/* Scroll Reveal Animation (Hidden State) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    /* Pushed down slightly */
    transition: all 0.8s ease-out;
}

/* Visible State (JS adds this class) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   NOTIFICATION BANNER STYLES
   ============================================================ */
.notification-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    animation: slideDown 0.5s ease-out;
    border: 2px solid #2c3e50;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    position: relative;
}

.banner-image-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.banner-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.banner-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2c3e50;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.banner-close:hover {
    background: #e74c3c;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .notification-banner {
        top: 70px;
        width: 95%;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .banner-image-wrapper {
        width: 100px;
        height: 100px;
    }

    .banner-title {
        font-size: 1.2rem;
    }

    .banner-description {
        font-size: 0.9rem;
    }

    .banner-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* ============================================================
   GOOGLE MAPS LOCATION SECTION
   ============================================================ */
.location-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-info {
    padding: 40px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.map-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.map-info p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-info i {
    color: #ffd700;
    font-size: 1.3rem;
}

.map-directions {
    margin-top: 30px;
}

.btn-directions {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-directions:hover {
    background: #ffd700;
    color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.map-embed {
    position: relative;
    height: 500px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 968px) {
    .map-container {
        grid-template-columns: 1fr;
    }

    .map-info {
        padding: 30px;
    }

    .map-embed {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .location-section {
        padding: 60px 0;
    }

    .map-info h3 {
        font-size: 1.5rem;
    }

    .map-info p {
        font-size: 1rem;
    }

    .map-embed {
        height: 300px;
    }
}

/* Back to Top Button */
#back-to-top {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

#back-to-top:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* Mobile Responsiveness for Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        text-align: center;
        flex-direction: column;
        background-color: var(--primary-blue);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
        /* Show menu when active */
    }
}

/* =========================================
   MODERN ABOUT SECTION STYLES
   ========================================= */
.about-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Text takes more space */
    gap: 60px;
    align-items: center;
}

.sub-heading {
    text-transform: uppercase;
    color: var(--primary-gold);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 13px;
}

.about-text h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-top: 5px;
    line-height: 1.2;
}

.divider-left {
    height: 4px;
    width: 60px;
    background-color: var(--primary-gold);
    margin: 15px 0 25px 0;
}

.about-text p {
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.link-arrow {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-gold);
    transition: 0.3s;
}

.link-arrow:hover {
    color: var(--primary-gold);
    border-color: var(--primary-blue);
}

/* The Right Side Card */
.about-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

/* Background decoration for card */
.about-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0.2;
}

.card-stat {
    margin-bottom: 30px;
}

.card-stat h3 {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-highlight {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    font-style: italic;
    font-family: serif;
    /* Gives a "Motto" feel */
}

.card-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-box {
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-box .label {
    display: block;
    font-size: 12px;
    color: #777;
}

.stat-box .value {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
}

.reg-box {
    background: #eef2ff;
    /* Light blue bg */
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px dashed var(--primary-blue);
}

.reg-box small {
    display: block;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 2px;
}

.reg-box code {
    font-family: monospace;
    color: #444;
    font-size: 13px;
}

/* Mobile Response */
@media (max-width: 768px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   MODERN HOUSE SYSTEM STYLES
   ========================================= */
.house-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.house-card-pro {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Color Variables for each house */
.red-style {
    --theme-color: #d32f2f;
}

.green-style {
    --theme-color: #388e3c;
}

.blue-style {
    --theme-color: #1976d2;
}

.house-icon-wrapper img {
    height: 120px;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s;
}

.house-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.house-slogan {
    display: block;
    font-family: 'Georgia', serif;
    /* Classic font for quotes */
    font-style: italic;
    color: var(--theme-color);
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

/* Small line under slogan */
.house-slogan::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--theme-color);
    opacity: 0.3;
}

.house-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* HOVER EFFECTS (The Magic) */
.house-card-pro:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--theme-color);
}

.house-card-pro:hover .house-icon-wrapper img {
    transform: scale(1.1) rotate(5deg);
    /* Slight pop and tilt */
}

/* The "Glow" Background Circle */
.glow-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--theme-color);
    border-radius: 50%;
    opacity: 0.05;
    transition: 0.5s;
    z-index: 0;
}

.house-card-pro:hover .glow-bg {
    transform: scale(5);
    /* Expands to cover whole card faintly */
    opacity: 0.03;
}

/* =========================================
   FIXED FLOATING ELEMENTS
   ========================================= */

/* 1. Floating WhatsApp Button (Round) - LEFT SIDE */
.float-wa-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* Moved to LEFT */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: floatPulse 3s infinite;
}

.float-wa-btn:hover {
    transform: scale(1.1) rotate(10deg);
    /* Fun hover effect */
    background-color: #20b858;
}

@keyframes floatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        transform: translateY(-5px);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: translateY(0);
    }
}

/* Adjust Back to Top Button position so it doesn't overlap WhatsApp */
#back-to-top {
    bottom: 100px !important;
    /* Move it up above WhatsApp */
    right: 35px !important;
    width: 50px;
    height: 50px;
}

/* 2. Mobile Sticky Admission Bar (Initially Hidden on Desktop) */
.mobile-sticky-bar {
    display: none;
    /* Hidden by default */
}

/* SHOW ONLY ON MOBILE */
@media (max-width: 768px) {

    /* Hide the round floating button on mobile if it blocks the bar, 
       OR move it up. Let's move it up. */
    .float-wa-btn {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    #back-to-top {
        bottom: 150px !important;
        right: 25px !important;
    }

    .mobile-sticky-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--primary-blue);
        padding: 5px 15px;
        /* Reduced padding makes it thinner */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        z-index: 2000;
        border-top: 3px solid var(--primary-gold);
    }

    .ms-text {
        display: flex;
        flex-direction: column;
        color: white;
    }

    .ms-text span {
        font-weight: 800;
        font-size: 14px;
        text-transform: uppercase;
        color: var(--primary-gold);
    }

    .ms-text small {
        font-size: 11px;
        opacity: 0.8;
    }

    .ms-btn {
        background: var(--primary-gold);
        color: var(--primary-blue);
        text-decoration: none;
        padding: 8px 20px;
        border-radius: 25px;
        font-weight: bold;
        font-size: 13px;
        animation: fade-in-out 2s infinite alternate;
    }
}

/* =========================================
   MOBILE FIXES (Screens smaller than 768px)
   ========================================= */
@media (max-width: 768px) {

    /* 1. Fix the Header Alignment & Size */
    .header-flex {
        flex-direction: row;
        /* Forces side-by-side */
        align-items: center;
        /* Vertically centers them */
        justify-content: flex-start;
        /* Pushes everything to the LEFT */
        text-align: left;
        padding: 5px 15px;
        /* Minimal padding for narrow height */
        gap: 0;
        /* Remove gap, we handle spacing in logo-area */
    }

    .logo {
        height: 45px;
        /* Compact logo height */
        width: auto;
        margin: 0;
        /* Remove extra margins */
    }

    /* --- FIX: COMPACT LEADERSHIP CARDS (Director/Principal) --- */
    .message-card,
    .message-card.reverse {
        flex-direction: column !important;
        /* Stack vertically */
        height: auto !important;
        margin-bottom: 30px !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #eee !important;
    }

    /* 1. Smaller, Focused Image Area */
    .image-box {
        height: 180px !important;
        /* Reduced from 400px/250px */
        width: 100% !important;
    }

    .image-box img {
        object-position: top center !important;
        /* Focus on the face */
        height: 100% !important;
        width: 100% !important;
    }

    /* 2. Compact Text Area */
    .text-box {
        padding: 20px 15px !important;
        /* Much tighter padding */
        text-align: center !important;
        /* Center align looks better on mobile */
    }

    /* 3. Badge & Name Styling */
    .role-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
        display: inline-block !important;
        margin-bottom: 8px !important;
    }

    .text-box h3 {
        font-size: 22px !important;
        /* Compact Name */
        margin-top: 5px !important;
        margin-bottom: 2px !important;
    }

    .text-box h4 {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }

    /* 4. Quote & Text */
    .quote {
        font-size: 14px !important;
        padding-left: 0 !important;
        border-left: none !important;
        /* Remove side border for center layout */
        border-top: 2px solid var(--primary-gold) !important;
        /* Top border instead */
        padding-top: 10px !important;
        margin-bottom: 10px !important;
        font-weight: 600 !important;
    }

    .text-box p {
        font-size: 13px !important;
        line-height: 1.6 !important;
        text-align: justify !important;
        /* Clean text block */
    }

    .school-identity {
        display: flex;
        flex-direction: column;
        /* Stacks Name on top of Tagline */
        justify-content: center;
        align-items: flex-start;
        /* Left aligns text */
    }

    .school-identity h1 {
        font-size: 18px;
        /* BIGGER and clear */
        font-weight: 800;
        /* Extra Bold */
        color: var(--primary-blue);
        margin: 0;
        line-height: 1.1;
        /* Tighter spacing */
    }

    .tagline {
        font-size: 10px;
        font-weight: 600;
        color: white;
        background: var(--primary-blue);
        /* Blue pill background */
        padding: 1px 6px;
        border-radius: 4px;
        margin-top: 3px;
        /* Small space between Name and Tagline */
        display: inline-block;
        white-space: nowrap;
        /* Keeps tagline on one line if possible */
    }

    /* Hide the address on mobile to keep header thin */
    .sub-address {
        display: none;
    }

    /* --- MOBILE MENU (Clean Dropdown) --- */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        /* Full width of phone */
        position: absolute;
        /* Floating */
        top: 55px;
        /* Starts exactly below the 55px header */
        left: 0;
        background-color: white;
        /* Clean White Background */
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        /* Drop shadow */
        border-top: 3px solid var(--primary-gold);
        /* Gold accent line */
        padding: 0;
        z-index: 9999;
        /* On top of everything */
        max-height: 70vh;
        /* Never cover more than 70% of screen */
        overflow-y: auto;
        /* Scroll if menu is too long */
    }

    /* The 'Active' class is added by JS when you click the button */
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
        /* Smooth slide animation */
    }

    /* List Items */
    .nav-links li {
        width: 100%;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid #eee;
        /* Grey divider lines */
    }

    /* Links Text */
    .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 25px;
        /* Comfortable clickable area */
        color: var(--primary-blue);
        /* Dark Blue text */
        font-weight: 600;
        font-size: 15px;
        background: transparent;
        transition: all 0.2s;
    }

    /* Hover/Touch Effect */
    .nav-links li a:hover {
        background-color: #f4f4f4;
        /* Light grey highlight */
        color: var(--primary-gold);
        padding-left: 30px;
        /* Slight movement effect */
    }

    /* Add a tiny arrow for visual cue */
    .nav-links li a::after {
        content: '›';
        font-size: 20px;
        color: #ccc;
    }

    /* Slide Animation Keyframes */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 3. HIDE the Top 'Enquire Now' Button on Mobile 
       (Because we already have the bottom sticky bar now) */
    .navbar .btn-apply {
        display: none;
    }

    /* 4. Fix the Hamburger Menu Position */
    .menu-toggle {
        display: flex;
        /* Ensure it's visible */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        /* Center vertically */
    }

    /* 5. Fix Hero Text Size */
    .hero-title {
        font-size: 32px;
        /* Reduce from 48px */
        line-height: 1.2;
    }

    .hero-section {
        height: 400px;
        /* Reduce height slightly on mobile */
        background-position: center;
    }

    /* 6. Adjust Top Marquee */
    .marquee-container {
        font-size: 11px;
    }

    .badge {
        font-size: 9px;
        padding: 1px 4px;
    }

    /* 7. Ensure Bottom Bar & WhatsApp don't overlap */
    .mobile-sticky-bar {
        padding-bottom: env(safe-area-inset-bottom);
        /* Fix for iPhones */
        z-index: 9999;
    }

    /* Move the floating WhatsApp button up so it sits above the Admission bar */
    .float-wa-btn {
        bottom: 90px !important;
        right: 15px !important;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
}

/* =========================================
   FIX FOR "JOIN FAMILY" SECTION ON MOBILE (Final Wide V6)
   ========================================= */
@media (max-width: 768px) {

    /* 1. MAXIMIZE CONTAINER WIDTH */
    .cta-modern {
        padding: 30px 5px !important;
        /* Very small outer padding */
    }

    .glass-card {
        width: 100% !important;
        /* Force full width of container */
        max-width: 96% !important;
        /* Keep tiny margin on edges */
        margin: 0 auto !important;
        padding: 25px 15px !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
    }

    /* 2. TEXT ADJUSTMENTS */
    .glass-card h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }

    .cta-sub {
        font-size: 14px !important;
        line-height: 1.5 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        padding: 0 5px !important;
        /* Ensure text doesn't hit edges */
    }

    /* 3. COMPACT FEATURES (Side-by-Side Chips) */
    .features-row {
        display: flex !important;
        flex-direction: row !important;
        /* Force horizontal row */
        flex-wrap: wrap !important;
        /* Wrap to next line if needed */
        justify-content: center !important;
        gap: 8px !important;
        /* Small gap between items */
        margin-bottom: 20px !important;
    }

    .feat-item {
        width: auto !important;
        /* Only as wide as the text */
        flex: 0 0 auto !important;
        /* Prevent stretching */
        padding: 6px 12px !important;
        /* Small padding */
        font-size: 12px !important;
        /* Small text */
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 20px !important;
        margin: 0 !important;
    }

    .feat-item .icon {
        font-size: 14px !important;
        margin-right: 5px !important;
    }

    /* 4. COMPACT & FULL WIDTH WHATSAPP BUTTON */
    .btn-whatsapp {
        width: 100% !important;
        /* Fill the box width */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 14px !important;
        /* Smaller text */
        padding: 10px 0 !important;
        /* Slimmer height */
        border-radius: 8px !important;
        /* Professional rounded corners */
        margin-top: 5px !important;
        box-shadow: none !important;
        /* Remove heavy shadow */
        background: #25D366 !important;
        /* Flat clean green */
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .wa-icon {
        font-size: 16px !important;
        margin-right: 8px !important;
    }
}

/* =========================================
   MASTER MOBILE FIXES (Professional V3)
   - 2-Column Footer Grid
   - Clean Copyright Bar
   - Split Floating Buttons
   ========================================= */
@media (max-width: 768px) {


    /* --- 1. TOP HEADER & LOGO (Clean One-Line V4) --- */
    .header-flex {
        display: flex !important;
        flex-direction: row !important;
        /* Force side-by-side */
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 10px !important;
        /* Minimal padding */
        height: 55px !important;
        /* Fixed compact height */
        background: white;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        /* Subtle shadow */
    }

    /* LEFT SIDE: Logo + Text */
    .logo-area {
        display: flex;
        align-items: center;
        gap: 8px;
        /* Space between logo and name */
        flex: 1;
        /* Takes available space */
        min-width: 0;
        /* Allows text to shrink */
        width: auto !important;
        /* Override any fixed widths */
    }

    /* LOGO: Small & Crisp */
    .logo {
        height: 35px !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* TEXT CONTAINER: Force One Line */
    .school-identity {
        display: flex !important;
        flex-direction: row !important;
        /* Name and Date side-by-side */
        align-items: baseline !important;
        /* Aligns text cleanly */
        gap: 5px !important;
        width: auto !important;
    }

    /* NAME: Rohtas Public School */
    .school-identity h1 {
        font-size: 14px !important;
        /* Smaller size to fit phone */
        line-height: 1;
        margin: 0;
        color: var(--primary-blue);
        font-weight: 800;
        white-space: nowrap;
        /* Never wrap to next line */
    }

    /* TAGLINE: The "Est. '06" part */
    /* REMOVING THE BLUE BOX STYLE HERE */
    .tagline {
        display: block !important;
        /* Ensure it is visible */
        font-size: 0 !important;
        /* Hide original long text */
        background: transparent !important;
        /* REMOVE BLUE BG */
        color: #888 !important;
        /* Grey text */
        padding: 0 !important;
        /* Remove padding */
        margin: 0 !important;
        border-radius: 0 !important;
        width: auto !important;
    }

    /* Insert the short date */
    .tagline::after {
        content: "| Est. 2006";
        font-size: 11px;
        /* Visible size */
        color: #666;
        white-space: nowrap;
    }

    /* HIDE DESKTOP EXTRAS */
    .sub-address,
    .contact-quick,
    .navbar .btn-apply {
        display: none !important;
    }

    /* MENU BUTTON: Right Side */
    .navbar {
        min-height: auto !important;
        background: transparent !important;
        width: auto !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        margin: 0 !important;
        padding: 8px;
        background: var(--primary-blue);
        border-radius: 6px;
        width: 35px;
        height: 35px;
        /* Fixed square button */
    }

    .menu-toggle .bar {
        background-color: white;
        height: 2px;
        margin: 2px 0;
        /* Tight spacing */
        width: 100%;
    }

    /* --- 2. GENERAL SECTIONS --- */
    .hero-title {
        font-size: 28px;
    }

    .hero-section {
        height: 400px;
    }

    /* Force features to 1 column */


    /* --- 3. CTA (FAMILY) SECTION - WIDER & CLEANER --- */
    .cta-modern {
        padding: 40px 10px;
        /* Reduced outer padding so box can be wider */
    }

    .glass-card {
        width: 95% !important;
        /* Almost full width but leaves a small margin */
        margin: 0 auto !important;
        /* Centers the box */
        padding: 30px 20px !important;
        box-sizing: border-box !important;
    }

    /* Title Styling */
    /* Special Style for the Join Family Headline */
    .glass-card h2 {
        color: var(--primary-gold);
        /* Make it Gold */
        font-size: 22px;
        /* medium size */
        text-transform: uppercase;
        /* ALL CAPS */
        font-weight: 900;
        /* Extra Bold */
        letter-spacing: 2px;
        /* Wide letter spacing */
        text-shadow: 2px 2px 0px #000;
        /* 3D Shadow effect */
        border-bottom: 3px solid var(--primary-gold);
        /* Thick underline */
        padding-bottom: 10px;
        /* Space between text and underline */
        margin-bottom: 25px;
        /* Space below the title */
        display: inline-block;
        /* Keeps underline only as wide as text */
    }

    /* Paragraph Text - Justified */
    .cta-sub {
        text-align: justify !important;
        /* Neatly aligns left and right edges */
        text-justify: inter-word;
        /* Improves spacing between words */
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px;
        display: block;
    }

    /* Features List (Small Class Size etc.) - Left Aligned */
    .features-row {
        flex-direction: column !important;
        gap: 15px !important;
        margin: 20px 0 30px 0 !important;
        /* Extra bottom margin to separate from button */
        align-items: flex-start !important;
        /* Aligns items to the LEFT */
        padding-left: 10px;
        /* Indent slightly so it looks neat */
    }

    .feat-item {
        justify-content: flex-start !important;
        /* content inside stays left */
        font-size: 16px;
        width: 100%;
    }

    /* Green Button - Separate from Floating Icon */
    .btn-whatsapp {
        width: 100% !important;
        font-size: 15px !important;
        padding: 15px !important;
        white-space: normal !important;
        text-align: center;
        border-radius: 12px !important;
        margin-bottom: 10px;
        /* Push it up slightly from the edge */
        position: relative;
        z-index: 5;
        /* Ensure it sits above background elements */
    }


    /* --- 4. PROFESSIONAL FOOTER GRID --- */
    .footer-minimal {
        padding: 40px 15px 0 15px !important;
        /* REMOVED extra bottom padding */
        text-align: left;
    }

    /* Create the 2-Column Grid for Links & Contact */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Two equal columns */
        gap: 20px;
        align-items: start;
    }

    /* Make the Brand (RPS Kochas) span across the top */
    .f-col.brand-col {
        grid-column: 1 / -1;
        /* Spans full width */
        text-align: center;
        margin-bottom: 20px;
        border-bottom: 1px solid #333;
        padding-bottom: 20px;
    }

    .f-logo {
        border: none;
        margin-bottom: 10px;
        display: block;
    }

    /* Footer Headings */
    .f-col h4 {
        font-size: 16px;
        margin-bottom: 15px;
        color: var(--white);
        border-bottom: 2px solid var(--primary-gold);
        display: inline-block;
        padding-bottom: 3px;
    }

    /* Font Sizes for Links & Text */
    .f-col ul li a,
    .f-col p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Social Icons (Span full width at bottom) */
    .f-col:last-child {
        grid-column: 1 / -1;
        /* Spans full width */
        text-align: center;
        margin-top: 20px;
    }

    .f-socials {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    /* Copyright Bar - Single Line */
    .footer-bar {
        padding: 15px 0 60px 0;
        /* Add space at bottom so bar isn't covered */
        margin-top: 0;
        font-size: 11px;
    }

    /* --- 5. FLOATING BUTTON POSITIONS (Fixed Low) --- */
    /* WhatsApp on Left - Lowered */
    .float-wa-btn {
        bottom: 60px !important;
        /* Just above the Admission bar */
        left: 15px !important;
        right: auto !important;
        width: 45px;
        /* Slightly smaller for mobile */
        height: 45px;
        font-size: 24px;
    }

    /* Back to Top on Right - Lowered */
    #back-to-top {
        bottom: 60px !important;
        /* Matches WhatsApp height */
        right: 15px !important;
        width: 45px;
        height: 45px;
        font-size: 20px;
        padding: 0;
        /* Centering fix */
        display: flex;
        /* Ensures arrow is centered */
        justify-content: center;
        align-items: center;
    }

    /* --- FIX: HIGHLIGHTS 2x2 GRID --- */
    /* 1. Create a 2-Column Grid */
    .grid-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Two boxes per row */
        gap: 10px !important;
        /* Small gap between boxes */
        margin-top: 30px !important;
        padding: 0 10px !important;
        /* Add side breathing room */
        position: relative;
        z-index: 10;
    }

    /* 2. Style the Boxes to be Compact */
    .highlight-box {
        padding: 15px 10px !important;
        /* Reduce padding inside */
        border-radius: 10px !important;
        text-align: center !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center text vertically */
        min-height: 110px;
        /* Force equal height */
        background: white;
    }

    /* 3. Smaller Heading */
    .highlight-box h3 {
        font-size: 14px !important;
        color: var(--primary-blue);
        margin-bottom: 5px !important;
        line-height: 1.2;
    }

    /* 4. Smaller Description Text */
    .highlight-box p {
        font-size: 11px !important;
        color: #555;
        line-height: 1.4 !important;
        margin: 0 !important;
        display: block;
        /* Ensure it shows */
    }

    /* Keep Facilities Grid as 1 Column (Optional, usually better for lists) */
    .facilities-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   LIGHTBOX MODAL STYLES (Web & Mobile)
   ========================================= */

/* 1. The Image on the page (before clicking) */
.clickable-image {
    cursor: zoom-in;
    /* Shows a magnifying glass cursor */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    /* Slight zoom effect on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 2. The Modal Background (Dark Overlay) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 99999;
    /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* No scrolling */
    background-color: rgba(0, 0, 0, 0.92);
    /* Deep black transparent bg */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 3. The Expanded Image */
.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    /* Keep some space on sides */
    max-height: 80vh;
    /* Keep space above and below for UI */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
    /* Subtle zoom effect on open */
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 4. The Close Button (Top Right) */
.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: 300;
    transition: 0.3s;
    z-index: 100000;
    line-height: 1;
    padding: 5px;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-gold);
    text-decoration: none;
    cursor: pointer;
}

/* 5. Caption Text (Bottom Left) */
#captionText {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.75);
    /* Dark semi-transparent background for readability */
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    max-width: 600px;
    /* Don't let text stretch too wide on big screens */
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    border-left: 4px solid var(--primary-gold);
    /* Gold accent bar */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* =========================================
   QUIZ SECTION — RPS HIT 2026 PRACTICE
   ========================================= */

/* ── Section Wrapper ── */
#quiz-section {
    background: linear-gradient(135deg, #0d1b4b 0%, #1a237e 60%, #002147 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

#quiz-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 193, 7, 0.06);
    border-radius: 50%;
}

#quiz-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 50%;
}

.quiz-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-section-header .quiz-badge {
    background: var(--primary-gold);
    color: var(--primary-blue);
    font-weight: 800;
    padding: 5px 18px;
    border-radius: 30px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.quiz-section-header h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.quiz-section-header p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Stats Row ── */
.quiz-stats-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.quiz-stat-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(6px);
}

.quiz-stat-pill span.pill-icon {
    font-size: 18px;
}

/* ── Main Quiz Container ── */
.quiz-container {
    background: #fff;
    border-radius: 20px;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ── SCREEN: Registration ── */
.quiz-screen {
    padding: 40px;
}

.quiz-screen.hidden {
    display: none !important;
}

.quiz-reg-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.quiz-reg-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.quiz-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.quiz-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quiz-form-group.full-width {
    grid-column: 1 / -1;
}

.quiz-form-group label {
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-form-group input,
.quiz-form-group select {
    padding: 12px 16px;
    border: 2px solid #e0e6f5;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
    color: #333;
}

.quiz-form-group input:focus,
.quiz-form-group select:focus {
    border-color: var(--primary-blue);
}

.quiz-rules-box {
    background: #f4f7fb;
    border-left: 4px solid var(--primary-gold);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.quiz-rules-box h4 {
    color: var(--primary-blue);
    font-size: 14px;
    margin-bottom: 10px;
}

.quiz-rules-box ul {
    list-style: none;
    padding: 0;
}

.quiz-rules-box ul li {
    font-size: 13px;
    color: #444;
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.quiz-rules-box ul li::before {
    content: '✔';
    color: var(--primary-blue);
    font-weight: bold;
    flex-shrink: 0;
}

.btn-start-quiz {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-blue), #1565c0);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
}

.btn-start-quiz:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(26, 35, 126, 0.4);
}

/* ── SCREEN: Active Quiz ── */
.quiz-top-bar {
    background: linear-gradient(135deg, var(--primary-blue), #1565c0);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-top-bar .student-info {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.quiz-top-bar .student-info strong {
    color: var(--primary-gold);
}

.quiz-timer {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.quiz-timer.danger {
    background: #d32f2f;
    border-color: #ff6b6b;
    animation: pulse-timer 0.8s infinite;
}

@keyframes pulse-timer {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.08)
    }
}

.quiz-progress-wrap {
    padding: 10px 28px 0;
}

.quiz-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 600;
}

.quiz-progress-bar {
    height: 6px;
    background: #e8eaf6;
    border-radius: 50px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-gold));
    border-radius: 50px;
    transition: width 0.3s;
}

.quiz-question-area {
    padding: 24px 28px;
}

.quiz-subject-tag {
    display: inline-block;
    background: #e8eaf6;
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-q-number {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 600;
}

.quiz-question-text {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.55;
    margin-bottom: 22px;
}

/* Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    border: 2px solid #e0e6f5;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.18s;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover:not(.selected):not(.disabled) {
    border-color: var(--primary-blue);
    background: #f0f3ff;
    transform: translateX(4px);
}

.quiz-option .opt-label {
    width: 30px;
    height: 30px;
    background: #e8eaf6;
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s;
}

.quiz-option.selected {
    border-color: var(--primary-blue);
    background: #e8eaf6;
}

.quiz-option.selected .opt-label {
    background: var(--primary-blue);
    color: #fff;
}

.quiz-option.correct {
    border-color: #2e7d32 !important;
    background: #e8f5e9 !important;
}

.quiz-option.correct .opt-label {
    background: #2e7d32 !important;
    color: #fff !important;
}

.quiz-option.wrong {
    border-color: #c62828 !important;
    background: #ffebee !important;
}

.quiz-option.wrong .opt-label {
    background: #c62828 !important;
    color: #fff !important;
}

.quiz-option.disabled {
    cursor: default;
}

/* Nav Buttons */
.quiz-nav {
    padding: 0 28px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-nav-left,
.quiz-nav-right {
    display: flex;
    gap: 10px;
}

.btn-quiz-nav {
    padding: 11px 24px;
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    background: #fff;
    color: var(--primary-blue);
}

.btn-quiz-nav:hover {
    background: var(--primary-blue);
    color: #fff;
}

.btn-quiz-nav.primary {
    background: var(--primary-blue);
    color: #fff;
}

.btn-quiz-nav.primary:hover {
    background: #0d1470;
    border-color: #0d1470;
}

.btn-quiz-nav.danger {
    border-color: #c62828;
    color: #c62828;
}

.btn-quiz-nav.danger:hover {
    background: #c62828;
    color: #fff;
}

.btn-quiz-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Question Navigator Dots */
.q-navigator {
    padding: 0 28px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.q-dot {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #c5cae9;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.q-dot:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.q-dot.answered {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.q-dot.current {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px var(--primary-gold);
}

/* ── SCREEN: Results ── */
.result-header {
    background: linear-gradient(135deg, var(--primary-blue), #1565c0);
    padding: 36px 28px;
    text-align: center;
    color: #fff;
}

.result-emoji {
    font-size: 56px;
    margin-bottom: 8px;
}

.result-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.result-student-name {
    opacity: 0.8;
    font-size: 14px;
    margin-top: 4px;
}

.result-score-ring {
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.12);
    border: 6px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 18px auto;
}

.result-score-ring .score-num {
    font-size: 2.2rem;
    font-weight: 900;
}

.result-score-ring .score-den {
    font-size: 14px;
    opacity: 0.75;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 24px 28px;
    border-bottom: 1px solid #eee;
}

.result-stat {
    background: #f4f7fb;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
}

.result-stat .rs-value {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--primary-blue);
}

.result-stat .rs-value.green {
    color: #2e7d32;
}

.result-stat .rs-value.red {
    color: #c62828;
}

.result-stat .rs-value.gold {
    color: #f57f17;
}

.result-stat .rs-label {
    font-size: 11px;
    color: #777;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.result-message {
    margin: 0 28px 20px;
    padding: 16px 20px;
    border-radius: 14px;
    border-left: 5px solid var(--primary-gold);
    background: #fffde7;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    font-style: italic;
}

/* Result breakdown table */
.result-breakdown {
    padding: 0 28px 10px;
}

.result-breakdown h3 {
    color: var(--primary-blue);
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 800;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.breakdown-table th {
    background: var(--primary-blue);
    color: #fff;
    padding: 9px 12px;
    text-align: left;
    font-weight: 700;
}

.breakdown-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.breakdown-table tr:nth-child(even) td {
    background: #f9f9f9;
}

.tag-correct {
    color: #2e7d32;
    font-weight: 800;
}

.tag-wrong {
    color: #c62828;
    font-weight: 800;
}

.tag-skip {
    color: #999;
    font-weight: 600;
}

.result-actions {
    padding: 20px 28px 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-result {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
    min-width: 140px;
}

.btn-result.primary {
    background: linear-gradient(135deg, var(--primary-blue), #1565c0);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 35, 126, 0.3);
}

.btn-result.primary:hover {
    transform: translateY(-2px);
}

.btn-result.secondary {
    background: #fff;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-result.secondary:hover {
    background: #f0f3ff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .quiz-screen {
        padding: 24px 18px;
    }

    .quiz-form-grid {
        grid-template-columns: 1fr;
    }

    .quiz-top-bar {
        padding: 14px 18px;
    }

    .quiz-question-area {
        padding: 18px;
    }

    .quiz-nav {
        padding: 0 18px 18px;
    }

    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quiz-section-header h2 {
        font-size: 1.6rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .q-navigator {
        padding: 0 18px 16px;
    }
}

/* =========================================
   MOBILE ADJUSTMENTS FOR LIGHTBOX
   ========================================= */
@media only screen and (max-width: 768px) {

    /* Make image wider on phone */
    .modal-content {
        max-width: 95%;
        max-height: 70vh;
        /* Leave more room below for caption on phone */
    }

    /* Adjust close button position */
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

    /* Adjust caption for mobile */
    #captionText {
        bottom: 20px;
        left: 15px;
        right: 15px;
        /* Stretch across bottom with padding */
        width: auto;
        max-width: none;
        font-size: 14px;
        padding: 12px 15px;
    }
}