/* === 1. ROOT & GENERAL SETUP === */
:root {
    --primary-color: #3b82f6;
    /* A modern blue */
    --dark-bg: #111827;
    --medium-bg: #1f2937;
    --light-text: #f3f4f6;
    --medium-text: #9ca3af;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, serif;
}

/* === Light Theme Overrides === */
/* === Light Theme Overrides === */
[data-theme="light"] {
    --dark-bg: #FDFAF5;
    /* Cream White Body */
    --medium-bg: #FFFFFF;
    /* White Header & Cards */
    --light-text: #111827;
    /* Dark Text */
    --medium-text: #4b5563;
}

/* Light Mode Hero Overrides */
[data-theme="light"] .hero-overlay {
    background-color: rgba(255, 255, 255, 0.6);
    /* Glazed/Washed out look */
}

[data-theme="light"] .hero h1 {
    color: #111827;
    /* Dark text for contrast */
}

[data-theme="light"] .hero p {
    color: #374151;
    /* Dark Grey text */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
}

/* === 2. LAYOUT CONTAINERS === */
.page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-layout {
    display: flex;
    gap: 3rem;
}

.content-single-column {
    max-width: 800px;
    margin: 0 auto;
}

/* === 3. HEADER & NAVIGATION === */
.site-header {
    background-color: var(--medium-bg);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #374151;
}

/* Light Mode Header Border Fix */
[data-theme="light"] .site-header {
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.logo:visited {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--light-text);
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 2rem;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--medium-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.has-dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 0.7em;
    margin-left: 5px;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--medium-bg);
    border: 1px solid #374151;
    border-radius: 0 0 5px 5px;
    list-style: none;
    padding: 0.5rem 0;
    width: 260px;
    z-index: 110;
}

.has-dropdown:hover>.submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 0.75rem 1.5rem;
}

.submenu-heading {
    padding: 0.75rem 1.5rem 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--medium-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: default;
}

.has-dropdown.dropdown-right .submenu {
    left: auto;
    right: 0;
}

/* === 4. FOOTER & SOCIAL SHARING === */
.site-footer {
    background-color: var(--medium-bg);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid #374151;
}

.site-footer p {
    color: var(--medium-text);
}

.site-footer a {
    color: var(--medium-text);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.social-sharing {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--medium-text);
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    color: #ffffff !important;
    /* Force White Text always */
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.share-button:hover {
    opacity: 0.85;
    color: #ffffff !important;
}

.share-button.facebook {
    background-color: #1877F2;
}

.share-button.twitter {
    background-color: #14171A;
}

/* === Logo Toggling === */
/* Default (Dark Mode) */
.logo-light-mode {
    display: none;
}

.logo-dark-mode {
    display: block;
}

/* Light Mode Override */
[data-theme="light"] .logo-light-mode {
    display: block;
}

[data-theme="light"] .logo-dark-mode {
    display: none;
}

/* === 5. PAGE-SPECIFIC STYLES === */

/* --- 5a. Homepage --- */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-image: url('/Media/backgrounds/hero_v2.png');
    background-size: cover !important;
    background-position: center center !important;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    /* Color handled by Theme Variables & Overrides */
}

.hero-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
}

.hero-button:hover {
    opacity: 0.85;
}

.featured-blogs {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--medium-bg);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-card img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    background-color: var(--dark-bg);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}

/* --- 5b. Blog Post & Sidebar --- */
.blog-post {
    flex: 3;
}

.sidebar {
    flex: 1;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    /* Hide scrollbar but allow scrolling */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.sidebar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.post-hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.blog-post h1 {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--medium-text);
    margin-bottom: 2rem;
}

.blog-post h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.blog-post p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.blog-post a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-post a:hover {
    text-decoration: underline;
}

.blog-post ul {
    list-style-position: inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.blog-post li {
    margin-bottom: 0.5rem;
}

.sidebar-widget {
    background-color: var(--medium-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.5rem;
}

.sidebar-month-heading {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--medium-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #374151;
}

.sidebar-month-heading:first-child {
    margin-top: 0;
}

/* --- 5c. "Show More" Blog List Feature --- */
/* --- 5c. "Show More" Blog List Feature --- */
.blog-post-content img {
    max-width: 100% !important;
    height: auto !important;
    /* width: auto !important;  <-- Removed this global override to allow specific controls below */
}

/* --- Fix for "Blown Out" Blog Images --- */
/* Targets images in blog posts that are NOT the hero and NOT manually constrained/gridded */
.blog-post-content img:not(.post-hero-image):not(.constrained-img) {
    width: auto !important;
    /* Reset HTML width="100%" attributes to natural size */
    max-width: 100% !important;
    /* Prevent overflow */
    display: block;
    margin: 1.5rem auto;
    /* Center the image */

    /* Optional: Limit max-width on desktop to prevent huge vertical scrolling */
    max-height: 80vh;
    object-fit: contain;
}

/* On larger screens, ensure they don't get awkwardly huge if they are high-res */
@media (min-width: 900px) {
    .blog-post-content img:not(.post-hero-image):not(.constrained-img) {
        max-width: 600px;
    }
}

/* Ensure Author Sidebar images don't get centered or constrained weirdly */
.author-sidebar img {
    margin: 0 0 15px 0 !important;
    /* Reset margin to fit sidebar flow */
    width: 100% !important;
    /* Reset width to fill sidebar */
    max-width: 100% !important;
}

/* Ensure images don't stretch if they are small */
.blog-post-content img[width] {
    width: auto;
    /* Resets width attribute if present */
    max-width: 100%;
}

.blog-nav-list {
    list-style: none;
    max-height: 500px;
    /* Collapses the list by default */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
    display: block;
    /* Ensure it's not hidden */
}

.blog-nav-list li {
    margin-bottom: 0.5rem;
}

.blog-nav-list a {
    color: var(--medium-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-nav-list a:hover {
    color: var(--primary-color);
}

.blog-nav-list.expanded {
    max-height: 10000px;
    /* A large number to ensure all content is shown */
}

/* Creates the fade-out effect at the bottom */
.blog-nav-list:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--medium-bg));
    pointer-events: none;
}

.show-more-item {
    text-align: center;
    margin-top: 1rem;
}

.show-more-button {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.show-more-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- 5d. Call to Action Block --- */
.cta-block {
    background-color: var(--medium-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    text-align: center;
    border: 1px solid var(--primary-color);
}

.cta-block h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button,
.cta-button-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

a.cta-button {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.cta-button:hover {
    opacity: 0.85;
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--light-text);
}

.cta-button-secondary:hover {
    background-color: var(--light-text);
    color: var(--dark-bg);
}

/* === 6. RESPONSIVE MEDIA QUERIES === */

/* For tablets and smaller desktops */
@media (max-width: 900px) {
    .content-layout {
        flex-direction: column;
    }

    .sidebar {
        position: static;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--medium-bg);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
        max-height: 85vh;
        /* Safe max-height to avoid address bar conflicts */
        overflow-y: auto;
        /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        padding-bottom: 50px;
        /* Extra padding to ensure last items are visible */
    }

    .has-dropdown:hover>.submenu {
        display: none;
    }

    .submenu {
        display: none;
        position: static;
        width: 100%;
        background-color: #2c3a4f;
        border: none;
        padding-left: 1rem;
    }

    .nav-menu .submenu.active {
        display: block;
    }

    .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .has-dropdown>a:focus+.submenu.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Tablet/Narrow Desktop Adjustments */
    .hero {
        min-height: 500px;
        /* Ensure sufficient height on tablets to avoid extreme cropping */
    }
}

/* For mobile phones */
/* Extended to 768px to catch narrow desktop windows and tablets */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        /* Mobile Layout: STRICT 1:1 Ratio based on Viewport Width */
        width: 100%;
        height: 100vw !important;
        /* Forces height to exactly match width (Square) */
        min-height: 100vw !important;
        aspect-ratio: 1 / 1;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 1rem;
        /* Reduce padding to ensure plenty of room for text */

        /* Background Configuration */
        /* Background Configuration */
        background-color: transparent !important;
        /* Ensure no grey background leaks */
        background-image: url('/Media/backgrounds/hero_v2.png') !important;
        background-size: cover !important;
        background-position: right center !important;
        /* Fix to Right */
        background-repeat: no-repeat !important;
    }

    /* Reset content positioning to standard flow */
    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: auto;
        padding: 0;
        z-index: 2;
    }

    /* Ensure overlay covers everything */
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(17, 24, 39, 0.5);
        /* Slightly lighter overlay to let image shine through? Keeping typical */
        z-index: 1;
    }





    /* Restoring text size to the original 'Desktop' size */
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-button {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

/* === STYLES FOR CUSTOM PRODUCT CARDS === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--medium-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #374151;
    /* Subtle border */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card a {
    text-decoration: none;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Makes link fill the card */
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    /* Use contain for book covers */
    padding: 1rem;
    background-color: white;
}

.product-content {
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    background-color: var(--primary-color);
    color: white;
    margin: 0 auto;
    /* Center the button */
}

/* Amazon links row (multi-per-line, wraps) */
.aff-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    /* space between items */
    margin: 1rem 0;
    padding: 0;
    list-style: none;
    /* harmless if you use <ul> */
}

.aff-links li {
    /* harmless if you use <div> */
    margin: 0;
    padding: 0;
}

.aff-links a {
    display: inline-flex;
    /* keeps each link as one pill */
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #374151;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    /* text doesn't break inside the pill */
    background: var(--medium-bg, #111827);
    color: var(--light-text, #e5e7eb);
}

.aff-links a:hover {
    border-color: var(--primary-color, #60a5fa);
}

.aff-links a img {
    height: 24px;
    /* small logo/thumb if you use images */
    width: auto;
    display: block;
    border-radius: 4px;
}

/* === CALCULATOR PAGE STYLES (v2) === */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.calculator-card {
    background-color: var(--medium-bg);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.calculator-card h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.calculator-card .description {
    font-size: 0.9rem;
    color: var(--medium-text);
    margin-top: -1rem;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allows wrapping on small screens */
}

.form-group label {
    font-weight: 500;
    flex-basis: 70px;
    /* Aligns the labels */
}

/* This is the fix for the input field width */
.form-group input[type="text"] {
    flex-grow: 1;
    max-width: 150px;
    /* Prevents the field from becoming too wide */
    background-color: var(--dark-bg);
    border: 1px solid #4b5563;
    border-radius: 6px;
    color: var(--light-text);
    padding: 0.75rem;
    font-size: 1rem;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.form-group span {
    color: var(--medium-text);
}

/* This is the new, modern button style */
.calculator-card .button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.calculator-card .button:hover {
    background-color: #2563eb;
    /* A slightly darker blue */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.calculator-card .button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* This styles the result area to look like a display */
.result-area {
    background-color: var(--dark-bg);
    border-radius: 8px;
    text-align: center;
    padding: 1rem;
    margin-top: 0.5rem;
}

.result-area .result {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.1;
}

.result-area p {
    margin: 0.25rem 0 0;
    color: var(--medium-text);
    font-size: 0.9rem;
}

/* === Content List Styling === */
/* Targets lists within your main content area */
.content-single-column ul {
    list-style-position: inside;
    /* Ensures bullets align with text */
    padding-left: 1.5rem;
    /* This adds the indentation */
    margin-bottom: 1rem;
    /* Adds some space after the list */
}

/* Adds vertical spacing between each bullet point for readability */
.content-single-column ul li {
    margin-bottom: 0.75rem;
}

/* === COACHING PAGE STYLES === */
.hero-text {
    text-align: center;
    margin: 2rem 0;
}

.hero-text h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--medium-text);
    max-width: 700px;
    margin: 0 auto;
}

.badge-container img {
    height: 100px;
    width: auto;
    max-width: 130px;
    /* The filter and opacity rules have been removed */
    transition: transform 0.2s ease-in-out;
}

.badge-container img:hover {
    transform: scale(1.05);
    /* Adds a nice zoom effect on hover */
}

/* On smaller screens, stack them vertically */
@media (max-width: 600px) {
    .badge-container {
        flex-direction: column;
    }
}

.coaching-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.coaching-option-card {
    background-color: var(--medium-bg);
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.coaching-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.coaching-option-card h3 {
    font-size: 1.75rem;
    margin: 1.5rem 1.5rem 0.5rem;
}

.coaching-option-card p {
    color: var(--medium-text);
    margin: 0 1.5rem 1.5rem;
    flex-grow: 1;
    /* Pushes list to the bottom */
}

.coaching-option-card ol {
    list-style: none;
    counter-reset: custom-counter;
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

.coaching-option-card ol li {
    counter-increment: custom-counter;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.coaching-option-card ol li::before {
    content: counter(custom-counter);
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Responsive stacking for mobile */
@media (max-width: 768px) {
    .coaching-options-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* === 7. LEGACY HOMEPAGE FIXES (v2.4) === */
.center {
    display: grid;
    /* Default to 1 column for mobile */
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    margin-top: 2rem;
    text-align: center;
    max-width: 800px;
    /* Constrained width for good margins */
    margin-left: auto;
    margin-right: auto;
}

/* Force 2 columns on tablet/desktop */
@media (min-width: 768px) {
    .center {
        grid-template-columns: 1fr 1fr;
    }
}

img.blogpics {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: 1px solid #374151;
}

img.blogpics:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.indexMessage2 {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
}

/* Handle legacy tag h22 */
h22,
.indexMessage2 h22 {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    color: var(--light-text);
}

.indexLink a {
    color: #38bdf8 !important;
    /* Very bright Cyan/Sky Blue */
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: underline;
}

a {
    color: #38bdf8;
    /* Global bright link color */
}

/* === 8. COACHING BADGE FIXES === */
.coaching-top-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.coaching-intro-text {
    flex: 1;
    min-width: 300px;
}

.coaching-intro-text h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.badge-container {
    flex: 1;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    /* Align right on desktop */
    align-items: center;
    flex-wrap: wrap;
}

.badge-container img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    /* transition already set in line 890 */
    border-radius: 50%;
    /* Make them round as requested */
    background-color: white;
    /* Add white bg if transparent */
    padding: 5px;
    /* Padding inside the circle */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Specific fix for Primal badge if it's not square/round natively */
.badge-container img[alt="Primal Health Coach"] {
    /* Primal badge might look weird if forced round if it's a shield */
    /* But user said "should be round". Let's suppress border-radius if it looks bad? */
    /* No, let's keep it consistent. */
    width: 100px;
    height: 100px;
}

@media (max-width: 768px) {
    .coaching-top-section {
        flex-direction: column-reverse;
        /* Put badges on top? Or bottom? Standard stack order usually text first */
        flex-direction: column;
    }

    .badge-container {
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
}

/* === 9. ABOUT US PAGE FIXES === */
.about-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: 1000px;
    /* Constrain width */
    margin-left: auto;
    margin-right: auto;
}

.about-logo {
    flex: 0 0 250px;
    /* Fixed width for logo area */
    text-align: center;
}

.about-logo img {
    width: 100%;
    max-width: 250px;
    /* Constrain the big logo */
    height: auto;
}

.about-intro {
    flex: 1;
    min-width: 300px;
}

.team-section {
    margin-top: 3rem;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.team-member {
    flex: 1 1 350px;
    max-width: 500px;
    background-color: var(--medium-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #374151;
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
}

.team-bio {
    padding: 2rem;
}

.team-bio h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.team-bio p {
    color: var(--light-text);
    font-size: 1rem;

    line-height: 1.6;
    margin-bottom: 1rem;
}

/* === 10. VIDEO PAGE FIXES === */
.col-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-bottom: 4rem;
}

/* Main Videos Overview Cards */
.col {
    background-color: var(--medium-bg);
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.col:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.col a {
    text-decoration: none;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.col h7,
.col h2 {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    padding: 1rem 1rem 1.25rem;
    margin: 0;
}

.col img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #000;
}

.col p {
    padding: 0 1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--medium-text);
    flex-grow: 1;
    /* Push bottom border down */
}

/* Individual Video Watch Cards */
.colvideo {
    background-color: var(--medium-bg);
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.colvideo iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-bottom: 1px solid #374151;
}

.colvideo p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--light-text);
    font-size: 1rem;
}

.colvideo p:first-of-type {
    padding-top: 1.5rem;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

/* === 11. RESOURCES PAGE FIXES === */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.resource-card {
    background-color: var(--medium-bg);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.resource-card h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--light-text);
    font-weight: 500;
}

.resource-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
    align-self: flex-start;
    /* items align to start of flex column */
    margin-top: auto;
    /* Pushes button to bottom if height varies */
}

.resource-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.resource-button i {
    margin-left: 5px;
}

/* === 7. NEW SIDEBAR WIDGET STYLES (Search & Archive) === */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.blog-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #4b5563;
    border-radius: 6px;
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-size: 0.95rem;
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-text);
    pointer-events: none;
}

.blog-search-results {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #374151;
}

.search-results-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--medium-text);
    margin-bottom: 0.5rem;
}

.clear-search-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: transparent;
    border: 1px dashed var(--medium-text);
    color: var(--medium-text);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.clear-search-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Accordion Styles */
.year-group {
    border-bottom: 1px solid #374151;
}

.year-group:last-child {
    border-bottom: none;
}

.year-summary {
    padding: 1rem 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--light-text);
    list-style: none;
    /* Remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.year-summary::-webkit-details-marker {
    display: none;
}

.year-summary::after {
    content: '+';
    font-weight: bold;
    color: var(--primary-color);
}

details[open] .year-summary::after {
    content: '-';
}

.year-content {
    padding-left: 0.5rem;
    padding-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

.month-group {
    margin-bottom: 1rem;
}

.month-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    /* Changed from medium-text to primary for better visibility in hierarchy */
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    padding-left: 0.5rem;
    border-left: 2px solid #374151;
}

.month-list {
    list-style: none;
    padding-left: 0.75rem;
}

.month-list li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.month-list a {
    color: var(--medium-text);
    text-decoration: none;
    transition: color 0.2s;
}

.month-list a:hover {
    color: var(--light-text);
    padding-left: 3px;
    /* subtle shift */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 5c. About Us Page Styles --- */

/* About Hero */
.about-hero {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('Media/backgrounds/hero_v2.png');
    background-size: cover;
    background-position: center;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 0 0 12px 12px;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.about-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--medium-text);
    line-height: 1.6;
}

/* Introduction Section */
.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.mission-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.team-card {
    background-color: var(--medium-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 450px;
    /* Prevent cards from becoming huge */
    margin: 0 auto;
    /* Center in grid cell */
    width: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.team-photo {
    width: 100%;
    /* height: 350px; REMOVED fixed height to prevent cropping */
    aspect-ratio: 4/3;
    /* Matches the natural aspect ratio of the photos */
    overflow: hidden;
    position: relative;
    background-color: var(--dark-bg);
    /* Fallback */
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures the WHOLE image fits (important for 'before/after' comparison) */
    object-position: center;
    transition: transform 0.3s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.03);
}

.team-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-content .role {
    font-size: 0.9rem;
    color: var(--medium-text);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    flex-grow: 1;
}

.team-social {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid #374151;
    padding-top: 1rem;
}

.team-social a {
    color: var(--medium-text);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.team-social a:hover {
    color: var(--primary-color);
}

/* Responsiveness for About Page */
@media (max-width: 768px) {
    .about-mission {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-hero {
        padding: 4rem 1rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }
}

/* --- 5d. Coaching Page Styles --- */

.badge-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.badge-row img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s;
}

.badge-row img:hover {
    transform: scale(1.1);
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
    text-align: center;
}

.cta-button:hover {
    background-color: #2563EB;
    /* Slightly darker blue */
    color: white;
    transform: translateY(-2px);
}

.cta-button.big-cta {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

.team-card.coaching-card .role {
    color: var(--light-text);
    opacity: 0.9;
}

/* === Theme Toggle === */
/* === Theme Toggle === */
.theme-toggle {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    /* Reduced padding */
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    /* Use flex to align icon */
    align-items: center;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(15deg);
}


/* === Mobile Menu Embedded Search === */
.mobile-only-search {
    display: none !important;
    /* STRICTLY hidden by default (Desktop) */
    padding: 1rem 1.5rem 0.5rem;
    width: 100%;
}

.menu-search-wrapper {
    position: relative;
    width: 100%;
}

.menu-search-wrapper input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #4b5563;
    background-color: var(--dark-bg);
    color: white;
    font-size: 16px;
    /* No auto-zoom */
    margin-bottom: 0.5rem;
}

.menu-search-wrapper input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.menu-search-results {
    /* No absolute positioning to let it flow in menu */
    width: 100%;
}

.menu-search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Slight contrast background */
    border-radius: 4px;
}

.menu-search-results li {
    padding: 0.75rem;
    border-bottom: 1px solid #374151;
}

.menu-search-results li:last-child {
    border-bottom: none;
}

.menu-search-results a {
    color: var(--primary-color) !important;
    /* Override menu link colors */
    font-weight: bold;
    font-size: 1rem;
    padding: 0 !important;
    /* Override menu styling */
    display: block;
    margin-bottom: 0.25rem;
}

.menu-search-results p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.3;
}

/* Show only on mobile when menu is active */

/* === Responsive Helper Classes === */
/* Default (Desktop) State */
.mobileshow {
    display: none !important;
}

.mobile {
    display: block !important;
}

/* Mobile State */
@media (max-width: 768px) {
    .mobileshow {
        display: block !important;
        width: 100%;
        height: auto;
    }

    .mobile {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .mobile-only-search {
        display: block;
    }
}

/* === Slideshow Component Styles === */
.slide-container {
    position: relative;
    max-width: 600px;
    /* Narrower width for desktop as requested */
    margin: 2rem auto;
    background-color: var(--medium-bg);
    /* Adaptive: White in Light Mode, Dark in Dark Mode */
    aspect-ratio: 4 / 3;
    /* 4:3 matches standard photos better than 16:9 */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure slide wrapper fills the container */
[class*="mySlides"] {
    width: 100%;
    height: 100%;
    text-align: center;
    /* Helper for centering if display is block */
}

/* Ensure images fit nicely without stretching */
.slide-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
    /* Changed from 0 to 0 auto */
    border-radius: 0;
}

/* Navigation Buttons (Arrow Circles) */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Start with true center */
    width: 48px;
    height: 48px;
    color: #000;
    /* Black arrow for contrast on light circle */
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 50%;
    /* Circle shape as requested */
    background-color: rgba(255, 255, 255, 0.4);
    /* Light background to stand out on dark slides */
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-decoration: none;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover,
.next:hover {
    background-color: rgba(255, 255, 255, 0.9);
    /* Solid white on hover */
    color: var(--primary-color);
}

/* Light Mode Specific Override - Distinct Grey Background */
[data-theme="light"] .slide-container,
[data-theme="light"] [class*="mySlides"] {
    background-color: #d1d5db !important;
    /* Visible Grey (Gray 300) to frame image */
}

/* Force Update v3.12 - Tighter Image Constraints & Disabled Autoplay */