/*
GWM Child Theme custom CSS.

Use this file for global GWM overrides.
Keep parent theme files untouched.
*/

/* === GWM LEADERSHIP ARCHIVE HERO START === */

.gwm-leadership-archive-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(440px, 62vh, 700px);
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(255, 250, 240, 0.72) 0%,
            rgba(255, 250, 240, 0.48) 48%,
            rgba(255, 250, 240, 0.18) 100%
        ),
        var(--gwm-leadership-hero-image, linear-gradient(135deg, #fffaf0, #f8efe0));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.gwm-leadership-archive-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.96));
    pointer-events: none;
}

.gwm-leadership-archive-hero .gwm-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.gwm-leadership-archive-hero__card {
    width: fit-content;
    max-width: min(760px, calc(100% - 2rem));
    padding: clamp(1.35rem, 3vw, 2.6rem);
    border-radius: 14px;
    border: 1px solid rgba(189, 139, 47, 0.36);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 240, 0.90));
    box-shadow:
        0 24px 70px rgba(20, 29, 52, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gwm-leadership-archive-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.8rem;
    color: #bd8b2f;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gwm-leadership-archive-hero__eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: rgba(189, 139, 47, 0.72);
}

.gwm-leadership-archive-hero h1 {
    max-width: 680px;
    margin: 0 0 0.85rem;
    color: #17213b;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.gwm-leadership-archive-hero p {
    max-width: 630px;
    color: #263553;
    font-size: clamp(1.02rem, 1.45vw, 1.22rem);
    line-height: 1.78;
}

.gwm-leadership-archive-hero__admin-note {
    margin-top: 1rem;
    padding: 0.8rem 0.95rem;
    border-radius: 8px;
    border: 1px dashed rgba(189, 139, 47, 0.55);
    background: rgba(255, 250, 240, 0.82);
    font-size: 0.92rem !important;
}

@media (max-width: 760px) {
    .gwm-leadership-archive-hero {
        min-height: 520px;
        background:
            linear-gradient(
                180deg,
                rgba(255, 250, 240, 0.78) 0%,
                rgba(255, 250, 240, 0.56) 55%,
                rgba(255, 250, 240, 0.32) 100%
            ),
            var(--gwm-leadership-hero-image, linear-gradient(135deg, #fffaf0, #f8efe0));
        background-size: cover;
        background-position: center center;
    }

    .gwm-leadership-archive-hero__card {
        width: auto;
        max-width: calc(100% - 2rem);
        margin-inline: auto;
        padding: 1.2rem;
        border-radius: 12px;
    }

    .gwm-leadership-archive-hero h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }
}

/* === GWM LEADERSHIP ARCHIVE HERO END === */

/* === GWM LEADER ARCHIVE HERO START === */

.gwm-leader-archive-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(440px, 62vh, 700px);
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(255, 250, 240, 0.68) 0%,
            rgba(255, 250, 240, 0.42) 48%,
            rgba(255, 250, 240, 0.14) 100%
        ),
        var(--gwm-leader-hero-image, linear-gradient(135deg, #fffaf0, #f8efe0));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.gwm-leader-archive-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.96));
    pointer-events: none;
}

.gwm-leader-archive-hero .gwm-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.gwm-leader-archive-hero__card {
    width: fit-content;
    max-width: min(760px, calc(100% - 2rem));
    padding: clamp(1.35rem, 3vw, 2.6rem);
    border-radius: 14px;
    border: 1px solid rgba(189, 139, 47, 0.36);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 240, 0.90));
    box-shadow:
        0 24px 70px rgba(20, 29, 52, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gwm-leader-archive-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.8rem;
    color: #bd8b2f;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gwm-leader-archive-hero__eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: rgba(189, 139, 47, 0.72);
}

.gwm-leader-archive-hero h1 {
    max-width: 680px;
    margin: 0 0 0.85rem;
    color: #17213b;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.gwm-leader-archive-hero p {
    max-width: 630px;
    color: #263553;
    font-size: clamp(1.02rem, 1.45vw, 1.22rem);
    line-height: 1.78;
}

.gwm-leader-archive-hero__admin-note {
    margin-top: 1rem;
    padding: 0.8rem 0.95rem;
    border-radius: 8px;
    border: 1px dashed rgba(189, 139, 47, 0.55);
    background: rgba(255, 250, 240, 0.82);
    font-size: 0.92rem !important;
}

@media (max-width: 760px) {
    .gwm-leader-archive-hero {
        min-height: 520px;
        background:
            linear-gradient(
                180deg,
                rgba(255, 250, 240, 0.76) 0%,
                rgba(255, 250, 240, 0.54) 55%,
                rgba(255, 250, 240, 0.30) 100%
            ),
            var(--gwm-leader-hero-image, linear-gradient(135deg, #fffaf0, #f8efe0));
        background-size: cover;
        background-position: center center;
    }

    .gwm-leader-archive-hero__card {
        width: auto;
        max-width: calc(100% - 2rem);
        margin-inline: auto;
        padding: 1.2rem;
        border-radius: 12px;
    }

    .gwm-leader-archive-hero h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }
}

/* === GWM LEADER ARCHIVE HERO END === */

/* === GWM LEADER HERO CARD SOFTEN START === */

/*
 * Leadership hero card correction.
 * Goal: card supports text readability without fighting the hero image.
 */

.gwm-leader-archive-hero {
    min-height: clamp(460px, 66vh, 720px);
    background:
        linear-gradient(
            90deg,
            rgba(255, 250, 240, 0.46) 0%,
            rgba(255, 250, 240, 0.24) 45%,
            rgba(255, 250, 240, 0.04) 100%
        ),
        var(--gwm-leader-hero-image, linear-gradient(135deg, #fffaf0, #f8efe0)) !important;
    background-size: cover !important;
    background-position: center center !important;
}

.gwm-leader-archive-hero::after {
    height: 22%;
    background: linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.76)) !important;
}

.gwm-leader-archive-hero__card {
    max-width: min(640px, calc(100% - 2rem)) !important;
    padding: clamp(1rem, 2.2vw, 1.75rem) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(189, 139, 47, 0.24) !important;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.54),
            rgba(255, 250, 240, 0.62)
        ) !important;
    box-shadow:
        0 14px 34px rgba(20, 29, 52, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.56) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
}

.gwm-leader-archive-hero__eyebrow {
    margin-bottom: 0.55rem !important;
    font-size: 0.7rem !important;
}

.gwm-leader-archive-hero h1 {
    max-width: 580px !important;
    margin-bottom: 0.65rem !important;
    font-size: clamp(2.4rem, 5.2vw, 5rem) !important;
    text-shadow:
        0 1px 10px rgba(255, 250, 240, 0.60),
        0 1px 18px rgba(255, 250, 240, 0.45) !important;
}

.gwm-leader-archive-hero p {
    max-width: 560px !important;
    font-size: clamp(0.98rem, 1.25vw, 1.12rem) !important;
    line-height: 1.68 !important;
    text-shadow:
        0 1px 8px rgba(255, 250, 240, 0.72) !important;
}

@media (max-width: 760px) {
    .gwm-leader-archive-hero {
        min-height: 520px;
        align-items: flex-end;
        padding-bottom: 2rem;
        background:
            linear-gradient(
                180deg,
                rgba(255, 250, 240, 0.22) 0%,
                rgba(255, 250, 240, 0.10) 42%,
                rgba(255, 250, 240, 0.62) 100%
            ),
            var(--gwm-leader-hero-image, linear-gradient(135deg, #fffaf0, #f8efe0)) !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .gwm-leader-archive-hero__card {
        max-width: calc(100% - 1.5rem) !important;
        padding: 0.95rem 1rem !important;
        margin-inline: auto !important;
        background:
            linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.48),
                rgba(255, 250, 240, 0.62)
            ) !important;
        box-shadow: 0 10px 26px rgba(20, 29, 52, 0.10) !important;
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
    }

    .gwm-leader-archive-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.6rem) !important;
    }

    .gwm-leader-archive-hero p {
        font-size: 0.96rem !important;
        line-height: 1.58 !important;
    }
}

/* === GWM LEADER HERO CARD SOFTEN END === */
