/* Types Floating Section Styles */
.types-floating-wrapper {
    width: 100%;
    background-color: var(--color-white);
    padding: 360px 0 0;
    position: relative;
}

/* Intro text above the floating container */
.types-floating-wrapper .types-intro-text {
    max-width: 1080px;
    margin: 0 auto 190px;
    padding: 0 20px;
    text-align: center;
    font-size: var(--font-size-h2-bow);
    line-height: var(--font-lh-h2-bow);
    font-weight: 600;
    z-index: 2;
    position: relative;
}

.types-floating-wrapper .types-floating-container {
    margin: 0 auto;
    padding: 0 0 130px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Content container with curved treatment */
.types-floating-wrapper .types-content {
    width: 1440px;
    position: relative;
    background: var(--color-blue-gradient-extended);
    padding: 100px 0 80px;
    margin-top: -100px;
    margin: -100px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    color: var(--color-white);
    clip-path: var(--clip-path-smooth-bowl);
}

/* Headline container with curved treatment - positioned to overlap content */
.types-floating-wrapper .types-headline-container {
    width: 840px;
    background-color: var(--color-red);
    text-align: center;
    padding: 30px 40px;
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    clip-path: var(--clip-path-headline-bowl);
}

.types-floating-wrapper .types-headline {
    margin: 0;
    color: var(--color-white);
    font-size: var(--font-size-h2-bow-large);
    line-height: var(--font-lh-h2-bow-large);
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

/* Column layout for the types */
.types-floating-wrapper .types-columns {
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 20px;
    max-width: 1280px;
    width: 100%;
}

.types-floating-wrapper .type-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 25px; /* Adding 25px top padding as requested */
}

/* Type title - 30px headline */
.types-floating-wrapper .type-title {
    font-size: var(--font-size-types-floating-title);
    line-height: var(--font-lh-types-floating-title);
    font-weight: 600;
    margin: 0 0 30px;
    color: var(--color-white);
    position: relative;
    height: 60px; /* Fixed height for vertical alignment */
    display: flex;
    align-items: center;
    justify-content: center; /* Center text vertically */
}

/* Icon styles */
.types-floating-wrapper .type-icon {
    margin: 20px 0 5px 0; /* 25px top margin as requested, keeping your bottom margin */
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 91px; /* Fixed height for vertical alignment */
    width: 91px; /* Fixed width for consistent sizing */
}

/* Custom top border using the yellow-custom-border.svg */
.types-floating-wrapper .type-icon::before {
    content: "";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 168px;
    height: 3px;
    background-image: url('/wp-content/uploads/static/yellow-custom-border.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.types-floating-wrapper .type-icon img {
    max-width: 91px;
    height: auto;
    object-fit: contain;
}

/* Subtitle - 24px text under the icon */
.types-floating-wrapper .type-subtitle {
    font-size: var(--font-size-types-floating-subtitle);
    line-height: var(--font-lh-types-floating-subtitle);
    font-weight: 600;
    margin: 15px 0 20px 0; /* 15px top margin as requested, keeping your bottom margin */
    color: var(--color-white);
    height: 50px; /* Fixed height for vertical alignment */
    display: flex;
    align-items: center;
    justify-content: center; /* Center text vertically */
}

/* Type text - body copy */
.types-floating-wrapper .type-text {
    font-size: var(--font-size-body);
    line-height: var(--font-lh-body);
    color: var(--color-white);
    margin: 30px auto 0; /* 30px top margin as requested */
    max-width: 250px;
}

/* Footer styles - gray container with two paragraphs */
.types-floating-wrapper .types-footer {
    background-color: var(--color-nav-gray);
    padding: 40px;
    width: 100%;
}

.types-floating-wrapper .types-footer .footer-text {
    font-size: var(--font-size-body);
    line-height: var(--font-lh-body);
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 20px;
    text-align: center;
}

.types-floating-wrapper .types-footer .footer-text:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 1599px) {
    .types-floating-wrapper .types-content {
        clip-path: var(--clip-path-smooth-bowl);
    }
    .types-floating-wrapper .types-headline-container {
        width: 750px;
        top: -130px;
        clip-path: var(--clip-path-headline-bowl);
    }
}

@media screen and (max-width: 1024px) {
    .types-floating-wrapper {
        padding: 200px 0 0;
    }
    .types-floating-wrapper .types-headline-container {
        width: 550px;
        top: -110px;
        padding: 30px 0;
        clip-path: var(--clip-path-headline-bowl);
    }
    .types-floating-wrapper .types-columns {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .types-floating-wrapper .type-title{
        margin: 0 0 15px;
        height: auto;
    }
    .types-floating-wrapper .type-text{
        margin: 5px auto 0;
    }
}

@media screen and (max-width: 768px) {
    .types-floating-wrapper .types-content {
        margin: -100px 5%;
        clip-path: var(--clip-path-mobile-bowl);
    }
    .types-floating-wrapper .types-headline-container {
        width: 240px;
        padding: 25px 0;
        top: -130px;
        clip-path: var(--clip-path-mobile-headline);
    }
}