/* =============================================
   DEPARTMENTS — HERO
   ============================================= */
.dp-hero {
    position: relative;
    min-height: 560px;
    padding: 80px 0;
    background-color: #eaf0f8;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Left-to-right soft-white wash so the left side reads as a clean panel
   while the people on the right stay clearly visible. */
.dp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(234, 240, 248, 0.97) 0%,
        rgba(234, 240, 248, 0.94) 26%,
        rgba(234, 240, 248, 0.55) 46%,
        rgba(234, 240, 248, 0.18) 62%,
        rgba(234, 240, 248, 0)    78%
    );
}

.dp-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.dp-hero-content {
    max-width: 520px;
}

.dp-hero-crumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 26px;
}
.dp-hero-crumbs a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}
.dp-hero-crumbs a:hover {
    color: var(--color-primary);
}
.dp-hero-crumbs i {
    font-size: 10px;
    opacity: 0.6;
}
.dp-hero-crumbs span[aria-current] {
    color: var(--color-primary);
    font-weight: 600;
}

.dp-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 18px;
}

.dp-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--color-primary);
    margin: 0 0 22px;
    letter-spacing: -0.5px;
}

.dp-hero-divider {
    display: block;
    width: 48px;
    height: 1.5px;
    background-color: rgba(26, 42, 108, 0.30);
    margin: 0 0 22px;
}

.dp-hero-desc {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: #5a6478;
    max-width: 440px;
    margin: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .dp-hero {
        min-height: 480px;
        padding: 60px 0;
        background-position: 80% center;
    }
    .dp-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(234, 240, 248, 0.97) 0%,
            rgba(234, 240, 248, 0.92) 42%,
            rgba(234, 240, 248, 0.55) 62%,
            rgba(234, 240, 248, 0.10) 80%,
            rgba(234, 240, 248, 0)    92%
        );
    }
    .dp-hero-content { max-width: 460px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .dp-hero {
        min-height: 440px;
        padding: 56px 0;
        background-position: 70% center;
    }
    /* Top-down fade on phones so text always sits on a near-opaque wash. */
    .dp-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(234, 240, 248, 0.96) 0%,
            rgba(234, 240, 248, 0.92) 48%,
            rgba(234, 240, 248, 0.55) 78%,
            rgba(234, 240, 248, 0.18) 100%
        );
    }
    .dp-hero-content { max-width: 100%; }
    .dp-hero-title br { display: none; }
    .dp-hero-desc { font-size: 14.5px; }
}


/* =============================================
   DEPARTMENTS — EXPERT CARE / DEPARTMENT GRID
   ============================================= */
.dp-deps {
    background-color: #fff;
    padding: 80px 0;
}

.dp-deps-head {
    text-align: center;
    margin: 0 auto 48px;
}

.dp-deps-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 14px;
    letter-spacing: -0.3px;
    line-height: 1.15;
    white-space: nowrap;
}

.dp-deps-sub {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 auto;
    max-width: 560px;
}

.dp-deps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.dp-dep-card {
    position: relative;
    background: #fff;
    border: 1px solid #eef0f7;
    border-radius: 18px;
    padding: 34px 26px 76px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 14px rgba(26, 42, 108, 0.04);
}

.dp-dep-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 18px 36px rgba(26, 42, 108, 0.12);
}

.dp-dep-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #eef2fa;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 22px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.dp-dep-card:hover .dp-dep-icon {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.05);
}

.dp-dep-title {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 10px;
    line-height: 1.25;
}

.dp-dep-desc {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
}

.dp-dep-arrow {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.dp-dep-card:hover .dp-dep-arrow {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateX(3px);
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .dp-deps {
        padding: 64px 0;
    }
    .dp-deps-title {
        white-space: normal;
    }
    .dp-deps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .dp-deps {
        padding: 48px 0;
    }
    .dp-deps-head {
        margin-bottom: 32px;
    }
    .dp-deps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .dp-dep-card {
        padding: 26px 18px 68px;
    }
    .dp-dep-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
        margin-bottom: 16px;
    }
    .dp-dep-title {
        font-size: 17px;
    }
    .dp-dep-desc {
        font-size: 13px;
    }
    .dp-dep-arrow {
        right: 16px;
        bottom: 16px;
        width: 34px;
        height: 34px;
    }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
    .dp-deps-grid {
        grid-template-columns: 1fr;
    }
    .dp-dep-card {
        padding: 28px 22px 74px;
    }
}


/* =============================================
   DEPARTMENTS — WHY CHOOSE US
   ============================================= */
.dp-why {
    background: linear-gradient(180deg, #eaf0f8 0%, #f4f7fb 100%);
    padding: 80px 0;
}

.dp-why-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: stretch;
}

/* ---- Left: content ---- */
.dp-why-content {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.dp-why-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.dp-why-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 600;
    line-height: 1.12;
    color: var(--color-primary);
    margin: 0 0 28px;
    letter-spacing: -0.4px;
}

.dp-why-features {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dp-why-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dp-why-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef2fa;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dp-why-feature-title {
    font-family: var(--font-sans);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 4px;
    line-height: 1.3;
}

.dp-why-feature-desc {
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
}

.dp-why-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(26, 42, 108, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    margin-top: auto;
}
.dp-why-btn:hover {
    background: var(--color-primary-dark, #131f52);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(26, 42, 108, 0.30);
    color: #fff;
}
.dp-why-btn i {
    font-size: 11px;
    transition: transform 0.25s ease;
}
.dp-why-btn:hover i {
    transform: translateX(3px);
}

/* ---- Right: media (photo + dots + badge) ---- */
.dp-why-media {
    position: relative;
    min-height: 480px;
}

/* Decorative dot pattern in the top-right */
.dp-why-dots {
    position: absolute;
    top: -14px;
    right: -10px;
    width: 140px;
    height: 140px;
    background-image: radial-gradient(rgba(26, 42, 108, 0.20) 1.6px, transparent 1.6px);
    background-size: 14px 14px;
    pointer-events: none;
    z-index: 1;
}

/* Photo card — fills the column so there's no empty space below the text */
.dp-why-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(26, 42, 108, 0.18);
    background: #eef2fa;
}
.dp-why-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* "Your Health, Our Commitment" navy overlay card — bottom-right */
.dp-why-badge {
    position: absolute;
    right: -14px;
    bottom: -14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #1a2a6c 0%, #131f52 100%);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(19, 31, 82, 0.30);
    min-width: 230px;
}
.dp-why-badge-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.dp-why-badge-text {
    font-family: var(--font-serif);
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .dp-why {
        padding: 64px 0;
    }
    .dp-why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .dp-why-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    .dp-why-content {
        padding: 0;
    }
    .dp-why-btn { align-self: flex-start; }
}

@media (max-width: 768px) {
    .dp-why { padding: 48px 0; }
    .dp-why-features { gap: 14px; }
    .dp-why-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    /* Let the media wrapper grow to fit photo + badge; the photo keeps a nice
       ratio and the navy badge flows below it (no clipping on small screens). */
    .dp-why-media {
        aspect-ratio: auto;
        min-height: 0;
        height: auto;
    }
    .dp-why-photo {
        aspect-ratio: 16 / 11;
        height: auto;
        min-height: 0;
    }
    .dp-why-dots {
        width: 100px;
        height: 100px;
        background-size: 12px 12px;
        top: -10px;
        right: -6px;
    }
    .dp-why-badge {
        position: static;
        right: auto;
        bottom: auto;
        margin: 14px 0 0;
        padding: 14px 18px;
        min-width: 0;
        max-width: 100%;
    }
    .dp-why-badge-text {
        font-size: 14px;
    }
    .dp-why-badge-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dp-why-title br { display: none; }
    .dp-why-badge {
        position: static;
        margin: 12px 0 0;
        align-self: flex-start;
    }
}
