/* Editor overflow fix for unitek advantage block */
.block-editor-block-list__layout .unitek-advantage-block,
.editor-styles-wrapper .unitek-advantage-block,
.wp-block-acf-unitek-advantage .unitek-advantage-block {
    max-width: 100%;
    overflow-x: hidden;
}

/* Unitek Advantage Block Styles */
.unitek-advantage-block {
    width: 100%;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #074975;
    padding: 7.5rem 0;
    color: #ffffff;
    box-sizing: border-box;
}

.unitek-advantage-content {
    max-width: 108rem;
    margin: 0 auto;
    padding: 0 9.375rem;
    display: grid;
    /* grid-template-columns: 2fr 1fr; */
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    align-items: start;
    box-sizing: border-box;

}

/* Full width layout when testimonial is hidden */
.unitek-advantage-block.no-testimonial .unitek-advantage-content {
    grid-template-columns: 1fr;
    max-width: 90rem;
}

.unitek-advantage-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
    box-sizing: border-box;
}

.unitek-advantage-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    font-style: normal;
    line-height: 3rem;
    letter-spacing: 0;
    color: #ffffff;
    margin: 0;
    overflow-wrap: break-word;
}

.unitek-advantage-subheading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: normal;
    line-height: 2rem;
    letter-spacing: 0;
    color: #50D8FF;
    margin: 0;
    overflow-wrap: break-word;
}

.unitek-advantage-body-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    font-style: normal;
    line-height: 1.5rem;
    letter-spacing: 0;
    color: #ffffff;
    margin: 0;
    overflow-wrap: break-word;
}

.unitek-advantage-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.625rem, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.unitek-advantage-feature {
    background-color: #ffffff;
    border-radius: 0.5rem;
    /* padding: 30px 90px 30px 20px; */
    padding: 2rem 0.5rem 1.62rem 1rem;
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
    gap: 0.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
    box-sizing: border-box;
    text-decoration: none;
}

.unitek-advantage-feature:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.2);
}

.unitek-advantage-feature:hover svg {
    filter: brightness(1.1);
}

.unitek-advantage-feature svg {
    position: absolute;
    top: 0.3125rem;
    right: 0.3125rem;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    opacity: 1;
    color: #007ACC;
}

.unitek-advantage-feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1.5rem;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #007ACC;
    margin: 0;
    padding-right: 1.5625rem;
    word-break: keep-all;
}



.unitek-advantage-feature-description {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    font-style: normal;

    line-height: 1.375rem;
    letter-spacing: 0;
    color: #28323c;
    margin: 0;
    overflow-wrap: break-word;
}

.unitek-advantage-cta {
    margin-top: 1.75rem;
}

.unitek-advantage-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 15.4375rem;
    height: 3.5rem;
    gap: 0.5rem;
    padding-top: 1.1875rem;
    padding-right: 2rem;
    padding-bottom: 1.1875rem;
    padding-left: 3rem;
    border-radius: 6.25rem;
    opacity: 1;
    background-color: #B4E850;
    color: #28323C;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.unitek-advantage-cta-button:hover {
    background-color: #9FD240;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(180, 232, 80, 0.3);
}

.unitek-advantage-cta-button i {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 1;
    line-height: 1;
}

.unitek-advantage-right {
    display: flex;
    align-items: center;
    justify-content: right;
    min-width: 0;
    box-sizing: border-box;
}

.unitek-advantage-testimonial {
    /* background-color: #B4E850; */
    border-radius: 0.75rem;
    padding-top: 2.5rem;
    padding-right: 2rem;
    padding-bottom: 1.09rem;
    padding-left: 2rem;
    position: relative;
    width: 100%;
    max-width: 23.5rem;
    display: flex;
    flex-direction: column;
    height: 29.75rem;
    min-height: 29.75rem;
    box-sizing: border-box;
    box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.24);
    transition: background-color 0.5s ease, box-shadow 0.3s ease, transform 0.3s ease;
    border: none;
    overflow: visible;
    font-style: normal;
}

.unitek-advantage-testimonial-carousel {
    flex: 1;
    min-height: 0;
    display: flex;
    position: relative;
    overflow: hidden;
}

.unitek-advantage-testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    height: auto;
    width: 100%;
}

.unitek-advantage-testimonial-slide.active {
    display: flex;
}

.unitek-advantage-testimonial-slide blockquote {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: auto;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.unitek-advantage-testimonial-pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.unitek-advantage-testimonial-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.unitek-advantage-testimonial-dot.active {
    background-color: #28323C;
}

.unitek-advantage-testimonial-quote {
    position: absolute;
    top: 0.625rem;
    width: 3.125rem;
    height: 2.5rem;
    color: #28323C;
    opacity: 1;
    transition: color 0.5s ease;
    margin-bottom: 1.5rem;

}

.unitek-advantage-testimonial-quote svg {
    width: 100%;
    height: 100%;
    display: block;
}

.unitek-advantage-testimonial-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.875rem;
    letter-spacing: 0;
    color: #28323C;
    margin: 4.4375rem 0 0 0;
    padding-left: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.5s ease;
    flex: 1;
    min-height: 0;
    display: block;
    max-height: none;
    overflow: visible;
}

.unitek-advantage-testimonial-author {
    display: flex;
    flex-direction: column;
    /* gap: 4px; */
    padding-left: 0;
    margin-top: 1.5rem;
    flex-shrink: 0;
}

.unitek-advantage-testimonial-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    font-style: normal;
    line-height: 1.75rem;
    letter-spacing: 0;
    color: #28323C;
    margin: 0;
    transition: color 0.5s ease;
}

.unitek-advantage-testimonial-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.625rem;
    opacity: 0.9;
    color: #28323C;
    margin: 0;
    transition: color 0.5s ease;
}

/* Block Alignment Support */
.unitek-advantage-block.alignwide {
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}

.unitek-advantage-block.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Fix for editor - prevent overflow */
.block-editor-block-list__layout .unitek-advantage-block.alignfull,
.editor-styles-wrapper .unitek-advantage-block.alignfull,
.wp-block-acf-unitek-advantage .unitek-advantage-block.alignfull {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Responsive Design */

@media (min-width: 1552px) {
    .unitek-advantage-feature-title {
        padding-right: 3.375rem;
    }
}


@media (max-width: 1311px) {
    .unitek-advantage-feature-title {
        padding-right: 0.625rem;
    }
}

@media (min-width:1522px) {
    .unitek-advantage-feature-description {
        padding-right: 1.5rem;
        /* padding-top: 0.5rem; */

    }
}

@media (min-width: 1541px) {
    .unitek-advantage-content {
        padding-left: clamp(6rem, 15.046vw, 16.25rem);
        padding-right: clamp(6rem, 15.046vw, 16.25rem);
    }
}



@media (min-width: 1281px) and (max-width: 1600px) {

    .unitek-advantage-feature {
        background-color: #ffffff;
        border-radius: 0.75rem;
        /* padding: 30px 30px 30px 20px; */
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        min-width: 0;
        box-sizing: border-box;
        text-decoration: none;
    }

}


@media (min-width: 1201px) and (max-width: 1280px) {
    .unitek-advantage-content {
        padding: 0 5rem;
    }

    .unitek-advantage-feature {
        background-color: #ffffff;
        border-radius: 0.75rem;
        /* padding: 30px 30px 30px 20px; */
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        min-width: 0;
        box-sizing: border-box;
        text-decoration: none;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .unitek-advantage-content {
        padding: 0 5rem;
    }

    .unitek-advantage-feature {
        background-color: #ffffff;
        border-radius: 0.75rem;
        /* padding: 30px 30px 30px 20px; */
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        min-width: 0;
        box-sizing: border-box;
        text-decoration: none;
    }
}

@media (max-width: 1024px) {
    .unitek-advantage-block {
        padding-top: 3.75rem;
        padding-bottom: 5rem;
    }

    .unitek-advantage-feature-description {
        width: 14.5rem;
        height: 3.75rem;
    }

    .unitek-advantage-feature-title {
        height: 3.125rem;
    }


    .unitek-advantage-content {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        /* enable ordering */
        flex-direction: column;
    }

    /* Flatten left column so its children can be ordered with the testimonial */
    .unitek-advantage-left {
        display: contents;
        /* padding-left: 16px;
        padding-right: 16px; */
    }

    /* Place testimonial before CTA on mobile */
    .unitek-advantage-right {
        order: 3;
        margin-top: 1.75rem;
    }

    .unitek-advantage-cta {
        order: 4;
    }

    .unitek-advantage-heading {
        font-size: 2rem;
        width: 100%;
        line-height: 2.5rem;   
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .unitek-advantage-subheading {
        font-family: 'Outfit', sans-serif;
        font-size: 1.125rem;
        font-style: normal;
        font-weight: 300;
        line-height: 1.625rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .unitek-advantage-body-text {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .unitek-advantage-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.75rem;
        width: 100%;
    }

    .unitek-advantage-testimonial {
        max-width: 100%;
        padding-top: 2.5rem;
        padding-right: 2rem;
        padding-bottom: 1.09rem;
        padding-left: 2rem;
        height: 29.75rem;
        min-height: 29.75rem;
    }

    .unitek-advantage-testimonial-text {
        font-size: 1.5rem;
        line-height: 1.875rem;
    }

    .unitek-advantage-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }

}

@media (max-width: 600px) {
    .unitek-advantage-testimonial-name {
        font-family: 'Outfit', sans-serif;
        font-size: 1.125rem;
        font-weight: 500;
        font-style: normal;
        line-height: 1.625rem;
        letter-spacing: 0;
        color: #28323C;
        margin: 0;
        transition: color 0.5s ease;
    }

    .unitek-advantage-testimonial-title {
        font-family: 'Outfit', sans-serif;
        font-size: 1.125rem;
        font-weight: 300;
        line-height: 1.625rem;
        opacity: 0.9;
        color: #28323C;
        margin: 0;
        transition: color 0.5s ease;
    }
}


/* Editor Preview Styles */
.wp-block-acf-unitek-advantage .unitek-advantage-block {
    border: 0.125rem dashed #ccc;
    position: relative;
}

.wp-block-acf-unitek-advantage .unitek-advantage-block::after {
    content: "⭐ Unitek Advantage Section - Features, testimonials & CTA";
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    border-radius: 0.25rem;
    z-index: 10;
    font-weight: 500;
    max-width: 17.5rem;
    text-align: center;
    line-height: 1.3;
}

.unitek-advantage-pause-btn {
    background: transparent;
    border: 0.0625rem solid rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.375rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.unitek-advantage-pause-btn:focus-visible {
    outline: 0.1875rem solid #fff;
    outline-offset: 0.1875rem;
}