:root {
    --stahn-domain-ink: #151515;
    --stahn-domain-copy: #625d56;
    --stahn-domain-cream: #fbf5e9;
    --stahn-domain-card: #fffdf9;
    --stahn-domain-line: #ded4c5;
}

.elementor-widget-stahn-domain-hero,
.elementor-widget-stahn-domain-program-tabs,
.elementor-widget-stahn-domain-resources,
.elementor-widget-stahn-domain-cta,
.elementor-widget-stahn-domain-navigation {
    --stahn-domain-accent: #d6a315;
}

.stahn-domain-container {
    width: min(100% - 40px, 1320px);
    margin-inline: auto;
}

.stahn-domain-eyebrow {
    margin: 0 0 22px;
    color: var(--stahn-domain-accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .28em;
    line-height: 1.2;
    text-transform: uppercase;
}

.stahn-domain-section-title {
    margin: 0;
    color: var(--stahn-domain-ink);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(42px, 4vw, 58px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: .95;
    text-transform: uppercase;
}

/* Domain hero */
.stahn-domain-hero {
    position: relative;
    display: flex;
    min-height: 550px;
    align-items: center;
    overflow: hidden;
    color: #fff8eb;
    background-color: #24160e;
    background-image:
        linear-gradient(90deg, rgba(18, 14, 11, .90) 0%, rgba(24, 15, 9, .68) 48%, rgba(25, 13, 5, .26) 100%),
        linear-gradient(0deg, rgba(10, 8, 6, .38), transparent 62%),
        var(--stahn-domain-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 8px solid var(--stahn-domain-accent);
}

.stahn-domain-hero .stahn-domain-container {
    position: relative;
    z-index: 1;
}

.stahn-domain-hero-title {
    margin: 0 0 22px;
    color: inherit;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(70px, 8vw, 94px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: .9;
    text-transform: uppercase;
}

.stahn-domain-tagline,
.stahn-domain-intro {
    color: rgba(255, 249, 237, .84);
    font-family: "DM Sans", sans-serif;
}

.stahn-domain-tagline {
    margin: 0 0 34px;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.5;
}

.stahn-domain-intro {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
}

/* Programs and accessible tabs */
.stahn-domain-programs {
    padding: 112px 0 116px;
    background: var(--stahn-domain-cream);
}

.stahn-domain-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 48px;
}

.stahn-domain-tab {
    min-height: 54px;
    padding: 13px 30px;
    border: 2px solid var(--stahn-domain-line);
    border-radius: 999px;
    color: var(--stahn-domain-ink);
    background: transparent;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.1;
    text-transform: uppercase;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.stahn-domain-tab:hover,
.stahn-domain-tab:focus-visible {
    border-color: var(--stahn-domain-accent);
    outline: none;
    transform: translateY(-1px);
}

.stahn-domain-tab.is-active {
    border-color: var(--stahn-domain-accent);
    color: #fff;
    background: var(--stahn-domain-accent);
}

.stahn-domain-panels {
    margin-top: 38px;
}

.stahn-domain-panel {
    padding: 40px 44px 42px;
    border: 1px solid var(--stahn-domain-line);
    border-left: 8px solid var(--stahn-domain-accent);
    border-radius: 16px;
    background: var(--stahn-domain-card);
    box-shadow: 0 9px 20px rgba(35, 25, 13, .09);
}

.stahn-domain-panel[hidden] {
    display: none;
}

.stahn-domain-panel h3 {
    margin: 0 0 14px;
    color: var(--stahn-domain-accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.stahn-domain-panel p {
    color: var(--stahn-domain-copy);
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

.stahn-domain-program-description {
    margin: 0;
}

.stahn-domain-program-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 70px;
    margin-top: 34px;
}

.stahn-domain-program-details h4 {
    margin: 0 0 9px;
    color: var(--stahn-domain-ink);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .25em;
    line-height: 1.2;
    text-transform: uppercase;
}

.stahn-domain-program-details p {
    margin: 0;
}

/* Related resources */
.stahn-domain-resources {
    padding: 75px 0 82px;
    background: #f5eee2;
}

.stahn-domain-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
}

.stahn-domain-resource {
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: 18px;
    padding: 26px 28px;
    border: 1px solid var(--stahn-domain-line);
    border-radius: 13px;
    color: var(--stahn-domain-ink);
    background: var(--stahn-domain-card);
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.stahn-domain-resource > span:first-child {
    color: var(--stahn-domain-accent);
    font-size: 24px;
}

.stahn-domain-resource:hover,
.stahn-domain-resource:focus-visible {
    border-color: var(--stahn-domain-accent);
    color: var(--stahn-domain-ink);
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(35, 25, 13, .08);
}

/* Call to action */
.stahn-domain-cta {
    padding: 72px 0;
    color: #fff9ed;
    background: var(--stahn-domain-accent);
}

.stahn-domain-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.stahn-domain-cta h2 {
    margin: 0 0 14px;
    color: inherit;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(38px, 4vw, 50px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.stahn-domain-cta p {
    max-width: 720px;
    margin: 0;
    color: inherit;
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

.stahn-domain-cta-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
}

.stahn-domain-button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    border: 2px solid #151515;
    border-radius: 999px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.stahn-domain-button:hover,
.stahn-domain-button:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.stahn-domain-button-dark {
    color: #fff;
    background: #151515;
}

.stahn-domain-button-dark:hover,
.stahn-domain-button-dark:focus-visible {
    color: #151515;
    background: #fff9ed;
}

.stahn-domain-button-outline {
    border-color: #fff9ed;
    color: #fff9ed;
    background: transparent;
}

.stahn-domain-button-outline:hover,
.stahn-domain-button-outline:focus-visible {
    color: #151515;
    background: #fff9ed;
}

/* Other domains */
.stahn-domain-navigation {
    padding: 70px 0 76px;
    background: var(--stahn-domain-cream);
}

.stahn-domain-navigation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.stahn-domain-navigation-link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border: 2px solid var(--stahn-link-color);
    border-radius: 999px;
    color: var(--stahn-link-color);
    background: transparent;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.stahn-domain-navigation-link:hover,
.stahn-domain-navigation-link:focus-visible {
    color: #fff;
    background: var(--stahn-link-color);
    outline: none;
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .stahn-domain-hero {
        min-height: 500px;
    }

    .stahn-domain-resource-grid {
        grid-template-columns: 1fr;
    }

    .stahn-domain-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .stahn-domain-container {
        width: min(100% - 30px, 1320px);
    }

    .stahn-domain-hero {
        min-height: 510px;
        background-position: 60% center;
    }

    .stahn-domain-programs {
        padding: 78px 0 82px;
    }

    .stahn-domain-tablist {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .stahn-domain-tab {
        width: 100%;
    }

    .stahn-domain-panel {
        padding: 30px 25px 32px;
    }

    .stahn-domain-program-details {
        grid-template-columns: 1fr;
    }

    .stahn-domain-cta-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .stahn-domain-button {
        width: 100%;
    }

    .stahn-domain-navigation-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stahn-domain-navigation-link {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stahn-domain-tab,
    .stahn-domain-resource,
    .stahn-domain-button,
    .stahn-domain-navigation-link {
        transition: none;
    }
}
