/* NEW, CLEAN about_styles.css
    This file forcefully applies base styles from styles.css to the header/footer
    to correct sizing and visual layout, and contains the page-specific content styles.
*/

:root {
    /* About-page specific variables */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, #1a2d5a 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-green) 0%, #4a6d2f 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(35, 62, 125, 0.85) 0%, rgba(92, 127, 57, 0.75) 100%);
    /* Inherited/Overridden variables */
    --primary-blue: #233E7D;
    --primary-green: #5C7F39;
    --light-gray: #DADADA;
    --white: #ffffff;
    --dark-text: #333333;
    --description-text: #242C39;
    --border-radius: 8px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --box-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-heading: Arial, sans-serif;
    --font-body: Georgia, serif;
}

/* ---
    ==========================================================================
    HEADER & FOOTER OVERRIDES (FORCE STYLES.CSS LOOK AND FEEL)
    ==========================================================================
*/

/* --- HEADER FIXES (Enforcing Size/Position/Alignment) --- */

header {
    /* Re-enforcing base position/size from styles.css */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-family: var(--font-heading);
}

.header-container {
    /* CRITICAL: Horizontal layout and spacing. This is the main row. */
    display: flex;
    /* Use space-between to push the two groups (Logo/Nav/CTA) apart */
    justify-content: space-between; 
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px; 
    margin: 0 auto;
    position: relative;
    transition: padding 0.3s ease;
}

nav {
    /* FIX: Allow navigation to sit next to the logo. */
    flex-grow: 1; 
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    /* FIX: Remove auto margin to close the gap between logo and links */
    margin-left: 0; 
}

nav ul {
    /* Desktop list layout */
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.5rem; /* Spacing between standard menu items */
    align-items: center;
    width: auto; 
    flex-grow: 1; /* Allows the UL to push its last item using auto margin */
}

/* FINAL FIX: Pushes the CTA list item to the far right of the UL */
@media (min-width: 993px) {
    .desktop-cta-li {
        /* CRITICAL: This breaks the flow of the UL and forces the item to the right edge */
        margin-left: auto !important; 
        display: list-item !important; 
        flex-shrink: 0; 
    }
}


/* 1. Dropdown Toggle Styling (From styles.css) */
.dropdown > .dropdown-toggle {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    font-family: var(--font-heading);
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
    font-size: 1rem;
    display: flex;
    align-items: center;
    /* Reset button styles */
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* 2. CRITICAL FIX: Remove the redundant arrow added by Bootstrap */
.dropdown > .dropdown-toggle::after {
    content: none !important;
    display: none !important;
}

/* 3. Dropdown Link Hover Underline (FROM styles.css) */
.dropdown > .dropdown-toggle::before { 
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    transition: width 0.3s ease;
}
.dropdown > .dropdown-toggle:hover::before,
.dropdown > .dropdown-toggle:focus::before {
    width: 100%;
}

/* 4. Dropdown Chevron Icon (FROM styles.css) - Makes the caret visible and centered */
.dropdown > .dropdown-toggle .fa-chevron-down {
    margin-left: 6px;
    font-size: 0.7rem; 
    transition: transform 0.3s ease;
    color: var(--primary-blue);
    width: 10px;
    display: inline-block;
    text-align: center;
    flex-shrink: 0;
}

/* 5. Dropdown Icon Rotation (FROM styles.css) */
.dropdown.active > .dropdown-toggle .fa-chevron-down,
.dropdown > .dropdown-toggle:hover .fa-chevron-down,
.dropdown > .dropdown-toggle:focus .fa-chevron-down {
    transform: rotate(180deg);
    color: var(--primary-green);
}

/* Dropdown Content - Adopted from styles.css */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1; 
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* --- FOOTER FIXES (Enforcing Size/Position from styles.css) --- */

/* Footer Content Grid (FROM styles.css) */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.5fr;
    gap: 60px;
    align-items: start;
    padding: 0 20px 40px;
    border-bottom: 1px solid var(--light-gray);
}

/* --- MOBILE STYLES (Enforcing styles.css Mobile Behavior) --- */

@media (max-width: 992px) {
    /* Mobile Navigation Container */
    .header-container { justify-content: space-between; gap: 0; }
    .menu-toggle { display: flex; order: 3; z-index: 1011; }
    
    /* Ensure the entire Nav is styled for mobile slide-in */
    nav { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh; 
        padding: 80px 5% 1rem 5%; flex-direction: column; align-items: stretch; 
        justify-content: flex-start; order: 3; transform: translateX(-100%); 
        transition: transform 0.3s ease; z-index: 1010; 
        margin-left: 0; /* Remove desktop auto margin */
    }
    
    .desktop-cta-li { 
        display: none !important; /* Force hide desktop CTA in mobile view */
        margin-left: 0 !important;
    } 
    
    /* Mobile Dropdown Styling */
    .dropdown-toggle { 
        padding: 0.8rem 0; 
    }
    
    /* Dropdown Content on Mobile (Collapsible) */
    .dropdown-content { 
        position: static; box-shadow: none; background-color: transparent; 
        padding: 0; min-width: auto; opacity: 1; transform: none; 
        transition: max-height 0.3s ease; border-radius: 0; display: block; 
        max-height: 0; overflow: hidden; margin-bottom: 0; z-index: 1;
    }
    .dropdown.active .dropdown-content { max-height: 500px; }
    .dropdown-content a { padding: 0.5rem 0 0.5rem 20px; }

    /* Footer Responsiveness */
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

/* --- ABOUT PAGE CONTENT STYLES (RETAINED) --- */
/* ... (All your hero and page content styles below this line are unchanged) ... */

.main-content.about-page {
    padding-top: 0;
}

.main-content.about-page .page-wrapper {
    display: flex;
    flex-direction: column;
}

/* Base Padding & Container Styles */
.padding-global {
    padding-left: 5%;
    padding-right: 5%;
}

.padding-section-large-copy {
    padding-top: 100px;
    padding-bottom: 100px;
}

.padding-section-large-copy.is-header {
    padding-top: 0;
}

/* === ENHANCED: Hero Cover Section (Background Image) === */
.header_about {
    background-image: url('../images/about_us.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    height: 65vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.header_about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-about-component {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero-about-top-content-wrapper {
    opacity: 1;
}

.hero-about-top-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-about-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
    font-family: var(--font-heading);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-about-content .subtitle {
    font-size: 1.4rem;
    color: var(--white);
    font-family: var(--font-body);
    font-style: italic;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* === ENHANCEMENT: Icon Lead and Bullet Lists === */

.section-icon-lead {
    font-size: 3rem; /* Large icon size */
    margin-bottom: 20px;
    display: inline-block;
    /* Apply gradient text color to the icon */
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.brix---paragraph-summary {
    font-size: 1.15rem;
    color: var(--description-text);
    line-height: 1.8;
    font-family: var(--font-body);
    margin-bottom: 30px; /* Space before the bullet list */
    font-weight: 700; /* Make the summary bold/stand out */
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    font-size: 1.1rem;
    color: var(--description-text);
    line-height: 1.6;
    font-family: var(--font-body);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    text-align: left; /* Ensure list items are left-aligned */
}

.check-list li .fa-check-circle {
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.2rem;
    /* Apply gradient to the checkmark icon */
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* === Alternating Content Blocks (Who We Are, Mission, Vision) === */
.brix---section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Ensure the Who We Are section title is centered and placed correctly */
#who-we-are .heading-29 {
    margin-bottom: 40px;
}


/* Enhanced Container System - Kept for reference, but Bootstrap .container-* is now used */
.container-large {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.brix---container-default-2,
.w-layout-blockcontainer.rt-component-container-8.w-container,
.value-component {
    /* These are now enhanced by .container-xl in the HTML */
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

.brix---inner-container-1000px-center {
    /* This class was removed from the HTML, as .container-xl handles it */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}


/* --- UPDATED FONT SIZES --- */
.heading-29 {
    font-size: 3rem; /* WAS: clamp(2.5rem, 5vw, 3.5rem) */
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 60px;
    font-family: var(--font-heading);
    font-weight: 800;
    position: relative;
}

/* MODIFICATION: Removed heading underline */
.heading-29::after {
    display: none;
}

.bold-text-45-copy {
    font-weight: 800;
}

/* --- Content Block Grid Styles --- */

.brix---link-content {
    /* This class was removed from the HTML */
    text-decoration: none;
    display: block;
    color: inherit;
    opacity: 1;
    transition: var(--transition);
}

.brix---link-content:hover {
    transform: none;
}

.brix---color-neutral-800 {
    margin-bottom: 25px;
}

/* --- UPDATED FONT SIZES --- */
.heading-27, .heading-28 {
    font-size: 2.5rem; /* WAS: clamp(2rem, 4.5vw, 3.2rem) */
    color: var(--primary-blue);
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
    text-align: center;
}


/* MODIFICATION: Removed heading underline */
.heading-27::after, .heading-28::after {
    display: none;
}

.bold-text-61 {
    font-weight: 800;
}

.brix---mg-bottom-32px {
    margin-bottom: 40px;
}

.brix---paragraph-default {
    /* Retained for backward compatibility/flexibility but replaced by .brix---paragraph-summary in HTML */
    font-size: 1.15rem;
    color: var(--description-text);
    line-height: 1.8;
    font-family: var(--font-body);
    margin-bottom: 2rem;
    text-align: left;
}

/* === CONSISTENT IMAGE SIZING ACROSS ALL SECTIONS === */
.brix---image-wrapper-br-24px-shadow {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.brix---image-wrapper-br-24px-shadow:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* Consistent image sizing for all sections */
.brix---image {
    display: block;
    width: 100%;
    height: 450px; /* Fixed height for desktop */
    object-fit: cover; /* Ensures images fill space without distortion */
    transition: transform 0.5s ease;
}

.brix---image-wrapper-br-24px-shadow:hover .brix---image {
    transform: scale(1.08);
}

/* Guiding Principles specific image - make consistent with others */
.lynx-image-slide {
    width: 100%;
    height: 450px; /* Match other sections */
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
}

.lynx-image-slide:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
/* --- END: Content Block Grid Styles --- */


/* === ENHANCED: Values Section (Preserved) === */
.section-value {
    padding: 120px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.section-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.03"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.padding-section-medium {
    padding-top: 80px;
    padding-bottom: 80px;
}

.value-component {
    /* Now also has .container-xl */
    position: relative;
    z-index: 2;
}

.value-top-content {
    opacity: 1;
    text-align: center;
    margin-bottom: 80px;
}

/* --- UPDATED FONT SIZES --- */
.heading-style-h2-copy {
    font-size: 3rem; /* WAS: clamp(2.5rem, 5vw, 3.5rem) */
    color: var(--white);
    text-align: center;
    margin-bottom: 80px;
    font-family: var(--font-heading);
    font-weight: 800;
    position: relative;
}

/* MODIFICATION: Removed heading underline */
.heading-style-h2-copy::after {
    display: none;
}

.value-card {
    /* MODIFICATION: Center content and set minimum size for better proportioning */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    text-align: center; /* Centers text */
    /* Set a minimum height for visual medium card size consistency */
    min-height: 380px;
    height: 100%; /* Works with .d-flex on the .col-lg-4 parent */

    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 40px 35px;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    opacity: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* MODIFICATION: Removed top gradient line */
.value-card::before {
    display: none;
}

.value-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
    background: var(--white);
}

.value-card-icon {
    /* MODIFICATION: Applied primary-blue/green gradient for flat icon */
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));

    width: 80px;
    height: 80px;
    /* MODIFICATION: Centered margin */
    margin: 0 auto 20px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(35, 62, 125, 0.3);
    flex-shrink: 0;
}

/* IMPORTANT: Removed the ::before content placeholder as HTML uses <i class="fas fa-..."></i> */
.value-card-icon::before {
    content: none;
}

.value-card-icon .fas {
    /* Ensure the Font Awesome icon inside the container is sized and colored correctly */
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.value-card:hover .value-card-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(35, 62, 125, 0.4);
}

.heading-23 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    /* MODIFICATION: Increased margin-bottom to move text down */
    margin-bottom: 25px;
    
    font-family: var(--font-heading);
    font-weight: 700;
    /* MODIFICATION: Allow header to wrap (line-height is critical for 2-line clarity) */
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    min-height: 2.6rem; /* Ensures space for two lines */
    
    /* FIX: Force max-width to guarantee the line break on larger screens */
    max-width: 90%;
    width: 100%;
}

/* NEW WRAPPER: Use this class inside .value-card to contain the heading and description. */
.value-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding-top: 15px;
}

.text-size-regular {
    font-size: 1.1rem;
    color: var(--description-text);
    line-height: 1.7;
    font-family: var(--font-body);
    margin-bottom: 0;
    
    /* FIX: Set height to auto and overflow to visible to show ALL text */
    height: auto;
    overflow: visible;
    
    /* Text within the value card remains centered */
    text-align: center;
    /* Prevent text from growing beyond the set height to keep cards proportional */
    flex-grow: 0;
}
/* --- END: Values Section --- */


/* === Guiding Principles Section === */
.guiding-principles-section {
    background-color: var(--white);
    padding: 100px 0;
    overflow: hidden;
}

/* --- UPDATED FONT SIZES --- */
.lynx-heading-4 {
    font-size: 3rem; /* WAS: clamp(2.5rem, 5vw, 3.5rem) */
    color: var(--primary-blue);
    text-align: center;
    margin: 0 0 80px;
    padding: 0 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    position: relative;
}

/* MODIFICATION: Removed heading underline */
.lynx-heading-4::after {
    display: none;
}

.bold-text-24 {
    font-weight: 800;
}

.main-wrapper .padding-global {
    padding-top: 50px;
    padding-bottom: 50px;
}

.lynx-block-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.paragraph-7 {
    /* Retained for backward compatibility/flexibility but mostly replaced by .brix---paragraph-summary in HTML */
    font-size: 1.15rem;
    color: var(--description-text);
    line-height: 1.8;
    font-family: var(--font-body);
    margin-bottom: 2.5rem;
    text-align: left;
}

.paragraph-7 br {
    content: "";
    display: block;
    margin-bottom: 1em;
}

/* Enhanced Principles List (Retained/Unused) */
.principles-list {
    list-style: none;
    padding: 0;
    margin: 3rem 0;
}

.principles-list li {
    padding: 20px 0 20px 50px;
    margin-bottom: 20px;
    position: relative;
    font-size: 1.15rem;
    color: var(--description-text);
    font-family: var(--font-body);
    line-height: 1.7;
    border-left: 4px solid var(--primary-green);
    background: rgba(92, 127, 57, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: var(--transition);
    text-align: left;
}

.principles-list li:hover {
    background: rgba(92, 127, 57, 0.08);
    transform: translateX(8px);
}

.principles-list li::before {
    content: '✓';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.4rem;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === START: Betti Animation & Amazon-Style Headings (KEPT) === */

/* Make section headings consistent */
.lynx-heading-4 {
    font-size: 3rem; /* WAS: clamp(2.5rem, 5vw, 3.5rem) */
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 60px; /* Was 80px, matching heading-29 */
    font-family: var(--font-heading);
    font-weight: 800;
    position: relative;
}

/* Make feature headings bigger (Amazon-style) */
/* This rule is now duplicated by the one above, but we keep the .heading-27, .heading-28 part */
.heading-27, .heading-28 {
    font-size: 2.5rem; /* WAS: clamp(2rem, 4.5vw, 3.2rem) */
    line-height: 1.3;
    padding-bottom: 25px; /* More space */
    /* Other properties inherited from the rule above */
}

/* Style for "Betti" */
.betti-static {
    /* Using the green for contrast */
    color: var(--primary-green);
}

/* Container for the animated words */
.betti-animated-container {
    display: inline-block;
    position: relative;
    vertical-align: bottom; /* Aligns text better */
    height: calc(1.3em); /* Match the line-height of the heading */
    overflow: hidden;
    width: 300px; /* Give it space */
    color: var(--primary-green); /* Color for the animated words */
}

/* This is the inner list that will slide */
.betti-animated-container .betti-animated-word {
    display: block;
    height: 100%;
    line-height: 1.3em;
    text-align: left;
    position: absolute;
    width: 100%;
    top: 0;
    opacity: 0;
    animation: bettiRotate 9s cubic-bezier(0.23, 1, 0.32, 1) infinite;
    /* 3 words, 3s each */
}

/* Stagger the animations */
.betti-animated-word:nth-child(1) {
    animation-delay: 0s;
}
.betti-animated-word:nth-child(2) {
    animation-delay: 3s;
}
.betti-animated-word:nth-child(3) {
    animation-delay: 6s;
}
/* The 4th is a loop of the 1st, so it needs the same delay as the animation duration */
.betti-animated-word:nth-child(4) {
    animation-delay: 9s;
}

@keyframes bettiRotate {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    5%, 28% { /* Come in, hold */
        transform: translateY(0);
        opacity: 1;
    }
    33% { /* Go out */
        transform: translateY(-50px);
        opacity: 0;
    }
    100% { /* Stay out */
        opacity: 0;
    }
}

/* === END: Betti Animation & Amazon-Style Headings === */


/* --- ABOUT PAGE CONTENT RESPONSIVE STYLES (RETAINED) --- */

@media (min-width: 993px) {
    .value-text-block .text-size-regular {
        height: auto;
    }
}

@media (max-width: 992px) {
    /* --- Mobile Overrides (All content blocks stack) --- */
    
    /* General Text Readability */
    .brix---paragraph-default, .brix---paragraph-summary, .paragraph-7, .check-list li {
        text-align: left;
        text-align-last: left;
    }

    .header_about {
        margin-top: 75px;
        height: 70vh;
        min-height: 500px;
    }

    .hero-about-component {
        padding: 40px 30px;
        margin: 0 30px;
    }

    .hero-about-content h1 {
        font-size: 3rem;
    }

    .heading-29, .heading-style-h2-copy, .lynx-heading-4 {
        font-size: 2.8rem;
    }
    
    .brix---image-wrapper-br-24px-shadow {
        max-width: 550px;
        margin: 0 auto;
    }

    /* Consistent image sizing for tablet */
    .brix---image,
    .lynx-image-slide {
        height: 400px; /* Slightly smaller on tablet */
    }

    .heading-27, .heading-28 {
        font-size: 2.2rem;
        text-align: center; /* Centering headings on mobile is good */
    }

    .value-card {
        min-height: auto;
        height: auto;
        padding: 40px 30px;
        align-items: center;
        text-align: center;
    }
    .value-card-icon {
        margin: 0 auto 20px auto;
    }
    .value-text-block .text-size-regular {
        height: auto;
        text-align: center;
    }
    
    .guiding-principles-section {
        padding: 80px 0;
    }

    /* Responsive animation */
    .betti-animated-container {
        display: block; /* Stack on mobile */
        width: auto;
        margin-top: 10px;
        height: calc(1.3em);
    }
    
    /* Footer responsiveness */
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .header_about {
        height: 60vh;
        min-height: 450px;
    }

    .guiding-principles-section {
        padding: 60px 0;
    }

    .hero-about-component {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .hero-about-content h1 {
        font-size: 2.5rem;
    }

    .heading-29, .heading-style-h2-copy, .lynx-heading-4 {
        font-size: 2.2rem;
    }

    .heading-27, .heading-28 {
        font-size: 1.9rem;
    }
    
    .section-icon-lead {
        font-size: 2.5rem;
    }

    .lynx-heading-4 {
        margin-bottom: 60px;
    }

    /* Consistent image sizing for mobile */
    .brix---image,
    .lynx-image-slide {
        height: 350px; /* Smaller on mobile */
    }

    .value-card {
        padding: 40px 25px;
    }

    .brix---section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .header_about {
        height: 55vh;
        min-height: 400px;
    }

    .hero-about-content h1 {
        font-size: 2rem;
    }

    .heading-29, .heading-style-h2-copy, .lynx-heading-4 {
        font-size: 1.9rem;
    }

    .heading-27, .heading-28 {
        font-size: 1.6rem;
    }

    .brix---paragraph-summary, .text-size-regular, .paragraph-7, .check-list li {
        font-size: 1.05rem;
    }
    
    .check-list li {
        padding-left: 25px;
    }

    .check-list li .fa-check-circle {
        font-size: 1.1rem;
    }

    .section-icon-lead {
        font-size: 2rem;
    }

    /* Consistent image sizing for small mobile */
    .brix---image,
    .lynx-image-slide {
        height: 300px; /* Smallest on mobile */
    }

    .value-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .principles-list li {
        padding: 16px 0 16px 45px;
        font-size: 1.05rem;
    }

    .guiding-principles-section {
        padding: 60px 0;
    }
}

/* --- NEW STORY-DRIVEN SECTION STYLES (RETAINED) --- */

/* Align section headings left on desktop */
@media (min-width: 992px) {
    .heading-29.text-lg-start,
    .heading-27.text-lg-start,
    .heading-28.text-lg-start {
        text-align: left !important;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .heading-27.text-md-start {
        text-align: left !important;
    }
}

/* === SECTION 2: "Our Mission" (Feature Card) === */
.card-img-overlay {
    position: relative;
    padding: 3rem;
}

/* Custom dark overlay for the card */
.card-overlay-dark {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    opacity: 0.85;
    z-index: 1;
    border-radius: inherit;
}

/* Content wrapper */
.overlay-content {
    position: relative;
    z-index: 2;
}

/* Override text colors for the dark background */
.card-img-overlay .heading-28,
.card-img-overlay .brix---paragraph-summary {
    color: var(--white);
}

.card-img-overlay .brix---paragraph-summary {
    opacity: 0.95;
}

/* Create a "light" version of the check-list for dark backgrounds */
.check-list-light li {
    color: var(--white);
}

.check-list-light li .fa-check-circle {
    /* Make the checkmark a solid, bright color */
    background: var(--white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Make sure the light checklist is not centered anymore */
.check-list-light.mx-auto {
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Responsive padding for the card */
@media (max-width: 768px) {
    .card-img-overlay {
        padding: 2rem;
    }
}