.service-swiper-clients .slide-wrapper {
    color: inherit;
    overflow: hidden;
    position: relative;
    display: block;
    padding-top: 80vh;
}

.swiper-wrapper-relative {
    position: relative;
    padding-bottom: 3rem;
}

.service-swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    pointer-events: auto;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 6px;
    background: #b89d60;
    opacity: 0.4;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

@media (min-width: 768px) {
    .service-swiper-clients .slide-wrapper {
        padding-top: 60vh;
    }
}

@media (min-width: 992px) {
    .service-swiper-clients .slide-wrapper {
        padding-top: 80vh;
    }
}

@media (min-width: 1200px) {
    .service-swiper-clients .slide-wrapper {
        padding-top: 60vh;
    }
}

@media (min-width: 1400px) {
    .service-swiper-clients .slide-wrapper {
        padding-top: 80vh;
    }
}

.service-swiper-clients img.full-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.45s cubic-bezier(0.61, 1, 0.88, 1);
    z-index: 1;
}

.service-swiper-clients .slide-wrapper:hover img.full-bg-img {
    transform: scale(1.02);
}

.service-swiper-clients .bottom-absolute {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: white;
    padding: 2rem;
    text-align: center;
}

.custom-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #CAA260;
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    z-index: 1055;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Mobile-specific close button positioning */
@media (max-width: 768px) {
    .custom-close-btn {
        top: 5px;
        right: 5px;
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

.custom-close-btn:hover {
    background-color: #a6864c;
}

.modal-gold-line {
    height: 1px;
    width: 100%;
    max-width: 600px;
    background-color: #b89d60;
}

/* People modal: make gold line span full content width */
.clients-service-modal .modal-gold-line {
    max-width: none;
}

.clients-service-modal .modal-dialog.modal-xl {
    max-width: 1400px;
    width: 95%;
}

.clients-service-modal .modal-content {
    border-radius: 0;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    height: 80vh;
    max-height: 80vh;
    overflow: visible !important;
}

.clients-service-modal .modal-image img {
    object-fit: cover;
    object-position: center 20%;
    height: 100%;
    width: 100%;
}

.clients-service-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.clients-service-modal .modal-body::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.bottom-absolute {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-icon svg {
    width: 20px;
    height: 20px;
    stroke: #000;
}

.clients-service-modal .modal-footer .publication-navigation,
.clients-service-modal .modal-footer .clients-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end !important;
    width: 100%;
    padding: 5px;
}

.clients-service-modal .arrow-prev,
.clients-service-modal .arrow-next,
.clients-service-modal .clients-arrow-prev,
.clients-service-modal .clients-arrow-next {
    cursor: pointer;
    display: inline-block;
}

.clients-service-modal .arrow-prev:hover,
.clients-service-modal .arrow-next:hover,
.clients-service-modal .clients-arrow-prev:hover,
.clients-service-modal .clients-arrow-next:hover {
    opacity: 0.8;
}

.clients-service-modal .modal-footer .arrow-svg {
    width: 20px;
    position: relative;
    top: 0.6rem;
}

.clients-service-modal .modal-body {
    display: grid;
    grid-template-columns: 1fr;
}

.clients-service-modal .modal-dialog {
    max-width: 100%;
}

.clients-service-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.clients-service-modal .modal-content {
    border-radius: unset;
}

.clients-service-modal .modal-footer .arrow-svg {
    width: 20px;
    top: .6rem;
}

.clickable-box {
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media(min-width: 576px) {
    .clients-service-modal .modal-dialog {
        max-width: 93%;
    }
}

@media(min-width: 992px) {
    .clients-service-modal .modal-dialog {
        max-width: 83%;
    }
}

@media(min-width: 1200px) {
    .clients-service-modal .modal-dialog {
        max-width: 73%;
    }
}

@media(min-width: 1400px) {
    .clients-service-modal .modal-dialog {
        max-width: 63%;
    }
}

@media(min-width: 1700px) {
    .clients-service-modal .modal-dialog {
        max-width: 53%;
    }
}

/* Mobile devices - comprehensive breakpoint for all mobile devices including Samsung S22 */
@media (max-width: 991px) {
    .clients-service-modal .modal-dialog {
        max-width: 95vw;
        margin: 1rem auto;
        height: 85vh;
        max-height: 85vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 1rem;
    }

    .clients-service-modal .modal-content {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 0;
    }

    .clients-service-modal .modal-image {
        height: 40%;
        min-height: 200px;
        max-height: 250px;
    }

    .clients-service-modal .modal-image img {
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }

    .clients-service-modal .modal-body {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 60%;
        min-height: 0;
        overflow: hidden;
    }

    .clients-service-modal .text-content {
        overflow-y: auto;
        flex: 1 1 auto;
        margin-bottom: 1rem;
        padding-right: 0.5rem;
        min-height: 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .clients-service-modal .text-content::-webkit-scrollbar {
        width: 6px;
    }

    .clients-service-modal .text-content::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    .clients-service-modal .text-content p {
        font-size: 13px !important;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }

    .clients-service-modal .d-flex.flex-row.gap-3 {
        flex-direction: row !important;
        gap: 0.75rem;
        justify-content: space-between;
        flex-shrink: 0;
        margin-top: auto;
    }

    .clients-service-modal .cta-button {
        font-size: 12px;
        padding: 0.6rem 0.8rem;
        width: 48%;
        text-align: center;
        margin-bottom: 0;
    }

    .clients-service-modal .modal-title {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .clients-service-modal .modal-gold-line {
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 768px) {
    .clients-service-modal .modal-dialog {
        max-width: 95vw;
        margin: 1rem auto;
        height: 85vh;
        max-height: 85vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 1rem;
    }

    .clients-service-modal .modal-content {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 0;
    }

    .clients-service-modal .modal-image {
        height: 66%;
        min-height: 200px;
        max-height: 250px;
    }

    .clients-service-modal .modal-image img {
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }

    .clients-service-modal .modal-body {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 60%;
        min-height: 0;
        overflow: hidden;
    }

    .clients-service-modal .text-content {
        overflow-y: auto;
        flex: 1 1 auto;
        margin-bottom: 1rem;
        padding-right: 0.5rem;
        min-height: 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .clients-service-modal .text-content::-webkit-scrollbar {
        width: 6px;
    }

    .clients-service-modal .text-content::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    .clients-service-modal .text-content p {
        font-size: 13px !important;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }

    .clients-service-modal .d-flex.flex-row.gap-3 {
        flex-direction: row !important;
        gap: 0.75rem;
        justify-content: space-between;
        flex-shrink: 0;
        margin-top: auto;
    }

    .clients-service-modal .cta-button {
        font-size: 12px;
        padding: 0.6rem 0.8rem;
        width: 48%;
        text-align: center;
        margin-bottom: 0;
    }

    .clients-service-modal .modal-title {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .clients-service-modal .modal-gold-line {
        margin-bottom: 0.8rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .clients-service-modal .modal-dialog {
        max-width: 98vw;
        margin: 0.5rem auto;
        height: 90vh;
        max-height: 90vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 0.5rem;
    }

    .clients-service-modal .modal-image {
        height: 35%;
        min-height: 350px;
        max-height: 220px;
    }

    .clients-service-modal .modal-image img {
        object-position: center 20%;
    }

    .clients-service-modal .modal-body {
        height: 65%;
        padding: 0.8rem;
    }

    .clients-service-modal .text-content p {
        font-size: 13px !important;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }

    .clients-service-modal .cta-button {
        font-size: 11px;
        padding: 0.5rem 0.6rem;
    }

    .clients-service-modal .modal-title {
        font-size: 15px;
    }
}

/* Start higher (not vertically centered) */
.clients-service-modal .d-flex.flex-column.justify-content-center.flex-grow-1 {
    justify-content: flex-start !important;
}

/* Tablet layout - larger image for better visibility */
@media (min-width: 768px) and (max-width: 1199px) {
    .clients-service-modal .modal-dialog {
        max-width: 90vw;
        margin: 0.5rem auto;
        height: 95vh;
        max-height: 95vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .clients-service-modal .modal-content {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 0;
    }

    .clients-service-modal .modal-image {
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .clients-service-modal .modal-image img {
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }

    .clients-service-modal .modal-body {
        height: 20%;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 0;
        overflow: hidden;
    }

    .clients-service-modal .text-content {
        overflow-y: auto;
        flex: 1 1 auto;
        margin-bottom: 1rem;
        padding-right: 0.5rem;
        min-height: 0;
        scroll-behavior: smooth;
    }

    .clients-service-modal .text-content::-webkit-scrollbar {
        width: 6px;
    }

    .clients-service-modal .text-content::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    .clients-service-modal .text-content p {
        font-size: 15px !important;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .clients-service-modal .d-flex.flex-row.gap-3 {
        flex-direction: row !important;
        gap: 1rem;
        margin-top: auto;
        padding-top: 1rem;
        justify-content: space-between;
        flex-shrink: 0;
    }

    .clients-service-modal .cta-button {
        font-size: 14px;
        padding: 0.8rem 1.4rem;
        width: 48%;
        text-align: center;
        margin-bottom: 0;
    }

    .clients-service-modal .modal-title {
        font-size: 19px;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .clients-service-modal .modal-gold-line {
        margin-bottom: 1rem;
    }
}

/* Large tablets - even bigger image */
@media (min-width: 1024px) and (max-width: 1199px) {
    .clients-service-modal .modal-image {
        height: 100%;
    }

    .clients-service-modal .modal-body {
        height: 15%;
    }

    .clients-service-modal .text-content p {
        font-size: 14px !important;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .clients-service-modal .modal-title {
        font-size: 18px;
        margin-bottom: 0.6rem;
    }

    .clients-service-modal .cta-button {
        font-size: 13px;
        padding: 0.7rem 1.2rem;
    }
}

@media (min-width: 992px) and (max-width: 1023px) {
    .clients-service-modal .modal-content {
        height: 65vh;
        max-height: 65vh;
    }

    .clients-service-modal .modal-title {
        font-size: 17px;
        line-height: 1.25;
        /* max-width: calc(100% - 120px); */
        word-break: break-word;
    }

    .clients-service-modal .modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        min-height: 0;
    }

    .clients-service-modal .text-content {
        overflow-y: auto;
        flex: 1 1 auto;
        margin-bottom: 1.5rem;
        padding-right: 0.5rem;
        min-height: 0;
    }

    .clients-service-modal .text-content::-webkit-scrollbar {
        width: 6px;
    }

    .clients-service-modal .text-content::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    .clients-service-modal .text-content p {
        font-size: 13px !important;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .clients-service-modal .d-flex.flex-row.gap-3 {
        flex-direction: row !important;
        gap: 0.8rem;
        margin-top: auto;
        padding-top: 0.8rem;
        justify-content: space-between;
        flex-shrink: 0;
    }

    .clients-service-modal .cta-button {
        font-size: 12px;
        padding: 0.6rem 1rem;
        width: 48%;
        text-align: center;
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .clients-service-modal .modal-content {
        height: 70vh;
        max-height: 70vh;
    }

    .clients-service-modal .modal-title {
        font-size: 18px;
        line-height: 1.25;
        /* max-width: calc(100% - 120px); */
        word-break: break-word;
    }

    .clients-service-modal .modal-body {
        padding: 1rem 2rem 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        min-height: 0;
    }

    .clients-service-modal .text-content {
        overflow-y: auto;
        flex: 1 1 auto;
        margin-bottom: 1.5rem;
        padding-right: 0.5rem;
        min-height: 0;
    }

    .clients-service-modal .text-content::-webkit-scrollbar {
        width: 6px;
    }

    .clients-service-modal .text-content::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    .clients-service-modal .text-content p {
        font-size: 13px !important;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .clients-service-modal .d-flex.flex-row.gap-3 {
        flex-direction: row !important;
        gap: 1rem;
        margin-top: auto;
        padding-top: 0.8rem;
        justify-content: space-between;
        flex-shrink: 0;
    }

    .clients-service-modal .cta-button {
        font-size: 13px;
        padding: 0.7rem 1.2rem;
        width: 48%;
        text-align: center;
        margin-bottom: 0;
    }

    .clients-service-modal .modal-title {
        margin-bottom: 0.8rem;
    }

    .clients-service-modal .modal-gold-line {
        margin-bottom: 1rem;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .clients-service-modal .modal-content {
        height: 75vh;
        max-height: 75vh;
    }

    .clients-service-modal .modal-title {
        font-size: 20px;
        line-height: 1.25;
        /* max-width: calc(100% - 140px); */
        word-break: break-word;
    }

    .clients-service-modal .modal-body {
        padding: 1.5rem 2.5rem 2rem 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        min-height: 0;
    }

    .clients-service-modal .text-content {
        overflow-y: auto;
        flex: 1 1 auto;
        margin-bottom: 2rem;
        padding-right: 0.5rem;
        min-height: 0;
    }

    .clients-service-modal .text-content::-webkit-scrollbar {
        width: 6px;
    }

    .clients-service-modal .text-content::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    .clients-service-modal .text-content p {
        font-size: 14px !important;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .clients-service-modal .d-flex.flex-row.gap-3 {
        flex-direction: row !important;
        gap: 1.2rem;
        margin-top: auto;
        padding-top: 1rem;
        justify-content: space-between;
        flex-shrink: 0;
    }

    .clients-service-modal .cta-button {
        font-size: 14px;
        padding: 0.8rem 1.5rem;
        width: 48%;
        text-align: center;
        margin-bottom: 0;
    }

    .clients-service-modal .modal-title {
        margin-bottom: 1rem;
    }

    .clients-service-modal .modal-gold-line {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1440px) {
    .clients-service-modal .modal-content {
        height: auto;
        max-height: 90vh;
    }

    .clients-service-modal .modal-body {
        padding: 2.5rem 3rem 2.5rem 3rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .clients-service-modal .text-content {
        overflow: visible;
        flex: 0 0 auto;
        margin-bottom: 2.5rem;
        padding-right: 0;
        margin-top: 1rem;
    }

    .clients-service-modal .text-content p {
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }

    .clients-service-modal .d-flex.flex-row.gap-3 {
        flex-direction: row !important;
        gap: 1.5rem;
        margin-top: auto;
        padding-top: 1.2rem;
        justify-content: space-between;
    }

    .clients-service-modal .cta-button {
        font-size: 14px;
        padding: 0.8rem 1.8rem;
        width: 48%;
        text-align: center;
        margin-bottom: 0;
    }

    .clients-service-modal .modal-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 1.2rem;
    }

    .clients-service-modal .modal-gold-line {
        margin-bottom: 2rem;
    }

    .clients-service-modal .modal-title {
        margin-bottom: 1rem;
    }

    .clients-service-modal .modal-gold-line {
        margin-bottom: 1.5rem;
    }

    .clients-service-modal .d-flex.flex-column.justify-content-center.flex-grow-1 {
        margin-top: 0;
        padding-top: 0;
    }

    .clients-service-modal .text-content {
        position: relative;
        z-index: 1;
    }
}

/* Ensure flex child can actually shrink and scroll in all cases */
.clients-service-modal .modal-body .text-content {
    min-height: 0;
    /* Enable smooth scrolling and make it focusable */
    scroll-behavior: smooth;
    outline: none;
    /* Ensure it can receive focus for keyboard navigation */
    cursor: default;
}

/* Make people modal navigation arrows smaller */
.modal .publication-navigation .arrow-svg {
    width: 24px !important;
    height: 34px !important;
}

/* Force side-by-side layout specifically for 480px–990px (image left 60%, content right 40%) */
@media (min-width: 480px) and (max-width: 990px) {
    .clients-service-modal .modal-content {
        display: flex;
        flex-direction: row !important;
        height: 85vh;
        max-height: 85vh;
    }

    .clients-service-modal .modal-image {
        flex: 0 0 50% !important;
        width: 40% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .clients-service-modal .modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }

    .clients-service-modal .modal-body {
        flex: 0 0 50% !important;
        width: 60% !important;
        height: 100% !important;
        max-height: 100% !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 1rem;
        min-height: 0;
    }

    .clients-service-modal .modal-body .text-content {
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix CTA button font size for 320px mobile */
@media (max-width: 320px) {
    .cta-button {
        font-size: 10px !important;
    }
}

/* Person text content styling - replaces inline styles */
.clients-service-modal .text-content p,
.clients-service-modal .person-text-content p {
    font-size: 16px !important;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #666666;
}

/* Override any inline styles that might be present */
.clients-service-modal .text-content p[style*="font-size"],
.clients-service-modal .person-text-content p[style*="font-size"] {
    font-size: 16px !important;
}

/* Responsive font sizes for person text */
@media (max-width: 991px) {
    .clients-service-modal .text-content p,
    .clients-service-modal .person-text-content p {
        font-size: 13px !important;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .clients-service-modal .text-content p,
    .clients-service-modal .person-text-content p {
        font-size: 15px !important;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .clients-service-modal .text-content p,
    .clients-service-modal .person-text-content p {
        font-size: 14px !important;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .clients-service-modal .text-content p,
    .clients-service-modal .person-text-content p {
        font-size: 14px !important;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1440px) {
    .clients-service-modal .text-content p,
    .clients-service-modal .person-text-content p {
        font-size: 16px !important;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
}