/* ── Diagnosis Categories ────────────────────────────────────────── */

.dc-block {
    padding-top: 96px;
    padding-bottom: 96px;
    background: var(--wp--preset--color--white);
    overflow: hidden;
}

/* ── Intro ───────────────────────────────────────────────────────── */

.dc-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto 64px;
    text-align: center;
}

.dc-label-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dc-label-bar {
    display: block;
    width: 24px;
    height: 4px;
    background: var(--wp--preset--color--pink-500, #DF006E);
}

.dc-label {
    margin: 0;
    color: var(--wp--preset--color--pink-500, #DF006E);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dc-title {
    margin: 0;
    color: var(--wp--preset--color--black, #1A1A25);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}

.dc-desc {
    margin: 0;
    color: var(--wp--preset--color--dark, #2E2E39);
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

/* ── Groups ──────────────────────────────────────────────────────── */

.dc-groups {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.dc-group {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dc-group-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dc-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 4px;
    background: #FFEAF4;
    color: var(--wp--preset--color--pink-500, #DF006E);
}

.dc-group-icon svg {
    width: 20px;
    height: 20px;
}

.dc-group-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dc-group-title {
    margin: 0;
    color: var(--wp--preset--color--black, #1A1A25);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.dc-group-desc {
    margin: 0;
    max-width: 640px;
    color: var(--wp--preset--color--dark, #2E2E39);
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

/* ── Card ────────────────────────────────────────────────────────── */

.dc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--wp--preset--color--white);
    border-radius: 16px;
    box-shadow: 2px 2px 8px 0px rgba(26, 26, 37, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dc-card:hover {
    box-shadow: 4px 4px 16px 0px rgba(26, 26, 37, 0.16);
    transform: translateY(-2px);
}

.dc-card-banner {
    position: relative;
    width: 100%;
    height: 100px;
    flex-shrink: 0;
}

.dc-card-wave {
    display: block;
    width: 100%;
    height: 100%;
}

.dc-card-banner-title {
    position: absolute;
    left: 23px;
    top: 23px;
    right: 23px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wp--preset--color--white);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.dc-card-banner-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: var(--wp--preset--color--yellow, #FFE500);
}

.dc-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 32px;
    flex: 1;
}

.dc-card-desc {
    margin: 0;
    color: var(--wp--preset--color--dark, #2E2E39);
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

.dc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    color: var(--wp--preset--color--pink-500, #DF006E);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.dc-card-link svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.dc-card:hover .dc-card-link svg {
    transform: translateX(4px);
}

/* ── Static single-card group (no Swiper needed) ────────────────── */

.dc-grid--static {
    display: grid;
}

.dc-grid--static .dc-card {
    max-width: 400px;
}

/* ── Desktop: CSS grid (992px+) ──────────────────────────────────── */

@media (min-width: 992px) {
    .dc-swiper.swiper {
        overflow: visible;
    }

    .dc-grid.swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        transform: none !important;
        will-change: auto;
    }

    .dc-swiper .swiper-slide {
        width: auto !important;
        margin: 0 !important;
    }

    .dc-pagination {
        display: none;
    }
}

/* ── Mobile: Swiper (≤991px) ────────────────────────────────────── */

@media (max-width: 991px) {
    .dc-block {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .dc-intro {
        margin-bottom: 40px;
    }

    .dc-title {
        font-size: 26px;
    }

    .dc-groups {
        gap: 40px;
    }

    .dc-group {
        gap: 24px;
    }

    .dc-swiper.swiper {
        overflow: visible;
    }

    .dc-swiper .swiper-wrapper {
        align-items: stretch;
    }

    .dc-swiper .swiper-slide {
        height: auto;
    }

    .dc-pagination {
        position: static !important;
        margin-top: 24px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .dc-pagination .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        background-color: var(--wp--preset--color--neutral-200, #C5C5CD);
        opacity: 1;
        border-radius: 50%;
        transform: scale(0.667);
        transition: transform 0.2s ease, background-color 0.2s ease;
        margin: 0 !important;
    }

    .dc-pagination .swiper-pagination-bullet-active {
        transform: scale(1);
        background-color: var(--wp--preset--color--black, #1A1A25);
    }
}

/* ── Dark mode ───────────────────────────────────────────────────── */

html[data-theme="dark"] .dc-block {
    background: var(--wp--preset--color--black, #1A1A25);
}

html[data-theme="dark"] .dc-title,
html[data-theme="dark"] .dc-group-title {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .dc-desc,
html[data-theme="dark"] .dc-group-desc {
    color: rgba(255, 255, 255, .7);
}

html[data-theme="dark"] .dc-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] .dc-pagination .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, .2);
}

html[data-theme="dark"] .dc-pagination .swiper-pagination-bullet-active {
    background-color: var(--wp--preset--color--white);
}
