/**
 * ALS United Blocks - Frontend Styles
 */

.als-united-board-members,
.als-united-executive-members {
    margin: 2rem 0;
}

.als-united-featured-blog-posts {
    margin: 3rem 0;
}

.als-united-trial-block {
    margin: 2rem 0;
}

.als-united-clinic-map {
    margin: 2rem 0;
}

.als-united-clinic-locator {
    margin: 2rem 0;
}

.als-united-clinic-locator iframe {
    border: none;
    border-radius: 8px;
}

/* Image + Text Block Styles */
.als-united-image-text {
    margin: 2rem 0;
}

.als-united-image-text .wp-block-image {
    width: inherit !important;
}

.als-united-image-text .standard-image {
    border-radius: var(--bs-card-border-radius);
    overflow: hidden;
    object-fit: cover !important;
    width: 100% !important;
}

.als-united-image-text .standard-image img {
    object-fit: cover;
    height: 100% !important;
    width: 100% !important;
    z-index: 2;
}

@media (min-width: 992px) {
    .als-united-image-text .standard-image {
        min-width: 350px !important;
        max-width: 350px !important;
    }
}

.als-united-image-text .p-box {
    background-color: white;
    padding: 1rem;
    box-shadow: -20px -20px #005776;
    display: flex;
    justify-content: center;
    border: 5px solid #005776;
    border-radius: var(--bs-card-border-radius);
}

@media (max-width: 991px) {
    .als-united-image-text .p-box {
        box-shadow: none;
    }

    /* Mobile: Stack vertically with image always on top */
    .als-united-image-text {
        flex-direction: column !important;
    }

    /* Ensure image is always first on mobile */
    .als-united-image-text-image {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin-bottom: 1rem;
    }

    .als-united-image-text .standard-image {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    /* Ensure content is always second on mobile */
    .als-united-image-text-content {
        order: 2 !important;
        width: 100% !important;
    }

    .als-united-image-text .p-box {
        order: 2 !important;
        width: 100% !important;
    }
}

/* Hero Banner Styles */
.als-united-hero-banner-wrap {
    width: 100%;
    background-color: white;
    position: relative;
    margin-bottom: 3rem;
}

.als-united-hero-banner {
    padding: 132px 0;
    overflow: hidden;
    background-color: #005776;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: soft-light;
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
}

@media (min-width: 768px) {
    .als-united-hero-banner {
        padding: 64px 0;
    }
}

@media (max-width: 767px) {
    .als-united-hero-banner {
        padding: 32px 16px;
    }
}

@media (min-width: 992px) {
    .als-united-hero-banner {
        min-height: 600px;
    }
}

.als-united-hero-banner>.container {
    z-index: 1;
}

.als-united-hero-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    z-index: 1;
}

@media (min-width: 992px) {
    .als-united-hero-content {
        max-width: 800px;
    }
}

.als-united-hero-content p {
    font-size: 18px;
}

.als-united-hero-content h1,
.als-united-hero-content h2,
.als-united-hero-content h3,
.als-united-hero-content h4,
.als-united-hero-content h5,
.als-united-hero-content h6,
.als-united-hero-content button,
.als-united-hero-content a,
.als-united-hero-content p {
    width: auto;
    transition: all 0.3s ease;
    color: white;
    width: max-content;
}

@media (max-width: 991px) {

    .als-united-hero-content h1,
    .als-united-hero-content h2,
    .als-united-hero-content h3,
    .als-united-hero-content h4,
    .als-united-hero-content h5,
    .als-united-hero-content h6,
    .als-united-hero-content button,
    .als-united-hero-content a,
    .als-united-hero-content p {
        max-width: 80vw;
    }
}

@media (min-width: 1400px) {

    .als-united-hero-content h2,
    .als-united-hero-content h3,
    .als-united-hero-content h4,
    .als-united-hero-content h5,
    .als-united-hero-content h6,
    .als-united-hero-content button,
    .als-united-hero-content a,
    .als-united-hero-content p {
        max-width: 70vw;
    }
}

.als-united-hero-content h1 {
    font-size: 64px;
    text-wrap: pretty;
    line-height: 1em;
}

@media (max-width: 991px) {
    .als-united-hero-content h1 {
        font-size: 7.5vw;
        width: auto;
    }
}

@media (min-width: 768px) {
    .als-united-hero-content h1 {
        padding: 0.5em;
        border-radius: 0.5em;
    }
}

@media (min-width: 992px) {
    .als-united-hero-content h1 {
        font-size: calc(4.5vw);
    }
}

.als-united-hero-content h2 {
    font-size: 48px;
    text-wrap: pretty;
    line-height: 1em;
}

@media (max-width: 991px) {
    .als-united-hero-content h2 {
        font-size: 6vw;
    }
}

@media (min-width: 768px) {
    .als-united-hero-content h2 {
        padding: 0.5em;
        border-radius: 0.5em;
    }
}

.als-united-hero-content h3 {
    font-size: 36px;
    text-wrap: pretty;
    line-height: 1em;
}

@media (max-width: 991px) {
    .als-united-hero-content h3 {
        font-size: 5vw;
    }
}

@media (min-width: 768px) {
    .als-united-hero-content h3 {
        padding: 0.5em;
        border-radius: 0.5em;
    }
}

.als-united-hero-content p {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
    max-width: 100%;
    text-wrap: pretty;
    width: max-content;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .als-united-hero-content p {
        padding: 1em;
        border-radius: 0.5em;
        margin-left: 1em;
    }
}

.als-united-hero-content a,
.als-united-hero-content button {
    margin-top: 1rem;
}

@media (min-width: 768px) {

    .als-united-hero-content a,
    .als-united-hero-content button {
        margin-left: 3rem;
    }
}

/* Hover states from HeroBanner (tablet and up) */
@media (min-width: 768px) {
    .als-united-hero-banner:hover h1 {
        background-color: #E0601F;
        /* $secondary */
    }

    .als-united-hero-banner:hover p {
        background-color: #FDB515;
        /* $primary */
        margin-left: 2em;
    }

    .als-united-hero-banner:hover a,
    .als-united-hero-banner:hover button {
        margin-left: 4em;
    }
}

.als-united-hero-logo {
    width: 500px;
    margin-left: 2em;
    margin-bottom: 2em;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .als-united-hero-logo {
        max-width: 300px;
    }
}

.als-united-hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.als-united-hero-carousel .carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.als-united-hero-carousel .carousel-control-prev,
.als-united-hero-carousel .carousel-control-next {
    z-index: 2;
}