/**
 * Other Services Section Block Styles
 * Carousel layout matching Legal Services Section
 */

/* ============================================
   FORCE FULL-WIDTH DISPLAY
   ============================================ */

.wp-block-mawconsultant-other-services-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative;
}

/* ============================================
   OTHER SERVICES SECTION BASE STYLES
   ============================================ */

.other-services-section {
    position: relative;
    width: 100%;
    background-color: var(--color-secondary);
    padding-block: 128px;
    padding-inline: var(--container-padding-outer);
    margin: 0 !important;
}

.other-services__container {
    max-width: 1440px;
    margin: 0 auto;
    padding-inline: var(--container-padding-inner);
}

/* ============================================
   HEADER SECTION
   ============================================ */

.other-services__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
}

.other-services__header-content {
    max-width: 800px;
}

/* Heading */
.other-services__heading {
    font-family: 'Gambetta', Georgia, serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 56px;
    letter-spacing: -0.96px; /* -2% of 48px */
    color: var(--color-foreground);
    margin: 0;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */

.other-services__nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.other-services__nav-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    background-color: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-foreground);
}

.other-services__nav-btn:hover {
    background-color: var(--color-muted);
    border-color: var(--color-foreground);
}

.other-services__nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.other-services__nav-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   SERVICES LIST / CAROUSEL
   ============================================ */

.other-services__list-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -230px 0 -80px;
    padding: 0 80px;
}

.other-services__list {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    padding-right: 150px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.other-services__list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.other-services__card {
    flex: 0 0 287.25px;
    width: 287.25px;
    height: 312px;
    background-color: var(--color-card);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.3s ease;
    cursor: default;
}

.other-services__card:hover {
    background-color: var(--color-muted);
}

/* Divider */
.other-services__card-divider {
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary-foreground);
    margin-bottom: 32px;
    transition: width 0.3s ease;
}

.other-services__card:hover .other-services__card-divider {
    width: 80px;
}

/* Title */
.other-services__card-title {
    font-family: 'Gambetta', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0;
    color: var(--color-foreground);
    margin: 0 0 24px 0;
}

/* Description */
.other-services__card-description {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0;
    color: var(--color-muted-foreground);
    margin: 0 0 auto 0;
    flex-grow: 1;
}

/* Link */
.other-services__card-link {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-foreground);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
    margin-top: 24px;
    cursor: pointer;
}

.other-services__card-link:hover {
    opacity: 0.7;
}

.other-services__card-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Empty state */
.other-services__empty {
    padding: 40px;
    text-align: center;
    color: var(--color-muted-foreground);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .other-services-section {
        padding-block: 100px;
    }

    .other-services__list-wrapper {
        margin: 0 -100px;
        padding: 0 60px;
    }
}

@media (max-width: 1024px) {
    .other-services-section {
        padding-block: 80px;
    }

    .other-services__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .other-services__heading {
        font-size: 48px;
        line-height: 56px;
        letter-spacing: -0.02em;
        max-width: 515px;
    }

    .other-services__list-wrapper {
        margin: 0 -80px;
        padding: 0 40px;
    }

    .other-services__card {
        flex: 0 0 223px;
        width: 223px;
        height: 390px;
    }
}

@media (max-width: 768px) {
    .other-services-section {
        padding-block: 60px;
        padding-inline: 16px;
    }

    .other-services__container {
        padding-inline: 0;
    }

    .other-services__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 48px;
    }

    .other-services__header-content {
        max-width: 100%;
        width: 100%;
    }

    .other-services__heading {
        font-size: 32px;
        line-height: 40px;
        letter-spacing: -0.64px;
    }

    .other-services__nav {
        margin-top: 24px;
    }

    .other-services__list-wrapper {
        margin: 0;
        padding: 0;
    }

    .other-services__list {
        gap: 12px;
        padding-right: 0;
    }

    .other-services__card {
        flex: 0 0 calc(100vw - 32px);
        width: calc(100vw - 32px);
        max-width: 100%;
        height: auto;
        min-height: 320px;
        padding: 24px;
    }

    .other-services__card:last-child {
        margin-right: 0;
    }

    .other-services__card-title {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 16px;
    }

    .other-services__card-description {
        font-size: 16px;
        line-height: 22px;
        margin-bottom: 16px;
    }

    .other-services__card-link {
        font-size: 16px;
        line-height: 22px;
    }
}

@media (max-width: 480px) {
    .other-services-section {
        padding-block: 40px;
        padding-inline: 16px;
    }

    .other-services__container {
        padding-inline: 0;
    }

    .other-services__header {
        margin-bottom: 40px;
    }

    .other-services__heading {
        letter-spacing: -0.48px;
    }

    .other-services__nav {
        gap: 10px;
        margin-top: 20px;
    }

    .other-services__nav-btn {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .other-services__nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .other-services__list-wrapper {
        margin: 0;
        padding: 0;
    }

    .other-services__list {
        gap: 10px;
        padding-right: 0;
    }

    .other-services__card {
        flex: 0 0 calc(100vw - 32px);
        width: calc(100vw - 32px);
        max-width: 100%;
        height: auto;
        min-height: 300px;
        padding: 20px;
    }

    .other-services__card:last-child {
        margin-right: 0;
    }

    .other-services__card-divider {
        width: 32px;
        height: 2px;
        margin-bottom: 24px;
    }

    .other-services__card:hover .other-services__card-divider {
        width: 64px;
    }

    .other-services__card-title {
        margin-bottom: 12px;
    }

    .other-services__card-description {
        margin-bottom: 12px;
    }

    .other-services__card-link {
        margin-top: 12px;
    }

    .other-services__card-link svg {
        width: 14px;
        height: 14px;
    }
}
