/* ========================================= */
/* إعدادات المتغيرات والألوان    */
/* ========================================= */
:root {
    --primary-color: #1b8354;
    --primary-dark: #14573a;
    --footer-bg: #074D31;
    --text-dark: #161616;
    --text-gray: #1F2A37;
    --light-gray: #f3f4f6;
    --border-color: #D2D6DB;
    --white: #ffffff;
    /* خط موحد عبر الموقع (نفس خط بوابات الأمانات) */
    --font-main: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --a11y-font-scale: 1;
    --a11y-letter-spacing: 0px;
    --a11y-line-height: 1.5;
    --a11y-media-filter: none;

    /* مواءمة مع مرجع platformscode / صفحة index.tsx (هوامش + ألوان + مقاييس خط) */
    --dga-page-px: clamp(16px, 4vw, 80px);
    --dga-page-pt: 40px;
    --dga-section-gap: 24px;
    --dga-hero-h: 540px;
    --dga-hero-pt: clamp(72px, 14vh, 130px);
    --dga-hero-px: clamp(16px, 11vw, 196px);
    --dga-surface-muted: #f9fafb;
    /* display-xl-semibold / text-xl-regular / display-sm-bold / text-md-regular / display-lg-regular / text-sm-regular */
    --dga-display-xl: clamp(2.35rem, 5vw, 3.85rem);
    --dga-display-sm: 2rem;
    --dga-display-lg: 2.5rem;
    --dga-text-xl: 1.25rem;
    --dga-text-md: 1rem;
    --dga-text-sm: 0.875rem;
}


/* ========================================= */
/* إعدادات أساسية              */
/* ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    /* Bootstrap محمّل بعد هذا الملف، لذلك نثبت الخط هنا */
    font-family: var(--font-main) !important;
    background-color: var(--dga-surface-muted);
    color: var(--text-dark);
    line-height: var(--a11y-line-height);
    direction: rtl;
    text-align: right;
    letter-spacing: var(--a11y-letter-spacing);
    font-size: calc(16px * var(--a11y-font-scale));
}


button,
input,
select,
textarea {
    font-family: var(--font-main) !important;
}

/* تباعد عمودي بين أقسام الصفحة الرئيسية (مثل section.mt-[24px] في مرجع index.tsx) */
#hail-shell > section + section {
    margin-top: var(--dga-section-gap);
}

/* ============================== */
/* صفحة الخطأ (مطابقة مرجع error/index.tsx) */
/* ============================== */
.hail-error-main {
    min-height: 42vh;
    background: var(--dga-surface-muted);
}

.hail-error-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    padding: 80px var(--dga-page-px) 64px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .hail-error-section {
        max-width: 460px;
    }
}

.hail-error-image {
    flex-shrink: 0;
}

.hail-error-image img {
    display: block;
    width: min(280px, 88vw);
    height: auto;
}

.hail-error-content {
    text-align: center;
    max-width: 100%;
    padding: 0 41px;
    box-sizing: border-box;
}

.hail-error-content h1 {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    margin: 0 0 16px;
}

.hail-error-content p {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    margin: 0 0 32px;
}

.hail-error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
    font-size: var(--dga-text-md);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.hail-error-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.hail-error-btn:focus-visible {
    outline: 3px solid rgba(27, 131, 84, 0.35);
    outline-offset: 2px;
}

/* ============================== */
/* Crossword mini game (Home)     */
/* ============================== */
.hail-game-section {
    padding: var(--dga-page-pt) var(--dga-page-px);
}

/* ============================== */
/* Events + Activities (Home)     */
/* ============================== */
.hail-ea-section {
    padding: var(--dga-section-gap) var(--dga-page-px) var(--dga-page-pt);
}
.hail-ea-wrap {
    max-width: 1180px;
    margin: 0 auto;
}
.hail-ea-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: start;
}
@media (max-width: 980px) {
    .hail-ea-grid {
        grid-template-columns: 1fr;
    }
}
.hail-ea-events {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
}
.hail-ea-events .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hail-ea-events .section-desc {
    color: #6b7280;
    font-weight: 800;
    margin-top: 10px;
    line-height: 1.8;
}
.ea-events-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ea-event-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ea-event-item {
    appearance: none;
    -webkit-appearance: none;
    text-align: right;
    cursor: pointer;
    font-family: var(--font-main);
    border: 1px solid #eef2f7;
}
.ea-event-item:hover {
    transform: translateY(-1px);
    border-color: rgba(27, 131, 84, 0.55);
    background: rgba(27, 131, 84, 0.06);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
}
.ea-event-item:hover .ea-event-title,
.ea-event-item:focus-visible .ea-event-title {
    color: var(--primary-dark);
}
.ea-event-item:hover .ea-event-meta,
.ea-event-item:focus-visible .ea-event-meta {
    color: rgba(20, 87, 58, 0.9);
}
.ea-event-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(27, 131, 84, 0.14), 0 10px 22px rgba(17, 24, 39, 0.08);
    border-color: rgba(27, 131, 84, 0.65);
    background: rgba(27, 131, 84, 0.06);
}
.ea-event-item[aria-disabled="true"],
.ea-event-item--disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.92;
}

/* button styling parity */
.ea-activity-btn {
    border: 0;
    font-family: var(--font-main);
    cursor: pointer;
    opacity: 1;
}

/* ============================== */
/* Events preview modal (Home)    */
/* ============================== */
.ea-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
}
.ea-modal.is-open {
    display: block;
}
.ea-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.ea-modal-panel {
    position: relative;
    max-width: 920px;
    width: calc(100% - 28px);
    margin: 48px auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.ea-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}
.ea-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    min-height: 320px;
}
.ea-modal-media {
    background: #0b1220;
}
.ea-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ea-modal-content {
    /* leave room for the floating close button */
    padding: 64px 18px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0; /* allow inner scrolling */
}
.ea-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
    line-height: 1.7;
}
.ea-modal-meta {
    margin-top: 10px;
    color: #6b7280;
    font-weight: 800;
    font-size: 13px;
}
.ea-modal-text {
    margin-top: 12px;
    color: #374151;
    font-weight: 700;
    font-size: 14px;
    line-height: 2;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding-left: 6px;
    white-space: pre-line;
}
.ea-modal-text:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(27, 131, 84, 0.14);
    border-radius: 12px;
}
@media (max-width: 820px) {
    .ea-modal-panel {
        margin: 18px auto;
    }
    .ea-modal-body {
        grid-template-columns: 1fr;
    }
    .ea-modal-media img {
        height: 220px;
    }
}
.ea-event-title {
    color: #111827;
    font-weight: 900;
    line-height: 1.7;
    font-size: 15px;
}
.ea-event-meta {
    color: #6b7280;
    font-weight: 800;
    font-size: 13px;
}

/* balance card heights on larger screens */
@media (min-width: 981px) {
    .hail-ea-grid {
        align-items: stretch;
    }
    .hail-ea-events,
    .hail-ea-side {
        height: 100%;
    }
}
.hail-ea-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ea-activity-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
}
.ea-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 0;
}
.ea-activity-nav {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.ea-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.06);
}
.ea-nav-btn:hover {
    border-color: rgba(27, 131, 84, 0.35);
}
.ea-nav-btn:disabled {
    opacity: 0.45;
    cursor: default;
    box-shadow: none;
}
.ea-activity-hint {
    margin-top: 6px;
    color: #6b7280;
    font-weight: 800;
    font-size: 12px;
}
.ea-activities-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 12px;
    padding: 12px 14px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.ea-activity-item {
    scroll-snap-align: start;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}
.ea-activity-media img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}
.ea-activity-body {
    padding: 14px 14px 16px;
}
.ea-activity-kicker {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 13px;
}
.ea-activity-title {
    margin: 8px 0 6px;
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}
.ea-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #6b7280;
    font-weight: 800;
    font-size: 13px;
}
.ea-dot {
    opacity: 0.6;
}
.ea-activity-desc {
    margin-top: 10px;
    color: #374151;
    line-height: 1.9;
    font-weight: 700;
}
.ea-activity-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    cursor: not-allowed;
    opacity: 0.85;
}
.ea-activity-btn:hover {
    filter: brightness(1.03);
}

/* game when embedded under activities */
.hail-game-section--embedded {
    padding: 0;
}
.hail-game-section--embedded .hail-game-wrap {
    max-width: 100%;
}
.hail-game-wrap {
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
}
.hail-game-title {
    text-align: center;
    font-weight: 900;
    font-size: 20px;
    margin: 0 0 10px;
    color: #111827;
}
.hail-game-meta {
    margin: 0 0 10px;
    color: #111827;
    font-weight: 700;
}
.hail-crossword-grid {
    display: grid;
    grid-template-columns: repeat(10, 35px);
    gap: 4px;
    justify-content: center;
    margin-top: 16px;
}
.hail-crossword-cell {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-color);
    outline: none;
}
.hail-crossword-cell:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(27, 131, 84, 0.12);
}
.hail-crossword-cell.is-block {
    background: #e5e7eb;
    border-color: #e5e7eb;
}
.hail-crossword-cell.is-correct {
    background: rgba(27, 131, 84, 0.12);
    border-color: rgba(27, 131, 84, 0.35);
}
.hail-crossword-cell.is-hint {
    background: rgba(27, 131, 84, 0.08);
    border-color: rgba(27, 131, 84, 0.25);
    color: #0f5132;
}

.hail-game-status {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 900;
}
.hail-game-status.is-ok {
    color: #0f5132;
}
.hail-game-status.is-bad { color: #b91c1c; }

/* Share result (LinkedIn) */
.hail-game-share {
    margin-top: 14px;
}
.hail-share-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}
.hail-share-preview {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    padding: 10px;
    display: grid;
    place-items: center;
}
.hail-share-preview {
    position: relative;
}
.hail-share-preview::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 12px;
    background: url("img/logo/hail-watermark-transparent.png") center/contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}
.hail-share-preview img {
    position: relative;
    z-index: 1;
}
.hail-share-preview img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    border-radius: 12px;
}
.hail-share-actions {
    display: grid;
    gap: 10px;
}
.hail-share-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    padding: 11px 12px;
    font-weight: 900;
    font-size: 16px;
}
.hail-share-btn--li {
    background: #0A66C2;
    color: #ffffff;
}
.hail-share-btn--li:hover {
    filter: brightness(0.96);
}
.hail-share-btn--ghost {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}
.hail-share-note {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 700;
}

.dynamic-bg,
.beautiful-slide,
.news-img,
.hail-govs-preview-media img,
.partner-logo img,
.hail-map-frame {
    filter: var(--a11y-media-filter);
    transition: filter 220ms ease, transform 220ms ease;
}

/* ========================================= */
/* A11Y panel (Accessibility Drawer) */
/* ========================================= */
.a11y-panel {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: none;
}

.a11y-panel.open {
    display: block;
}

.a11y-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.a11y-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(520px, calc(100% - 40px));
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    padding: 18px 18px 16px;
    overflow: auto;
}

.a11y-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 14px;
}

.a11y-header h3 {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 6px;
}

.a11y-header p {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.a11y-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.a11y-section {
    padding: 12px 0;
}

.a11y-section h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f5132;
    margin-bottom: 10px;
}

.a11y-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.a11y-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
}

.a11y-card[aria-pressed="true"] {
    border-color: #157347;
    box-shadow: 0 16px 30px rgba(21, 115, 71, 0.14);
}

.a11y-card-swatch {
    width: 46px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: inline-block;
    flex: 0 0 auto;
}

.a11y-card-label {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    text-align: right;
    font-size: 15px;
    line-height: 1.2;
    color: inherit;
}

.a11y-card-swatch.light {
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
}

.a11y-card-swatch.dark {
    background: linear-gradient(135deg, #0b1220, #111827);
}

.a11y-slider input[type="range"],
.a11y-field input[type="range"] {
    width: 100%;
    accent-color: #157347;
}

.a11y-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.a11y-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.a11y-field {
    display: grid;
    gap: 8px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
}

.a11y-field span {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
}

.a11y-fun {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.a11y-chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 800;
    cursor: pointer;
}

.a11y-chip[aria-pressed="true"] {
    border-color: #157347;
    background: rgba(21, 115, 71, 0.08);
}

.a11y-footer {
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.a11y-reset {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
}

/* Dark theme (a11y) */
html[data-theme="dark"] body {
    background-color: #0b1220;
    color: #e5e7eb;
}

/* Dark theme: apply across the whole page (not just a11y drawer) */
html[data-theme="dark"] .hail-site-header,
html[data-theme="dark"] .top-bar,
html[data-theme="dark"] .main-header,
html[data-theme="dark"] .services-section,
html[data-theme="dark"] .news-section,
html[data-theme="dark"] .hail-beautiful-carousel,
html[data-theme="dark"] .hail-govs-gallery,
html[data-theme="dark"] .hail-map-section,
html[data-theme="dark"] .stats-section,
html[data-theme="dark"] .partners-section,
html[data-theme="dark"] .app-promo-section,
html[data-theme="dark"] .feedback-bar,
html[data-theme="dark"] .main-footer {
    background-color: #0b1220;
}

html[data-theme="dark"] .app-promo-section {
    border-top-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .app-promo-title {
    color: #e5e7eb;
}

html[data-theme="dark"] .app-promo-desc,
html[data-theme="dark"] .app-promo-dl-label {
    color: rgba(229, 231, 235, 0.82);
}

html[data-theme="dark"] .app-promo-tabs {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-promo-tab {
    color: rgba(229, 231, 235, 0.88);
}

html[data-theme="dark"] .app-promo-tab.is-active {
    background: #059669;
    color: #fff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

html[data-theme="dark"] .app-promo-arrow {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #86efac;
}

html[data-theme="dark"] .top-bar {
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .main-header {
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .partners-header h2,
html[data-theme="dark"] .hail-govs-title,
html[data-theme="dark"] .map-side-title,
html[data-theme="dark"] .footer-col h4,
html[data-theme="dark"] .mishaal-title strong {
    color: #e5e7eb;
}

html[data-theme="dark"] .section-desc,
html[data-theme="dark"] .weather-info,
html[data-theme="dark"] .reg-text,
html[data-theme="dark"] .news-body p,
html[data-theme="dark"] .stat-label1,
html[data-theme="dark"] .hail-govs-preview-head p,
html[data-theme="dark"] .feedback-question,
html[data-theme="dark"] .feedback-result,
html[data-theme="dark"] .last-modified,
html[data-theme="dark"] .legal-text,
html[data-theme="dark"] .footer-col a,
html[data-theme="dark"] .mishaal-subtitle {
    color: rgba(229, 231, 235, 0.82);
}

html[data-theme="dark"] .stat-number1 {
    color: #86efac;
}
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .stat-card1,
html[data-theme="dark"] .hail-govs-list,
html[data-theme="dark"] .hail-govs-preview,
html[data-theme="dark"] .map-filters,
html[data-theme="dark"] .map-panel,
html[data-theme="dark"] .partner-logo {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .btn-outline {
    border-color: rgba(255, 255, 255, 0.14);
    color: #e5e7eb;
}

html[data-theme="dark"] .service-link {
    color: #86efac;
}

html[data-theme="dark"] .service-start {
    background: #157347;
}

html[data-theme="dark"] .read-more {
    background: #157347;
}

html[data-theme="dark"] .mishaal-panel {
    border-color: rgba(255, 255, 255, 0.10);
    background: #0b1220;
}

html[data-theme="dark"] .mishaal-messages {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .mishaal-bubble {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
    color: #e5e7eb;
}

html[data-theme="dark"] .mishaal-bubble.user {
    background: #157347;
    border-color: #157347;
    color: #ffffff;
}

html[data-theme="dark"] .mishaal-input-wrap {
    background: #0b1220;
    border-top-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .mishaal-input-wrap input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
    color: #e5e7eb;
}

html[data-theme="dark"] .mishaal-input-wrap input::placeholder {
    color: rgba(229, 231, 235, 0.6);
}

html[data-theme="dark"] .hail-gov-btn {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: #e5e7eb;
}

html[data-theme="dark"] .hail-gov-btn.active {
    border-color: #22c55e;
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.12);
}

html[data-theme="dark"] .hail-govs-stat {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.10);
    color: #e5e7eb;
}

html[data-theme="dark"] .stats-arrow {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
}

html[data-theme="dark"] .stats-arrow.is-active,
html[data-theme="dark"] .stats-arrow:active {
    background: #157347;
    border-color: #157347;
    color: #ffffff;
}

html[data-theme="dark"] .mega-menu {
    background-color: #0b1220;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    border-top-color: #157347;
}

html[data-theme="dark"] .menu-link {
    color: rgba(229, 231, 235, 0.86);
}

html[data-theme="dark"] .menu-column:not(:last-child) {
    border-left-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .a11y-drawer {
    background: #0b1220;
    border-left-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .a11y-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .a11y-header h3,
html[data-theme="dark"] .a11y-field span,
html[data-theme="dark"] .a11y-card,
html[data-theme="dark"] .a11y-chip {
    color: #e5e7eb;
}

html[data-theme="dark"] .a11y-header p,
html[data-theme="dark"] .a11y-slider-labels {
    color: #94a3b8;
}

html[data-theme="dark"] .a11y-card,
html[data-theme="dark"] .a11y-field,
html[data-theme="dark"] .a11y-chip,
html[data-theme="dark"] .a11y-close,
html[data-theme="dark"] .a11y-reset {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .a11y-field {
    background: rgba(255, 255, 255, 0.03);
}

/* Vibes */
html[data-vibe="calm"] .a11y-drawer {
    background: linear-gradient(180deg, rgba(21, 115, 71, 0.06), rgba(255, 255, 255, 0.0) 30%), #ffffff;
}
html[data-theme="dark"][data-vibe="calm"] .a11y-drawer {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.10), rgba(11, 18, 32, 0.0) 35%), #0b1220;
}

html[data-vibe="calm"] {
    --a11y-media-filter: saturate(0.82) contrast(1.06);
}
html[data-vibe="contrast"] body {
    background-color: #ffffff;
    color: #0b1220;
}
html[data-theme="dark"][data-vibe="contrast"] body {
    background-color: #000000;
    color: #ffffff;
}
html[data-vibe="smart"] .a11y-card[aria-pressed="true"],
html[data-vibe="smart"] .a11y-chip[aria-pressed="true"] {
    box-shadow: 0 16px 34px rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.55);
}

html[data-vibe="contrast"] .section-desc {
    color: inherit;
}

html[data-vibe="contrast"] .service-card,
html[data-vibe="contrast"] .news-card,
html[data-vibe="contrast"] .stat-card1,
html[data-vibe="contrast"] .hail-govs-list,
html[data-vibe="contrast"] .hail-govs-preview,
html[data-vibe="contrast"] .map-filters,
html[data-vibe="contrast"] .map-panel {
    border-color: rgba(2, 6, 23, 0.32);
}

html[data-theme="dark"][data-vibe="contrast"] .service-card,
html[data-theme="dark"][data-vibe="contrast"] .news-card,
html[data-theme="dark"][data-vibe="contrast"] .stat-card1,
html[data-theme="dark"][data-vibe="contrast"] .hail-govs-list,
html[data-theme="dark"][data-vibe="contrast"] .hail-govs-preview,
html[data-theme="dark"][data-vibe="contrast"] .map-filters,
html[data-theme="dark"][data-vibe="contrast"] .map-panel {
    border-color: rgba(255, 255, 255, 0.20);
}

html[data-vibe="contrast"] a,
html[data-vibe="contrast"] .service-link,
html[data-vibe="contrast"] .read-more {
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-vibe="contrast"] {
    --a11y-media-filter: grayscale(1) contrast(1.35) brightness(1.02);
}

html[data-vibe="contrast"] .mishaal-panel,
html[data-vibe="contrast"] .a11y-drawer {
    box-shadow: none !important;
}

html[data-vibe="contrast"] .btn-outline,
html[data-vibe="contrast"] .service-start,
html[data-vibe="contrast"] .banner-btn-white {
    border-width: 2px;
}

html[data-vibe="smart"] .a11y-drawer {
    background: radial-gradient(900px 420px at 90% 0%, rgba(59, 130, 246, 0.10), rgba(255, 255, 255, 0) 55%), #ffffff;
}
html[data-theme="dark"][data-vibe="smart"] .a11y-drawer {
    background: radial-gradient(900px 420px at 90% 0%, rgba(59, 130, 246, 0.18), rgba(11, 18, 32, 0) 55%), #0b1220;
}

html[data-vibe="smart"] {
    --a11y-media-filter: contrast(1.12) saturate(1.12);
}

html[data-vibe="smart"] .section-header h2 {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

html[data-theme="dark"][data-vibe="smart"] .section-header h2 {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

h1, h2, h3, h4, h5, h6 {
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-main);
}

.main-container {
    max-width: 1440px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0px 0px 50px 10px rgba(0, 0, 0, 0.05);
    overflow: visible;
    position: relative;
}

/* ========================================= */
/* تنسيقات الشريط العلوي (Top Bar)           */
/* ========================================= */
/* علوي + هيدر: ثابت أعلى الشاشة (fixed) — يُكمّل بـ JS بتعويض الارتفاع (--hail-header-h) */
body[data-hail-shell="1"] #hail-shell {
    padding-top: var(--hail-header-h, 168px);
}

.hail-site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1400 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.top-bar {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    /* طي متحرك عند النزول بالسكرول */
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.45s ease, padding 0.45s ease, opacity 0.45s ease, border-width 0.45s ease;
}

/* الشريط العلوي مخفي عند النزول بالسكرول (تُضاف الكلاس عبر JS) */
.hail-site-header.topbar-collapsed .top-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-bottom-width: 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    flex-wrap: nowrap;
    padding: 0 32px;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--text-gray);
}

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

.top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ========================================= */
/* تنسيقات الهيدر الرئيسي (Main Header)      */
/* ========================================= */
.main-header {
    background-color: var(--white);
    padding: 0 32px;
    height: 80px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.logo-area .logo-home-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-area .logo-home-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 8px;
}

.logo-area img {
    max-height: 60px;
    width: auto;
}

.main-nav {
    height: 80px;
    display: flex;
    align-items: center;
}

.menu-items {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: static;
    height: 103%;
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav .nav-link,
.menu-items .nav-link {
    position: relative;
    font-weight: 400;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dark);
    white-space: nowrap;
    padding: 8px 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: -22px;
    right: 7px;
    left: 9px;
    height: 9px;
    background-color: #10b981 !important;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

/* التحويم: خلفية خضراء باهتة (مثل hmm.gov.sa) */
.nav-item:hover {
    background-color: rgba(20, 87, 58, 0.06);
}
.nav-item:hover .nav-link {
    color: #111927;
}

/* الضغط: خلفية خضراء أغمق قليلاً (تأكيد بصري للضغط) */
.nav-item:active {
    background-color: rgba(20, 87, 58, 0.12);
}

/* الخط السفلي على كامل عرض الزر — أسفل الزر بـ 22px */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -22px;
    right: 0;
    left: 0;
    height: 5px;
    background-color: #0f5132 !important;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.nav-item:hover .nav-link::after,
.nav-item.active .nav-link::after,
.nav-item.open .nav-link::after {
    transform: scaleX(1);
}

/* الحالة النشطة / القائمة المفتوحة: خلفية خضراء بنصف قطر علوي فقط */
.nav-item.active,
.nav-item.open {
    background-color: var(--primary-color);
    border-radius: 0px;
    border-top-right-radius: 9px;
    border-top-left-radius: 9px;
}
.nav-item.active .nav-link,
.nav-item.open .nav-link {
    color: #ffffff;
}

.arrow-down {
    color: #888;
    transition: transform 0.28s ease, color 0.2s ease;
    flex-shrink: 0;
}

/* تدوير السهم عند فتح القائمة بالضغط فقط (ليس hover) */
.nav-item.open .arrow-down {
    transform: rotate(180deg);
    color: #111827;
}

/* القوائم المنسدلة (Mega Menu) — عرض كامل بأنيميشن سلس (مثل موقع القصيم) */
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
    border-top: 3px solid var(--primary-color);
    padding: 32px 48px 36px;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 48px;
    text-align: right;
    border-radius: 0 0 12px 12px;
    /* أنيميشن الفتح/الإغلاق */
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
    pointer-events: none;
}

.mega-menu.three-columns,
.mega-menu.two-columns {
    flex-direction: row;
    justify-content: flex-start;
}

/* إظهار القائمة عند الفتح بالضغط فقط (مثل hmm.gov.sa) — مع أنيميشن */
.nav-item.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .28s ease, transform .28s ease, visibility 0s;
    pointer-events: auto;
}

/* صفحات المحتوى الرسمية (نفس الخط/الأسلوب) */
.hail-page-wrap {
    padding-top: 14px;
}

/* ===== head-title: شريط عنوان الصفحات الداخلية =====
   البنية من موقع القصيم + اللون/الخلفية من الـ page-header القديم */
.head-title {
    background-color: #00726F;
    background-image: url('assets/images/page-header.png');
    background-repeat: repeat;
    background-position: 50% 50%;
    background-size: contain;
    padding: 26px 0;
    color: #ffffff;
}
.head-title .ht-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.head-title .ht-page-title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 800;
    color: #f8f9fa;
    line-height: 1.3;
}
.head-title .ht-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 500;
}
.head-title .ht-breadcrumb .bc-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}
.head-title .ht-breadcrumb .bc-link:hover {
    color: #ffffff;
    text-decoration: underline;
}
.head-title .ht-breadcrumb .bc-sep {
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
}
.head-title .ht-breadcrumb .bc-current {
    color: #ffffff;
    font-weight: 700;
}
@media (max-width: 600px) {
    .head-title { padding: 20px 0; }
    .head-title .ht-page-title { font-size: 24px; }
}

/* ركن الجوائز (شبكة بطاقات) */
.awards-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 12px 18px;
    background: linear-gradient(90deg, #14573a, #1b8354);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 22px;
}

.awards-breadcrumb a {
    color: #ecfdf5;
    text-decoration: none;
}

.awards-breadcrumb a:hover {
    text-decoration: underline;
}

.awards-breadcrumb__sep {
    opacity: 0.85;
    font-weight: 400;
}

.awards-breadcrumb__current {
    font-weight: 800;
    opacity: 0.95;
}

.awards-intro {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.95;
    font-size: 17px;
    font-weight: 600;
    max-width: 920px;
}

.awards-page {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 36px);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    margin-top: 8px;
    align-items: stretch;
}

.award-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100%;
    background: #fff;
    border: 1px solid #c5d0dc;
    border-radius: 8px;
    padding: 22px 24px 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.award-card__body {
    min-width: 0;
    flex: 1 1 auto;
}

.award-card__title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.45;
    padding-bottom: 10px;
    border-bottom: 2px solid #14573a;
}

.award-card__meta {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    display: grid;
    gap: 8px;
}

.award-card__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 14px;
    font-size: 14px;
    line-height: 1.55;
    padding: 8px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.award-card__dt {
    margin: 0;
    font-weight: 800;
    color: #475569;
    white-space: nowrap;
}

.award-card__dd {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.award-card__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: #334155;
    font-weight: 600;
}

.award-card__toggle {
    margin-top: 14px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 900;
    color: #0f172a;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.award-card__toggle:hover {
    background: #f3f4f6;
    border-color: #cbd5e1;
}

.award-card__more {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.award-card.open .award-card__more {
    display: block;
}

.award-card__more-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.95;
    color: #334155;
    font-weight: 600;
}

@media (max-width: 720px) {
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .award-card {
        padding: 20px 18px;
    }

    .award-card__title {
        font-size: 17px;
    }
}

html[data-theme="dark"] .awards-intro {
    color: rgba(229, 231, 235, 0.82);
}

html[data-theme="dark"] .award-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

html[data-theme="dark"] .award-card__title {
    color: #e5e7eb;
    border-bottom-color: #34d399;
}

html[data-theme="dark"] .award-card__dt {
    color: rgba(203, 213, 225, 0.85);
}

html[data-theme="dark"] .award-card__dd {
    color: #f1f5f9;
}

html[data-theme="dark"] .award-card__desc {
    color: rgba(226, 232, 240, 0.88);
}

html[data-theme="dark"] .award-card__toggle {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
}

html[data-theme="dark"] .award-card__toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .award-card__more {
    border-top-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .award-card__more-text {
    color: rgba(226, 232, 240, 0.88);
}

html[data-theme="dark"] .award-card__row {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.hail-card {
    background: #ffffff;
    border: 1px solid #e7eef4;
    border-radius: 14px;
    padding: 18px;
    margin-top: 10px;
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.06);
}

/* FAQ (simple) */
.hail-faq {
    display: grid;
    gap: 10px;
}

.hail-faq-item {
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.hail-faq-q {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 900;
    color: #0f5132;
    list-style: none;
}

.hail-faq-q::-webkit-details-marker {
    display: none;
}

.hail-faq-q::after {
    content: "▼";
    font-size: 11px;
    color: #64748b;
    margin-right: 8px;
}

.hail-faq-item[open] .hail-faq-q::after {
    content: "▲";
}

.hail-faq-a {
    padding: 0 14px 14px;
    color: #334155;
    line-height: 1.9;
    font-weight: 600;
}

/* Media Library cards (like Riyadh Amanah gallery) */
.hail-media-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hail-media-card {
    display: block;
    text-decoration: none;
    border: 1px solid #e7eef4;
    border-radius: 16px;
    background: #ffffff;
    padding: 18px 16px;
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    color: inherit;
}

.hail-media-card:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 131, 84, 0.35);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.1);
}

.hail-media-card__title {
    font-size: 18px;
    font-weight: 900;
    color: #0f5132;
}

.hail-media-card__sub {
    margin-top: 8px;
    font-size: 13px;
    color: #475569;
    font-weight: 700;
    line-height: 1.7;
}

.hail-media-card--thumb {
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 160px;
}

.hail-media-card__img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
    transform: scale(1.02);
    transition: transform 0.25s ease;
}

.hail-media-card--thumb:hover .hail-media-card__img {
    transform: scale(1.06);
}

.hail-media-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.55) 62%, rgba(2, 6, 23, 0.72) 100%);
}

.hail-media-card--thumb .hail-media-card__title {
    color: #ffffff;
    text-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    font-size: 22px;
}

.hail-media-card--thumb .hail-media-card__sub {
    color: rgba(226, 232, 240, 0.95);
    font-size: 14px;
}

.hail-media-card--placeholder {
    background: radial-gradient(1200px 300px at 10% 0%, rgba(27, 131, 84, 0.22), transparent 60%),
        radial-gradient(700px 240px at 100% 30%, rgba(2, 132, 199, 0.14), transparent 55%),
        linear-gradient(180deg, #ffffff, #f8fafc);
}

.hail-media-card--placeholder .hail-media-card__overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.04) 0%, rgba(2, 6, 23, 0.12) 100%);
    justify-content: center;
}

.hail-media-card--placeholder .hail-media-card__title {
    color: #0f5132;
    text-shadow: none;
}

.hail-media-card--placeholder .hail-media-card__sub {
    color: #475569;
}

/* Gallery pages */
.hail-gallery-actions {
    margin-top: 10px;
}

.hail-gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 900;
    color: #0f5132;
}

.hail-gallery-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hail-gallery-item {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e7eef4;
    background: #fff;
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.06);
    text-decoration: none;
    color: inherit;
}

.hail-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.25s ease;
}

.hail-gallery-item:hover img {
    transform: scale(1.06);
}

.hail-gallery-caption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.55);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    backdrop-filter: blur(2px);
}

@media (max-width: 1024px) {
    .hail-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .hail-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Library */
.hail-video-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hail-video-card {
    border: 1px solid #e7eef4;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.06);
    overflow: hidden;
}

.hail-video-frame {
    position: relative;
    background: #0b1220;
}

.hail-video-frame video {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.hail-video-title {
    margin: 0;
    padding: 12px 14px 14px;
    font-size: 16px;
    font-weight: 900;
    color: #0f5132;
}

@media (max-width: 1024px) {
    .hail-video-grid {
        grid-template-columns: 1fr;
    }
    .hail-video-frame video {
        height: 280px;
    }
}

@media (max-width: 1024px) {
    .hail-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .hail-media-grid {
        grid-template-columns: 1fr;
    }
}

.hail-section {
    padding: 18px 0;
}

.hail-section + .hail-section {
    border-top: 1px solid #eef2f7;
}

.hail-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 900;
    color: #166a45;
}

.hail-section-title-line {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #1b8354;
    opacity: 0.95;
}

.hail-paragraph {
    margin: 0;
    color: #334155;
    line-height: 2;
    font-size: 16px;
}

.hail-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    line-height: 2;
}

.hail-bullets li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.hail-bullets li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #1b8354;
    margin-top: 10px;
    flex: 0 0 auto;
}

/* ========================================= */
/* قسم "كلمة سعادة أمين منطقة حائل"          */
/* (مستوحى من تصميم hmm.gov.sa)              */
/* ========================================= */
.amin-quote-section {
    padding: 64px 0;
}

.hail-quote {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
    background: #ffffff;
    border: 1px solid #e7eef4;
    border-radius: 14px;
    padding: 32px;
    margin-top: 10px;
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.06);
}

.hail-quote__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.hail-quote__body::before {
    content: "\201D";
    position: absolute;
    top: -22px;
    inset-inline-end: -10px;
    font-size: 110px;
    line-height: 1;
    color: #1b8354;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    opacity: 0.85;
}

.hail-quote__body-title {
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: #14573a;
    margin: 0;
    line-height: 1.4;
}

.hail-quote__body-desc {
    font-size: 1rem;
    line-height: 1.9;
    color: #1f2a37;
    margin: 0;
    white-space: pre-line;
    text-align: justify;
}

.hail-quote__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 8px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f6fffb 0%, #ffffff 100%);
}

.hail-quote__author-img {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.hail-quote__author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hail-quote__author-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

.hail-quote__author-role {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    font-weight: 600;
}

@media (max-width: 900px) {
    .hail-quote {
        grid-template-columns: 1fr;
        padding: 22px;
    }
    .hail-quote__body::before {
        font-size: 80px;
        top: -12px;
        inset-inline-end: -4px;
    }
}

/* ========================================= */
/* أمراء منطقة حائل: خط زمني رسمي */
/* ========================================= */
.hail-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    position: relative;
}

.hail-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    inset-inline-start: 12px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(27, 131, 84, 0.15), rgba(27, 131, 84, 0.45), rgba(27, 131, 84, 0.15));
}

.hail-timeline-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 14px;
    align-items: start;
    position: relative;
}

.hail-timeline-marker {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #1b8354;
    box-shadow: 0 0 0 6px rgba(27, 131, 84, 0.12);
    margin-top: 10px;
    justify-self: center;
}

.hail-timeline-card {
    border: 1px solid #e7eef4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    padding: 14px 16px;
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.06);
}

.hail-timeline-card__head {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.hail-timeline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(27, 131, 84, 0.10);
    border: 1px solid rgba(27, 131, 84, 0.20);
    color: #0f5132;
    font-weight: 800;
    font-size: 13px;
}

.hail-timeline-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.5;
}

.hail-timeline-card__desc {
    margin: 0;
    color: #475569;
    line-height: 1.9;
    font-size: 14px;
}

html[data-theme="dark"] .hail-timeline::before {
    background: linear-gradient(to bottom, rgba(52, 211, 153, 0.18), rgba(52, 211, 153, 0.55), rgba(52, 211, 153, 0.18));
}

html[data-theme="dark"] .hail-timeline-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

html[data-theme="dark"] .hail-timeline-card__title {
    color: #e5e7eb;
}

html[data-theme="dark"] .hail-timeline-card__desc {
    color: rgba(226, 232, 240, 0.88);
}

.hail-contact-block {
    margin: 0.65rem 0 0;
    display: grid;
    gap: 10px;
}

.hail-contact-block p {
    margin: 0;
    color: #334155;
    line-height: 1.95;
    font-size: 16px;
}

.hail-legal-ordered {
    margin: 0.65rem 0 0;
    padding: 0 1.25rem 0 0;
    color: #334155;
    line-height: 2;
    font-size: 16px;
}

.hail-legal-ordered li {
    margin-bottom: 0.35rem;
}

.hail-ltr-inline {
    unicode-bidi: embed;
}

/* إشعار الخصوصية/الكوكيز */
.hail-privacy-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 9999;
    background: rgba(17, 24, 39, 0.78);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
    transform: translateY(0);
    opacity: 1;
    transition: 200ms ease;
}

.hail-privacy-banner.is-hidden {
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
}

.hail-privacy-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 768px) {
    .hail-privacy-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

/* زر "موافق" يسار الشريط مثل المثال */
.hail-privacy-actions {
    margin-right: auto;
}

.hail-privacy-content { }

.hail-privacy-title {
    display: block;
    font-weight: 900;
    font-size: 15px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.96);
}

.hail-privacy-text {
    margin: 0;
    line-height: 1.9;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.86);
}

.hail-privacy-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.hail-privacy-accept {
    border: 0;
    border-radius: 999px;
    background: #1b8354;
    color: #ffffff;
    font-weight: 800;
    padding: 12px 22px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(27, 131, 84, 0.24);
    min-width: 110px;
}

.hail-privacy-accept:hover {
    background: #156b44;
}

.hail-privacy-link {
    color: #bfe8d4;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hail-privacy-link:hover {
    color: #e6fff3;
}

@media (max-width: 768px) {
    .hail-privacy-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .hail-privacy-actions {
        justify-content: flex-start;
    }
}

.menu-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.mega-menu.three-columns .menu-column:not(:last-child),
.mega-menu.two-columns .menu-column:not(:last-child) {
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.column-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(27, 131, 84, 0.15);
}

.menu-link {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s, transform 0.2s;
}

.menu-link svg.menu-link-icon {
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.2s, stroke 0.2s;
}

.menu-link:hover svg.menu-link-icon {
    opacity: 1;
}

.menu-link:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Dropdown "تسجيل الدخول" داخل يسار الهيدر (بنفس نمط mega-menu) */
.header-left-group .nav-item.has-dropdown {
    position: relative;
}

.header-left-group .nav-item.has-dropdown > a.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-left-group .nav-item.has-dropdown > a.nav-link .arrow-down {
    font-size: 10px;
}

.header-login-menu {
    right: 0;
    left: auto;
    width: 320px;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    font-size: 14px;
}

.btn-secondary:hover {
    background-color: var(--light-gray);
}

a.btn-secondary {
    text-decoration: none;
    color: inherit;
}

/* --- تنسيق شريط البحث  --- */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 90;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 1px solid #eee;
}

.search-overlay.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    opacity: 1;
    transform: translateY(0);
    /* فوق القوائم المنسدلة (mega-menu z-index: 1000) حتى يبقى البار قابلاً للنقر */
    z-index: 1200;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.search-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.search-overlay-results {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    max-height: min(52vh, 420px);
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fafafa;
    text-align: right;
}

.search-overlay-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-overlay-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.search-overlay-list a:hover {
    background: rgba(20, 87, 58, 0.08);
}

.search-overlay-hint,
.search-overlay-empty {
    margin: 0 0 8px;
    font-size: 14px;
    color: #64748b;
}

.search-overlay-empty {
    color: #b45309;
}

.search-overlay-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.hail-sitemap-search-status {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 15px;
}

.hail-sitemap-search-status.is-empty {
    background: #fef2f2;
    color: #991b1b;
}

/* ========================================= */
/* تنسيقات القسم الرئيسي (Banner Section)      */
/* ========================================= */
/* مؤشرات شرائح البانر (نقاط) — وسط أسفل الهيرو مع خلفية خفيفة للوضوح */
.banner-dots {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: max(22px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 10px 16px;
    list-style: none;
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.banner-dynamic-section {
    position: relative;
    height: var(--dga-hero-h);
    max-height: var(--dga-hero-h);
    min-height: 360px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    color: #ffffff;
    touch-action: pan-y pinch-zoom;
    isolation: isolate;
}

.dynamic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.15s ease-in-out;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@supports (image-rendering: high-quality) {
    .banner-dynamic-section .dynamic-bg {
        image-rendering: high-quality;
    }
}

.dynamic-bg:not(.is-active) {
    animation: none;
}

.dynamic-bg.is-active {
    opacity: 1;
    animation: bannerKenBurns 28s ease-in-out infinite alternate;
}

@keyframes bannerKenBurns {
    0% {
        transform: scale(1) translate(0%, 0%);
    }

    100% {
        transform: scale(1.035) translate(-0.6%, 0.35%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dynamic-bg.is-active {
        animation: none;
    }
}

/* فيديو البنر (شريحة الفيديو الأولى) */
.banner-dynamic-section .banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    background: #000;
}

.dynamic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* تدرج يبدأ أقوى من جهة اليمين (قرب النص) ويخفّ نحو اليسار — أخف من الطبقة الموحّدة السابقة */
    background:
        radial-gradient(ellipse 72% 58% at 90% 32%, rgba(255, 255, 255, 0.09), transparent 55%),
        linear-gradient(to left, rgba(9, 42, 30, 0.52) 0%, rgba(9, 42, 30, 0.22) 48%, rgba(9, 42, 30, 0.08) 100%);
    z-index: 2;
    pointer-events: none;
}

.banner-content-wrapper {
    position: relative;
    z-index: 3;
    max-width: min(720px, 100%);
    text-align: right;
    padding: var(--dga-hero-pt) var(--dga-hero-px) 40px;
    box-sizing: border-box;
}

/* زر الـ CTA تحت وصف البانر */
.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 12px 26px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.banner-cta:hover,
.banner-cta:focus {
    background: #14573a;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    color: #fff;
}

#banner-title {
    font-family: var(--font-main);
    font-size: var(--dga-display-xl);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    color: #fff;
}

#banner-desc {
    font-size: var(--dga-text-xl);
    font-weight: 400;
    line-height: 1.6;
    margin-top: var(--dga-section-gap);
    margin-bottom: 20px;
    color: #fff;
    opacity: 0.98;
}

/* سطر فرعي أوضح تحت عنوان البانر */
.banner-dynamic-section #banner-desc {
    font-weight: 500;
    font-size: clamp(1.15rem, 2.55vw, 1.45rem);
    opacity: 0.94;
}

.banner-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition:
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.72);
    transform: scale(1.08);
}

.banner-dot.is-active {
    background: #157347;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
    transform: scale(1.12);
}

.banner-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.animate-text {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;

}

/* نص البانر: دخول أنعم من جهة اليمين (RTL) أو من اليسار (LTR) */
.banner-dynamic-section .animate-text {
    animation: bannerInFromRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html[dir="ltr"] .banner-dynamic-section .animate-text {
    animation-name: bannerInFromLeft;
}

@keyframes bannerInFromRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bannerInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #ffffff;
    color: #14573a;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.banner-btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* ========================================= */
/* حاوية مركزية لأقسام الصفحة الرئيسية        */
/* (مثل hmm.gov.sa - عرض 1280px متمركز)        */
/* ========================================= */
.hail-page-inner {
    width: min(1280px, calc(100% - 2 * var(--dga-page-px)));
    margin-inline: auto;
    box-sizing: border-box;
}

/* ========================================= */
/* تنسيقات قسم الإحصائيات بالصفحة الرئيسية (Stats Section)    */
/* ========================================= */
.stats-section {
    padding: var(--dga-page-pt) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    direction: rtl;
    text-align: right;
}

.section-header h2 {
    font-size: var(--dga-display-sm);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.btn-outline {
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--text-dark);
    font-size: var(--dga-text-sm);
    font-weight: 400;
}

.btn-outline:hover {
    background-color: #104631;
    color: #fff;
}

.section-desc {
    color: var(--text-dark);
    font-size: var(--dga-text-md);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 720px;
}

.cards-grid1 {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 2px 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    direction: rtl;
}

.cards-grid1::-webkit-scrollbar {
    display: none;
}

.stats-carousel {
    position: relative;
}

.stats-carousel-arrows {
    position: absolute;
    left: 0;
    top: -54px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.stats-arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0b1220;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 150ms ease, opacity 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.stats-arrow span {
    font-size: 26px;
    line-height: 1;
}

.stats-arrow:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.stats-arrow.is-active,
.stats-arrow:active {
    background: #157347;
    border-color: #157347;
    color: #fff;
}

.stats-arrow:hover:not(:disabled) {
    transform: translateY(-1px);
}

.stat-card1 {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
    width: 224px;
    flex: 0 0 224px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.icon-circle1 img {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #067647;

}

.stat-number1 {
    font-size: var(--dga-display-lg);
    font-weight: 400;
    line-height: 1.1;
    padding: 0;
    color: #14573a;
}

.stat-label1 {
    font-size: var(--dga-text-md);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-gray);
    margin-top: 8px;
    text-align: center;
}

/* ========================================= */
/* تنسيقات قسم الأمين بالصفحة الرئيسية       */
/* ========================================= */
.amin-section {
    padding: var(--dga-page-pt) var(--dga-page-px);
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.amin-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.amin-image-wrapper {
    flex: 0 0 326px;
}

.amin-img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.amin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.amin-content h2 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.amin-name {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.4;
}

.text-block p {
    margin-bottom: 16px;
    text-align: justify;
    color: #333;
    line-height: 1.8;
}

.amin-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary-dark {
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--text-dark);
    font-size: 14px;
    background-color: #fcfcfc;

}

.btn-primary-dark:hover {
    background-color: #104631;
    color: #fff;
}

/* ========================================= */
/* تنسيقات قسم الأخبار بالصفحة الرئيسية        */
/* ========================================= */
.services-section {
    padding: var(--dga-page-pt) var(--dga-page-px);
    background-color: var(--dga-surface-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.service-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 190px;
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f7f5;
    border: 1px solid #e6eeea;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
}

.service-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.service-link {
    color: #0f5132;
    font-weight: 600;
    font-size: 14px;
}

.service-start {
    background: #14573a;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
}

.service-start:hover {
    background: #104631;
}

.news-section {
    padding: var(--dga-page-pt) 0;
}

.hail-beautiful-carousel,
.hail-map-section {
    padding: var(--dga-page-pt) 0;
    background-color: #ffffff;
}

.beautiful-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background-color: #f8faf9;
}

/* صف البطاقات المتمدة عند التحويم (مثل أهم مشاريع الرياض) */
.beautiful-track {
    display: flex;
    gap: 10px;
    height: 380px;
    padding: 12px;
}

.beautiful-slide {
    flex: 1;
    min-width: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: flex-grow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* تدرج داكن للأسفل لقراءة أفضل */
}
.beautiful-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15) 55%, transparent 75%);
    z-index: 0;
    pointer-events: none;
}
.beautiful-slide > * {
    position: relative;
    z-index: 1;
}

/* عند التحويم أو النشط: الشريحة تتمدد وتكشف الوصف */
.beautiful-slide:hover,
.beautiful-slide.active {
    flex-grow: 5;
}

/* عنوان الشريحة */
.beautiful-slide h3 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
}

/* الوصف: يظهر عند التمدد */
.beautiful-slide p,
.beautiful-slide .beautiful-slide-copy p {
    max-width: 480px;
    font-size: 15px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    margin: 0;
}
.beautiful-slide:hover p,
.beautiful-slide.active p,
.beautiful-slide:hover .beautiful-slide-copy p,
.beautiful-slide.active .beautiful-slide-copy p {
    opacity: 1;
    transform: translateY(0);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #14573a;
    font-size: 28px;
    cursor: pointer;
}

.carousel-control.next {
    right: 16px;
}

.carousel-control.prev {
    left: 16px;
}

.beautiful-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.beautiful-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
}

.beautiful-dot.active {
    width: 28px;
    border-radius: 999px;
    background-color: #1b8354;
}

.hail-map-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.map-panel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    min-height: 380px;
    background-color: #f3f4f6;
}

.hail-map-image {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    filter: saturate(0.85);
}

.map-pin {
    position: absolute;
    font-size: 22px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.pin-projects {
    color: #14573a;
    top: 35%;
    right: 58%;
}

.pin-parks {
    color: #16a34a;
    top: 52%;
    right: 36%;
}

.pin-walkways {
    color: #0ea5e9;
    top: 62%;
    right: 68%;
}

.map-filters {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    background: #f9fafb;
}

.map-filters h3 {
    color: #14573a;
    margin-bottom: 14px;
}

.map-filter-btn {
    width: 100%;
    text-align: right;
    margin-bottom: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
}

.map-filter-btn.active {
    background: #14573a;
    color: #fff;
    border-color: #14573a;
}

.map-legend {
    margin-top: 20px;
    display: grid;
    gap: 10px;
    color: #374151;
    font-size: 14px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
}

.legend-dot.projects {
    background-color: #14573a;
}

.legend-dot.parks {
    background-color: #16a34a;
}

.legend-dot.walkways {
    background-color: #0ea5e9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.news-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.news-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.news-body h3 {
    font-size: 18px;
    line-height: 1.4;
}

.news-body p {
    font-size: 14px;
    color: var(--text-gray);
    flex: 1;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: #067647;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    align-self: flex-start;
    margin-top: 16px;
    font-size: 14px;
}

.read-more:hover {
    background-color: #104631;
}

/* ========================================= */
/* تنسيقات قسم الشركاء بالصفحة الرئيسية    */
/* ========================================= */
.partners-section {
    padding: var(--dga-page-pt) 0;
    background-color: var(--dga-surface-muted);
    position: relative;
}

/* ========================================= */
/* بانر تطبيقات (سلايدر تلقائي) تحت الشركاء */
/* ========================================= */
.app-promo-section {
    padding: var(--dga-page-pt) 0 64px;
    background: var(--dga-surface-muted);
    border-top: 1px solid #e5e7eb;
    font-family: var(--font-main);
}

.app-promo-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.app-promo-carousel {
    position: relative;
}

.app-promo-viewport {
    position: relative;
    z-index: 1;
    min-height: 420px;
    touch-action: pan-y pinch-zoom;
}

.app-promo-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

.app-promo-slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.app-promo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: center;
    padding: 8px 0 28px;
}

.app-promo-copy {
    text-align: right;
}

.app-promo-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
}

.app-promo-brand-logo-img {
    display: block;
    max-width: min(100%, 300px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.app-promo-brand-logo-img--balady {
    max-width: min(100%, 220px);
}

.app-promo-title {
    margin: 0 0 12px;
    font-size: var(--dga-display-sm);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.app-promo-desc {
    margin: 0 0 20px;
    font-size: var(--dga-text-md);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-gray);
    max-width: 520px;
}

.app-promo-dl-label {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: #334155;
}

.app-promo-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.app-promo-store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #111827;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-promo-store-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.app-promo-store-link--apple {
    background: #000;
    border-color: #000;
}

.app-promo-visual {
    display: flex;
    justify-content: center;
}

.app-promo-phone {
    width: 100%;
    max-width: 300px;
}

.app-promo-phone-frame {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 9 / 19;
    border-radius: 32px;
    padding: 10px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.app-promo-phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 22px;
    background: #0f172a;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.app-promo-phone-screen {
    position: relative;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #e2e8f0;
}

.app-promo-phone-screen--furas {
    background: #0f7669;
    padding: 0;
}

.app-promo-fake-top {
    padding: 36px 14px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #ecfdf5;
}

.app-promo-fake-card {
    margin: 0 12px 14px;
    padding: 14px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.app-promo-fake-card-title {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
}

.app-promo-fake-sub {
    margin: 0 14px 8px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.app-promo-fake-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 12px 14px;
}

.app-promo-fake-chip {
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    padding: 10px 6px;
    border-radius: 12px;
    background: #fff;
    color: #14573a;
    border: 1px solid #e2e8f0;
}

.app-promo-phone-screen--balady {
    /* قريب من لون السماء/الحافة العلوية للخريطة حتى لا يبرز شريط إن ظهر فراغ بكسل */
    background: #5b6570;
    padding: 0;
}

.app-promo-balady-screen-img,
.app-promo-furas-screen-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transform-origin: center top;
}

.app-promo-furas-screen-img {
    transform: scale(1.14) translateY(-2.5%);
}

/* بلدي: تكبير + رفع بسيط لإخفاء الشريط الأزرق/الفارغ تحت النوتش */
.app-promo-balady-screen-img {
    transform: scale(1.24) translateY(-4.5%);
}

@media (max-width: 480px) {
    .app-promo-furas-screen-img {
        transform: scale(1.18) translateY(-3%);
    }

    .app-promo-balady-screen-img {
        transform: scale(1.32) translateY(-5.5%);
    }
}

.app-promo-fake-map {
    position: relative;
    margin: 32px 10px 10px;
    height: 72%;
    border-radius: 16px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 45%, #94a3b8 100%);
    overflow: hidden;
}

.app-promo-fake-road {
    position: absolute;
    top: 18%;
    left: 12%;
    right: 12%;
    font-size: 10px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
}

.app-promo-fake-pin {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 16px solid #2563eb;
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.app-promo-fake-speed {
    position: absolute;
    bottom: 14%;
    right: 12%;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #ef4444;
    color: #ef4444;
    font-weight: 900;
    font-size: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
}

.app-promo-fake-zoom {
    position: absolute;
    bottom: 10%;
    left: 10%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
}

.app-promo-controls {
    position: relative;
    z-index: 20;
    /* اتجاه LTR فقط لشريط التحكم حتى يبقى ‹ = السابق و › = التالي كما يتوقع المستخدم */
    direction: ltr;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 18px;
    margin-top: 18px;
}

.app-promo-arrow {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #14573a;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.app-promo-arrow:hover {
    background: #f0fdf4;
    border-color: #86efac;
    transform: translateY(-1px);
}

.app-promo-arrow:focus-visible {
    outline: 3px solid #14573a;
    outline-offset: 3px;
}

.app-promo-tabs {
    direction: rtl;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.app-promo-tab {
    min-width: 108px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.app-promo-tab.is-active {
    background: #14573a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(20, 87, 58, 0.35);
}

.app-promo-tab:focus-visible {
    outline: 3px solid #14573a;
    outline-offset: 2px;
}

@media (max-width: 960px) {
    .app-promo-section {
        padding: 28px 24px 96px;
    }

    /* على الشاشات الصغيرة: اجعل السلايد يأخذ ارتفاعه الطبيعي لمنع تراكب العناصر */
    .app-promo-viewport {
        min-height: 0;
    }

    .app-promo-slide {
        position: relative;
        inset: auto;
        display: none;
        opacity: 1;
        pointer-events: auto;
    }

    .app-promo-slide.is-active {
        display: block;
    }

    .app-promo-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .app-promo-visual {
        order: -1;
    }

    .app-promo-desc {
        max-width: none;
    }
}

.mishaal-chat-widget {
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    z-index: 1500;
}

/* ========================================= */
/* أيقونات عائمة ثابتة (Floating FAB) — يسار الشاشة فوق زر مشعل */
/* ========================================= */
.hail-fab {
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: auto;
    /* فوق زر مشعل (64px) + مسافة أوضح بين عمود الـ FAB والمحادثة */
    bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 64px + 22px);
    z-index: 1490;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    isolation: isolate;
    pointer-events: none;
}

.hail-fab > * {
    pointer-events: auto;
}

.hail-fab-main,
.hail-fab-translate,
.hail-fab-access {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 6px solid #cfe3da;
    background: rgba(255, 255, 255, 0.96);
    color: #157347;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    display: grid;
    place-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: scale(1);
    transform-origin: center center;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

@media (hover: hover) {
    .hail-fab-main,
    .hail-fab-translate,
    .hail-fab-access {
        transform: scale(0.76);
    }

    .hail-fab-main:hover,
    .hail-fab-translate:hover,
    .hail-fab-access:hover,
    .hail-fab-main:focus-visible,
    .hail-fab-translate:focus-visible,
    .hail-fab-access:focus-visible {
        transform: scale(1) translateY(-2px);
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
    }
}

.hail-fab.open .hail-fab-main,
.hail-fab.lang-open .hail-fab-translate {
    transform: scale(1) translateY(-2px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
}

.hail-fab-main:focus-visible,
.hail-fab-translate:focus-visible,
.hail-fab-access:focus-visible {
    outline: 3px solid rgba(21, 115, 71, 0.35);
    outline-offset: 3px;
}

.hail-fab-icon svg {
    display: block;
}

.hail-fab-lang {
    position: relative;
    display: grid;
    place-items: start;
    gap: 10px;
}

.hail-fab-translate {
    color: #157347;
}

.hail-fab-translate svg {
    display: block;
}

.hail-fab-lang-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    right: auto;
    z-index: 5;
    display: grid;
    gap: 10px;
    align-items: center;
    justify-items: stretch;
    min-width: 168px;
    transform: translateY(6px);
    opacity: 0;
    pointer-events: none;
    transition: 180ms ease;
}

.hail-fab.lang-open .hail-fab-lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hail-fab-access {
    border-color: #157347;
    background: #157347;
    color: #ffffff;
}

.hail-fab-menu {
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 10px);
    z-index: 5;
    width: min(288px, calc(100vw - 32px));
    display: grid;
    gap: 10px;
    align-items: center;
    justify-items: stretch;
    transform-origin: bottom left;
    transform: translateY(6px);
    opacity: 0;
    pointer-events: none;
    transition: 180ms ease;
}

.hail-fab.open .hail-fab-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hail-fab-item {
    background: #157347;
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-shadow: 0 14px 30px rgba(21, 115, 71, 0.22);
    position: relative;
    text-decoration: none;
    box-sizing: border-box;
}

.hail-fab-item:hover {
    background: #0f6a45;
}

/* اختصار "روح السعودية": معاينة مصغرة بصورة هوية حائل */
.hail-fab-item--roh {
    padding-right: 44px;
    text-align: right;
}

.hail-fab-item--roh::before {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: url("img/hail/aarif-fort-banner-1-crop-760x570.webp") center / cover no-repeat;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    outline: 1px solid rgba(255, 255, 255, 0.35);
    outline-offset: 0;
}

@media (max-width: 768px) {
    .hail-fab {
        left: max(12px, env(safe-area-inset-left, 0px));
        bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 58px + 20px);
        gap: 12px;
    }
    .hail-fab-main,
    .hail-fab-translate,
    .hail-fab-access {
        width: 58px;
        height: 58px;
    }

    .mishaal-chat-widget {
        left: max(12px, env(safe-area-inset-left, 0px));
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }
}

.mishaal-launcher {
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #0a7a49 0%, #074d31 100%);
    color: #fff;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(7, 77, 49, 0.32);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 64px;
    height: 64px;
    justify-content: center;
    position: relative;
    transform: scale(1);
    transform-origin: center center;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

@media (hover: hover) {
    .mishaal-chat-widget:not(.open) .mishaal-launcher {
        transform: scale(0.76);
    }

    .mishaal-chat-widget:not(.open) .mishaal-launcher:hover,
    .mishaal-chat-widget:not(.open) .mishaal-launcher:focus-visible {
        transform: scale(1) translateY(-2px);
        box-shadow: 0 22px 48px rgba(7, 77, 49, 0.38);
    }
}

.mishaal-launcher-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
}

.mishaal-launcher-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    filter: none;
}

.mishaal-launcher-text {
    position: absolute;
    left: 76px;
    bottom: 18px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    pointer-events: none;
    transition: 180ms ease;
}

.mishaal-launcher:hover .mishaal-launcher-text,
.mishaal-launcher:focus-visible .mishaal-launcher-text {
    opacity: 1;
    transform: translateX(0);
}

.mishaal-launcher-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.mishaal-panel {
    display: none;
    width: 380px;
    height: 560px;
    margin-bottom: 12px;
    border: 1px solid #d2d6db;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.mishaal-panel.open {
    display: flex;
    flex-direction: column;
}

.mishaal-chat-widget.open .mishaal-launcher {
    display: none;
}

.mishaal-header {
    background: linear-gradient(180deg, #0a7a49 0%, #074d31 100%);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mishaal-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mishaal-avatar {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.mishaal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    filter: contrast(1.06) saturate(1.04);
}

.mishaal-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mishaal-subtitle {
    font-size: 12px;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mishaal-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.mishaal-header button {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.mishaal-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.mishaal-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.mishaal-messages {
    flex: 1;
    padding: 12px;
    background: #f6f8f7;
    overflow-y: auto;
}

.mishaal-bubble {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    max-width: 90%;
}

.mishaal-bubble.user {
    background: #0f6a45;
    color: #fff;
    border-color: #0f6a45;
    margin-right: auto;
}

.mishaal-bubble:not(.user) {
    margin-left: auto;
}

.mishaal-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0 10px;
}

.mishaal-contact-card {
    border: 1px dashed #e5e7eb;
    background: #ffffff;
}

.mishaal-contact-title {
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
}

.mishaal-contact-row {
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.7;
}

.mishaal-contact-row a {
    color: #0a7a49;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mishaal-suggestion {
    border: 1px solid #d2d6db;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 13px;
    cursor: pointer;
}

.mishaal-suggestion:hover {
    border-color: #0a7a49;
    box-shadow: 0 10px 20px rgba(10, 122, 73, 0.12);
}

.mishaal-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
}

.mishaal-typing i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #94a3b8;
    display: inline-block;
    animation: mishaalTyping 1.2s infinite ease-in-out;
}

.mishaal-typing i:nth-child(2) { animation-delay: 0.12s; }
.mishaal-typing i:nth-child(3) { animation-delay: 0.24s; }

@keyframes mishaalTyping {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
    40% { transform: translateY(-3px); opacity: 1; }
}

.mishaal-input-wrap {
    display: flex;
    gap: 8px;
    border-top: 1px solid #e5e7eb;
    padding: 10px;
    background: #fff;
}

.mishaal-input-wrap input {
    flex: 1;
    border: 1px solid #d2d6db;
    border-radius: 8px;
    padding: 10px;
    font-family: var(--font-main);
}

.mishaal-input-wrap button {
    border: none;
    border-radius: 8px;
    background: #1b8354;
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
}

.mishaal-footnote {
    border-top: 1px solid #eef2f7;
    padding: 8px 12px;
    font-size: 12px;
    color: #64748b;
    background: #fff;
}

.partners-header {
    text-align: right;
    margin-bottom: 20px;
}

.partners-header h2 {
    font-size: var(--dga-display-sm);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.partners-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* اترك مساحة للأزرار داخل حدود السكشن */
    padding: 0 56px;
}

.partners-container {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px;
    width: 100%;
    scrollbar-width: none;
}

.partners-container::-webkit-scrollbar {
    display: none;
}

.partner-logo {
    flex: 0 0 auto;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.partner-logo img {
    width: auto;
    height: auto;
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:hover {
    background-color: var(--primary-color);
}

.arrow-btn:hover img {
    filter: brightness(0) invert(1);
}

.right-btn {
    right: 10px;
}

.left-btn {
    left: 10px;
}

/* ========================================= */
/* تنسيقات شريط التقييم (Feedback Bar)       */
/* ========================================= */
.feedback-bar {
    border-top: 1px solid #ddd;
    background: var(--white);
    padding-bottom: 20px;
}

.last-modified {
    padding: 16px var(--dga-page-px);
    font-size: var(--dga-text-sm);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    text-align: right;
    margin-top: 40px;
    margin-bottom: 10px;
}

.feedback-action {
    padding: 10px var(--dga-page-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feedback-question {
    font-weight: 600;
    color: var(--text-dark);
}

.buttons {
    display: flex;
    gap: 10px;
}

.btn-feedback {
    background-color: #438a60;
    color: white;
    border: none;
    padding: 8px 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-feedback:hover {
    background-color: #104631;
}

.feedback-result {
    color: #444;
    font-size: 14px;
    font-weight: 500;
}

.feedback-thanks {
    color: #065f46;
    font-weight: 600;
    font-size: 14px;
}

.btn-feedback:disabled {
    opacity: 0.55;
    cursor: default;
}

/* ========================================= */
/* لوحة الأسباب (الخطوة 2) — تقييم الصفحة    */
/* ========================================= */
.feedback-options {
    padding: 16px var(--dga-page-px) 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.feedback-options-head {
    margin-bottom: 12px;
}

.feedback-options-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.feedback-options-subtitle {
    font-size: 13px;
    color: #666;
}

.feedback-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 14px;
}

.feedback-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.feedback-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0a745d;
    cursor: pointer;
}

.feedback-comment {
    margin-bottom: 14px;
}

.feedback-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.feedback-comment-input {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
    resize: vertical;
}

.feedback-comment-input:focus {
    outline: none;
    border-color: #0a745d;
    box-shadow: 0 0 0 3px rgba(10, 116, 93, 0.12);
}

.feedback-gender {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.feedback-gender .feedback-label {
    margin-bottom: 0;
}

.feedback-gender-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.feedback-gender-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0a745d;
    cursor: pointer;
}

.feedback-actions {
    display: flex;
    gap: 10px;
}

.btn-feedback-submit {
    background-color: #0a745d;
    color: #fff;
    border: none;
    padding: 8px 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-feedback-submit:hover {
    background-color: #085c49;
}

.btn-feedback-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

.btn-feedback-cancel {
    background-color: #fff;
    color: #444;
    border: 1px solid #ccc;
    padding: 8px 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-feedback-cancel:hover {
    background-color: #f2f2f2;
    border-color: #bbb;
}

/* ========================================= */
/* تنسيقات الفوتر (Footer)        */
/* ========================================= */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    /* حشو سفلي معتدل لمنع التداخل مع الشات والأيقونات العائمة */
    padding: 60px clamp(40px, 6vw, 120px) 30px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    flex: 1;
}

.footer-col h4 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 16px;
    font-weight: 500;
    display: inline-block;
    min-width: 150px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #e0e0e0;
}

.footer-col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-icons,
.access-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.social-col .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-col .social-icon:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.social-col .social-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.legal-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.legal-logos img {
    width: 106px;
    height: 42px;
    object-fit: contain;
}

.legal-hotline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 72px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.5px;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.legal-hotline:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}
.legal-hotline:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.legal-text {
    text-align: right;
}

.legal-links {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 8px;
}

/* روابط الفوتر القانونية — أبيض عادي (بدلاً من الأزرق الافتراضي) */
.legal-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.legal-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.copyright {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.45;
    color: white;
    margin-bottom: 6px;
}

.developer {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
}

/* ========================================= */
/* تنسيقات الشريط الحكومي التحقق اللي فوق     */
/* ========================================= */
.dga-wrapper {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    font-family: var(--font-main);
    direction: rtl;
}

.dga-header {
    padding: 10px 0;
    cursor: pointer;
    background-color: #fff;
    position: relative;
    z-index: 200;
}

.dga-container-flex {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* القسم الأيسر من شريط DGA: الطقس + الإجراءات (بجانب علم السعودية) */
.dga-left-section {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dga-left-section .weather-info {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: var(--text-gray);
}

.dga-left-section .weather-info .info-item img {
    width: 16px;
    height: 16px;
}

.dga-left-section .top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    border-right: 1px solid var(--border-color);
    padding-right: 18px;
}

.dga-right-section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
}

.dga-flag-icon {
    width: 20px;
    height: auto;
}

.dga-main-text {
    color: #333;
}

.dga-link-text {
    color: #1b8354;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 5px;
}

.dga-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dga-header.active .dga-arrow {
    transform: rotate(180deg);
}

.dga-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}

.dga-content.open {
    max-height: 400px;
}

.dga-gray-section {
    background-color: #f8f8f8;
    padding: 30px 0;
}

.dga-content-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 60px;
}

.dga-info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 500px;
}

.dga-icon-circle {
    width: 40px;
    height: 40px;
    border: 1px solid #1b8354;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dga-icon-circle img {
    width: 20px;
    height: 20px;
}

.dga-text-group strong {
    display: block;
    color: #161616;
    font-size: 14px;
    margin-bottom: 5px;
}

.dga-text-group p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.dga-reg-bar {
    background-color: #ffffff;
    padding: 15px 0;
    border-radius: 0 0 8px 8px;
}

.dga-reg-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.dga-logo-bottom {
    height: 45px;
    width: auto;
}

.reg-text {
    font-size: 15px;
    color: #333;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reg-number {
    color: #1b8354;
    text-decoration: underline;
    font-weight: 700;
    font-family: var(--font-main);
}

/* =========================================
   تنسيقات التجاوب (Mobile & Tablet Responsive)
   ========================================= */

/* زر القائمة  */
.mobile-menu-btn {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- شاشات التابلت والجوال (أقل من 1024px) --- */
@media (max-width: 1024px) {
    .main-header {
        height: auto;
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .header-right-group {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 15px;
    }


    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        flex-direction: column;
        height: auto;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 0;
        border-top: 1px solid #eee;
    }


    .main-nav.active {
        display: flex;
    }

    .menu-items {
        flex-direction: column;
        width: 100%;
        height: auto;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }


    .mega-menu,
    .mega-menu.three-columns,
    .mega-menu.two-columns {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        display: none;
        background-color: #f9f9f9;
        padding: 10px 20px;
        transform: none;
        border-radius: 0;
        /* تصفير خصائص الأنيميشن المكتبية على الجوال */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
    }

    .nav-item:hover .mega-menu,
    .nav-item.open .mega-menu {
        display: flex;
    }

    .mega-menu.three-columns,
    .mega-menu.two-columns {
        flex-direction: column;
    }

    .mega-menu.three-columns .menu-column:not(:last-child),
    .mega-menu.two-columns .menu-column:not(:last-child) {
        border-left: none;
        border-bottom: 1px solid #eee;
        padding-left: 0;
        padding-bottom: 10px;
    }


    .mobile-menu-btn {
        display: block !important;
    }

    .header-left-group {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        flex-wrap: nowrap;
    }

    /* banner Section */
    .banner-dynamic-section {
        min-height: 420px;
        height: auto;
        max-height: none;
    }

    .banner-content-wrapper {
        padding-top: clamp(56px, 10vh, 100px);
        padding-bottom: 32px;
    }

    #banner-title {
        font-size: clamp(1.9rem, 5.2vw, 2.65rem);
    }

    #banner-desc {
        font-size: clamp(1.05rem, 3.6vw, 1.22rem);
        width: 100%;
    }

    /* Partners */
    .right-btn {
        right: 0;
    }

    .left-btn {
        left: 0;
    }
}

/* --- شاشات الجوال فقط (أقل من 768px) --- */
@media (max-width: 768px) {

    /* DGA */
    .dga-container-flex,
    .dga-content-inner,
    .dga-reg-container {
        padding: 0 20px;
    }

    .dga-container-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dga-left-section {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .dga-left-section .weather-info {
        flex-wrap: wrap;
        gap: 10px;
    }

    .dga-left-section .top-actions {
        border-right: none;
        padding-right: 0;
    }

    .dga-content-inner {
        flex-direction: column;
        gap: 20px;
    }

    .dga-reg-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .dga-content.open {
        max-height: 600px;
    }

    /* Top Bar */
    .top-bar {
        height: auto;
        padding: 10px 20px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .weather-info {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-actions {
        width: 100%;
        justify-content: center;
    }

    /* Stats Section */
    .stats-section {
        padding: var(--dga-page-pt) var(--dga-page-px);
    }

    .stat-number1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .cards-grid {
        gap: 20px;
    }

    .stat-card {
        width: 100%;
        max-width: 300px;
    }

    /* Amin Section */
    .amin-section {
        padding: var(--dga-page-pt) var(--dga-page-px);
    }

    .amin-container {
        flex-direction: column;
        gap: 20px;
    }

    .amin-image-wrapper {
        width: 100%;
        flex: auto;
    }

    .amin-actions {
        justify-content: center;
    }

    /* News Section */
    .news-section,
    .hail-beautiful-carousel,
    .hail-map-section {
        padding: var(--dga-page-pt) var(--dga-page-px);
    }

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

    .hail-map-layout {
        grid-template-columns: 1fr;
    }

    .beautiful-slide {
        height: 260px;
        padding: 24px;
    }

    .beautiful-slide h3 {
        font-size: 24px;
    }

    .mishaal-chat-widget {
        left: 12px;
        bottom: 12px;
    }

    .mishaal-panel {
        width: 295px;
        height: 390px;
    }

    /* Feedback */
    .feedback-action {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 10px var(--dga-page-px);
    }

    .last-modified {
        padding: 16px var(--dga-page-px);
    }

    /* Footer */
    .main-footer {
        padding: 40px 20px 110px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .legal-text {
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }
}


/* مسار التنقل للصفحات */
/* العناوين والنصوص */
.vi-main-title {
    font-size: 30px;
    font-weight: 800;
    color: #161616;
    margin-bottom: 24px;
}

.vi-description {
    font-size: 16px;
    line-height: 1.8;
    color: #161616;
    margin-bottom: 28px;
    text-align: justify;
    max-width: 100%;
}

.vi-divider {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 20px;
}


/* التجاوب للجوال */
@media (max-width: 768px) {
    .vi-cards-grid {
        grid-template-columns: 1fr;
        /* عمود واحد في الجوال */
    }

    .vi-main-title {
        font-size: 28px;
    }
}

.main-body-content {
    padding: 20px 0;
    text-align: right;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-family: var(--font-main);

}

/* جزء الخاص بالبطاقات التفصيلية لعرض محتوى الموقع */
.vi-te {
    font-size: 14px;
    color: #9DA4AE;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vi-te a:hover {
    color: #1b8354;
    text-decoration: underline;
}


/* الشبكة (Grid) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* البطاقة (Card) */
.info-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #1b8354;
}

/* أيقونات  */
.card-icon-wrapper {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-bottom: 10px;
}

.card-icon-wrapper img {
    width: 30px;
    height: 30px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #161616;
    margin-top: 10px;
}

/* زر عرض المزيد  */
.btn-view-account {
    align-self: flex-end;
    background-color: #438a60;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-view-account:hover {
    background-color: #14573a;
}

/* =========================================
   تجاوب الشاشات (Responsive)
   ========================================= */

/* شاشات التابلت واللابتوب الصغير (أقل من 1024px) */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
      
    }

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

/* شاشات الجوال (أقل من 600px) */
@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
       
    }

    .info-card {
        height: auto;
        gap: 15px;
    }

    .btn-view-account {
        width: 100%;
        text-align: center;
    }
}

/* عن الامانة */
/* جزء الامانة في سطور */



/* ========================================= */

/* ========================================= */
/* التنسيقات العامة للمحتوى الرئيسي          */
/* ========================================= */
.about-us-container {
    padding: 20px 0;
    text-align: right;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--font-main);
    flex: 1;
}

.section-divider-line {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 40px auto;
    width: 80%;
}

/* عناوين الأقسام */
.section-title-center,
.section-title-right {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title-center {
    text-align: center;
    display: block;
}

.section-title-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title-right {
    text-align: right;
    display: inline-block;
}

.section-title-right::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ========================================= */
/* تنسيقات الرؤية والرسالة    */
/* ========================================= */
.vision-mission-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.strat-card {
    flex: 1;
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
    min-width: 280px;
}

.strat-card:hover {
    transform: translateY(-5px);
}

.strat-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.strat-icon-box {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.strat-icon-box img {
    width: 22px;
    height: 22px;
}

.strat-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.strat-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========================================= */
/*  تنسيقات القيم المؤسسية     */
/* ========================================= */
.values-wrapper {
    margin-bottom: 40px;
    text-align: center;
}

.values-items-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.value-capsule {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.value-capsule:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ========================================= */
/*  تنسيقات الركائز الاستراتيجية   */
/* ========================================= */
.pillars-section-container {
    margin-bottom: 60px;
}

.pillars-cards-grid {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.pillar-item-card {
    background: #fff;
    flex: 1;
    min-width: 200px;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pillar-icon-circle {
    width: 60px;
    height: 60px;
    background-color: #f4fcf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.pillar-icon-circle img {
    width: 30px;
    filter: invert(36%) sepia(45%) saturate(836%) hue-rotate(108deg) brightness(93%) contrast(89%);
}

.pillar-item-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.pillar-item-card:hover .pillar-icon-circle {
    background-color: var(--primary-color);
}

.pillar-item-card:hover .pillar-icon-circle img {
    filter: brightness(0) invert(1);
}

/* ========================================= */
/*  تنسيقات الأهداف الاستراتيجية     */
/* ========================================= */
.goals-section-container {
    margin-bottom: 40px;
}

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

.goal-info-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.goal-id {
    font-size: 14px;
    font-weight: 700;
    color: #cbd5e0;
    margin-bottom: 10px;
    font-family: var(--font-main);
}

.goal-info-card p {
    margin: 0;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.goal-info-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(27, 131, 84, 0.1);
    transform: translateY(-5px);
}

.goal-info-card:hover .goal-id {
    color: var(--primary-color);
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .vision-mission-wrapper {
        flex-direction: column;
    }

    .pillar-item-card {
        width: 100%;
        flex: none;
    }

    .goals-cards-grid {
        grid-template-columns: 1fr;
    }
}


/*حائل تاريخيا*/


/* ========================================= */
/*  تنسيقات المقدمة       */
/* ========================================= */
.hail-intro-section {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(180deg, #14573A 0%, #1B8354 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 10px 20px rgba(27, 131, 84, 0.15);
}

.hail-main-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hail-main-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: white;
    margin: 10px auto 0;
    border-radius: 2px;
}

.hail-lead-text {
    font-size: 1.1rem;
    color: white;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;

}

/* ========================================= */
/* العناوين الداخلية للأقسام     */
/* ========================================= */


.section-header1 {
    text-align: center;
    margin-bottom: 50px;
}

.section-header1 h2 {
    color:var(--text-dark);
    font-size: 10rem;
    margin-bottom: 30px;
    text-align: center;

}

.section-header1 p {
    color: #666;
    font-size: 1rem;
    text-align: right;

}

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

.history-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.history-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon img {
    width: 35px;
    height: 35px;
}

.history-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.history-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}


.geo-row {
    display: flex;
    align-items: center;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
}

.geo-text {
    flex: 1;
}

.geo-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.geo-image {
    flex: 1;
    position: relative;
}

.geo-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.geo-image img:hover {
    transform: scale(1.02);
}

.content-block {
    margin-bottom: 80px;
}

.content-block:last-child {
    margin-bottom: 40px;
}




/* ========================================= */
/*  تنسيقات السلايدر    */
/* ========================================= */
.hail-slider-section {
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

/* تنقل مثل "حائل في أرقام" */
.hail-history-arrows {
    position: absolute;
    top: 6px;
    inset-inline-end: 0;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hail-history-arrow {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.10);
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.hail-history-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.14);
}

.cards-slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px 18px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.cards-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-card {

    flex: 0 0 calc((100% - 40px) / 3);
    min-width: auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
    border-top: 4px solid var(--primary-color);
}

.slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    text-align: right;
}

.card-body h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.card-body p {
    font-size: 0.9rem;
    color: #777;
}


/* نقاط وأزرار مودال تم إزالتها من سكشن المعالم */

/* ========================================= */
/*  التجاوب (Responsive)              */
/* ========================================= */
@media (max-width: 1024px) {
    .slider-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {

    :root {
        --section-gap: 50px;
    }

    .geo-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .hail-main-title {
        font-size: 1.6rem;
    }

    .slider-card {
        flex: 0 0 100%;
    }
}



.section-header11 h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;

}

.section-header11 p {
    color: #666;
    font-size: 1rem;
    text-align: right;
    margin-bottom: 15px;

}

/* مودال ويكيبيديا للمعالم */
.hail-wiki-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.hail-wiki-modal.is-open {
    display: block;
}

.hail-wiki-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
}

.hail-wiki-panel {
    position: relative;
    width: min(920px, calc(100% - 32px));
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(2, 6, 23, 0.10);
}

.hail-wiki-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.06);
    color: #0f172a;
    font-size: 20px;
    cursor: pointer;
}

.hail-wiki-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
}

.hail-wiki-media {
    background: #0b1220;
    min-height: 320px;
}

.hail-wiki-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hail-wiki-content {
    padding: 20px 20px 22px;
}

.hail-wiki-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.hail-wiki-content p {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.9;
    font-size: 14px;
}

.hail-wiki-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #1b8354;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 900px) {
    .hail-wiki-body {
        grid-template-columns: 1fr;
    }
    .hail-wiki-panel {
        margin-top: 4vh;
    }
}

/*  دليلك السياحي */

/* الكلاس الرئيسي للمحتوى */
.tg-main-wrapper {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--font-main);
    text-align: right;
}

/*  الأقسام */
.tg-content-container {
    margin-bottom: 40px;
}

/* العناوين والوصف */
.tg-page-title {
    font-size: 30px;
    font-weight: 800;
    color: #161616;
    margin-bottom: 24px;
}

.tg-page-description {
    font-size: 16px;
    line-height: 1.8;
    color: #161616;
    margin-bottom: 28px;
}

/* تنسيق الهيدر لكل قسم (سلايدر) */
.tg-category-section {
    margin-bottom: 80px;
}

.tg-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.card-location-icon img {
    width: 20px;
    height: 20px;
    filter: invert(36%) sepia(54%) saturate(632%) hue-rotate(108deg) brightness(93%) contrast(89%);
}


.card-location-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.15);
}

.card-location-icon:hover img {
    filter: brightness(0) invert(1);
}

.card-location-icon {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background-color: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.card-body {
    position: relative;
    padding-bottom: 20px;
}

/* زر عرض الكل */
.view-all-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #067647;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    align-self: flex-start;
    margin-top: 16px;
    font-size: 14px;

}

.view-all-btn:hover {
    background-color: #104631;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.header-text h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header-text p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}



/*البيانات المفتوحة*/


.od-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.od-sidebar {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.od-sidebar-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.od-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.od-tab-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 15px;
    color: #555;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.od-tab-item:hover {
    background-color: #f0f9f4;
    color: var(--primary-color);
}

.od-tab-item.active {
    color: var(--primary-color);
    font-weight: 700;
    border-right: 3px solid var(--primary-color);
    background-color: transparent;
}

.od-content-area {
    flex: 1;
    min-width: 0;
}

.od-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.od-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.od-section-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.green-line {
    width: 4px;
    height: 30px;
    background-color: var(--primary-color);
    display: inline-block;
    margin-left: 10px;
}


.od-tools-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.od-count-row {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.od-controls-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-btn,
.select-trigger {
    background: #fff;
    border: 1px solid #d2d6db;
    padding: 10px 15px;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    min-width: 160px;
    justify-content: space-between;
}

/* القائمة المنسدلة */
.custom-select-wrapper {
    position: relative;
    z-index: 10;
}

.custom-options {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d2d6db;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    overflow: hidden;
}

.custom-select.open .custom-options {
    display: block;
}

.custom-option {
    padding: 10px 15px;
    display: block;
    cursor: pointer;
    font-size: 14px;
}

.custom-option:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.custom-option.selected {
    background-color: #e7f7ef;
    color: var(--primary-color);
    font-weight: bold;
}

/* بطاقات البيانات */
.od-card-new {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.od-card-new:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color);
}

.od-card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-right-content {
    flex: 1;
    padding-left: 20px;
}

.card-left-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 100px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #161616;
    margin-bottom: 8px;
}

.card-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #777;
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-badge.financial {
    background-color: #e7f7ef;
    color: #1b8354;
}

.card-badge.stats {
    background-color: #e8f0fe;
    color: #1967d2;
}

.card-badge.municipal {
    background-color: #fff8e1;
    color: #f57f17;
}

.card-badge.health {
    background-color: #fce4ec;
    color: #c2185b;
}

.od-card-footer-actions {
    border-top: 1px dashed #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.external-data-link {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-badges-group {
    display: flex;
    gap: 8px;
}

/* تنسيق ملفات التحميل */
.file-icon {
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    color: #333;
    background: #f3f4f6;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.file-icon:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.file-icon.api-icon {
    border: 1px solid transparent;
    background: #f3f4f6;
    color: #333;
}

.file-icon.api-icon:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* ========================================= */
/*  تنسيق التقييم والترقيم والترقيم المستخدم بصفحات الاخبار والفعاليات       */
/* ========================================= */

/* تنسيق النجوم التفاعلية */
.interactive-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 5px;
    direction: ltr;
    color: #FFC107;
    font-size: 20px;
    letter-spacing: 2px;
}

.star-btn {
    font-size: 16px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.star-btn.filled {
    color: #FFC107;
}

.star-btn:hover {
    transform: scale(1.2);
}

.rating-text {
    font-size: 12px;
    color: #888;
}

/* تنسيق الترقيم  */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    direction: rtl;
}

.page-num,
.page-arrow {
    width: auto;
    height: 36px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: transparent;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: 0.2s all;
    font-weight: 400;
    font-family: var(--font-main);
}

.page-arrow {
    font-size: 16px;
    font-weight: 400;
}

.page-num.active {
    background-color: transparent;
    color: #000;
    font-weight: 400;
    border-bottom: 3px solid var(--primary-color);
    border-radius: 0;
}

.page-num:not(.active):hover,
.page-arrow:hover {
    color: var(--primary-color);
    background: transparent;
}

@media (max-width: 768px) {
    .od-container {
        flex-direction: column;
    }

    .od-sidebar {
        width: 100%;
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .od-tools-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .od-controls-row {
        flex-direction: column;
        width: 100%;
    }

    .tool-btn,
    .select-trigger {
        width: 100%;
    }

    .od-card-body {
        flex-direction: column;
    }

    .card-right-content {
        padding-left: 0;
        margin-bottom: 15px;
    }

    .card-left-rating {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .od-card-footer-actions {
        flex-direction: column-reverse;
        gap: 15px;
        align-items: stretch;
    }

    .external-data-link {
        justify-content: center;
    }

    .file-badges-group {
        justify-content: center;
    }
}

/* ========================================= */
/* تنسيقات صفحة سياسة البيانات      */
/* ========================================= */
.policy-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.policy-content h3 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 12px;
    border-right: 3px solid #ddd;
    padding-right: 10px;
}

.policy-content ul {
    list-style: disc;
    margin-right: 25px;
    margin-bottom: 15px;
}

.policy-content ul li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.policy-content p {
    margin-bottom: 15px;
}

.policy-group {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-right: 4px solid var(--primary-color);
}


.legislations-list li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 15px;
}

.legislations-list li::before {
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

.leg-link {
    color: #1b8354;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding-bottom: 2px;
}

.leg-link:hover {
    color: #14573a;
    border-bottom-style: initial;
}

/* ========================================= */
/* تنسيقات قسم API       */
/* ========================================= */
.api-box {
    background: #2d2d2d;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    direction: ltr;
    text-align: left;
    margin: 20px 0;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.api-box .method {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.api-box .url {
    color: #e6db74;
    word-break: break-all;
    flex: 1;
}

.copy-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

.btn-api-download {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-api-download:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ========================================= */
/* تنسيقات نموذج شاركنا رأيك        */
/* ========================================= */
.feedback-detailed-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.form-question-row {
    margin-bottom: 25px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
}

.form-question-row:last-child {
    border-bottom: none;
}

.question-label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    font-size: 15px;
}

.required {
    color: #e74c3c;
    margin-right: 5px;
}

/* تنسيق خيارات  */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.radio-item input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* مربع النص */
.feedback-textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #d2d6db;
    border-radius: 4px;
    padding: 12px;
    font-family: var(--font-main);
    resize: vertical;
    outline: none;
    font-size: 14px;
}

.feedback-textarea:focus {
    border-color: var(--primary-color);
}

.char-count {
    text-align: left;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}



.captcha-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #ddd;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}


.captcha-right-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captcha-label {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    display: block;
    text-align: right;
}

.captcha-inputs-row {
    display: flex;
    align-items: center;
    gap: 10px;
}


.captcha-input {
    padding: 0 15px;
    border: 1px solid #707070;
    border-radius: 4px;
    width: 200px;
    height: 45px;
    text-align: right;
    font-size: 14px;
    outline: none;
    font-family: var(--font-main);
}

.captcha-input:focus {
    border-color: var(--primary-color);
}


.captcha-box {
    background-color: #e8f5e9;
    color: #1b8354;
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    padding: 0 15px;
    border-radius: 4px;
    border: 1px solid #c8e6c9;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    user-select: none;
    background-image: radial-gradient(#1b8354 0.5px, transparent 0.5px), radial-gradient(#1b8354 0.5px, #e8f5e9 0.5px);
    background-size: 4px 4px;
    background-position: 0 0, 2px 2px;
    opacity: 0.8;
}

/* زر التحديث */
.refresh-captcha {
    background: #fff;
    border: 1px solid #ccc;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.refresh-captcha:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

/* رسالة الخطأ */
.error-msg {
    display: none;
    color: #d32f2f;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
}


.captcha-left-section {
    padding-bottom: 2px;
}

.submit-feedback-btn {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 0 40px;
    height: 45px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.submit-feedback-btn:hover {
    background-color: #ccc;
}

/* تنسيق للجوال */
@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-inputs-row {
        flex-direction: column;
        width: 100%;
    }

    .captcha-input,
    .captcha-box,
    .refresh-captcha,
    .submit-feedback-btn {
        width: 100%;
    }

    .submit-feedback-btn {
        margin-top: 10px;
    }

    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ========================================= */
/* تنسيقات الإحصائيات  */
/* ========================================= */

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

.stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.stat-icon-bg {
    width: 45px;
    height: 45px;
    background-color: #f0f9f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-bg img {
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    font-family: var(--font-main);
}

.stat-trend {
    font-size: 11px;
    margin-top: 5px;
    font-weight: 600;
}

.stat-trend.positive {
    color: #1b8354;
}

.stat-sub {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.dashboard-charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.chart-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    border-right: 3px solid var(--primary-color);
    padding-right: 10px;
}


.chart-bar-item {
    margin-bottom: 15px;
}

.bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}

.progress-track {
    background-color: #f3f4f6;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-in-out;
}


.top-downloads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.top-downloads-table th {
    text-align: right;
    color: #888;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.top-downloads-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
    color: #333;
}

.top-downloads-table tr:last-child td {
    border-bottom: none;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

.badge-dot.financial {
    background-color: #1b8354;
}

.badge-dot.municipal {
    background-color: #f57f17;
}

.badge-dot.stats {
    background-color: #1967d2;
}

.badge-dot.health {
    background-color: #c2185b;
}

@media (max-width: 768px) {
    .dashboard-charts-row {
        grid-template-columns: 1fr;
    }

    .chart-box {
        grid-column: span 1 !important;
    }
}

/*مركز المعرفة */
/*مشاركة البيانات */


.page-intro-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.main-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
}

.breadcrumbs .current-page {
    color: var(--primary-color);
    font-weight: 600;
}


.form-card-container {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    max-width: 100%;
}

.card-header {
    margin-bottom: 30px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
}

.card-title {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 14px;
    color: #777;
}

/* --- تنسيق الحقول --- */
.styled-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

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

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #333;

}


.required {
    color: #e63946;
    margin-right: 3px;
}

.form-control {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s;
    appearance: none;
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 16px;
}

.form-control1 {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(27, 131, 84, 0.08);
    outline: none;
}

.file-upload-box {
    position: relative;
    border: 2px dashed #d2d6db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #fafafa;
    transition: border-color 0.3s;
}

.file-upload-box:hover {
    border-color: var(--primary-color);
    background-color: #f0fdf4;
}

.file-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.upload-icon {
    font-size: 20px;
}


.captcha-wrapper {
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.captcha-box {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 20px;
    font-family: var(--font-main);
    font-size: 22px;
    letter-spacing: 4px;
    font-weight: bold;
    color: #333;
    border-radius: 6px;
    min-width: 120px;
    text-align: center;
    user-select: none;
    text-decoration: line-through;
}

.refresh-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s;
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

.captcha-input {
    width: 150px;
    text-align: center;
    letter-spacing: 2px;
}


.form-footer {
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
    text-align: right;
}

.submit-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

/* تجاوب للجوال */
@media (max-width: 768px) {

    .form-row,
    .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-input {
        width: 100%;
    }

    .form-card-container {
        padding: 20px;
    }

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


/*قسم المركز الاعلامي */
/*الهوية البصرية*/

/* الشبكة (Grid) */
.info-grid-Visualidentity {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* عمودين */
    gap: 15px;
}

/* البطاقة (Card) */
.info-card-Visualidentity {
    background: #fff;
    border: 1px solid #d2d6db;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.3s ease;
}

.info-card-Visualidentity:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* أيقونات  */
.card-icon-wrapper-Visualidentity {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-bottom: 10px;
}

.card-icon-wrapper-Visualidentity img {
    width: 30px;
    height: 30px;

}

.info-card-Visualidentity h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    width: 100%;
}

.info-card-Visualidentity p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;

}

/* زر التحميل */

.btn-view-account-Visualidentity:hover {
    background-color: #14573a;
}


.vi-card-footer-Visualidentity {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.vi-download-btn-Visualidentity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #438a60;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.vi-download-btn-Visualidentity:hover {
    background-color: #14573a;
}

.vi-download-btn-Visualidentity .dl-icon {
    margin-top: 2px;
    gap: 8px;
}

/*المركز الاعلامي قسم التواصل الاجتماعي*/


/* الشبكة (Grid) */
.info-grid-Socialmedia {

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* البطاقة (Card) */
.info-card-Socialmedia {
    background: #fff;
    border: 1px solid #d2d6db;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.3s ease;
    padding: 24px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.info-card-Socialmedia:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* أيقونات  */
.card-icon-wrapper-Socialmedia {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-bottom: 10px;
}

.card-icon-wrapper-Socialmedia img {
    width: 30px;
    height: 30px;

}

.info-card-Socialmedia h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    width: 100%;
}



/* زر التحميل */

.btn-view-account-Socialmedia:hover {
    background-color: #14573a;
}


.vi-card-footer-Socialmedia {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.vi-download-btn-Socialmedia {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #438a60;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.vi-download-btn-Socialmedia:hover {
    background-color: #14573a;
}


/* ========================================= */
/* تنسيق تفاصيل الخبر او الفعالية   */
/* تنسيقات صفحة تفاصيل الخبر (News Details)  */
/* ========================================= */

.news-details-container-Details {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* تنسيق عنوان الخبر */
.news-header-Details {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.news-title-Details {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-meta-Details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-item-Details {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}


.date-badge-Details {

    color: black;
    padding: 6px 12px;

}

.news-body-Details {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}


.news-image-wrapper-Details {
    flex: 0 0 45%;
    position: relative;
}

.news-main-image-Details {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.image-caption-Details {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: center;
    background: #f9f9f9;
    padding: 6px;
    border-radius: 4px;
}

.news-text-content-Details {
    flex: 1;
}

.lead-text-Details {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.news-text-content {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;


}

.news-text-content-Details {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.8;
    text-align: justify;
}



/* ========================================= */
/*قسم الاخبار -قسم الاعلامي         */
/* ========================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.card-thumb-news {
    height: 200px;
    width: 100%;
    background-color: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.card-thumb-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-thumb img {
    transform: scale(1.05);
}

.card-body-news {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.card-top-meta-news {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 12px;
}

.meta-date-news {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    font-family: var(--font-main);

}

.meta-date-news .icon {
    font-size: 14px;
}

/* تنسيق النصوص */
.card-body-news h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.5;
}

.card-body-news p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;

    -webkit-box-orient: vertical;
    overflow: hidden;
}


.card-footer-action {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f9f9f9;
    padding-top: 15px;
}

.btn-view-news {
    align-self: flex-end;
    background-color: #438a60;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.3s;


    margin-top: auto;
}

.btn-view-news:hover {
    background-color: #14573a;
}


.news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap-reverse;
    gap: 20px;
}

.newssearch-section {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    max-width: 600px;
}


.input-group-styled {
    position: relative;
    flex: 1;
}

.input-group-styled input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group-styled input:focus {
    border-color: #b0b0b0;
}


.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: #888;
}

.search-icon {
    right: 12px;
    pointer-events: none;
}

.mic-icon {
    left: 12px;
    cursor: pointer;
}


.btn-search-trigger {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 8px;
    color: #333;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-search-trigger:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
}


.results-count-text {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* تجاوب */
@media (max-width: 768px) {
    .news-toolbar {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .results-count-text {
        text-align: right;
        margin-bottom: -10px;
    }
}


/*الفعاليات */

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

/* تنسيق التاريخ */
.event-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    font-family: var(--font-main);
}


.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}


.status-started {
    background-color: #d1fae5;
    color: #065f46;
}

.status-coming {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-ended {
    background-color: #fee2e2;
    color: #991b1b;
}


/*قسم مكتبة الوسائط */


/* Tabs */
.media-tabs-wrapper {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
    gap: 40px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 5px;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    position: relative;
    font-family: var(--font-main);
}

.tab-btn.active {
    font-weight: 700;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}


.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.media-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-img-holder {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
}

.card-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.4;
}

.card-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.btn-view {
    align-self: flex-end;
    background-color: #2e8b57;
    color: #fff;
    border: none;
    padding: 8px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-view:hover {
    background-color: #1b8354;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: transparent;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    font-weight: bold;
}

#modal-body img,
#modal-body video,
#modal-body iframe {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}


@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .media-tabs-wrapper {
        gap: 20px;
    }
}

/* ========================================= */
/* ========================================= */
/*عن الامانة*/
/* صفحة الامين*/

/* ========================================= */
/* ========================================= */

.amin-profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}

/* ---القائمة الجانبية  --- */
.amin-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
}

.profile-image-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f8fcf9;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-names .p-name {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 800;
}

.profile-names .p-role {
    display: inline-block;
    background-color: #f0fdf4;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.sidebar-divider {
    height: 1px;
    background-color: #eee;
    margin: 25px 0;
}


.contact-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

.c-item-v {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
}

.c-item-v:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.c-text {
    display: flex;
    flex-direction: column;
    line-height: 1.8;

}

.c-text .label {
    font-size: 14px;
    color: #888;
}

.c-text .value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.c-text .email {
    font-size: 12px;
    word-break: break-all;
    color: var(--primary-color);
}

/*كلمة الامين والسيرة الذاتية */
.amin-content-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-block-styled {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.block-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.block-header h3 {
    font-size: 20px;
    color: var(--primary-dark);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* تنسيق الكلمة */
.speech-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 12px;
    text-align: justify;
}

/* تنسيق المؤهل */
.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fcfcfc;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid var(--primary-color);
}

.info-bullet {
    font-size: 24px;
}

.info-row p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* تنسيق الخبرات */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.date-tag {
    background: #e6f4ea;
    color: var(--primary-dark);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
}

/* تنسيق الإنجازات */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.achieve-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.achieve-box:hover {
    border-color: var(--primary-color);
    background-color: #fbfbfb;
}

.a-year {
    font-size: 18px;
    font-weight: 800;
    color: #cbd5e1;
    font-family: var(--font-main);
}

.achieve-box:hover .a-year {
    color: var(--primary-color);
}

/* --- التجاوب مع الجوال --- */
@media (max-width: 900px) {
    .amin-profile-container {
        grid-template-columns: 1fr;
    }

    .amin-sidebar {
        position: static;
        width: 100%;
    }

    .profile-image-box {
        width: 140px;
        height: 140px;
    }

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

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .date-tag {
        min-width: auto;
    }
}

/* عن الامانة*/
/*قسم الجوائز */

/* ========================================= */
/* ========================================= */

.awards-awards-container {
    padding: 5px 0;
    max-width: 100%;
}

/* تنسيق السنة */
.awards-year-group {
    margin-bottom: 60px;
}

/* عنوان السنة */
.year-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid #067647;
    padding-bottom: 10px;
    display: inline-block;
    min-width: 100px;
}

/* الشبكة */
.awards-awards-container .awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.awards-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.awards-card:hover {
    transform: translateY(-5px);
}

/* الصورة */
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #f9f9f9;
}

/* النصوص */
.card-text {
    padding: 20px;
}

.card-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #161616;
    margin-bottom: 10px;
}

.card-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* تحسين للجوال */
@media (max-width: 768px) {
    .awards-awards-container .awards-grid {
        grid-template-columns: 1fr;
    }

    .year-title {
        font-size: 24px;
        width: 100%;
    }
}


/* امراء المنطقة + امناء المنطقة + وكلاء الامين */
/* ========================================= */
/* ========================================= */

.princes-layout-container {

    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

/* --- القائمة الجانبية --- */
.princes-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding-left: 20px;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid #eee;
    padding-left: 20px;

}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #067647;
    margin-bottom: 20px;
    padding-bottom: 10px;


}

.princes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prince-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.prince-item:hover {
    background-color: #f0f9f4;
    color: var(--primary-color);
}

.prince-item.active {
    color: var(--primary-color);
    font-weight: 700;
    border-right: 3px solid var(--primary-color);
    background-color: transparent;
}

/* --- منطقة المحتوى --- */
.prince-content-area {
    flex: 1;
    position: relative;
}

.prince-detail-card {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    animation: fadeIn 0.5s ease;
}

.prince-detail-card.active {
    display: flex;
}

.prince-text-info {
    width: 100%;
}


.p-main-name {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
}

.p-role-title {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.p-date-badge {
    display: inline-block;
    background-color: #f3f4f6;
    color: #374151;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
}

.p-description {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    text-align: justify;
}



.prince-image-box {
    width: 220px;
    height: 220px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    align-self: right;
}

.prince-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- التجاوب مع الجوال --- */
@media (max-width: 900px) {
    .princes-layout-container {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .princes-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #eee;
        padding-left: 0;
        padding-bottom: 20px;
    }

    .prince-detail-card {

        align-items: center;
        text-align: center;
    }

    .prince-image-box {
        width: 100%;
        max-width: 300px;
        height: 350px;
        margin-bottom: 20px;
    }

    .p-description {
        text-align: center;
    }
}




/* ========================================= */
/* التجاوب ( Responsive) */
/* ========================================= */


img {
    max-width: 100%;
    height: auto;
}


body,
html {
    overflow-x: hidden;
}


@media (max-width: 480px) {
    .main-container {
        box-shadow: none;
    }

    .vi-main-title,
    #banner-title,
    .section-header h2,
    .hail-main-title {
        font-size: 24px !important;
        line-height: 1.3;
    }

    .section-desc,
    .vi-description {
        font-size: 14px;
        text-align: justify;
    }
}

@media (max-width: 576px) {
    .weather-info .info-item:not(:first-child) {
        display: none;
    }

    .logo-area img {
        max-height: 45px;
    }

    .mobile-menu-btn {
        padding: 10px;
    }

    .search-container {
        flex-direction: column;
        padding: 10px;
    }

    .search-input {
        width: 100%;
    }

    .search-submit-btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .banner-content-wrapper {
        text-align: center;
        margin: 0 auto;
        padding-top: 20px;
    }

    .banner-btn-white {
        width: 100%;
    }

    .slider-dots {
        justify-content: center;
    }

    /* إخفاء أسهم الأقسام الأخرى إن وجدت، لكن لا تخفِ أسهم الشركاء */
    .arrow-btn {
        display: none;
    }
    .partners-section .arrow-btn {
        display: flex;
    }

    .partners-container {
        padding: 20px 0;
        gap: 20px;
    }

    .partner-logo {
        width: 120px;
    }

    /* ضمان ظهور قسم الشركاء على الجوال */
    .partners-section {
        display: block !important;
    }

    .partners-slider-wrapper {
        display: block;
    }

    .partners-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 20px 120px;
        text-align: center;
    }

    .footer-col h4 {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-icons,
    .access-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .legal-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 992px) {

    .geo-row {
        flex-direction: column;
        padding: 20px;
    }

    .geo-text,
    .geo-image {
        width: 100%;
        flex: auto;
    }


    .vision-mission-wrapper {
        flex-direction: column;
    }

    .strat-card {
        min-width: 100%;
    }
}

@media (max-width: 600px) {
    .hail-govs-preview-media {
        min-height: 200px;
        max-height: 260px;
    }
}

@media (max-width: 600px) {

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

    .awards-year-group {
        text-align: center;
    }

    .year-title {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .top-downloads-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }


    .od-tools-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .od-controls-row {
        flex-direction: column;
    }

    .tool-btn,
    .select-trigger {
        width: 100%;
        justify-content: space-between;
    }


    .od-card-body {
        flex-direction: column;
    }

    .card-right-content {
        padding-left: 0;
        margin-top: 15px;
    }

    .od-card-footer-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .file-badges-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-inputs-row {
        flex-direction: column;
        width: 100%;
    }

    .captcha-input {
        width: 100% !important;
        text-align: center;
    }

    .submit-feedback-btn,
    .submit-btn {
        width: 100%;
        margin-top: 15px;
    }


    .api-box {
        flex-direction: column;
        align-items: flex-start;
        word-break: break-all;
    }

    .api-box .url {
        font-size: 12px;
    }
}

@media (max-width: 992px) {

    .news-body-Details {
        flex-direction: column;
    }

    .news-image-wrapper-Details {
        width: 100%;
        margin-bottom: 20px;
    }

    .news-title-Details {
        font-size: 22px;
    }

    .news-meta-Details {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 900px) {

    .princes-layout-container,
    .amin-profile-container {
        display: flex;
        flex-direction: column;
    }


    .princes-sidebar,
    .amin-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
        position: static;
    }


    .princes-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 10px;
    }

    .prince-item {
        white-space: nowrap;
        background: #f9f9f9;
        border: 1px solid #eee;
    }


    .prince-detail-card {
        flex-direction: column;
        text-align: center;
    }

    .prince-image-box {
        margin: 0 auto 20px;
    }

    .prince-text-info {
        width: 100%;
    }
}

/* ========================================= */
/* نافذة تفاصيل سكشن "حائل الأجمل" */
/* ========================================= */
.life-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: none;
}

.life-modal.open {
    display: block;
}

.life-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.life-modal-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1180px, calc(100% - 48px));
    max-height: min(720px, calc(100% - 48px));
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.life-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
}

.life-modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 520px;
}

.life-modal-media {
    position: relative;
    background: #0f172a;
    background-size: cover;
    background-position: center;
}

.life-modal-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.55));
}

.life-modal-content {
    background: #2a1540;
    color: #fff;
    padding: 34px 28px;
    overflow: auto;
}

.life-modal-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.life-modal-sub {
    opacity: 0.92;
    margin-bottom: 18px;
    font-size: 14px;
}

.life-modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.life-stat {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px;
}

.life-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.life-stat-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.life-stat strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.life-stat span {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.life-modal-text {
    line-height: 1.9;
    font-size: 14px;
    opacity: 0.95;
}

@media (max-width: 900px) {
    .life-modal-body {
        grid-template-columns: 1fr;
    }
    .life-modal-media {
        min-height: 240px;
    }
}

/* ========================================= */
/* خريطة حائل + المحافظات (فوق سكشن اكتشف أكثر) */
/* ========================================= */
.hail-govs-gallery {
    padding: var(--dga-page-pt) 0;
    background: linear-gradient(180deg, #f6fffb 0%, #ffffff 55%, #f3fbf7 100%);
    border-top: 1px solid rgba(20, 87, 58, 0.10);
    border-bottom: 1px solid rgba(20, 87, 58, 0.10);
}

.hail-govs-wrap {
    width: min(1440px, calc(100% - 2 * var(--dga-page-px)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: stretch;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(20, 87, 58, 0.06), rgba(34, 197, 94, 0.04) 45%, rgba(255, 255, 255, 0.92));
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.hail-govs-list {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 18px;
}

.hail-govs-title {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 800;
    color: #0f5132;
    margin-bottom: 12px;
}

.hail-govs-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hail-gov-btn {
    font-family: var(--font-main);
    border: 1px solid #d7e4f2;
    border-radius: 12px;
    background: #fff;
    color: #1f2a37;
    font-weight: 800;
    padding: 14px 14px;
    min-height: 64px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hail-gov-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.hail-gov-btn.active {
    border-color: #14573a;
    box-shadow: 0 12px 28px rgba(20, 87, 58, 0.14);
}

.hail-govs-preview {
    font-family: var(--font-main);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hail-govs-preview-head {
    padding: 18px 18px 0;
}

.hail-govs-preview-head h3 {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 6px;
}

.hail-govs-preview-head p {
    color: #4b5563;
    line-height: 1.8;
    padding-bottom: 12px;
}

/* نبذة ويكيبيديا كاملة: فقرات + تمرير دون قص النص في الجافاسكربت */
.hail-govs-preview-head .hail-gov-preview-desc {
    white-space: pre-line;
    max-height: clamp(200px, 42vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
}

.hail-wiki-credit {
    margin: 8px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}

.hail-wiki-credit a {
    color: #166a45;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hail-wiki-credit[hidden] {
    display: none !important;
}

.hail-govs-preview-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
}

.hail-govs-stat {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
    color: #111827;
}

.hail-govs-stat img {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.hail-govs-stat strong {
    font-weight: 900;
}

.hail-govs-preview-media {
    position: relative;
    flex: 1;
    background: #0b1220;
    /* مقاس معقول ومتجاوب للصورة */
    min-height: 260px;
    max-height: 360px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hail-govs-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: none;
}

.hail-govs-preview-media.has-image img {
    display: block;
}

.hail-govs-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    padding: 24px;
}

.hail-govs-preview-media.has-image .hail-govs-empty {
    display: none;
}

@media (max-width: 992px) {
    .hail-govs-wrap {
        width: calc(100% - 2 * var(--dga-page-px));
        grid-template-columns: 1fr;
    }

    .hail-beautiful-carousel .section-header {
        top: 12px;
        right: 20px;
        left: auto;
        width: auto;
        margin: 0;
    }

    .hail-beautiful-carousel .beautiful-carousel-wrapper {
        width: calc(100% - 48px);
        margin: 0 auto;
    }
}

.hail-beautiful-carousel {
    padding: 72px 0;
    background: #ffffff;
    position: relative;
    margin: 20px 0;
}

.hail-beautiful-carousel .section-header {
    position: absolute;
    top: 18px;
    right: 80px;
    left: auto;
    z-index: 5;
    width: auto;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    pointer-events: none;
}

.hail-beautiful-carousel .section-header h2 {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
    pointer-events: auto;

}
@media screen and (max-width: 992px) {
    .hail-beautiful-carousel .section-header {
        top: 12px;
        right: 20px;
        left: auto;
        width: auto;
        margin: 0;
    }

    .hail-beautiful-carousel .section-header h2 {
        font-size: 1.8rem;
    }
    
}

.hail-beautiful-carousel .beautiful-carousel-wrapper {
    width: 100%;
    margin: 0;
    background: transparent;
    border: 0;
    overflow: visible;
    padding-top: 56px;
}

.hail-beautiful-carousel .beautiful-track {
    display: flex;
    gap: 10px;
    min-height: 440px;
    width: 100%;
}

.hail-beautiful-carousel .beautiful-slide {
    min-width: auto;
    height: 440px;
    padding: 0;
    border-radius: 0;
    border: 1px solid #dbe2e8;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat; /* منع تكرار الصورة داخل الكرت */
    position: relative;
}

.hail-beautiful-carousel .beautiful-slide:not(.featured)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 77, 49, 0.12), rgba(7, 77, 49, 0.72));
}

.hail-beautiful-carousel .beautiful-slide:not(.featured) span {
    position: absolute;
    z-index: 2;
    right: 16px;
    left: 16px;
    bottom: 16px;
    transform: none;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    writing-mode: horizontal-tb;
    text-align: center;
    padding: 10px 10px;
    border-radius: 14px;
    background: rgba(7, 77, 49, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0.92;
}

.hail-beautiful-carousel .beautiful-slide--healthy .beautiful-slide-copy {
    position: absolute;
    z-index: 2;
    right: 14px;
    left: 14px;
    bottom: 14px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: rgba(7, 77, 49, 0.46);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #ffffff;
    text-align: right;
}

.hail-beautiful-carousel .beautiful-slide--healthy > span {
    display: none;
}

.hail-beautiful-carousel .beautiful-slide--healthy .beautiful-slide-copy h3 {
    margin: 0 0 8px;
    padding: 0;
    background: transparent;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    text-align: right;
}

.hail-beautiful-carousel .beautiful-slide--healthy .beautiful-slide-copy p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.96);
}

.hail-beautiful-carousel .beautiful-slide--healthy .beautiful-slide-copy p:last-child {
    margin-bottom: 0;
}

.hail-beautiful-carousel .beautiful-slide.active {
    transform: translateY(-6px) scale(1.015);
    z-index: 3;
    border-color: rgba(27, 131, 84, 0.55);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.hail-beautiful-carousel .beautiful-slide:not(.featured) {
    transition: flex-grow 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s ease,
                filter 0.35s ease,
                opacity 0.35s ease,
                background-size 2s ease;
    opacity: 0.85;
    filter: saturate(0.95);
    /* مسافة داخلية كافية حتى لا يُقتطع النص من الأسفل */
    padding: 20px 18px 30px;
}

.hail-beautiful-carousel .beautiful-slide:not(.featured):hover,
.hail-beautiful-carousel .beautiful-slide.active {
    opacity: 1;
    transform: translateY(-6px) scale(1.015);
    filter: saturate(1.08);
    background-size: 118%; /* تكبير بطيء للصورة (Ken Burns) */
}

.hail-beautiful-carousel .beautiful-slide:not(.featured):hover span,
.hail-beautiful-carousel .beautiful-slide.active span {
    opacity: 1;
}

/* تدرج داكن أقوى عند التمدد — أنيمشن ناعم */
.hail-beautiful-carousel .beautiful-slide::after {
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.55s ease;
    opacity: 0.35;
    background: linear-gradient(180deg,
        rgba(7, 77, 49, 0.05) 0%,
        rgba(7, 77, 49, 0.35) 40%,
        rgba(7, 77, 49, 0.85) 100%);
}
.hail-beautiful-carousel .beautiful-slide:not(.featured):hover::after,
.hail-beautiful-carousel .beautiful-slide.active::after {
    opacity: 1;
    background: linear-gradient(180deg,
        rgba(7, 77, 49, 0.15) 0%,
        rgba(7, 77, 49, 0.55) 45%,
        rgba(7, 77, 49, 0.92) 100%);
}

/* مؤشر سهم يظهر عند التمدد */
.hail-beautiful-carousel .beautiful-arrow {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 2;
}
.hail-beautiful-carousel .beautiful-slide:hover .beautiful-arrow,
.hail-beautiful-carousel .beautiful-slide.active .beautiful-arrow {
    opacity: 1;
    transform: scale(1);
}

/* إظهار العنوان والوصف عند التمدد (hover/active) — أنيمشن احترافي */
.hail-beautiful-carousel .beautiful-slide h3 {
    transition: opacity 0.45s ease 0.05s,
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
                writing-mode 0.55s ease 0.05s,
                font-size 0.45s ease 0.05s;
}
.hail-beautiful-carousel .beautiful-slide p,
.hail-beautiful-carousel .beautiful-slide .beautiful-slide-copy p {
    transition: opacity 0.5s ease 0.2s,
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hail-beautiful-carousel .beautiful-slide:hover h3,
.hail-beautiful-carousel .beautiful-slide.active h3 {
    opacity: 1 !important;
    transform: translateY(0) !important;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}
.hail-beautiful-carousel .beautiful-slide:hover p,
.hail-beautiful-carousel .beautiful-slide.active p,
.hail-beautiful-carousel .beautiful-slide:hover .beautiful-slide-copy p,
.hail-beautiful-carousel .beautiful-slide.active .beautiful-slide-copy p {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================ */
/* أنيمشن احترافي لعرض النصوص على كروت حائل الأجمل */
/* ============================================ */

/* الشرائح غير المتمدة (الافتراضية): إخفاء الوصف */
.hail-beautiful-carousel .beautiful-slide:not(.active):not(:hover) p,
.hail-beautiful-carousel .beautiful-slide:not(.active):not(:hover) .beautiful-slide-copy p {
    opacity: 0 !important;
    transform: translateY(20px);
    transition: opacity 0s ease 0s, transform 0s ease 0s;
}

/* الشرائح المنكمشة: عنوان عمودي أنيق مع أنيمشن دوران سلس */
.hail-beautiful-carousel .beautiful-slide:not(.active):not(:hover) h3 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 100%;
    margin: 0 auto;
    font-size: 16px;
    letter-spacing: 0.5px;
    align-self: center;
}

/* منع تداخل أزرار الإتاحة العائمة مع قسم حائل الأجمل */
.hail-beautiful-carousel .beautiful-slide {
    z-index: 1;
}
.hail-beautiful-carousel .beautiful-slide.active {
    z-index: 3;
}

.hail-beautiful-carousel .beautiful-slide.featured {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.hail-beautiful-carousel .beautiful-slide.featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.featured-overlay {
    position: relative;
    z-index: 2;
}

.featured-overlay h3 {
    font-size: 23px;
}

.featured-stats {
    display: flex;
    gap: 24px;
}

.featured-stats strong {
    font-size: 30px;
}

.featured-stats span {
    display: block;
    font-size: 12px;
    opacity: 0.95;
}

.featured-desc {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 8px;
}

.hail-map-section .section-header {
    justify-content: space-between;
}

.hail-map-section .section-header h2 {
    color: #49759f;
}

.hail-map-section .section-desc {
    display: none;
}

.hail-map-section .hail-map-layout {
    /* تكبير السكشن ليكون أقرب لعرض الشاشة */
    display: grid;
    width: min(1640px, calc(100% - 48px));
    height: 680px;
    margin: 0 auto;
    border: 1px solid #dbe2e8;
    border-radius: 0;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    overflow: hidden;
}

.hail-map-section .map-panel {
    border: 0;
    border-radius: 0;
    min-height: 100%;
    height: 100%;
    min-width: 0;
    position: relative;
}

.hail-map-section #hail-map {
    min-height: 320px;
}

.hail-map-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Leaflet tweaks داخل خريطة الصفحة الرئيسية */
.hail-map-frame.leaflet-container {
    font-family:var(--font-main);
    background: #f3f6f8;
}

.hail-map-section .leaflet-control-attribution {
    display: none;
}

/* Label فوق نقاط الخريطة */
.hail-map-label {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border: 1px solid rgba(2, 6, 23, 0.10);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
}

.hail-map-label.leaflet-tooltip-top:before {
    border-top-color: rgba(255, 255, 255, 0.96);
}

.hail-map-section .map-filters {
    border: 0;
    border-right: 1px solid #dbe2e8;
    border-radius: 0;
    background: #f8fbff;
    padding: 28px 24px;
}

.map-side-title {
    color: #6483a1;
    line-height: 1.9;
    margin-bottom: 16px;
}

/* بحث الخريطة */
.map-search {
    margin: 12px 0 18px;
}

.map-search-field {
    position: relative;
}

.map-search-input {
    width: 100%;
    border: 1px solid #dbe2e8;
    border-radius: 14px;
    padding: 12px 42px 12px 12px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
}

.map-search-input:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.12);
}

.map-search-clear {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.06);
    color: #334155;
    cursor: pointer;
    display: none;
}

.map-search-results {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.map-search-results:empty {
    display: none;
}

.map-search-result {
    width: 100%;
    text-align: right;
    border: 1px solid #dbe2e8;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    transition: 180ms ease;
}

.map-search-result:hover {
    border-color: #2b6cb0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.map-search-result strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.map-search-result span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.map-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.map-options-grid .map-filter-btn {
    min-height: 150px;
    margin: 0;
    border: 1px solid #d7e4f2;
    border-radius: 12px;
    background: #fff;
    color: #1f2a37;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.map-options-grid .map-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.map-options-grid .map-filter-btn.active {
    background: #ffffff;
    border-color: #2b6cb0;
    box-shadow: 0 12px 28px rgba(43, 108, 176, 0.14);
}

.map-filter-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef6f2;
    border: 1px solid #d9ece2;
}

.map-filter-icon img {
    width: 26px;
    height: 26px;
    opacity: 0.9;
}

.map-filter-check {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #14573a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 150ms ease, transform 150ms ease;
}

.map-options-grid .map-filter-btn.active .map-filter-check {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .hail-beautiful-carousel .beautiful-track {
        flex-direction: column;
        height: auto;
    }

    .hail-beautiful-carousel .beautiful-slide:not(.featured) {
        height: 110px;
    }

    .hail-beautiful-carousel .beautiful-slide:not(.featured) span {
        writing-mode: horizontal-tb;
        right: 16px;
        bottom: 14px;
        transform: none;
        font-size: 18px;
    }

    .hail-beautiful-carousel .beautiful-slide.featured {
        height: 250px;
    }

    .hail-map-section .hail-map-layout {
        height: auto;
        grid-template-columns: 1fr;
    }

    /* Leaflet يحتاج ارتفاع صريح عندما يصبح layout بطول auto */
    .hail-map-section .map-panel {
        min-height: 380px;
        height: 380px;
    }
}

/* =========================================================
   الشهادة / الختم الرقمي (Digital Stamp)
   مصدر الأكواد: ملفات docx (css.docx)
   ========================================================= */
.digital-stamp-card {
    padding: 8px 32px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
}

.digital-stamp-card .digital-stamp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.digital-stamp-card .digital-stamp-header h6 {
    margin: 0;
    color: #161616;
    font-size: 14px;
    flex: 1;
    min-width: 220px;
}

.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card {
    cursor: pointer;
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    -webkit-user-select: none;
}

.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card span {
    color: #1b8354;
    font-size: 14px;
}

/* ===== تحسينات بصرية شاملة للنماذج والعناصر ===== */

/* حقول الإدخال — تركيز أفضل */
.hail-card .form-control:focus,
.hail-card input[type="text"]:focus,
.hail-card input[type="tel"]:focus,
.hail-card input[type="email"]:focus,
.hail-card input[type="number"]:focus,
.hail-card textarea:focus {
    border-color: #1b8354;
    box-shadow: 0 0 0 3px rgba(27, 131, 84, 0.12);
    outline: none;
}

/* القوائم المنسدلة — تأكيد custom-select */
.hail-card select.custom-select,
.hail-card select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231b8354' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 36px;
    cursor: pointer;
}

/* أزرار الراديو — مظهر حديث */
.hail-card input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1b8354;
    cursor: pointer;
    vertical-align: middle;
}
.hail-card label:has(input[type="radio"]),
.hail-card .radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}
.hail-card label:has(input[type="radio"]):hover,
.hail-card .radio-label:hover {
    border-color: #1b8354;
    background: #f0f9f4;
}
.hail-card label:has(input[type="radio"]:checked),
.hail-card .radio-label:has(input[type="radio"]:checked) {
    border-color: #1b8354;
    background: #e6f4ee;
    color: #0f5132;
}

/* مربعات الاختيار (checkbox) */
.hail-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1b8354;
    cursor: pointer;
}

/* زر رفع الملفات — مظهر موحد */
.hail-card input[type="file"] {
    font-size: 13px;
    cursor: pointer;
}
.hail-card .file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hail-card .file-upload-btn:hover {
    border-color: #1b8354;
    background: #f0f9f4;
    color: #0f5132;
}

/* الحالة الفارغة — مكون احترافي */
.hail-card .empty-state {
    text-align: center;
    padding: 48px 20px;
}
.hail-card .empty-state .empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f0f9f4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hail-card .empty-state .empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.hail-card .empty-state .empty-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* مجموعات حقول النماذج — تباعد متناسق */
.hail-card .form-group,
.hail-card .contact-form-group {
    margin-bottom: 20px;
}
.hail-card .form-group label,
.hail-card .contact-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.hail-card .form-group .form-control,
.hail-card .contact-form-group .form-control,
.hail-card .form-group input,
.hail-card .form-group textarea,
.hail-card .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d2d6db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* زر الإرسال — مظهر موحد */
.hail-card .btn-submit,
.hail-card .btn-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1b8354;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.hail-card .btn-submit:hover,
.hail-card .btn-search-trigger:hover {
    background: #14573a;
    transform: translateY(-1px);
}

/* info-card hover — تأثير تفاعلي */
.info-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

/* news-card hover — تأثير تفاعلي */
.news-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.digital-stamp-card svg {
    max-width: 100%;
    height: auto;
}

.digital-stamp-card .digital-stamp-header > svg {
    flex: 0 0 auto;
}

.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card svg,
.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card img {
    transition: 0.3s;
}

.digital-stamp-card .digital-stamp-header.open .btn-digital-stamp-card svg,
.digital-stamp-card .digital-stamp-header.open .btn-digital-stamp-card img {
    transform: rotate(180deg);
}

.btn-digital-stamp-card img {
    margin-right: 4px;
    margin-left: 4px;
}

.digital-stamp-card .digital-stamp-body {
    padding-top: 18px;
    padding-bottom: 32px;
    display: none;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container {
    margin-bottom: 32px;
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1 1 0;
    min-width: 260px;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box .img-border-rounded {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #067647;
    border-radius: 100%;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box h6 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #161616;
    font-size: 18px;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box .green-text {
    color: #1b8354;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box p {
    margin: 0;
    color: #384250;
    font-size: 16px;
}

.digital-stamp-card .digital-stamp-body .stamp-link-box {
    padding: 8px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    background: #fff;
    flex-wrap: wrap;
}

.digital-stamp-card .digital-stamp-body .stamp-link-box p {
    margin: 0;
    color: #161616;
    font-size: 16px;
}

.digital-stamp-card .digital-stamp-body .stamp-link-box a {
    color: #1b8354;
    font-size: 16px;
    text-decoration: underline;
}

.stamp-ar {
    direction: rtl;
}

.stamp-en {
    direction: ltr;
}

@media (max-width: 768px) {
    .digital-stamp-card {
        padding: 8px 16px;
    }

    .digital-stamp-card .digital-stamp-header {
        flex-wrap: wrap;
    }

    .digital-stamp-card .digital-stamp-header .btn-digital-stamp-card {
        flex: 100%;
        margin-right: 33px;
    }

    .digital-stamp-card .digital-stamp-body .digital-stamp-container {
        flex-direction: column;
    }

    [dir="ltr"] .digital-stamp-card .digital-stamp-header .btn-digital-stamp-card {
        margin-right: 0;
        margin-left: 33px;
    }
}

/* أيقونات الحقول في نموذج الشكاوى والمقترحات: حشوة تمنع تداخل النص مع الأيقونة
   (أُضيفت هنا في style.css لأن تعديل ملف الواجهة لم يتزامن مع السيرفر) */
.complain-form .complain-input-with-icon {
    padding-right: 42px !important;
}

/* ========================================= */
/* مقترحاتك لتكون حائل الأجمل (واتساب) */
/* ========================================= */
.beautiful-suggest-section {
    padding: 6px 0 34px;
}

.beautiful-suggest-card {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #0a745d, #074f44);
    border-radius: 18px;
    padding: 28px 32px;
    color: #fff;
    box-shadow: 0 14px 34px rgba(10, 116, 93, .28);
}

.beautiful-suggest-icon {
    width: 66px;
    height: 66px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.beautiful-suggest-icon svg {
    width: 34px;
    height: 34px;
    fill: #fff;
}

.beautiful-suggest-copy {
    flex: 1 1 320px;
    min-width: 260px;
}

.beautiful-suggest-copy h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 24px;
}

.beautiful-suggest-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    line-height: 1.8;
}

.beautiful-suggest-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #0a745d;
    font-weight: 700;
    padding: 13px 22px;
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s;
    flex-shrink: 0;
}

.beautiful-suggest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
    color: #074f44;
}

.beautiful-suggest-btn svg {
    width: 22px;
    height: 22px;
    fill: #25D366;
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .beautiful-suggest-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .beautiful-suggest-btn {
        width: 100%;
        justify-content: center;
    }
}