/* ==========================================================================
   Design System & Theme Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-color: #0c3b2e;      /* Deep Forest Green */
    --primary-hover: #08281f;      /* Darker Green for hover states */
    --primary-light: #198754;      /* Fresh Emerald Green */
    --secondary-color: #6d9773;    /* Sage/Mint Green */
    --accent-color: #bb8a52;       /* Warm Gold/Wheat */
    --accent-hover: #a1733f;
    --accent-light: #ffeb3b;
    --dark-color: #212529;         /* Charcoal */
    --light-color: #f8f9fa;        /* Soft White */
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-700: #495057;

    /* Theme State Colors */
    --success: #198754;
    --danger: #dc3545;
    --info: #0dcaf0;

    /* Advanced Shadows */
    --shadow-sm: 0 4px 10px rgba(12, 59, 46, 0.03);
    --shadow-md: 0 10px 25px rgba(12, 59, 46, 0.05);
    --shadow-lg: 0 20px 40px rgba(12, 59, 46, 0.08);
    --shadow-hover: 0 25px 50px rgba(12, 59, 46, 0.15);

    /* Transitions & Borders */
    --transition-speed: 0.35s;
    --border-radius: 20px;
    --border-radius-sm: 10px;
    --border-radius-lg: 30px;
    --font-family: 'Cairo', sans-serif;
}

/* ==========================================================================
   Resets, Scrollbars & Base Configurations
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(109, 151, 115, 0.05);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
    transition: background var(--transition-speed);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: radial-gradient(circle at top right, #eef5f1 0%, #f4f7f4 50%, #eaeaea 100%);
    color: var(--dark-color);
    line-height: 1.8;
    text-align: right;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Graphic Elements */
body::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(109, 151, 115, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

button, input, select, textarea {
    font-family: var(--font-family);
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-speed) ease;
}

button:active {
    transform: scale(0.97);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

/* ==========================================================================
   Header and Top Contact Bar
   ========================================================================== */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.82rem;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 500;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-contact-info a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(187, 138, 82, 0.5);
}

.top-social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-social-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.top-social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px) scale(1.1);
}

/* Main Header */
.main-header {
    background: linear-gradient(135deg, #092e24 0%, #0c3b2e 50%, #154c3e 100%);
    color: var(--white);
    padding: 40px 0;
    position: relative;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(109, 151, 115, 0.12) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(187, 138, 82, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Premium Upload Logo Box */
.logo-box {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
}

.logo-placeholder {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.3);
}

.logo-placeholder img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    gap: 6px;
}

.logo-placeholder:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.06) rotate(3deg);
    box-shadow: 0 10px 25px rgba(187, 138, 82, 0.2), inset 0 2px 8px rgba(0,0,0,0.1);
}

.logo-fallback i {
    font-size: 2.2rem;
    color: var(--accent-color);
    text-shadow: 0 2px 10px rgba(187, 138, 82, 0.3);
}

.logo-fallback span {
    font-size: 0.72rem;
    font-weight: 700;
}

.logo-fallback small {
    font-size: 0.55rem;
    opacity: 0.85;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Titles */
.header-titles {
    text-align: center;
    flex: 1;
}

.header-titles .subtitle {
    font-size: 1.15rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 2px;
}

.header-titles .main-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.35);
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-titles .dept-title {
    font-size: 1.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 5px rgba(0,0,0,0.25);
    margin-top: 5px;
}

.divider-glow {
    height: 4px;
    max-width: 320px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
    margin: 18px auto 0 auto;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(187, 138, 82, 0.5);
}

/* ==========================================================================
   Hero Welcome Section (Premium Glass Cover)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 60px 0;
    background-image: url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&q=80&w=1400');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(12, 59, 46, 0.92) 0%, rgba(21, 76, 62, 0.78) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(187, 138, 82, 0.2);
    border: 1px solid rgba(187, 138, 82, 0.5);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #ffffff 50%, #cbdacf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Dashboard Section (Glassmorphic Buttons grid)
   ========================================================================== */
.dashboard-section {
    padding: 70px 24px;
    flex-grow: 1;
    z-index: 5;
    position: relative;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 30px;
}

/* Glassmorphic card button styling */
.dash-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    text-align: right;
    width: 100%;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--secondary-color);
    transition: transform var(--transition-speed) ease;
    transform: scaleY(0.7);
    transform-origin: center;
}

.dash-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(12, 59, 46, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.dash-card:hover::before {
    transform: scaleY(1);
    background-color: var(--accent-color);
}

.card-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: rgba(109, 151, 115, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 8px rgba(12, 59, 46, 0.05);
}

.dash-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05) rotate(360deg);
    box-shadow: 0 8px 20px rgba(12, 59, 46, 0.2);
}

.dash-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.dash-card p {
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-action {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.card-action i {
    transition: transform var(--transition-speed) ease;
}

.dash-card:hover .card-action i {
    transform: translate(-4px, -2px) scale(1.1);
}

/* Card color design accents */
.card-director { border-top: 4px solid var(--accent-color); }
.card-director .card-icon { color: var(--accent-color); background-color: rgba(187, 138, 82, 0.1); }
.card-director:hover .card-icon { background-color: var(--accent-color); color: var(--white); }

.card-it { border-top: 4px solid var(--primary-light); }
.card-it .card-icon { color: var(--primary-light); background-color: rgba(25, 135, 84, 0.1); }
.card-it:hover .card-icon { background-color: var(--primary-light); color: var(--white); }

.card-chatbot {
    background: linear-gradient(135deg, #07251d 0%, #0c3b2e 50%, #154c3e 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-chatbot h4 { color: var(--white); }
.card-chatbot p { color: rgba(255, 255, 255, 0.8); }

.card-icon-pulse {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
    position: relative;
    box-shadow: 0 8px 15px rgba(187, 138, 82, 0.3);
}

.card-icon-pulse::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    opacity: 0.7;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.22); opacity: 0; }
}

/* ==========================================================================
   Popup Windows (Modals) Premium Design
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 37, 29, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 750px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 30px 70px rgba(7, 37, 29, 0.25);
    z-index: 2100;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(60px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Sizes */
.modal-lg { max-width: 1100px; }
.modal-xl { max-width: 1350px; }

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #0c3b2e 0%, #154c3e 100%);
    color: var(--white);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    z-index: 15;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    color: var(--accent-color);
    text-shadow: 0 2px 8px rgba(187, 138, 82, 0.3);
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--danger);
    transform: scale(1.2) rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    background-color: #f7f9f7;
}

.modal-body.pad-zero {
    padding: 0 !important;
}

/* ==========================================================================
   Modals Inner Component: Leadership (Director & IT Modals)
   ========================================================================== */
.director-card-modal, .it-card-modal {
    border: none;
    box-shadow: none;
    padding: 10px 0;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-avatar {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background-color: rgba(109, 151, 115, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border: 3px solid rgba(12, 59, 46, 0.15);
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.title-details {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 25px;
    font-weight: 600;
}

.phone-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
    padding: 15px 30px;
    border-radius: var(--border-radius-sm);
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 30px;
    border: 1px solid var(--gray-300);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.phone-display i {
    color: var(--secondary-color);
}

.contact-card-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
    border: 1px solid transparent;
}

.btn-call {
    background-color: var(--primary-light);
    color: var(--white);
}

.btn-call:hover {
    background-color: #146c43;
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.25);
    transform: translateY(-2px);
}

.btn-copy {
    background-color: var(--gray-200);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-copy:hover {
    background-color: var(--gray-600);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Modals Inner Component: Centers Directory Phone Book
   ========================================================================== */
.directory-controls {
    background-color: var(--white);
    padding: 18px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border: 1px solid var(--gray-200);
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    background-color: #f7f9f7;
}

.search-box input:focus {
    background-color: var(--white);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.search-clear {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.center-card {
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-speed) ease;
}

.center-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.center-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.center-name i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.center-phone {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f4f6f4;
    padding: 8px 12px;
    border-radius: 6px;
}

.center-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.center-actions .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
}

/* ==========================================================================
   Modals Inner Component: Map Layout (Geographical)
   ========================================================================== */
.map-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    height: 680px;
}

.map-sidebar {
    border-left: 1px solid var(--gray-300);
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--white);
}

.sidebar-search {
    padding: 15px;
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-search input {
    width: 100%;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-300);
    font-size: 0.85rem;
}

.map-locations-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.map-locations-list li {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    transition: all var(--transition-speed) ease;
}

.map-locations-list li i {
    color: var(--secondary-color);
}

.map-locations-list li:hover {
    background-color: #f4f7f4;
    color: var(--primary-color);
}

.map-locations-list li.active {
    background-color: rgba(109, 151, 115, 0.15);
    color: var(--primary-color);
    border-right: 4px solid var(--primary-color);
    padding-right: 14px;
}

.map-wrapper {
    position: relative;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 10;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 15px;
    z-index: 100;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid var(--gray-300);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-pin-main { color: #dc3545; }
.map-pin-branch { color: #198754; }

.popup-info h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.popup-info p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.popup-info .btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-light);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
}

/* ==========================================================================
   Modals Inner Component: Citizens Affairs & Form
   ========================================================================== */
.citizens-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 30px;
}

.citizens-info-card {
    background: linear-gradient(135deg, #092e24 0%, #0c3b2e 100%);
    color: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.citizens-info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.citizens-info-card p {
    font-size: 0.82rem;
    opacity: 0.85;
    margin-bottom: 22px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.info-list-item {
    display: flex;
    gap: 12px;
}

.info-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--accent-color);
}

.info-item-details {
    display: flex;
    flex-direction: column;
}

.info-item-details .label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.info-item-details .val {
    font-size: 0.88rem;
    font-weight: 700;
}

.info-item-details .action-links {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.info-item-details .action-links a,
.info-item-details .action-links button {
    background-color: rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--white);
    font-weight: 600;
}

.info-item-details .action-links a:hover,
.info-item-details .action-links button:hover {
    background-color: var(--accent-color);
}

.instruction-box {
    background-color: rgba(255, 255, 255, 0.04);
    border-right: 3px solid var(--accent-color);
    padding: 12px;
    font-size: 0.75rem;
    margin-top: auto;
}

.instruction-box h5 {
    color: var(--accent-color);
    margin-bottom: 4px;
}

.complaint-form-wrapper {
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 10px;
}

.complaint-form-wrapper h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.citizens-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray-700);
}

.form-group label .required {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    background-color: #f7f9f7;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: var(--white);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.btn-submit-form {
    padding: 12px 0;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 10px rgba(12, 59, 46, 0.25);
}

.btn-submit-form:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.form-success-alert {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* ==========================================================================
   Modals Inner Component: Social Media
   ========================================================================== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.social-card {
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
}

.social-card:hover {
    border-color: #1877f2;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.social-card .social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e7f3ff;
    color: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: all var(--transition-speed) ease;
}

.social-card:hover .social-icon {
    background-color: #1877f2;
    color: var(--white);
}

.social-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
    line-height: 1.45;
}

.btn-social-link {
    width: 100%;
    padding: 9px 0;
    background-color: #f0f2f5;
    color: var(--gray-700);
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

.social-card:hover .btn-social-link {
    background-color: #1877f2;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.25);
}

/* ==========================================================================
   Modals Inner Component: AI Chatbot Dialog
   ========================================================================== */
.chatbot-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    height: 650px;
}

.chatbot-info {
    border-left: 1px solid var(--gray-300);
    background-color: var(--white);
    padding: 22px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.bot-profile-header {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.bot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.bot-profile-header h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary-color);
}

.status-online {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--success);
    font-weight: 600;
}

.status-online i {
    font-size: 0.4rem;
    animation: blink 1.5s infinite;
}

.bot-intro {
    font-size: 0.78rem;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.bot-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggest-btn {
    background-color: #f7f9f7;
    border: 1px solid var(--gray-200);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: right;
    color: var(--gray-700);
    transition: all var(--transition-speed) ease;
}

.suggest-btn:hover {
    background-color: rgba(109, 151, 115, 0.15);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.chat-dialog-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-color);
}

.chat-header-info {
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header-info i {
    color: var(--accent-color);
}

.btn-clear-chat {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: color var(--transition-speed) ease;
}

.btn-clear-chat:hover {
    color: #ff8888;
}

.chat-messages {
    flex: 1;
    padding: 22px;
    overflow-y: auto;
    background-color: #eef2ef;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
}

.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background-color: var(--accent-color);
}

.message-content {
    background-color: var(--white);
    padding: 10px 15px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) var(--border-radius-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    font-size: 0.85rem;
}

.message.user .message-content {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-sm) 0 var(--border-radius-sm) var(--border-radius-sm);
}

.message-time {
    display: block;
    font-size: 0.65rem;
    color: var(--gray-600);
    margin-top: 4px;
    text-align: left;
}

.message.user .message-time {
    color: rgba(255, 255, 255, 0.6);
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 6px;
}

.typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--gray-600);
    animation: typing 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.chat-input-area {
    display: flex;
    padding: 12px 18px;
    border-top: 1px solid var(--gray-200);
    background-color: var(--white);
}

.chat-input-area input {
    flex: 1;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    padding: 10px 15px;
    font-size: 0.85rem;
    margin-left: 10px;
}

.chat-input-area input:focus {
    border-color: var(--primary-light);
}

.btn-send-message {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.btn-send-message:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* ==========================================================================
   Floating Widgets & Scroll to Top
   ========================================================================== */
.floating-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(12, 59, 46, 0.2);
    transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-btn:hover {
    transform: scale(1.1);
}

.btn-scroll-top {
    background-color: var(--accent-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   Footer Premium Styling
   ========================================================================== */
.main-footer {
    background: linear-gradient(135deg, #07251d 0%, #0c3b2e 100%);
    color: var(--white);
    padding: 60px 0 0 0;
    border-top: 5px solid var(--accent-color);
    margin-top: auto;
    position: relative;
    z-index: 5;
}

.footer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
}

.info-col {
    max-width: 750px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-col .footer-logo {
    justify-content: center;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.info-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 18px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.info-col p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-col ul li a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.links-col ul li a::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.72rem;
    color: var(--accent-color);
}

.links-col ul li a:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
    text-shadow: 0 0 10px rgba(187, 138, 82, 0.3);
}

.contact-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-col ul li {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-col ul li i {
    color: var(--accent-color);
    margin-top: 4px;
    font-size: 0.95rem;
}

.contact-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background-color: #051d17;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bottom-content p {
    margin: 0;
    text-align: right;
    width: 100%;
}

/* ==========================================================================
   Toast Notification (نسخ الأرقام)
   ========================================================================== */
.toast-alert {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-left: 5px solid var(--accent-color);
    padding: 14px 22px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-alert.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-alert i {
    color: var(--accent-color);
    font-size: 1.15rem;
}

.toast-alert span {
    font-weight: 700;
    font-size: 0.82rem;
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

/* Large Screens */
@media (max-width: 1200px) {
    .container { padding: 0 20px; }
}

/* Medium Screens (Tablets / Portables) */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .logo-box { 
        order: 1; 
        display: flex;
        gap: 15px;
    }
    
    .logo-placeholder {
        width: 100px;
        height: 100px;
        padding: 6px;
    }
    
    .header-titles { order: 2; }

    .hero-section h2 { font-size: 1.95rem; }
    
    /* Modals elements adaptation */
    .map-layout {
        grid-template-columns: 1fr;
        height: 580px;
    }
    .map-sidebar {
        border-left: none;
        border-bottom: 1px solid var(--gray-300);
        height: 180px;
    }
    .map-locations-list li {
        padding: 10px 15px;
        font-size: 0.78rem;
    }

    .citizens-layout { grid-template-columns: 1fr; }
    
    .chatbot-layout { 
        grid-template-columns: 1fr; 
        height: 580px; 
    }
    .chatbot-info {
        border-left: none;
        border-bottom: 1px solid var(--gray-300);
        height: 180px;
        padding: 15px;
    }
    .bot-suggestions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .suggest-btn {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

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

/* Small Screens (Smartphones) */
@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }
    .top-contact-info span {
        margin: 4px 0;
        display: block;
    }
    .top-bar-content .separator { display: none; }

    .header-titles .main-title { font-size: 1.8rem; }
    .header-titles .dept-title { font-size: 1.15rem; }

    .hero-section { padding: 35px 0; }
    .hero-section h2 { font-size: 1.45rem; }
    .hero-section p { font-size: 0.9rem; }

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

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

    .form-row { grid-template-columns: 1fr; gap: 15px; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .bottom-content {
        flex-direction: column;
        text-align: center;
    }
    .bottom-content p {
        text-align: center;
    }
    
    .contact-card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal { padding: 10px; }
    .modal-header { padding: 12px 18px; }
    .modal-body { padding: 15px; }
    
    .map-layout { height: 500px; }
    .map-sidebar { height: 140px; }
    .chatbot-layout { height: 500px; }
    .chatbot-info { height: 140px; }

    .search-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================================
   Experts Directory Styling
   ========================================================================== */
.card-experts { border-top: 4px solid #2b6cb0; }
.card-experts .card-icon { color: #2b6cb0; background-color: rgba(43, 108, 176, 0.1); }
.card-experts:hover .card-icon { background-color: #2b6cb0; color: var(--white); }

.search-filters-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}
.search-filters-row .search-box {
    flex: 2;
    min-width: 250px;
}
.search-filters-row .filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 250px;
}
.search-filters-row .filter-group select {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background-color: #f7f9f7;
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}
.search-filters-row .filter-group select:focus {
    border-color: var(--primary-light);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.expert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}
.expert-badge {
    display: inline-block;
    background-color: rgba(43, 108, 176, 0.12);
    color: #2b6cb0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    align-self: flex-start;
}
.expert-province-badge {
    display: inline-block;
    background-color: rgba(109, 151, 115, 0.12);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    align-self: flex-start;
}

/* ==========================================================================
   Minister Card & Modal Styling
   ========================================================================== */
.card-minister {
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(187, 138, 82, 0.08);
}
.card-minister:hover {
    box-shadow: 0 15px 40px rgba(187, 138, 82, 0.22);
}
.card-avatar-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    margin-bottom: 22px;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(187, 138, 82, 0.2);
}
.minister-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dash-card:hover .card-avatar-container {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(187, 138, 82, 0.4);
}
.card-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(187, 138, 82, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.minister-desc {
    font-size: 0.9rem;
    color: var(--gray-700);
    max-width: 450px;
    margin: -10px auto 20px auto;
    line-height: 1.6;
}


