@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');

/* Banner: exact-abouttrials hero styling (mobile, tablet, desktop) */

/* Base / mobile-first */
.banner {
    position: relative;
    width: 100%;
    min-height: 320px; /* mobile baseline */
    display: flex;
    align-items: center;
    color: #ffffff;
    background-color: #3B0764;
    background-image: url('https://abouttrials.com/wp-content/uploads/2026/02/AboutTrials_landing-page_final-1-1-scaled-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
    overflow: hidden;
}

    /* dark gradient overlay matching live site */
    .banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(59,7,100,0.9) 0%, rgba(107,33,168,0.55) 50%, rgba(107,33,168,0.45) 100%);
        z-index: 0;
    }

    /* ensure inner content sits above overlay */
    .banner * {
        /*position: relative;*/
        z-index: 1;
    }

    /* Image (logo) styling used on the source page */
    .banner .elementor-widget-image img,
    .banner img {
        display: block;
        max-width: 260px;
        height: auto;
        margin: 0 0 18px 0;
    }

    /* Heading styles */
    .banner .elementor-heading-title,
    .banner h1,
    .banner h3 {
        color: #ffffff;
        margin: 0 0 8px 0;
        line-height: 1.05;
        font-weight: 700;
    }

        /* Small heading / preheading */
        .banner h3.elementor-heading-title {
            font-size: 14px;
            letter-spacing: 1px;
            text-transform: uppercase;
            opacity: 0.95;
        }

        /* Main title */
        .banner h1.elementor-heading-title,
        .banner h1 {
            font-size: 28px;
            margin-top: 6px;
        }

    /* Paragraph text */
    .banner p,
    .banner .elementor-widget-text-editor p {
        color: rgba(255,255,255,0.95);
        max-width: 700px;
        margin: 10px 0 16px 0;
        font-size: 14px;
    }

    /* CTA button */
    .banner .elementor-button,
    .banner .elementor-button.elementor-size-sm,
    .banner .elementor-button-link {
        display: inline-block;
        background: rgba(59,7,100,0.55);
        color: #fff !important;
        border: 2px solid rgba(255,255,255,0.12);
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none;
        transition: all .18s ease;
        font-weight: 600;
        box-shadow: none;
    }

        .banner .elementor-button:hover,
        .banner .elementor-button-link:hover {
            background: rgba(255,255,255,0.10);
            transform: translateY(-2px);
            border-color: rgba(255,255,255,0.26);
        }

    /* layout helpers to match the original structure: stack vertically on small screens */
    .banner .elementor-element,
    .banner .elementor-widget {
        width: 100%;
    }

/* Tablet */
@media (min-width: 600px) {
    .banner {
        min-height: 380px;
        padding: 50px 28px;
    }

        .banner h1.elementor-heading-title,
        .banner h1 {
            font-size: 38px;
        }

        .banner p,
        .banner .elementor-widget-text-editor p {
            font-size: 15px;
        }

        .banner img {
            max-width: 300px;
        }
}

/* Desktop / large */
@media (min-width: 992px) {
    .banner {
        min-height: 420px;
        padding: 60px 80px;
        align-items: center;
        justify-content: flex-start;
    }

        /* Keep content area narrow (like the source page) */
        .banner .elementor-element-bd4e93c,
        .banner .elementor-element-2ba2aed,
        .banner .elementor-element-51d625e {
            max-width: 680px;
        }

        .banner h3.elementor-heading-title {
            font-size: 18px;
        }

        .banner h1.elementor-heading-title,
        .banner h1 {
            font-size: 46px;
            font-weight: 600;
        }

        .banner p,
        .banner .elementor-widget-text-editor p {
            font-size: 20px;
            letter-spacing: 1px;
            font-weight: 400;
            line-height: 29px;
        }

        .banner img {
            position: absolute;
            right: 80px;
            top: 40.65px;
            max-width: 280px;
        }

        .banner .elementor-button {
            padding: 12px 28px;
        }
}

/* Accessibility: ensure sufficient contrast for small text over overlay */
.banner p,
.banner h3 {
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
