/* Import Google font 'Lato' for use throughout the banner */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;700&display=swap');

/* Import TT Ramillas font for headings and year display */
@font-face{
    font-family: "TT Ramillas W03 Regular";
    src: url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.eot");
    src: url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.eot?#iefix")format("embedded-opentype"),
        url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.woff")format("woff"),
        url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.woff2")format("woff2"),
        url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.ttf")format("truetype"),
        url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.svg#TT Ramillas W03 Regular")format("svg");
    font-weight:normal;
    font-style:normal;
    font-display:swap;
}

/* Animations for text elements - subtle fade up */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Reset for block */
.wp-block-acf-segib20_intro_banner {
    margin: 0;
    padding: 0;
}

/* Main container */
.segib20_intro_banner {
    width: 100%;
    margin: 0;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 30px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* Wrapper - this will be the blue area with set width */
.segib20_intro_banner__wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 180px 0;
    background-color: #37BAD9;
    display: flex;
    justify-content: center;
    box-sizing: border-box;

    /* Add background graphics */
    background-image: url('./assets/banner_graphic_top.svg'), url('./assets/banner_graphic_bottom.svg');
    background-position: top right, bottom left;
    background-repeat: no-repeat;
    background-size: 31.25%, 31.25%; /* Larger base size for desktop */
    position: relative; /* For positioning context if needed later */
}

/* Content wrapper */
.segib20_intro_banner__content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

/* Main heading */
.segib20_intro_banner__text_1 {
    font-family: 'Lato', sans-serif;
    font-size: clamp(60px, 8vw, 120px);
    line-height: 1;
    font-weight: 700;
    color: #000000 !important;
    margin: 0 0 40px 0;
    text-align: center;
    width: calc(100% - 60px);
    max-width: 1380px;
    /* Animation */
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

/* Apply TT Ramillas font only to numbers */
.segib20_intro_banner__text_1 span:matches([0-9]) {
    font-family: "TT Ramillas W03 Regular", serif;
}

/* For browsers that don't support :matches */
.segib20_intro_banner__text_1 span[data-number="true"] {
    font-family: "TT Ramillas W03 Regular", serif;
}

/* Secondary heading */
.segib20_intro_banner__text_2 {
    font-family: 'Lato', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.3;
    font-weight: 700;
    color: #FFFFFF !important;;
    margin: 0 0 40px 0;
    text-align: center;
    width: 100%;
    max-width: 760px;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.4s forwards;
}

/* Body text */
.segib20_intro_banner__text_3 {
    font-family: 'Lato', sans-serif;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    font-weight: 400;
    color: #000000 !important;;
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 760px;
    /* Animation - most delayed */
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.6s forwards;
}

/* Respect user preferences for reduced motion */
/*
@media (prefers-reduced-motion: reduce) {
    .segib20_intro_banner__text_1,
    .segib20_intro_banner__text_2,
    .segib20_intro_banner__text_3 {
        animation: none;
        opacity: 1;
    }
}
*/

/* Tablet adjustments */
@media (max-width: 991px) {
    .segib20_intro_banner {
        /* Force full width */
        width: 100vw;
        max-width: 100vw; /* Ensure no other rule overrides this */
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        /* Reset side margins/paddings if needed */
        margin-left: 0;
        margin-right: 0;
    }
    
    .segib20_intro_banner__wrapper {
        padding: 120px 0;
        background-size: 25%, 25%; /* Smaller size for tablet/mobile */
        width: 100%;
    }
    
    .segib20_intro_banner__content {
      /*  padding: 0 30px;*/
    }

    .segib20_intro_banner__text_1 {
        width: calc(100% - 60px);
        margin-bottom: 20px;
    }

    .segib20_intro_banner__text_2 {
        margin-bottom: 20px;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {

    

    .segib20_intro_banner__wrapper {
        padding: 60px 0;
    }
    
    .segib20_intro_banner__content {
        padding: 0 20px;
    }

    .segib20_intro_banner__text_1 {
        width: calc(100% - 40px);
        font-size: clamp(40px, 6vw, 60px);
        margin-bottom: 15px;
    }

    .segib20_intro_banner__text_2 {
        font-size: clamp(24px, 3vw, 28px);
        margin-bottom: 15px;
    }

    .segib20_intro_banner__text_3 {
        font-size: 16px;
    }
}

/* Accessibility */
.segib20_intro_banner a:focus,
.segib20_intro_banner button:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Ensure text remains visible during webfont load */
.segib20_intro_banner {
    font-display: swap;
}

/* Remove any gap between blocks */
.wp-block-acf-segib20_intro_banner {
    margin-bottom: 0 !important;
}

.wp-block-acf-segib20_video_1 {
    margin-top: 0 !important;
}





