/* ======================================
   DEPARTMENTS PAGE - GYANDEEP HOSPITAL
   ====================================== */

/* ===== PAGE HEADER ===== */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.page-header .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(27,58,122,0.92), rgba(42,172,226,0.75));
    z-index: 2;
}

.page-header .container { position: relative; z-index: 3; }
.page-header-content { text-align: center; }

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin: 0; padding: 0;
}

.breadcrumb-item { color: rgba(255,255,255,0.8); font-size: 1rem; }
.breadcrumb-item a { color: var(--white); text-decoration: none; transition: color 0.3s ease; }
.breadcrumb-item a:hover { color: var(--primary-cyan); }
.breadcrumb-item.active { color: var(--primary-cyan); }
.breadcrumb-item + .breadcrumb-item::before { content: "→"; color: rgba(255,255,255,0.6); }


/* ===== SECTION COMMON ===== */
.section-padding { padding: 80px 0; }
.bg-light { background: var(--light-bg) !important; }

.section-subtitle-badge {
    display: inline-block;
    background: rgba(42,172,226,0.12);
    color: var(--primary-cyan);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== INTRO ===== */
.dept-intro { padding-bottom: 30px; }


/* ===== DEPARTMENT CARDS ===== */
.dept-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dept-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(27,58,122,0.12);
}

/* Highlighted card — Emergency */
.dept-card--highlight {
    border-color: rgba(220,53,69,0.3);
    border-top: 4px solid #dc3545;
}

.dept-card--highlight:hover {
    border-color: #dc3545;
    box-shadow: 0 20px 50px rgba(220,53,69,0.12);
}


/* ===== CARD HEADER ===== */
.dept-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(27,58,122,0.04), rgba(42,172,226,0.04));
}

.dept-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-navy), #1a4faa);
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.dept-icon--red {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.dept-card:hover .dept-icon {
    background: linear-gradient(135deg, var(--primary-cyan), #1b8fc4);
    transform: scale(1.08) rotate(-4deg);
}

.dept-card--highlight:hover .dept-icon--red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: scale(1.08) rotate(-4deg);
}

.dept-header-text h3 {
    color: var(--primary-navy);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.dept-badge {
    display: inline-block;
    background: rgba(42,172,226,0.12);
    color: var(--primary-cyan);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.dept-badge--red {
    background: rgba(220,53,69,0.1);
    color: #dc3545;
}


/* ===== CARD BODY ===== */
.dept-card-body {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dept-card-body > p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}


/* ===== SERVICES LIST ===== */
.dept-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.dept-services-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dept-services-list li:last-child { border-bottom: none; }

.dept-services-list li:hover {
    padding-left: 6px;
    color: var(--primary-navy);
}

.dept-services-list li i {
    color: var(--primary-cyan);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dept-card--highlight .dept-services-list li i {
    color: #dc3545;
}


/* ===== DOCTORS SECTION ===== */
.dept-doctors {
    background: rgba(27,58,122,0.04);
    border: 1px solid rgba(27,58,122,0.1);
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: auto;
}

.dept-doctors-label {
    display: block;
    color: var(--primary-navy);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.dept-doctors-label i {
    color: var(--primary-cyan);
    margin-right: 5px;
}

.dept-doctors-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doctor-tag {
    display: inline-block;
    color: var(--primary-navy);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

.doctor-tag small {
    display: block;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 1px;
}


/* ===== STATS STRIP ===== */
.dept-stats {
    background: var(--primary-navy);
    padding: 60px 0;
}

.stat-item { padding: 20px; }

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-cyan);
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}


/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy), #1a4faa);
    color: var(--white);
}

.cta-wrapper {
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
}

.cta-wrapper h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-wrapper p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    margin: 0;
}

.btn-white-custom {
    background: var(--white);
    color: var(--primary-navy);
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-white-custom:hover {
    background: var(--primary-cyan);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42,172,226,0.4);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    border: 2px solid var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-2px);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .page-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .dept-card-header { padding: 22px 22px 16px; }
    .dept-card-body { padding: 20px 22px 24px; }
}

@media (max-width: 768px) {
    .page-header { padding: 100px 0 60px; }
    .page-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .section-padding { padding: 60px 0; }
    .dept-intro { padding-bottom: 20px; }

    .dept-icon { width: 54px; height: 54px; font-size: 1.5rem; border-radius: 13px; }
    .dept-header-text h3 { font-size: 1.05rem; }

    .stat-number { font-size: 2.2rem; }

    .cta-wrapper { padding: 30px 20px; text-align: center; }
    .cta-wrapper h2 { font-size: 1.5rem; }

    .btn-white-custom,
    .btn-outline-white {
        width: 100%;
        margin-top: 10px;
        margin-left: 0 !important;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .page-header { padding: 80px 0 50px; }
    .page-title { font-size: 1.75rem; }
    .section-title { font-size: 1.6rem; }
    .section-description { font-size: 1rem; }

    .dept-card-header { gap: 14px; padding: 18px 18px 14px; }
    .dept-card-body { padding: 16px 18px 20px; gap: 14px; }
    .dept-icon { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 12px; }
    .dept-header-text h3 { font-size: 1rem; }

    .dept-services-list li { font-size: 0.85rem; }
    .stat-number { font-size: 1.9rem; }
    .stat-label { font-size: 0.9rem; }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}