/**
 * Home — What We Offer (explore-network)
 * Brand: #00332B · #004236 · #F7D15E · #E6F4F9 · #F0F8FB
 */

.wo-section {
    --wo-primary: #00332b;
    --wo-primary-mid: #004236;
    --wo-accent: #f7d15e;
    --wo-bg: #e6f4f9;
    --wo-card: #f0f8fb;
    --wo-text: #1a3d36;
    --wo-muted: #4a6b65;
    --wo-white: #ffffff;
    --wo-radius: 16px;
    --wo-shadow: 0 20px 56px rgba(0, 51, 43, 0.1);
    padding: 4.5rem 0 5rem;
    background: linear-gradient(180deg, var(--wo-white) 0%, var(--wo-bg) 50%, var(--wo-white) 100%);
    position: relative;
    overflow: hidden;
}

.wo-section::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 209, 94, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.wo-section__head {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 2.5rem;
}

.wo-section__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wo-primary-mid);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 66, 54, 0.1);
    border-left: 3px solid var(--wo-accent);
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.wo-section__title {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--wo-primary);
    line-height: 1.2;
    margin: 0;
}

/* Tab navigation */
.wo-tabs-wrap {
    position: relative;
}

.wo-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.625rem;
    padding: 0.375rem;
    margin: 0 0 1.5rem;
    list-style: none;
    list-style-type: none;
    padding-left: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 24px rgba(0, 51, 43, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.wo-tabs::-webkit-scrollbar {
    display: none;
}

.wo-tabs__item {
    flex: 1 1 0;
    min-width: max-content;
    list-style: none;
    list-style-type: none;
}

.wo-tabs__item::marker {
    content: none;
    display: none;
}

.wo-tabs__btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1.125rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--wo-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.wo-tabs__btn:hover {
    color: var(--wo-primary);
    background: rgba(230, 244, 249, 0.7);
}

.wo-tabs__btn.active {
    color: var(--wo-primary);
    background: var(--wo-white);
    box-shadow: 0 6px 20px rgba(0, 51, 43, 0.1);
}

.wo-tabs__index {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    border-radius: 50%;
    background: rgba(0, 66, 54, 0.08);
    color: var(--wo-primary-mid);
    transition: background 0.25s ease, color 0.25s ease;
}

.wo-tabs__btn.active .wo-tabs__index {
    background: var(--wo-accent);
    color: var(--wo-primary);
}

.wo-tabs__label {
    line-height: 1.3;
}

/* Tab panel */
.wo-tab-content > .tab-pane {
    animation: woFadeIn 0.35s ease;
}

@keyframes woFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wo-panel {
    background: var(--wo-white);
    border: 1px solid rgba(0, 51, 43, 0.08);
    border-radius: calc(var(--wo-radius) + 4px);
    box-shadow: var(--wo-shadow);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    overflow: hidden;
}

.wo-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wo-accent) 0%, var(--wo-primary-mid) 100%);
}

.wo-panel__visual {
    position: relative;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.wo-panel__visual-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: var(--wo-radius);
    overflow: hidden;
    background: var(--wo-card);
    box-shadow: 0 12px 40px rgba(0, 51, 43, 0.12);
}

.wo-panel__visual-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wo-panel__visual-accent {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 72%;
    height: 72%;
    border-radius: var(--wo-radius);
    background: linear-gradient(135deg, rgba(247, 209, 94, 0.35) 0%, rgba(230, 244, 249, 0.8) 100%);
    z-index: 0;
}

.wo-panel__body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wo-panel__badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wo-primary);
    background: rgba(247, 209, 94, 0.45);
    border: 1px solid rgba(247, 209, 94, 0.6);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.875rem;
}

.wo-panel__title {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--wo-primary);
    line-height: 1.25;
    margin: 0 0 0.875rem;
}

.wo-panel__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wo-muted);
    margin: 0 0 1.5rem;
}

.wo-panel__desc p {
    margin: 0;
}

/* Equal-height service cards */
.wo-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    align-items: stretch;
    margin-top: auto;
}

.wo-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    height: 100%;
    min-height: 96px;
    padding: 1rem 1rem 1rem 0.875rem;
    background: var(--wo-card);
    border: 1px solid rgba(0, 51, 43, 0.08);
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

a.wo-card:hover {
    transform: translateY(-4px);
    background: var(--wo-white);
    border-color: rgba(0, 66, 54, 0.18);
    box-shadow: 0 12px 32px rgba(0, 51, 43, 0.1);
}

.wo-card__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 66, 54, 0.08);
    color: var(--wo-primary-mid);
}

.wo-card__icon svg {
    width: 1rem;
    height: 1rem;
}

a.wo-card:hover .wo-card__icon {
    background: var(--wo-accent);
    color: var(--wo-primary);
}

.wo-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wo-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--wo-text);
}

.wo-card__link-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wo-primary-mid);
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

a.wo-card:hover .wo-card__link-label {
    opacity: 1;
    transform: translateY(0);
}

.wo-card__arrow {
    flex-shrink: 0;
    align-self: center;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wo-primary-mid);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wo-card__arrow svg {
    width: 1rem;
    height: 1rem;
}

a.wo-card:hover .wo-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

.wo-card--static {
    cursor: default;
}

/* Responsive */
@media (max-width: 991.98px) {
    .wo-section__head {
        margin-bottom: 2rem;
    }

    .wo-panel__visual {
        min-height: auto;
        margin-bottom: 0.5rem;
    }

    .wo-panel__visual-accent {
        width: 55%;
        height: 55%;
        bottom: -8px;
        right: -8px;
    }

    .wo-tabs-wrap {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .wo-tabs-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 2.5rem;
        background: linear-gradient(90deg, transparent 0%, rgba(230, 244, 249, 0.95) 100%);
        pointer-events: none;
        border-radius: 0 var(--wo-radius) var(--wo-radius) 0;
        z-index: 1;
    }

    .wo-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 0.75rem;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--wo-radius);
    }

    .wo-tabs__item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

@media (max-width: 767.98px) {
    .wo-section {
        padding: 3.5rem 0 4rem;
    }

    .wo-section__head {
        margin-bottom: 1.75rem;
    }

    .wo-section__title {
        font-size: clamp(1.5rem, 6vw, 1.875rem);
    }

    .wo-tabs-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .wo-tabs-wrap::after {
        display: none;
    }

    .wo-tabs {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: visible;
        overflow-y: visible;
        scroll-snap-type: none;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .wo-tabs__item {
        flex: 1 1 auto;
        width: 100%;
        scroll-snap-align: none;
    }

    .wo-tabs__btn {
        white-space: normal;
        text-align: left;
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .wo-tabs__label {
        flex: 1;
    }

    .wo-panel {
        padding: 1.25rem;
        border-radius: var(--wo-radius);
        box-shadow: 0 12px 36px rgba(0, 51, 43, 0.08);
    }

    .wo-panel__visual-accent {
        display: none;
    }

    .wo-panel__visual-frame img {
        aspect-ratio: 16 / 10;
    }

    .wo-panel__title {
        font-size: 1.25rem;
    }

    .wo-panel__desc {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }

    .wo-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .wo-card {
        min-height: 72px;
        padding: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .wo-section {
        padding: 3rem 0 3.5rem;
    }

    .wo-section__tag {
        font-size: 0.625rem;
        letter-spacing: 0.1em;
    }

    .wo-tabs__btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        gap: 0.5rem;
    }

    .wo-tabs__index {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.625rem;
    }

    .wo-panel {
        padding: 1rem;
    }

    .wo-panel__badge {
        font-size: 0.6875rem;
        max-width: 100%;
        white-space: normal;
    }

    .wo-card__title {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .wo-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Touch devices — show card affordances without hover */
@media (hover: none), (pointer: coarse) {
    a.wo-card .wo-card__link-label,
    a.wo-card .wo-card__arrow {
        opacity: 1;
        transform: none;
    }

    a.wo-card:active {
        transform: scale(0.98);
        background: var(--wo-white);
        border-color: rgba(0, 66, 54, 0.18);
    }

    a.wo-card:hover {
        transform: none;
    }
}
