/* ============================================
   SMOUHA MEDICAL CAMPUS - PROFESSIONAL STYLING
   ============================================ */

:root {
    --primary-navy: #0a2342;
    --accent-cyan: #00bcd4;
    --accent-gold: #ffc107;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background: var(--primary-navy);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.hospital-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.hospital-info p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

.emergency-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.emergency-label {
    font-size: 12px;
    opacity: 0.9;
}

.emergency-phone {
    font-size: 18px;
    font-weight: 700;
    color: #ff4444;
    text-decoration: none;
}

/* Navigation Bar */
.navbar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: var(--accent-cyan);
    color: var(--primary-navy);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 10px;
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-navy);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background: rgba(0, 188, 212, 0.2);
    border-left-color: var(--accent-cyan);
    padding-left: 25px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 66, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--primary-navy);
}

.btn-primary:hover {
    background: #00a8c4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-navy);
}

.btn-portal {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.btn-portal:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.portal-link {
    color: var(--accent-gold) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portal-link:hover {
    color: #ffb300 !important;
    text-decoration: underline;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.statistics {
    background: var(--primary-navy);
    color: white;
    padding: 60px 0;
}

.statistics .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 36px;
    color: var(--primary-navy);
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    padding: 25px;
}

.service-card h3 {
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-size: 20px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--accent-gold);
}

/* ============================================
   WHY US SECTION
   ============================================ */

.why-us {
    background: var(--bg-light);
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0d2f52 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0d2f52 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.95;
}

/* ============================================
   DEPARTMENT CONTENT
   ============================================ */

.department-content {
    padding: 60px 0;
}

.dept-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.dept-section.reverse {
    direction: rtl;
}

.dept-section.reverse .dept-text,
.dept-section.reverse .dept-images {
    direction: ltr;
}

.dept-text h2 {
    color: var(--primary-navy);
    font-size: 28px;
    margin-bottom: 20px;
}

.dept-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    color: var(--text-light);
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.services-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.dept-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* ============================================
   CTA SECTION IN DEPARTMENTS
   ============================================ */

.cta-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 60px;
}

.cta-section h3 {
    color: var(--primary-navy);
    font-size: 24px;
    margin-bottom: 10px;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-navy);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    /* NOTE: .nav-menu hide/show on mobile is handled by the 960px rule below
       (hamburger button). Do NOT set display:flex here — it overrides the hamburger logic. */

    .nav-menu > li > a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
    }

    .dropdown.open > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu {
        display: block;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .dept-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
    }

    .hospital-info h1 {
        font-size: 18px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}
/* Force rebuild */
/* Cache bust: 1784035931 */
/* Updated at 1784036043 */

/* ============================================
   LANGUAGE TOGGLE & RTL SUPPORT
   ============================================ */

.language-toggle {
    display: flex;
    gap: 8px;
    margin: 0 15px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .header-top {
    flex-direction: row-reverse;
}

html[dir="rtl"] .logo-section {
    flex-direction: row-reverse;
}

html[dir="rtl"] .emergency-contact {
    align-items: flex-start;
}

html[dir="rtl"] .language-toggle {
    margin: 0 0 0 15px;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
}

html[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

html[dir="rtl"] .services-grid {
    direction: rtl;
}

html[dir="rtl"] .dept-section {
    direction: rtl;
}

html[dir="rtl"] .dept-section.reverse {
    direction: ltr;
}

html[dir="rtl"] .services-list li {
    padding-left: 0;
    padding-right: 25px;
}

html[dir="rtl"] .services-list li:before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .stats-grid {
    direction: rtl;
}

html[dir="rtl"] .cta-buttons {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-grid {
    direction: rtl;
}

html[dir="rtl"] .footer-bottom {
    text-align: center;
}

/* Arabic Font Support */
html[lang="ar"] {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* French Font Support */
html[lang="fr"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* ============================================
   CERTIFICATIONS & ACCREDITATIONS SECTION
   ============================================ */

.certifications-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    padding: 60px 0;
    margin: 40px 0;
    border-top: 4px solid var(--accent-gold);
    border-bottom: 4px solid var(--accent-gold);
}

.cert-announcement {
    text-align: center;
    margin-bottom: 50px;
}

.cert-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffb300 100%);
    color: var(--primary-navy);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.cert-announcement h2 {
    font-size: 36px;
    color: var(--primary-navy);
    margin-bottom: 20px;
    font-weight: 700;
}

.cert-highlight {
    font-size: 18px;
    color: var(--primary-navy);
    margin-bottom: 15px;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cert-announcement p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.cert-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.cert-card h3 {
    font-size: 20px;
    color: var(--primary-navy);
    padding: 20px 20px 10px;
    font-weight: 700;
}

.cert-card p {
    font-size: 14px;
    color: var(--text-light);
    padding: 0 20px 20px;
    line-height: 1.6;
    flex-grow: 1;
}

/* RTL Support for Certifications */
html[dir="rtl"] .certifications-section {
    direction: rtl;
}

html[dir="rtl"] .cert-announcement h2,
html[dir="rtl"] .cert-highlight,
html[dir="rtl"] .cert-announcement p {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .certs-grid {
    direction: rtl;
}

html[dir="rtl"] .cert-card h3,
html[dir="rtl"] .cert-card p {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cert-announcement h2 {
        font-size: 28px;
    }

    .cert-highlight {
        font-size: 16px;
    }

    .certs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cert-card img {
        height: 240px;
    }

    .certifications-section {
        padding: 40px 0;
    }
}

/* ============================================================
   TRI-LINGUAL SUPPORT — Additional RTL & Language styles
   ============================================================ */

/* Arabic font support */
html[lang="ar"] body,
html[dir="rtl"] body {
    font-family: 'Segoe UI', 'Arial Unicode MS', Tahoma, Geneva, Verdana, sans-serif;
}

/* RTL: flip card grids and flex rows */
html[dir="rtl"] .departments-grid,
html[dir="rtl"] .services-grid,
html[dir="rtl"] .team-grid,
html[dir="rtl"] .stats-grid,
html[dir="rtl"] .features-grid,
html[dir="rtl"] .info-grid {
    direction: rtl;
}

html[dir="rtl"] .department-card,
html[dir="rtl"] .service-card,
html[dir="rtl"] .team-card,
html[dir="rtl"] .feature-item {
    text-align: right;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle,
html[dir="rtl"] .page-header h1,
html[dir="rtl"] .page-header p,
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .page-hero p {
    text-align: right;
}

html[dir="rtl"] .department-card ul,
html[dir="rtl"] .service-card ul {
    padding-right: 20px;
    padding-left: 0;
    text-align: right;
}

html[dir="rtl"] .breadcrumb {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-grid {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .footer-links {
    text-align: right;
}

html[dir="rtl"] .contact-info-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .cta-buttons {
    flex-direction: row-reverse;
}

html[dir="rtl"] .dropdown-menu li a {
    border-left: none;
    border-right: 3px solid transparent;
    padding-left: 20px;
    padding-right: 25px;
}

html[dir="rtl"] .dropdown-menu li a:hover {
    border-right-color: var(--accent-cyan);
    padding-right: 30px;
    padding-left: 20px;
}

html[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

/* Active language button */
.lang-btn.active {
    background: var(--accent-gold) !important;
    color: var(--primary-navy) !important;
    font-weight: 700;
}

/* Wider Arabic button */
#lang-ar {
    min-width: 60px;
    font-size: 11px;
}

/* ============================================
   DEPARTMENT PAGES — COMPLETE LAYOUT OVERRIDE
   (overrides old conflicting .dept-section grid)
   ============================================ */

/* --- NAVBAR (new structure) --- */
.navbar {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    background: var(--primary-navy) !important;
    border-top: none !important;
    padding-top: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 68px !important;
    min-height: 68px !important;
    gap: 10px;
    width: 100%;
}
.nav-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    flex-shrink: 0 !important;
    text-decoration: none;
    width: auto !important;
    max-width: 280px;
}
.nav-logo {
    height: 44px !important;
    width: 44px !important;
    max-height: 44px !important;
    max-width: 44px !important;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
}
.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.nav-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-gold);
    white-space: nowrap;
}
.nav-subtitle {
    font-size: 10px;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
}
.nav-menu {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
    align-items: stretch;
}
.nav-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}
.nav-menu > li > a {
    display: flex !important;
    align-items: center;
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
    padding: 0 13px !important;
    font-size: 13px !important;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: none !important;
    height: 68px;
}
.nav-menu > li > a:hover {
    background: var(--accent-cyan);
    color: var(--primary-navy) !important;
}
.nav-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    flex-shrink: 0 !important;
    width: auto !important;
}
.portal-btn {
    background: var(--accent-cyan);
    color: var(--primary-navy) !important;
    padding: 7px 13px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s;
}
.portal-btn:hover { background: var(--accent-gold); }
.hamburger {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- DEPARTMENT HERO --- */
.dept-hero {
    min-height: 360px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    /* override old grid */
    grid-template-columns: none !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.dept-hero-content {
    max-width: 720px;
    padding: 60px 24px;
    color: white;
    position: relative;
    z-index: 2;
}
.dept-hero-badge {
    display: inline-block;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.dept-hero-content h1 {
    font-size: 40px !important;
    font-weight: 800;
    margin-bottom: 12px;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}
.dept-hero-content p {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.92) !important;
}
.dept-hero-content .btn-primary {
    display: inline-block;
    background: var(--accent-cyan);
    color: var(--primary-navy) !important;
    padding: 11px 26px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
}
.dept-hero-content .btn-primary:hover { background: var(--accent-gold); }

/* --- DEPARTMENT CONTENT SECTIONS --- */
/* Override the old 2-column grid on .dept-section */
.dept-section {
    display: block !important;
    grid-template-columns: none !important;
    padding: 56px 0 !important;
    background: white !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.dept-section.dept-section-alt {
    background: #f8fafc !important;
}
.dept-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}
.section-header {
    margin-bottom: 32px;
}
.section-header h2 {
    font-size: 28px !important;
    font-weight: 700;
    color: var(--primary-navy) !important;
    margin-bottom: 10px;
}
.section-divider {
    width: 56px;
    height: 4px;
    border-radius: 2px;
}

/* Overview: text + image side by side */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.overview-text p {
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 16px;
    font-size: 15px;
}
.overview-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: block;
}

/* Services list as card grid */
ul.services-grid {
    list-style: none !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 14px !important;
}
ul.services-grid li {
    background: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-cyan);
    padding: 13px 16px;
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: border-color 0.2s;
}
ul.services-grid li:hover { border-left-color: var(--accent-gold); }

/* Staff grid */
.staff-intro-text {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 700px;
}
.staff-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
    gap: 22px !important;
}
.staff-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 22px 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.staff-card.staff-head {
    border-top: 4px solid var(--accent-gold);
    background: linear-gradient(135deg, #fffbea 0%, #fff 100%);
}
.staff-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.staff-avatar img { width:100%; height:100%; object-fit:cover; }
.staff-avatar-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.staff-avatar-placeholder svg { width:66px; height:66px; }
.staff-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-navy);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.staff-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 4px;
    line-height: 1.3;
}
.staff-role { font-size: 12px; color: var(--text-light); }
.staff-note { margin-top: 20px; font-size: 12px; color: var(--text-light); font-style: italic; }

/* CTA section inside dept pages */
.dept-cta {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0d3060 100%);
    color: white;
    text-align: center;
    padding: 56px 24px;
}
.dept-cta h2 { font-size: 26px; margin-bottom: 10px; }
.dept-cta p { opacity: 0.85; margin-bottom: 24px; }
.dept-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dept-cta-buttons a {
    padding: 11px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
}
.dept-cta-buttons a:first-child { background: var(--accent-cyan); color: var(--primary-navy); }
.dept-cta-buttons a:first-child:hover { background: var(--accent-gold); }
.dept-cta-buttons a:last-child { background: transparent; color: white; border: 2px solid white; }
.dept-cta-buttons a:last-child:hover { background: white; color: var(--primary-navy); }

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
    .nav-menu {
        display: none !important;
        flex-direction: column !important;
        position: absolute;
        top: 68px;
        left: 0; right: 0;
        background: var(--primary-navy);
        z-index: 999;
        padding: 8px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    }
    .nav-menu.open { display: flex !important; }
    .nav-menu > li > a { height: auto !important; padding: 12px 20px !important; }
    .hamburger { display: block !important; }
    /* Make navbar position:relative so the dropdown menu can anchor to it */
    .navbar { position: relative !important; }
    .nav-brand-text { display: none; }
    .overview-grid { grid-template-columns: 1fr; }
    .overview-image { order: -1; }
    .overview-image img { height: 200px; }
    .dept-hero-content h1 { font-size: 26px !important; }
    ul.services-grid { grid-template-columns: 1fr !important; }
    .staff-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
}

/* --- RTL OVERRIDES FOR NEW CLASSES --- */
html[dir="rtl"] .nav-container { flex-direction: row-reverse; }
html[dir="rtl"] .nav-brand { flex-direction: row-reverse; }
html[dir="rtl"] .nav-brand-text { text-align: right; }
html[dir="rtl"] .nav-actions { flex-direction: row-reverse; }
html[dir="rtl"] .nav-menu { flex-direction: row-reverse !important; justify-content: center; }
html[dir="rtl"] .overview-grid { direction: rtl; }
html[dir="rtl"] .overview-text p { text-align: right; }
html[dir="rtl"] .section-header h2 { text-align: right; }
html[dir="rtl"] ul.services-grid li { border-left: none; border-right: 4px solid var(--accent-cyan); text-align: right; }
html[dir="rtl"] ul.services-grid li:hover { border-right-color: var(--accent-gold); }
html[dir="rtl"] .staff-intro-text { text-align: right; }
html[dir="rtl"] .staff-card { direction: rtl; }
html[dir="rtl"] .dept-hero-content { direction: rtl; }
html[dir="rtl"] .dept-cta-buttons { flex-direction: row-reverse; }


/* ============================================
   FOOTER — dept-page layout (footer-container / footer-brand / footer-logo)
   ============================================ */

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    padding: 4px;
}

.footer-brand h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 2px;
    line-height: 1.4;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent-cyan, #06b6d4);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact p {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.footer-contact a {
    color: var(--accent-cyan, #06b6d4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #fff;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand {
        flex-direction: row;
        align-items: center;
    }
}

/* RTL support */
html[dir="rtl"] .footer-container { direction: rtl; }
html[dir="rtl"] .footer-brand { flex-direction: row-reverse; }
html[dir="rtl"] .footer-links ul li, html[dir="rtl"] .footer-contact p { text-align: right; }
