/* ==========================================================================
   Department Details: Available Hospitals & Specialist Doctors Stylesheet
   ========================================================================== */

/* Quick Stats Widget in Sidebar */
.dept-sidebar-stats {
    margin-bottom: 30px;
    padding: 24px 22px;
    background: linear-gradient(145deg, #28235b 0%, #1f1b47 100%);
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(40, 35, 91, 0.16);
}

.dept-sidebar-stats__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5b0d3;
}

.dept-sidebar-stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dept-sidebar-stat-card {
    display: flex;
    flex-direction: column;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    transition: all 220ms ease;
}

.dept-sidebar-stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #c466a4;
    transform: translateY(-2px);
    color: #ffffff;
}

.dept-sidebar-stat-card__num {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.dept-sidebar-stat-card__label {
    margin-top: 4px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.dept-sidebar-stat-card__arrow {
    margin-top: 8px;
    font-size: 0.72rem;
    color: #c466a4;
    align-self: flex-end;
}

/* Common Section Headers */
.dept-section {
    position: relative;
    padding: 70px 0 80px;
    scroll-margin-top: 100px;
}

.dept-section--hospitals {
    background: #fbfbfd;
    border-top: 1px solid rgba(40, 35, 91, 0.06);
    border-bottom: 1px solid rgba(40, 35, 91, 0.06);
}

.dept-section--doctors {
    background: #ffffff;
}

.dept-section__header {
    margin-bottom: 42px;
}

.dept-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #c466a4;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dept-section__eyebrow span {
    width: 28px;
    height: 2px;
    background: currentColor;
}

.dept-section__title-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.dept-section__title {
    margin: 0;
    color: #28235b;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.dept-section__subtitle {
    margin: 10px 0 0;
    color: #636779;
    font-size: 1.02rem;
    max-width: 700px;
    line-height: 1.65;
}

.dept-section__count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e2e5ec;
    border-radius: 999px;
    color: #28235b;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(40, 35, 91, 0.05);
}

.dept-section__count-badge i {
    color: #c466a4;
}

/* Hospital Cards */
.dept-hospital-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(40, 35, 91, 0.04);
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.dept-hospital-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 102, 164, 0.35);
    box-shadow: 0 16px 32px rgba(40, 35, 91, 0.10);
}

.dept-hospital-card__thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f2f6;
}

.dept-hospital-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 600ms ease;
}

.dept-hospital-card:hover .dept-hospital-card__thumb img {
    transform: scale(1.06);
}

.dept-hospital-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(40, 35, 91, 0.90);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 999px;
}

.dept-hospital-card__badge i {
    color: #ff9fd9;
}

.dept-hospital-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 22px 24px 20px;
}

.dept-hospital-card__name {
    margin: 0 0 10px;
    font-size: 1.18rem;
    font-weight: 750;
    line-height: 1.35;
    color: #28235b;
}

.dept-hospital-card__name a {
    color: inherit;
    transition: color 200ms ease;
}

.dept-hospital-card__name a:hover {
    color: #c466a4;
}

.dept-hospital-card__meta {
    margin: 0 0 16px;
    color: #6a6e82;
    font-size: 0.88rem;
    line-height: 1.55;
}

.dept-hospital-card__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.dept-hospital-card__meta-item i {
    color: #c466a4;
    margin-top: 4px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dept-hospital-card__meta-item a {
    color: inherit;
    transition: color 200ms ease;
}

.dept-hospital-card__meta-item a:hover {
    color: #c466a4;
}

.dept-hospital-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f2f6;
}

.dept-hospital-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #28235b;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 200ms ease;
}

.dept-hospital-card__link i {
    color: #c466a4;
    font-size: 0.75rem;
    transition: transform 200ms ease;
}

.dept-hospital-card__link:hover {
    color: #c466a4;
    gap: 8px;
}

.dept-hospital-card__link:hover i {
    transform: translate(2px, -2px);
}

.dept-hospital-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    background: #f4f3f8;
    color: #28235b;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 200ms ease;
}

.dept-hospital-card__btn:hover {
    background: #c466a4;
    color: #ffffff;
    border-color: #c466a4;
}

/* Doctor Filter Bar */
.dept-doctor-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 35px;
}

.dept-doctor-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #ffffff;
    border: 1px solid #e0e4ec;
    border-radius: 999px;
    color: #3b3765;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 220ms ease;
}

.dept-doctor-filter__btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #f0f2f7;
    border-radius: 10px;
    font-size: 0.74rem;
    color: #6a678b;
    transition: all 220ms ease;
}

.dept-doctor-filter__btn:hover {
    border-color: #c466a4;
    color: #c466a4;
    background: #fffbfe;
}

.dept-doctor-filter__btn.is-active {
    background: #28235b;
    border-color: #28235b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(40, 35, 91, 0.20);
}

.dept-doctor-filter__btn.is-active span {
    background: #c466a4;
    color: #ffffff;
}

/* Doctor Cards on Department Details */
.dept-doctor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(40, 35, 91, 0.04);
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.dept-doctor-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 102, 164, 0.35);
    box-shadow: 0 16px 32px rgba(40, 35, 91, 0.10);
}

.dept-doctor-card__thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f6fa;
}

.dept-doctor-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 600ms ease;
}

.dept-doctor-card:hover .dept-doctor-card__thumb img {
    transform: scale(1.05);
}

.dept-doctor-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 22px 24px 20px;
}

.dept-doctor-card__name {
    margin: 0 0 6px;
    font-size: 1.18rem;
    font-weight: 750;
    line-height: 1.35;
    color: #28235b;
}

.dept-doctor-card__name a {
    color: inherit;
    transition: color 200ms ease;
}

.dept-doctor-card__name a:hover {
    color: #c466a4;
}

.dept-doctor-card__qual {
    margin: 0 0 12px;
    color: #c466a4;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.45;
}

.dept-doctor-card__locations {
    margin: 0 0 16px;
}

.dept-doctor-card__locations-title {
    margin: 0 0 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8c90a2;
}

.dept-doctor-card__location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dept-doctor-card__location-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f3f2f8;
    border-radius: 6px;
    color: #28235b;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 180ms ease;
}

.dept-doctor-card__location-tag i {
    color: #c466a4;
    font-size: 0.7rem;
}

.dept-doctor-card__location-tag:hover {
    background: #28235b;
    color: #ffffff;
}

.dept-doctor-card__location-tag:hover i {
    color: #ffffff;
}

.dept-doctor-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f2f6;
}

.dept-doctor-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #28235b;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 200ms ease;
}

.dept-doctor-card__link i {
    color: #c466a4;
    font-size: 0.75rem;
    transition: transform 200ms ease;
}

.dept-doctor-card__link:hover {
    color: #c466a4;
    gap: 8px;
}

.dept-doctor-card__link:hover i {
    transform: translate(2px, -2px);
}

.dept-doctor-col {
    transition: opacity 250ms ease, transform 250ms ease;
}

.dept-doctor-col .dept-doctor-card,
.dept-doctor-col:not(.is-hidden) .dept-doctor-card {
    visibility: visible !important;
    opacity: 1 !important;
}

.dept-doctor-col.is-hidden {
    display: none !important;
}

/* Fallback Notice */
.dept-notice-card {
    padding: 32px 30px;
    background: #fdfcfd;
    border: 1px dashed rgba(196, 102, 164, 0.4);
    border-radius: 20px;
    text-align: center;
}

.dept-notice-card i {
    font-size: 2.2rem;
    color: #c466a4;
    margin-bottom: 12px;
}

.dept-notice-card h4 {
    margin: 0 0 8px;
    color: #28235b;
    font-size: 1.25rem;
    font-weight: 750;
}

.dept-notice-card p {
    margin: 0 auto 16px;
    color: #636779;
    font-size: 0.95rem;
    max-width: 580px;
    line-height: 1.6;
}

.dept-notice-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #28235b;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 200ms ease;
}

.dept-notice-card a:hover {
    background: #c466a4;
    color: #ffffff;
}

@media (max-width: 767px) {
    .dept-section {
        padding: 50px 0 60px;
    }
    .dept-section__title-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    .dept-hospital-card__thumb {
        height: 180px;
    }
    .dept-doctor-card__thumb {
        height: 220px;
    }
    .dept-doctor-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .dept-doctor-filter__btn {
        flex-shrink: 0;
    }
}
