/* -------------------------------------------------------
   Full-width page hero banner
   ------------------------------------------------------- */
.pledge-hero {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    margin-bottom: 40px;
}

.pledge-hero-inner {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.pledge-hero-title {
    color: #ffffff;
    font-size: 52px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    text-shadow: 3px 2px 5px rgba(0, 0, 0, 0.8);
    letter-spacing: 2.6px;
    margin: 0;
    line-height: 1.1;
}

.pledge-hero-subtitle {
    display: block;
    color: #ffffff;
    font-size: 72px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    text-shadow: 3px 2px 5px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    margin-top: 8px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .pledge-hero {
        height: 250px;
        padding: 0 20px 25px;
        margin-bottom: 24px;
    }

    .pledge-hero-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .pledge-hero-subtitle {
        font-size: 40px;
        letter-spacing: 1.5px;
        margin-top: 4px;
    }
}

/* -------------------------------------------------------
   General page hero (featured image + page title)
   ------------------------------------------------------- */
.ccad-page-hero {
    /* Escape any parent max-width container */
    width: 100vw;
    margin-left: calc(50% - 50vw);

    height: 500px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fade to white at the bottom — matches live site */
.ccad-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 65%, white 100%);
    pointer-events: none;
}

.ccad-page-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.ccad-page-hero__title {
    color: #fff;
    font-size: clamp(28px, 4.5vw, 58px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    /* Heavy shadow keeps text legible without a dark overlay */
    text-shadow: 2px 2px 0 rgba(0,0,0,0.4), 0 0 30px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1.1;
}

/* Hide GP's default entry-header title and post thumbnail when hero is present */
.has-page-hero .entry-header,
.has-page-hero .post-image,
.has-page-hero .featured-image.page-header-image {
    display: none;
}

@media (max-width: 768px) {
    .ccad-page-hero {
        height: 300px;
    }
    .ccad-page-hero__inner {
        padding: 0 20px;
    }
}
