/* ================================================
   DEPARTMENT PAGE STYLES
   Shared across all department sub-pages
   ================================================ */

/* ---------- RESET & VARS (inherit from main) ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root {
    --primary: #000;
    --primary-light: #111;
    --card-bg: #1c1c1e;
    --card-bg-hover: #2c2c2e;
    --text: #f5f5f7;
    --text-muted: #86868b;
    --accent: #ffffff;
    --blue-accent: #0071e3;
    --glass-bg: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.08);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow-lg: 0 24px 48px rgba(0,0,0,0.4);
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
    --font-body: 'Inter', -apple-system, system-ui, sans-serif;
    --nav-height: 48px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ---------- NAVBAR ---------- */
.dept-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(0,0,0,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.dept-nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}

.dept-nav .nav-logo i { color: #fff; }

.nav-back {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-back:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* ---------- HERO BANNER ---------- */
.dept-hero {
    position: relative;
    height: 420px;
    display: flex;
    align-items: flex-end;
    margin-top: var(--nav-height);
    overflow: hidden;
}

.dept-hero-bg {
    position: absolute;
    inset: 0;
}

.dept-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.dept-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000 5%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.3) 100%);
}

.dept-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 60px 48px;
    max-width: 800px;
}

.dept-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.dept-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.dept-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
}

/* ---------- MAIN LAYOUT: LEFT CONTENT + RIGHT STICKY BOOKING ---------- */
.dept-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 40px 100px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

/* ----- LEFT: EDUCATION CONTENT ----- */
.dept-content {
    min-width: 0;
}

.dept-section {
    margin-bottom: 64px;
}

.dept-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.dept-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text);
}

.dept-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Info Grid (conditions, treatments) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all var(--transition);
}

.info-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-2px);
}

.info-card .info-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #fff;
}

.info-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.info-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Doctors List */
.doctors-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.doctor-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all var(--transition);
}

.doctor-row:hover {
    background: var(--card-bg-hover);
}

.doctor-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.doctor-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.doctor-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.doctor-exp {
    margin-left: auto;
    padding: 4px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Gallery */
.dept-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.dept-gallery img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    transition: transform var(--transition);
}

.dept-gallery img:hover { transform: scale(1.02); }

/* Key Stats Row */
.key-stats {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.key-stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 20px 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.key-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.key-stat span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq-question:hover { background: var(--card-bg-hover); }

.faq-question i {
    transition: transform var(--transition);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 20px 18px;
}

.faq-answer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ----- RIGHT: STICKY BOOKING WIDGET ----- */
.dept-booking {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.booking-widget {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.booking-widget-header {
    margin-bottom: 24px;
}

.booking-widget-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.booking-widget-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bw-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.bw-phone {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.bw-submit {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    margin-top: 8px;
}

.bw-submit:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.bw-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.bw-divider::before, .bw-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.bw-contact {
    text-align: center;
}

.bw-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}

.bw-contact a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* Widget trust badges */
.bw-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.bw-trust span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.bw-trust i { font-size: 0.65rem; }

/* ---------- FOOTER STRIP ---------- */
.dept-footer {
    padding: 32px 40px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.dept-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dept-footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .dept-body {
        grid-template-columns: 1fr 340px;
        gap: 40px;
        padding: 40px 24px 80px;
    }
    .dept-hero-content { padding: 0 40px 40px; }
    .dept-hero h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .dept-nav { padding: 0 20px; }

    .dept-hero { height: 340px; }
    .dept-hero-content { padding: 0 24px 32px; }
    .dept-hero h1 { font-size: 2rem; }
    .dept-hero p { font-size: 0.95rem; }

    .dept-body {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px 20px 60px;
    }

    .dept-booking {
        position: relative;
        top: 0;
    }

    .info-grid { grid-template-columns: 1fr; }
    .dept-gallery { grid-template-columns: 1fr; }
    .key-stats { gap: 12px; }
    .key-stat { min-width: 100px; padding: 16px 12px; }
    .doctor-exp { display: none; }
}

@media (max-width: 480px) {
    .dept-hero { height: 280px; }
    .dept-hero h1 { font-size: 1.6rem; }
    .key-stats { flex-direction: column; }
    .dept-body { padding: 24px 16px 48px; }
}

@media (max-width: 360px) {
    .dept-hero { height: 240px; }
    .dept-hero h1 { font-size: 1.4rem; }
    .dept-hero-content { padding: 0 16px 24px; }
    .dept-nav { padding: 0 12px; }
}
