/* ─── CTA Panels ─────────────────────────────────────────────── */
.cta-panels {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 4px solid #ffcc00;
    margin: 0;
    padding: 0;
}

.cta-panel {
    --photo: none;
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 200px;
    overflow: hidden;
    isolation: isolate;
    background-image: var(--photo), linear-gradient(145deg, #002347 0%, #e6b800 100%);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-panel:last-child {
    border-right: none;
}

/* Dark gradient overlay */
.cta-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.50) 55%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
    transition: background 0.3s ease;
}

.cta-panel:hover::after {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.65) 55%,
        rgba(0, 0, 0, 0.25) 100%
    );
}

/* Green top bar — slides in from left on hover */
.cta-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffcc00;
    z-index: 3;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.cta-panel:hover::before {
    transform: scaleX(1);
}

/* Accent panel — bright green replaces default green */
.cta-panel--accent::before {
    background: #7aa8e4;
}

.cta-panel--accent .cta-panel__title {
    color: #7aa8e4;
}

/* Content — above overlay */
.cta-panel__content {
    position: relative;
    z-index: 2;
    padding: 14px 16px;
    width: 100%;
}

.cta-panel__label {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
    margin-bottom: 4px;
}

.cta-panel__title {
    font-family: var(--font-sans);
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    display: flex;
    align-items: center;
}

.cta-panel__arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.25s ease;
}

.cta-panel:hover .cta-panel__arrow {
    transform: translateX(4px);
}

/* ── Tablet: 3 columns ──────────────────────────────────────── */
@media (max-width: 980px) {
    .cta-panels {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-panel {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .cta-panel:nth-child(3n) {
        border-right: none;
    }

    .cta-panel:nth-child(4),
    .cta-panel:nth-child(5),
    .cta-panel:nth-child(6) {
        border-bottom: none;
    }
}

/* ── Mobile: 2 columns ──────────────────────────────────────── */
@media (max-width: 480px) {
    .cta-panels {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-panel {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* Reset the 3n rule from the tablet breakpoint */
    .cta-panel:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .cta-panel:nth-child(2n) {
        border-right: none;
    }

    .cta-panel:nth-child(5),
    .cta-panel:nth-child(6) {
        border-bottom: none;
    }
}
