/* Global Resets & Basic Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #4A4A4A;
    background-color: #FDFDFD;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.no-scroll {
    overflow: hidden;
}

:root {
    --primary-color: #0A2342;
    --secondary-color: #B8860B;  /* Gold for logo/accents */
    --accent-color: #D4AF37;    /* Lighter Gold for highlights */
    --light-color: #FFFFFF;
    --dark-text-color: #333333;
    --body-text-color: #4A4A4A;
    --grey-bg-soft: #f4f6f8;
    --grey-border: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --max-width: 1170px;
    --navbar-height: 75px;
    --border-radius-main: 8px;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 25px;
    overflow: visible;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--body-text-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-main);
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 0.9rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-main);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.2);
}
.btn:hover {
    background: var(--accent-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}
.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-color);
    box-shadow: 0 4px 10px rgba(10, 35, 66, 0.2);
}
.btn-primary:hover {
    background: #003366;
    box-shadow: 0 6px 15px rgba(0, 51, 102, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
    box-shadow: none;
}
.btn-outline-light:hover {
    background: var(--light-color);
    color: var(--primary-color);
    box-shadow: none;
}


.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-center { text-align: center; }
.lead {
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
    color: #5f5f5f;
    font-weight: 400;
}

/* Navigation Bar */
.navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: var(--navbar-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
    transform: translateY(0);
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out, backdrop-filter 0.4s ease-in-out;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.navbar .logo img {
    height: calc(var(--navbar-height) - 30px);
    max-height: 50px;
    /* filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2)); */
}

.navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
}
.navbar ul li {
    margin-left: 28px;
}
.navbar ul li a {
    color: var(--light-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding: 8px 0;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.navbar.scrolled ul li a {
    color: var(--primary-color);
    text-shadow: none;
}
.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}
.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--accent-color);
}
.navbar.scrolled ul li a:hover,
.navbar.scrolled ul li a.active {
    color: var(--secondary-color);
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}
.navbar ul li:last-child {
    margin-left: 35px;
}
.navbar ul li .btn-nav-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}


/* Mobile Menu (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.navbar.scrolled .menu-toggle .bar {
    background-color: var(--primary-color);
}
.menu-toggle.open .bar:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; transform: translateX(-100%); }
.menu-toggle.open .bar:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }


/* Hero Section Base */
.hero {
    min-height: 100vh; color: var(--light-color); display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: var(--navbar-height) 25px 60px; position: relative;
    background-size: cover; background-position: center center; background-repeat: no-repeat;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(10, 35, 66, 0.3) 0%, rgba(10, 35, 66, 0.65) 100%);
    z-index: 1;
}
.hero-initial-image-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
    opacity: 1; visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0s linear 0.8s;
    display: flex; align-items: center; justify-content: center;
}
.hero-initial-image-overlay img {
    width: auto; height: 70%; max-width: 90%; max-height: 90%;
    object-fit: contain; border-radius: 0;
    filter: drop-shadow(3px 5px 5px rgba(0, 0, 0, 0.35));
}
.hero-initial-image-overlay.faded-out { opacity: 0; visibility: hidden; pointer-events: none; }

.hero-content { position: relative; z-index: 3; max-width: 850px; }
.hero h1, .hero p.lead, .hero .btn {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.hero h1.revealed {
    opacity: 1; transform: translateY(0); font-size: 3.8rem; margin-bottom: 1.5rem;
    color: var(--light-color); text-shadow: 0 2px 8px rgba(0,0,0,0.3); transition-delay: 0.3s;
}
.hero p.lead.revealed {
    opacity: 1; transform: translateY(0); font-size: 1.4rem; margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9); transition-delay: 0.5s;
}
.hero .btn.revealed {
    opacity: 1; transform: translateY(0); padding: 1rem 2.5rem;
    font-size: 1.1rem; transition-delay: 0.7s;
}

/* Sections Styling */
.section { padding: 80px 0; }
section[id], header[id] { scroll-margin-top: var(--navbar-height); }
.section-light { background-color: var(--light-color); }
.section-grey { background-color: var(--grey-bg-soft); }
.section-primary-bg { background-color: var(--primary-color); }
.section-primary-bg h1, .section-primary-bg h2, .section-primary-bg h3,
.section-primary-bg p, .section-primary-bg li, .section-primary-bg .lead {
    color: var(--light-color);
}
.section-primary-bg .lead { color: rgba(255, 255, 255, 0.85); }
.section-primary-bg a:not(.btn) { color: var(--accent-color); font-weight: 600; }
.section-primary-bg a:not(.btn):hover { color: var(--light-color); }

/* Cards (General & Video Background Cards) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.card {
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 380px;
}
.card:not(.card-with-video-bg) {
    background: var(--light-color);
    padding: 30px;
    text-align: left;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }

.card-with-video-bg { background: none; padding: 0; }
.card-video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; }
.card-video-background video { width: 100%; height: 100%; object-fit: cover; }
.card-video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 35, 66, 0.65);
    z-index: 2; transition: background-color 0.3s ease;
}
.card-with-video-bg:hover .card-video-overlay { background-color: rgba(10, 35, 66, 0.5); }

.card-content {
    position: relative; z-index: 3;
    height: 100%; display: flex; flex-direction: column;
    flex-grow: 1;
}
.card-with-video-bg .card-content { padding: 30px; }

.card-with-video-bg .card-content h3,
.card-with-video-bg .card-content p {
    color: var(--light-color); text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.card-with-video-bg .card-content i.card-icon {
    color: var(--accent-color); text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.card:not(.card-with-video-bg) i.card-icon { color: var(--secondary-color); }

.card i.card-icon { font-size: 2.8rem; margin-bottom: 1.25rem; text-align: center; }
.card h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.card h4 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card.text-center .btn { align-self: center; }
.card img.card-img-top {
    margin: -30px -30px 20px -30px; width: calc(100% + 60px);
    max-width: calc(100% + 60px); border-radius: var(--border-radius-main) var(--border-radius-main) 0 0;
    aspect-ratio: 16 / 9; object-fit: cover;
}

.program-card .price { font-size: 1.6rem; font-weight: 700; color: var(--success-color); margin: 0.75rem 0; }
.program-card .original-price { text-decoration: line-through; color: var(--danger-color); font-size: 1rem; margin-left: 8px; }
.program-card .discount { background-color: var(--danger-color); color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: 700; display: inline-block; margin-left: 8px; vertical-align: middle; }
.price { font-size: 1.6rem; font-weight: 700; color: var(--success-color); margin: 0.75rem 0; }
.original-price { text-decoration: line-through; color: var(--danger-color); font-size: 1rem; margin-left: 8px; }
.discount { background-color: var(--danger-color); color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: 700; display: inline-block; margin-left: 8px; vertical-align: middle; }


/* --- ABOUT SECTION --- */
.about-content-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 80px;
}
.about-content-block:last-child { margin-bottom: 0; }

/* Text area in About section blocks */
.about-content-block .text-content {
    flex: 1.5;
    min-width: 300px;
}
.about-content-block .text-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.about-content-block .text-content p {
    line-height: 1.75;
    color: var(--body-text-color);
    margin-bottom: 1.4rem;
}

/* Base .media-content container in About Section for ALL media types */
.about-content-block .media-content {
    flex: 1;
    min-width: 50%;
    border-radius: var(--border-radius-main);
    min-height: 300px;
    display: flex;
    /* align-items & justify-content depend on content inside */
    /* text-align: center; /* Only if content inside should be centered */
    position: relative;
    overflow: hidden;
    background-color: var(--grey-bg-soft); /* DEFAULT light grey background for all media containers */
    padding: 20px; /* DEFAULT padding for all media containers */
    box-shadow: var(--shadow-soft); /* DEFAULT shadow for all media containers */
}

/* For static images (e.g., Mission section) */
.about-content-block .media-content img.static-media-image {
    max-width: 100%;
    max-height: 400px; /* Or remove max-height to let it fill more */
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-main);
    /* No separate shadow needed if parent .media-content has it */
}

/* Founder Video Section Specifics */
/* .founder-video-section-wrapper IS A .media-content div, so it inherits the base styles */
.founder-video-section-wrapper {
    /* Override or add specific styles if needed, but base is from .media-content */
    /* For example, if you want slightly different padding for the video area: */
    /* padding: 25px; */
    /* Ensure flex properties for centering its content (the video-pair-container) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.video-pair-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced gap for a tighter look within the grey container */
    width: 100%;
    /* max-width: 450px; */ /* Adjust max-width of the video PAIR if needed */
}
.single-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15); /* Slightly less prominent shadow inside grey */
}
.single-video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.video-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--body-text-color); /* Captions will be on the grey background */
    margin-top: 8px;
    font-weight: 600;
}

/* Coaching Philosophy Image Gallery Specifics */
/* .coaching-philosophy-gallery IS A .media-content div, inherits base styles */
.coaching-philosophy-gallery {
    /* Override or add specific styles if needed */
    /* padding: 15px; /* It already gets default padding from .media-content */
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
    gap: 15px;
    width: 100%;
    /* max-width: 500px; /* This max-width is fine */
}
.gallery-item {
    width: 100%;
    border-radius: calc(var(--border-radius-main) - 4px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
/* Core Values List was originally inline, moved to class .core-values-list below */

/* Programs Section Landing Page Specifics */
.program-details-landing { max-width: 900px; margin: 40px auto; padding: 35px; background-color: var(--light-color); border-radius: var(--border-radius-main); box-shadow: var(--shadow-medium); }
.program-details-landing img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--border-radius-main); margin-bottom: 25px; }
.program-details-landing h3 { text-align: center; font-size: 2rem; margin-bottom: 20px; }
.program-details-landing .btn { display: block; width: fit-content; margin: 25px auto 0 auto; padding: 0.9rem 2.2rem; }
#itty-bitty-program { border: 3px solid var(--accent-color); }
#itty-bitty-program h3 { color: var(--accent-color) !important; }
.text-center.hover a:hover {
  color: #f0c843
;
}


/* Testimonials Section */
#testimonials .card { text-align: left; position: relative; padding-top: 50px; } /* Uses general .card styles */
#testimonials .card::before { content: '\f10d'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 2.5rem; color: var(--secondary-color); opacity: 0.3; position: absolute; top: 20px; left: 30px; }
#testimonials .card p { font-style: italic; font-size: 1.05rem; color: #555; margin-bottom: 1.5rem; }
#testimonials .card h4 { font-size: 1rem; font-weight: 700; color: var(--primary-color); text-align: right; margin-top: auto; }

/* ======================================================= */
/*                      CONTACT SECTION                    */
/* ======================================================= */
#contact .section-primary-bg a {
    color: var(--accent-color); /* Ensures links are visible on dark bg */
}
#contact .section-primary-bg a:hover {
    color: var(--light-color);
}
#contact .section-primary-bg h3 {
    color: var(--light-color); /* Ensure subheadings are white */
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 50px;
    align-items: center; /* Vertically align content in the middle */
    margin-bottom: 50px; /* Space between grid and map */
}

.contact-info p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
}
.contact-info p i.fas {
    font-size: 1.1rem;
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
    color: var(--accent-color); /* Make icons stand out */
}

.social-links {
    display: flex;
    gap: 25px;
    font-size: 1.8rem;
}
.social-links a {
    transition: transform 0.2s ease;
}
.social-links a:hover {
    transform: scale(1.15);
}

.contact-logo-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-logo-image {
    max-width: 350px; /* Control the logo size */
    width: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-top: 50px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Responsive adjustments for Contact Section --- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack the columns on mobile */
        text-align: center;
    }
    .contact-info {
        order: 2; /* Show logo first on mobile */
    }
    .contact-logo-column {
        order: 1;
        margin-bottom: 40px;
    }
    .contact-info p {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* Form Styling */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.6rem; color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"],
.form-group select, .form-group textarea {
    width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--grey-border);
    border-radius: var(--border-radius-main); font-size: 1rem; font-family: 'Open Sans', sans-serif;
    color: var(--body-text-color); background-color: #fdfdfd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #aaa; }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}
.form-group select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23B8860B' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
    background-size: 1em; padding-right: 2.5rem;
}

/* Footer */
.footer { background: var(--dark-text-color); color: #b0b0b0; text-align: center; padding: 40px 25px; }
.footer p { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer a { color: #e0e0e0; font-weight: 500; }
.footer a:hover { color: var(--secondary-color); }
.footer .social-links { margin-bottom: 1.5rem; }
.footer .social-links a { color: #d0d0d0; margin: 0 12px; font-size: 1.5rem; }
.footer .social-links a:hover { color: var(--secondary-color); transform: translateY(-2px); }

/* Animations (Simple Fade-in on Scroll) */
.fade-in-section { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.9s cubic-bezier(0.645, 0.045, 0.355, 1); }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive Adjustments */
@media(max-width: 992px) { /* Tablet */
    :root { --navbar-height: 70px; }
    h1 { font-size: 2.6rem; }
    .hero h1.revealed { font-size: 3.2rem; }
    .hero p.lead.revealed { font-size: 1.3rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrapper { padding: 30px; }
    .map-container { margin-top: 30px; }

    /* About Section Responsive - Tablet */
    .about-content-block {
        gap: 30px;
    }
    .about-content-block .text-content {
        flex-basis: 100%;
        order: 2;
    }
    /* Target all .media-content within .about-content-block for consistent stacking */
    .about-content-block .media-content { /* This includes .founder-video-section-wrapper and .coaching-philosophy-gallery */
        flex-basis: 100%;
        max-width: 600px; /* Allow media blocks to be a bit wider when full width */
        margin: 0 auto 30px auto;
        order: 1;
    }
        /* Make the grid a horizontal, scrollable container */
    #founder-story .video-grid {
        display: flex;
        overflow-x: auto; /* Enable horizontal scrolling */
        flex-wrap: nowrap; /* Prevent items from wrapping to a new line */
        gap: 15px;
        padding: 10px 20px; /* Add some padding so items don't touch the edges */
        
        /* This makes scrolling feel snappy and lock onto each video */
        scroll-snap-type: x mandatory;
        
        /* Hide the scrollbar for a cleaner look */
        scrollbar-width: none; /* For Firefox */
        -ms-overflow-style: none;  /* For IE and Edge */
    }

    /* Hide scrollbar for Chrome, Safari, and Opera */
    #founder-story .video-grid::-webkit-scrollbar {
        display: none;
    }

    /* Style each video to take up most of the screen to encourage scrolling */
    #founder-story .video-grid-item {
        flex: 0 0 85%; /* Don't grow, don't shrink, base width is 85% */
        max-width: 340px; /* Prevent it from being too large on tablets */
        
        /* This tells the scroll-snap where to align the item */
        scroll-snap-align: center;
    }
}


@media(max-width: 768px) { /* Mobile */
    html { font-size: 15px; }
    :root { --navbar-height: 65px; }
    .container { padding: 0 20px; }
    .section { padding: 60px 0; }

    .navbar .logo img { height: calc(var(--navbar-height) - 25px); }
    .navbar ul {
        display: none; flex-direction: column; width: 100%; position: fixed;
        top: 0; left: 0; height: 100vh; background: var(--light-color);
        padding-top: calc(var(--navbar-height) + 20px); transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
        overflow-y: auto; z-index: 999;
    }
    .navbar ul.active { display: flex; transform: translateX(0); }
    .navbar ul li { margin: 0; width: 100%; text-align: center; }
    .navbar ul li a {
        color: var(--primary-color); text-shadow: none; display: block;
        padding: 18px 20px; font-size: 1.1rem; border-bottom: 1px solid var(--grey-bg-soft);
    }
    .navbar ul li:last-child { margin-left: 0; }
    .navbar ul li .btn-nav-cta { width: 80%; margin: 20px auto; display: block; }
    .navbar ul li a::after { display: none; }
    .navbar ul li a:hover, .navbar ul li a.active {
        background-color: var(--grey-bg-soft); color: var(--secondary-color);
    }
    .menu-toggle { display: flex; }

    .hero { padding-top: var(--navbar-height); }
    .hero h1.revealed { font-size: 2.5rem; }
    .hero p.lead.revealed { font-size: 1.15rem; }
    .hero .btn.revealed { padding: 0.9rem 2rem; font-size: 1rem; }

    h1 { font-size: 2rem; } h2 { font-size: 1.7rem; } h3 { font-size: 1.4rem; }

    .cards-grid { grid-template-columns: 1fr; gap: 25px; }
    .card:not(.card-with-video-bg) { padding: 25px; }
    .card-with-video-bg .card-content { padding: 25px; }
    .card { min-height: auto; }

    .card img.card-img-top { margin: -25px -25px 20px -25px; width: calc(100% + 50px); max-width: calc(100% + 50px); }

    .about-content-block { flex-direction: column; gap: 30px; }
    .about-content-block .text-content,
    .about-content-block .media-content {
        flex-basis: auto; width: 100%;
        order: initial !important;
        margin-bottom: 0;
    }
    .founder-video-section-wrapper { /* This is a .media-content */
        padding: 15px;
        margin-bottom: 30px;
    }
     .coaching-philosophy-gallery { /* This is a .media-content */
        padding: 10px;
        margin-bottom: 30px;
    }
     .media-content:not(.founder-video-section-wrapper):not(.coaching-philosophy-gallery) { /* For any other .media-content (like mission) */
        margin-bottom: 20px;
    }
    .video-pair-container { gap: 15px; max-width: 100%;}
    .media-content { min-height: 200px; }
    .media-content img.static-media-image { max-height: 300px; }
    .about-content-block .text-content h2 { font-size: 1.8rem; }

    /* Coaching Gallery Mobile */
    .image-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }


    .program-details-landing { padding: 25px; margin: 30px auto; }
    .program-details-landing h3 { font-size: 1.6rem; }
    .contact-form-wrapper { padding: 25px; }
}

@media(max-width: 480px) { /* Smaller Mobile */
    .image-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    /* .gallery-item {
        aspect-ratio: 16 / 10; /* Example for wider images when stacked */
    /* } */
}

/* --- ADDED STYLES FOR SUBTITLES --- */
.section-subtitle { /* General class for section sub-titles */
    font-size: 2rem; /* Or your preferred size, adjust as needed */
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px; /* Adjust as needed */
    margin-bottom: 25px; /* Adjust as needed */
    text-align: center;
}

.about-text-subheading { /* Specific for subheadings within text blocks in .about-content-block */
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem; /* Slightly smaller than general H3 */
    font-weight: 700;
    color: var(--secondary-color); /* Accent color for these subheadings */
    margin-top: 2rem;   /* More space above */
    margin-bottom: 0.8rem; /* Less space below, before paragraph */
}

.core-values-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px; /* Space from "Our Core Values:" heading */
}

.core-values-list li {
    background: var(white); /* On .section-light, this gives a subtle raised effect */
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Responsive adjustments for new subtitles if needed */
@media(max-width: 768px) {
    .section-subtitle {
        font-size: 1.7rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .about-text-subheading {
        font-size: 1.4rem;
        margin-top: 1.5rem;
    }
}
@media(max-width: 480px) {
    .section-subtitle {
        font-size: 1.5rem;
    }
    .about-text-subheading {
        font-size: 1.3rem;
    }
}
/* In style.css */

/* --- ABOUT SECTION --- */
/* ... other .about-content-block styles ... */

/* Coaching Philosophy Image Gallery Specifics */
.coaching-philosophy-gallery {
    display: flex;
    flex-direction: column; /* Stack children (gallery and core values block) vertically */
    align-items: center;   /* Center children horizontally */
    justify-content: flex-start; /* Align children to the top of the container */
    gap: 25px; /* Space between the image gallery and the core values block below it */
    /* padding is inherited from .media-content */
}

.image-gallery-grid {
    /* ... your existing .image-gallery-grid styles ... */
    /* Ensure it has a width and potentially a max-width */
    width: 100%;
    max-width: 500px; /* Or your preferred max-width for the gallery */
}

/* Styles for the "Our Core Values" block when it's under the media gallery */
.core-values-block-media {
    width: 100%; /* Take full width available in the centered column */
    max-width: 500px; /* Can match the gallery's max-width or be different */
    text-align: center;
}

.core-values-title-media { /* New class for specific styling of the title in this location */
    font-family: 'Raleway', sans-serif; /* Consistent with other H3s */
    font-size: 1.7rem; /* Adjust size as needed, likely smaller than .section-subtitle */
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0; /* Gap is handled by parent flex container */
    margin-bottom: 15px; /* Space before the list */
    text-align: center;
}

/* Existing .core-values-list styling should mostly work.
   You might want to adjust item padding or font-size if they feel too large here. */
.core-values-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Reduced gap for a tighter look if needed */
    margin-top: 0; /* Reset top margin, as the heading above provides space */
}

.core-values-list li {
    background: white;
    color: var(--primary-color);
    padding: 8px 18px; /* Slightly adjusted padding */
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem; /* Slightly adjusted font size */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Responsive adjustments for the title if needed */
@media(max-width: 768px) {
    .core-values-title-media {
        font-size: 1.5rem; /* Adjust for mobile if needed */
    }
}
/* In style.css */

/* ... existing styles for .coaching-philosophy-gallery, .core-values-block-media, etc. ... */

/* Styles for the new additional text block below the core values in the media column */
.additional-philosophy-text-media {
    width: 100%; /* Take full width available in the centered column */
    max-width: 500px; /* Match gallery/core values max-width or adjust as needed */
    text-align: left; /* Or 'center' if you prefer, but 'left' is common for paragraphs */
    margin-top: 20px; /* Space between core values list and this new text */
    padding: 0 10px; /* Optional: slight horizontal padding if needed within its container */
}

.additional-philosophy-text-media p {
    font-size: 0.95rem; /* Adjust as needed */
    line-height: 1.6;
    color: var(--body-text-color); /* Standard body text color */
    margin-bottom: 1rem;
}

.additional-philosophy-text-media p:last-child {
    margin-bottom: 0;
}

.additional-philosophy-text-media strong { /* If you use strong tags */
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive adjustments if needed */
@media(max-width: 768px) {
    .additional-philosophy-text-media {
        text-align: center; /* Or keep left, depends on mobile design preference */
        /* Adjust margins or padding for mobile if necessary */
    }
}
/* In style.css */

/* --- ABOUT SECTION --- */
/* ... other .about-content-block styles ... */

/* Founder Video Section Specifics */
.founder-video-section-wrapper {
    display: flex;
    flex-direction: column; /* Ensure image and video container stack vertically */
    align-items: center;
    justify-content: center;
    gap: 20px; /* Space between the new image and the video pair container */
    /* padding is inherited from .media-content */
}

/* Styles for the new image above the founder videos */
.founder-intro-image {
    width: 100%; /* Make the image responsive within its container */
    max-width: 450px; /* Set a max-width, adjust as needed. Can match video pair or be different. */
    height: auto; /* Maintain aspect ratio */
    border-radius: var(--border-radius-main); /* Consistent rounded corners */
    object-fit: cover; /* Or 'contain' depending on image aspect ratio and desired look */
    box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* Subtle shadow, adjust as needed */
    /* margin-bottom: 20px; /* This is now handled by 'gap' in the parent flex container */
}

.video-pair-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 450px; /* Or your preferred max-width for the video pair */
}

/* ... your existing .single-video-container styles ... */
/* In style.css */

/* --- ABOUT SECTION --- */
.about-content-block {
    display: flex;
    /* flex-wrap: wrap; NO - We want to control wrapping more explicitly for alt-layout */
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 80px;
}

.about-content-block .text-content {
    flex: 1.5;
    min-width: 300px; /* Allows it to shrink but not too much */
    /* Default order, assuming text is first in DOM for non-alt layouts */
}

.about-content-block .media-content {
    flex: 1;
    min-width: 300px; /* Allows it to shrink but not too much */
    /* Default order, assuming media is second in DOM for non-alt layouts */
}

/* Specific styling for the 'alt-layout' (Founder Story) for DESKTOP & TABLET */
/* This makes media appear first (left), then text (right) on larger screens */
.about-content-block.alt-layout {
    /* This is a flex container by default from .about-content-block */
}
.about-content-block.alt-layout .media-content {
    order: 1; /* Media on the left */
    /* flex-basis: 40%; /* Example: Explicit basis for media on desktop/tablet */
}
.about-content-block.alt-layout .text-content {
    order: 2; /* Text on the right */
    /* flex-basis: 55%; /* Example: Explicit basis for text on desktop/tablet */
}


/* Responsive Adjustments */

@media(max-width: 992px) { /* TABLET specific styles */
    .about-content-block {
        gap: 30px; /* Reduce gap for tablets */
    }

    /* For TABLETS, we want .alt-layout to remain side-by-side.
       The default flex properties from .about-content-block and its children
       should allow them to shrink and fit.
       If they start wrapping undesirably on tablet, you might need to adjust
       min-width or flex-basis for .text-content and .media-content generally,
       or specifically for .alt-layout children at this breakpoint.
    */

    /* Example: If .alt-layout elements are too wide for tablet and wrap prematurely: */
    /*
    .about-content-block.alt-layout .media-content {
        min-width: 280px;
    }
    .about-content-block.alt-layout .text-content {
        min-width: 280px;
    }
    */
}


@media(max-width: 768px) { /* MOBILE / PHONE specific styles */
    .about-content-block {
        flex-direction: column; /* Stack items vertically for MOST blocks */
        gap: 30px;
    }

    .about-content-block .text-content,
    .about-content-block .media-content {
        flex-basis: 100% !important; /* Make each item take full width when stacked */
        width: 100% !important;
        order: initial !important; /* Reset desktop order for general blocks */
        min-width: auto !important; /* Reset min-width for mobile */
    }

    /*
       NOW, specifically for .alt-layout (Founder Story) on PHONES:
       We want Text on Top, Media Below.
       The parent .about-content-block.alt-layout has flex-direction: column
       due to the general rule above for 768px.
       DOM order for .alt-layout:
       1. .media-content
       2. .text-content
       So, we use 'order' to flip them.
    */
    .about-content-block.alt-layout .text-content {
        order: 1 !important; /* Text (Carlos's story) comes first ON PHONES */
    }
    .about-content-block.alt-layout .media-content {
        order: 2 !important; /* Media (image/videos) comes second ON PHONES */
    }
}
/* --- ADDED FOR CREDENTIALS LIST --- */
.credentials-list {
    list-style: none; /* Removes default bullet points */
    padding-left: 20px; /* Indents the list slightly */
    margin-top: 1.5rem; /* Space above the list */
    margin-bottom: 2rem; /* Space below the list */
    border-left: 3px solid var(--secondary-color); /* Professional-looking left border */
}

.credentials-list li {
    margin-bottom: 0.8rem; /* Space between each credential */
    font-size: 0.95rem;
    color: var(--body-text-color);
}

.credentials-list li:last-child {
    margin-bottom: 0;
}

.credentials-list li strong {
    color: var(--primary-color); /* Makes the degree title stand out */
    font-weight: 700;
}
/* --- END OF ADDED STYLES --- */
/* --- ADDED FOR INTERACTIVE VIDEOS --- */
.single-video-container {
    cursor: pointer;
}
/* --- FOUNDER & VIDEO GRID STYLES --- */

/* This makes the media column stack its children (image and video grid) vertically */
#founder-story .media-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the content horizontally */
    gap: 25px; /* Creates space between the image and the video grid */
    padding: 0; /* Remove default padding to allow items to fill space */
    background: none;
    box-shadow: none;
}

/* Styles for the founder's image */
.founder-intro-image {
    width: 100%;
    max-width: 400px; /* Control the max size of the image */
    height: auto;
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-medium);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.video-grid-item {
    position: relative;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.video-grid-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
    z-index: 10;
}

.video-player-wrapper {
    position: relative;
    padding-top: 177.78%; /* Aspect ratio for 9:16 vertical videos */
    width: 100%;
    background-color: #000;
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 10px 10px 10px;
    background: linear-gradient(to top, rgba(10, 35, 66, 0.85), transparent);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-grid-item:hover .video-title-overlay {
    opacity: 0;
}

.video-title-overlay h3 {
    color: var(--light-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
}

/* Responsive: On smaller screens, make the video grid a single column */
@media(max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* --- ANNOUNCEMENTS CAROUSEL STYLES (v3 - Polished Card Design) --- */
#announcements-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    overflow: hidden; /* This hides the other slides */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    background: var(--light-color);
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-soft);
    padding: 30px 40px; /* Padding to ensure text doesn't go under arrows */
    border-left: 5px solid var(--secondary-color);
    text-align: left;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.announcement-date {
    font-size: 0.85rem;
    color: #777;
    font-weight: 600;
}

.announcement-badge {
    background-color: var(--danger-color);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.carousel-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: var(--secondary-color); /* Kept the bronze color */
}

.carousel-item p {
    margin-bottom: 0;
    color: var(--body-text-color);
    line-height: 1.6;
    /* Give text space from the arrows */
    padding: 0 30px; 
}

/* --- Navigation Arrows (Updated) --- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.04); /* More subtle background */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-50%) scale(1.1);
}

/* ======================================================= */
/* THIS IS THE KEY CHANGE TO BRING THE ARROWS INSIDE       */
/* ======================================================= */
.carousel-arrow.prev { left: 15px; }
.carousel-arrow.next { right: 15px; }

/* --- Navigation Dots --- */
.carousel-dots {
    position: relative; 
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}
/* --- MOBILE VIDEO GRID SIZE ADJUSTMENT --- */
@media (max-width: 500px) {
    #founder-story .video-grid {
        /* This sets a maximum width for the grid on small phones */
        max-width: 320px; 
        
        /* This centers the grid horizontally */
        margin-left: auto;
        margin-right: auto;
    }
}
/* --- ACTION MODAL STYLES --- */
body.modal-open {
    overflow: hidden; /* Prevent background scroll when modal is open */
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 66, 0.8); /* Dark blue overlay */
    z-index: 9999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: var(--light-color);
    border-radius: var(--border-radius-main);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    padding: 40px;
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.close-modal-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-modal-action {
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-modal-action:hover {
    background-color: var(--accent-color);
}
.btn-modal-action i {
    font-size: 1.1rem;
}