/* =========================================================
   BritCham Cambodia
   Home Page
   File: /assets/css/pages/home.css
   ========================================================= */

.page-home {
    --home-bg: #f2f5f8;
    --home-surface: rgba(255, 255, 255, 0.92);
    --home-surface-strong: #ffffff;
    --home-surface-soft: #f7f9fb;
    --home-text: #142033;
    --home-text-muted: #5c6b82;
    --home-heading: #0d1b2a;
    --home-border: rgba(20, 32, 51, 0.1);
    --home-border-strong: rgba(20, 32, 51, 0.16);
    --home-primary: #0b3a63;
    --home-primary-strong: #082f50;
    --home-secondary: #9b1c31;
    --home-accent: #dbeefe;
    --home-highlight: #edf6ff;
    --home-success-soft: #eaf6ef;

    --home-shadow-sm: 0 6px 16px rgba(12, 28, 52, 0.05);
    --home-shadow-md: 0 10px 24px rgba(12, 28, 52, 0.08);
    --home-shadow-lg: 0 14px 32px rgba(12, 28, 52, 0.1);
    --home-shadow-xl: 0 24px 54px rgba(12, 28, 52, 0.16);

    --home-radius-sm: 6px;
    --home-radius-md: 6px;
    --home-radius-lg: 8px;
    --home-radius-xl: 8px;
    --home-radius-2xl: 8px;

    --home-max-width: 1240px;
    --home-section-space: clamp(3.25rem, 5vw, 5rem);
    --home-card-gap: clamp(1rem, 1.6vw, 1.35rem);
    --home-grid-gap: clamp(1rem, 1.8vw, 1.5rem);
    --home-hero-top-space: clamp(0.9rem, 2vw, 1.5rem);
    --home-hero-bottom-space: clamp(2.25rem, 4vw, 3.75rem);
    --home-sponsor-overlap: clamp(1.4rem, 3vw, 2.5rem);

    background: linear-gradient(180deg, #fbfcfd 0%, var(--home-bg) 100%);
    color: var(--home-text);
}

.page-home .page-main {
    position: relative;
    overflow: clip;
}

.page-home .site-shell {
    width: min(100% - 2rem, var(--home-max-width));
    margin-inline: auto;
}

/* Shared */

.page-home .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    color: var(--home-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-home .section-kicker::before {
    content: "";
    width: 1.1rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-primary), var(--home-secondary));
    flex: 0 0 auto;
}

.page-home .section-heading {
    max-width: 760px;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.page-home .section-title {
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(1.75rem, 2.8vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.page-home .section-intro {
    margin: 0.85rem 0 0;
    max-width: 64ch;
    color: var(--home-text-muted);
    font-size: clamp(0.98rem, 1.05vw, 1.08rem);
    line-height: 1.68;
}

/* Buttons and links */

.page-home .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.05rem;
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
    will-change: transform;
}

.page-home .button:hover,
.page-home .button:focus-visible {
    transform: translateY(-1px);
}

.page-home .button-primary {
    background: linear-gradient(135deg, var(--home-primary), var(--home-secondary));
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(11, 58, 99, 0.18);
}

.page-home .button-primary:hover,
.page-home .button-primary:focus-visible {
    box-shadow: 0 12px 24px rgba(11, 58, 99, 0.22);
}

.page-home .button-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--home-primary-strong);
    border: 1px solid rgba(11, 58, 99, 0.12);
    box-shadow: var(--home-shadow-sm);
}

.page-home .button-secondary:hover,
.page-home .button-secondary:focus-visible {
    background: #ffffff;
    border-color: rgba(11, 58, 99, 0.18);
}

.page-home .text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--home-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.page-home .text-link::after {
    content: "->";
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.page-home .text-link:hover,
.page-home .text-link:focus-visible {
    color: var(--home-primary-strong);
}

.page-home .text-link:hover::after,
.page-home .text-link:focus-visible::after {
    transform: translateX(3px);
}

/* Hero */

.home-hero {
    position: relative;
    padding: var(--home-hero-top-space) 0 var(--home-hero-bottom-space);
    isolation: isolate;
    overflow: hidden;
    background: #f5f7fb;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: var(--bcms-home-hero-image, url("/assets/images/britcham/phnom-penh-skyline.jpg")) center center / cover no-repeat;
    opacity: 0.58;
    transform: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.24) 0%,
            rgba(255, 255, 255, 0.30) 45%,
            rgba(245, 247, 251, 0.42) 100%
        );
}

.home-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.58fr);
    gap: 1.25rem;
    align-items: stretch;
}

.home-hero__content,
.home-hero__panel {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.08),
        0 4px 14px rgba(15, 23, 42, 0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.55rem, 2.6vw, 2.5rem);
    border-radius: var(--home-radius-lg);
    background: rgba(255, 255, 255, 0.82);
}

.home-hero__content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.home-hero__content::after {
    display: none;
}

.home-hero__content > * {
    position: relative;
    z-index: 1;
}

.home-hero__content > * + * {
    margin-top: 0.95rem;
}

.home-hero__title {
    margin: 0;
    max-width: 20ch;
    color: var(--home-heading);
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: pretty;
}

.home-hero__intro {
    margin: 0;
    max-width: 60ch;
    color: var(--home-text-muted);
    font-size: clamp(1rem, 1.08vw, 1.1rem);
    line-height: 1.7;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.45rem;
}

.home-hero__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(1.2rem, 2vw, 1.6rem);
    border-radius: var(--home-radius-md);
    background: rgba(11, 43, 71, 0.84);
    color: #f8fbff;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 22px 52px rgba(9, 20, 35, 0.15),
        0 6px 18px rgba(9, 20, 35, 0.07);
}

.home-hero__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.home-hero__panel > * {
    position: relative;
    z-index: 1;
}

.home-hero__panel > * + * {
    margin-top: 0;
}

.home-hero__panel .section-kicker {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.86);
}

.home-hero__panel .section-kicker::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.45));
}

.panel-title {
    margin: 0;
    font-size: clamp(1.2rem, 1.7vw, 1.55rem);
    line-height: 1.28;
    letter-spacing: 0;
    color: #ffffff;
}

.hero-point-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-point-list__item {
    position: relative;
    padding: 0.92rem 0.98rem 0.92rem 2.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 251, 255, 0.97);
    line-height: 1.55;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.98rem;
}

.hero-point-list__item::before {
    content: "";
    position: absolute;
    left: 0.95rem;
    top: 1rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
    .home-hero {
        padding-top: clamp(2.8rem, 6vw, 4.5rem);
        padding-bottom: clamp(2.8rem, 6vw, 4.5rem);
    }

    .home-hero__layout {
        grid-template-columns: 1fr;
    }

    .home-hero::before {
        background: var(--bcms-home-hero-image, url("/assets/images/britcham/phnom-penh-skyline.jpg")) center center / contain no-repeat;
        opacity: 0.50;
    }
}

@media (max-width: 640px) {
    .home-hero {
        overflow: clip;
    }

    .home-hero::before {
        opacity: 0.42;
        background: var(--bcms-home-hero-image, url("/assets/images/britcham/phnom-penh-skyline.jpg")) center center / cover no-repeat;
    }

    .home-hero::after {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.34) 0%,
                rgba(255, 255, 255, 0.40) 45%,
                rgba(245, 247, 251, 0.48) 100%
            );
    }

    .home-hero__content,
    .home-hero__panel {
        padding: 1.15rem;
    }

    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__actions .button {
        width: 100%;
        justify-content: center;
    }

    .home-hero__title {
        max-width: none;
    }
}
/* Sponsor strip */

.home-sponsor-strip {
    position: relative;
    z-index: 3;
    margin-top: calc(var(--home-sponsor-overlap) * -1);
    padding-bottom: 0.25rem;
}

.sponsor-strip {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 2.05fr);
    gap: 1.2rem;
    align-items: center;
    padding: clamp(1rem, 2.1vw, 1.45rem);
    border: 1px solid rgba(20, 32, 51, 0.08);
    border-radius: var(--home-radius-2xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 250, 255, 0.965));
    box-shadow: var(--home-shadow-xl);
    overflow: hidden;
}

.sponsor-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 58, 99, 0.04), rgba(155, 28, 49, 0.03));
    pointer-events: none;
}

.sponsor-strip > * {
    position: relative;
    z-index: 1;
}

.sponsor-strip__header {
    max-width: 28ch;
}

.sponsor-strip__kicker {
    margin: 0 0 0.55rem;
    color: var(--home-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sponsor-strip__title {
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.4;
    letter-spacing: 0;
}

.sponsor-strip__logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.sponsor-logo-card {
    min-width: 0;
}

.sponsor-logo-card__inner {
    display: grid;
    align-items: center;
    align-content: center;
    justify-content: center;
    justify-items: center;
    gap: 0.45rem;
    min-height: 112px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(11, 58, 99, 0.08);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 250, 255, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 6px 16px rgba(12, 28, 52, 0.04);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.sponsor-logo-card__inner:hover,
.sponsor-logo-card__inner:focus-within {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 10px 22px rgba(12, 28, 52, 0.08);
    border-color: rgba(11, 58, 99, 0.16);
}

.sponsor-logo-card__image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 50px;
    height: auto;
    object-fit: contain;
    filter: saturate(1) contrast(1.02);
}

.sponsor-logo-card__name,
.sponsor-logo-card__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--home-heading);
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
}

.sponsor-logo-card__name {
    margin-top: 0.15rem;
    font-size: 0.88rem;
    font-weight: 850;
    white-space: nowrap;
}

.sponsor-logo-card__label {
    color: var(--home-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Sections spacing */

.home-trust,
.home-pillars,
.home-audience,
.home-membership,
.home-engagement {
    padding: var(--home-section-space) 0;
}

.home-trust {
    padding-top: calc(var(--home-section-space) - 1rem);
}

/* Dynamic card grid logic */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--home-grid-gap);
    align-items: stretch;
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.4rem;
    border-radius: var(--home-radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow-sm);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
    min-height: 100%;
    min-width: 0;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--home-shadow-md);
    border-color: rgba(11, 58, 99, 0.16);
}

.feature-card__title {
    margin: 0;
    color: var(--home-heading);
    font-size: 1.15rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.feature-card__text {
    margin: 0.8rem 0 0;
    color: var(--home-text-muted);
    line-height: 1.75;
    font-size: 1rem;
}

.feature-card__action {
    margin-top: 1.1rem;
}

.home-engagement .feature-card::before,
.home-engagement .feature-card::after {
    content: none !important;
    display: none !important;
}

.home-engagement .feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.feature-card__icon-wrap {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
    color: #163a63;
    border: 1px solid rgba(22, 58, 99, 0.08);
    flex: 0 0 auto;
}

.feature-card__icon-wrap svg {
    width: 22px !important;
    height: 22px !important;
    display: block;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.85 !important;
    max-width: none;
    max-height: none;
}

.feature-card__title {
    margin-top: 0;
}

.sponsor-logo-card__inner {
    text-decoration: none;
}

.sponsor-logo-card__inner:focus-visible {
    outline: 2px solid rgba(22, 58, 99, 0.35);
    outline-offset: 3px;
    border-radius: 12px;
}

/* Trust section */

.home-trust .feature-card::before,
.home-audience .feature-card::before,
.home-engagement .feature-card::before {
    content: "";
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background:
        linear-gradient(135deg, rgba(11, 58, 99, 0.16), rgba(155, 28, 49, 0.08));
    border: 1px solid rgba(11, 58, 99, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Pillars */

.home-pillars {
    position: relative;
}

.pillar-stack {
    display: grid;
    gap: clamp(1.1rem, 2vw, 1.5rem);
}

.pillar-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: clamp(1rem, 2.6vw, 2rem);
    align-items: start;
    padding: clamp(1.4rem, 2.7vw, 2rem);
    border-radius: var(--home-radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.9));
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow-sm);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.pillar-card:hover,
.pillar-card:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--home-shadow-md);
    border-color: rgba(11, 58, 99, 0.16);
}

.pillar-card__main {
    min-width: 0;
}

.pillar-card__kicker {
    margin: 0 0 0.75rem;
    color: var(--home-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pillar-card__title {
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(1.35rem, 2vw, 1.95rem);
    line-height: 1.2;
    letter-spacing: 0;
    text-wrap: balance;
}

.pillar-card__text {
    margin: 0.95rem 0 0;
    color: var(--home-text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.pillar-card__audience {
    margin: 1rem 0 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid rgba(11, 58, 99, 0.22);
    border-radius: 0 8px 8px 0;
    background: var(--home-highlight);
    color: #29425e;
    font-size: 0.98rem;
    line-height: 1.7;
}

.pillar-card__aside {
    padding: 1.15rem;
    border-radius: var(--home-radius-md);
    background: linear-gradient(180deg, #f8fbff, #f1f7fd);
    border: 1px solid rgba(11, 58, 99, 0.08);
}

.pillar-card__list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pillar-card__list-item {
    position: relative;
    padding-left: 1.8rem;
    color: var(--home-text);
    line-height: 1.65;
    font-weight: 600;
}

.pillar-card__list-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--home-primary), var(--home-secondary));
    box-shadow: 0 0 0 3px rgba(11, 58, 99, 0.1);
}

/* Audience */

.home-audience .feature-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.9));
}

/* Membership */

.membership-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: clamp(1.2rem, 2.5vw, 2rem);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(12, 35, 58, 0.98), rgba(17, 58, 95, 0.96) 55%, rgba(25, 94, 139, 0.95));
    color: #ffffff;
    box-shadow: var(--home-shadow-lg);
}

.membership-panel::before {
    display: none;
}

.membership-panel__content,
.membership-panel__aside {
    position: relative;
    z-index: 1;
}

.membership-panel .section-kicker,
.membership-panel .section-title,
.membership-panel .section-intro {
    color: #ffffff;
}

.membership-panel .section-kicker {
    opacity: 0.82;
}

.membership-panel .section-kicker::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.4));
}

.membership-panel .section-intro {
    color: rgba(255, 255, 255, 0.85);
}

.membership-panel__aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1rem, 2vw, 1.25rem);
    border-radius: var(--home-radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.membership-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.membership-list__item {
    position: relative;
    padding-left: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.membership-list__item::before {
    content: "*";
    position: absolute;
    left: 0.1rem;
    top: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1;
}

.membership-panel__actions {
    margin-top: 1.4rem;
}

.membership-panel .button-primary {
    background: #ffffff;
    color: var(--home-primary-strong);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.membership-panel .button-primary:hover,
.membership-panel .button-primary:focus-visible {
    background: #f5f9ff;
}

/* Engagement */

.home-engagement .feature-card {
    justify-content: space-between;
}

/* Homepage ad slot */

.home-banner {
    padding: 1.35rem 0 0.65rem;
}

.banner-slot {
    display: grid;
    gap: 0.8rem;
}

.banner-slot__link {
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(20, 32, 51, 0.1);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(12, 28, 52, 0.08);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.banner-slot__link:hover,
.banner-slot__link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(12, 28, 52, 0.12);
    border-color: rgba(11, 58, 99, 0.16);
}

.banner-slot__label {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(13, 27, 42, 0.82);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(12, 28, 52, 0.18);
    backdrop-filter: blur(6px);
}

.banner-slot__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    background: #edf3f8;
}

@media (max-width: 640px) {
    .banner-slot__image {
        aspect-ratio: auto;
    }
}

@media (max-width: 420px) {
    .banner-slot__image {
        aspect-ratio: auto;
    }
}

.banner-slot__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.1rem;
}

.banner-slot__name {
    color: var(--home-heading);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
}

.banner-slot__note {
    margin: 0;
    color: var(--home-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: right;
}

.banner-slot__note a {
    color: var(--home-primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color 0.2s ease;
}

.banner-slot__note a:hover,
.banner-slot__note a:focus-visible {
    color: var(--home-primary-strong);
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
    .page-home .button,
    .page-home .text-link,
    .feature-card,
    .pillar-card,
    .sponsor-logo-card__inner,
    .banner-slot__link {
        transition: none;
    }

    .page-home .button:hover,
    .page-home .button:focus-visible,
    .feature-card:hover,
    .feature-card:focus-within,
    .pillar-card:hover,
    .pillar-card:focus-within,
    .sponsor-logo-card__inner:hover,
    .sponsor-logo-card__inner:focus-within,
    .banner-slot__link:hover,
    .banner-slot__link:focus-visible {
        transform: none;
    }
}

/* Large tablet */

@media (max-width: 1100px) {
    .home-hero__layout,
    .membership-panel,
    .pillar-card,
    .sponsor-strip {
        grid-template-columns: 1fr;
    }

    .home-hero__title {
        max-width: 16ch;
    }

    .home-hero__panel {
        max-width: none;
    }

    .sponsor-strip__header {
        max-width: none;
    }
}

/* Tablet */

@media (max-width: 820px) {
    .page-home .site-shell {
        width: min(100% - 1.25rem, var(--home-max-width));
    }

    .home-trust,
    .home-pillars,
    .home-audience,
    .home-membership,
    .home-engagement {
        padding: clamp(3.5rem, 8vw, 5rem) 0;
    }

    .home-hero__content,
    .home-hero__panel,
    .pillar-card,
    .membership-panel,
    .feature-card,
    .sponsor-strip,
    .banner-slot__link {
        border-radius: 12px;
    }

    .home-hero__actions {
        gap: 0.75rem;
    }

    .page-home .button {
        min-height: 3.1rem;
    }

    .sponsor-strip__logos {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }


}

/* Mobile */

@media (max-width: 640px) {
    .page-home {
        --home-section-space: 3.5rem;
        --home-sponsor-overlap: 1rem;
    }

    .page-home .site-shell {
        width: min(100% - 1rem, var(--home-max-width));
    }

    .page-home .section-heading {
        margin-bottom: 1.5rem;
    }

    .page-home .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.14;
    }

    .page-home .section-intro,
    .feature-card__text,
    .pillar-card__text,
    .pillar-card__audience,
    .membership-panel .section-intro {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .home-hero {
        padding-top: 1rem;
        padding-bottom: 2.4rem;
    }

    .home-hero__content {
        padding: 1.25rem;
    }

    .home-hero__title {
        max-width: none;
        font-size: clamp(1.85rem, 9vw, 2.55rem);
        line-height: 1.04;
    }

    .home-hero__intro {
        margin-top: 0.85rem;
        font-size: 1rem;
        line-height: 1.72;
    }

    .home-hero__panel {
        padding: 1rem;
    }

    .panel-title {
        font-size: 1.1rem;
    }

    .hero-point-list__item {
        padding: 0.9rem 0.9rem 0.9rem 2.55rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .hero-point-list__item::before {
        left: 0.9rem;
        top: 1rem;
        width: 0.95rem;
        height: 0.95rem;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
    }

    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__actions .button {
        width: 100%;
    }

    .home-sponsor-strip {
        margin-top: calc(var(--home-sponsor-overlap) * -1);
    }

    .sponsor-strip {
        gap: 1rem;
        padding: 1rem;
        border-radius: 14px;
    }

    .sponsor-strip__title {
        font-size: 1rem;
        line-height: 1.5;
    }

    .sponsor-strip__logos {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .sponsor-logo-card__inner {
        min-height: 92px;
        padding: 0.85rem;
        border-radius: 12px;
    }

    .sponsor-logo-card__image {
        max-height: 44px;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
        gap: 1rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-card__title {
        font-size: 1.05rem;
    }

    .pillar-card {
        padding: 1.15rem;
        gap: 1rem;
    }

    .pillar-card__title {
        font-size: 1.25rem;
    }

    .pillar-card__aside {
        padding: 1rem;
        border-radius: 10px;
    }

    .pillar-card__list {
        gap: 0.7rem;
    }

    .pillar-card__list-item {
        font-size: 0.97rem;
    }

    .membership-panel {
        padding: 1.2rem;
        gap: 1rem;
    }

    .membership-panel__aside {
        padding: 1rem;
        border-radius: 10px;
    }

    .membership-list__item {
        font-size: 0.97rem;
    }

    .page-home .button {
        min-height: 3rem;
        padding: 0.9rem 1.1rem;
        border-radius: 8px;
    }

    .home-banner {
        padding: 1rem 0 0.4rem;
    }

    .banner-slot__label {
        top: 0.7rem;
        left: 0.7rem;
        min-height: 1.85rem;
        padding: 0.3rem 0.55rem;
        font-size: 0.68rem;
    }



    .banner-slot__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .banner-slot__note {
        text-align: left;
        font-size: 0.88rem;
    }
}

/* Small phones */

@media (max-width: 420px) {
    .page-home .section-kicker {
        font-size: 0.74rem;
        letter-spacing: 0;
    }

    .home-hero__content,
    .home-hero__panel,
    .feature-card,
    .pillar-card,
    .membership-panel,
    .sponsor-strip,
    .banner-slot__link {
        border-radius: 10px;
    }

    .home-hero__title {
        font-size: 1.8rem;
    }

    .home-hero__intro,
    .feature-card__text,
    .pillar-card__text,
    .pillar-card__audience {
        font-size: 0.95rem;
    }

    .pillar-card__audience {
        padding: 0.9rem 1rem;
    }

    .sponsor-strip__logos {
        grid-template-columns: 1fr;
    }

    .sponsor-logo-card__inner {
        min-height: 88px;
    }


    .banner-slot__name {
        font-size: 0.82rem;
    }
}
@media (hover: none) and (pointer: coarse) {
    .page-home .button:hover,
    .page-home .button:focus-visible,
    .feature-card:hover,
    .feature-card:focus-within,
    .pillar-card:hover,
    .pillar-card:focus-within,
    .sponsor-logo-card__inner:hover,
    .sponsor-logo-card__inner:focus-within,
    .banner-slot__link:hover,
    .banner-slot__link:focus-visible {
        transform: none;
    }
}

.home-hero__title,
.page-home .section-title,
.feature-card__title,
.pillar-card__title {
    overflow-wrap: anywhere;
}

.page-home .button {
    text-align: center;
    white-space: normal;
}




/* Trade Commissioner micro feature */

/* Trade Commissioner micro feature */

.home-trade-link {
    padding: 1.75rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(15, 23, 42, 0.015);
}

.trade-link {
    max-width: 760px;
}

.trade-link__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
    margin: 0;
}

.trade-link__text a {
    color: #163a63;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(22, 58, 99, 0.15);
    transition: all 0.2s ease;
}

.trade-link__text a:hover {
    color: #0f2c4d;
    border-bottom-color: rgba(22, 58, 99, 0.35);
}

.trade-link__text a:focus-visible {
    outline: 2px solid rgba(22, 58, 99, 0.35);
    outline-offset: 2px;
    border-radius: 3px;
}
.trade-link__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Ghost button style (subtle, not dominant) */
.button-ghost {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(22, 58, 99, 0.15);
    color: #163a63;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.button-ghost:hover {
    background: rgba(22, 58, 99, 0.06);
    border-color: rgba(22, 58, 99, 0.3);
}










/* Homepage operational feed sections */

.home-events-feed,
.home-news-feed {
    padding: var(--home-section-space) 0;
}

.section-heading-split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading__action {
    flex: 0 0 auto;
    padding-bottom: 0.2rem;
}

.home-content-grid {
    display: grid;
    gap: var(--home-grid-gap);
    align-items: stretch;
}

.home-content-grid-events {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.home-content-grid-news {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.content-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border-radius: var(--home-radius-lg);
    border: 1px solid var(--home-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
    box-shadow: var(--home-shadow-sm);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.content-card:hover,
.content-card:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--home-shadow-md);
    border-color: rgba(11, 58, 99, 0.16);
}

.content-card__media {
    position: relative;
    display: block;
    text-decoration: none;
    background: #edf3f8;
}

.content-card__image,
.content-card__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #edf3f8;
}

.content-card__image {
    object-fit: cover;
}

.content-card__placeholder {
    background: linear-gradient(180deg, #eef4f9 0%, #e7eef5 100%);
}

.content-card__badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(13, 27, 42, 0.82);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(12, 28, 52, 0.18);
}

.content-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.35rem;
}

.content-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    color: var(--home-text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}

.content-card__meta-item--tag {
    color: var(--home-primary);
}

.content-card__meta-sep {
    color: rgba(20, 32, 51, 0.3);
}

.content-card__title {
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(1.08rem, 1.35vw, 1.3rem);
    line-height: 1.35;
    letter-spacing: 0;
}

.content-card__title a {
    color: inherit;
    text-decoration: none;
}

.content-card__title a:hover,
.content-card__title a:focus-visible {
    color: var(--home-primary-strong);
}

.content-card__location {
    margin: 0.7rem 0 0;
    color: var(--home-primary);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
}

.content-card__excerpt {
    margin: 0.8rem 0 0;
    color: var(--home-text-muted);
    line-height: 1.72;
    font-size: 0.98rem;
}

.content-card__actions {
    margin-top: auto;
    padding-top: 1rem;
}

.content-state {
    padding: 1.15rem 1.2rem;
    border-radius: var(--home-radius-md);
    border: 1px solid var(--home-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
    box-shadow: var(--home-shadow-sm);
}

.content-state__text {
    margin: 0;
    color: var(--home-text-muted);
    line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
    .content-card {
        transition: none;
    }

    .content-card:hover,
    .content-card:focus-within {
        transform: none;
    }
}

@media (max-width: 820px) {
    .section-heading-split {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading__action {
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    .home-events-feed,
    .home-news-feed {
        padding: clamp(3.5rem, 8vw, 5rem) 0;
    }

    .content-card {
        border-radius: 12px;
    }

    .content-card__body {
        padding: 1.1rem 1.1rem 1.2rem;
    }

    .content-card__title {
        font-size: 1.05rem;
    }

    .content-card__excerpt,
    .content-card__location {
        font-size: 0.95rem;
    }

    .content-card__badge {
        top: 0.7rem;
        left: 0.7rem;
        min-height: 1.85rem;
        padding: 0.3rem 0.55rem;
        font-size: 0.68rem;
    }
}

@media (max-width: 420px) {
    .content-card {
        border-radius: 10px;
    }

    .content-card__body {
        padding: 1rem;
    }

    .content-card__meta {
        font-size: 0.8rem;
    }

    .content-card__excerpt {
        font-size: 0.94rem;
    }
}

/* Homepage top refresh */
.page-home {
    --home-reference-red: #e31b2f;
    --home-reference-navy: #062557;
    --home-reference-ink: #07183f;
    background: #ffffff;
}

.home-hero {
    height: auto;
    min-height: clamp(520px, 44vw, 600px);
    display: flex;
    align-items: center;
    padding: clamp(3rem, 6vh, 4.75rem) 0 clamp(3.4rem, 7vh, 5.25rem);
    background: var(--home-reference-navy);
    overflow: hidden;
    isolation: isolate;
}

.home-hero::before {
    inset: 0;
    z-index: 0;
    background: var(--bcms-home-hero-image, url("/assets/images/britcham/phnom-penh-skyline.jpg")) center center / cover no-repeat;
    opacity: 1;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

.home-hero::after {
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(3, 24, 61, 0.98) 0%,
            rgba(4, 30, 73, 0.88) 34%,
            rgba(4, 30, 73, 0.46) 62%,
            rgba(4, 30, 73, 0.18) 100%
        ),
        linear-gradient(0deg, rgba(3, 24, 61, 0.72), rgba(3, 24, 61, 0.04) 56%);
}

.home-hero .site-shell {
    position: relative;
    z-index: 3;
    width: min(100% - 5rem, 1360px);
}

.home-hero__layout {
    display: block;
    width: min(100%, 720px);
    max-width: 720px;
}

.home-hero__content {
    display: block;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.home-hero__content::before,
.home-hero__content::after {
    display: none;
}

.home-hero .section-kicker {
    margin-bottom: 0.95rem;
    color: #ffffff;
    font-size: 0.82rem;
    letter-spacing: 0;
}

.home-hero .section-kicker::before {
    width: 1.7rem;
    height: 3px;
    background: var(--home-reference-red);
}

.home-hero__title {
    max-width: min(760px, 24ch);
    color: #ffffff;
    font-size: clamp(2.45rem, 4vw, 3.65rem);
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.home-hero__intro {
    max-width: 47ch;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(0.98rem, 1.15vw, 1.12rem);
    line-height: 1.58;
}

.home-hero__actions {
    gap: 0.85rem;
    margin-top: clamp(1.25rem, 2.6vh, 1.8rem);
}

.home-hero__actions .button {
    min-width: min(100%, 12.8rem);
    min-height: 3.2rem;
    padding-inline: 1.35rem;
    border-radius: 8px;
    text-align: center;
    white-space: normal;
}

.home-hero__actions .button::after {
    content: "->";
    margin-left: 0.45rem;
    font-weight: 800;
}

.home-hero__actions .button-primary {
    background: var(--home-reference-red);
    box-shadow: 0 16px 30px rgba(227, 27, 47, 0.26);
}

.home-hero__actions .button-primary:hover,
.home-hero__actions .button-primary:focus-visible {
    background: #f02238;
    box-shadow: 0 18px 34px rgba(227, 27, 47, 0.32);
}

.home-hero__actions .button-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.home-hero__actions .button-secondary:hover,
.home-hero__actions .button-secondary:focus-visible {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.home-hero__ribbon {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: clamp(-23rem, -18vw, -10rem);
    width: clamp(520px, 54vw, 880px);
    aspect-ratio: 2 / 1;
    transform: translateY(-50%) rotate(-1deg);
    background: var(--bcms-home-hero-overlay, url("/assets/images/patterns/uk-flag-clean.svg")) center center / cover no-repeat;
    filter: drop-shadow(-24px 0 30px rgba(2, 16, 44, 0.26)) saturate(0.96);
    opacity: 0.36;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.88) 18%, #000000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.88) 18%, #000000 100%);
    pointer-events: none;
}

.home-hero__ribbon::after {
    display: none;
}

.home-top-feed {
    background: #ffffff;
    padding: clamp(1.35rem, 2.5vw, 2rem) 0 clamp(2.3rem, 4vw, 3.5rem);
}

.home-feed-board {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: clamp(1.35rem, 2.5vw, 2.4rem);
    align-items: start;
}

.home-feed-panel {
    min-width: 0;
}

.home-feed-panel--events {
    border-left: 1px solid rgba(7, 24, 63, 0.09);
    padding-left: clamp(1.35rem, 2.5vw, 2.4rem);
}

.home-feed-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-feed-panel__head h2 {
    position: relative;
    margin: 0;
    padding-left: 1rem;
    color: var(--home-reference-ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-feed-panel__head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12rem;
    bottom: 0.12rem;
    width: 3px;
    border-radius: 999px;
    background: var(--home-reference-red);
}

.home-feed-panel__head .text-link {
    font-size: 0.88rem;
}

.home-news-feature {
    display: grid;
    grid-template-columns: minmax(230px, 0.95fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(7, 24, 63, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(7, 24, 63, 0.06);
}

.home-news-feature__media {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: #edf3f8;
}

.home-news-feature__image,
.home-news-feature__placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
}

.home-news-feature__image,
.home-news-mini__image,
.home-event-row__image {
    object-fit: cover;
}

.home-news-feature__placeholder,
.home-news-mini__placeholder,
.home-event-row__placeholder {
    background: linear-gradient(135deg, #e8eef5, #f6f8fb);
}

.home-news-feature__badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0 0.85rem;
    border-radius: 6px;
    background: var(--home-reference-red);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-news-feature__body {
    padding: clamp(1.1rem, 2vw, 1.55rem);
}

.home-feed-tag {
    margin: 0 0 0.65rem;
    color: var(--home-reference-red);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-news-feature h3,
.home-news-mini h3,
.home-event-row h3 {
    margin: 0;
    color: var(--home-reference-ink);
    font-weight: 850;
    letter-spacing: 0;
}

.home-news-feature h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.45rem);
    line-height: 1.28;
}

.home-news-feature h3 a,
.home-news-mini h3 a,
.home-event-row h3 a {
    color: inherit;
    text-decoration: none;
}

.home-news-feature h3 a:hover,
.home-news-feature h3 a:focus-visible,
.home-news-mini h3 a:hover,
.home-news-mini h3 a:focus-visible,
.home-event-row h3 a:hover,
.home-event-row h3 a:focus-visible {
    color: var(--home-reference-red);
}

.home-news-feature__body > p:not(.home-feed-tag) {
    margin: 0.85rem 0 0;
    color: #394865;
    font-size: 0.98rem;
    line-height: 1.62;
}

.home-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 1.2rem;
    color: #5c6980;
    font-size: 0.82rem;
    font-weight: 700;
}

.home-news-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.1rem;
}

.home-news-mini {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 0.8rem;
    min-width: 0;
}

.home-news-mini__media {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #edf3f8;
}

.home-news-mini__image,
.home-news-mini__placeholder {
    width: 100%;
    height: 86px;
}

.home-news-mini h3 {
    font-size: 0.88rem;
    line-height: 1.35;
}

.home-news-mini .home-feed-tag {
    margin-bottom: 0.45rem;
    font-size: 0.64rem;
}

.home-news-mini .home-feed-meta {
    margin-top: 0.55rem;
    font-size: 0.74rem;
}

.home-event-list {
    display: grid;
    gap: 0.8rem;
}

.home-event-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 128px;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(7, 24, 63, 0.1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(7, 24, 63, 0.04);
}

.home-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    border: 1px solid rgba(7, 24, 63, 0.1);
    border-radius: 8px;
    background: #fbfcfe;
    color: var(--home-reference-ink);
    text-align: center;
}

.home-event-date span,
.home-event-date small {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-event-date strong {
    font-size: 1.55rem;
    line-height: 1;
}

.home-event-row h3 {
    font-size: 1rem;
    line-height: 1.3;
}

.home-event-row__details {
    display: grid;
    gap: 0.22rem;
    margin-top: 0.45rem;
    color: #5c6980;
    font-size: 0.8rem;
    line-height: 1.35;
}

.home-event-row__media {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #edf3f8;
}

.home-event-row__image,
.home-event-row__placeholder {
    width: 100%;
    height: 78px;
}

.home-calendar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 260px);
    min-height: 3.25rem;
    margin-top: 1rem;
    border: 1px solid var(--home-reference-navy);
    border-radius: 8px;
    color: var(--home-reference-navy);
    font-weight: 800;
    text-decoration: none;
}

.home-calendar-button:hover,
.home-calendar-button:focus-visible {
    color: #ffffff;
    background: var(--home-reference-navy);
}

.home-sponsor-strip {
    margin-top: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 0.25rem;
}

@media (max-width: 1100px) {
    .home-hero__ribbon {
        right: clamp(-21rem, -24vw, -11rem);
        width: clamp(480px, 62vw, 760px);
        opacity: 0.28;
    }

    .home-feed-board {
        grid-template-columns: 1fr;
    }

    .home-feed-panel--events {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 820px) {
    .home-hero .site-shell {
        width: min(100% - 2rem, 1360px);
    }

    .home-hero {
        min-height: clamp(500px, 68vw, 580px);
        padding: clamp(2.6rem, 6vh, 4rem) 0 clamp(3rem, 7vh, 4.5rem);
    }

    .home-hero__ribbon {
        right: -20rem;
        width: clamp(440px, 82vw, 660px);
        opacity: 0.18;
    }

    .home-news-feature {
        grid-template-columns: 1fr;
    }

    .home-news-mini-grid {
        grid-template-columns: 1fr;
    }

    .home-news-mini {
        grid-template-columns: 92px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .home-hero {
        min-height: clamp(520px, calc(100svh - 2.5rem), 640px);
        align-items: end;
        padding: 2.4rem 0 2.6rem;
    }

    .home-hero::after {
        background:
            linear-gradient(180deg, rgba(3, 24, 61, 0.3) 0%, rgba(3, 24, 61, 0.96) 58%, rgba(3, 24, 61, 0.98) 100%);
    }

    .home-hero .site-shell {
        width: min(100% - 1.25rem, 1360px);
    }

    .home-hero__content {
        padding: 0;
    }

    .home-hero__title {
        max-width: 14ch;
        font-size: clamp(2rem, 8vw, 2.55rem);
    }

    .home-hero__intro {
        margin-top: 0.85rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .home-hero__actions {
        gap: 0.8rem;
        margin-top: 1.15rem;
    }

    .home-hero__actions .button {
        min-height: 3rem;
    }

    .home-hero__ribbon {
        display: block;
        right: -18rem;
        width: min(135vw, 560px);
        opacity: 0.12;
    }

    .home-feed-panel__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .home-news-feature__media,
    .home-news-feature__image,
    .home-news-feature__placeholder {
        min-height: 210px;
    }

    .home-event-row {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .home-event-row__media {
        display: none;
    }
}
