/* 
   --- MODULAR BLOCK SYSTEM THEME ---
   This file contains all semantic hooks and styling for the 
   modular block system (Hero, Feature, Cards, Gallery, etc.)
*/

.cms-block {
    padding: calc(var(--isos-space-section, 5rem) * var(--isos-spacing-scale, 1)) 0;
    /* Standard py-5 equivalent */
    position: relative;
}

.cms-block .block-title {
    font-family: var(--isos-font-heading);
    margin-bottom: var(--isos-space-lg, 3rem);
    text-align: left;
}

.cms-block .block-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--isos-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--isos-primary);
    color: var(--isos-white);
    border: none;
    border-radius: var(--isos-radius-sm, 4px);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cms-block .block-btn:hover {
    background-color: var(--isos-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--isos-white);
}

.cms-block .block-btn.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--isos-primary);
    color: var(--isos-primary);
}

.cms-block .block-btn.secondary-btn:hover {
    background-color: var(--isos-primary);
    color: var(--isos-white);
}

/* --- CMS SEMANTIC HERO SYSTEM --- */
.block-hero {
    --hero-bg: var(--isos-bg);
    --hero-text: var(--isos-text);
    width: 100%;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: center;
}

@media (min-width: 992px) {
    .block-hero {
        min-height: calc(85vh - 81px);
    }
}

.block-hero.theme-default {
    --hero-bg: var(--isos-bg);
    --hero-text: var(--isos-text);
}

.block-hero.theme-light {
    --hero-bg: var(--isos-light-bg);
    --hero-text: var(--isos-light-text);
}

/* HERO SECTION CONTENT LAYOUT */
.hero-content-layer {
    position: relative;
    z-index: 2;
    height: 100%;
    pointer-events: none;
}

.hero-content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-content-inner {
    flex: 1;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.hero-text-card {
    padding: var(--isos-space-lg, 3rem);
    max-width: 600px;
}

/* --- LAYOUT VARIANTS --- */

/* Vertical / Centered */
.hero-vertical .hero-content-inner {
    justify-content: center;
    text-align: center;
}

.hero-vertical .hero-text-card {
    max-width: 800px;
}

/* Split Layouts (50/50, 66/33) */
.hero-split-50 .hero-content-inner,
.hero-split-66 .hero-content-inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    width: 100%;
}

.hero-split-50 .hero-text-card {
    grid-column: span 6;
}

.hero-split-66 .hero-text-card {
    grid-column: span 8;
}

.hero-flipped.hero-split-50 .hero-text-card {
    grid-column: 7 / span 6;
}

.hero-flipped.hero-split-66 .hero-text-card {
    grid-column: 5 / span 8;
}

/* Contained Split Layouts: Remove padding to align with container edge */
.hero-contained.hero-split-50 .hero-text-card,
.hero-contained.hero-split-66 .hero-text-card {
    padding: 0;
}

/* Overlay Layouts */
.hero-overlay .hero-content-inner {
    justify-content: flex-start;
}

.hero-flipped.hero-overlay .hero-content-inner {
    justify-content: flex-end;
}

@media (max-width: 991px) {

    .hero-split-50 .hero-content-inner,
    .hero-split-66 .hero-content-inner {
        display: block;
    }

    .hero-text-card {
        padding: 2rem;
        max-width: 100%;
    }
}

.block-hero.theme-dark {
    --hero-bg: var(--isos-dark-bg);
    --hero-text: var(--isos-dark-text);
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.hero-bg-layer .bg-color-part {
    flex: 1;
    background-color: var(--hero-bg);
}

.hero-bg-layer .bg-media-part {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.bg-media-part img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text-card {
    background-color: transparent;
    color: var(--hero-text);
}

.hero-text-card h1,
.hero-text-card h2,
.hero-text-card p,
.hero-text-card .block-title,
.hero-text-card .block-subtitle {
    color: var(--hero-text) !important;
}

.hero-text-card .block-title {
    font-size: var(--isos-h1, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-text-card .block-subtitle {
    font-family: var(--isos-font-body);
    font-size: var(--isos-size-lg, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

@media (min-width: 992px) {
    .hero-vertical .hero-bg-layer {
        flex-direction: column;
    }

    .hero-vertical .hero-bg-layer .bg-color-part {
        flex: 0 0 50%;
    }

    .hero-vertical .hero-bg-layer .bg-media-part {
        flex: 0 0 50%;
    }

    .hero-vertical .hero-content-layer {
        justify-content: flex-start;
    }

    .hero-vertical .hero-content-inner {
        padding: 0;
        min-height: calc(42.5vh - 40px);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-vertical .block-title {
        text-align: center;
    }

    .hero-vertical.hero-flipped .hero-content-layer {
        justify-content: flex-end;
    }

    .hero-vertical.hero-flipped .hero-bg-layer {
        flex-direction: column-reverse;
    }

    .hero-split-50 .hero-bg-layer {
        flex-direction: row;
    }

    .hero-split-50 .bg-color-part {
        flex: 0 0 50%;
    }

    .hero-split-50 .bg-media-part {
        flex: 0 0 50%;
    }

    .hero-split-50 .hero-content-inner {
        padding-right: 4rem;
    }

    .hero-split-50.hero-flipped .hero-content-inner {
        padding-right: 0;
        padding-left: 4rem;
    }

    .hero-split-66 .hero-bg-layer {
        flex-direction: row;
    }

    .hero-split-66 .bg-color-part {
        flex: 0 0 66.666%;
    }

    .hero-split-66 .bg-media-part {
        flex: 0 0 33.333%;
    }

    .hero-split-66 .hero-content-inner {
        padding-right: 4rem;
    }

    .hero-split-66.hero-flipped .hero-content-inner {
        padding-right: 0;
        padding-left: 4rem;
    }

    .hero-overlay .hero-bg-layer .bg-color-part {
        display: none;
    }

    .hero-overlay .hero-bg-layer .bg-media-part {
        flex: 1;
    }

    .hero-overlay .hero-text-card {
        padding: 4rem 3.5rem;
        background-color: var(--hero-bg);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        border-radius: 4px;
        width: 100%;
        max-width: 520px;
    }

    .hero-flipped .hero-bg-layer {
        flex-direction: row-reverse;
    }
}

/* --- CMS SEMANTIC BLOCK UTILITIES --- */
.block-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--isos-radius-md, 0.5rem);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.block-placeholder {
    background-color: var(--isos-surface);
    border-radius: var(--isos-radius-md, 0.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    width: 100%;
}

.placeholder-text {
    color: var(--isos-text-muted);
}

.block-layout-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 -2.5rem;
    /* g-5 equivalent logic half */
}

.block-layout-row>[class*="col-"] {
    padding: 0 2.5rem;
}

.block-content-center {
    max-width: 800px;
    margin: 0 auto;
}

/* --- BLOCK SPECIFIC REFINEMENTS --- */

/* Text Block */
.block-text {
    --text-bg: transparent;
    --text-color: var(--isos-text);
}

.block-text.theme-light {
    --text-bg: var(--isos-light-bg);
}

.block-text.theme-dark {
    --text-bg: var(--isos-dark-bg);
    --text-color: var(--isos-dark-text);
}

.block-text {
    background-color: var(--text-bg);
    color: var(--text-color);
}

.block-text .block-title {
    margin-bottom: var(--isos-space-md, 2rem);
    color: inherit;
}

.block-text .rich-text p {
    font-family: var(--isos-p-font, inherit);
    font-size: var(--isos-size-md, 1.125rem);
    line-height: var(--isos-p-line-height, 1.8);
    color: inherit;
}

/* Feature */
.block-feature {
    --feature-bg: transparent;
    --feature-text: var(--isos-text);
    --feature-text-muted: var(--isos-text-muted);
}

.block-feature.theme-light {
    --feature-bg: var(--isos-light-bg);
}

.block-feature.theme-dark {
    --feature-bg: var(--isos-dark-bg);
    --feature-text: var(--isos-dark-text);
    --feature-text-muted: var(--isos-dark-text);
}

.block-feature {
    background-color: var(--feature-bg);
    color: var(--feature-text);
}

.block-feature .block-title {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: var(--isos-h2, 2.5rem);
    color: inherit;
}

.block-feature .block-body p {
    margin-bottom: 2.5rem;
    font-size: var(--isos-size-md, 1.1rem);
    line-height: var(--isos-p-line-height, 1.7);
    color: var(--isos-text-muted);
    font-family: var(--isos-p-font, inherit);
}

.block-feature .block-image {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.block-feature:hover .block-image {
    transform: scale(1.03);
}

/* Cards */
.block-cards {
    --cards-bg: transparent;
    --cards-title-color: var(--isos-text);
}

.block-cards.theme-light {
    --cards-bg: var(--isos-light-bg);
}

.block-cards.theme-dark {
    --cards-bg: var(--isos-dark-bg);
    --cards-title-color: var(--isos-dark-text);
}

.block-cards {
    background-color: var(--cards-bg);
}

.block-cards .block-title {
    color: var(--cards-title-color);
}

/* --- FEATURE CARDS --- */
.block-cards .block-card-item {
    transition: all 0.3s ease;
    border: 1px solid var(--isos-border);

    /* Global Settings (Design Engine) */
    background-color: var(--isos-card-bg, #ffffff);
    color: var(--isos-card-text, inherit);
    border-radius: var(--isos-card-radius, 8px);

    /* Critical: Clip images to radius */
    overflow: hidden !important;
    position: relative;
    transform: translateZ(0);
    /* Force GPU clip on WebKit */
    padding: 0 !important;
    /* Eliminate internal gaps */

    /* Alignment */
    text-align: var(--isos-card-align, center) !important;

    box-shadow: var(--isos-card-shadow, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Remove inverted logic, rely on Global Settings */
.block-cards.theme-dark .block-card-item {
    /* Optional: override border for dark themes if needed, but background should be global */
    border-color: rgba(255, 255, 255, 0.1);
}

/* Broaden selector to catch any image inside the card */
.block-cards .block-image,
.block-cards .block-card-item img {
    height: 220px;
    width: 100%;
    object-fit: cover;

    /* Critical Physics Fixes */
    display: block;
    /* Kills inline-block whitespace/gap */
    margin: 0 !important;
    /* Kills any browser default margin */
    padding: 0;

    border-radius: 0 !important;
    box-shadow: none;
    border: none;
}

.block-cards .block-content {
    padding: var(--isos-space-md, 2rem) 2.5rem 1rem 2.5rem;
    flex: 1;
    text-align: inherit;
    /* Ensure parents alignment flows down */
}

.block-cards .block-card-title {
    font-family: var(--isos-font-heading);
    font-size: var(--isos-size-lg, 1.25rem);
    margin-bottom: 0.75rem;
    color: inherit;
    /* Allow global text override to work */
}

.block-cards .block-card-body p {
    font-family: var(--isos-p-font, inherit);
    font-size: var(--isos-size-sm, 0.9rem);
    color: inherit;
    /* Inherit global text override (e.g. White) */
    line-height: var(--isos-p-line-height, 1.5);
}

.block-cards .block-actions {
    padding: 0 2.5rem 2.5rem 2.5rem;
}

.block-cards .block-card-item:hover {
    transform: var(--isos-card-hover-transform, translateY(-5px));
    box-shadow: var(--isos-card-hover-shadow, 0 1rem 3rem rgba(0, 0, 0, 0.1));
}

/* Gallery */

.block-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .block-gallery .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .block-gallery .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.block-gallery .gallery-item-wrapper {
    transition: transform 0.3s ease;
    border-radius: var(--isos-radius-md, 0.5rem);
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    display: block;
}

.block-gallery .block-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: 0;
    box-shadow: none;
    margin: 0px !important;
}

.block-gallery .gallery-item-wrapper:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Form Block */
.section-form.theme-dark {
    background-color: var(--isos-dark-bg);
    color: var(--isos-dark-text);
}

.section-form.theme-light {
    background-color: var(--isos-light-bg);
}

.section-form.theme-accent {
    background-color: var(--isos-primary);
    color: var(--isos-white);
}

.section-form .form-block-container {
    background-color: var(--isos-bg);
    padding: var(--isos-space-lg, 3rem);
    border-radius: var(--isos-radius-md, 0.5rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .section-form .form-block-container {
        padding: 2rem;
    }
}

.section-form:hover .form-block-container {
    transform: translateY(-5px);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.15);
}

.form-block-container.container-on-dark {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    color: var(--isos-text);
}

.section-form .section-title {
    font-family: var(--isos-font-heading);
    font-size: var(--isos-h3, 2rem);
    margin-bottom: 0.75rem;
    color: var(--isos-text);
    text-align: left;
    /* Reset from block default */
}

.section-form .section-description p {
    font-family: var(--isos-p-font, inherit);
    font-size: var(--isos-size-md, 1.125rem);
    color: var(--isos-text-muted);
    margin-bottom: 2.5rem;
    line-height: var(--isos-p-line-height, 1.6);
}

.section-full-width .section-title {
    font-size: var(--isos-h1, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-full-width.theme-accent .section-title,
.section-full-width.theme-accent .section-description {
    color: var(--isos-white);
}

.section-full-width.theme-dark .section-title {
    color: var(--isos-dark-text);
}

.section-full-width .section-description {
    font-size: var(--isos-size-lg, 1.25rem);
    opacity: 0.9;
}

.section-full-width .full-section-wrapper {
    width: 100%;
}

@media (min-width: 992px) {
    .section-full-width .full-section-wrapper {
        padding: var(--isos-space-lg, 4rem) 0;
    }
}

/* Form Notices */
.form-config-notice {
    padding: 1rem 1.5rem;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: var(--isos-radius-md, 0.5rem);
    color: #856404;
    margin-bottom: 1.5rem;
    font-family: var(--isos-font-body);
}

.form-unavailable-notice {
    padding: 2.5rem;
    border: 2px solid var(--isos-primary);
    border-radius: var(--isos-radius-lg, 1rem);
    background-color: rgba(var(--isos-primary-rgb), 0.05);
    /* User asked for stroke in primary and no shadow */
    margin-bottom: 2rem;
    box-shadow: none !important;
    font-family: var(--isos-font-body);
}

.form-unavailable-notice .notice-content {
    display: flex;
    align-items: center;
}

.form-unavailable-notice .notice-icon {
    font-size: var(--isos-h2, 2.5rem);
    margin-right: 1.5rem;
    color: var(--isos-primary);
}

.form-unavailable-notice .notice-heading {
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: var(--isos-secondary);
}

.form-unavailable-notice .notice-text {
    margin-bottom: 0;
    color: var(--isos-text-muted);
}

/* Modal Stying Overrides */
.modal-content {
    border-radius: var(--isos-radius-md, 8px);
    overflow: hidden;
}

.modal-header {
    background: transparent;
}

/* Dynamic Form Inner Elements */
.dynamic-form .field-group {
    margin-bottom: 1.25rem;
}

.dynamic-form .field-label {
    display: block;
    font-family: var(--isos-font-body);
    font-size: var(--isos-size-sm, 0.875rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--isos-text);
}

.dynamic-form .form-control,
.dynamic-form .form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--isos-border);
    border-radius: var(--isos-radius-sm, 4px);
    background-color: var(--isos-bg);
    transition: all 0.2s ease;
}

.dynamic-form .form-control:focus,
.dynamic-form .form-select:focus {
    border-color: var(--isos-primary);
    box-shadow: 0 0 0 4px rgba(var(--isos-primary-rgb), 0.1);
    outline: none;
}

.dynamic-form .form-actions {
    margin-top: var(--isos-space-md, 2rem);
}

.modular-form-popup .submit-button {
    width: 100%;
}

/* --- FULL SECTION VARIANT --- */
.full-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--isos-space-lg, 4rem);
    align-items: center;
    padding: var(--isos-space-lg, 4rem) 0;
}

@media (max-width: 991px) {
    .full-section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.full-section-info .section-title {
    text-align: left;
}

.full-section-info .section-description {
    text-align: left;
    margin-bottom: 0;
}

.dynamic-form .submit-button {
    display: block;
    width: 100%;
    font-family: var(--isos-font-heading);
    background-color: var(--isos-primary);
    border: 1px solid var(--isos-primary);
    color: var(--isos-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem;
    border-radius: var(--isos-radius-sm, 4px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dynamic-form .submit-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dynamic-form .submit-button:disabled {
    background-color: var(--isos-border);
    border-color: var(--isos-border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Accessibility */
.cms-block a:focus,
.cms-block button:focus {
    outline: 3px solid var(--isos-primary);
}

/* Accessibility */
.cms-block a:focus,
.cms-block button:focus {
    outline: 3px solid var(--isos-primary);
}


/* File Download Block */
.block-download {
    --dl-bg: transparent;
    --dl-border: var(--isos-border);
}

.block-download.theme-light {
    --dl-bg: var(--isos-light-bg);
    --dl-border: transparent;
}

.block-download.theme-dark {
    --dl-bg: var(--isos-dark-bg);
    --dl-border: transparent;
    color: var(--isos-dark-text);
}

.block-download .download-card {
    background-color: var(--dl-bg);
    border: 1px solid var(--dl-border);
    padding: var(--isos-space-md, 2rem);
    border-radius: var(--isos-radius-md, 0.5rem);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.block-download .download-icon {
    font-size: var(--isos-h2, 2.5rem);
    color: var(--isos-primary);
    margin-right: 1.5rem;
}

.block-download .download-info {
    flex: 1;
}

.block-download .download-title {
    font-size: var(--isos-size-lg, 1.25rem);
    margin-bottom: 0.25rem;
    font-family: var(--isos-font-heading);
}

.block-download .download-meta {
    font-size: var(--isos-size-sm, 0.875rem);
    color: var(--isos-text-muted);
}

.block-download .download-btn {
    background-color: var(--isos-primary);
    color: var(--isos-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--isos-radius-sm, 4px);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.block-download .download-btn:hover {
    background-color: var(--isos-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Custom Image Block */
.block-custom-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--isos-radius-md, 0.5rem);
}

.block-custom-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.block-custom-image:hover img {
    transform: scale(1.02);
}

.block-custom-image figure {
    margin: 0;
}

.block-custom-image figcaption {
    margin-top: 0.5rem;
    color: var(--isos-text-muted);
    font-size: var(--isos-size-sm, 0.9rem);
    text-align: center;
}


.block-file-card {
    display: flex;
    align-items: center;
    background-color: var(--isos-bg);
    border: 1px solid var(--isos-border);
    border-radius: var(--isos-radius-md, 0.5rem);
    padding: var(--isos-space-md, 1.5rem);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--isos-text);
    position: relative;
    overflow: hidden;
}

.block-file-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--isos-primary);
}

.block-file-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.block-file-icon {
    font-size: var(--isos-h2, 2.5rem);
    margin-right: 1.5rem;
    opacity: 0.8;
}

.block-file-info {
    flex: 1;
}

.block-file-title {
    font-family: var(--isos-font-heading);
    font-size: var(--isos-size-md, 1.1rem);
    margin-bottom: 0.25rem;
    color: var(--isos-text);
}

.block-file-meta {
    font-size: var(--isos-size-sm, 0.85rem);
    color: var(--isos-text-muted);
    font-family: var(--isos-font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.block-file-download-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(var(--isos-primary-rgb), 0.1);
    color: var(--isos-primary);
    border-radius: var(--isos-radius-sm, 4px);
    font-size: var(--isos-size-sm, 0.9rem);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.block-file-card:hover .block-file-download-btn {
    background-color: var(--isos-primary);
    color: var(--isos-white);
}

.block-file-download-btn:hover {
    text-decoration: none;
}

/* =========================================
   MIGRATED MODULAR BLOCKS
   ========================================= */
/* =========================================
   Semantic Block Styling
   (Overrides for Custom Blocks)
   ========================================= */

/* Alerts */
.block-alert {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: var(--isos-radius-md, 0.5rem);
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.block-alert-icon {
    font-size: var(--isos-h4, 1.5rem);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.block-alert-content {
    flex: 1;
}

.block-alert-info {
    background-color: var(--isos-light-bg);
    border-color: var(--isos-border);
    color: var(--isos-primary);
}

.block-alert-success {
    background-color: var(--isos-success-bg);
    border: 1px solid var(--isos-success-border);
    color: var(--isos-success-text);
}

.block-alert-warning {
    background-color: var(--isos-warning-bg);
    border: 1px solid var(--isos-warning-border);
    color: var(--isos-warning-text);
}

.block-alert-danger {
    background-color: var(--isos-danger-bg);
    border: 1px solid var(--isos-danger-border);
    color: var(--isos-danger-text);
}

/* File Cards */
.block-file-card {
    margin: 1.5rem 0;
}

.block-file-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--isos-border);
    border-radius: var(--isos-radius-sm, 0.375rem);
    background-color: var(--isos-background-soft, var(--isos-surface));
}

.block-file-icon {
    font-size: var(--isos-h3, 2rem);
}

.block-file-info {
    flex-grow: 1;
}

.block-file-title {
    font-weight: 700;
}

.block-file-meta {
    font-size: var(--isos-size-sm, 0.875em);
    color: var(--isos-text-muted);
}

.block-file-download-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: var(--isos-size-sm, 0.875rem);
    color: var(--isos-text);
    border: 1px solid var(--isos-text);
    border-radius: var(--isos-radius-sm, 0.25rem);
    text-decoration: none !important;
    /* Override tiptap default underline */
    background: transparent;
    transition: all 0.2s;
}

.block-file-download-btn:hover {
    background: var(--isos-text);
    color: var(--isos-white);
}

/* Images */
.block-image {
    margin: 1.5rem 0;
}

.block-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--isos-radius-sm, 0.25rem);
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.block-image-caption {
    margin-top: 0.5rem;
    text-align: center;
    color: var(--isos-text-muted);
    font-size: var(--isos-size-sm, 0.875rem);
}

/* Videos */
.block-video {
    margin: 1.5rem 0;
}

.block-video-content {
    position: relative;
    width: 100%;
    /* 16:9 Aspect Ratio */
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--isos-dark-bg);
    border-radius: var(--isos-radius-sm, 0.25rem);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

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

.block-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--isos-text-muted);
}

.block-video-caption {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--isos-text-muted);
    font-style: italic;
    font-size: var(--isos-size-sm, 0.875rem);
}

/* --- NEWS & UPDATES --- */
.news-header-section {
    padding: var(--isos-space-xl, 5rem) 0 var(--isos-space-lg, 3rem);
    background-color: var(--isos-bg);
}

.news-title {
    font-size: var(--isos-h1, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-subtitle {
    font-size: var(--isos-size-lg, 1.25rem);
    color: var(--isos-text-dark);
}

.news-feed-section {
    padding-bottom: var(--isos-space-xl, 5rem);
}

.news-pinned-card {
    background-color: var(--isos-surface);
    border-radius: var(--isos-radius-lg, 1.5rem);
    overflow: hidden;
    margin-bottom: 4rem;
    border: 1px solid var(--isos-border);
}

.news-pinned-image-col {
    padding: 0;
}

.news-pinned-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.news-pinned-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.news-pinned-label {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--isos-primary);
    margin-bottom: 1rem;
}

.news-pinned-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--isos-dark-bg) !important;
}

.news-pinned-excerpt {
    font-size: 1.125rem;
    color: var(--isos-text-muted);
    margin-bottom: 2rem;
}

.news-btn-primary {
    display: inline-block;
    background-color: var(--isos-primary);
    color: var(--isos-white);
    padding: 0.75rem 2rem;
    border-radius: var(--isos-radius-md, 0.5rem);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.news-btn-primary:hover {
    background-color: var(--isos-secondary);
    color: var(--isos-white);
}

.news-grid-col {
    margin-bottom: 2rem;
}

.news-card {
    border: 1px solid var(--isos-border);
    border-radius: var(--isos-radius-md, 1rem);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.05);
}

.news-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.875rem;
    color: var(--isos-text-muted);
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.news-card-title a {
    color: var(--isos-text);
    text-decoration: none;
}

.news-card-title a:hover {
    color: var(--isos-primary);
}

.news-card-excerpt {
    font-size: 1rem;
    color: var(--isos-text-muted);
    flex: 1;
    margin-bottom: 1.5rem;
}

.news-btn-outline {
    color: var(--isos-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.news-btn-outline:hover {
    text-decoration: underline;
}

.news-pinned-placeholder,
.news-card-placeholder {
    background-color: var(--isos-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--isos-border);
    font-size: 4rem;
}

.news-pinned-placeholder {
    height: 100%;
    min-height: 400px;
}

.news-card-placeholder {
    height: 240px;
}


/* --- PREMIUM MODULAR REVISIONS: VIDEO HERO --- */
.block-video-hero {
    min-height: 70vh;
    max-height: 700px;
    /* Cap height to prevent overpowering */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--isos-dark-bg, #111);
}

@media (min-width: 992px) {
    .block-video-hero {
        min-height: calc(70vh - 81px);
    }
}

.video-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Scaling Logic */
.video-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-hero-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115vw;
    /* Wider than view to hide YT bars */
    height: 115vh;
    /* Taller than view */
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Explicitly above video */
}

.video-hero-content-layer {
    position: relative;
    z-index: 10;
    /* Topmost stack */
    width: 100%;
    pointer-events: auto;
}

.video-hero-content-card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 2rem;
    max-width: 800px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    margin: 4rem auto;
    opacity: 1 !important;
}

@media (min-width: 1200px) {
    .video-hero-content-card {
        max-width: 50%;
        margin-left: 0;
    }
}

.video-hero-title {
    font-size: 3rem;
    /* Equivalent to display-4 */
    font-weight: 700;
    /* Equivalent to fw-bold */
    line-height: 1.1;
    margin: 0 3rem 2rem 0;
    font-family: var(--isos-font-heading, "sans-serif");
}

h1.video-hero-title {
    color: var(--isos-white) !important;
}

.video-hero-subtitle {
    font-family: var(--isos-font-body);
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.video-hero-callout {
    color: var(--isos-primary);
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 1rem;
    font-size: 2.3rem;
    line-height: 1.2;
}

.video-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Redefining buttons to be fully semantic and independent */
.video-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .3rem 1rem .6rem 1rem;
    /* Equivalent to btn-lg + px-5 */
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: var(--isos-btn-radius, 0.5rem);
    border: 2px solid transparent;
}

.video-hero-btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 1.0);
    background: transparent;
}

.video-hero-btn-primary {
    background: var(--isos-primary);
    color: #ffffff;
    border-color: var(--isos-primary);
}

.video-hero-btn-primary:hover {
    background: #ffffff;
    color: var(--isos-primary);
    border-color: #ffffff;
}

.video-hero-btn-outline-primary {
    color: var(--isos-primary);
    border-color: var(--isos-primary);
    background: transparent;
}

.video-hero-btn-outline-primary:hover {
    background: var(--isos-primary);
    color: #ffffff;
    border-color: var(--isos-primary);
}

.video-hero-btn-link {
    background: transparent;
    color: #ffffff;
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.video-hero-btn-link:hover {
    color: var(--isos-primary);
}

.video-hero-btn-outline-light:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Animations */
.animate-up-1,
.animate-up-2,
.animate-up-3 {
    animation: isosFadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.animate-up-2 {
    animation-delay: 0.2s;
}

.animate-up-3 {
    animation-delay: 0.4s;
}

@keyframes isosFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@media (max-width: 991px) {
    .video-hero-content-card {
        max-width: 100%;
        padding: 2.5rem 1.5rem;
        margin: 2rem 1rem;
        border-radius: 1.5rem;
    }
}

/* Mobile Refinements (<768px) */
@media (max-width: 767px) {
    .block-video-hero {
        min-height: 60vh;
        max-height: none;
    }

    .video-hero-bg video,
    .video-hero-bg iframe {
        display: none !important;
        /* Hide video on mobile for performance */
    }

    .video-hero-bg {
        background-image: var(--hero-fallback, none);
        background-size: cover;
        background-position: center;
        background-color: #111;
    }

    .video-hero-content-card {
        margin: 0;
        border-radius: 0;
        padding: 3rem 1.5rem;
        background: rgba(0, 0, 0, 0.85);
    }

    .video-hero-title {
        font-size: 2.3rem !important;
    }

    .video-hero-subtitle {
        font-size: 1.1rem !important;
    }

    .video-hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .video-hero-btn {
        width: 100%;
    }
}

.fw-heavy {
    font-weight: 900 !important;
}

/* Responsive Line Break */
.hero-br {
    display: block;
}

@media (max-width: 991px) {
    .hero-br {
        display: inline;
    }

    .hero-br::before {
        content: " ";
    }
}

/* --- FEATURE ICONS BLOCK --- */
.block-feature-icons {
    padding: var(--isos-space-xl, 5rem) 0;
}

.feature-icons-container {
    text-align: center;
}

.feature-icons-section-title {
    margin-bottom: var(--isos-space-lg, 3rem);
    font-size: var(--isos-h2-size, 2.5rem);
}

.feature-icons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 2rem;
}

.feature-icons-item {
    flex: 1 1 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: transparent;
    color: var(--isos-primary);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--isos-text);
}

.feature-icon-text {
    color: inherit;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Mobile Stacking */
@media (max-width: 767px) {
    .feature-icons-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-icons-item {
        width: 100%;
        max-width: 100%;
    }
}

.block-two-column-media {
    position: relative;
    padding: 6rem 0;
    background-color: var(--isos-bg);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.two-column-bleed-layer {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
}

.block-two-column-media[data-layout="image-right"] .two-column-bleed-layer {
    right: 0;
}

.block-two-column-media[data-layout="image-left"] .two-column-bleed-layer {
    left: 0;
}

.two-column-bleed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Circular Border Radius on inner edge - Desktop Only */
.block-two-column-media[data-layout="image-right"] .two-column-bleed-image {
    border-top-left-radius: 500px;
    border-bottom-left-radius: 500px;
}

.block-two-column-media[data-layout="image-left"] .two-column-bleed-image {
    border-top-right-radius: 500px;
    border-bottom-right-radius: 500px;
}

.block-two-column-media .container {
    position: relative;
    z-index: 2;
}

.two-column-content-wrapper {
    padding: 2rem 0;
}

.block-two-column-media[data-layout="image-right"] .two-column-content-wrapper {
    padding-right: 4rem;
}

.block-two-column-media[data-layout="image-left"] .two-column-content-wrapper {
    padding-left: 4rem;
}

.two-column-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
}

.two-column-actions {
    margin-top: 2.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .block-two-column-media {
        padding: 4rem 0;
        min-height: auto;
        display: block;
    }

    .two-column-content-wrapper {
        padding: 0 !important;
        margin-bottom: 3rem;
    }

    .two-column-media-pane {
        width: 100%;
        border-radius: 2rem;
        overflow: hidden;
        aspect-ratio: 16 / 10;
        margin-top: 2rem;
    }

    .two-column-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/* --- Quote & Media Block --- */
.block-quote-media {
    padding: 6rem 0;
    background-color: var(--isos-bg, #fff);
}

.quote-media-heading {
    margin-bottom: 3rem;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.quote-media-heading .heading-light {
    color: var(--isos-primary, #C8102E);
    font-size: var(--isos-h2-size, 3rem);
    font-weight: 400;
}

.quote-media-heading .heading-heavy {
    color: var(--isos-primary, #C8102E);
    font-size: var(--isos-h1-size, 3rem);
    font-weight: 800;
}

.quote-media-body {
    border: 5px solid var(--isos-dark, #1A1A1A) !important;
    border-width: 0px 0 0px 5px !important;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 0 0 2.5rem 0;
    box-shadow: none;
    margin-left: 2.5rem
}

.quote-media-body .quote-text {
    font-size: 1.35rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--isos-text-dark, #333);
    margin-bottom: 1.5rem;
}

.quote-media-body .quote-cite {
    display: block;
    font-family: var(--isos-font-heading, inherit);
    font-weight: 800;
    font-style: normal;
    font-size: 1.1rem;
    color: var(--isos-dark-text, #000);
}

.block-quote-media .two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.block-quote-media .two-column-media-pane {
    height: 100%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 180px;
}

.block-quote-media .two-column-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .block-quote-media .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quote-media-heading .heading-light {
        font-size: 2.2rem;
    }

    .quote-media-heading .heading-heavy {
        font-size: 3rem;
    }

    .block-quote-media .two-column-content-column {
        order: 1;
    }

    .block-quote-media .two-column-media-pane {
        order: 2;
        min-height: 350px;
        border-radius: 2rem;
    }
}

/* --- LATEST NEWS SECTION --- */
.latest-news-section {
    background-color: var(--isos-bg);
    padding: 5rem 0;
    overflow: hidden;
}

.news-section-title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    font-family: var(--isos-font-heading);
    color: var(--isos-primary);
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 3rem 0;
}

.news-carousel-outer {
    width: 100%;
    background-color: #efefef;
    padding: 4rem 0 3rem;
}

@media (min-width: 768px) {
    .news-carousel-outer {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.news-scroll-container {
    display: flex;
    gap: 3.5rem;
    overflow-x: auto;
    padding: 0 1rem 2rem 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.news-scroll-container::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767px) {
    .news-scroll-container {
        scroll-snap-type: x mandatory;
    }
}

.news-card-item {
    flex-shrink: 0;
    width: 400px;
    scroll-snap-align: start;
}

@media (max-width: 575px) {
    .news-card-item {
        width: 85vw;
    }
}

.news-card {
    height: 100%;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
}

.news-card-image-wrapper {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover .news-card-img {
    transform: scale(1.08);
}

.news-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2.25rem;
}

.news-card-title {
    font-size: 1.5rem;
    line-height: 1.25;
    font-family: var(--isos-font-heading);
    color: var(--isos-dark-bg);
    font-weight: 700;
    margin-bottom: 0.75rem;
    /* Multiline truncation */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-date {
    font-size: 0.95rem;
    color: var(--isos-text-muted);
    font-weight: 500;
    margin-bottom: 2rem;
}

.news-card-action {
    margin-top: auto;
}

.news-card-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--isos-primary);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(var(--isos-primary-rgb), 0.2);
}

.news-card-btn:hover {
    background-color: var(--isos-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--isos-primary-rgb), 0.3);
    color: #fff !important;
}

/* Controls */
.news-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.news-nav {
    display: flex;
    gap: 1rem;
}

.news-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--isos-dark-bg);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-nav-btn:hover {
    background-color: var(--isos-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(var(--isos-primary-rgb), 0.3);
}

.news-nav-btn i {
    font-size: 1.25rem;
}

.see-all-news-link {
    font-weight: 700;
    color: var(--isos-primary) !important;
    text-decoration: underline !important;
    font-size: 1.125rem;
    transition: color 0.2s ease;
}

.see-all-news-link:hover {
    color: var(--isos-primary-dark) !important;
}

/* --- OUR SUPPORTERS SECTION --- */
.supporters-section {
    background-color: #fff;
    padding: 6rem 0;
    overflow: hidden;
}

/* Defer to global .container */
.supporters-section .container {
    padding-inline: 1.5rem;
}

.supporters-header {
    margin-bottom: 4rem;
    max-width: 300px;
    /* To match screenshot width for the divider */
}

@media (max-width: 767px) {
    .supporters-header {
        max-width: 100%;
        text-align: center;
    }
}

.supporters-title {
    color: var(--isos-primary);
    font-family: var(--isos-font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.supporters-divider {
    height: 4px;
    background-color: #efefef;
    width: 100%;
}

.supporters-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem 1.5rem;
}

.supporter-item {
    flex: 0 0 calc(20% - 1.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

@media (max-width: 1199px) {
    .supporter-item {
        flex: 0 0 calc(25% - 1.5rem);
    }
}

@media (max-width: 991px) {
    .supporter-item {
        flex: 0 0 calc(33.333% - 1.5rem);
    }
}

@media (max-width: 575px) {
    .supporter-item {
        flex: 0 0 calc(50% - 1rem);
        gap: 2rem 1rem;
    }
}

.supporter-logo-wrapper {
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.supporter-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.supporter-link:hover .supporter-logo-img,
.supporter-logo-wrapper:hover .supporter-logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
}

.supporter-link {
    display: block;
    width: 100%;
    text-decoration: none !important;
}

/* Promo Cards Block */
.promo-cards-block {
    padding: 4rem 0;
    background-color: #ffffff;
}

.promo-cards-title {
    font-family: var(--isos-font-heading, "sans-serif");
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.promo-cards-intro {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4a4a4a;
    max-width: 900px;
    margin-bottom: 3rem;
}

.promo-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Align to left to match growth better */
    gap: 2rem;
    margin: 0 auto;
    width: 100%;
}

.promo-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-decoration: none !important;
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 300px;
}

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

.promo-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    max-height: 250px;
}

.promo-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-card:hover .promo-card-image {
    transform: scale(1.05);
}

.promo-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.promo-card-title {
    font-family: var(--isos-font-heading, "sans-serif");
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.promo-card-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.promo-card-button {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: var(--isos-primary, #e31e24);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    border: none;
}

.promo-card-button:hover {
    background-color: #c1191f;
}

@media (max-width: 1199px) {
    .promo-card {
        flex: 1 1 calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .promo-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .promo-cards-title {
        font-size: 1.75rem;
    }
}

/* Icon Text Feature Block */
.icon-text-feature-block {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.icon-text-feature-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.icon-text-feature-wrapper.align-right {
    flex-direction: row-reverse;
}

.icon-text-feature-icon-wrapper {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background-color: var(--isos-primary, #e31e24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
}

.icon-text-feature-text {
    font-family: var(--isos-font-body, "pelago", sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0;
}

@media (max-width: 768px) {
    .icon-text-feature-wrapper {
        flex-direction: column !important;
        text-align: center;
        gap: 1.25rem;
    }

    .icon-text-feature-text {
        font-size: 1.15rem;
    }
}


.faq-accordion-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-details {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.faq-details[open] {
    border-color: var(--isos-primary);
    box-shadow: 0 10px 25px -5px rgba(227, 30, 36, 0.1);
}

.faq-summary {
    list-style: none;
    padding: 1.5rem 1.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--isos-dark-bg);
}

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

.faq-question {
    padding-right: 2rem;
    line-height: 1.4;
}

.faq-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.faq-icon-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 2px;
    background-color: var(--isos-primary);
    transition: transform 0.3s ease;
}

.faq-icon-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--isos-primary);
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.faq-details[open] .faq-icon-toggle::after {
    transform: rotate(0deg);
}

.faq-content {
    padding: 0 1.75rem 1.75rem 1.75rem;
    color: #4b5563;
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Deep link highlights */
.faq-details:target {
    animation: faq-highlight 2s ease-out;
    border-color: var(--isos-primary);
    border-width: 2px;
}

@keyframes faq-highlight {
    0% {
        background-color: rgba(227, 30, 36, 0.05);
    }

    100% {
        background-color: #fff;
    }
}

/* --- Choice List Block --- */
.choice-list-block .choice-list-section-title {
    font-size: 2.25rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.choice-list-block .choice-list-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.choice-list-block .choice-list-item:last-child {
    border-bottom: none;
}

.choice-list-block .choice-icon-badge {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover effect removed as per user request */

.choice-list-block .choice-item-title {
    color: var(--isos-text);
    letter-spacing: -0.01em;
}

.choice-list-block .choice-item-body {
    color: var(--isos-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.choice-list-block .choice-item-body ul,
.choice-list-block .choice-item-body ol {
    margin-top: 1rem;
    margin-bottom: 0;
}

.choice-list-block .choice-item-body li {
    margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
    .choice-list-block .choice-list-item {
        flex-direction: column;
        gap: 1.5rem !important;
    }

    .choice-list-block .choice-icon-col {
        align-self: flex-start;
    }

    .choice-list-block .choice-list-section-title {
        font-size: 1.75rem;
    }
}

/* Image Selector Block */
.image-selector-block {
    padding: 5rem 0;
    background-color: var(--isos-bg);
}

.image-selector-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.image-selector-main-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    background-color: #f8f9fa;
}

.image-selector-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease-in-out;
}

.image-selector-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.image-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.image-selector-tile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    width: 100%;
    color: var(--isos-text);
    line-height: 1.2;
    user-select: none;
    outline: none;
}

.image-selector-tile:focus-visible {
    border-color: var(--isos-primary);
    box-shadow: 0 0 0 4px var(--isos-primary-soft);
    transform: translateY(-2px);
}

.image-selector-tile:hover {
    border-color: var(--isos-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
    color: var(--isos-primary);
}

.image-selector-tile.active {
    background-color: white;
    border-color: var(--isos-primary);
    border-width: 2px;
    color: var(--isos-primary);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1199px) {
    .image-selector-container {
        gap: 3rem;
    }
}

@media (max-width: 991px) {
    .image-selector-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .image-selector-main-image-wrapper {
        max-width: 800px;
        margin: 0 auto;
    }

    .image-selector-content {
        text-align: center;
    }

    .image-selector-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .image-selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .image-selector-grid {
        grid-template-columns: 1fr;
    }

    .image-selector-heading {
        font-size: 1.75rem;
    }
}

/* Location Promo Block */
.location-promo {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-color: var(--isos-bg);
    margin-top: 3rem;
}

.location-promo-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    max-width: 1320px;
    z-index: 2;
    position: relative;
}

.location-promo-tab-wrapper {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

.location-promo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--isos-primary);
    clip-path: ellipse(150% 100% at 50% 100%);
    opacity: 0.85;
}

.location-promo-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
    /* Enhance contrast for better blending */
    mix-blend-mode: multiply;
    /* Blends the image with the background color */
    opacity: 0.7;
    /* Adjust to control the intensity of the tint */
}

.location-promo-cards-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .location-promo-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.location-promo-card {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.location-promo-card-wrapper {
    position: relative;
    height: 100%;
}

.location-promo-header {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem 3rem;
    text-align: left;
}

.location-promo-tab {
    display: inline-block;
    background-color: #fff;
    color: var(--isos-dark);
    padding: 10px 24px;
    border-radius: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-promo-tab h2 {
    font-size: 1.4rem;
    text-transform: uppercase;
    margin: 0px
}

.location-promo-title {
    font-size: 2rem;
    color: var(--isos-dark, #1a1a1a);
    margin-bottom: 0;
    line-height: 1.1;
}

.location-promo-content {
    display: flex;
    flex-wrap: wrap;
    padding: 0 40px 40px;
    gap: 40px;
    flex-grow: 1;
}

.location-promo-details {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.location-detail-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.location-detail-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--isos-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.location-detail-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.location-detail-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.location-detail-value {
    font-size: 1.25rem;
    color: var(--isos-dark);
    font-weight: 500;
}

.location-promo-cta {
    margin-top: 1.5rem;
}

.location-promo-cta-desktop {
    display: block;
}

@media (max-width: 991px) {
    .location-promo-cta-desktop {
        display: none;
    }
}

.location-promo-cta-mobile {
    display: none;
    margin-top: 1.5rem;
    text-align: center;
}

@media (max-width: 991px) {
    .location-promo-cta-mobile {
        display: block;
    }
}

.location-promo-btn {
    display: inline-block;
    padding: 14px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    background-color: var(--isos-primary);
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
}

.location-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
    background-color: var(--isos-primary-dark, #c1191f);
}

.location-promo-btn-full {
    width: 100%;
}

.location-promo-map {
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

/* Multi-Card Stacked Map Variations */
.location-promo-card.multi-card .location-promo-content {
    flex-direction: column;
    padding: 0 30px 30px;
    gap: 30px;
}

.location-promo-card.multi-card .location-promo-header {
    padding: 2.5rem 1.5rem 1.5rem;
}

.location-promo-card.multi-card .location-promo-title {
    font-size: 1.7rem;
}

.location-promo-card.multi-card .location-promo-map {
    width: 100%;
}

.location-map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.location-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    gap: 10px;
}

.location-map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-promo-map-btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    color: #000;
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    font-weight: 600;
}

.location-map-link:hover .location-map-overlay {
    opacity: 1;
}

/* Responsive location-promo */
@media (max-width: 991px) {
    .location-promo-content {
        flex-direction: column;
        align-items: center;
    }

    .location-promo-map {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }

    .location-promo-details {
        width: 100%;
        text-align: center;
    }

    .location-detail-row {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .location-promo-title {
        font-size: 2.2rem;
        text-align: left;
    }

    .location-promo-header {
        text-align: left;
    }
    
    .location-promo-bg {
        clip-path: ellipse(250% 100% at 50% 100%);
    }
}

@media (max-width: 575px) {
    .location-promo {
        padding: 40px 15px;
    }

    .location-promo-header {
        padding: 30px 20px 10px;
    }

    .location-promo-content {
        padding: 0 20px 30px;
    }

    .location-promo-title {
        font-size: 1.8rem;
    }

    .location-detail-value {
        font-size: 1.1rem;
    }

    .location-promo-bg {
        clip-path: ellipse(400% 100% at 50% 100%);
    }
}

/* Image Banner Block */
.image-banner {
    padding: 60px 0;
    background-color: #fff;
}

.image-banner-header {
    margin-bottom: 40px;
    text-align: left;
}

.image-banner-header h1,
.image-banner-header h2 {
    font-family: var(--isos-font-heading);
    font-size: 3rem;
    color: var(--isos-dark);
    margin-bottom: 15px;
    line-height: 1.1;
}

.image-banner-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
}

.image-banner-slider-outer {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Box shadow removed from slider and moved to item if needed, but original had it on outer container */
}

/* 
   We removed .image-banner-slider-inner so items just stack.
   Stack gap is applied inline `gap: 4rem` in the blade, but let's add item spacing styles here for safety.
*/

.image-banner-item {
    display: flex;
    min-height: 480px;
    background-color: #1a1a1a;
    width: 100%;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Swapped Layout */
.image-banner-item-swapped {
    flex-direction: row-reverse;
}

.image-banner-content {
    flex: 0 0 45%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 5;
    background-color: #1a1a1a;
    /* Gentle slight curve that bulges slightly into the image area */
    clip-path: ellipse(99% 150% at 0% 50%);
}

.image-banner-item-swapped .image-banner-content {
    /* Swapped curve bulges left into the image */
    clip-path: ellipse(99% 150% at 100% 50%);
}

.image-banner-item-title {
    font-family: var(--font-sporty);
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.1;
    color: #fff !important;
}

.image-banner-item-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 300;
}

.image-banner-btn {
    align-self: flex-start;
}

.image-banner-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin-left: -40px;
    /* Gentle overlap for the curve */
}

.image-banner-item-swapped .image-banner-image-wrapper {
    margin-left: 0;
    margin-right: -40px;
    /* Overlap on the other side */
}

.image-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 991px) {

    .image-banner-item,
    .image-banner-item-swapped {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .image-banner-content,
    .image-banner-item-swapped .image-banner-content {
        flex: 1 0 auto;
        clip-path: none;
        padding: 50px 30px;
        text-align: center;
        align-items: center;
    }

    .image-banner-btn {
        align-self: center;
    }

    .image-banner-image-wrapper,
    .image-banner-item-swapped .image-banner-image-wrapper {
        height: 350px;
        margin-left: 0;
        margin-right: 0;
    }

    .image-banner-item-title {
        font-size: 2.2rem;
    }

    .image-banner-header h1,
    .image-banner-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 575px) {
    .image-banner {
        padding: 40px 0;
    }

    .image-banner-header h1,
    .image-banner-header h2 {
        font-size: 2rem;
    }

    .image-banner-item-title {
        font-size: 1.8rem;
    }

    .image-banner-image-wrapper,
    .image-banner-item-swapped .image-banner-image-wrapper {
        height: 250px;
    }

    .image-banner-content,
    .image-banner-item-swapped .image-banner-content {
        padding: 40px 20px;
    }
}

/* =========================================================================
   IMPACT STATEMENT BLOCK (FEATURED STATEMENT)
   ========================================================================= */
.block-impact-statement {
    position: relative;
    padding: var(--root-spacing-y, 4rem) 0;
    overflow-x: hidden;
    /* Hide the bleeding eyebrow from causing scroll */
}

/* Eyebrow Container */
.impact-statement-eyebrow-container {
    width: 100%;
    margin-bottom: 2.5rem;
    position: relative;
    display: flex;
}

/* Eyebrow Pill */
.impact-statement-eyebrow {
    position: relative;
    display: inline-block;
    background-color: #444444;
    /* Dark gray */
    color: #ffffff;
    font-size: 1.2rrem;
    font-weight: 600;
    padding: 0.8rem 2.5rem;
    /* 0 left padding so text aligns perfectly with below layout */
    border-radius: 2rem;
    margin-bottom: 2.5rem;
    z-index: 1;
}


/* Title */
.impact-statement-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--isos-primary, #d12027) !important;
    line-height: 1.15;
    margin-bottom: 2rem;
    /* Force line break organically */
}

/* Body */
.impact-statement-body {
    font-family: var(--isos-font-body, 'Inter', sans-serif);
    font-size: 1.25rem;
    color: #2b2b2b;
    /* Dark text */
    line-height: 1.6;
    max-width: 950px;
}

/* --- BRAND PROMO CARD --- */
.brand-promo-section {
    padding: 3rem 0;
}

.block-brand-promo {
    max-width: 700px;
    margin: 0 auto;
}

.brand-promo-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
}

.brand-promo-logo .brand-promo-img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.brand-promo-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--bs-dark);
}

.brand-promo-text {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    color: var(--bs-gray-700);
}

.brand-promo-btn {
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

@media (max-width: 767px) {
    .brand-promo-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .brand-promo-logo .brand-promo-img {
        margin: 0 auto;
        max-width: 160px;
    }
}

/* --- TIMELINE BLOCK --- */
.timeline-section {
    background-color: var(--isos-bg, #ffffff);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.timeline-header-row {
    margin-bottom: 3rem;
}

.timeline-header-col {
    text-align: center;
}

.timeline-content-wrapper {
    width: 100%;
    margin: 0 0 0 1rem;
}

@media (min-width: 768px) {
    .timeline-content-wrapper {
        width: 83.333333%;
        /* equivalent to col-md-10 */
    }
}

@media (min-width: 992px) {
    .timeline-content-wrapper {
        width: 66.666667%;
        /* equivalent to col-lg-8 */
    }
}

.timeline-container {
    --timeline-left-width: 140px;
    --timeline-marker-width: 40px;
    position: relative;
    padding: 2rem 0;
}

/* The vertical line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--timeline-left-width) + (var(--timeline-marker-width) / 2));
    width: 2px;
    transform: translateX(-50%);
    background-color: var(--isos-text-muted);
    opacity: 0.25;
    z-index: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: var(--timeline-left-width) var(--timeline-marker-width) 1fr;
    align-items: start;
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
}

/* Left side (Year) */
.timeline-item .timeline-year {
    text-align: right;
    font-size: 1.25rem;
    font-weight: 700;
    padding-right: 1.5rem;
    padding-top: 0;
    /* baseline alignment */
    line-height: 1.5;
    color: var(--isos-text-muted);
}

.timeline-year.active {
    color: var(--isos-primary);
}

/* Center Marker */
.timeline-item .timeline-marker-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 6px;
    /* Optical vertical centering with the first line of text */
}

.timeline-item .timeline-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--isos-bg, white);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background-color: var(--isos-bg, white);
    border: 2px solid var(--isos-primary);
}

.timeline-item .timeline-marker.active {
    background-color: var(--isos-primary) !important;
    border-color: var(--isos-primary) !important;
}

/* Right side (Description) */
.timeline-item .timeline-description {
    text-align: left;
    padding-left: 1.5rem;
}

.timeline-description-body {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--isos-text-muted);
}

.timeline-description-text {
    margin-bottom: 0;
    color: var(--isos-text-muted);
}

.timeline-description-text.active {
    color: var(--isos-text);
    font-weight: 700;
}

.timeline-item:last-child .timeline-description-body {
    border-bottom: none;
    padding-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .timeline-container {
        --timeline-left-width: 0px;
        /* Hide left column space */
    }

    .timeline-line {
        left: calc(var(--timeline-marker-width) / 2);
    }

    .timeline-item {
        grid-template-columns: var(--timeline-marker-width) 1fr;
        grid-template-rows: auto auto;
        /* Year on top, description below */
        margin-bottom: 1.5rem;
    }

    .timeline-item .timeline-year {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        text-align: left;
        padding-right: 0;
        padding-bottom: 0.5rem;
    }

    .timeline-item .timeline-marker-wrapper {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        justify-content: center;
        padding-top: 4px;
        /* Adjust for mobile text size */
    }

    .timeline-item .timeline-description {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        padding-left: 0;
    }

    .timeline-description-body {
        padding-bottom: 1.5rem;
    }
}