/* Search Page Header (cloned from Large Page Header With Text) */
.acv-sph-block {
    width: 100%;
    position: relative;
    margin: 0 auto;
    background: #0d4c5f;
    color: #ffffff;
}

.acv-sph-inner {
    display: flex;
    min-height: 180px;
    max-width: 1600px;
    width: min(1600px, calc(100vw - 2 * max(20px, calc(50vw - 800px))));
    margin-left: max(20px, calc(50vw - 800px));
    margin-right: auto;
    box-sizing: border-box;
}

.acv-sph-content {
    flex: 1 1 50%;
    padding-top: clamp(28px, 3.5vw, 46px);
    padding-right: clamp(32px, 5vw, 70px);
    padding-bottom: clamp(28px, 3.5vw, 45px);
    padding-left: 0;
    background: #0d4c5f;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.acv-sph-title {
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.acv-sph-body {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.acv-sph-body p {
    line-height: 1.9rem;
}

.acv-sph-search-summary {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.acv-sph-cta .acv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.4rem;
    font-weight: 400;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff !important;
}

.acv-sph-cta .acv-btn-primary,
.acv-sph-cta .acv-btn-primary:visited {
    color: #ffffff !important;
}

.acv-sph-cta .acv-btn:hover,
.acv-sph-cta .acv-btn:focus {
    text-decoration: none;
    color: #ffffff !important;
}

.acv-sph-media {
    position: relative;
    flex: 1 1 55%;
    min-height: clamp(180px, 27.5vw, 280px);
    overflow: hidden;
}



.acv-sph-media-image,
.acv-sph-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.acv-sph-media-image {
    background-size: cover;
}

.acv-sph-media-image.acv-sph-media-rotated {
    transform: rotate(45deg);
    background-position: center;
    transform-origin: center;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    position: absolute;
}

.acv-sph-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ============================================
   Entry Animation
   ============================================ */

/* Title starts hidden, slides up from below */
.acv-sph-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.acv-sph-loaded .acv-sph-title {
    opacity: 1;
    transform: translateY(0);
}

/* Body text with slight delay */
.acv-sph-body {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.acv-sph-loaded .acv-sph-body {
    opacity: 1;
    font-size: 1.5rem;
    transform: translateY(0);
}

/* CTA starts hidden, slides up with delay */
.acv-sph-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.acv-sph-loaded .acv-sph-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .acv-sph-title,
    .acv-sph-body,
    .acv-sph-cta {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 1024px) {
    .acv-sph-inner {
        width: calc(100vw - 40px);
        margin-left: 20px;
        margin-right: auto;
    }

    .acv-sph-content {
        padding: clamp(48px, 8vw, 70px) clamp(28px, 6vw, 55px) clamp(48px, 8vw, 70px) 0;
    }
}

@media (max-width: 768px) {
    .acv-sph-inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: calc(100vw - 40px);
        margin-left: 20px;
        margin-right: auto;
    }

    .acv-sph-content,
    .acv-sph-media {
        flex: 1 1 100%;
    }

    .acv-sph-media {
        visibility: hidden;
        display: none;
    }

    .acv-sph-content {
        padding: 40px 20px 25px !important;
        text-align: center;
        align-items: center;
    }

    /* Avoid trailing gap when the summary/body is the last element */
    .acv-sph-content > *:last-child {
        margin-bottom: 0;
    }

    .acv-sph-title,
    .acv-sph-body,
    .acv-sph-cta {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .acv-sph-title {
        font-size: 2.25rem;
    }
}
