/*
Theme Name: Sunflower Christian Academy
Version: 1.6
*/

:root {
    --primary-gold: #b5a25d;
    --deep-navy: #1a233a;
    --sage: #8c936e;
    --cream: #fdfbf2;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--cream);
    color: var(--deep-navy);
    margin: 0;
    padding: 0;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* --- LOGO SIZE FIX --- */
.custom-logo-link img {
    max-width: 280px; /* Limits the logo width */
    height: auto;
    display: block;
}

.logo-wrapper {
    padding: 10px 0;
}

/* --- VISIBILITY FIX --- */
/* We set opacity to 1 by default so content is NEVER hidden */
.fade-in-section {
    opacity: 1; 
    transform: translateY(0);
    padding: 80px 0;
}

/* Hero Section */
.hero-video-container {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: var(--deep-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.5);
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    border-top: 6px solid var(--primary-gold);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Programs Section Styling */
.programs-container {
    padding: 60px 0;
    background-color: #ffffff;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background: var(--cream);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.program-card:hover {
    border-color: var(--primary-gold);
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.program-card h3 {
    color: var(--deep-navy);
    margin-bottom: 15px;
}

/* --- HOVER EFFECTS FOR CARDS --- */
.feature-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-top-color 0.4s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02); /* Lifts the card up */
    box-shadow: 0 20px 40px rgba(26, 35, 58, 0.15); /* Adds a deep shadow */
    border-top-color: var(--sage) !important; /* Changes top border to Sage on hover */
}

/* --- HERO CTA HOVER --- */
.hero-content .cta-button:hover {
    background: var(--deep-navy) !important;
    transform: scale(1.1);
}
/* --- 5-Card Horizontal Program Layout --- */
.programs-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Forces all cards to stay on one line */
    justify-content: space-between;
    gap: 15px; 
    margin-top: 50px;
    overflow-x: auto; /* Allows scrolling on very small mobile screens instead of breaking */
    padding-bottom: 20px;
}

.program-card-link {
    text-decoration: none;
    color: inherit;
    flex: 1 1 0; /* Ensures all 5 cards take up equal space */
    min-width: 180px; /* Adjusts minimum width to fit 5 cards comfortably */
}

.feature-card {
    background: var(--white);
    padding: 0; 
    border-radius: 12px;
    border-top: 6px solid var(--primary-gold);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image-container {
    height: 130px; /* Reduced height to keep the row compact */
    width: 100%;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: var(--deep-navy);
}

.card-content p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* --- MOUSE OVER EFFECT --- */
.program-card-link:hover .feature-card {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(26, 35, 58, 0.12);
    border-top-color: var(--sage) !important;
}

/* --- HERO CTA HOVER --- */
.hero-content .cta-button:hover {
    background: var(--deep-navy) !important;
    transform: scale(1.05);
}

/* --- WELCOME MESSAGE ANIMATION --- */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-slide-in {
    animation: slideInLeft 1.2s ease-out forwards;
    opacity: 0; /* Start hidden */
}

/* Ensure the programs-wrapper remains horizontal on desktop */
.programs-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 15px; 
    margin-top: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.program-card-link {
    flex: 1 1 0;
    min-width: 180px;
    text-decoration: none;
    color: inherit;
}

/* --- SCROLL ANIMATION STATES --- */

/* 1. The Slide-In Left (Welcome Message) */
.js-slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1.2s ease-out;
}

.js-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 2. The Slide-Up (Why Choose Us) */
.js-slide-up {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.2s ease-out;
}

.js-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- VPK PROFESSIONAL SPLIT BANNER --- */
.vpk-section-container {
    display: flex;
    flex-wrap: wrap;
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.vpk-visual-side {
    flex: 1;
    min-width: 400px;
    height: 500px;
}

.vpk-visual-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vpk-info-side {
    flex: 1;
    padding: 60px;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fcfcfc;
}

.vpk-info-side h2 {
    font-size: 2.8rem;
    color: var(--deep-navy); /* From your theme */
    line-height: 1.2;
    margin-bottom: 20px;
}

.vpk-info-side p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
}

/* Call to Action Button styling matching image_fe3d27.png */
.vpk-info-side .learn-more-btn {
    background-color: #b5a25d; /* Your Primary Gold */
    color: #ffffff;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    display: inline-block;
    transition: background 0.3s ease;
}

.vpk-info-side .learn-more-btn:hover {
    background-color: #1a233a; /* Deep Navy on hover */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .vpk-visual-side { min-width: 100%; height: 300px; }
    .vpk-info-side { padding: 40px 20px; text-align: center; }
}

/* --- FIXED FLOATING BUTTON --- */
.floating-cta-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999; /* Ensure it is on top of everything */
    opacity: 0;
    transform: translateY(50px);
    animation: simpleSlideUp 0.8s ease-out 1s forwards; /* Shows after 1 second */
}

@keyframes simpleSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-tour-btn {
    background-color: #b5a25d; /* Primary Gold */
    color: #ffffff !important;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.floating-tour-btn:hover {
    background-color: #1a233a; /* Deep Navy */
    transform: scale(1.05);
}

/* Mobile: Bottom Center */
@media (max-width: 768px) {
    .floating-cta-wrap {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%) translateY(50px);
        width: 90%;
        animation: simpleSlideUpMobile 0.8s ease-out 1s forwards;
    }
}

@keyframes simpleSlideUpMobile {
    to {
        opacity: 1;
        transform: translateX(50%) translateY(0);
    }
}

/* --- GOLD BANNER WITH POP-OUT LOGO --- */
.staff-banner-section {
    background-color: #b5a25d; /* Primary Gold background */
    padding: 30px 0; /* Increased padding slightly for balance */
    /* IMPORTANT: 'visible' allows the logo to escape the box boundary */
    overflow: visible; 
    position: relative;
    margin-bottom: 30px; /* Adds space before footer so logo doesn't overlap */
}

.staff-banner-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative; /* Needed for stacking context */
}

/* Bigger, high-contrast text */
.staff-banner-text {
    font-size: 1.8rem; /* Text made bigger */
    font-weight: 800;
    color: #1a233a; /* Deep Navy text for contrast against gold */
    text-shadow: 0 2px 4px rgba(255,255,255,0.2); /* Subtle lift */
}

.staff-banner-text span {
    color: #ffffff; /* White highlight for maximum pop */
}

.banner-action-area {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
}

/* THE "POP OUT" LOGO STYLES */
.banner-logo {
    height: 100px; /* Much larger size */
    width: auto;
    object-fit: contain;
    /* Negative margins pull the logo outside the gold banner box */
    margin-top: -55px; 
    margin-bottom: -45px;
    position: relative;
    z-index: 10; /* Ensures it sits on top of everything */
    /* Adds a shadow to enhance the 3D pop-out effect */
    filter: drop-shadow(0 10px 20px rgba(26, 35, 58, 0.3));
    transition: transform 0.3s ease;
}

.banner-logo:hover {
    transform: scale(1.05) rotate(-3deg); /* Fun little interaction on hover */
}

/* Navy button for contrast on gold */
.pill-tour-btn {
    background-color: #1a233a; /* Deep Navy button */
    color: #ffffff !important;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(26, 35, 58, 0.2);
    transition: all 0.3s ease;
}

.pill-tour-btn:hover {
    background-color: #ffffff;
    color: #1a233a !important;
    transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .staff-banner-section { padding: 50px 0 30px; } /* More room on top for logo */
    .staff-banner-flex { flex-direction: column; text-align: center; gap: 40px; }
    .banner-logo { height: 90px; margin-top: -70px; margin-bottom: 0; }
}

/* --- AUTO-SLIDE INFINITE GALLERY --- */
.gallery-slider-container {
    overflow: hidden;
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    width: 100%;
}

.gallery-track {
    display: flex;
    width: calc(250px * 10); /* Adjust based on number of images */
    animation: scrollGallery 30s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused; /* Pauses when parents hover to look closer */
}

.gallery-item {
    width: 300px;
    height: 250px;
    padding: 0 10px;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--cream);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    border-color: var(--primary-gold);
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 5)); } /* Moves by half the total images for seamless loop */
}

/* --- NAVIGATION STYLES --- */
.main-navigation {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #1a233a; /* Deep Navy */
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #b5a25d; /* Primary Gold */
}

/* Tour Button in Header */
.nav-cta {
    background: #b5a25d; /* Gold */
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
/* --- HEADER FLEXBOX ALIGNMENT --- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-flex {
    display: flex;
    justify-content: space-between; /* Pushes Logo left, Nav right */
    align-items: center;
    padding: 10px 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 35px; /* Space between menu and CTA button */
}

/* --- NAVIGATION LINKS --- */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px; /* Space between Home, Programs, etc. */
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #1a233a; /* Your Deep Navy */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #b5a25d; /* Your Primary Gold */
}

/* --- TOUR PILL BUTTON --- */
.header-cta-pill {
    background-color: #b5a25d; /* Gold */
    color: #ffffff !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(181, 162, 93, 0.2);
}

/* Mobile Fix: Stack elements if screen is too small */
@media (max-width: 992px) {
    .header-flex { flex-direction: column; gap: 15px; }
    .header-right { flex-direction: column; gap: 15px; }
}

/* --- MAIN HEADER LAYOUT --- */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid #f1f1f1;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* --- PARENT MENU LINKS --- */
.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-menu li {
    position: relative; /* Essential for positioning the dropdown */
    padding: 10px 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #1a233a; /* Deep Navy */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-menu li:hover > a {
    color: #b5a25d; /* Primary Gold */
}

/* --- THE DROPDOWN SUBMENU --- */
.nav-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 3px solid #b5a25d; /* Gold accent top */
    border-radius: 0 0 8px 8px;
    
    /* Animation: Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

/* SHOW SUBMENU ON HOVER */
.nav-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* SUBMENU LINKS */
.nav-menu ul.sub-menu li {
    padding: 0;
}

.nav-menu ul.sub-menu li a {
    color: #1a233a;
    padding: 12px 20px;
    display: block;
    text-transform: none; /* Sub-items look better in normal case */
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-menu ul.sub-menu li a:hover {
    background: #fdfbf2; /* Light Gold/Cream tint on hover */
    color: #b5a25d;
}

/* --- TOUR NOW BUTTON --- */
.header-cta-pill {
    background-color: #b5a25d;
    color: #ffffff !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- SUNFLOWER ACADEMICS: MASTER STYLES --- */
:root {
    --deep-navy: #1a233a;    /* */
    --primary-gold: #b5a25d; /* */
    --sage: #8c936e;         /* */
}

/* Layout Container */
.aca-block {
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 40px;
}

/* THE SIZE FIX: Hard limit on the container */
.aca-img-side {
    flex: 1;
    min-width: 300px;
    max-width: 380px; /* Reduced further to ensure it's not "too big" */
    margin: 0 auto;
}

.aca-blob-frame {
    width: 100%;
    height: auto;
    border: 10px solid #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    /* Organic irregular shape */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transition: transform 0.4s ease;
}

.aca-img-side:hover .aca-blob-frame {
    transform: scale(1.03) rotate(2deg);
    border-color: var(--primary-gold);
}

.aca-text-side {
    flex: 1.2;
    min-width: 320px;
}

/* Wavy Backgrounds */
.wavy-gold { background-color: #fdfbf2; clip-path: ellipse(150% 100% at 50% 0%); }
.wavy-blue { background-color: #f1f8ff; clip-path: ellipse(150% 100% at 50% 0%); }

/* Dashicons */
.aca-icon {
    font-family: "dashicons";
    font-size: 40px;
    color: var(--primary-gold);
    margin-bottom: 15px;
    display: inline-block;
}

/* --- FULL WIDTH GOLD BANNER --- */
.full-width-gold-banner {
    background-color: #b5a25d; /* Your Primary Gold */
    width: 100%;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 30px 0;
    margin-top: 60px;
    overflow: visible; /* Allows logo to pop out */
}

.banner-flex-container {
    max-width: 1200px; /* Keeps the content aligned with your site */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.banner-text {
    font-size: 2rem;
    font-weight: 800;
    color: #1a233a; /* Deep Navy */
}

.white-text { color: #ffffff; }

.banner-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* THE POP-OUT LOGO EFFECT */
.pop-out-logo-wrap img {
    height: 120px;
    width: auto;
    margin-top: -70px; /* Pushes logo up past the banner top */
    margin-bottom: -40px; /* Pushes logo down past banner bottom */
    filter: drop-shadow(0 10px 15px rgba(26, 35, 58, 0.2));
    z-index: 10;
    position: relative;
}

/* THE BUTTON & DASHICON FIX */
.banner-btn {
    background: #1a233a;
    color: #ffffff !important;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.banner-btn:hover { transform: scale(1.05); }

.banner-dashicon {
    font-family: "dashicons" !important;
    font-size: 24px;
    line-height: 1;
}

/* --- GLOBAL PROGRAM PAGE STYLES --- */
:root {
    --deep-navy: #1a233a;
    --primary-gold: #b5a25d;
    --sage: #8c936e;
    --cream: #fdfbf2;
}

/* 1. Global Hero Section */
.program-hero {
    background-size: cover;
    background-position: center;
    padding: 140px 0;
    text-align: center;
    color: #ffffff;
    border-bottom: 6px solid var(--primary-gold);
    position: relative;
}

.program-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 35, 58, 0.75); /* Consistent Navy Overlay */
    z-index: 1;
}

.program-hero .container { position: relative; z-index: 2; }

/* 2. Modular Blocks & Z-Pattern */
.aca-block { padding: 80px 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 50px; }

.aca-img-side { flex: 1; min-width: 300px; max-width: 380px; margin: 0 auto; }

.aca-blob-frame {
    width: 100%; height: auto;
    border: 10px solid #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; /* Signature Blob */
    transition: transform 0.4s ease;
}

.aca-img-side:hover .aca-blob-frame { transform: scale(1.03) rotate(2deg); border-color: var(--primary-gold); }

/* 3. Global Full-Width Gold Banner */
.full-width-gold-banner {
    background-color: var(--primary-gold);
    width: 100vw;
    position: relative;
    left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    padding: 40px 0;
    overflow: visible;
}

/* --- GLOBAL PROGRAM TEMPLATE --- */
.program-hero {
    position: relative;
    padding: 150px 0;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.program-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 35, 58, 0.7); /* Your Deep Navy Overlay */
}

/* Forces all "blobs" on program pages to stay a consistent size */
.aca-img-side {
    max-width: 380px; /* Prevents "too big" issue */
    margin: 0 auto;
}

.aca-blob-frame {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    border: 10px solid #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}