/* ===== e-Visa Portal theme ===== */
:root {
    --ev-navy: #0f2a5c;
    --ev-navy-2: #1b3f86;
    --ev-gold: #c8a24a;
    --ev-bg: #f4f6fb;
    --ev-border: #e3e8f2;
    --ev-text: #1f2937;
    --ev-muted: #6b7280;
    --ev-radius: 14px;
    --bs-primary: #1b3f86;
    --bs-primary-rgb: 27, 63, 134;
    --bs-link-color: #1b3f86;
    --bs-link-color-rgb: 27, 63, 134;
    --bs-link-hover-color: #0f2a5c;
}

html { font-size: 15px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Tahoma, Arial, sans-serif;
    background: var(--ev-bg);
    color: var(--ev-text);
}
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Kufi Arabic", "Geeza Pro", Arial, sans-serif; }

.skip-link { position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

.btn-primary { --bs-btn-bg: var(--ev-navy-2); --bs-btn-border-color: var(--ev-navy-2); --bs-btn-hover-bg: var(--ev-navy); --bs-btn-hover-border-color: var(--ev-navy); --bs-btn-active-bg: var(--ev-navy); --bs-btn-disabled-bg: var(--ev-navy-2); }
.btn-outline-primary { --bs-btn-color: var(--ev-navy-2); --bs-btn-border-color: var(--ev-navy-2); --bs-btn-hover-bg: var(--ev-navy-2); --bs-btn-hover-border-color: var(--ev-navy-2); --bs-btn-active-bg: var(--ev-navy); }
.btn-gold { background: var(--ev-gold); color: #1a1a1a; border: none; font-weight: 600; }
.btn-gold:hover { background: #b38e39; color: #000; }
.text-navy { color: var(--ev-navy) !important; }
.text-gold { color: var(--ev-gold) !important; }
.bg-navy { background: var(--ev-navy) !important; }
.form-control:focus, .form-select:focus { border-color: #8aa4d6; box-shadow: 0 0 0 .2rem rgba(27, 63, 134, .15); }
.form-label { font-weight: 600; font-size: .9rem; }
.required::after { content: " *"; color: #dc3545; }

/* ---- Header ---- */
.gov-strip { background: var(--ev-navy); color: #cfd8ea; font-size: .8rem; padding: .35rem 0; }
.gov-strip a { color: #fff; text-decoration: none; }
.gov-strip a:hover { color: var(--ev-gold); }
.main-nav { box-shadow: 0 2px 12px rgba(15, 42, 92, .06); }
.main-nav .nav-link { font-weight: 500; color: #334155; padding-inline: .8rem !important; }
.main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--ev-navy-2); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ev-navy), var(--ev-navy-2)); color: var(--ev-gold); font-size: 1.25rem; }
.navbar-brand strong { color: var(--ev-navy); font-size: 1rem; }
.navbar-brand small { font-size: .72rem; }

/* ---- Hero ---- */
.hero {
    background: radial-gradient(circle at 85% 20%, rgba(200, 162, 74, .25), transparent 40%),
                linear-gradient(135deg, var(--ev-navy) 0%, var(--ev-navy-2) 100%);
    color: #fff; padding: 4.5rem 0 6rem; position: relative; overflow: hidden;
}
.hero-photo {
    background: linear-gradient(90deg, rgba(11, 31, 69, .92) 0%, rgba(15, 42, 92, .75) 45%, rgba(15, 42, 92, .15) 100%),
                url("../images/hero-pyramids.svg") center bottom / cover no-repeat;
    padding: 5.5rem 0 7rem;
}
[dir="rtl"] .hero-photo {
    background: linear-gradient(270deg, rgba(11, 31, 69, .92) 0%, rgba(15, 42, 92, .75) 45%, rgba(15, 42, 92, .15) 100%),
                url("../images/hero-pyramids.svg") center bottom / cover no-repeat;
}
@media (max-width: 991.98px) { .hero-photo { background-color: #0f2a5c; } .hero-photo, [dir="rtl"] .hero-photo { background-image: linear-gradient(rgba(11, 31, 69, .85), rgba(15, 42, 92, .7)), url("../images/hero-pyramids.svg"); } }
.brand-emblem { width: 42px; height: 42px; }

/* ---- Home banner slider ---- */
.home-slider { position: relative; background: #0b1f45; }
.home-slider .carousel-item { height: 560px; position: relative; overflow: hidden; }
.home-slider .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-slider .carousel-item.active .slide-img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.home-slider .slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 31, 69, .9) 0%, rgba(15, 42, 92, .65) 45%, rgba(15, 42, 92, .1) 100%); }
[dir="rtl"] .home-slider .slide-overlay { background: linear-gradient(270deg, rgba(11, 31, 69, .9) 0%, rgba(15, 42, 92, .65) 45%, rgba(15, 42, 92, .1) 100%); }
.home-slider .slide-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; color: #fff; padding-bottom: 2rem; }
.home-slider .slide-title { font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.home-slider .lead { color: #e2e9f7; max-width: 600px; }
.home-slider .carousel-item.active .slide-content > div { animation: slideUp .8s ease both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.home-slider .carousel-indicators { margin-bottom: 1.25rem; z-index: 3; }
.home-slider .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 4px; border: 0; background: #fff; opacity: .5; }
.home-slider .carousel-indicators .active { background: var(--ev-gold); opacity: 1; width: 44px; }
.home-slider .carousel-control-prev, .home-slider .carousel-control-next { width: 6%; z-index: 3; }
@media (max-width: 767.98px) {
    .home-slider .carousel-item { height: 480px; }
    .home-slider .slide-overlay, [dir="rtl"] .home-slider .slide-overlay { background: linear-gradient(rgba(11, 31, 69, .85), rgba(15, 42, 92, .7)); }
    .home-slider .carousel-control-prev, .home-slider .carousel-control-next { display: none; }
    .home-slider .btn-lg { --bs-btn-padding-y: .5rem; --bs-btn-font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .home-slider .slide-img, .home-slider .slide-content > div { animation: none !important; } }
.stats-strip { background: var(--ev-navy); color: #cfd8ea; padding: 1.25rem 0 4.5rem; border-top: 3px solid var(--ev-gold); }
.hero-photo .hero-card { background: rgba(11, 31, 69, .78); border-color: rgba(200, 162, 74, .35); }
.discover-card { position: relative; border-radius: var(--ev-radius); overflow: hidden; height: 220px; box-shadow: 0 6px 20px rgba(15, 42, 92, .1); }
.discover-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.discover-card:hover img { transform: scale(1.06); }
.discover-card .caption { position: absolute; inset: auto 0 0 0; padding: 1rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.req-list li { display: flex; gap: .5rem; align-items: flex-start; padding: .35rem 0; }
.notice-box { background: #fff8e6; border: 1px solid #f1d9a0; border-inline-start: 5px solid var(--ev-gold); border-radius: var(--ev-radius); padding: 1.25rem 1.5rem; color: #6b4e12; }
.notice-box li { margin-bottom: .35rem; }
.page-header { background: linear-gradient(90deg, rgba(11, 31, 69, .95), rgba(27, 63, 134, .8)), url("../images/hero-pyramids.svg") center 75% / cover no-repeat; }
.hero h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); }
.hero .lead { color: #d9e2f5; }
.hero-badge { display: inline-block; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: .3rem .8rem; border-radius: 50px; font-size: .8rem; }
.hero-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--ev-radius); padding: 1.5rem; backdrop-filter: blur(4px); }
.hero-stat { font-size: 1.8rem; font-weight: 800; color: var(--ev-gold); }
.lift { margin-top: -3.5rem; position: relative; z-index: 2; }

/* ---- Cards ---- */
.card-ev { background: #fff; border: 1px solid var(--ev-border); border-radius: var(--ev-radius); box-shadow: 0 4px 18px rgba(15, 42, 92, .05); }
.card-ev .card-header { background: transparent; border-bottom: 1px solid var(--ev-border); font-weight: 700; color: var(--ev-navy); padding: 1rem 1.25rem; }
.card-ev .card-body { padding: 1.25rem; }
@media (min-width: 768px) { .card-ev .card-body { padding: 1.75rem; } }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #eaf0fb; color: var(--ev-navy-2); font-size: 1.4rem; }
.step-number { width: 34px; height: 34px; border-radius: 50%; background: var(--ev-gold); color: #1a1a1a; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.visa-card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s; cursor: pointer; height: 100%; }
.visa-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15, 42, 92, .12); }
.visa-card.selected { border: 2px solid var(--ev-navy-2); box-shadow: 0 0 0 4px rgba(27, 63, 134, .12); }
.visa-card .price { font-size: 1.6rem; font-weight: 800; color: var(--ev-navy); }
.visa-card .badge-cat { background: #eaf0fb; color: var(--ev-navy-2); }
.visa-card.business .badge-cat { background: #fbf3e2; color: #8a6a1f; }

/* ---- Wizard stepper ---- */
.wizard-steps { display: flex; list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: step; gap: .25rem; }
.wizard-steps li { flex: 1; text-align: center; position: relative; font-size: .78rem; color: var(--ev-muted); }
.wizard-steps li .dot { width: 36px; height: 36px; margin: 0 auto .4rem; border-radius: 50%; background: #fff; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; font-weight: 700; position: relative; z-index: 1; }
.wizard-steps li::before { content: ""; position: absolute; top: 18px; inset-inline-start: -50%; width: 100%; height: 2px; background: #cbd5e1; }
.wizard-steps li:first-child::before { display: none; }
.wizard-steps li.done .dot { background: #198754; border-color: #198754; color: #fff; }
.wizard-steps li.done::before, .wizard-steps li.active::before { background: #198754; }
.wizard-steps li.active .dot { background: var(--ev-navy-2); border-color: var(--ev-navy-2); color: #fff; box-shadow: 0 0 0 5px rgba(27, 63, 134, .15); }
.wizard-steps li.active { color: var(--ev-navy); font-weight: 700; }
.wizard-steps a { color: inherit; text-decoration: none; }
@media (max-width: 575.98px) {
    .wizard-steps li .label { display: none; }
    .wizard-steps li.active .label { display: block; position: absolute; width: 140px; inset-inline-start: 50%; transform: translateX(-50%); }
    [dir="rtl"] .wizard-steps li.active .label { transform: translateX(50%); }
    .wizard-steps { margin-bottom: 2.5rem; }
    .wizard-steps li .dot { width: 30px; height: 30px; font-size: .8rem; }
    .wizard-steps li::before { top: 15px; }
}

.app-summary { background: linear-gradient(135deg, #eef3fc, #fff); border: 1px dashed #b8c7e6; border-radius: 12px; padding: .75rem 1rem; }

/* ---- Upload zone ---- */
.upload-zone { border: 2px dashed #b8c7e6; border-radius: var(--ev-radius); background: #f8faff; padding: 1.5rem; text-align: center; transition: background .15s, border-color .15s; cursor: pointer; position: relative; }
.upload-zone:hover, .upload-zone.dragover { background: #eef3fc; border-color: var(--ev-navy-2); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone .preview { max-height: 180px; max-width: 100%; border-radius: 8px; object-fit: contain; }
.upload-zone.has-file { border-style: solid; border-color: #198754; background: #f3fbf6; }

/* ---- Status ---- */
.status-badge { font-weight: 600; padding: .45em .8em; border-radius: 50px; }
.status-draft { background: #e5e7eb; color: #374151; }
.status-pending { background: #fff3cd; color: #8a6100; }
.status-underreview { background: #dbeafe; color: #1e40af; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 15px; top: 4px; bottom: 4px; width: 2px; background: var(--ev-border); }
.timeline li { position: relative; padding-inline-start: 46px; padding-bottom: 1.25rem; }
.timeline li .tl-icon { position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--ev-border); }
.timeline li.tl-approved .tl-icon { border-color: #198754; color: #198754; }
.timeline li.tl-rejected .tl-icon { border-color: #dc3545; color: #dc3545; }
.timeline li.tl-pending .tl-icon, .timeline li.tl-underreview .tl-icon { border-color: var(--ev-navy-2); color: var(--ev-navy-2); }

.progress-track { display: flex; justify-content: space-between; position: relative; margin: 1rem 0 .5rem; }
.progress-track::before { content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 4px; background: #e5e7eb; border-radius: 4px; }
.progress-track .bar { position: absolute; top: 14px; inset-inline-start: 0; height: 4px; background: #198754; border-radius: 4px; transition: width .5s; }
.progress-track .node { position: relative; z-index: 1; text-align: center; width: 25%; font-size: .75rem; color: var(--ev-muted); }
.progress-track .node .c { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid #e5e7eb; margin: 0 auto .35rem; display: flex; align-items: center; justify-content: center; }
.progress-track .node.on .c { border-color: #198754; background: #198754; color: #fff; }
.progress-track .node.fail .c { border-color: #dc3545; background: #dc3545; color: #fff; }

/* ---- Payment ---- */
.card-preview { background: linear-gradient(135deg, #1b3f86, #0f2a5c 60%, #0a1d40); color: #fff; border-radius: 16px; padding: 1.4rem; aspect-ratio: 1.586; max-width: 360px; position: relative; box-shadow: 0 15px 35px rgba(15, 42, 92, .3); }
.card-preview .chip { width: 44px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #e7c76b, #b8912f); }
.card-preview .number { font-family: "Consolas", monospace; font-size: 1.25rem; letter-spacing: 2px; direction: ltr; }
.card-preview .brand { position: absolute; top: 1.2rem; inset-inline-end: 1.4rem; font-weight: 800; font-style: italic; font-size: 1.2rem; }
.secure-note { font-size: .8rem; color: var(--ev-muted); }
.ltr-input { direction: ltr; text-align: left; }
[dir="rtl"] .ltr-input { text-align: right; }

/* ---- CMS content ---- */
.cms-content { line-height: 1.75; }
.cms-content img { max-width: 100%; height: auto; border-radius: 10px; }
.cms-content h2, .cms-content h3 { color: var(--ev-navy); margin-top: 1.5rem; }
.cms-content table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.cms-content table td, .cms-content table th { border: 1px solid var(--ev-border); padding: .5rem; }
.cms-content iframe { max-width: 100%; }
.page-header { color: #fff; padding: 2.75rem 0; }
.page-header h1 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: #9fb3d9; --bs-breadcrumb-item-active-color: #d9e2f5; margin: 0 0 .5rem; }
.page-header .breadcrumb a { color: #fff; }

/* ---- Auth ---- */
.auth-wrap { max-width: 480px; margin: 3rem auto; }
.otp-input { font-size: 1.8rem; letter-spacing: .6rem; text-align: center; font-weight: 700; direction: ltr; }

/* ---- Footer ---- */
.site-footer { background: #0b1f45; color: #9fb0d0; }
.site-footer a { color: #cfd8ea; text-decoration: none; }
.site-footer a:hover { color: var(--ev-gold); }

/* ---- Tables ---- */
.table-ev { --bs-table-bg: transparent; }
.table-ev thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ev-muted); border-bottom-width: 1px; white-space: nowrap; }
.table-ev td { vertical-align: middle; }

/* Responsive tables become stacked cards on phones */
@media (max-width: 767.98px) {
    .table-stack thead { display: none; }
    .table-stack tr { display: block; border: 1px solid var(--ev-border); border-radius: 12px; margin-bottom: .75rem; background: #fff; padding: .5rem .75rem; }
    .table-stack td { display: flex; justify-content: space-between; gap: 1rem; border: none; padding: .35rem 0; text-align: end; }
    .table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--ev-muted); text-align: start; }
    .table-stack td.actions { justify-content: flex-end; }
    .table-stack td.actions::before { display: none; }
}

.fade-out { opacity: 0; transition: opacity .3s; }
.swal2-popup { border-radius: 16px !important; font-family: inherit; }
.swal2-toast { box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ev-muted); }
.empty-state i { font-size: 3rem; color: #c3cee3; }
.dl-ev dt { font-weight: 500; color: var(--ev-muted); font-size: .85rem; }
.dl-ev dd { font-weight: 600; margin-bottom: .75rem; }

/* =====================================================================
   Government theme overrides
   ===================================================================== */
:root { --ev-radius: 6px; --ev-red: #ce1126; }
html[data-font="-1"] { font-size: 14px; }
html[data-font="1"] { font-size: 18px; }
html[data-font="2"] { font-size: 20px; }

/* Official website banner */
.gov-banner { background: #f1f3f6; border-bottom: 1px solid #dde2ea; font-size: .78rem; color: #374151; padding: .3rem 0; }
.gov-flag { width: 24px; height: 16px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.gov-tools .tool-btn { background: #fff; border: 1px solid #cfd6e2; color: var(--ev-navy); font-weight: 700; font-size: .72rem; min-width: 28px; height: 24px; line-height: 22px; padding: 0 .35rem; border-radius: 3px; text-decoration: none; display: inline-block; text-align: center; }
.gov-tools .tool-btn:hover, .gov-tools .tool-btn:focus-visible { background: var(--ev-navy); color: #fff; }
.gov-tools .tool-sep { width: 1px; height: 18px; background: #cfd6e2; margin: 0 .35rem; }

/* State header */
.gov-header { background: #fff; padding: .9rem 0; border-bottom: 1px solid #e5e9f0; }
.gov-brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; }
.gov-emblem { width: 68px; height: 68px; flex-shrink: 0; }
.gov-brand-text { display: flex; flex-direction: column; line-height: 1.2; border-inline-start: 2px solid var(--ev-gold); padding-inline-start: .9rem; }
.gov-state { font-weight: 800; color: var(--ev-navy); font-size: 1.15rem; text-align: start; }
.gov-state-en { font-weight: 700; color: #4b5563; font-size: .72rem; letter-spacing: .14em; }
.gov-portal { font-weight: 600; color: var(--ev-red); font-size: .9rem; margin-top: .15rem; }
.gov-helpline { display: flex; align-items: center; gap: .6rem; color: var(--ev-navy); }
.gov-helpline i { font-size: 1.8rem; color: var(--ev-gold); }
.gov-helpline small { display: block; color: #6b7280; font-size: .72rem; }
@media (max-width: 575.98px) { .gov-emblem { width: 52px; height: 52px; } .gov-state { font-size: 1rem; } }

/* Main navigation */
.gov-nav { background: var(--ev-navy); padding-top: 0; padding-bottom: 0; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.gov-nav .nav-link { color: #e5ebf5 !important; font-weight: 600; font-size: .9rem; padding: .95rem 1rem !important; border-bottom: 3px solid transparent; }
.gov-nav .nav-link:hover { background: rgba(255,255,255,.08); }
.gov-nav .nav-link.active { border-bottom-color: var(--ev-gold); background: rgba(255,255,255,.06); color: #fff !important; }
@media (max-width: 991.98px) { .gov-nav { padding: .4rem 0; } .gov-nav .nav-link { padding: .65rem .5rem !important; border-bottom: 0; border-inline-start: 3px solid transparent; } .gov-nav .nav-link.active { border-inline-start-color: var(--ev-gold); } }
.flag-line { display: flex; height: 4px; }
.flag-line span { flex: 1; }
.flag-line span:nth-child(1) { background: var(--ev-red); }
.flag-line span:nth-child(2) { background: #fff; }
.flag-line span:nth-child(3) { background: #000; }

/* Announcements ticker */
.announce-bar { background: #fff; border-bottom: 1px solid #e5e9f0; font-size: .88rem; }
.announce-bar .label { background: var(--ev-red); color: #fff; font-weight: 700; padding: .55rem 1rem; white-space: nowrap; }
.announce-bar .track { overflow: hidden; flex: 1; position: relative; }
.announce-bar .items { display: inline-flex; white-space: nowrap; padding: .55rem 0; animation: ticker 45s linear infinite; }
.announce-bar .items span { padding-inline-end: 3rem; }
[dir="rtl"] .announce-bar .items { animation-name: ticker-rtl; }
.announce-bar:hover .items { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .announce-bar .items { animation: none; } }

/* Section titles */
.section-title { font-weight: 800; color: var(--ev-navy); position: relative; padding-bottom: .6rem; margin-bottom: 1.25rem; }
.section-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 56px; height: 3px; background: var(--ev-gold); }
.section-title.text-center::after { inset-inline-start: 50%; transform: translateX(-50%); }

/* e-Services tiles */
.service-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; background: #fff; border: 1px solid #dfe5ee; border-top: 4px solid var(--ev-navy-2); border-radius: var(--ev-radius); padding: 1.5rem 1rem; height: 100%; color: var(--ev-text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.service-tile:hover, .service-tile:focus-visible { border-top-color: var(--ev-gold); box-shadow: 0 8px 20px rgba(15,42,92,.1); transform: translateY(-2px); color: var(--ev-text); }
.service-tile i { font-size: 2rem; color: var(--ev-navy-2); }
.service-tile strong { color: var(--ev-navy); }
.service-tile small { color: var(--ev-muted); }

/* More formal look */
.card-ev { border-radius: var(--ev-radius); box-shadow: 0 1px 3px rgba(15,42,92,.06); }
.btn { border-radius: 4px; }
.hero-badge { border-radius: 3px; }
.home-slider .carousel-item { height: 500px; }
.home-slider .carousel-item.active .slide-img { animation-duration: 14s; }
.stats-strip { padding-bottom: 4.5rem; }
.page-header { padding: 2rem 0; border-bottom: 3px solid var(--ev-gold); }

/* Footer */
.gov-footer { background: #0b1f45; color: #a9b7d0; border-top: 4px solid var(--ev-gold); }
.gov-footer .footer-title { color: #fff; font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; margin-bottom: 1rem; }
.gov-footer .footer-links li { padding: .25rem 0; }
.gov-footer a { color: #cfd8ea; text-decoration: none; }
.gov-footer a:hover { color: var(--ev-gold); text-decoration: underline; }
.gov-footer .footer-bottom { background: #071533; color: #8d9cb8; }

/* High-contrast mode (accessibility) */
html[data-contrast="high"] body { background: #fff; color: #000; }
html[data-contrast="high"] .gov-nav, html[data-contrast="high"] .gov-footer, html[data-contrast="high"] .gov-footer .footer-bottom, html[data-contrast="high"] .stats-strip { background: #000 !important; }
html[data-contrast="high"] .home-slider .slide-overlay { background: rgba(0,0,0,.82) !important; }
html[data-contrast="high"] .text-muted, html[data-contrast="high"] .service-tile small { color: #000 !important; }
html[data-contrast="high"] a:not(.btn):not(.nav-link) { text-decoration: underline; }
html[data-contrast="high"] .btn-primary { background: #000; border-color: #000; }
html[data-contrast="high"] .card-ev, html[data-contrast="high"] .service-tile { border: 2px solid #000; }

/* =====================================================================
   "How to apply" (reference design: orange tab + 3x3 numbered cards)
   Classes are usable in any CMS content.
   ===================================================================== */
.ha { --ha-orange: #efac4f; --ha-orange-dark: #dd942f; --ha-bg: #f7f1e6; background: var(--ha-bg) linear-gradient(180deg, #faf6ee 0%, #f3ead9 100%); margin: -1.25rem; padding: 0 0 3rem; border-radius: var(--ev-radius); overflow: hidden; }
@media (min-width: 768px) { .ha { margin: -1.75rem; } }

/* Orange tab with the vertical guide line */
.cms-content .ha-tab { display: inline-block; position: relative; background: var(--ha-orange); color: #3a2a12; font-weight: 800; text-transform: uppercase;
    letter-spacing: .03em; font-size: 1rem; margin: 0; padding: .8rem 4.5rem .8rem 1.25rem; border-start-end-radius: 12px; box-shadow: 0 3px 6px rgba(0, 0, 0, .22); z-index: 1; }
.ha-body { position: relative; margin-inline-start: 2.6rem; padding: 2.5rem 1.5rem 0; border-inline-start: 2px solid var(--ha-orange); }
@media (max-width: 575.98px) { .ha-body { margin-inline-start: 1.25rem; padding: 1.75rem .9rem 0; } .cms-content .ha-tab { padding-inline-end: 2.5rem; } }

/* 3 x 3 grid */
.ha-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 1.25rem; max-width: 820px; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
@media (max-width: 991.98px) { .ha-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (max-width: 575.98px) { .ha-grid { grid-template-columns: 1fr; gap: .9rem; } }

.ha-step { display: flex; min-height: 96px; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    transition: transform .2s ease, box-shadow .2s ease; animation: haIn .5s ease both; }
.ha-step:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .14); }
.ha-step:hover .ha-num { background: #1a1a1a; }
.ha-num { width: 58px; flex-shrink: 0; background: #000; display: flex; align-items: flex-end; justify-content: center; padding-bottom: .55rem;
    font-size: 2.9rem; font-weight: 800; line-height: 1; transition: background .2s; }
.ha-text { padding: .75rem .85rem; font-size: .86rem; font-weight: 700; color: #111; line-height: 1.5; display: flex; align-items: flex-start; }
@media (max-width: 575.98px) { .ha-step { min-height: 78px; } .ha-num { width: 54px; font-size: 2.4rem; } .ha-text { font-size: .9rem; align-items: center; } }

.c-blue { color: #3d94c9; } .c-green { color: #2fc58b; } .c-cream { color: #f3e3c3; } .c-red { color: #d8473a; } .c-gold { color: #e5b315; }

/* Staggered entrance */
.ha-grid > :nth-child(2) { animation-delay: .05s; } .ha-grid > :nth-child(3) { animation-delay: .1s; }
.ha-grid > :nth-child(4) { animation-delay: .15s; } .ha-grid > :nth-child(5) { animation-delay: .2s; } .ha-grid > :nth-child(6) { animation-delay: .25s; }
.ha-grid > :nth-child(7) { animation-delay: .3s; } .ha-grid > :nth-child(8) { animation-delay: .35s; } .ha-grid > :nth-child(9) { animation-delay: .4s; }
@keyframes haIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Orange call-to-action */
.cms-content .ha-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; max-width: 300px; margin: 2rem auto 0; background: var(--ha-orange); color: #fff;
    text-transform: uppercase; font-size: .82rem; font-weight: 700; letter-spacing: .05em; padding: .75rem 1.5rem; border-radius: 4px; text-decoration: none;
    box-shadow: 0 4px 12px rgba(239, 172, 79, .45); transition: background .15s, transform .15s; }
.cms-content .ha-btn:hover, .cms-content .ha-btn:focus-visible { background: var(--ha-orange-dark); color: #fff; transform: translateY(-2px); }
.ha-btn::after { content: "\203A"; font-size: 1.35rem; line-height: 0; }
[dir="rtl"] .ha-btn::after { content: "\2039"; }
@media (max-width: 575.98px) { .cms-content .ha-btn { max-width: none; } }

/* Accessibility */
html[data-font="1"] .ha-text, html[data-font="2"] .ha-text { font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .ha-step, .cms-content .ha-btn { animation: none; transition: none; } .ha-step:hover { transform: none; } }
html[data-contrast="high"] .ha { background: #fff; }
html[data-contrast="high"] .ha-step { border: 2px solid #000; }

/* =====================================================================
   "About Egypt" (same style as How to apply)
   ===================================================================== */
.ha-section { max-width: 980px; margin: 0 auto 2.5rem; }
.cms-content .ha-h { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #3a2a12; margin: 0 0 1rem;
    display: flex; align-items: center; gap: .6rem; }
.cms-content .ha-h::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--ha-orange); }

/* Intro: image + text */
.ha-intro-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ha-intro-row img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; border-radius: 0 !important; }
.ha-intro-row .ha-intro-text { padding: 1.5rem 1.5rem 1.5rem 0; }
[dir="rtl"] .ha-intro-row .ha-intro-text { padding: 1.5rem 0 1.5rem 1.5rem; }
.cms-content .ha-intro-text h3 { color: var(--ev-navy); font-weight: 800; margin: 0 0 .6rem; font-size: 1.4rem; }
.cms-content .ha-intro-text p { color: #374151; margin-bottom: .6rem; font-size: .95rem; }
@media (max-width: 767.98px) { .ha-intro-row { grid-template-columns: 1fr; } .ha-intro-row img { min-height: 200px; } .ha-intro-row .ha-intro-text, [dir="rtl"] .ha-intro-row .ha-intro-text { padding: 0 1.25rem 1.25rem; } }

/* Key facts use the numbered-card look with an icon in the black block */
.ha-facts { max-width: none; gap: 1rem; }
.ha-num.ha-ico { align-items: center; padding-bottom: 0; font-size: 1.6rem; }
.ha-fact { display: flex; flex-direction: column; justify-content: center; gap: .1rem; padding: .75rem .9rem; }
.ha-fact small { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 700; }
.ha-fact strong { font-size: .95rem; color: #111; }
.ha-facts .ha-step { min-height: 76px; }

/* Destinations */
.ha-dest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 991.98px) { .ha-dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ha-dest-grid { grid-template-columns: 1fr; } }
.ha-dest { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; animation: haIn .5s ease both; }
.ha-dest:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.14); }
.ha-dest img { width: 100%; height: 170px; object-fit: cover; display: block; border-radius: 0 !important; }
.ha-dest-body { padding: .9rem 1rem 1.1rem; border-top: 4px solid var(--ha-orange); flex: 1; }
.cms-content .ha-dest-body h4 { font-size: 1rem; font-weight: 800; color: #111; margin: 0 0 .35rem; }
.cms-content .ha-dest-body p { font-size: .86rem; color: #4b5563; margin: 0; line-height: 1.55; }

/* Travel tips */
.ha-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 767.98px) { .ha-tips { grid-template-columns: 1fr; } }
.ha-tips li { background: #fff; border-radius: 6px; padding: .8rem 1rem; font-size: .9rem; display: flex; gap: .7rem; align-items: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.06);
    border-inline-start: 4px solid var(--ha-orange); }
.ha-tips li i { color: var(--ha-orange-dark); font-size: 1.15rem; line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { .ha-dest { animation: none; transition: none; } .ha-dest:hover { transform: none; } }
/* E-mail verified page */
.verified-icon { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; background: #e8f7ef; color: #15803d; display: flex; align-items: center; justify-content: center;
    font-size: 3.2rem; box-shadow: 0 0 0 10px #f3fbf6; animation: popIn .5s ease both; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.verified-card { border-top: 5px solid #15803d; }
@media (prefers-reduced-motion: reduce) { .verified-icon { animation: none; } }

/* =====================================================================
   Profile (user) menu
   ===================================================================== */
/* The header must sit above the sticky navigation bar, otherwise the open menu is hidden behind it. */
.gov-header { position: relative; z-index: 1030; }
.user-menu { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid #d6dce6; border-radius: 50px;
    padding: .3rem .9rem .3rem .3rem; color: var(--ev-navy); max-width: 280px; transition: border-color .15s, box-shadow .15s, background .15s; }
[dir="rtl"] .user-btn { padding: .3rem .3rem .3rem .9rem; }
.user-btn:hover, .user-btn:focus-visible, .user-btn[aria-expanded="true"] { border-color: var(--ev-navy-2); box-shadow: 0 0 0 3px rgba(27, 63, 134, .12); background: #f8faff; }
.user-btn.dropdown-toggle::after { margin-inline-start: .2rem; color: #6b7280; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ev-navy), var(--ev-navy-2)); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
    box-shadow: 0 0 0 2px var(--ev-gold); }
.user-avatar-lg { width: 48px; height: 48px; font-size: 1.05rem; }
.user-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: start; min-width: 0; }
.user-meta strong { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.user-meta small { font-size: .7rem; color: #6b7280; }

.user-dropdown { width: 290px; padding: 0; border: 1px solid #e3e8f2; border-radius: 12px; overflow: hidden; margin-top: .5rem !important;
    box-shadow: 0 16px 40px rgba(15, 42, 92, .18); z-index: 1060; }
.user-dropdown-head { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; background: linear-gradient(135deg, var(--ev-navy), var(--ev-navy-2)); color: #fff; }
.user-dropdown-head .min-w-0 { min-width: 0; }
.user-role-badge { display: inline-block; margin-top: .3rem; background: rgba(200, 162, 74, .25); color: #f6dfa8; border: 1px solid rgba(200, 162, 74, .5);
    font-size: .68rem; font-weight: 700; padding: .1rem .5rem; border-radius: 50px; text-transform: uppercase; letter-spacing: .04em; }
.user-dropdown .dropdown-item { display: flex; align-items: center; gap: .75rem; padding: .6rem 1.1rem; font-size: .9rem; color: #1f2937; }
.user-dropdown .dropdown-item i { font-size: 1.05rem; width: 1.2rem; text-align: center; color: var(--ev-navy-2); }
.user-dropdown .dropdown-item:hover, .user-dropdown .dropdown-item:focus { background: #f1f5fc; color: var(--ev-navy); }
.user-dropdown .dropdown-item.text-danger, .user-dropdown .dropdown-item.text-danger i { color: #b42318 !important; }
.user-dropdown .dropdown-item.text-danger:hover { background: #fdecea; }
.user-dropdown-foot { border-top: 1px solid #eef1f6; padding: .35rem 0; background: #fafbfd; }
.user-dropdown-foot form { margin: 0; }

/* Mobile (inside the collapsed navigation) */
.user-menu-mobile .user-btn { width: 100%; max-width: none; justify-content: flex-start; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.user-menu-mobile .user-meta small { color: #c9d4e8; }
.user-menu-mobile .user-btn.dropdown-toggle::after { margin-inline-start: auto; color: #c9d4e8; }
.user-menu-mobile .user-dropdown { position: static !important; width: 100%; margin-top: .5rem !important; box-shadow: none; transform: none !important; }
@media (max-width: 991.98px) { .gov-header { z-index: auto; } }
html[data-contrast="high"] .user-avatar, html[data-contrast="high"] .user-dropdown-head { background: #000; }
.admin-topbar .user-btn { padding-block: .2rem; }
@media (max-width: 575.98px) { .admin-topbar .user-meta { display: none; } .admin-topbar .user-btn { padding: .2rem !important; } .admin-topbar .user-btn.dropdown-toggle::after { display: none; } }

/* =====================================================================
   Date picker (flatpickr) - themed to the portal
   ===================================================================== */
/* Visible input */
input.form-control.input[readonly] { background-color: #fff; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231b3f86' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3Cpath d='M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .85rem center; background-size: 16px; padding-right: 2.5rem; }
[dir="rtl"] input.form-control.input[readonly] { background-position: left .85rem center; padding-right: .75rem; padding-left: 2.5rem; }
input.form-control.input[readonly].active { border-color: var(--ev-navy-2); box-shadow: 0 0 0 .2rem rgba(27, 63, 134, .15); }
input.input-validation-error + input.form-control.input { border-color: #dc3545; }

/* Calendar popup */
.flatpickr-calendar { width: 320px; border: 1px solid var(--ev-border); border-radius: 14px; overflow: hidden; font-family: inherit;
    box-shadow: 0 18px 45px rgba(15, 42, 92, .2); padding-bottom: .4rem; }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after, .flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { display: none; }
.flatpickr-calendar.open { animation: fpIn .18s ease-out; }
@keyframes fpIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Header: month / year */
.flatpickr-months { background: linear-gradient(135deg, var(--ev-navy), var(--ev-navy-2)); padding: .55rem .4rem; border-bottom: 3px solid var(--ev-gold); align-items: center; }
.flatpickr-months .flatpickr-month { color: #fff; fill: #fff; height: 40px; }
.flatpickr-current-month { font-size: 1.05rem; padding-top: 6px; display: flex; align-items: center; justify-content: center; gap: .35rem; }
.flatpickr-current-month .flatpickr-monthDropdown-months { background: rgba(255, 255, 255, .12); color: #fff; border-radius: 8px; padding: .15rem .4rem; font-weight: 600; appearance: auto; }
.flatpickr-current-month .flatpickr-monthDropdown-months:hover { background: rgba(255, 255, 255, .22); }
.flatpickr-current-month .flatpickr-monthDropdown-months option { color: #1f2937; background: #fff; }
.flatpickr-current-month .numInputWrapper { width: 5.2ch; background: rgba(255, 255, 255, .12); border-radius: 8px; }
.flatpickr-current-month .numInputWrapper:hover { background: rgba(255, 255, 255, .22); }
.flatpickr-current-month input.cur-year { color: #fff; font-weight: 600; padding: .15rem .3rem; }
.numInputWrapper span.arrowUp::after { border-bottom-color: #fff; }
.numInputWrapper span.arrowDown::after { border-top-color: #fff; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { color: #fff; fill: #fff; top: 50%; transform: translateY(-50%); height: 34px; width: 34px; padding: 9px;
    margin: 0 .35rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover { background: rgba(255, 255, 255, .18); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--ev-gold); }
.flatpickr-months .flatpickr-prev-month.flatpickr-disabled, .flatpickr-months .flatpickr-next-month.flatpickr-disabled { opacity: .3; }

/* Week days */
.flatpickr-innerContainer { padding: .5rem .55rem 0; }
.flatpickr-rContainer, .flatpickr-days, .dayContainer { width: 100%; min-width: 0; max-width: none; }
span.flatpickr-weekday { color: var(--ev-muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }

/* Days */
.flatpickr-day { border-radius: 10px; max-width: none; height: 38px; line-height: 36px; margin: 1px 0; color: var(--ev-text); font-weight: 500; transition: background .12s, color .12s; }
.flatpickr-day:hover, .flatpickr-day:focus { background: #eef3fc; border-color: #eef3fc; color: var(--ev-navy); }
.flatpickr-day.today { border-color: var(--ev-gold); color: var(--ev-navy); font-weight: 700; }
.flatpickr-day.today:hover, .flatpickr-day.today:focus { background: #fbf4e3; border-color: var(--ev-gold); color: var(--ev-navy); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.selected.nextMonthDay {
    background: var(--ev-navy-2); border-color: var(--ev-navy-2); color: #fff; box-shadow: 0 4px 10px rgba(27, 63, 134, .3); }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #b8c0cc; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: #d3d8e0; background: transparent; border-color: transparent; text-decoration: line-through; cursor: not-allowed; }

html[data-contrast="high"] .flatpickr-months { background: #000; }
html[data-contrast="high"] .flatpickr-day.selected { background: #000; border-color: #000; }
@media (max-width: 400px) { .flatpickr-calendar { width: calc(100vw - 32px); } }
@media (prefers-reduced-motion: reduce) { .flatpickr-calendar.open { animation: none; } }
