/* 1. SETUP BASE STYLES AND COLORS */
:root {
    /* TRUE COLORS FROM THE PHILIPPINE FLAG */
    --primary-blue: #00008B;   /* Deep Flag Blue */
    --primary-red: #FF0000;    /* Rich Flag Red */
    --primary-yellow: #FFED29; /* Golden Sun Yellow */
    --dark-text: #333333;
    --light-bg: #f8fbff; 
    --white: #ffffff;          /* Flag White */
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 800; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* 2. HEADER & NAVIGATION */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 50px; background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 2000; }
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo { height: 60px; }
.seal-logo { height: 40px; }
.mobile-menu-btn { display: none; font-size: 24px; color: var(--primary-blue); cursor: pointer; }
.main-nav ul { display: flex; list-style: none; align-items: center; gap: 20px; }
.main-nav a { font-family: 'Montserrat', sans-serif; text-decoration: none; color: var(--primary-blue); font-weight: 700; font-size: 13px; text-transform: uppercase; transition: color 0.3s; }
.main-nav a:hover { color: var(--primary-red); }
.donate-btn { background-color: var(--primary-red); color: var(--white) !important; padding: 10px 20px; border-radius: 4px; }
.donate-btn:hover { background-color: #bd142d; }

/* 3. HERO BANNER WITH IMAGE SLIDER */
.hero { 
    position: relative;
    height: 80vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: var(--white); 
    padding: 20px; 
    border-bottom: 8px solid var(--primary-yellow); 
    overflow: hidden;
}

/* Background Slider Animations */
.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth crossfade */
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 75, 135, 0.65), rgba(0, 75, 135, 0.85));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content .welcome-text { font-size: 1.5rem; color: var(--primary-yellow); text-transform: uppercase; margin-bottom: 10px; letter-spacing: 2px;}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 15px; color: var(--white); text-transform: uppercase; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.2rem; color: var(--white); margin-bottom: 15px; }
.hero-content .tagline { font-size: 1.8rem; color: var(--primary-yellow); font-style: italic; font-weight: bold; margin-bottom: 40px; }

.cta-button { font-family: 'Montserrat', sans-serif; background-color: var(--primary-yellow); color: var(--primary-blue); text-decoration: none; padding: 15px 35px; font-size: 16px; font-weight: 800; border-radius: 4px; text-transform: uppercase; transition: all 0.3s ease; display: inline-block;}
.cta-button:hover { background-color: var(--primary-red); color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

@media (max-width: 768px) {
    .hero-content .welcome-text { font-size: 1.1rem; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content .tagline { font-size: 1.3rem; }
}

/* 4. ABOUT US SECTION */
.about-section { padding: 80px 0; background-color: var(--light-bg); }
.section-title { text-align: center; font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 50px; text-transform: uppercase; }
.subsection-title { color: var(--primary-blue); font-size: 2rem; margin-bottom: 30px; text-transform: uppercase;}
.lead-text { font-size: 1.1rem; max-width: 900px; margin: 0 auto 40px auto; color: #555; }

.vission-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 60px; }
.vm-card { background-color: var(--white); padding: 35px; border-radius: 12px; border-top: 5px solid var(--primary-blue); box-shadow: 0 10px 30px rgba(0,75,135,0.08); transition: transform 0.3s;}
.vm-card:hover { transform: translateY(-5px); }
.vm-card h3 { color: var(--primary-blue); margin-bottom: 15px; font-size: 1.5rem; }
.vm-card i { color: var(--primary-red); margin-right: 10px; }

/* Redesigned Core Values (Icon Cards) */
.core-values-wrapper { margin-bottom: 60px; }
.core-values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.value-card { background-color: var(--primary-blue); color: var(--white); padding: 25px 15px; border-radius: 12px; transition: transform 0.3s ease, background-color 0.3s; box-shadow: 0 8px 20px rgba(0,75,135,0.15); }
.value-card i { font-size: 2.5rem; color: var(--primary-yellow); margin-bottom: 15px; transition: transform 0.3s; }
.value-card h4 { font-size: 0.95rem; font-weight: 700; line-height: 1.4; }
.value-card:hover { transform: translateY(-8px); background-color: var(--primary-red); }
.value-card:hover i { transform: scale(1.2); color: var(--white); }

/* Mentors */
.governance-section { background-color: var(--white); padding: 40px; border-radius: 12px; border-left: 5px solid var(--primary-red); box-shadow: 0 10px 30px rgba(0,75,135,0.08); }
.governance-section h3 { color: var(--primary-blue); margin-bottom: 15px; font-size: 1.5rem;}
.mentors-list { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.mentor-badge { background-color: var(--light-bg); padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; color: var(--primary-blue); border: 1px solid #dce8f5; font-weight: 600;}
.mentor-badge i { color: var(--primary-yellow); margin-right: 5px; }

/* 5. WHAT WE DO (7 CORE PROGRAMS) */
.programs-section { padding: 80px 0; background-color: var(--white); }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 20px;}

.content-card { 
    background-color: var(--white); 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    transition: all 0.3s ease; 
    overflow: hidden; /* Keeps the top image corners rounded */
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0; 
}

.content-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 15px 35px rgba(0,75,135,0.15); 
    border-color: var(--primary-blue); 
}

/* Image at the top of the card */
.program-img-wrapper {
    width: 100%;
    height: 200px;
    border-bottom: 4px solid var(--primary-yellow);
}

.program-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .program-img-wrapper img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Text and Read More Link */
.card-body { 
    padding: 25px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes the Read More link to the bottom */
}

.card-body h3 { font-size: 1.25rem; color: var(--primary-blue); margin-bottom: 15px; }
.card-body p { font-size: 0.95rem; color: #666; line-height: 1.6; margin-bottom: 20px;}

.read-more {
    margin-top: auto; /* Aligns to bottom */
    text-decoration: none;
    color: var(--primary-red);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-blue);
}

/* 6. CLASSIFIED CLUBS & MAP SECTION */
.clubs-section { padding: 80px 0; background-color: var(--light-bg); }
.clubs-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.club-list { display: flex; flex-direction: column; gap: 30px; }

/* Regional Groupings */
.region-group { background: var(--white); padding: 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.region-title { font-size: 1.4rem; color: var(--primary-blue); margin-bottom: 20px; border-bottom: 2px solid var(--primary-yellow); padding-bottom: 10px; }
.region-title i { color: var(--primary-red); margin-right: 8px; }

.club-item { margin-bottom: 15px; padding-left: 15px; border-left: 3px solid var(--primary-blue); }
.club-item:last-child { margin-bottom: 0; }
.club-item h4 { color: var(--dark-text); font-size: 1.05rem; margin-bottom: 3px; }
.club-item p { color: #777; font-size: 0.9rem; }

/* Interactive Map Styling */
.map-container { height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 12px; overflow: hidden;}
#clubMap { width: 100%; height: 100%; min-height: 600px; z-index: 1; }

/* 7. PARTNERS WITH "LIFT & GLOW" ANIMATION */
.partners-section { padding: 80px 0; background-color: var(--white); }
.partner-category { margin-bottom: 60px; }
.partner-category h3 { color: var(--primary-blue); border-bottom: 2px solid var(--primary-yellow); display: inline-block; padding-bottom: 10px; margin-bottom: 40px; text-transform: uppercase; font-size: 1.3rem;}

.partners-grid { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 45px; }

/* The Lift & Glow Effect */
.partners-grid img { 
    max-height: 90px; 
    object-fit: contain; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Gives a slight 'bounce' feel */
    border-radius: 8px; 
    padding: 5px;
    background-color: transparent;
}

.partners-grid img:hover { 
    transform: translateY(-8px) scale(1.08); 
    box-shadow: 0 15px 30px rgba(0, 75, 135, 0.15); 
    background-color: var(--white); /* Ensures shadows look clean behind PNGs */
}

/* 8. FOOTER */
.main-footer { background-color: var(--primary-blue); color: var(--white); padding: 60px 0 20px 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--primary-yellow); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col p { font-size: 0.9rem; margin-bottom: 12px; color: #d1e5f8; }
.footer-col i { width: 20px; color: var(--primary-yellow); }

.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.social-links a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; background-color: rgba(255,255,255,0.1); color: var(--white); border-radius: 50%; text-decoration: none; transition: all 0.3s ease; }
.social-links a:hover { background-color: var(--primary-yellow); color: var(--primary-blue); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: #a4c8eb; }

/* 9. ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 1.5s ease forwards; }
.slide-up { animation: slideUp 1s ease forwards; opacity: 0; }

/* 10. MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .main-header { padding: 15px 20px; flex-wrap: wrap; }
    .mobile-menu-btn { display: block; }
    .main-nav { display: none; width: 100%; margin-top: 15px; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 15px; background-color: var(--light-bg); padding: 20px; border-radius: 8px; }
    
    .hero-content h1 { font-size: 2rem; }
    .hero-content .tagline { font-size: 1.3rem; }
    
    .vission-mission-grid { grid-template-columns: 1fr; }
    
    .clubs-layout { grid-template-columns: 1fr; }
    #clubMap { min-height: 400px; margin-bottom: 20px; }
    
    .grid-container { gap: 60px; /* More space between cards on mobile due to floating icon */ }
}


/* =========================================
   11. NEW: TRAININGS & GALLERY SECTION
   ========================================= */
.trainings-section { 
    padding: 80px 0; 
    background-color: var(--white); 
}

/* Schedule Box Styling */
.schedule-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,75,135,0.08);
    border-left: 5px solid var(--primary-red);
}

.schedule-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 25px;
}

.schedule-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-body {
    padding: 25px;
    text-align: center;
}

.schedule-body p {
    color: #666;
    margin-bottom: 20px;
}

/* Photo Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4/3; /* Keeps photos uniform size */
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,75,135,0.2);
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image/video cleanly to fit box */
    transition: transform 0.5s ease;
}

.gallery-item:hover img, 
.gallery-item:hover video {
    transform: scale(1.1); /* Slight zoom on image/video when hovered */
}

/* Photo Caption Banner */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 75, 135, 0.9));
    color: var(--white);
    padding: 25px 15px 15px 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* =========================================
   12. GOVERNANCE GRID & CAROUSEL
   ========================================= */

/* Neat Mentors Grid */
.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    justify-items: center;
}

.mentor-profile {
    text-align: center;
    background-color: var(--light-bg);
    padding: 20px 15px;
    border-radius: 8px;
    width: 100%;
    border: 1px solid #eaeaea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mentor-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,75,135,0.1);
    border-color: var(--primary-blue);
}

.mentor-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 15px auto;
}

.mentor-profile h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 5px;
}

.mentor-profile p {
    color: #777;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Image Carousel */
.carousel-wrapper {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.carousel-track {
    display: flex;
    list-style: none;
    transition: transform 0.6s ease-in-out; /* Smooth sliding animation */
    margin: 0;
    padding: 0;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 75, 135, 0.9));
    color: var(--white);
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-yellow);
    color: var(--primary-blue);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

@media (max-width: 768px) {
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .mentors-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   13. RED/YELLOW HEADER ACCENT
   ========================================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    padding-bottom: 12px; /* Slight adjustment for the flag line */
}

.flag-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-yellow) 50%, var(--primary-red) 50%);
}

/* =========================================
   14. CONTACT & NEWSLETTER SECTION
   ========================================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid #eaeaea;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Inquiry Form */
.inquiry-box {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-blue);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(0,75,135,0.2);
}

/* Newsletter Box */
.newsletter-card {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,75,135,0.15);
}

.newsletter-card h3 {
    color: var(--primary-yellow);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.newsletter-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #d1e5f8;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
}

/* Mini Partners Section (Moved from Nav) */
.mini-partners-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eaeaea;
}

.mini-partner-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mini-partner-logos img {
    height: 45px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: 0.3s;
}

.mini-partner-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}

/* =========================================
   15. MEMBER RESOURCES SECTION
   ========================================= */
.resources-section { 
    padding: 80px 0; 
    background-color: var(--light-bg); 
    border-top: 1px solid #eaeaea; 
}

.resources-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    margin-top: 40px; 
}

.resource-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,75,135,0.1);
    border-color: var(--primary-blue);
}

.resource-icon {
    font-size: 2.2rem;
    color: var(--primary-red);
}

.resource-info { 
    flex-grow: 1; 
}

.resource-info h4 { 
    font-size: 1rem; 
    color: var(--primary-blue); 
    margin-bottom: 3px; 
}

.resource-info p { 
    font-size: 0.8rem; 
    color: #666; 
    margin: 0; 
}

.download-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 45px; 
    height: 45px;
    display: flex; 
    justify-content: center; 
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.download-btn:hover { 
    background-color: var(--primary-yellow); 
    color: var(--primary-blue); 
    transform: scale(1.1);
}

/* =========================================
   16. DROWNING DATA & STATISTICS SECTION
   ========================================= */
.stats-section {
    background: linear-gradient(rgba(0, 75, 135, 0.9), rgba(0, 75, 135, 0.95)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    color: var(--white);
    border-top: 5px solid var(--primary-yellow);
    border-bottom: 5px solid var(--primary-red);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-box i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.stat-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    margin: 0;
    color: var(--white);
    display: inline-block;
}

.stat-box .plus {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
}

.stat-box p {
    font-size: 1rem;
    color: #d1e5f8;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stat-box h3 { font-size: 3rem; }
    .stat-box .plus { font-size: 2rem; }
}

/* =========================================
   17. ARTISTIC HERO SLOGAN
   ========================================= */
.slogan-container {
    margin: 35px 0 45px 0;
}

.artistic-slogan {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem; /* Larger and more impactful */
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    
    /* Sunlit Gold Gradient Effect */
    background: linear-gradient(45deg, #ffc72c, #fffde6, #ff8c00, #ffc72c);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* The Breathing Glow & Float Animations combined */
    animation: 
        shimmerText 4s infinite linear, 
        floatSlogan 4s ease-in-out infinite;
}

/* The Subtitle underneath the slogan */
.sub-tagline {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 5px; /* Wide spacing looks very cinematic */
    text-transform: uppercase;
    opacity: 0.85;
}

/* KEYFRAMES FOR THE ARTISTIC ANIMATIONS */

/* 1. Makes the gradient colors shift across the text and pulses the glow */
@keyframes shimmerText {
    0% { 
        background-position: 0% center; 
        filter: drop-shadow(0 0 5px rgba(255, 199, 44, 0.4)); 
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 199, 44, 0.9)); 
    }
    100% { 
        background-position: 300% center; 
        filter: drop-shadow(0 0 5px rgba(255, 199, 44, 0.4)); 
    }
}

/* 2. Makes the slogan gently float up and down like a wave */
@keyframes floatSlogan {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Make sure it scales down nicely on mobile phones */
@media (max-width: 768px) {
    .artistic-slogan { 
        font-size: 2.2rem; 
        letter-spacing: 1px; 
    }
    .sub-tagline { 
        font-size: 0.9rem; 
        letter-spacing: 3px; 
    }
}

/* =========================================
   18. "A MILLION WORDS" RUNNING GALLERY
   ========================================= */
.million-words-section {
    padding: 50px 0;
    background-color: var(--white);
    border-bottom: 1px solid #eaeaea;
    overflow: hidden; /* Prevents horizontal scrollbar on the whole website */
}

/* Container for the moving track */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* Adds a slight fade effect on the left and right edges */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* The track that actually moves */
.marquee-track {
    display: inline-block;
    /* The animation runs for 40 seconds, infinitely, maintaining a steady speed */
    animation: runningGallery 40s linear infinite;
}

/* Pause the scrolling if a user hovers their mouse over the pictures to look closer */
.marquee-track:hover {
    animation-play-state: paused;
}

/* Styling the images to look uniform and neat */
.marquee-track img {
    height: 250px;
    width: 350px;
    object-fit: cover; /* Crops the images neatly into the boxes */
    border-radius: 12px;
    margin: 0 15px; /* Spacing between pictures */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Slight pop-out effect when hovering over a specific picture */
.marquee-track img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 75, 135, 0.2);
    cursor: pointer;
}

/* Keyframes to make it loop seamlessly */
@keyframes runningGallery {
    0% { transform: translateX(0); }
    /* Moves the track left by exactly half its width (the size of the first group of images) */
    100% { transform: translateX(-50%); } 
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .marquee-track img {
        height: 180px;
        width: 260px;
    }
    .marquee-container::before,
    .marquee-container::after {
        width: 50px; /* Smaller edge fades on mobile */
    }
}


/* =========================================
   19. PROGRAM DETAILS MODAL & CAROUSEL
   ========================================= */
/* Make the button look exactly like your old Read More link */
.read-more-btn {
    margin-top: auto;
    background: none;
    border: none;
    text-align: left;
    color: var(--primary-red);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
}
.read-more-btn:hover { color: var(--primary-blue); }

/* The Dark Background Overlay */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 33, 149, 0.85); /* Matches your Flag Blue */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* The White Pop-up Box */
.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto; /* Adds scrollbar if content is too long */
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-top: 6px solid var(--primary-yellow);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Close 'X' Button */
.close-modal {
    position: absolute;
    top: 15px; right: 25px;
    font-size: 2.5rem;
    color: #999;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}
.close-modal:hover { color: var(--primary-red); }

/* Modal Carousel Styling */
.modal-carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.modal-track-wrapper {
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.modal-track {
    display: flex;
    list-style: none;
    padding: 0; margin: 0;
    transition: transform 0.5s ease;
}

.modal-track li {
    min-width: 100%;
    aspect-ratio: 16/9;
}

.modal-track img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.modal-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: var(--primary-yellow);
    color: var(--primary-blue);
    border: none; border-radius: 50%;
    width: 40px; height: 40px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.modal-btn:hover { background: var(--primary-red); color: var(--white); }
.modal-carousel-container .prev-btn { left: -15px; }
.modal-carousel-container .next-btn { right: -15px; }

@media (max-width: 768px) {
    .modal-content { padding: 25px 20px; }
    .modal-btn { width: 35px; height: 35px; }
    .modal-carousel-container .prev-btn { left: 5px; }
    .modal-carousel-container .next-btn { right: 5px; }
}