/* ===========================
   GRID LAYOUT
=========================== */
.cta-story {
    display: grid;
    grid-template-columns: 67% auto;
    gap: 1em;
}

/* ===========================
   GLOBAL TEXT STYLES
=========================== */
.cta-story h2,
.cta-story p,
.cta-story span,
.cta-story a {
    color: #fff;
    text-decoration: none;
}

/* ===========================
   HERO TILE (LEFT)
=========================== */
.hero-tile {
    display: flex;
    flex-direction: column;
    aspect-ratio: 2;
    position: relative;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2em;
}

/* HERO DESCRIPTION FONT */
.hero-description {
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    line-height: 1.4;
    max-width: 90%;
    margin: 0;
}

/* HERO TILE DARK + BLUR OVERLAY */
.hero-tile::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.85)
    );

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    z-index: 1;
}

/* HERO CONTENT ABOVE OVERLAY */
.hero-tile > * {
    position: relative;
    z-index: 2;
}

/* FULL TILE LINK */
.hero-link {
    display: flex;
    flex-direction: column;
    flex: 1;

    text-decoration: none;
    color: inherit;
}

/* OVERLAY CONTENT */
.hero-overlay {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* HERO TEXT WRAPPER (PUSH DESCRIPTION TO BOTTOM) */
.hero-text {
    margin-top: auto;
}

/* HERO TITLE */
.hero-title {
    font-size: 2.4rem;
    line-height: 1.1;
    margin: 0 0 0.5em 0;
}

/* HERO META INFO */
.hero-meta {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    gap: 1em;
    opacity: 0.85;
    text-transform: uppercase;
}

.hero-meta a {
    color: #fff;
    text-decoration: none;
}

.hero-meta a:hover {
    text-decoration: underline;
}

/* HERO CATEGORY */
.hero-category {
    opacity: 0.8;
}

/* ===========================
   SUB HERO TILES (RIGHT COLUMN)
=========================== */
.hero-sub-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* top & bottom spacing for stacked tiles */
    height: 100%;
}

/* SUB TILE BASE */
.hero-sub-tile {
    display: flex;
    flex-direction: column;
    aspect-ratio: 2;
    position: relative;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* SUB TILE DARK + BLUR OVERLAY */
.hero-sub-tile::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.7)
    );

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    z-index: 1;
}

/* SUB TILE CONTENT ABOVE OVERLAY */
.hero-sub-overlay > * {
    position: relative;
    z-index: 2;
}

/* SUB TILE LINK */
.hero-sub-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

/* SUB TILE OVERLAY */
.hero-sub-overlay {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* top + bottom alignment */
    flex: 1;
    padding: 1em;
    position: relative;
}

/* SUB-TILE TITLE (TOP) */
.hero-sub-title {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0; /* pinned to top */
}

/* SUB DATE / AUTHOR / CATEGORY (BOTTOM ROW) */
.hero-sub-date {
    flex: 0 0 auto; /* don't stretch */
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* left align */
    align-items: center;
    gap: 0.5em;
    font-size: clamp(0.4rem, 1.5vw, 0.85rem);
    opacity: 0.85;
    text-transform: uppercase;
}

.hero-sub-date a {
    color: #fff;
    text-decoration: none;
}

.hero-sub-date a:hover {
    text-decoration: underline;
}

/* ===========================
   SAFARI BACKDROP-FILTER FALLBACK
=========================== */
@supports not ((backdrop-filter: blur(1px))) {
    .hero-tile::before,
    .hero-sub-tile::before {
        background: rgba(0, 0, 0, 0.7);
    }
}



/* ===========================
   MOBILE / RESPONSIVE
=========================== */
@media (max-width: 900px) {
    /* Stack everything in a single column */
    .cta-story {
        grid-template-columns: 1fr;
    }

    /* Hero tile spans only 1 row now */
    .hero-tile {
        grid-row: auto;
        aspect-ratio: 1; /* allow flexible height on mobile */
        padding: 1.5em; /* reduce padding for small screens */
    }

    /* Sub column becomes normal flow */
    .hero-sub-column {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
    }

    /* Sub tiles take full width and auto height */
    .hero-sub-tile {
        min-height: 10rem;
        margin-bottom: 1em; /* spacing between sub tiles */
    }

    /* Reduce font sizes slightly for mobile */
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    .hero-sub-title {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .hero-sub-date {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    }

    .hero-meta {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
        flex-wrap: wrap;
        gap: 0.5em;
    }
}
