/* ============================================
   GREENSTONE MORTGAGES - OPTIMIZED CSS
   ============================================
   Optimized for performance and maintainability:
   - All colors use CSS variables
   - No inline styles
   - Optimized animations (transform/opacity)
   - Merged duplicate selectors
   - Removed unnecessary !important
   ============================================ */

/* ============================================
   SMOOTH SCROLLING - Global
   ============================================ */
html,
body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll on mobile/tablet */
@media (max-width: 992px) {
    body {
        overflow-x: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    html,
    body {
        scroll-behavior: auto;
    }
}

/* ============================================
   CORE WEB VITALS OPTIMIZATIONS
   ============================================ */

/* Prevent layout shift - Reserve space for images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Optimize font loading - fonts loaded via Google Fonts URL in functions.php */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans 3';
    font-display: swap;
}

/* Reduce layout shift for hero image */
.hero-image img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

/* Optimize rendering */
* {
    will-change: auto;
}

/* Content visibility for below-fold content (exclude grid/card sections — breaks layout sizing) */
@media (prefers-reduced-motion: no-preference) {
    section:not(:first-of-type):not(.life-insurance-help) {
        content-visibility: auto;
        contain-intrinsic-size: 400px;
    }
}

/* ============================================
   CSS VARIABLES - Design tokens (fonts, colors, spacing, breakpoints)
   Use these everywhere for consistency and responsive overrides.
   ============================================ */
:root {
    /* Breakpoints (reference only; use same values in @media) */
    --bp-xs: 360px;
    --bp-sm: 480px;
    --bp-md: 576px;
    --bp-lg: 768px;
    --bp-xl: 992px;
    --bp-xxl: 1200px;
    --bp-full: 1400px;

    /* Primary Colors */
    --primary-green: #556B2F;
    --primary-green-dark: #4a5d23;
    --primary-green-light: #6B8E23;
    --cream-bg: #D8CAB8;
    --cream-bg-rgba: rgba(216, 202, 184, 0.2);
    --text-color: #2E2E2E;
    --accent-red: #800020;
    --scroll-red: #DC2626;
    --white: #FFFFFF;
    --light-gray: #F5F5F0;
    --border-color: #ddd;
    --border-gray: #e9ecef;
    --bg-gray: #f8f9fa;
    --bg-gray-hover: #f0f0f0;
    --text-gray: #333;
    --black: #000000;

    /* Shadow Colors */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.25);
    --shadow-strong: rgba(0, 0, 0, 0.40);
    --shadow-green: rgba(85, 107, 47, 0.25);
    --shadow-green-dark: rgba(85, 107, 47, 0.3);
    --shadow-red: rgba(128, 0, 32, 0.25);

    /* Text Colors */
    --text-white: rgba(255, 255, 255, 0.8);
    --text-white-full: #FFFFFF;

    /* Accent Colors */
    --gold: #ffd700;
    --star-yellow: #ffc107;

    /* Font families */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-accent: 'Figtree', sans-serif;
    --font-figtree: var(--font-accent);

    /* Font sizes - base scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Line heights */
    --leading-tight: 1.2;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --spacing-xxl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;
    --spacing-5xl: 6rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* Responsive typography scale - override at breakpoints */
@media (max-width: 992px) {
    :root {
        --text-4xl: 2rem;
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
        --text-7xl: 3.5rem;
    }
}
@media (max-width: 768px) {
    :root {
        --text-2xl: 1.375rem;
        --text-3xl: 1.5rem;
        --text-4xl: 1.75rem;
        --text-5xl: 2rem;
        --text-6xl: 2.5rem;
        --text-7xl: 3rem;
    }
}
@media (max-width: 576px) {
    :root {
        --text-lg: 1rem;
        --text-xl: 1.125rem;
        --text-2xl: 1.25rem;
        --text-3xl: 1.375rem;
        --text-4xl: 1.5rem;
        --text-5xl: 1.75rem;
        --text-6xl: 2rem;
        --text-7xl: 2.25rem;
    }
}
@media (max-width: 480px) {
    :root {
        --text-base: 0.9375rem;
        --text-lg: 0.9375rem;
        --text-xl: 1rem;
        --text-2xl: 1.125rem;
        --text-3xl: 1.25rem;
        --text-4xl: 1.375rem;
        --text-5xl: 1.5rem;
        --text-6xl: 1.75rem;
        --text-7xl: 2rem;
    }
}
@media (max-width: 360px) {
    :root {
        --text-sm: 0.8125rem;
        --text-base: 0.875rem;
        --text-lg: 0.875rem;
        --text-xl: 0.9375rem;
        --text-2xl: 1rem;
        --text-3xl: 1.125rem;
        --text-4xl: 1.25rem;
        --text-5xl: 1.375rem;
        --text-6xl: 1.5rem;
        --text-7xl: 1.75rem;
    }
}

/* ============================================
   GLOBAL STYLES & UTILITIES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Override Bootstrap container - match live site width. Use variable for max-width. */
.container {
    max-width: var(--bp-full);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
}
@media (min-width: 576px) {
    .container { max-width: var(--bp-full); }
}
@media (min-width: 768px) {
    .container { max-width: var(--bp-full); }
}
@media (min-width: 992px) {
    .container { max-width: var(--bp-full); }
}
@media (min-width: 1200px) {
    .container { max-width: var(--bp-full); }
}
@media (min-width: 1400px) {
    .container { max-width: var(--bp-full); padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (max-width: 576px) {
    .container { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
}
@media (max-width: 480px) {
    .container { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
}
@media (max-width: 360px) {
    .container { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
}

/* Responsive: ensure main content doesn't overflow on small screens */
.site-main {
    max-width: 100%;
    overflow-x: hidden;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* AEO: hide FAQ question headings from view; keep in DOM for crawlers and screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Service card hover - use transform for performance */
.service-card:hover {
    transform: translateY(-0.625rem);
}

/* Temporary classes for JS-triggered press effects (no inline styles) */
.js-btn-press {
    transform: scale(0.95);
    transition: transform 0.15s ease;
}

.js-card-press {
    transform: scale(0.98);
    transition: transform 0.15s ease;
}

.gtm-iframe {
    display: none;
    visibility: hidden;
}

.testimonial-icon {
    color: var(--accent-red);
    font-size: 2rem;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-iframe {
    border: 0;
}

/* ============================================
   BASE STYLES
   ============================================ */
button, .btn {
    cursor: pointer;
    transition: all var(--transition-normal);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-color);
    background-color: var(--white);
}
/* Prevent accidental horizontal scroll from elements using 100vw or negative margins */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    padding: 0;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.navbar .container {
    background-color: var(--primary-green);
    border-radius: 16px;
    padding: 0.5rem 2rem;
    margin: 0rem auto;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--gold);
    max-width: 1400px;
}

/* Navbar brand logo area */
.navbar-brand {
    display: flex;
    align-items: center;
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
}

.navbar-brand i {
    margin-right: var(--spacing-sm);
    font-size: var(--text-xl);
}

.navbar-brand:hover {
    color: var(--white);
}

.navbar .nav-link {
    color: var(--text-white);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.25s ease;
    position: relative; 
    padding-bottom: 0.25rem; 
}

/* underline that grows from center to sides */
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 60%;
    height: 2px;
    background: var(--cream-bg);
    transition: transform 0.28s ease;
    border-radius: 2px;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--cream-bg);
    text-decoration: none;
    font-weight: 700;
    background: transparent; 
    box-shadow: none;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar .nav-link.active {
    color: var(--cream-bg);
    font-weight: 700;
}

/* Services dropdown */
.navbar .nav-item.dropdown .dropdown-toggle {
    cursor: pointer;
}
.navbar .dropdown-menu {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px var(--shadow-medium);
    padding: var(--spacing-sm) 0;
    margin-top: var(--spacing-xs);
    z-index: 1050;
}
.navbar .dropdown-item {
    color: var(--text-color);
    padding: var(--spacing-sm) var(--spacing-xl);
    font-weight: 500;
    transition: background-color var(--transition-base), color var(--transition-base);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--primary-green);
    color: var(--white);
}
.navbar .dropdown-item.active {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-custom {
    background-color: var(--white);
    border: none;
    color: var(--primary-green);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.btn-custom:hover {
    background-color: var(--white);
    color: var(--primary-green);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: var(--white);
    padding: 180px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}


.hero-title {
    font-size: var(--text-7xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
    line-height: var(--leading-tight);
}

.tag-pills {
    margin-bottom: 2rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pill {
    background-color: var(--white);
    color: var(--text-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 2px solid var(--border-gray);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal);
    box-shadow: 0 2px 5px var(--shadow-color);
}

.logo1 {
    max-width: 170px;
    height: auto;
}



.hero-image {
    margin: 2rem 0;
    position: relative;
    display: inline-block;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 10;
}
/* Hero ethos block */
.hero-ethos {
    margin-top: 2rem;
}

.hero-ethos h1,
.hero-ethos .hero-ethos-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: var(--text-5xl);
    margin: 0 0 var(--spacing-xl);
    color: var(--text-color);
    line-height: var(--leading-tight);
    text-align: center;
}

.hero-ethos p {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    color: var(--text-color);
    margin: 0 0 var(--spacing-lg);
    text-align: left;
}

.hero-ethos p:last-of-type {
    margin-bottom: 0;
}


@media (max-width: 768px) {
    .hero-ethos h1,
    .hero-ethos .hero-ethos-title {
        font-size: var(--text-4xl);
    }

    .hero-ethos p {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .hero-ethos h1,
    .hero-ethos .hero-ethos-title {
        font-size: var(--text-2xl);
    }
}



.btn-primary {
    border-radius: 16px;
    border: 2px solid var(--primary-green);
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 14px 0 var(--shadow-strong);
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: 0 4px 14px 0 var(--shadow-strong);
}

.btn-outline-custom {
    border-radius: 16px;
    border: 2px solid var(--primary-green);
    background: var(--white);
    box-shadow: 0 4px 14px 0 var(--shadow-strong);
    color: var(--primary-green);
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-custom:hover {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    box-shadow: 0 4px 14px 0 var(--shadow-strong);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background-color: var(--primary-green);
    padding: 96px 0;
    color: var(--white);
}

.services-section .section-title {
    color: var(--white);
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
}

.services-content {
    background-color: var(--white);
    padding: var(--spacing-3xl) var(--spacing-xxl);
    border-radius: var(--radius-xl);
    color: var(--text-color);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.subsection-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.subsection-text {
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.separator {
    height: 1px;
    background-color: var(--primary-green);
    width: 100%;
}

/* Standalone service pages (e.g. first-time-buyer.html) */
.service-page-section {
    min-height: 50vh;
    padding: 6rem 0 4rem;
}

.service-page-section .section-title {
    color: var(--text-color);
}

.service-page-section .lead {
    color: var(--text-color);
    font-size: 1.15rem;
}

.service-card {
    background-color: var(--cream-bg);
    padding: 2rem 1.75rem;
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid rgba(85, 107, 47, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.service-card-link:hover .service-card {
    transform: translateY(-0.5rem);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-green);
}

.service-icon {
    width: 52px;
    height: 52px;
    background-color: var(--accent-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 0 1.5rem;
    align-self: flex-start;
    font-size: 1.35rem;
    box-shadow: 0 3px 10px rgba(128, 0, 32, 0.35);
}

.service-card h5 {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Protection subsection: three cards in one row; match design layout */
#life-insurance-protection-cards .service-card-link {
    display: block;
    height: 100%;
}
#life-insurance-protection-cards .service-card {
    background-color: #dcd3bd;
    border-radius: 10px;
    border-width: 0;
    padding: 1.5rem 1.35rem 1.35rem;
    min-height: 11.5rem;
}
#life-insurance-protection-cards .service-icon {
    margin-bottom: 0;
}
#life-insurance-protection-cards .service-card h5 {
    margin-top: auto;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 1.15rem;
}

.services-section .btn-accent {
    padding: 1.15rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(128, 0, 32, 0.3);
}

.btn-accent {
    background-color: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
    transform: translateY(-0.2rem);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.2);
}

.services-section .btn-accent:hover {
    transform: translateY(-0.25rem);
}

/* ============================================
   ABOUT US SECTION
   ============================================ */
.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.advisor-card {
    background-color: var(--cream-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
}

/* About Us Slider Styles */
.about-section .carousel {
    position: relative;
}

.advisor-image {
    text-align: center;
    margin-bottom: 2rem;
}


.advisor-image img {
    width: 560px; 
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid var(--primary-green);
    display: block;
    margin: 0 auto;
}


.advisor-info {
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
}

.advisor-name {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.advisor-title {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.advisor-bio {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.social-icons {
    margin: 1.5rem 0;
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    text-align: center;
    line-height: 36px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--accent-red);
    color: var(--white);
    border-color: var(--accent-red);
    transform: translateY(-0.125rem);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--accent-red);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: var(--primary-green);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: var(--primary-green);
}

/* ============================================
   HOW WE HELP SECTION
   ============================================ */
.how-we-help-section {
    padding: 80px 0;
    background-color: var(--white);
}

.help-list {
    padding-right: 2rem;
}

.help-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.help-item-box {
    background-color: var(--cream-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.help-separator {
    height: 1px;
    background-color: var(--text-color);
    margin: 1rem 0;
    opacity: 0.3;
}

.help-icon {
    background-color: var(--accent-red);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.help-text h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.help-text p {
    color: var(--text-color);
    margin-bottom: 0;
}

.help-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */
.calculator-section {
    padding: 80px 0;
    background-color: var(--white);
}

.calculator-content {
    background-color: var(--primary-green);
    padding: 3rem;
    border-radius: 15px;
    color: black;
}

.calculator-content .form-label {
    color: var(--white);
    font-weight: 600;
}

.calculator-content .form-control {
    background-color: transparent;
    border: 0.0625rem solid var(--border-color);
    border-radius: 8px;
}

.calculator-content .input-group-text {
    background-color: var(--white);
    border: 0.0625rem solid var(--border-color);
    color: var(--text-color);
}

/* Shared primary CTA button (calculate / submit) */
.btn-calculate,
.btn-submit {
    background-color: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: border-color var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
    box-shadow: 0 4px 14px 0 var(--shadow-strong);
}

.btn-calculate:hover,
.btn-submit:hover {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: 0 4px 14px 0 var(--shadow-strong);
}

.calculator-form .form-control {
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.calculator-form .form-control:focus {
    border-color: white;
    box-shadow: 0 0 0 0.2rem var(--shadow-green);
}

.result-display,
.calculator-result-display {
    margin-top: 2rem;
}

/* Styled result card – headline amount + summary */
.calculator-result-display.hidden {
    display: none !important;
}

.calculator-result-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 10px 40px rgba(85, 107, 47, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(85, 107, 47, 0.2);
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-result-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(85, 107, 47, 0.15);
}

.calculator-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.calculator-result-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
    letter-spacing: -0.02em;
}

.calculator-result-body {
    text-align: center;
}

.calculator-result-amount-wrap {
    margin-bottom: 1.5rem;
}

.calculator-result-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.calculator-result-amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin: 0 0 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.calculator-result-disclaimer {
    font-size: 0.8125rem;
    color: var(--text-color);
    opacity: 0.85;
    margin: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-result-summary {
    text-align: left;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.calculator-result-summary-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.75rem;
}

.calculator-result-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9375rem;
}

.calculator-result-summary-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.calculator-result-summary-list li:last-child {
    border-bottom: none;
}

@media (min-width: 576px) {
    .calculator-result-amount {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .calculator-result-card {
        padding: 2.5rem 3rem;
    }
    .calculator-result-amount {
        font-size: 3.25rem;
    }
}

/* ============================================
   TESTIMONIALS SECTION (redesigned – single Read More, clean cards)
   ============================================ */
.testimonials-section {
    padding: 4.5rem 0 5rem;
    background-color: var(--white);
    overflow: visible;
}

.testimonials-section .section-title {
    color: var(--text-color);
    font-weight: 700;
}

.testimonials-section .container {
    position: relative;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Testimonials Scroll Container */
.testimonials-scroll-container {
    position: relative;
    width: 100%;
    overflow: visible;
    margin-left: 0;
    padding: 0;
}

.testimonials-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 3rem 3rem 3rem 4rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    scroll-padding: 0 3rem;
}

.testimonials-scroll-wrapper:active {
    cursor: grabbing;
}

.testimonials-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Ensure only one Read More shows – hide any injected inline duplicate */
.testimonials-section .read-more-btn.inline-read-more {
    display: none !important;
}

.testimonial-item {
    flex: 0 0 auto;
    width: 340px;
    max-width: 340px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    display: flex;
    align-items: stretch;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .testimonial-item {
        width: 300px;
        max-width: 300px;
    }
    
    .testimonials-scroll-wrapper {
        gap: 1rem;
        padding: 2rem 1.5rem 2rem 2rem;
    }
}

@media (max-width: 480px) {
    .testimonial-item {
        width: 270px;
        max-width: 270px;
    }
}

/* Scroll Progress Indicator */
.scroll-progress-container {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: var(--border-gray);
    border-radius: 4px;
    margin-top: 1.5rem;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    cursor: pointer; /* indicate track is interactive */
    transition: background-color 0.12s ease, transform 0.12s ease;
}

/* Gray container - track is interactive for click-to-seek */
.scroll-progress-container.dragging {
    background-color: #cbd5e1;
    transform: translateY(-0.125rem);
    box-shadow: 0 2px 4px var(--shadow-medium);
}

.scroll-progress-fill:hover {
    background-color: var(--primary-green-dark);
    transform: scaleY(1.1);
}

.scroll-progress-fill.dragging {
    background-color: var(--primary-green-dark);
    transform: scaleY(1.2);
    box-shadow: 0 2px 4px rgba(85, 107, 47, 0.4);
}

.scroll-progress-bar {
    width: 100%;
    height: 100%;
    background-color: var(--border-gray);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.scroll-progress-fill {
    height: 100%;
    background-color: var(--primary-green);
    border-radius: 4px;
    transition: width 0.22s ease-out;
    width: 0%;
    box-shadow: 0 1px 2px var(--shadow-green-dark);
    position: relative;
    min-width: 0;
    cursor: grab;
    user-select: none;
}

.scroll-progress-fill:active {
    cursor: grabbing;
}

.scroll-progress-fill:hover {
    background-color: var(--primary-green-dark);
    transform: scaleY(1.1);
}

.scroll-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 3px;
}

.testimonial-card {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--white);
    padding: 1.75rem 1.5rem;
    text-align: left;
    max-height: 320px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: max-height 0.4s ease-out, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    width: 100%;
    margin-left: 0;
}

/* Smooth expand when Read More is clicked */
.testimonial-card:has(.testimonial-text.is-expanded) {
    max-height: 620px;
    min-height: 320px;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-text {
    flex: 1 1 auto;
    position: relative;
}

/* Truncate quote to 3 lines; expand when .is-expanded */
.testimonial-text p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: -webkit-line-clamp 0.35s ease, opacity 0.25s ease;
}

.testimonial-text.is-expanded p {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

/* Single Read More button – accent color, one clear CTA */
.testimonial-read-more {
    display: inline-block;
    margin-top: 0.75rem;
    background: none;
    border: none;
    color: var(--accent-red, #800020);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.testimonial-read-more:hover,
.testimonial-read-more:focus {
    color: var(--primary-green, #556B2F);
    text-decoration: underline;
    outline: none;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.testimonial-card p {
    text-align: left;
    color: var(--text-color);
    margin: 0 0 0;
    line-height: 1.6;
}

.testimonial-card .testimonial-author,
.testimonial-card .author-info {
    text-align: left;
}



@media (max-width: 576px) {
    .testimonial-card p {
        text-align: left;
    }
}

/* Inline Read More (legacy/injected) – hidden in testimonials section; kept for other uses */
.read-more-btn.inline-read-more {
    background: none;
    border: none;
    color: var(--accent-red);
    font-weight: 700;
    cursor: pointer;
    padding: 0 0.25rem;
    margin-left: 0.25rem;
    font-size: 0.95rem;
    vertical-align: baseline;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-btn.inline-read-more:hover,
.read-more-btn.inline-read-more:focus,
.read-more-btn.inline-read-more:active {
    color: var(--primary-green);
    text-decoration: underline;
    outline: none;
}

.testimonial-text .hidden-text {
    display: none;
}

.testimonial-card.expanded-inline .testimonial-text .hidden-text {
    display: inline;
}

.testimonial-card.expanded,
.testimonial-card.expanded-inline {
    max-height: 2000px;
    overflow: visible;
}

/* Stars – golden */
.stars {
    color: #d4a017;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-author .fa-user,
.testimonial-author .testimonial-icon {
    color: var(--accent-red);
    font-size: 1.75rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    flex-shrink: 0;
}



.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}


.author-info h6 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0;
}

.author-info small {
    color: var(--primary-green);
}

.view-all-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--primary-green);
}

.carousel-controls {
    position: relative;
    margin-top: 2rem;
}

.carousel-item.active {
    padding-top: 2rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background-color: var(--primary-green);
    padding: 80px 0;
    color: var(--white);
}

.contact-info-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    color: var(--text-color);
}

.contact-details h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-details p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-details .social-icon {
    background-color: var(--white);
    color: var(--accent-red);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.contact-details .social-icon:hover {
    background-color: var(--accent-red);
    color: var(--white);
    border-color: var(--accent-red);
}


.map-container {
    border-radius: 10px;
    overflow: hidden;
}

.contact-form-section {
    color: var(--white);
}

/* Right column: form area – more prominent card-style panel */
.contact-section .contact-form-column {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Contact Form 7 – style to match contact section (white inputs on green) */
.contact-form-section .wpcf7 {
    margin-top: 0;
}
.contact-form-section .wpcf7-form p {
    margin-bottom: 1.25rem;
}
.contact-form-section .wpcf7-form p:last-of-type {
    margin-bottom: 0;
}
.contact-form-section .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 0.25rem;
}
/* Form fields (text, email, textarea) – transparent bg + white border */
.contact-form-section .wpcf7-form-control-wrap .wpcf7-text,
.contact-form-section .wpcf7-form-control-wrap .wpcf7-email,
.contact-form-section .wpcf7-form-control-wrap .wpcf7-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--white);
    background-color: transparent;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.contact-form-section .wpcf7-form-control-wrap .wpcf7-text:focus,
.contact-form-section .wpcf7-form-control-wrap .wpcf7-email:focus,
.contact-form-section .wpcf7-form-control-wrap .wpcf7-textarea:focus {
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    outline: 0;
}
.contact-form-section .wpcf7-form-control {
    box-sizing: border-box;
}
.contact-form-section .wpcf7-form-control:focus {
    outline: 0;
}
.contact-form-section .wpcf7-form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.contact-form-section .wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}
/* CF7 acceptance: use the browser’s native checkbox (reliable clicks / label association).
   The old appearance:none + custom box styling broke toggling on some browsers / touch. */
.contact-form-section .wpcf7-acceptance,
.contact-form-section .wpcf7-acceptance .wpcf7-list-item {
    background: transparent !important;
}
.contact-form-section .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: block;
}
.contact-form-section .wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
}
.contact-form-section .wpcf7-acceptance input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    min-height: 1.25rem;
    margin: 0.15rem 0 0;
    cursor: pointer;
    opacity: 1;
    accent-color: var(--accent-red);
    /* Native checkbox keeps a proper hit target; avoids broken toggles after appearance:none */
    appearance: auto;
    -webkit-appearance: auto;
}

.contact-form-section .wpcf7-acceptance .wpcf7-list-item-label {
    flex: 1;
    min-width: 0;
    color: var(--white);
    font-size: 0.875rem;
    line-height: 1.45;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
}
.contact-form-section .wpcf7-form-control.wpcf7-submit {
    width: auto;
    min-width: 140px;
    margin-top: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-green);
    background-color: var(--white);
    border: 2px solid var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-form-section .wpcf7-form-control.wpcf7-submit:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.contact-form-section .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-size: 0.9375rem;
}
.contact-form-section .wpcf7-mail-sent-ok {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}
.contact-form-section .wpcf7-validation-errors,
.contact-form-section .wpcf7-mail-sent-ng {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.15);
}
.contact-form-section .wpcf7-spinner {
    margin-left: 0.5rem;
    vertical-align: middle;
}
.contact-form-section .screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-title {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-form .form-label {
    color: var(--white);
    font-weight: 600;
}

.contact-form .form-control {
    background-color: transparent;
    border: 0.0625rem solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.2rem var(--shadow-red);
}

.contact-form .form-check-label {
    color: var(--white);
}

.privacy-text {
    color: var(--white);
    font-size: 0.85rem;
    margin: 1rem 0;
    line-height: 1.4;
}

.btn-contact {
    border-radius: 16px;
    border: 2px solid var(--white);
    background: var(--white);
    box-shadow: 0 4px 14px 0 var(--shadow-strong);
    color: var(--primary-green);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: border-color var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
}

.btn-contact:hover {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: 0 4px 14px 0 var(--shadow-strong);
}

/* Section Background Pattern */
.section-white {
    background-color: var(--white);
}

.section-green {
    background-color: var(--primary-green);
    color: var(--white);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
    font-size: var(--text-4xl);
}

.section-green .section-title {
    color: var(--white);
}

/* Single service page: main content below hero/how/benefits/FAQ */
.site-main {
    background-color: var(--white) !important;
}

/* Full-width section backgrounds on inner/service pages – sections stretch to viewport */
.site-main {
    width: 100%;
    box-sizing: border-box;
}
/* Force section backgrounds to full viewport width (full-bleed) */
.site-main > section,
.site-main > .service-hero,
.site-main > .service-how-section,
.site-main > .key-benefits-section,
.site-main > .gs-accordion-section,
.site-main > .lender-considerations-section {
    width: 100vw;
    max-width: none;
    display: block;
    box-sizing: border-box;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.site-main .entry-content {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-color);
}

.site-main .entry-content h2 {
    font-size: var(--text-3xl);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.site-main .entry-content h3 {
    font-size: var(--text-2xl);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.site-main .entry-content p {
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .site-main .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    .site-main .entry-content h2 {
        font-size: var(--text-2xl);
    }
    .site-main .entry-content h3 {
        font-size: var(--text-xl);
    }
}

@media (max-width: 480px) {
    .site-main .entry-content h2 {
        font-size: var(--text-xl);
    }
    .site-main .entry-content h3 {
        font-size: var(--text-lg);
    }
}

@media (max-width: 360px) {
    .site-main .entry-content {
        font-size: var(--text-sm);
    }
}

/* Service page hero – all service templates (first-time-buyer, remortgages, etc.) */
.service-hero {
    padding: var(--spacing-5xl) 0 0;
    text-align: center;
}

.service-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.service-hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: 500;
    color: var(--white);
    margin: 0 0 var(--spacing-md);
    line-height: var(--leading-tight);
}

.service-hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-white-full);
    margin: 0 0 var(--spacing-xl);
    line-height: var(--leading-normal);
}

.service-hero-buttons .btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.service-hero-buttons .btn-light {
    background-color: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--white);
}

.service-hero-buttons .btn-light:hover {
    background-color: transparent;
    color: var(--white);
}

.service-hero-buttons .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.service-hero-buttons .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

@media (max-width: 992px) {
    .service-hero {
        padding: var(--spacing-4xl) 0 0;
    }
    .service-hero-title {
        font-size: var(--text-5xl);
    }
    .service-hero-subtitle {
        font-size: var(--text-lg);
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 5rem 0 0;
    }
    .service-hero-title {
        font-size: var(--text-4xl);
    }
    .service-hero-subtitle {
        font-size: var(--text-lg);
    }
    .service-hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 var(--spacing-sm) !important;
    }
}

@media (max-width: 576px) {
    .service-hero {
        padding: 5rem 0 0;
    }
    .service-hero-title {
        font-size: var(--text-3xl);
    }
    .service-hero-subtitle {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .service-hero-title {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 360px) {
    .service-hero {
        padding: 5rem 0 0;
    }
    .service-hero-title {
        font-size: var(--text-xl);
    }
    .service-hero-subtitle {
        font-size: var(--text-sm);
    }
}

/* Service hero: split layout (e.g. remortgages – text left, image right) */
.service-hero--split {
    padding: var(--spacing-5xl) 0 0;
    background-color: var(--light-gray);
}

.service-hero-split {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
    text-align: left;
}

.service-hero-split-text {
    flex: 1 1 50%;
}

.service-hero-title--dark {
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.service-hero-para {
    color: var(--text-color);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--spacing-md);
}

.service-hero-options-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-color);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.service-hero-options-list {
    color: var(--text-color);
    font-size: var(--text-base);
    line-height: 1.7;
    margin: 0 0 var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.service-hero-split-image {
    flex: 0 0 auto;
    max-width: 45%;
}

.service-hero-split-image img {
    border-radius: var(--radius-lg);
}

@media (max-width: 992px) {
    .service-hero--split {
        padding: var(--spacing-4xl) 0 0;
    }
    .service-hero-split {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    .service-hero-split-image {
        max-width: 100%;
        width: 100%;
    }
    .service-hero-split-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .service-hero--split {
        padding: 5rem 0 0;
    }
    .service-hero-split {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    .service-hero-split-text {
        padding-top: 0;
    }
    .service-hero-title--dark {
        margin-top: 0;
        padding-top: 0;
    }
    .service-hero-split-image {
        max-width: 100%;
    }
    .service-hero-title--dark {
        font-size: var(--text-4xl);
    }
    .service-hero-para {
        font-size: var(--text-base);
    }
}

@media (max-width: 576px) {
    .service-hero--split {
        padding: 5rem 0 0;
    }
    .service-hero-title--dark {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 480px) {
    .service-hero-title--dark {
        font-size: var(--text-2xl);
    }
    .service-hero-options-title {
        font-size: var(--text-lg);
    }
}

@media (max-width: 360px) {
    .service-hero--split {
        padding: 5rem 0 var(--spacing-lg);
    }
    .service-hero-title--dark {
        font-size: var(--text-xl);
    }
    .service-hero-para,
    .service-hero-options-list {
        font-size: var(--text-sm);
    }
}

/* How Greenstone Helps / Supports You – all service pages */
.service-how-section {
    padding: var(--spacing-4xl) 0;
}

.service-how-title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 500;
    color: var(--white);
    margin: 0 0 var(--spacing-xl);
    text-align: left;
}

.service-how-inner {
    background-color: var(--cream-bg);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 960px;
    margin: 0 auto;
}

.service-how-grid {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
}

.service-how-box {
    background-color: var(--white);
    border: 2px solid var(--text-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-2xl);
    position: relative;
}

/* Bottom row: center the 4th and 5th boxes (columns 2 and 3 of 3-col grid) */
.service-how-box:nth-child(4) {
    grid-column: 2;
}

.service-how-box:nth-child(5) {
    grid-column: 3;
}

.service-how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--text-color);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.service-how-text {
    color: var(--text-color);
    font-size: var(--text-base);
    font-weight: 500;
    margin: 0;
    line-height: var(--leading-snug);
}

@media (max-width: 992px) {
    .service-how-section {
        padding: var(--spacing-3xl) 0;
    }
    .service-how-title {
        font-size: var(--text-4xl);
    }
    .service-how-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    .service-how-box:nth-child(4),
    .service-how-box:nth-child(5) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .service-how-section {
        padding: var(--spacing-xxl) 0;
    }
    .service-how-title {
        font-size: var(--text-3xl);
    }
    .service-how-inner {
        padding: var(--spacing-lg);
    }
    .service-how-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    .service-how-box:nth-child(4),
    .service-how-box:nth-child(5) {
        grid-column: 1 / -1;
    }
    .service-how-box {
        padding: var(--spacing-lg) var(--spacing-xl);
    }
}

@media (max-width: 576px) {
    .service-how-section {
        padding: var(--spacing-xl) 0;
    }
    .service-how-title {
        font-size: var(--text-2xl);
    }
    .service-how-inner {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .service-how-title {
        font-size: var(--text-xl);
    }
    .service-how-text {
        font-size: var(--text-sm);
    }
}

@media (max-width: 360px) {
    .service-how-title {
        font-size: var(--text-lg);
    }
}

/* Protection pages – “How does it help?”
   Class + .site-main: works on live when cache serves old CSS briefly, and if section ids differ.
   Keep class="life-insurance-help" on the section in template-parts. */
.site-main section.life-insurance-help {
    content-visibility: visible;
    contain: none;
    background-color: #556b2f;
    padding: 80px 20px;
    color: #333;
}

.site-main section.life-insurance-help .life-insurance-container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-main section.life-insurance-help .life-help-header {
    margin-bottom: 50px;
}

.site-main section.life-insurance-help .life-help-title {
    font-size: 2.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    text-align: left;
}

.site-main section.life-insurance-help .life-help-divider {
    width: 80px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.site-main section.life-insurance-help .life-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.site-main section.life-insurance-help .life-help-card {
    background-color: #f2f2f2;
    border-radius: 16px;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-main section.life-insurance-help .life-help-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.site-main section.life-insurance-help .life-help-number {
    width: 52px;
    height: 52px;
    background-color: #800020;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.3);
}

.site-main section.life-insurance-help .life-help-content {
    font-size: 1.3rem;
    line-height: 1.45;
    color: #222;
    padding-left: 20px;
    border-left: 2px solid #000;
}

@media (max-width: 992px) {
    .site-main section.life-insurance-help {
        padding: 70px 20px;
    }

    .site-main section.life-insurance-help .life-help-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-main section.life-insurance-help .life-help-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-main section.life-insurance-help .life-help-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .site-main section.life-insurance-help .life-help-title {
        font-size: 2.2rem;
    }

    .site-main section.life-insurance-help {
        padding: 60px 15px;
    }
}

/* Key Benefits section – all service pages */
.key-benefits-section {
    padding: var(--spacing-5xl) 0;
    background-color: var(--white);
}

.key-benefits-title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0 var(--spacing-md);
    text-align: left;
}

.key-benefits-line {
    width: 100%;
    max-width: 140px;
    margin: 0 0 var(--spacing-2xl);
    border: 0;
    border-top: 2px solid rgba(0, 0, 0, 0.15);
}

.key-benefits-inner {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: nowrap;
}

.key-benefits-visual {
    display: flex;
    align-items: center;
    flex: 0 0 50%;
    min-width: 0;
}

.key-benefits-house {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.key-benefits-list {
    flex: 0 0 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.key-benefits-box {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.key-benefits-text {
    color: var(--text-color);
    font-size: var(--text-xl);
    font-weight: 500;
    margin: 0;
    line-height: var(--leading-snug);
}

/* Pills style – position and stroke adapt to round image (remortgages, self-employed, fixed-rate) */
.key-benefits-box--pills {
    border-radius: var(--radius-full);
    padding: var(--spacing-sm) var(--spacing-lg);
}

.key-benefits-house--round {
    border-radius: var(--radius-full);
    object-fit: cover;
    width: 280px;
    height: 280px;
}

/* Pills layout: list position follows the round image */
.key-benefits-inner--pills .key-benefits-visual {
    align-items: flex-end;
}

.key-benefits-inner--pills .key-benefits-list {
    align-self: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .key-benefits-section {
        padding: var(--spacing-3xl) 0;
    }
    .key-benefits-title {
        font-size: var(--text-4xl);
    }
    .key-benefits-inner {
        flex-direction: column;
        flex-wrap: wrap;
        gap: var(--spacing-xl);
    }
    .key-benefits-visual {
        flex: 0 0 auto;
        width: 100%;
    }
    .key-benefits-list {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .key-benefits-section {
        padding: var(--spacing-xxl) 0;
    }
    .key-benefits-title {
        font-size: var(--text-3xl);
    }
    .key-benefits-inner {
        flex-direction: column;
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }
    .key-benefits-visual {
        flex: 0 0 auto;
    }
    .key-benefits-list {
        flex: 1 1 auto;
        max-width: 100%;
    }
    .key-benefits-inner--pills .key-benefits-visual {
        align-items: center;
    }
    .key-benefits-inner--pills .key-benefits-list {
        align-self: stretch;
    }
}

@media (max-width: 576px) {
    .key-benefits-section {
        padding: var(--spacing-xl) 0;
    }
    .key-benefits-title {
        font-size: var(--text-2xl);
    }
    .key-benefits-text {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .key-benefits-title {
        font-size: var(--text-xl);
    }
    .key-benefits-box,
    .key-benefits-box--pills {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    .key-benefits-text {
        font-size: var(--text-sm);
    }
}

@media (max-width: 360px) {
    .key-benefits-title {
        font-size: var(--text-lg);
    }
    .key-benefits-house--round {
        width: 220px;
        height: 220px;
    }
}

/* FAQ section – service pages: gs-accordion (from scratch) */
.gs-accordion-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--cream-bg);
}

.gs-accordion-section .gs-accordion-wrapper {
    background-color: var(--cream-bg);
    border: 2px solid var(--text-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xxl) var(--spacing-3xl);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.gs-accordion-section .gs-accordion-title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0 var(--spacing-lg);
    text-align: left;
}

.gs-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.gs-accordion__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gs-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition-base), background-color var(--transition-base), border-radius var(--transition-normal);
}

.gs-accordion__trigger:hover {
    background-color: var(--light-gray);
}

.gs-accordion__item.is-open .gs-accordion__trigger {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.gs-accordion__trigger-text {
    flex: 1;
}

.gs-accordion__icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 400;
}

.gs-accordion__icon-close {
    display: none;
}

.gs-accordion__item.is-open .gs-accordion__icon-plus {
    display: none;
}

.gs-accordion__item.is-open .gs-accordion__icon-close {
    display: inline;
}

.gs-accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
    background-color: var(--cream-bg);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.gs-accordion__panel-inner {
    margin: 0;
    padding: var(--spacing-md) var(--spacing-xl) var(--spacing-lg);
    color: var(--text-color);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

@media (max-width: 992px) {
    .gs-accordion-section { padding: var(--spacing-3xl) 0; }
    .gs-accordion-section .gs-accordion-title { font-size: var(--text-4xl); }
    .gs-accordion-section .gs-accordion-wrapper { padding: var(--spacing-xl) var(--spacing-xxl); }
}

@media (max-width: 768px) {
    .gs-accordion-section { padding: var(--spacing-xxl) 0; }
    .gs-accordion-section .gs-accordion-wrapper { padding: var(--spacing-lg); }
    .gs-accordion-section .gs-accordion-title { font-size: var(--text-3xl); }
    .gs-accordion__trigger { font-size: var(--text-base); padding: var(--spacing-md) var(--spacing-lg); }
}

@media (max-width: 576px) {
    .gs-accordion-section { padding: var(--spacing-xl) 0; }
    .gs-accordion-section .gs-accordion-wrapper { padding: var(--spacing-md); }
    .gs-accordion-section .gs-accordion-title { font-size: var(--text-2xl); }
    .gs-accordion__panel-inner { padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md); font-size: var(--text-sm); }
}

@media (max-width: 480px) {
    .gs-accordion-section .gs-accordion-title { font-size: var(--text-xl); }
    .gs-accordion__trigger { font-size: var(--text-sm); }
}

@media (max-width: 360px) {
    .gs-accordion-section { padding: var(--spacing-lg) 0; }
    .gs-accordion-section .gs-accordion-wrapper { padding: var(--spacing-sm); }
    .gs-accordion-section .gs-accordion-title { font-size: var(--text-lg); }
    .gs-accordion__trigger { padding: var(--spacing-sm) var(--spacing-md); }
    .gs-accordion__panel-inner { font-size: var(--text-xs); }
}

/* Key Things Lenders Typically Consider – buy-to-let service page */
.lender-considerations-section {
    padding: var(--spacing-4xl) 0;
}

.lender-considerations-title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 500;
    color: var(--white);
    margin: 0 0 var(--spacing-xl);
    text-align: left;
}

.lender-considerations-inner {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xl);
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
}

.lender-considerations-content {
    flex: 0 0 50%;
    min-width: 0;
}

.lender-considerations-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lender-considerations-accordion .gs-accordion__trigger {
    border-radius: var(--radius-md);
}

.lender-considerations-accordion .gs-accordion__panel {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.lender-considerations-accordion .gs-accordion__item.is-open .gs-accordion__trigger {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.lender-considerations-image {
    flex: 0 0 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lender-considerations-image img {
    border-radius: var(--radius-lg);
    max-width: 100%;
    height: auto;
}

/* List layout (normal list with styles only – not FAQ/accordion) */
.lender-considerations-section--list .lender-considerations-inner {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
}

.lender-considerations-card {
    flex: 0 0 50%;
    min-width: 0;
}

.lender-considerations-list-plain {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.lender-considerations-list-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-xl);
    min-height: 56px;
}

.lender-considerations-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background-color: #1a1a1a;
    color: var(--white);
    border-radius: 50%;
    font-size: var(--text-base);
    font-weight: 700;
}

.lender-considerations-list-text {
    color: var(--text-color);
    font-size: var(--text-lg);
    font-weight: 500;
    line-height: var(--leading-snug);
    text-align: left;
}

@media (max-width: 992px) {
    .lender-considerations-section {
        padding: var(--spacing-3xl) 0;
    }
    .lender-considerations-title {
        font-size: var(--text-4xl);
    }
    .lender-considerations-inner {
        flex-direction: column;
        padding: var(--spacing-xl);
    }
    .lender-considerations-content,
    .lender-considerations-card {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
    .lender-considerations-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .lender-considerations-section {
        padding: var(--spacing-xxl) 0;
    }
    .lender-considerations-title {
        font-size: var(--text-3xl);
    }
    .lender-considerations-inner {
        flex-direction: column;
        padding: var(--spacing-lg);
    }
    .lender-considerations-image {
        flex: none;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .lender-considerations-section {
        padding: var(--spacing-xl) 0;
    }
    .lender-considerations-title {
        font-size: var(--text-2xl);
    }
    .lender-considerations-inner {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .lender-considerations-title {
        font-size: var(--text-xl);
    }
}

@media (max-width: 360px) {
    .lender-considerations-title {
        font-size: var(--text-lg);
    }
}

/* ============================================
   BLOG LISTING (home.php) – single grid, clean layout
   ============================================ */
.blog-page,
.blog-page .site-main {
    padding-top: 0;
    background-color: var(--light-gray);
}
.blog-section {
    padding: 3rem 0 4rem;
    background-color: var(--light-gray);
    margin-top: 3rem;
}
.blog-container {
    max-width: var(--bp-full);
    margin-left: auto;
    margin-right: auto;
}
.blog-header {
    margin-bottom: 2.5rem;
    text-align: center;
}
.blog-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.blog-description {
    color: var(--text-color);
    font-size: var(--text-lg);
    margin: 0 auto;
    max-width: 560px;
    line-height: 1.5;
    opacity: 0.9;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.blog-card {
    margin: 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.blog-card:hover {
    box-shadow: 0 8px 28px rgba(85, 107, 47, 0.12);
    transform: translateY(-4px);
}
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.blog-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--light-gray);
}
.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-green);
    opacity: 0.5;
}
.blog-card-body {
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.4rem;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    color: var(--primary-green);
}
.blog-card-meta-sep {
    opacity: 0.7;
}
.blog-card-date {
    font-weight: 600;
}
.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: var(--text-color);
}
.blog-card-link:hover .blog-card-title {
    color: var(--primary-green);
}
.blog-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-color);
    margin: 0 0 0.75rem;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}
.blog-card-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-top: auto;
}
.blog-card-link:hover .blog-card-more {
    color: var(--accent-red);
}
.blog-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.blog-pagination-wrap {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.blog-pagination-wrap .blog-pagination {
    margin-top: 0;
}
.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(0, 0, 0, 0.08);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}
.blog-none {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-color);
    margin: 0;
    padding: 3rem 1rem;
}
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .blog-section {
        padding: 2rem 0 3rem;
    }
    .blog-header {
        margin-bottom: 2rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .blog-card-body {
        padding: 1.25rem 1.35rem;
    }
    .blog-card-title {
        font-size: 1.1rem;
    }
}
@media (max-width: 576px) {
    .blog-section {
        padding: 1.5rem 0 2.5rem;
    }
    .blog-card-body {
        padding: 1rem 1.25rem;
    }
    .blog-card-title {
        font-size: 1.05rem;
    }
}

/* ============================================
   SINGLE POST (single.php) – meta, TOC, CTA, white background
   ============================================ */
.single-post-page .site-main {
    padding-top: 0;
    background-color: var(--white);
    margin-top: 3rem;
}
.single-post-article {
    margin: 0;
}
/* Hero: two columns – image + text (same width as other pages) */
.single-post-hero {
    padding: 2.5rem 0 3rem;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
    border-bottom: 3px solid var(--primary-green);
    margin-top: 4rem;
}
.single-post-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 100%;
}
.single-post-hero-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--light-gray);
    box-shadow: 0 8px 32px rgba(85, 107, 47, 0.15);
}
.single-post-hero-img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}
.single-post-hero-media--placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    opacity: 0.5;
}
.single-post-hero-text {
    padding: 0 0.5rem 0 0;
}
.single-post-meta--header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    color: var(--primary-green);
    opacity: 1;
}
.single-post-meta-sep {
    opacity: 0.85;
    color: var(--primary-green);
}
.single-post-date {
    display: inline;
    font-size: inherit;
    color: var(--primary-green);
    font-weight: 600;
}
.single-post-author,
.single-post-read-time,
.single-post-categories {
    font-size: inherit;
    color: var(--primary-green);
}
.single-post-hero-text a {
    color: var(--primary-green);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.single-post-hero-text a:hover {
    color: var(--primary-green-dark);
}
.single-post-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.25;
    color: var(--text-color);
}
.single-post-excerpt {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.95;
}
.single-post-content-wrap {
    background-color: var(--light-gray);
    padding: 2.5rem 0 3rem;
}
.single-post-container {
    display: grid;
    grid-template-columns: 3fr minmax(260px, 1fr);
    gap: 2.5rem;
    align-items: start;
    max-width: var(--bp-full);
}
.single-post-main {
    min-width: 0;
}
.single-post-sidebar {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.single-post-toc {
    background: var(--white);
    border-radius: 14px;
    padding: 1.35rem 1.35rem 1.1rem;
    border: 2px solid rgba(85, 107, 47, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.single-post-toc-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.single-post-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.single-post-toc-item {
    margin: 0 0 0.4rem;
}
.single-post-toc-item--h3 {
    padding-left: 0.75rem;
}
.single-post-toc-link {
    font-size: 0.875rem;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.4;
}
.single-post-toc-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}
.single-post-content {
    padding: 2rem 2rem 2.25rem;
    background-color: var(--white);
    min-width: 0;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}
.single-post-content-inner {
    max-width: 100%;
    margin: 0;
}
.single-post-content .entry-content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-color);
}
.single-post-content .entry-content p {
    margin-bottom: 1.25rem;
}
.single-post-content .entry-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
    color: var(--text-color);
}
.single-post-content .entry-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-color);
}
.single-post-tags {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: var(--text-color);
}
.single-post-tags-label {
    font-weight: 600;
    margin-right: 0.35rem;
}
.single-post-tags a {
    color: var(--primary-green);
    text-decoration: none;
}
.single-post-tags a:hover {
    text-decoration: underline;
}
.single-post-cta {
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-radius: 14px;
    color: var(--white);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 24px rgba(85, 107, 47, 0.25);
}
.single-post-cta-text {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}
.single-post-cta-btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.single-post-cta-btn:hover {
    background: transparent;
    color: var(--white);
}
.single-post-footer {
    padding: 1.25rem 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0;
}
.single-post-back {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
}
.single-post-back:hover {
    text-decoration: underline;
    color: var(--primary-green-dark);
}

@media (max-width: 992px) {
    .single-post-container {
        grid-template-columns: 1fr;
    }
    .single-post-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .single-post-toc {
        flex: 1 1 100%;
        margin-bottom: 0;
    }
    .single-post-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .single-post-hero-media {
        order: -1;
        max-height: 320px;
    }
    .single-post-hero-media .single-post-hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
@media (max-width: 768px) {
    .single-post-hero {
        padding: 2rem 0 2.5rem;
    }
    .single-post-title {
        font-size: 1.6rem;
    }
    .single-post-content {
        padding: 1.5rem 1.25rem;
    }
    .single-post-content .entry-content {
        font-size: 1rem;
    }
    .single-post-cta {
        padding: 1.5rem 1rem;
    }
}
@media (max-width: 576px) {
    .single-post-hero {
        padding: 1.5rem 0 2rem;
    }
    .single-post-title {
        font-size: 1.4rem;
    }
    .single-post-meta--header {
        font-size: 0.85rem;
    }
    .single-post-content-wrap {
        padding: 1.5rem 0 2rem;
    }
}

/* Mobile Menu Styles */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-collapse {
    background-color: var(--primary-green);
    border-radius: 15px;
    padding: 1rem;
}

.navbar-nav .nav-link {
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.25rem 0;
    transition: all 0.25s ease;
    position: relative; 
    padding-bottom: 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--cream-bg);
    font-weight: 700;
    background: transparent; 
    box-shadow: none;
}

.navbar-nav .nav-link.active {
    font-weight: 700;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .services-content {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    
    .hero-title {
        font-size: 2.5rem;
        margin-top: 120px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-content {
        padding: 2rem;
    }
    
    .calculator-content {
        padding: 2rem;
    }
    
    .pill-row {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: row;
        align-items: center;
        bottom: 10px;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: auto;
        max-width: 200px;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        flex: 1;
    }
    
    .help-list {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    
    .about-section .row {
        flex-direction: column;
    }
    
   .about-section .col-lg-6:first-child {
        order: 1;
    }
    
    .about-section .col-lg-6:last-child {
        order: 2;
    }
    
    /* Reorder advisor image above info on mobile */
    .carousel-item .row {
        display: flex;
        flex-direction: column;
    }
    
    .carousel-item .col-lg-6 {
        width: 100%;
    }
    
    .carousel-item .col-lg-6:first-child {
        order: -1;
    }
    
    .contact-section .row {
        flex-direction: row;
    }
    
    .contact-info-box {
        margin-bottom: 2rem;
    }

    /* Enhanced mobile navbar hover/focus/active for better touch feedback */
    .navbar-nav .nav-link {
        /* Ensure base styles for mobile menu items */
        display: block; /* Full-width blocks for easier tapping */
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        position: relative;
        overflow: hidden; /* Prevent underline from spilling */
    }

    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
        width: 60%;
        height: 2px;
        background: var(--cream-bg);
        transition: transform 0.28s ease;
        border-radius: 2px;
        z-index: 1;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link:focus::after,
    .navbar-nav .nav-link:active::after {
        transform: translateX(-50%) scaleX(1);
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:active {
        color: var(--cream-bg);
        text-decoration: none;
        font-weight: 700;
        background: var(--cream-bg-rgba); /* Subtle cream tint for visibility (low opacity to match theme) */
        box-shadow: 0 2px 8px var(--shadow-color); /* Light lift shadow for "press" feel */
        transform: translateX(4px); /* Slight slide-right for dynamic feedback */
        transition: all 0.25s ease; /* Smooth everything */
    }

    /* Optional: Remove sticky hover on mobile by resetting after delay (via JS if needed, but CSS-only approximation) */
    .navbar-nav .nav-link:not(:hover):not(:focus):not(:active) {
        background: transparent;
        transform: none;
        transition: all 0.15s ease; /* Quick reset */
    }

    .navbar-nav .nav-link:focus {
        outline: 2px solid var(--cream-bg-rgba);
        outline-offset: 2px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: var(--text-4xl);
    }
    .section-title {
        font-size: var(--text-4xl);
    }
    .services-content,
    .calculator-content {
        padding: var(--spacing-lg);
    }
    .advisor-card {
        padding: var(--spacing-lg);
    }
    .testimonial-card {
        padding: var(--spacing-lg);
    }
    .testimonial-author .fa-user,
    .testimonial-author .testimonial-icon {
        font-size: var(--text-2xl);
        margin-right: var(--spacing-md);
        min-width: var(--text-2xl);
        min-height: var(--text-2xl);
    }
    .pill {
        font-size: var(--text-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    .hero-section {
        padding: 0 0 var(--spacing-xxl);
        min-height: auto;
    }
    .hero-buttons {
        position: static;
        transform: none;
        bottom: auto;
        left: auto;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        justify-content: center;
        margin-top: var(--spacing-md);
    }
    .hero-buttons .btn {
        width: 200px;
        max-width: 320px;
        padding: 0.6rem var(--spacing-md);
        font-size: var(--text-sm);
    }
    .services-section,
    .about-section,
    .how-we-help-section,
    .calculator-section,
    .testimonials-section,
    .contact-section {
        padding: var(--spacing-xxl) 0;
    }
    .footer {
        padding: var(--spacing-3xl) 0 var(--spacing-xl);
    }
    .footer .row {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer .col-lg-3 {
        margin-bottom: var(--spacing-xl);
        width: 100%;
    }
    .footer .footer-logo .logo-placeholder {
        margin-left: auto;
        margin-right: auto;
    }
    .footer .footer-links {
        display: inline-block;
        text-align: left;
    }
    .footer .footer-email-form {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    .section-title {
        font-size: var(--text-3xl);
    }
    .services-content,
    .calculator-content {
        padding: var(--spacing-md);
    }
    .pill-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xs);
        justify-items: center;
    }
    .pill {
        width: 100%;
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }
    .testimonial-author .fa-user,
    .testimonial-author .testimonial-icon {
        font-size: var(--text-xl);
        margin-right: var(--spacing-sm);
        min-width: var(--text-xl);
        min-height: var(--text-xl);
    }
}
@media (max-width: 360px) {
    .hero-title { font-size: var(--text-2xl); }
    .section-title { font-size: var(--text-4xl); }
    .hero-buttons .btn { width: 100%; max-width: 100%; }
}


/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}


/* Focus visible for accessibility - only when keyboard focusing */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--white);
    padding: 60px 0 30px;
    color: var(--text-color);
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Regulatory Footer Section */
.regulatory-footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 40px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.regulatory-footer .container {
    max-width: 1200px;
    padding: 0 20px;
    max-width: none;
    width: calc(100% - 50px);
    margin-left: 30px;
    margin-right: 20px;
}

.regulatory-content {
    width: 100%;
}

.regulatory-content p {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.regulatory-content a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
}

.regulatory-content a:hover {
    color: var(--cream-bg);
    text-decoration: none;
}

.regulatory-content strong {
    color: var(--white);
    font-weight: 700;
}

/* Mobile responsive for regulatory footer */
@media (max-width: 768px) {
    .regulatory-footer {
        padding: 30px 0;
    }
    
    .regulatory-content {
        padding: 0 15px;
    }
    
    .regulatory-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

.footer h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: underline;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.logo-placeholder {
    width: 150px;
    height: 100px;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-placeholder {
        width: 120px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .logo-placeholder {
        width: 100px;
        height: 70px;
    }
}

.google-maps {
    width: 120px;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.google-maps-logo {
    width: 150px;
    margin-right: 0.5rem;
    margin-top: 0; 
    max-width: none; 
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .google-maps {
        width: auto;
        display: inline-flex;
        align-items: center;
        margin-bottom: 0.5rem;
        flex-shrink: 1;
    }

    .google-maps-logo {
        width: 150px;
        max-width: none;
        height: auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .google-maps {
        width: auto;
        margin-bottom: 0.5rem;
        flex-shrink: 1;
    }

    .google-maps-logo {
        width: 120px;
        max-width: none;
        height: auto;
        display: block;
    }
}

/* Ensure footer images scale and do not cause horizontal overflow */
.footer img,
.regulatory-footer img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tighter padding on small screens to avoid overflow and keep content readable */
@media (max-width: 768px) {
    .footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer .row {
        gap: 1rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer .col-lg-3 {
        width: 100%;
    }

    .footer .footer-logo .logo-placeholder {
        margin-left: auto;
        margin-right: auto;
    }

    .footer .footer-links {
        display: inline-block;
        text-align: left;
    }

    .footer .footer-email-form {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 360px;
    }

    .footer .google-maps {
        justify-content: center;
        display: flex;
    }

    .google-maps {
        width: auto;
        margin-bottom: 0.75rem;
    }
}

/* Ensure regulatory footer stays within the viewport on small screens */
@media (max-width: 992px) {
    .regulatory-footer {
        /* Revert full-bleed behavior on smaller screens to prevent horizontal overflow */
        width: auto;
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .regulatory-footer .container {
        padding-left: 0;
        padding-right: 0;
    }
}

.google-maps span {
    color: var(--text-color);
    font-size: 0.9rem;
}

.newsletter-text {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Footer email subscribe – CF7 same style as contact form (transparent + border) */
.footer .footer-email-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 0.25rem;
}
.footer .footer-email-form .wpcf7-form-control-wrap .wpcf7-text,
.footer .footer-email-form .wpcf7-form-control-wrap .wpcf7-email {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: transparent;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.footer .footer-email-form .wpcf7-form-control-wrap .wpcf7-text:focus,
.footer .footer-email-form .wpcf7-form-control-wrap .wpcf7-email:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
    outline: 0;
}
.footer .footer-email-form .wpcf7-form-control::placeholder {
    color: rgba(46, 46, 46, 0.5);
}
.footer .footer-email-form .wpcf7-form p {
    margin-bottom: 1rem;
}
.footer .footer-email-form .wpcf7-form p:last-of-type {
    margin-bottom: 0;
}
.footer .footer-email-form .wpcf7-form-control.wpcf7-submit {
    width: auto;
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    background-color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.footer .footer-email-form .wpcf7-form-control.wpcf7-submit:hover {
    background-color: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}
.footer .footer-email-form .wpcf7-response-output {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.newsletter-form .form-control {
    background-color: transparent;
    border: 0.0625rem solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.btn-subscribe {
    background-color: var(--primary-green);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 var(--shadow-strong);
}

.btn-subscribe:hover {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    box-shadow: 0 4px 14px 0 var(--shadow-strong);
}

.privacy-notice {
    color: var(--text-color);
    font-size: 0.8rem;
    margin: 0;
}

.google-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: 15px;
    margin-right: 0;
}

.google-logo {
    width: 100px;
    height: 80px;
}

.google-rating .stars {
    color: var(--star-yellow);
    font-size: 1.5rem;
}

.footer-divider {
    border-color: var(--text-gray);
    margin-top: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-icon {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social .social-icon:hover {
    color: var(--accent-red);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--scroll-red);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0.25rem 0.75rem var(--shadow-color);
    line-height: 1;
}

.scroll-to-top:hover {
    background-color: var(--accent-red);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.375rem 1rem var(--shadow-color);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .btn,
    .contact-form,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        page-break-after: avoid;
    }
}


/* ============================================
   THANK YOU PAGE (scoped so other pages keep full-width sections)
   ============================================ */
main.thank-you-page {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            position: relative;
            overflow: hidden;
            background: var(--white) !important;
        }

.content {
    text-align: center;
    padding: 4rem 1rem 6rem;
}

.content .checkmark {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.content .checkmark img.checkmark {
    width: 220px;
    max-width: 48%;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    background : none;
}

@media (max-width: 768px) {
    .content .checkmark img.checkmark {
        width: 160px;
        max-width: 40%;
    }
}

@media (max-width: 480px) {
    .content .checkmark img.checkmark {
        width: 120px;
        max-width: 50%;
    }
}

/* Interactive sky-like tiny lights */
        .lights {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .light {
            position: absolute;
            background: var(--white);
            border-radius: 50%;
            animation: twinkle 2s infinite ease-in-out;
        }

        /* Generate lights with JS, but define animation here */
        @keyframes twinkle {
            0%, 100% { opacity: 0.3; transform: scale(0.8); }
            50% { opacity: 1; transform: scale(1.2); }
        }

        /* Different delays for each light */
        .light:nth-child(odd) { animation-delay: 0s; }
        .light:nth-child(even) { animation-delay: 1s; }

        /* Content on top */
        .content {
            position: relative;
            z-index: 2;
            text-align: center;
        }



/* ============================================
   SETS APART SECTION
   ============================================ */
.sets-apart {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 80px 20px;
    font-family: var(--font-figtree);
}

.sets-apart h2 {
    grid-row: 1;
      grid-column: 1;
    text-align: left;
    margin-bottom: 48px;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-figtree);
}
.title-card {
      grid-row: 1;
      grid-column: 1;
      background: none;
      color: var(--white);
      border-radius: 12px;
      font-weight: 600;
      display: flex;
      align-items: left;
      font-family: var(--font-figtree);
    }

 .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: repeat(4, auto);
      gap: 20px;
      align-items: start;
    }
.item-card {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    color: black;
    font-weight: bold;
    transition: background-color 0.3s;
    border-left: 4px solid transparent;
}
.header:hover {
    background-color: var(--cream-bg-rgba);
}
.open .header {
    border-left: 4px solid var(--accent-red);
}
.title {
    flex: 1;
    font-size: 1.2em;
    font-family: var(--font-figtree);
    font-weight: 500;
}
.icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--accent-red);
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.icon .plus-icon {
    display: flex;
}
.icon .minus-icon {
    display: none;
}
.item-card.open .icon .plus-icon {
    display: none;
}
.item-card.open .icon .minus-icon {
    display: flex;
}
.sets-apart .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 20px;
    color: var(--text-gray);
    line-height: 1.6;
    text-align: left;
}
.sets-apart .item-card.open .content {
    max-height: 2000px;
    padding: 0 20px 20px;
}
ul {
    margin: 10px 0;
    padding-left: 20px;
}
li {
    margin-bottom: 5px;
}
.bottom-text {
    text-align: left;
    color: var(--white);
    font-size: 1.1em;
    font-family: var(--font-heading);
    max-width: 1200px;
    margin: 0 auto;
}
.bottom-text ul {
    list-style: none;
    padding: 0;
}
.bottom-text li::before {
    content: '• ';
    color: var(--white);
}
/* Explicit placement */
    #item-1 { grid-row: 2; grid-column: 1; }
    #item-2 { grid-row: 3; grid-column: 1; }
    #item-3 { grid-row: 4; grid-column: 1; }

    #item-4 { grid-row: 1; grid-column: 2; }
    #item-5 { grid-row: 2; grid-column: 2; }
    #item-6 { grid-row: 3; grid-column: 2; }
    #item-7 { grid-row: 4; grid-column: 2; }

    /* Responsive: Stack vertically on small screens */
    @media (max-width: 768px) {
      .sets-apart {
        padding: 40px 15px;
      }
      
      .sets-apart .container {
        max-width: 100%;
        padding: 0;
      }
      
      .grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
      }
      
      .title-card,
      .item-card {
        grid-column: 1;
        width: 100%;
        max-width: 100%;
      }
      
      .title-card { 
        grid-row: 1; 
      }
      
      .sets-apart h2 {
        font-size: 2rem;
        margin-bottom: 30px;
        text-align: center;
        padding: 0 10px;
      }
      
      .item-card {
        margin-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
      }
      
      .header {
        padding: 15px;
        flex-wrap: wrap;
      }
      
      .title {
        font-size: 1rem;
        line-height: 1.4;
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
      }
      
      .icon {
        width: 28px;
        height: 28px;
        font-size: 1.2em;
        flex-shrink: 0;
      }
      
      .sets-apart .content {
        padding: 0 15px;
        font-size: 0.9rem;
      }
      
      .sets-apart .item-card.open .content {
        padding: 0 15px 15px;
      }
      
      .bottom-text {
        text-align: left;
        padding: 0 10px;
        font-size: 1rem;
      }
      
     #item-1 { grid-row: 2; grid-column: 1; }
      #item-2 { grid-row: 3; grid-column: 1; }
      #item-3 { grid-row: 4; grid-column: 1; }
      #item-4 { grid-row: 5; grid-column: 1; }
      #item-5 { grid-row: 6; grid-column: 1; }
      #item-6 { grid-row: 7; grid-column: 1; }
      #item-7 { grid-row: 8; grid-column: 1; }
    }
    
    /* Extra small mobile devices */
    @media (max-width: 480px) {
      .sets-apart {
        padding: 30px 10px;
      }
      
      .sets-apart h2 {
        font-size: 1.75rem;
        margin-bottom: 20px;
      }
      
      .header {
        padding: 12px;
      }
      
      .title {
        font-size: 0.95rem;
      }
      
      .icon {
        width: 24px;
        height: 24px;
        font-size: 1.1em;
      }
      
      .sets-apart .content {
        padding: 0 12px;
        font-size: 0.85rem;
      }
      
      .sets-apart .item-card.open .content {
        padding: 0 12px 12px;
      }
      
      .bottom-text {
        font-size: 0.9rem;
        padding: 0 5px;
      }
    }

/* ============================================
   SERVICES PAGES STYLES
   ============================================ */

/* FTB Navbar - Different style from main navbar */
.ftb-navbar {
    background-color: var(--primary-green);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.ftb-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ftb-logo img {
    height: 48px;
    width: auto;
}

/* FTB Centered Dropdown Button */
.ftb-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ftb-dropdown {
    position: relative;
}

.ftb-dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 100;
    font-size: 1.1rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.ftb-dropdown-toggle:hover,
.ftb-dropdown-toggle:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
}

.ftb-dropdown-toggle::after {
    content: "▼";
    font-size: 0.75rem;
    opacity: 0.85;
}

.ftb-dropdown.active .ftb-dropdown-toggle {
    background: rgba(255,255,255,0.18);
    border-color: var(--white);
    font-weight: 400;
}

.ftb-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(85, 107, 47, 0.92);
    backdrop-filter: blur(5px);
    min-width: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(12px);
    transition: all 0.25s ease;
    margin-top: 10px;
    text-align: left;
}

.ftb-dropdown:hover .ftb-dropdown-menu,
.ftb-dropdown:focus-within .ftb-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ftb-dropdown-menu a {
    display: block;
    color: var(--white);
    padding: 0.95rem 1.5rem;
    text-decoration: none;
    font-size: 0.98rem;
    transition: background 0.2s;
}

.ftb-dropdown-menu a:hover {
    background: rgba(255,255,255,0.15);
}

.ftb-btn-get-started {
    background-color: var(--white);
    color: var(--primary-green);
    padding: 0.75rem 1.9rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ftb-btn-get-started:hover {
    background-color: #f9f9f9;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.18);
}

/* FTB Hero Section */
.ftb-hero {
    background-color: #f9faf5;
    padding: 3rem 5% 0;
    border-radius: 20px;
    margin: 0 1rem;
    overflow: hidden;
}

.ftb-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1rem 3rem;
    align-items: end;
}

.ftb-hero-content {
    grid-column: 1;
    grid-row: 1 / 3;
    padding-bottom: 2rem;
}

.ftb-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: #2E2E2E;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.ftb-hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    color: #444;
    line-height: 1.7;
}

.ftb-hero-image {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.ftb-hero-image img {
    width: auto;
    height: auto;
    max-height: 380px;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom right;
}

/* ==== HELP SECTION ==== */
.help-section {
    background-color: #556B2F;
    padding: 5rem 5% 6rem;
    color: white;
  }
  .help-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
  }
  .help-section h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
  }
  .help-section hr {
    border: none;
    height: 1px;
    background-color: #F5F5F0;
    margin-bottom: 3rem;
  }
  .cards-wrapper {
    background-color: #F5F5F0;
    border-radius: 10px;
    padding: 3rem 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
  }
  .help-card {
    background: white;
    border-radius: 12px;
    padding: 1.8rem 1.2rem 1rem;
    width: 300px;
    position: relative;
   border: 1px solid black;
    text-align: left;
    height: 125px;
  }
  .help-card::before {
    content: attr(data-number);
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: black;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
  }
  .help-card p {
    font-size: 1.05rem;
    color: #333;
    margin-top: 2rem;
  }

 /* ==== KEY BENEFITS SECTION ==== */
    .benefits-section {
      background-color: white;
      padding: 6rem 5% 7rem;
    }
    .benefits-container {
      max-width: 1400px;
      margin: 0 auto;
    }
    .benefits-section h1 {
      font-family: var(--font-heading);
      font-weight: 300;
      font-size: 2.8rem;
      color: #2E2E2E;
      margin-bottom: 1.2rem;
    }
    .benefits-section hr {
      height: 2px;
      background-color: #556B2F;
      border: none;
      margin-bottom: 4rem;
    }
    .benefits-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
    }
    .benefits-image-wrapper {
      position: relative;
    }
    .benefits-image-wrapper img {
      width: 100%;
      height: auto;
      display: block;
    }

    .benefits-list {
      display: flex;
      flex-direction: column;
      gap: 4rem;
      align-items: flex-start;
      width: 100%;
    }
    .benefit-card {
      background: white;
      border: 1px solid black;
      border-radius: 30px;
      padding: 0.9rem 1.8rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      font-size: 1.3rem;
      font-weight: 500;
      color: #2E2E2E;
      text-align: left;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      white-space: nowrap;
    }
    .benefit-card:hover {
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    /* S-curve wave pattern - matching design */
    .benefit-card:nth-child(1) { 
      margin-left: 0;
    }
    .benefit-card:nth-child(2) { 
      margin-left: 100px;
    }
    .benefit-card:nth-child(3) { 
      margin-left: 50px;
    }
    .benefit-card:nth-child(4) { 
      margin-left: 0;
    }
    
    /* Hover effect */
    .benefit-card:hover {
      transform: translateY(-3px);
    }

    /* Responsive */
    @media (max-width: 992px) {
      .benefits-content { grid-template-columns: 1fr; gap: 3rem; }
      .curve-overlay { display: none; }
      .benefits-list { align-items: center; }
      .benefit-card { 
        margin-left: 0 !important;
        white-space: normal;
        text-align: center;
      }
    }
    @media (max-width: 768px) {
      .benefits-section h1 { font-size: 2.4rem; }
      .benefits-section { padding: 4rem 5% 5rem; }
    }


/* ============================================
   Services Pages - MOBILE RESPONSIVE
   ============================================ */

/* Tablet breakpoint (992px) */
@media (max-width: 992px) {
    /* FTB Hero */
    .ftb-hero {
        padding: 2.5rem 4% 0;
        margin: 0 0.5rem;
    }
    .ftb-hero-container {
        grid-template-columns: 1fr 0.8fr;
        gap: var(--spacing-md) var(--spacing-xl);
    }
    .ftb-hero-content h1 {
        font-size: var(--text-4xl);
        white-space: normal;
    }
    .ftb-hero-content p {
        font-size: var(--text-sm);
    }
    .ftb-hero-image img {
        max-height: 320px;
    }
    /* Help Section */
    .help-section {
        padding: var(--spacing-3xl) 5%;
    }
    .help-section h1 {
        font-size: var(--text-4xl);
    }
    .cards-wrapper {
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
    }
    .help-card {
        width: 250px;
    }
}

/* Mobile breakpoint (768px) */
@media (max-width: 768px) {
    /* FTB Navbar */
    .ftb-navbar {
        padding: 0.8rem 4%;
    }
    .ftb-nav-container {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    .ftb-logo img {
        height: 40px;
    }
    .ftb-nav-center {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-sm);
    }
    .ftb-dropdown-toggle {
        font-size: var(--text-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    .ftb-dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(12px);
        width: 90%;
        max-width: 300px;
        min-width: unset;
    }
    .ftb-dropdown:hover .ftb-dropdown-menu,
    .ftb-dropdown:focus-within .ftb-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    .ftb-dropdown-menu a {
        padding: 0.8rem 1.2rem;
        font-size: var(--text-sm);
    }
    .ftb-btn-get-started {
        padding: 0.6rem 1.2rem;
        font-size: var(--text-sm);
    }
    /* FTB Hero */
    .ftb-hero {
        padding: var(--spacing-xl) 4% 0;
        margin: 0;
        border-radius: 0;
    }
    .ftb-hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: var(--spacing-lg);
    }
    .ftb-hero-content {
        grid-column: 1;
        grid-row: 1;
        padding-bottom: 0;
    }
    .ftb-hero-content h1 {
        font-size: var(--text-4xl);
        line-height: var(--leading-tight);
        margin-bottom: var(--spacing-md);
        white-space: normal;
    }
    .ftb-hero-content p {
        font-size: var(--text-sm);
        margin-bottom: var(--spacing-md);
        line-height: var(--leading-relaxed);
    }
    .ftb-hero-image {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
    }
    .ftb-hero-image img {
        max-height: 280px;
    }
    /* Help Section */
    .help-section {
        padding: var(--spacing-xxl) 4%;
    }
    .help-section h1 {
        font-size: var(--text-4xl);
        line-height: 1.3;
    }
    .help-section hr {
        margin-bottom: var(--spacing-xl);
    }
    .cards-wrapper {
        padding: var(--spacing-lg) var(--spacing-md);
        gap: var(--spacing-md);
    }
    .help-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 100px;
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    }
    .help-card::before {
        width: 32px;
        height: 32px;
        font-size: var(--text-lg);
    }
    .help-card p {
        font-size: var(--text-sm);
        margin-top: var(--spacing-lg);
    }
    /* Benefits Section */
    .benefits-section {
        padding: var(--spacing-xxl) 4%;
    }
    .benefits-section h1 {
        font-size: var(--text-4xl);
    }
    .benefits-section hr {
        margin-bottom: var(--spacing-xl);
    }
    .benefits-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    .benefits-image-wrapper {
        order: -1;
    }
    .benefits-list {
        gap: var(--spacing-lg);
    }
    .benefit-card {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--text-base);
        transform: none !important;
    }
}

/* Small mobile breakpoint (480px) */
@media (max-width: 480px) {
    /* FTB Navbar */
    .ftb-navbar {
        padding: 0.6rem 3%;
    }
    .ftb-logo img {
        height: 36px;
    }
    .ftb-dropdown-toggle {
        font-size: var(--text-xs);
        padding: 0.45rem 0.8rem;
    }
    .ftb-btn-get-started {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--text-xs);
    }
    /* FTB Hero */
    .ftb-hero {
        padding: var(--spacing-lg) 3% 0;
    }
    .ftb-hero-content h1 {
        font-size: var(--text-2xl);
        margin-bottom: 0.8rem;
    }
    .ftb-hero-content p {
        font-size: var(--text-xs);
        margin-bottom: 0.8rem;
    }
    .ftb-hero-image img {
        max-height: 220px;
    }
    /* Help Section */
    .help-section {
        padding: 2.5rem 3%;
    }
    .help-section h1 {
        font-size: var(--text-2xl);
    }
    .cards-wrapper {
        padding: var(--spacing-md) 0.8rem;
    }
    .help-card {
        padding: 1.2rem 0.8rem 0.8rem;
        min-height: 90px;
    }
    .help-card::before {
        width: 28px;
        height: 28px;
        font-size: var(--text-base);
    }
    .help-card p {
        font-size: var(--text-xs);
        margin-top: 1.2rem;
    }
    /* Benefits Section */
    .benefits-section {
        padding: 2.5rem 3%;
    }
    .benefits-section h1 {
        font-size: var(--text-2xl);
    }
    .benefits-list {
        gap: var(--spacing-md);
    }
    .benefit-card {
        padding: 0.9rem var(--spacing-md);
        font-size: var(--text-sm);
    }
}

/* Extra small (360px) - ensure readability on small devices */
@media (max-width: 360px) {
    .ftb-hero-content h1 { font-size: var(--text-xl); }
    .ftb-hero-content p { font-size: var(--text-xs); }
    .help-section h1 { font-size: var(--text-xl); }
    .help-card p { font-size: var(--text-xs); }
    .benefits-section h1 { font-size: var(--text-xl); }
    .benefit-card { font-size: var(--text-xs); padding: var(--spacing-sm) var(--spacing-md); }
}


/* ====BTL KEY CONSIDERATIONS SECTION ==== */
    .considerations-section {
      background-color: var(--primary-green);
      padding: 4.5rem 5% 5.5rem;
      color: var(--white);
    }
    .considerations-container {
      max-width: var(--bp-full);
      margin: 0 auto;
      text-align: left;
    }
    .considerations-section h1 {
      font-family: var(--font-heading);
      font-size: var(--text-6xl);
      font-weight: 300;
      margin-bottom: var(--spacing-md);
    }
    .considerations-section hr {
      border: none;
      height: 2px;
      background-color: var(--text-white);
      margin-bottom: 2.5rem;
      width: 100%;
    }
    .considerations-content {
      background-color: var(--white);
      border-radius: var(--radius-md);
      padding: var(--spacing-xxl) 3.5rem 0;
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: var(--spacing-xl);
      align-items: end;
      color: var(--text-gray);
      overflow: hidden;
    }
    .considerations-list {
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      padding-bottom: var(--spacing-xxl);
    }
    .consideration-card {
      background: var(--white);
      border: 1px solid var(--black);
      border-radius: var(--radius-2xl);
      padding: var(--spacing-md) 1.2rem;
      position: relative;
      display: flex;
      align-items: center;
      gap: 1.2rem;
    }
    .consideration-card::before {
      content: attr(data-number);
      background-color: var(--black);
      color: var(--white);
      width: 45px;
      height: 45px;
      border-radius: var(--radius-full);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 400;
      font-size: var(--text-xl);
      flex-shrink: 0;
    }
    .consideration-card p {
      font-size: var(--text-xl);
      font-weight: 500;
      margin: 0;
      color: var(--text-color);
    }
    .considerations-image {
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      height: 100%;
    }
    .considerations-image img {
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: 450px;
      object-fit: contain;
      object-position: bottom right;
    }

    /* Responsive */
    @media (max-width: 992px) {
      .considerations-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: 2.5rem 2.5rem 0;
      }
      .considerations-list {
        padding-bottom: 0;
      }
      .considerations-section h1 { font-size: var(--text-5xl); }
      .considerations-image {
        justify-content: center;
      }
      .considerations-image img {
        max-height: 350px;
      }
    }
    @media (max-width: 768px) {
      .considerations-section { padding: var(--spacing-xxl) 4% var(--spacing-3xl); }
      .considerations-content { padding: var(--spacing-xl) var(--spacing-lg) 0; }
      .consideration-card { padding: var(--spacing-md); }
      .consideration-card::before {
        width: 38px;
        height: 38px;
        font-size: var(--text-lg);
      }
      .consideration-card p {
        font-size: var(--text-sm);
      }
      .considerations-image img {
        max-height: 280px;
      }
    }
    @media (max-width: 480px) {
      .considerations-section { padding: var(--spacing-xl) 3% var(--spacing-xxl); }
      .considerations-section h1 { font-size: var(--text-4xl); }
      .consideration-card::before { width: 32px; height: 32px; font-size: var(--text-base); }
      .consideration-card p { font-size: var(--text-base); }
    }
    @media (max-width: 360px) {
      .considerations-section h1 { font-size: var(--text-3xl); }
      .consideration-card p { font-size: var(--text-sm); }
    }

