/* Import Google font 'Lato' for use throughout the CTA */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;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;
}

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

/* Main container */
.segib20_cta {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* Wrapper - this will be the blue area with set width and height */
.segib20_cta__wrapper {
    width: 100%;
    max-width: 1440px;
    height: 393px;
    margin: 0 auto;
    background-color: #37BAD9;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    background-image: url('./assets/cta_graphic_right.svg'), url('./assets/cta_graphic_left.svg');
    background-repeat: no-repeat, no-repeat;
    background-position: right bottom, left bottom;
    background-size: 30% auto, 30% auto;
    overflow: hidden;
}

/* Content wrapper */
.segib20_cta__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;
    position: relative;
    z-index: 2;
}

/* Main heading */
.segib20_cta__text_1 {
    font-family: 'Lato', sans-serif;
    font-size: clamp(40px, 5vw, 60px);
    line-height: 0.825; /* Reduced by 25% from 1.1 */
    font-weight: 700;
    color: #1A1C1A !important;
    margin: 0 0 15px 0;
    text-align: center;
    max-width: 603px;
}

/* Apply TT Ramillas font only to numbers */
.segib20_cta__text_1 span[data-number="true"] {
    font-family: "TT Ramillas W03 Regular", serif;
}

/* Secondary heading */
.segib20_cta__text_2 {
    font-family: 'Lato', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 0.975; /* Reduced by 25% from 1.3 */
    font-weight: 400;
    color: #FFFFFF !important;
    margin: 0 0 20px 0;
    text-align: center;
    max-width: 329px;
}

/* Button Container - match convenio */
.segib20_cta__button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
    margin-bottom: 10px;
}

/* Button Styles - match convenio */
.segib20_cta__button {
    display: flex;
    align-items: center;
    background-color: white;
    color: #1B1C1F !important;
    padding: 7px 21px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    height: 42px;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    outline: none;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.3s ease;
}

.segib20_cta__button:hover,
.segib20_cta__button:focus {
    background-color: #f8f8f8;
    text-decoration: none;
    color: #1B1C1F !important;
}

.segib20_cta__button:focus {
    outline: 3px solid #000 !important;
    outline-offset: 2px;
}

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

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

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

/* TEMP – prove height will animate */
.timeline-item {
    overflow : hidden;
    transition: height .4s ease !important;
}
