/* === CSS VARIABLES === */
:root {
    --primary: #7C4DFF;
    --secondary: #448AFF;
    --primary-dark: #5e35b1;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --bg-color: #F8FAFF;
    --text-dark: #2D3142;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(124, 77, 255, 0.1);
    --shadow-hover: 0 15px 40px rgba(124, 77, 255, 0.2);
    --transition: all 0.3s ease;
}

/* === GLOBAL STYLES & LAYOUT FIXES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    /* Strict overflow hiding prevents horizontal scrolling on mobile/iOS */
    overflow-x: hidden; 
    width: 100%;
    max-width: 100vw; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img, iframe {
    max-width: 100%;
    height: auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.mt-20 { margin-top: 20px; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* === HEADER & NAVIGATION === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Utility Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 5%;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.lang-search span { margin-right: 15px; cursor: pointer; }
.portals a { margin-left: 15px; font-weight: 500; }
.portals a:hover { text-decoration: underline; }

/* Main Nav */
.main-nav {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul { display: flex; gap: 30px; align-items: center; }
nav ul li a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}
nav ul li a:hover, nav ul li a.active-link { color: var(--primary); }

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    width: 25px; height: 3px;
    background: var(--text-dark);
    border-radius: 5px;
    transition: var(--transition);
}

/* === MAIN CONTENT === */
main {
    flex-grow: 1;
    margin-top: 110px; /* Accounts for top bar + main nav on desktop */
    width: 100%;
}

.page-content {
    padding: 0 5% 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* === 2. HERO SECTION === */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: auto;
    padding-top: 90px;
    position: relative;
    margin-bottom: 40px;
    gap: 40px; /* Prevents text from hitting image */
}

.hero-content { flex: 1; }
.hero-content h1 {
    font-size: 48px; line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    color: var(--text-light); font-size: 18px;
    margin-bottom: 30px; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-image { flex: 1; display: flex; justify-content: center; width: 100%; }

.hero-img-container {
    width: 100%; 
    max-width: 550px; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.hero-img-container:hover {
    transform: translateY(-10px);
}

.hero-img-container img {
    width: 100%; 
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================================
   SQUARE & CENTERED QUICK LINKS
   ========================================= */

/* 1. Center the entire group of cards */
.quick-links-grid {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 40px; /* Space between the cards */
    width: 100%;
    margin: 0 auto;
}

/* 2. Force the cards to be perfectly square */
.quick-links-grid > div, 
.quick-links-grid > a {
    width: 384px !important; 
    height: 140px !important; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers icon and text vertically */
    align-items: center;     /* Centers icon and text horizontally */
    text-align: center;
    box-sizing: border-box;
    /* Keeps your existing white background, shadow, and rounded corners */
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* 3. Add a nice hover float effect */
.quick-links-grid > div:hover, 
.quick-links-grid > a:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* === 4. WELCOME & STATS === */
.welcome-stats-section { margin-bottom: 80px; }
.welcome-container {
    display: flex; gap: 40px;
    background: var(--white);
    padding: 40px; border-radius: 20px;
    box-shadow: var(--shadow);
}
.welcome-text-box { flex: 1; }
.welcome-text-box .subtitle { color: var(--primary); font-weight: 500; margin-bottom: 15px; }
.welcome-text-box p { color: var(--text-light); line-height: 1.8; margin-bottom: 15px; font-style: italic;}

.stats-grid {
    flex: 1; display: grid;
    grid-template-columns: 1fr 1fr; gap: 15px;
}
.stat-card {
    background: var(--bg-color);
    padding: 20px; border-radius: 15px; text-align: center;
    display: flex; flex-direction: column; justify-content: center;
}
.stat-card h3 {
    font-size: 32px; margin-bottom: 5px;
    background: var(--gradient);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card p { font-size: 13px; color: var(--text-dark); font-weight: 500; }

/* === 6. ACADEMIC PROGRAMS === */
.programs-section { margin-bottom: 80px; }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.flip-card {
    background-color: transparent;
    height: 250px;
    perspective: 1000px;
}
.flip-card-inner {
    position: relative; width: 100%; height: 100%;
    text-align: center; transition: transform 0.6s;
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border-radius: 20px; padding: 25px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.flip-card-front { background: var(--white); color: var(--text-dark); }
.flip-card-front h3 { font-size: 20px; margin-bottom: 10px; }
.flip-card-front p { color: var(--primary); font-size: 14px; }
.flip-card-back {
    background: var(--gradient); color: white;
    transform: rotateY(180deg);
    font-size: 14px; line-height: 1.6;
}

/* === 5. NEWS & EVENTS === */
.news-events-section { margin-bottom: 80px; }
.news-events-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }

/* =========================================
   UPCOMING EVENTS CARD STYLES
   ========================================= */
.events-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card {
    display: flex;
    align-items: center;
    background: #f8f9fa; /* Light grey background */
    border-radius: 15px;
    padding: 15px;
    border-left: 5px solid var(--primary); /* Blue/Purple stripe on the left */
    transition: transform 0.2s ease, background 0.2s;
}

.event-card:hover {
    transform: translateX(5px); /* Slight nudge to the right on hover */
    background: #f0f4f8; /* Slightly darker grey on hover */
}

/* The Square Date Box */
.event-date {
    background: var(--white);
    min-width: 75px;
    height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-right: 20px;
}

.event-date .month {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date .day {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
}

/* The Text Details */
.event-details h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--text-dark);
}

.event-details p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Mobile Fixes for Event Cards */
@media (max-width: 500px) {
    .event-card {
        padding: 12px;
    }
    .event-date {
        min-width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    .event-date .month { font-size: 12px; }
    .event-date .day { font-size: 20px; }
    .event-details h3 { font-size: 16px; }
}

.news-grid-small { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card {
    background: var(--white); border-radius: 15px; overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
}
.news-card:hover { transform: translateY(-5px); }
.news-card img { width: 100%; height: 150px; object-fit: cover; }
.news-card-content { padding: 20px; }
.news-card-content h4 { margin-bottom: 10px; font-size: 16px; }
.news-card-content p { font-size: 13px; color: var(--text-light); margin-bottom: 15px; }

.read-more { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-block; }
.read-more:hover { text-decoration: underline; }

/* === 7. SOCIAL PROOF === */
.social-proof-section { margin-bottom: 80px; width: 100%; overflow: hidden; }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.testimonial-card {
    background: var(--white); padding: 30px; border-radius: 20px;
    box-shadow: var(--shadow); position: relative;
}
.testimonial-card::before {
    content: "❝"; position: absolute; top: 10px; left: 20px;
    font-size: 60px; color: rgba(124, 77, 255, 0.1);
}
.testimonial-card .quote { font-size: 15px; font-style: italic; color: var(--text-dark); margin-bottom: 15px; position: relative; z-index: 1;}
.testimonial-card .author { font-weight: 600; color: var(--primary); font-size: 14px;}

.social-feed { width: 100%; }
.social-gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 20px; width: 100%;
}
.social-gallery img {
    width: 100%; height: 200px; object-fit: cover; border-radius: 15px;
    transition: var(--transition); cursor: pointer;
}
.social-gallery img:hover { filter: brightness(0.8); }

/* === 8. FOOTER EXPANDED === */
.main-footer {
    background: var(--white); padding: 60px 5% 20px 5%;
    border-top: 1px solid #EAEAEA; margin-top: auto; width: 100%;
}
.footer-container {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
    max-width: 1200px; margin: 0 auto;
}
.footer-col h3 { margin-bottom: 20px; color: var(--text-dark); font-size: 18px; }
.footer-col p { color: var(--text-light); line-height: 1.6; font-size: 15px; }
.footer-links li, .footer-contact li { margin-bottom: 12px; color: var(--text-light); font-size: 14px; }
.footer-links li a:hover { color: var(--primary); padding-left: 5px; transition: var(--transition); }

.map-container iframe { width: 100%; max-width: 100%; }

.social-icons { display: flex; gap: 15px; }
.social-icon {
    width: 35px; height: 35px; border-radius: 50%;
    background: var(--bg-color); display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-weight: bold; transition: var(--transition);
}
.social-icon:hover { background: var(--gradient); color: var(--white); transform: translateY(-3px); }

.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #EAEAEA; color: var(--text-light); font-size: 13px; }
/* Make Quick Links / Social Icons stack line-by-line */
.footer-column .social-icons,
.quick-links .social-icons {
    display: flex;
    flex-direction: column; /* This forces them onto separate lines */
    align-items: flex-start; /* Aligns them neatly to the left */
    gap: 15px; /* Adds a little breathing room between each line */
}

/* =========================================
   📱 REDESIGNED MOBILE VIEW (THE FIX)
   ========================================= */

/* TABLETS & SMALL LAPTOPS */
@media (max-width: 1024px) {
    .welcome-container { flex-direction: column; gap: 40px;}
    .news-events-container { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .social-gallery { grid-template-columns: repeat(2, 1fr); }
    .hero { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 56px; }
    .hero-content p { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-image { justify-content: center; }
    .contact-layout, .map-grid { grid-template-columns: 1fr; }
}

/* PHONES & SMALL TABLETS (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. Hide Top Bar to save space */
    .top-bar { display: none; } 
    
    /* 2. Lock header size & Push main content down to fix the overlap */
    header { padding: 10px 5%; background: var(--white); }
    .main-nav { padding: 10px 0; }
    .logo { font-size: 28px; }
    main { margin-top: 100px; } 
    
    /* 3. Fix the Mobile Menu Dropdown */
    .hamburger { display: flex; }
    nav ul {
        position: absolute; 
        top: 100%; /* Forces menu to open exactly below header */
        left: 0; 
        width: 100%;
        background: var(--white); 
        flex-direction: column; 
        gap: 0;
        box-shadow: 0 15px 25px rgba(0,0,0,0.1);
        opacity: 0;
        transform: translateY(-20px) scaleY(0.95);
        transform-origin: top;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-sizing: border-box;
        border-top: 1px solid #eee;
    }
    nav ul.show { 
        opacity: 1;
        transform: translateY(0) scaleY(1);
        visibility: visible;
    }
    nav ul li { width: 100%; text-align: center; opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; }
    nav ul.show li { opacity: 1; transform: translateY(0); }
    
    /* Staggered animation delays for menu links */
    nav ul.show li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.show li:nth-child(2) { transition-delay: 0.15s; }
    nav ul.show li:nth-child(3) { transition-delay: 0.2s; }
    nav ul.show li:nth-child(4) { transition-delay: 0.25s; }
    nav ul.show li:nth-child(5) { transition-delay: 0.3s; }

    nav ul li a { display: block; padding: 18px; border-bottom: 1px solid #f5f5f5; font-size: 18px; font-weight: 600; color: var(--text-dark); }
    nav ul li a:active { background: rgba(124, 77, 255, 0.05); color: var(--primary); }
    #nav-menu li:last-child { display: none !important; } /* Hide 'Apply Now' button on mobile */

    /* 4. Downscale the Hero Section */
    .hero { gap: 30px; padding: 20px 0 20px 0; }
    .hero-content h1 { font-size: 38px; margin-bottom: 15px; }
    .hero-content p { font-size: 16px; margin-bottom: 25px; margin-left: auto; margin-right: auto; }
    .hero-img-container { min-height: 300px; border-radius: 20px; }
    .hero-buttons .btn { padding: 14px 28px; font-size: 16px; }

    /* 5. Downscale Containers & Fonts */
    .section-title { font-size: 30px; margin-bottom: 30px; }
    .page-content { padding: 30px 5%; }
    
    .welcome-container { padding: 30px 20px; gap: 30px; }
    .welcome-text-box h2 { font-size: 28px; }
    .welcome-text-box .subtitle { font-size: 18px; }
    .welcome-text-box p { font-size: 16px; }
    .stat-card h3 { font-size: 38px; }
    .stat-card p { font-size: 14px; }

    /* 6. Stack All Grids into 1 Column */
    .programs-grid, .news-events-container, .news-grid-small, .testimonials-grid { 
        grid-template-columns: 1fr; 
        gap: 25px;
    }
    
    /* Make Quick Links Wide & Flexible on Mobile */
    .quick-links-grid > div, 
    .quick-links-grid > a {
        width: 100% !important;
    }
    
    .flip-card { height: 280px; }
    .flip-card-front h3 { font-size: 24px; }
    .flip-card-back { font-size: 16px; }

    .testimonial-card { padding: 30px; }
    .testimonial-card .quote { font-size: 18px; }

    /* 7. Center the Footer */
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 40px;}
    .social-icons { justify-content: center; }
    .footer-col h3 { font-size: 22px; margin-bottom: 15px; }
    .footer-col p, .footer-links li { font-size: 16px; }
    .main-footer { padding: 50px 5% 20px 5%; }

    /* Forces side-by-side layout to make form square instead of a vertical rectangle */
    .form-grid-2 { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .contact-hero { padding: 60px 20px; border-radius: 20px; }
    .contact-hero-content h1 { font-size: 42px; }
    .form-card { padding: 15px !important; border-radius: 20px !important; width: 100% !important; margin: 0 auto !important; }
    .form-card h2 { font-size: 20px !important; margin-bottom: 5px !important; }
    .form-card p { font-size: 11px !important; margin-bottom: 15px !important; }
    
    #contact-form { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    #contact-form > div:nth-child(4) { grid-column: 1 / 2 !important; order: 1 !important; margin-bottom: 0 !important; } /* Name */
    #contact-form > div:nth-child(6) { grid-column: 2 / 3 !important; order: 2 !important; margin-bottom: 0 !important; } /* Subject */
    #contact-form > div:nth-child(5) { grid-column: 1 / 3 !important; order: 3 !important; margin-bottom: 0 !important; } /* Email & Phone */
    #contact-form > div:nth-child(7) { grid-column: 1 / 3 !important; order: 4 !important; margin-bottom: 0 !important; } /* Message */
    #contact-form > div:nth-child(8) { grid-column: 1 / 3 !important; order: 5 !important; margin-bottom: 5px !important; } /* Captcha */
    #contact-form > button { grid-column: 1 / 3 !important; order: 6 !important; }

    .form-group { margin-bottom: 10px !important; }
    .form-group label { font-size: 11px !important; margin-bottom: 4px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .form-input { padding: 6px 10px !important; font-size: 11px !important; border-radius: 10px !important; height: auto !important; }
    .textarea { min-height: 50px !important; resize: none !important; }
    .captcha-box { padding: 8px !important; border-radius: 10px !important; }
    .captcha-box label { font-size: 11px !important; }
    .btn-full { font-size: 13px !important; padding: 10px !important; border-radius: 50px !important; }
    
    .faq-banner { padding: 20px 15px !important; border-radius: 20px !important; margin-bottom: 40px !important; }
    .faq-content h2 { font-size: 20px !important; margin-bottom: 5px !important; }
    .faq-content p { font-size: 11px !important; margin-bottom: 15px !important; }
    .faq-card { padding: 15px !important; border-radius: 15px !important; margin-top: 15px !important; }
    .faq-question { font-size: 12px !important; padding: 10px 0 !important; }
    .faq-icon { font-size: 16px !important; }
    .faq-answer p { font-size: 11px !important; padding-bottom: 10px !important; }

    .grid-3 { grid-template-columns: 1fr; gap: 20px; }
    .inquiry-body { padding: 30px 20px; }

    /* FORCE MAP HEIGHT ON MOBILE */
    .map-embed {
        height: 250px !important; 
        min-height: 250px !important;
        display: block;
        margin-bottom: 20px;
    }
    
    .map-embed iframe {
        height: 250px !important; 
        width: 100% !important;
    }
    /* =========================================
       EXPLICIT MOBILE ORDER FOR CONTACT CARDS
       ========================================= */
    .contact-layout {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* This temporarily removes the column wrappers on mobile so we can reorder the boxes inside */
    .contact-info-col, .contact-form-col {
        display: contents !important; 
    }
    
    /* 1. Get in Touch (Top) */
    .info-card:not(.hours-card) { 
        order: 1 !important; 
        margin-bottom: 30px !important;
    }
    
    /* 2. Office Hours (Middle) */
    .hours-card { 
        order: 2 !important; 
        margin-bottom: 30px !important;
    }
    
    /* 3. Send Us a Message Form (Bottom / Under Office Hours) */
    .form-card { 
        order: 3 !important; 
        margin-bottom: 0 !important;
    }
}

/* VERY SMALL PHONES (max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 32px; }
    .stats-grid { grid-template-columns: 1fr; gap: 15px; }
    .social-gallery { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .split-container { grid-template-columns: 1fr; }
    .activity-hero { flex-direction: column; text-align: center; }
}
/* =========================================
   ACTIVITY PAGE STYLES
   ========================================= */

/* Activity Hero */
.activity-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 60px;
    padding: 60px 0; margin-bottom: 80px;
}
.activity-hero-content { flex: 1; }
.activity-hero-content h1 { font-size: 64px; line-height: 1.1; margin-bottom: 25px; color: var(--text-dark); font-weight: 800; }
.activity-hero-content p { font-size: 22px; color: var(--text-light); line-height: 1.6; }

.activity-hero-images {
    flex: 1; position: relative; height: 500px;
}
.activity-hero-images img { border-radius: 20px; box-shadow: var(--shadow); position: absolute; object-fit: cover; }
.img-main { width: 70%; height: 350px; right: 0; top: 50px; z-index: 2; }
.img-sub-1 { width: 50%; height: 250px; left: 0; bottom: 0; z-index: 3; border: 10px solid var(--bg-color); }
.img-sub-2 { width: 40%; height: 200px; top: 0; left: 10%; z-index: 1; opacity: 0.8; }

/* Filter Controls */
.section-header.center { text-align: center; margin-bottom: 50px; }
.section-subtitle { font-size: 20px; color: var(--text-light); }

.filter-controls {
    display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
    margin-bottom: 50px;
}
.filter-btn {
    padding: 12px 25px; border-radius: 50px; border: none;
    background: var(--white); color: var(--text-light); font-weight: 600; font-size: 16px;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary); color: var(--white); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(124, 77, 255, 0.3);
}

/* Activity Cards */
.activity-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px;
    margin-bottom: 100px;
}
.activity-card {
    background: var(--white); border-radius: 25px; overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column;
}
.activity-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.card-img-wrapper { position: relative; height: 220px; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.category-tag {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px);
    color: var(--primary-dark); font-size: 13px; font-weight: 700;
    padding: 8px 15px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px;
}

.activity-card-content { padding: 35px; display: flex; flex-direction: column; flex-grow: 1; }
.activity-card-content h3 { font-size: 26px; margin-bottom: 15px; color: var(--text-dark); font-weight: 700; }
.activity-card-content p { font-size: 16px; color: var(--text-light); line-height: 1.6; flex-grow: 1; }

.btn-text { background: transparent; border: none; color: var(--primary); font-weight: 700; font-size: 16px; cursor: pointer; text-align: left; padding: 0; transition: var(--transition); }
.btn-text:hover { color: var(--secondary); transform: translateX(5px); }
.mt-15 { margin-top: 20px; }

/* Hide filtered items */
.filter-item.hide { display: none; }

/* Split Section (Spotlight & Calendar) */
/* Split Section (Stacked Vertically) */
.split-section { margin-bottom: 120px; }
.split-container { 
    display: grid; 
    grid-template-columns: 1fr; /* Forces them to stack one under the other */
    gap: 60px; 
    max-width: 800px; /* Prevents the boxes from stretching too wide on desktop */
    margin: 0 auto; /* Centers the whole section on the screen */
}
.left-align { text-align: left; margin-bottom: 30px; font-size: 36px; }

.spotlight-card {
    background: var(--white); border-radius: 30px; padding: 40px;
    box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 25px;
}
.spotlight-img { width: 650px; height: 450px; object-fit: cover; border-radius: 20px; margin: 0 auto; }
.spotlight-text .quote { font-size: 20px; font-style: italic; line-height: 1.6; margin-bottom: 20px; color: var(--text-dark); }
.spotlight-text .author { font-weight: 700; font-size: 18px; color: var(--primary); }
.spotlight-text .author span { font-weight: 400; font-size: 15px; color: var(--text-light); }

.event-list { display: flex; flex-direction: column; gap: 20px; }
.event-item {
    display: flex; gap: 25px; align-items: center; background: var(--white); padding: 25px;
    border-radius: 20px; box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden;
}
.event-item:hover { transform: translateX(10px); }
.event-tag { position: absolute; top: 25px; right: 25px; font-size: 12px; font-weight: 600; color: var(--secondary); background: rgba(68, 138, 255, 0.1); padding: 5px 12px; border-radius: 20px; }

/* How to Join Section */
.join-section { margin-bottom: 80px; }
.join-container {
    background: var(--gradient); border-radius: 40px; padding: 80px 60px;
    color: var(--white); box-shadow: var(--shadow-hover); position: relative; overflow: hidden;
}
/* Background pattern for Join section */
.join-container::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.join-text { position: relative; z-index: 2; max-width: 800px; }
.join-text h2 { font-size: 48px; margin-bottom: 20px; font-weight: 800; }
.join-text p { font-size: 20px; margin-bottom: 30px; line-height: 1.6; opacity: 0.9; }
.join-steps { margin-bottom: 40px; }
.join-steps li { font-size: 18px; margin-bottom: 15px; background: rgba(255,255,255,0.15); padding: 15px 25px; border-radius: 15px; display: inline-block; width: 100%; }
.join-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* Modal Overlay */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--white); width: 90%; max-width: 700px;
    border-radius: 30px; overflow: hidden; position: relative;
    transform: translateY(50px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal { position: absolute; top: 20px; right: 25px; font-size: 36px; border: none; background: transparent; cursor: pointer; color: var(--white); z-index: 10; line-height: 1; }

.modal-header { background: var(--gradient); padding: 40px 40px; color: var(--white); position: relative; }
.modal-tag { display: inline-block; background: rgba(255,255,255,0.2); padding: 6px 15px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 15px; }
.modal-header h2 { font-size: 36px; font-weight: 800; }

.modal-body { padding: 40px; }
.modal-info-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.modal-body h4 { font-size: 20px; color: var(--primary-dark); margin-bottom: 15px; }
.modal-body p { font-size: 16px; color: var(--text-light); line-height: 1.6; }

.modal-logistics { background: var(--bg-color); padding: 25px; border-radius: 20px; }
.modal-logistics p { margin-bottom: 12px; color: var(--text-dark); font-size: 15px; }
.modal-logistics p:last-child { margin-bottom: 0; }

.modal-achievements ul { list-style-type: disc; padding-left: 20px; color: var(--text-light); font-size: 16px; }
.modal-achievements li { margin-bottom: 8px; }

.modal-footer { padding: 30px 40px; border-top: 1px solid #EAEAEA; background: #FAFAFA; text-align: right; }
/* =========================================
   ABOUT PAGE STYLES
   ========================================= */

/* About Hero */
.about-hero {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 60px 0; margin-bottom: 80px;
}
.about-hero-content h1 { font-size: 64px; font-weight: 800; color: var(--text-dark); margin-bottom: 20px; line-height: 1.1; }
.about-hero-content p { font-size: 22px; color: var(--text-light); max-width: 800px; margin: 0 auto 40px auto; }
.about-hero-image { width: 100%; height: 500px; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.about-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Mission & Vision */
.mvv-section { margin-bottom: 100px; }
.mission-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 60px; }
.mv-card { background: var(--white); padding: 50px; border-radius: 25px; box-shadow: var(--shadow); text-align: center; }
.mv-card .icon { font-size: 50px; display: block; margin-bottom: 20px; }
.mv-card h2 { font-size: 32px; color: var(--primary); margin-bottom: 15px; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.value-item { text-align: center; padding: 20px 10px; }
.value-icon { font-size: 40px; margin-bottom: 15px; }
.value-item h3 { font-size: 22px; margin-bottom: 10px; color: var(--text-dark); }

/* Principal Welcome */
.principal-welcome { margin-bottom: 100px; background: var(--white); padding: 80px 5%; border-radius: 30px; box-shadow: var(--shadow); }
.welcome-flex { display: flex; align-items: center; gap: 60px; }
.principal-image { flex: 1; height: 500px; border-radius: 20px; overflow: hidden; }
.principal-image img { width: 100%; height: 100%; object-fit: cover; }
.welcome-letter { flex: 1.5; }
.welcome-letter p { font-size: 20px; color: var(--text-light); line-height: 1.8; font-style: italic; margin-bottom: 30px; }
.signature-box { border-top: 1px solid #EEE; padding-top: 20px; }
.signature-text { font-family: 'Dancing Script', cursive; font-size: 32px !important; color: var(--primary) !important; margin-bottom: 5px !important; }

/* Timeline */
.history-timeline { padding: 80px 0; margin-bottom: 100px; position: relative; }
.timeline { position: relative; max-width: 1200px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 6px; background-color: var(--primary); top: 0; bottom: 0; left: 50%; margin-left: -3px; border-radius: 10px; }
.timeline-container { padding: 10px 40px; position: relative; width: 50%; }
.timeline-container::after { content: ''; position: absolute; width: 25px; height: 25px; right: -17px; background-color: var(--white); border: 4px solid var(--primary); top: 15px; border-radius: 50%; z-index: 1; }
.right { left: 50%; }
.right::after { left: -17px; }
.timeline-content { padding: 30px; background-color: var(--white); border-radius: 20px; box-shadow: var(--shadow); }
.timeline-content h2 { color: var(--primary); margin-bottom: 10px; font-size: 32px; }

/* Stats Large */
.fast-facts { margin-bottom: 100px; text-align: center; }
.stats-grid-large { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.stat-box { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); min-width: 200px; flex: 1; }
.stat-box h3 { font-size: 48px; color: var(--primary); font-weight: 800; margin-bottom: 5px; }

/* Trust Logos */
.trust-section { margin-bottom: 100px; }
.logo-grid { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; opacity: 0.6; }
.trust-logo { font-weight: 700; color: var(--text-light); font-size: 20px; border: 2px dashed #CCC; padding: 15px 25px; border-radius: 10px; }

/* About CTA */
.about-cta { margin-bottom: 80px; }
.cta-card { background: var(--gradient); padding: 80px; border-radius: 30px; text-align: center; color: var(--white); }
.cta-card h2 { font-size: 48px; margin-bottom: 20px; font-weight: 800; }
.cta-card p { font-size: 22px; margin-bottom: 40px; opacity: 0.9; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }

/* Responsive About Page */
@media (max-width: 1024px) {
    .welcome-flex, .mission-vision-grid { flex-direction: column; grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .timeline::after { left: 31px; }
    .timeline-container { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-container::after { left: 15px; }
    .right { left: 0%; }
}
/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

/* Contact Hero */
.contact-hero {
    background: url('https://images.unsplash.com/photo-1541339907198-e08756dee03f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover;
    border-radius: 30px; margin-bottom: 80px; position: relative; overflow: hidden;
    padding: 100px 50px; text-align: center;
}
.contact-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 28, 35, 0.7); }
.contact-hero-content { position: relative; z-index: 2; color: var(--white); max-width: 800px; margin: 0 auto; }
.contact-hero-content h1 { font-size: 48px; font-weight: 800; margin-bottom: 20px; color: var(--white); }
.contact-hero-content p { font-size: 22px; opacity: 0.9; }

/* Two Column Layout */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; margin-bottom: 120px; }

/* Info Cards */
.info-card { background: var(--white); padding: 40px; border-radius: 30px; box-shadow: var(--shadow); margin-bottom: 40px; }
.info-card h2 { font-size: 32px; color: var(--text-dark); margin-bottom: 30px; }
.info-block { display: flex; gap: 20px; margin-bottom: 25px; }
.info-block .icon { font-size: 32px; }
.info-block h4 { font-size: 20px; color: var(--text-dark); margin-bottom: 5px; }
.info-block p { font-size: 18px; color: var(--text-light); line-height: 1.5; }

.department-contacts { background: var(--bg-color); padding: 25px; border-radius: 20px; margin-top: 30px; }
.department-contacts h4 { font-size: 20px; margin-bottom: 15px; color: var(--primary-dark); }
.department-contacts li { font-size: 16px; color: var(--text-dark); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #EAEAEA; }
.department-contacts li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.department-contacts strong { color: var(--primary); }

.qr-code-box { display: flex; align-items: center; gap: 20px; margin-top: 30px; padding-top: 30px; border-top: 2px dashed #EAEAEA; }
.qr-code-box img { width: 160px; height: 160px; border-radius: 10px; border: 2px solid var(--primary); padding: 5px; }
.qr-code-box p { font-size: 16px; color: var(--text-light); }
.qr-code-box strong { font-size: 18px; color: var(--text-dark); }

/* Hours Card */
.hours-list li { display: flex; justify-content: space-between; font-size: 18px; color: var(--text-dark); margin-bottom: 15px; border-bottom: 1px solid #EAEAEA; padding-bottom: 10px; }
.hours-list li span { font-weight: 600; color: var(--text-light); }
.holiday-notice { margin-top: 25px; background: rgba(255, 152, 0, 0.1); color: #E65100; padding: 20px; border-radius: 15px; font-size: 16px; font-weight: 500; }

/* Form Styles */
.form-card { background: var(--white); padding: 50px; border-radius: 30px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 38px; color: var(--text-dark); margin-bottom: 10px; }
.form-card p { font-size: 18px; color: var(--text-light); margin-bottom: 40px; }
.form-group { margin-bottom: 25px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; }
.form-input { width: 100%; padding: 18px 25px; font-size: 18px; border: 2px solid #EAEAEA; border-radius: 15px; background: var(--bg-color); transition: var(--transition); color: var(--text-dark); font-family: 'Poppins', sans-serif; }
.form-input:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.1); }
.textarea { min-height: 180px; resize: vertical; }

.captcha-box { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; background: var(--bg-color); padding: 20px; border-radius: 15px; }
.captcha-box input[type="checkbox"] { width: 25px; height: 25px; cursor: pointer; }
.captcha-box label { font-size: 18px; font-weight: 500; cursor: pointer; }

.btn-full { width: 100%; font-size: 20px; padding: 20px; border-radius: 20px; }

/* Map & Directions */
.map-directions-section { margin-bottom: 120px; }
/* Update the map grid to 1 column so they stack vertically */
.map-grid { 
    display: grid; 
    grid-template-columns: 1fr; /* Changed to 1 column */
    gap: 40px; 
    background: var(--white); 
    padding: 40px; 
    border-radius: 30px; 
    box-shadow: var(--shadow); 
}

/* Adjust map to look great at full width */
.map-embed { 
    width: 100%;
    height: 450px; /* Fixed height for the banner-style map */
    display: block;
}

.map-embed iframe { 
    width: 100%; 
    height: 100%; 
    border-radius: 20px; 
    display: block;
}

.directions-card { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.directions-card h3 { font-size: 28px; margin-bottom: 20px; color: var(--text-dark); }
.directions-card p { font-size: 18px; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }
.campus-map-download { display: flex; align-items: center; gap: 15px; background: var(--bg-color); padding: 20px; border-radius: 15px; }
.campus-map-download .icon { font-size: 30px; }
.campus-map-download h4 { font-size: 18px; color: var(--text-dark); margin-bottom: 5px; }
.download-link { font-size: 16px; font-weight: 700; color: var(--primary); }
.download-link:hover { text-decoration: underline; }

/* FAQ Banner */
.faq-banner { background: var(--gradient); border-radius: 30px; padding: 60px; text-align: center; color: var(--white); box-shadow: var(--shadow-hover); margin-bottom: 80px; }
.faq-content h2 { font-size: 42px; font-weight: 800; margin-bottom: 15px; }
.faq-content p { font-size: 22px; max-width: 700px; margin: 0 auto 30px auto; opacity: 0.9; }

/* FAQ Accordion Card */
.faq-card { background: var(--white); border-radius: 20px; padding: 20px 30px; margin: 40px auto 0 auto; max-width: 800px; box-shadow: var(--shadow); text-align: left; }
.faq-item { border-bottom: 1px solid #EAEAEA; }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; background: none; border: none; padding: 20px 0; font-size: 18px; font-weight: 600; color: var(--text-dark); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: var(--transition); font-family: 'Poppins', sans-serif; }
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 28px; font-weight: 300; transition: transform 0.3s ease; color: var(--primary); }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { color: var(--text-light); font-size: 16px; padding-bottom: 20px; margin: 0; line-height: 1.6; }

/* =========================================
   APPLY / INQUIRY PAGE STYLES
   ========================================= */

/* Hero Section */
.apply-hero {
    text-align: center;
    padding: 75px 0 60px 0;
}

.apply-hero-content h1 { font-size: 56px; font-weight: 800; margin-bottom: 20px; color: var(--text-dark); }
.apply-hero-content p { font-size: 22px; color: var(--text-light); max-width: 800px; margin: 0 auto; }

/* The Form Container */
.inquiry-form-section { margin-bottom: 120px; }
.inquiry-card {
    background: var(--white);
    border-radius: 15px; /* Slightly sharper edges to match the screenshot */
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 1300px; /* Wide container for 3 columns */
    margin: 0 auto;
    border: 1px solid #EAEAEA;
}

/* Blue Header Bar */
.inquiry-header {
    background-color: #4FB5FF; /* Matches the screenshot blue */
    padding: 20px 30px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.inquiry-header h2 {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Body */
.inquiry-body { padding: 40px 50px; }
.form-row { margin-bottom: 30px; width: 100%; }

/* 3 Column Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Labels and Inputs */
.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
    display: block;
}
.required { color: #E53935; font-weight: bold; margin-left: 2px; }

/* Overriding default input for this specific form to match screenshot */
.inquiry-body .form-input {
    border: 1px solid #CCC;
    border-radius: 5px; /* Sharper corners like screenshot */
    padding: 15px 20px;
    background: var(--white);
    font-size: 16px;
}
.inquiry-body .form-input:focus { border-color: #4FB5FF; box-shadow: 0 0 5px rgba(79, 181, 255, 0.4); }

/* Custom Blue Select Boxes */
.select-blue {
    background-color: #4FB5FF !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 12px auto;
}
.select-blue option { background: white; color: black; } /* Dropdown options remain white */

.textarea-small { min-height: 100px; resize: vertical; }

/* Action Buttons */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: -10px; /* This negative margin pulls the buttons up */
    margin-bottom: 25px;
}
.btn-save {
    background-color: #4FB5FF;
    color: white;
    border-radius: 5px;
    padding: 12px 35px;
}
.btn-save:hover { background-color: #3AA0EA; transform: translateY(-5px); box-shadow: 0 5px 15px rgba(79, 181, 255, 0.3); }

.btn-reset {
    background-color: #FF9800; /* Orange reset button */
    color: white;
    border-radius: 5px;
    padding: 12px 35px;
}
.btn-reset:hover { background-color: #E68A00; transform: translateY(-5px); box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3); }
/* =========================================
   📱 MOBILE FIXES FOR APPLY PAGE 
   ========================================= */
@media (max-width: 768px) {
    /* 1. Shrink the Hero Section */
    .apply-hero { padding: 20px 15px 40px 15px; text-align: center; }
    .apply-hero-content h1 { font-size: 36px; margin-bottom: 15px; }
    .apply-hero-content p { font-size: 16px; }

    /* 2. Fix the Form Container & Padding */
    .inquiry-form-section { padding: 0 15px; margin-bottom: 80px; }
    .inquiry-header { padding: 15px; text-align: center; }
    .inquiry-header h2 { font-size: 18px; }
    .inquiry-body { padding: 25px 15px; }

    /* 3. Force the 3-Column Grid to Stack into 1 Column */
    .grid-3 { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 20px !important; 
    }
    .form-row { margin-bottom: 20px; }
    
    /* 4. Fix Inputs to Prevent Overflow */
    .form-group { width: 100%; margin-bottom: 0; }
    .form-group label { font-size: 15px; }
    .inquiry-body .form-input { padding: 12px 15px; font-size: 15px; width: 100%; box-sizing: border-box; }

    /* 5. Stack the Save & Reset Buttons */
    .form-actions { flex-direction: column; width: 100%; gap: 12px; margin-top: 15px; }
    .btn-save, .btn-reset { width: 100%; padding: 8px; font-size: 18px; }
}
/* =========================================
   DYNAMIC INFO SECTION STYLES
   ========================================= */
.dynamic-info-section {
    padding: 60px 5%;
    background: var(--bg-color); /* Light background to separate it from the rest of the page */
    margin-bottom: 80px;
}
.info-container {
    max-width: 800px; /* Increased width for calendar and bus route */
    margin: 0 auto;
    background: var(--white);
    padding: 40px 50px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    min-height: 450px; /* Prevents the page from jumping up and down when content swaps */
}
.info-panel {
    display: none; /* Hides everything by default */
    animation: fadeIn 0.4s ease-out;
}
.info-panel.active {
    display: block; /* Shows only the active panel */
}
.section-title.center { text-align: center; margin-bottom: 30px; }

/* Calendar Styles */
.holiday-list { list-style: none; padding: 0; }
.holiday-list li { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid #EAEAEA; font-size: 18px; color: var(--text-dark); }
.holiday-list li:last-child { border-bottom: none; }
.holiday-list li strong { color: var(--primary); font-weight: 600; }

/* Bus Image Styles */
.bus-img-box { width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.bus-img-box img { width: 100%; height: auto; display: block; border-radius: 20px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Fix for the container padding */
@media (max-width: 768px) {
    .info-container { padding: 30px 20px; }
}
/* =========================================
   VERTICAL QUICK LINKS (Force Side-by-Side)
   ========================================= */

/* 1. This stacks the 5 links on top of each other */
.social-links-vertical {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Stops them from centering on the page */
    gap: 15px !important; 
}

/* 2. This forces the Icon and the Text to sit side-by-side */
.vertical-link {
    display: flex !important;
    flex-direction: row !important; /* Forces text to the right side */
    align-items: center !important; /* Centers text vertically with the circle */
    justify-content: flex-start !important;
    gap: 15px !important; /* Space between circle and text */
    text-decoration: none !important;
    color: var(--text-dark); 
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 3. Make sure the circle icon doesn't stretch */
.vertical-link .social-icon {
    display: flex !important;
    flex-shrink: 0 !important; /* Prevents the circle from squishing */
}

/* 4. Keep hover effect */
.vertical-link:hover {
    color: var(--primary); 
    transform: translateX(8px); 
}
.apply-container, .contact-container {
    position: relative;
    z-index: 10; /* Brings your form to the front so it can be scrolled easily */
}

/* =========================================
   CUSTOM SELECT OPTIONS BOX
   ========================================= */
.custom-select-trigger {
    /* Ensures text doesn't overflow */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.custom-options-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 2px solid #EAEAEA;
    border-top: none;
    border-radius: 0 0 15px 15px;
    margin-top: 0px; /* Removed gap to prevent dead-zone closing */
    max-height: 200px; /* Forces scrolling if options are too long */
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-hover);
}

.custom-options-box.show { display: block; }

/* Flattens the bottom corners of the trigger when the dropdown is open so they merge seamlessly */
.custom-select-wrapper.open .custom-select-trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-option {
    padding: 12px 20px; font-size: 16px; color: var(--text-dark);
    cursor: pointer; transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
}

.custom-option:last-child { border-bottom: none; }

.custom-option:hover { background: #f0f8ff; color: var(--primary); padding-left: 25px; }

/* Custom Scrollbar for Options Box */
.custom-options-box::-webkit-scrollbar { width: 6px; }
.custom-options-box::-webkit-scrollbar-thumb { background-color: var(--primary); border-radius: 10px; }
.custom-options-box::-webkit-scrollbar-track { background-color: var(--bg-color); border-radius: 10px; }

/* =========================================
   ACTIVITY PAGE TITLE FONT SIZE
   ========================================= */
.activity-title {
    font-size: 45px !important; /* Change this number to adjust desktop size */
    line-height: 1.2;
}

/* Make sure it scales down nicely on mobile phones */
@media (max-width: 768px) {
    .activity-title {
        font-size: 32px !important; /* Change this number to adjust phone size */
    }
}

/* =========================================
   GLOBAL MOBILE "SQUARE & COMPACT" THEME (ALL PAGES)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Add nicely rounded corners universally */
    .hero-img-container, .quick-links-grid > div, .quick-links-grid > a,
    .welcome-container, .stat-card, .flip-card-front, .flip-card-back,
    .event-card, .event-date, .news-card, .testimonial-card, .social-gallery img,
    .info-container, .bus-img-box, .bus-img-box img, .about-hero-image, .mv-card,
    .timeline-content, .stat-box, .cta-card, .principal-welcome, .principal-image,
    .activity-hero-images img, .activity-card, .spotlight-card, .spotlight-img,
    .event-item, .join-container, .modal-content, .contact-hero, .info-card,
    .department-contacts, .map-grid, .map-embed iframe, .campus-map-download,
    .inquiry-card, .inquiry-header, .custom-options-box,
    .qr-code-box img, .holiday-notice, .modal-logistics,
    .join-steps li {
        border-radius: 15px !important;
    }

    /* Keep pill shapes for buttons & tags */
    .btn, .filter-btn, .category-tag, .event-tag, .btn-save, .btn-reset {
        border-radius: 50px !important;
    }

    /* 2. Compact Fonts for all major elements */
    .section-title, .activity-title, .about-hero-content h1, 
    .contact-hero-content h1, .apply-hero-content h1, .hero-content h1, .join-text h2 {
        font-size: 26px !important; margin-bottom: 15px !important;
    }
    .welcome-text-box h2, .mv-card h2, .cta-card h2, .info-card h2, .directions-card h3 { 
        font-size: 20px !important; margin-bottom: 5px !important; 
    }
    .flip-card-front h3, .news-card-content h4, .activity-card-content h3, .info-block h4, .value-item h3 { 
        font-size: 16px !important; margin-bottom: 5px !important; 
    }
    p, .quote, .author, .faq-answer p, .department-contacts li, .hours-list li, .holiday-notice, .timeline-content p {
        font-size: 11px !important; margin-bottom: 10px !important; line-height: 1.4 !important;
    }
    .btn { font-size: 13px !important; padding: 10px 15px !important; }
    
    /* 3. Compact Spacing & Layout */
    .page-content { padding: 15px 5% !important; }
    .hero, .about-hero, .activity-hero, .contact-hero, .apply-hero { 
        padding: 30px 15px !important; gap: 20px !important; margin-bottom: 30px !important;
    }
    .hero { padding-bottom: 20px !important; margin-bottom: 30px !important; }
    .welcome-container, .info-card, .map-grid, .cta-card, .mv-card, .stat-box, 
    .spotlight-card, .event-item, .join-container, .testimonial-card, .info-container, .principal-welcome {
        padding: 15px !important; margin-bottom: 20px !important; gap: 10px !important; width: 100% !important; box-sizing: border-box !important;
    }
    .news-card-content, .activity-card-content, .flip-card-front, .flip-card-back, .department-contacts, .campus-map-download {
        padding: 15px !important;
    }
    .flip-card { height: 200px !important; }
    .stat-card h3, .stat-box h3 { font-size: 26px !important; }
    .hero-img-container, .about-hero-image, .principal-image { min-height: 200px !important; height: auto !important; }
    
    /* 4. Apply Form Compact Setup (Admissions Page) */
    .inquiry-card { margin-top: 0 !important; }
    .inquiry-header { padding: 10px !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
    .inquiry-header h2 { font-size: 16px !important; margin-bottom: 0 !important; }
    .inquiry-body { padding: 15px !important; }
    .inquiry-body .form-input { padding: 8px 10px !important; font-size: 11px !important; border-radius: 8px !important; }
    .inquiry-body .grid-3 { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; flex-direction: unset !important; }
    .inquiry-body .grid-3 .form-group:nth-child(3) { grid-column: 1 / 3 !important; }
    .form-row { margin-bottom: 10px !important; }
    .form-actions { margin-top: 10px !important; gap: 10px !important; flex-direction: row !important; }
    .btn-save, .btn-reset { width: 50% !important; padding: 10px !important; font-size: 13px !important; }
}