@keyframes jx3-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes jx3-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.jumbotrons-container {
    position: relative;
    width: 100%;
    padding: 10rem var(--space-section-x) 12rem;
    background: var(--bg-color);
    color: var(--color-white);
    overflow: hidden;
    opacity: 0;
}

.jumbotrons-container.is-visible {
    animation: jx3-fade-in 0.8s ease-out forwards;
}

.jumbotrons-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.4;
    filter: grayscale(80%) contrast(1.05);
    pointer-events: none;
}

.jumbotrons-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at top, rgba(var(--color-dark-blue-rgb), 0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-color) 0%, rgba(var(--color-dark-blue-rgb), 0.1) 50%, var(--bg-color) 100%);
    pointer-events: none;
}

.jumbotrons-intro,
.jumbotrons-grid {
    position: relative;
    z-index: 2;
}

.jumbotrons-intro {
    max-width: 1400px;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 0px;
    opacity: 0;
}

.jumbotrons-container.is-visible .jumbotrons-intro {
    animation: jx3-fade-in-up 0.8s ease-out 0.1s both;
}

.jumbotrons-eyebrow {
    position: relative;
    padding-left: 60px;
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-flat);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.jumbotrons-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 48px;
    height: 1px;
    background: var(--gold);
    transform: translateY(-50%);
}

.jumbotrons-title {
    max-width: 800px;
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-heading);
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--color-white);
}

.jumbotrons-title-line {
    display: block;
}

/* Intro text + CTA row (text left, button pushed right) */
.jumbotrons-intro-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.jumbotrons-intro-text {
    flex: 1 1 460px;
    max-width: 760px;
    color: rgba(var(--color-white-rgb), 0.85);
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    line-height: var(--line-height-copy);
}

.jumbotrons-intro-text > * {
    margin: 0;
}

.jumbotrons-intro-text > * + * {
    margin-top: var(--space-sm);
}

.jumbotrons-intro-cta {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.jumbotrons-intro-cta-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.jumbotrons-intro-cta:hover .jumbotrons-intro-cta-arrow {
    transform: translateX(4px);
}

.jumbotrons-gold {
    color: var(--gold);
    font-style: normal;
    font-weight: inherit;
}

.jumbotrons-grid {
    --jx3-gap: var(--space-lg);
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--jx3-gap);
    opacity: 0;
}

.jumbotrons-container.is-visible .jumbotrons-grid {
    animation: jx3-fade-in-up 0.8s ease-out 0.2s both;
}

.jumbotron-card {
    /* Max 3 per row; flex-grow makes the last (incomplete) row fill the width:
       1 card → 100%, 2 → 50/50, 3 → thirds, 4 → 3 then a full-width row, … */
    flex: 1 1 calc(100% / 3 - var(--jx3-gap));
    min-width: 0;
    position: relative;
    min-height: 420px;
    padding: var(--space-3xl) var(--space-2xl);
    border: 1px solid rgba(var(--color-white-rgb), 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    isolation: isolate;
    opacity: 0;
}

.jumbotrons-container.is-visible .jumbotron-card {
    animation: jx3-fade-in-up 0.6s ease-out forwards;
}

.jumbotrons-container.is-visible .jumbotron-card:nth-child(1) {
    animation-delay: 0.3s;
}

.jumbotrons-container.is-visible .jumbotron-card:nth-child(2) {
    animation-delay: 0.4s;
}

.jumbotrons-container.is-visible .jumbotron-card:nth-child(3) {
    animation-delay: 0.5s;
}

.jumbotron-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: grayscale(30%) brightness(0.75);
    transition:
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.6s ease;
    will-change: transform;
}

.jumbotron-card__bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(var(--color-dark-blue-rgb), 0.55) 0%,
        rgba(var(--color-dark-blue-rgb), 0.78) 60%,
        rgba(var(--color-dark-blue-rgb), 0.92) 100%
    );
    transition: background 0.5s ease;
}

.jumbotron-card:hover .jumbotron-card__bg {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(0.85);
}

.jumbotron-card:hover .jumbotron-card__bg-overlay {
    background: linear-gradient(
        180deg,
        rgba(var(--color-dark-blue-rgb), 0.4) 0%,
        rgba(var(--color-dark-blue-rgb), 0.7) 60%,
        rgba(var(--color-dark-blue-rgb), 0.9) 100%
    );
}

.jumbotron-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.jumbotron-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at top right, rgba(var(--color-gold-rgb), 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.jumbotron-card:hover {
    background: rgba(var(--color-white-rgb), 0.05);
    border-color: rgba(var(--color-gold-rgb), 0.35);
}

.jumbotron-card:hover::before {
    transform: scaleX(1);
}

.jumbotron-card:hover::after {
    opacity: 1;
}

.jumbotron-card__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-2xl);
    color: var(--color-white);
}

.jumbotron-card__top {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.jumbotron-card__label {
    font-family: var(--font-family-base);
    font-size: var(--font-size-xs-3);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-flat);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.jumbotron-card__title {
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-h3-8);
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    letter-spacing: 0;
    color: var(--color-white);
}

.jumbotron-card__description {
    max-width: 320px;
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm-6);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-copy);
    color: rgba(var(--color-white-rgb), 1);
}

.jumbotron-card__description > * {
    margin: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

.jumbotron-card__description > * + * {
    margin-top: var(--space-sm);
}

.jumbotron-card__actions {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.jumbotron-card__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    max-width: 100%;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -o-hyphens: auto;
    hyphens: auto;
}

/* Allow the label (a flex child) to shrink below its content size so a long
   word can break instead of forcing the button to overflow the card. */
.jumbotron-card__cta-text {
    min-width: 0;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -o-hyphens: auto;
    hyphens: auto;
}

.jumbotron-card__cta.hero-cta-primary {
    background: var(--gold);
    color: white;
    border: 1px solid var(--gold);
}

.jumbotron-card__cta.hero-cta-primary:hover,
.jumbotron-card__cta.hero-cta-primary:focus-visible {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.jumbotron-card__cta.hero-cta::after {
    background: rgba(var(--color-gold-rgb), 0.15);
}

.jumbotron-card__cta-arrow {
    display: inline-block;
    font-size: var(--font-size-base);
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.jumbotron-card:hover .jumbotron-card__cta-arrow {
    transform: translateX(6px);
}

/* The global mobile rule `.hero-cta { flex: 1 1 auto }` (≤1023px, meant for the
   hero's row of buttons) otherwise makes these CTAs grow inside the card's flex
   COLUMN, ballooning the button vertically. Pin them to content size. The
   compound selector outranks the `.hero-cta` rule regardless of load order. */
.jumbotron-card__cta.hero-cta,
.jumbotrons-intro-cta.hero-cta {
    flex: 0 0 auto;
}

@media (max-width: 1024px) {
    .jumbotrons-container {
        padding: 8rem var(--space-lg) 9rem;
    }

    .jumbotrons-grid {
        --jx3-gap: var(--space-md);
    }

    .jumbotron-card {
        flex-basis: 100%;
        min-height: 340px;
    }
}

@media (max-width: 640px) {
    .jumbotrons-container {
        padding: 6rem var(--space-lg) 8rem;
    }

    .jumbotrons-intro {
        margin-bottom: var(--space-3xl);
    }

    .jumbotrons-title {
        font-size: var(--font-size-h2-mobile);
    }

    .jumbotron-card {
        min-height: 300px;
        /*padding: var(--space-2xl) var(--space-xl);*/
        padding: 20px;
    }

    .jumbotron-card__title {
        font-size: var(--font-size-h4);
    }

    .jumbotron-card__title br {
        display: none;
    }
    .jumbotron-card__cta.hero-cta-primary{
        padding: 7px 16px;
    font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jumbotrons-container,
    .jumbotrons-container.is-visible,
    .jumbotrons-intro,
    .jumbotrons-grid,
    .jumbotron-card {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .jumbotron-card__bg,
    .jumbotron-card__bg-overlay,
    .jumbotron-card::before,
    .jumbotron-card::after,
    .jumbotron-card__cta-arrow {
        transition: none;
    }
}
