/* E2G Hero Block Styles */

.e2g-hero {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
}

.e2g-hero--split {
    background: #eef2f6;
    color: #0e2f66;
}

.e2g-hero--split .e2g-hero__content {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 46%);
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: flex-start;
    padding: clamp(1.25rem, 2.5vw, 2.25rem);
}

.e2g-hero--split .e2g-hero__copy {
    min-width: 0;
    height: 100%;
}

.e2g-hero--split .e2g-hero__copy > :first-child {
    margin-top: 0;
}

.e2g-hero--split .e2g-hero__copy > :last-child {
    margin-bottom: 0;
}

.e2g-hero__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    background: #1676cf;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.e2g-hero--split .e2g-hero__title,
.e2g-hero--split .e2g-hero__content .wp-block-heading {
    margin: 0 0 1.25rem;
    color: #0e2f66;
    text-shadow: none;
    font-family: "Montserrat", sans-serif;
    /* font-size: clamp(1.4rem, 2.9vw, 2.8rem); */
    font-weight: 800;
    line-height: 1.04;
}

.e2g-hero__subtitle {
    margin: 0 0 1.2rem;
    color: #1f4275;
    font-size: clamp(1.05rem, 1.8vw, 1.65rem);
    font-weight: 600;
    line-height: 1.28;
}

.e2g-hero__date {
    display: block;
    margin: 0 0 0.75rem;
    color: #37588a;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

.e2g-hero__pill + .e2g-hero__date,
.e2g-category-tag + .e2g-hero__date {
    margin-top: 0;
}

.e2g-hero__date + .e2g-hero__title,
.e2g-hero__date + .wp-block-heading {
    margin-top: 0;
}

.e2g-hero__byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.e2g-hero__byline-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.e2g-hero__byline-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
}

.e2g-hero__byline-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.e2g-hero__byline-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0e2f66;
}

.e2g-hero__byline-bio {
    font-size: 0.95rem;
    line-height: 1.3;
    color: #37588a;
}

.e2g-hero__media {
    border-radius: 14px;
    overflow: hidden;
    min-height: 240px;
    background: #1478d0;
}

.e2g-hero__media img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.e2g-hero--no-media .e2g-hero__content {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1024px) {
    .e2g-hero--split .e2g-hero__content {
        grid-template-columns: minmax(0, 1fr);
    }

    .e2g-hero__media {
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    .e2g-hero {
        border-radius: 12px;
    }

    .e2g-hero--split .e2g-hero__content {
        padding: 1rem;
        gap: 1rem;
    }

    .e2g-hero__byline-avatar {
        width: 40px;
        height: 40px;
    }

    .e2g-hero__byline-name {
        font-size: 1rem;
    }
}
