/* Dawaii Services section */
.sv-section {
    --sv-teal: #0f766e;
    --sv-teal-soft: #e6f5f3;
    --sv-navy: #0d253f;
    --sv-ink: #0d253f;
    --sv-muted: #4b6070;
    --sv-card: #ffffff;
    --sv-line: rgba(15, 118, 110, 0.16);
    padding: 80px 0;
    color: var(--sv-ink);
}

[data-theme="dark"] .sv-section {
    --sv-teal: #2dd4bf;
    --sv-teal-soft: rgba(45, 212, 191, 0.12);
    --sv-ink: #f1f5f9;
    --sv-muted: #a5b4c3;
    --sv-card: #132f4c;
    --sv-line: rgba(148, 163, 184, 0.18);
}

.sv-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header */
.sv-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    margin-bottom: 48px;
}

.sv-badge {
    display: inline-flex;
    align-items: center;
    background: var(--sv-teal-soft);
    color: var(--sv-teal);
    font-size: 15px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 999px;
}

.sv-title {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--sv-ink);
}

.sv-subtitle {
    margin: 0;
    max-width: 640px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--sv-muted);
}

/* Grid: audience row, then library (2x2) beside four facility cards */
.sv-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sv-card {
    box-sizing: border-box;
    border-radius: 20px;
    background: var(--sv-card);
    border: 1px solid var(--sv-line);
    color: var(--sv-ink);
}

.sv-card h3 {
    margin: 0;
    font-weight: 800;
    color: inherit;
}

.sv-card p {
    margin: 0;
    line-height: 1.7;
    color: var(--sv-muted);
}

.sv-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--sv-teal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sv-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--sv-teal);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sv-icon svg.sv-icon-bold {
    stroke-width: 2.6;
}

/* Audience cards */
.sv-audience {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    border: none;
    color: #ffffff;
}

.sv-patients {
    background: #0f766e;
}

.sv-doctors {
    background: #0d253f;
}

[data-theme="dark"] .sv-doctors {
    background: #0b1f35;
    border: 1px solid var(--sv-line);
}

.sv-audience .sv-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.sv-patients .sv-icon {
    background: rgba(255, 255, 255, 0.14);
}

.sv-doctors .sv-icon {
    background: rgba(255, 255, 255, 0.1);
}

.sv-audience .sv-icon svg {
    width: 30px;
    height: 30px;
    stroke: #ffffff;
}

.sv-doctors .sv-icon svg {
    stroke: #5eead4;
}

.sv-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sv-audience h3 {
    font-size: 24px;
}

.sv-audience p {
    font-size: 16px;
}

.sv-patients p {
    color: #d7f2ee;
}

.sv-doctors p {
    color: #b8c7d6;
}

/* Drug library feature card */
.sv-library {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 40px;
}

.sv-icon-lg {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}

.sv-icon-lg svg {
    width: 34px;
    height: 34px;
}

.sv-library h3 {
    font-size: 30px;
}

.sv-library p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 440px;
}

/* Facility cards */
.sv-facility {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
}

.sv-facility h3 {
    font-size: 20px;
}

.sv-facility p {
    font-size: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .sv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sv-audience,
    .sv-library {
        grid-column: span 2;
    }

    .sv-library {
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .sv-section {
        padding: 48px 0;
    }

    .sv-container {
        padding: 0 16px;
    }

    .sv-header {
        margin-bottom: 28px;
    }

    .sv-subtitle {
        font-size: 15px;
    }

    .sv-grid {
        gap: 12px;
    }

    .sv-audience {
        gap: 16px;
        padding: 20px;
        border-radius: 18px;
    }

    .sv-audience .sv-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .sv-audience .sv-icon svg {
        width: 26px;
        height: 26px;
    }

    .sv-audience h3 {
        font-size: 19px;
    }

    .sv-audience p {
        font-size: 14px;
    }

    .sv-library {
        padding: 24px;
        gap: 14px;
        border-radius: 18px;
    }

    .sv-icon-lg {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .sv-icon-lg svg {
        width: 28px;
        height: 28px;
    }

    .sv-library h3 {
        font-size: 23px;
    }

    .sv-library p {
        font-size: 15px;
    }

    .sv-facility {
        padding: 18px;
        gap: 10px;
        border-radius: 18px;
    }

    .sv-facility .sv-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .sv-facility .sv-icon svg {
        width: 23px;
        height: 23px;
    }

    .sv-facility h3 {
        font-size: 17px;
    }

    .sv-facility p {
        font-size: 13px;
    }
}

/* Drug library card: brand photo on one side, text on the other */
.sv-library {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.sv-library-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 32px 28px;
}

.sv-library-tagline {
    align-self: flex-start;
    color: var(--sv-teal);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}

/* The photo stays on the card's left edge in both languages, fading into the card towards the text */
.sv-library-img {
    flex: 0 0 56%;
    width: 56%;
    height: auto;
    min-height: 100%;
    /* contain shows the whole photo; the background matches the photo's own backdrop so the gaps don't show */
    object-fit: contain;
    background-color: #c9d5df;
    order: 2;
    object-position: center;
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent);
    mask-image: linear-gradient(to right, #000 90%, transparent);
}

html[lang="en"] .sv-library-img {
    order: 0;
}

@media (max-width: 600px) {
    .sv-library {
        flex-direction: column;
        padding: 0;
    }

    .sv-library-text {
        gap: 14px;
        padding: 20px 24px 24px;
    }

    .sv-library-img,
    html[lang="en"] .sv-library-img {
        order: 0;
        flex: none;
        width: 100%;
        height: 320px;
        min-height: 0;
        object-position: center 45%;
        -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent);
        mask-image: linear-gradient(to bottom, #000 92%, transparent);
    }
}
