/*
Theme Name: DoorBoost Theme (Minimal Header Only)
Description: Clean slate WordPress theme with only the header design preserved.
Author: Hagop
Version: 1.0.0
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.page h1.entry-title {
    display: none;
}

:root {
    --primary-color: #683ab7;
    --primary-hover: #5b35aa;
}
html,
body {
    overflow-x: hidden; /* keep even if you later re-add any vw tricks */
}

body {
    font-family: "Roboto", "Roboto Placeholder", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

p,
li,
blockquote {
    max-width: 80ch;
}

/* Container */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fafafa;
    top: 0;
    z-index: 1000;
}

/* Header background for non-front pages */
body:not(.home):not(.front-page) .site-header {
    background: #ffffff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.site-title:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Site Logo Styles */
.site-logo img,
.custom-logo {
    width: 158px;
    height: auto;
    display: block;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Select */
.language-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
}

.language-select:hover {
    border-color: var(--primary-hover);
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 📱 Mobile layout */
@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background-color: white;
    }

    .header-content {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .header-right {
        display: flex;
        flex-direction: row; /* inline */
        align-items: center;
        gap: 0.6rem;
        width: auto;
        padding: 0;

        max-height: none;
        opacity: 1;
        overflow: visible;
        pointer-events: auto;
        transition: none;

        margin-left: auto; /* push to right */
    }

    .header-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.6rem;
        width: auto;
        flex-wrap: nowrap;
    }

    /* Hide Sign In button only on mobile */
    .header-actions .sign-in-btn {
        display: none !important;
    }

    .header-actions .header-button-fill {
        padding: 10px 12px;
        font-size: 0.85rem;
        line-height: 1.1;
        border-radius: 10px;
        white-space: nowrap;
    }
    .site-logo img,
    .custom-logo {
        width: clamp(120px, 30vw, 158px); /* NEW: fluid logo width */
    }

    body.menu-open {
        overflow: hidden;
    }

    @media (max-width: 390px) {
        .site-header .header-actions {
            gap: 0.4rem !important;
        }

        /* Buttons */
        .site-header .header-actions .header-button-fill,
        .site-header .header-actions .header-button-outline {
            font-size: 0.75rem !important;
            padding: 6px 10px !important;
            line-height: 1.2 !important;
            border-radius: 10px !important;
            min-height: 32px !important;
            min-width: 0 !important;
        }

        /* Language selector */
        .site-header .language-select {
            font-size: 0.75rem !important;
            padding: 4px 8px !important;
            border-radius: 6px !important;
            min-height: 32px !important;
            max-width: 90px !important; /* keeps it compact */
            flex: 0 0 auto !important; /* don’t stretch */
        }
    }
}
/*header ends here*/

.main-section-wrapper {
    background-color: #fafafa; /* spans full screen */
    padding: 5rem 0rem;
    position: relative; /* needed for pseudo-element positioning */
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}

.entry-content {
    padding: 0rem;
}

.main-section-container {
    max-width: 1380px;
    margin: 0 auto;
    justify-content: left;
}

.main-section-image {
    width: 100%; /* fill parent width */
    max-width: 100%;
    padding-right: 40px;
}

.main-section-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.main-section-inner > *:first-child,
.main-section-inner > *:last-child {
    flex: 1;
}

.main-section-container h1 {
    font-size: 3.75rem;
    line-height: 1.2;
    margin: 1rem 0rem;
    font-size: 600;
}

.main-section-inner h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Paragraph */
.main-section-inner p {
    font-size: 1.125rem;

    margin-bottom: 2rem;
    max-width: 600px;
}

/* Header pill */
.main-section-container .header-text {
    display: inline-block;
    background-color: white;
    border-radius: 9999px;
    border: 1px solid #1c18131a;
    padding: 0.5rem 1rem;
    line-height: 1.2;
    font-size: 0.8rem;
}

/* Feature checklist */
.main-section-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.main-section-features li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.main-section-features li::before {
    content: "✓"; /* better checkmark shape */
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-hover);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem; /* larger & matches screenshot */
    font-weight: bold;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.cta-button-group {
    gap: 2.5rem; /* space between items */
}

/* Responsive layout */
@media (max-width: 768px) {
    /* Container centered */
    .main-section-container {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        flex-direction: column;
    }

    /* Inner text group: centered content, appears first */
    .main-section-inner {
        order: 1; /* make sure it's first */
        display: flex;
        max-width: 100%;
        align-items: center;
        gap: 1.5rem;
    }

    .main-section-inner h1 {
        font-size: 2.25rem;
        text-align: center;
        padding: 0rem 1rem;
        overflow-wrap: anywhere;
    }

    .main-section-inner p {
        text-align: left;
        /*padding: 0 0rem;*/
    }

    .main-section-features {
        display: inline-block; /* shrink to fit content */
        text-align: left; /* keep list items left-aligned */
        padding: 0 1rem; /* smaller padding */
        margin: 0 auto; /* center the block */
        max-width: 100%; /* shrink size */
        font-size: 0.95rem;
    }

    /* Image group: appears after text, centered */
    .main-section-image {
        order: 2; /* make sure it's after text */
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }

    .main-section-image img {
        max-width: 100%;
        height: auto;
    }

    /* Buttons: centered */
    .main-section-buttons,
    .cta-button-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .cta-button-group .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    /* Diagonal bottom for mobile */
    .main-section-wrapper {
        background-color: #fafafa; /* spans full screen */
        padding: 5rem 0rem;
        position: relative; /* needed for pseudo-element positioning */
        clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    }
}

@media (max-width: 390px) {
    .main-section-container,
    .main-section-inner {
        margin-inline: auto;
    }
}

.wp-block-button.button-purple-fill .wp-block-button__link {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 16px !important;
    padding: 12px 28px !important;
    font-weight: 500 !important;
    display: inline-block;
    transition: all 0.2s ease;
}

.wp-block-button.button-purple-fill .wp-block-button__link:hover {
    background-color: var(--primary-hover) !important;
    color: white !important;
}

.wp-block-button.button-purple-outline .wp-block-button__link {
    background-color: #ffff !important;
    color: black !important;
    border-radius: 16px !important;
    padding: 12px 28px !important;
    font-weight: 500 !important;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.wp-block-button.button-purple-outline .wp-block-button__link:hover {
    background-color: var(--primary-hover) !important;
    color: white !important;
    border-color: var(--primary-hover) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1445px) {
    .main-section-container {
        max-width: 1180px;
        margin: 0 auto;
    }

    .main-section-inner {
        gap: 3rem;
        padding: 0rem;
        padding-right: 3rem;
    }

    .main-section-image {
        padding-right: 24px;
    }

    .main-section-container h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    .main-section-inner h2 {
        font-size: clamp(2.1rem, 4vw, 2.8rem);
    }

    /*Paragraph inside main-section-inner */
    .main-section-inner p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        max-width: 560px;
        padding: 0 !important;
    }

    .main-section-features {
        margin: 1.5rem 0;
    }

    .main-section-features li {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    .main-section-features li::before {
        font-size: 0.85rem;
    }

    .cta-button-group {
        gap: 1.5rem;
    }

    /* Buttons a touch smaller */
    .wp-block-button.button-purple-fill .wp-block-button__link,
    .wp-block-button.button-purple-outline .wp-block-button__link {
        padding: 10px 22px !important;
        border-radius: 14px !important;
    }
}

/* Base: keep p responsive even on wide screens */
.main-section-inner p {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    max-width: min(600px, 100%);
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 1445px) {
    .main-section-container {
        max-width: 1180px;
        margin: 0 auto;
    }

    .main-section-inner {
        gap: 3rem;
        padding: 0rem;
        padding-right: 3rem;
    }

    .main-section-inner h1 {
        font-size: 3rem;
    }

    .main-section-inner p {
        font-size: 1rem;
        max-width: 560px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 1300px) {
    .main-section-container {
        max-width: 1050px;
    }

    .main-section-inner {
        gap: 2rem;
        padding: 0rem;
        padding-right: 2rem;
    }

    .main-section-inner h1 {
        font-size: 2.6rem;
    }

    .main-section-inner h2 {
        font-size: clamp(2rem, 4vw, 2.4rem);
    }

    .main-section-inner p {
        font-size: 0.95rem;
        max-width: 500px;
        margin-bottom: 1.25rem;
    }

    .main-section-image {
        padding-right: 16px;
    }
}

@media (max-width: 1172px) {
    .main-section-container {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        flex-direction: column;
        padding: 10rem 0rem;
    }

    .main-section-inner {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0rem;
    }

    .main-section-inner h1 {
        font-size: 2.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .main-section-inner p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.25rem;
        text-align: left;
        padding: 0 1rem;
    }

    .main-section-features li {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        margin-bottom: 0.9rem;
        font-size: 0.95rem;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .main-section-image {
        order: 2;
        margin-top: 2rem;
        padding-right: 0;
        display: flex;
        justify-content: center;
    }

    .main-section-image img {
        max-width: 100%;
        height: auto;
    }

    .main-section-buttons,
    .cta-button-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .main-section-wrapper {
        background-color: #fafafa; /* spans full screen */
        padding: 0rem;
        position: relative; /* needed for pseudo-element positioning */
        clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    }
}

.scrolling-logos-section {
    max-width: 1380px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

/* 📝 Heading above */
.scrolling-logos-heading {
    font-size: 1rem;
    font-weight: 350;
    color: #333;
    text-align: center !important;
}

.scrolling-logos {
    max-width: 1300px;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.scrolling-logos > .wp-block-group__inner-container {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    will-change: transform;
    animation: marquee-rtl 20s linear infinite;
}

/* ===== LOGO ITEMS ===== */
.scrolling-logos .wp-block-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-width: 120px;
}

.scrolling-logos img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ===== KEYFRAMES: seamless loop (requires A + A) ===== */
@keyframes marquee-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
    50% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .scrolling-logos {
        max-width: 100%;
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%
        );
    }
    .scrolling-logos > .wp-block-group__inner-container {
        gap: 2rem;
        animation-duration: 20s;
    }
    .scrolling-logos img {
        height: 40px;
    }
    .scrolling-logos .wp-block-image {
        min-width: 100px;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scrolling-logos > .wp-block-group__inner-container {
        animation: none !important;
    }
}

/* 🌐 Section container */
.section-group {
    max-width: 1350px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-group h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* 📝 Subheading paragraph */
.section-group .section-description {
    font-size: 1rem;
    line-height: 1.7;
}

/* 🧱 Two-column layout */
.section-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* 📦 Each column */
.section-column {
    flex: 1 1 480px;
    max-width: 600px;
}

/* 💳 Card-style group */
.feature-card {
    padding: 2rem;
    border-radius: 1.25rem;
    text-align: left;
}

.feature-image-wrapper {
    background-color: #f9f9f9;
    border-radius: 1.25rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 650px;
}

.feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

/* 🏷️ Card title */
.feature-title {
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

/* 📄 Description text */
.feature-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
/* Group (outer) */
.icon-gallery.wp-block-group {
    width: 100%;
    padding: 0px 0;
}

/* Gutenberg wraps Group content in this container */
.icon-gallery.wp-block-group > .wp-block-group__inner-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    gap: 40px;
    padding: 16px 0;
}

/* Reset WP figure spacing and prevent stretch */
.icon-gallery .wp-block-image {
    margin: 0 !important;
    flex: 0 0 auto;
}

/* Icons */
.icon-gallery .wp-block-image img,
.icon-gallery img {
    display: block;
    width: 50px;
    height: 64px;
    object-fit: contain;
}

.icon-gallery figcaption {
    display: none;
}
.icon-gallery.partners img {
    width: 120px;
    height: auto;
}

@media (max-width: 769px) {
    .icon-gallery.wp-block-group > .wp-block-group__inner-container {
        gap: 24px;
        padding: 0rem 1rem;
    }
    .icon-gallery .wp-block-image img,
    .icon-gallery img {
        width: 48px;
        height: 48px;
    }

    .wp-block-group .feature-card {
        padding: 0;
        margin-bottom: 2rem;
    }

    .wp-block-group .feature-card-content {
        padding: 0;
    }

    .section-group-title {
        text-align: left;
        padding: 0 1rem;
    }

    .section-group-title h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .section-group-title p {
        font-size: 1rem;
        font-weight: 400;
        max-width: 100%;
    }
}

.section-container {
    max-width: 1350px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    gap: 11.25rem;
    padding: 2rem 1rem;
    flex-wrap: wrap;
}

.section-content {
    flex: 1 1 50%;
    min-width: 300px;
    max-width: 600px;
}

.section-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-image {
    flex: 1 1 50%;
    text-align: right;
    min-width: 300px;
}

.section-image img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.section-container-image {
    width: 400px;
    height: auto;
}

@media (max-width: 768px) {
    /* Row */
    .section-container {
        max-width: 680px;
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    /* Ensure text group is first, image second */
    .section-container .section-content {
        order: 1;
        width: 100%;
    }
    .section-container .feature-image-wrapper {
        order: 2;
        width: 100%;
    }

    /* Headings / text */
    .section-container .section-content h1,
    .section-container .section-content h2 {
        font-size: clamp(1.8rem, 5vw, 2.25rem);
    }
    .section-container .section-content p {
        font-size: 1rem;
        margin: 0 auto 1.25rem;
        max-width: 90%;
    }

    /* Image */
    .section-container .feature-image-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        transform: scale(0.9);
    }
    .section-container .feature-image-wrapper img {
        max-width: 100%;
        height: auto;
    }

    /* If your theme wraps groups with inner containers, keep them full width */
    .section-container > .wp-block-group__inner-container {
        width: 100%;
    }

    .section-container-image {
        order: 2;
    }
}

/* Outer section */
.results-wrapper {
    background-color: #f9f9f9;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    max-width: 1320px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
}

.results-buttons {
    margin-top: 20px;
}

.results-buttons .cta-button-group .button-purple-fill {
    padding: 0;
    margin: 0;
}

.results-left {
    font-size: 1.2rem;
    padding: 2rem;
}

.results-left h2 {
    font-size: 2.5rem;
    font-weight: 550;
}

.results-left p {
    font-size: 1rem;
    font-weight: 350;
}

.results-stats {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    margin: 4rem 0;
    gap: 2rem;
    align-items: stretch;
}

.results-stats h3 {
    font-size: 3.2rem;
}

.results-stats p {
    font-size: 1rem;
    font-weight: 350;
    color: #6f6f6f;
}

@media (max-width: 768px) {
    .results-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
        transform: scale(0.9);
        margin: 0 !important;
        padding: 0 !important;
    }

    .results-left {
        padding: 0rem !important;
        font-size: 1rem;
    }

    .results-left h2 {
        font-size: 2.3rem;
        padding: 1rem 1rem;
    }

    .results-left p {
        font-size: 1.1rem;
        margin-bottom: 0rem !important;
        padding: 0rem !important;
        text-align: left;
    }

    .results-stats.wp-block-columns.is-layout-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem;
        width: 100%;
        margin-bottom: 0 !important;
    }

    .results-stats.wp-block-columns.is-layout-flex > .wp-block-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .results-buttons {
        margin-top: 1rem;
    }

    .results-buttons .cta-button-group .button-purple-outline {
        max-width: 365px;
    }

    /*ovveride from the block group*/
    .wp-block-group .results-buttons {
        padding: 0;
    }
}

/*there is a duplicate here we can try to combine it later*/
.how-it-works-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.how-it-woks-columns {
    margin: 35px auto;
}

.how-it-works-card {
    background-color: #fafafa;
    padding: 2rem;
    border-radius: 1rem;
    height: 100%;
}

.how-it-works-icon {
    background-color: var(--primary-hover);
    color: white;
    margin-bottom: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    width: 48px;
    height: 48px;
}

.how-it-works-card-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .how-it-works-title {
        font-size: 2.25rem;
        margin-bottom: 16px;
        line-height: 1.25;
        text-align: center;
    }

    .how-it-works-subtitle {
        margin-bottom: 36px;
    }

    .how-it-works-card {
        padding: 1.25rem;
        border-radius: 0.875rem;
        text-align: center;
    }

    .how-it-works-icon {
        transform: scale(1.3);
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .how-it-works-card-title {
        font-size: 1.25rem;
        margin: 8px 0;
        line-height: 1.3;
    }
    .how-it-works-card-text {
        text-align: left !important;
    }
}

.contact-form {
    background: #fafafa;
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* Two-column layout for rows */
.form-grid .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-grid .form-row input {
    flex: 1 1 48%;
}

.form-grid .form-row > div {
    flex: 1 1 48%;
}

/* Labels */
label {
    display: block;
    font-weight: 500;
}

/* Single input spacing */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    height: 55px;
    padding: 0.7rem 1rem;
    border: 0.1px solid #ddd;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    background-color: white;
    transition: border-color 0.3s ease;
    margin-top: -1rem;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 2px rgba(108, 63, 207, 0.15);
}

.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 1em;
    font-weight: normal;
    display: block;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #cccccc;
    font-weight: 350;
    font-family: "Roboto", "Roboto Placeholder", sans-serif;
    font-size: 0.9rem;
}

/* Paragraph under form */
.form-note {
    font-size: 0.875rem;
    color: #666;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.contact-form-button {
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.75rem;
    padding: 12px 28px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.contact-form-button:hover {
    background-color: var(--primary-hover);
}

@media (max-width: 768px) {
    .section-columns {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .section-columns .section-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-form {
        margin-left: auto;
        margin-right: auto;
    }

    /* Stack columns */
    .section-columns {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .section-columns .section-column {
        width: 100%;
    }

    /* Contact form centering */
    .contact-form {
        margin-left: auto;
        margin-right: auto;
    }

    /* Labels: align left on mobile */
    .contact-form label {
        text-align: left;
        font-size: 1rem; /* optional: slightly bigger for readability */
        margin-bottom: 1rem;
    }

    /* Inputs & textarea: increase height for touch comfort */
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .wpcf7-not-valid-tip {
        color: #dc3232;
        text-align: left;
    }

    .wpcf7-not-valid-tip:nth-child(even) {
        margin-bottom: 20px;
    }
}

.contact-section p:first-child {
    font-weight: 450;
    font-size: 1.25rem;
}

.contact-section-paragraph {
    margin: 1rem 0 3rem;
}

.icon-gallery-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 2.5rem;
    margin-top: 3rem;
    max-width: 80%;
    align-items: center;
}

/* Each figure takes 1/3 of the row */
.icon-gallery-partners figure {
    flex: 0 0 calc(33.333% - 2.5rem);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 100px;
}

.icon-gallery-partners img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    display: block;
    object-fit: contain;
}

.icon-gallery-partners figure.wp-block-image img {
    padding: 12px;
}

/* Tablet & mobile (<= 768px) */
@media (max-width: 768px) {
    .wp-block-group.icon-gallery.partners img {
        height: 50px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
}

.page-section {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.page-section > .section-column {
    flex: 1 1 48%;
}

@media (max-width: 768px) {
    .page-section .wp-block-columns,
    .page-section .wp-block-group.is-layout-flex {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .page-section > .wp-block-group {
        width: 100% !important;
    }
}

.contact-heading h1 {
    font-size: 3.5rem;
    margin: 3rem 0;
    line-height: 1.2em;
}

@media (max-width: 768px) {
    .contact-heading {
        text-align: center;
        padding: 0rem 0rem !important;
    }

    .contact-heading h1 {
        font-size: 2rem;
    }

    .contact-heading p {
        text-align: left;
        font-size: 1rem;
        margin: 0 auto 1.5rem;
        max-width: 90%;
    }

    .wp-block-group.section-column {
        padding: 0rem;
    }

    .wp-block-group.contact-section {
        padding: 0rem;
    }
}

.terms-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-top: 40px;
}

.terms-section p {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .terms-section {
        text-align: center;
        padding: 0 1rem;
        margin-top: 20px;
    }

    .terms-section h1 {
        font-size: 2rem;
        margin-top: 24px;
    }

    .terms-section p {
        font-size: 1rem;
        font-weight: 400;
        margin-bottom: 24px;
    }
}

.terms-content p {
    margin-bottom: 1rem;
}

.site-footer {
    background-color: #fafafa;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin: 3rem auto 0rem;
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto 2rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-description {
    margin: 1rem 0;
    max-width: 320px;
    line-height: 1.5;
    font-weight: 350;
}

.footer-divider {
    border: none;
    border-top: 1.5px solid rgba(140, 132, 128, 0.12);
    margin: 1.5rem 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

nav.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

nav.footer-links ul {
    list-style: none;
    padding: 0;
}

nav.footer-links ul li {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    display: inline;
}

nav.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

nav.footer-links a:hover {
    color: #555;
}

.footer-copy {
    font-size: 0.85rem;
    color: #777;
}

.theme-credit {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.theme-credit a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

.theme-credit a:hover {
    color: #000;
}

@media (max-width: 600px) {
    .footer-top {
        align-items: center;
        text-align: left;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .theme-credit {
        flex: none;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        width: 100%;
    }
}

/**/

/* Container: overflow & padding */
.testimonial-carousel {
    position: relative;
    max-width: 1300px;
    margin-top: 3rem;
    padding: 3rem;
    background: #fafafa;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .testimonial-carousel {
        padding: 0rem;
    }
}

.testimonial-viewport {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Track: flex row + gap + smooth transition */
.testimonial-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* Each slide = full viewport width */
.testimonial-slide {
    flex: 0 0 100%;
    display: flex;
    gap: 2rem;
    box-sizing: border-box;
}

/* Left column (photo + name + role) */
.testimonial-left {
    flex: 0 0 360px;
    text-align: center;
}
.testimonial-left img {
    width: 360px;
    height: 410px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    display: block;
}
.testimonial-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}
.testimonial-role {
    font-size: 0.9rem;
    color: #666;
}

/* Right column (logo + text + stats) */
.testimonial-right {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.testimonial-company {
    width: 150px;
    margin: 1rem 0;
    letter-spacing: 0.2rem;
}
.testimonial-text {
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 24px;
    max-width: 50ch;
}
.testimonial-stats {
    display: flex;
    gap: 6rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}
.stat .number {
    font-weight: bold;
    font-size: 2.2rem;
}
.stat .label {
    font-weight: 400;
}
.stat .sub {
    font-size: 0.8rem;
    color: #666;
}

/* Prev/Next nav buttons */
.testimonial-nav {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.testimonial-nav .prev,
.testimonial-nav .next {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MOBILE: one exact slide per view, no mixing */
/* ---- HARD STOP any mobile peek/bleed ---- */
@media (max-width: 768px) {
    .testimonial-viewport {
        overflow: hidden;
        padding: 0 !important;
    }

    /* No physical gap between items on the track */
    .testimonial-track {
        gap: 3.5rem !important;
        padding: 0 !important;
    }

    /* Each slide must be exactly the viewport width — not 1px more */
    .testimonial-slide {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
        margin: 0 !important;
        padding: 0 !important;
        border: 0;
    }

    /* Add visual spacing INSIDE the slide without changing its width */
    .testimonial-slide .wp-block-group__inner-container,
    .testimonial-slide-inner {
        box-sizing: border-box;
        padding: 14px;
        width: 100%;
    }

    /* Stack columns so the fixed 360px image doesn’t force overflow */
    .testimonial-slide {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .testimonial-left,
    .testimonial-right {
        min-width: 0;
        width: 100%;
    }

    .testimonial-left {
        flex: 0 0 auto;
        text-align: center;
    }

    .testimonial-right .testimonial-company {
        flex: 0 0 auto;
        text-align: center;
    }

    .testimonial-left img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        display: block;
        border-radius: 15px;
    }

    .testimonial-stats {
        gap: 1px;
        flex-wrap: wrap;
    }

    .stat {
        text-align: center;
        transform: scale(1);
    }
}

.faq-card {
    background-color: #fafafa;
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
}

.faq-card p:first-child {
    font-weight: 450;
    font-size: 1.2rem;
}

.faq-card p:last-child {
    font-weight: 350;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .faq-card {
        padding: 1.25rem 0;
        margin: 2.5rem auto;
        max-width: 90%;
    }

    .faq-card p {
        font-size: 1.05rem;
        padding: 0rem 1rem;
    }

    .wp-block-group.faq-card {
        padding: 1rem 0 !important;
    }
    .entry-content:not(.doorboost-front-main .entry-content) {
        padding: 10rem 0rem;
    }
}
