/* =========================
   GLOBAL HERO SYSTEM
========================= */

/* Hide duplicate page title */
.entity-page-header {
    display: none;
}

/* Reset spacing + prevent scroll */
body {
    margin: 0;
    overflow-x: hidden;
}

/* Remove top spacing from layout wrapper (CRITICAL FIX) */
.main-content-wrapper {
    margin-top: 0;
    padding-top: 0;
}


/* =========================
   HERO BASE
========================= */

.hero--topic {    
    position: relative;
    margin-top: -10px; /* Desktop */

    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);

    aspect-ratio: 16 / 2.5;
    padding-top: 50px;

    background-image:
        linear-gradient(
            to right,
            rgba(98,187,70,0.15) 0%,
            rgba(0,0,0,var(--overlay-mid,0.4)) 35%,
            rgba(0,0,0,var(--overlay-dark,0.6)) 100%
        ),
        var(--hero-bg);

    background-size: cover;
    background-position: var(--hero-position, 75% center);

    display: flex;
    align-items: flex-start;
}


/* =========================
   CONTENT CONTAINER
========================= */

.hero-content {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 15px;
    color: #ffffff;
}


/* =========================
   TYPOGRAPHY
========================= */

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;

    color: #62bb46;

    text-shadow:
        0 3px 6px rgba(0,0,0,0.9),
        0 6px 14px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 0;

    color: rgba(255,255,255,0.95);

    text-shadow:
        0 2px 6px rgba(0,0,0,0.9),
        0 0 10px rgba(0,0,0,0.6);
}


/* =========================
   RESPONSIVE
========================= */

/* Desktop */
@media (min-width: 1201px) {
    footer,
    .site-footer {
        padding-top: 30px;
    }
}


/* Tablet */
@media (max-width: 1200px) and (min-width: 601px) {

    footer,
    .site-footer {
        padding-top: 20px;
    }

    /* ✅ Adjust hero position slightly down */
    .hero--topic {
        margin-top: -2px;
        
        background-image:
            linear-gradient(
                to right,
                rgba(98,187,70,0.15) 0%,
                rgba(0,0,0,0.4) 35%,
                rgba(0,0,0,0.6) 100%
            ),
            var(--hero-bg-tablet, var(--hero-bg));
    }
}


/* Mobile */
@media (max-width: 600px) {

    footer,
    .site-footer {
        padding-top: 15px;
    }

    /* ✅ Adjust hero position slightly down */
    .hero--topic {
        margin-top: -4px;

        aspect-ratio: 16 / 7;
        min-height: 260px;

        background-position: var(--hero-position-mobile, 75% center);

        background-image:
            linear-gradient(
                to right,
                rgba(98,187,70,0.15) 0%,
                rgba(0,0,0,0.4) 35%,
                rgba(0,0,0,0.6) 100%
            ),
            var(--hero-bg-mobile, var(--hero-bg));
    }

    .hero-content {
        text-align: center;
        padding: 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}