:root {
    --green: #0b5f34;
    --green-dark: #063f25;
    --green-soft: #eef7f2;
    --gold: #e4ad3a;
    --gold-dark: #b98212;
    --ink: #173326;
    --muted: #6f7b73;
    --line: #e2ebe6;
    --surface: #ffffff;
    --soft: #f7faf8;
    --shadow: 0 18px 46px rgba(6, 63, 37, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}
.site-body {
    font-family: "IBM Plex Sans Arabic", "Cairo", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}
.site-body h1,
.site-body h2,
.site-body h3,
.site-body .nav-links,
.site-body .btn,
.site-body .read-link {
    font-family: "IBM Plex Sans Arabic", "Cairo", Tahoma, Arial, sans-serif;
}
.site-body h1,
.site-body h2,
.site-body h3 {
    font-weight: 800;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.brand,
.brand span,
.nav-links,
.nav-actions,
.grid > *,
.split > *,
.panel,
.content-card,
.news-card,
.news-content-panel,
.article-switcher a { min-width: 0; }
h1, h2, h3, p, a, strong { overflow-wrap: break-word; }
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.topline { background: var(--green-dark); color: #d7eadf; font-size: 13px; }
.topline-inner { min-height: 36px; display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.topline-contact { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-weight: 800; }
.topline-links { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 700; }
.topline-links a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--top-link-bg, var(--gold));
    color: var(--top-link-color, #173326);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}
.topline-links a:hover { filter: brightness(1.05); }
.nav { position: relative; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green), var(--gold));
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
}
.brand strong { display: block; font-size: 15px; line-height: 1.35; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    padding: 6px;
}
.nav-links { display: flex; align-items: center; gap: 18px; color: #355141; font-weight: 800; }
.nav-links a,
.nav-trigger {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-block: 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 900;
}
.nav-links a:hover,
.nav-links a.active,
.nav-trigger:hover,
.nav-trigger.active { color: var(--green); border-bottom-color: var(--gold); }
.nav-dropdown { position: relative; }
.nav-trigger span { color: var(--gold-dark); font-size: .8rem; }
.mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: -130px;
    z-index: 40;
    width: min(760px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 70px rgba(6, 63, 37, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.mega-menu::before {
    content: "";
    position: absolute;
    top: -9px;
    right: 160px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    transform: rotate(-45deg);
}
.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu,
.nav-dropdown.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.mega-column {
    position: relative;
    z-index: 1;
    padding: 14px;
    border-radius: 8px;
    background: var(--soft);
    border: 1px solid rgba(11, 95, 52, .08);
}
.mega-column h3 {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(228, 173, 58, .55);
    color: var(--green);
    font-size: .95rem;
}
.mega-column a,
.mega-column span {
    display: block;
    min-height: auto;
    padding: 6px 0;
    border: 0;
    color: #415648;
    font-size: .9rem;
    line-height: 1.55;
}
.mega-column a:hover { color: var(--green); }
.mega-action {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav-toggle {
    display: none;
    place-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(11, 95, 52, .18);
    border-radius: 8px;
    background: #fff;
    color: var(--green);
    box-shadow: 0 10px 24px rgba(6, 63, 37, .09);
    cursor: pointer;
}
.mobile-nav-toggle span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--green);
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(11, 95, 52, .16);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #143821; }
.btn.gold:hover { background: #f1c15a; border-color: #f1c15a; }
.btn.ghost, .btn.light {
    background: #fff;
    color: var(--green);
    border-color: rgba(11, 95, 52, .25);
    box-shadow: none;
}
.btn.small { min-height: 38px; padding-inline: 14px; font-size: 13px; }
.compact-toolbar-actions .btn.small {
    min-height: 34px;
    padding-inline: 12px;
}

.hero {
    min-height: 610px;
    display: grid;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero-content { padding-block: 88px; }
.hero h1 {
    max-width: 850px;
    margin: 0 0 18px;
    font-size: 2.95rem;
    line-height: 1.18;
    letter-spacing: 0;
}
.hero p {
    max-width: 740px;
    margin: 0;
    color: #e8f3ed;
    font-size: .98rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.slider-hero {
    position: relative;
    overflow: hidden;
    background: var(--green-dark);
    min-height: clamp(500px, 58vw, 680px);
    height: clamp(500px, 58vw, 680px);
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    min-height: 610px;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
    transition: opacity .9s ease, visibility .9s ease;
}
.hero-slide.single {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}
.hero-slide img,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,63,37,.92), rgba(6,63,37,.68), rgba(6,63,37,.28));
}
.slider-hero .hero-content {
    position: relative;
    z-index: 1;
}
.hero-dots {
    position: absolute;
    inset-inline: 0;
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-inline: 18px;
}
.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: width .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-dot:hover,
.hero-dot.is-active {
    width: 32px;
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
}
.hero-timer {
    position: absolute;
    inset-inline-start: 24px;
    bottom: 24px;
    z-index: 4;
    min-width: 92px;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    background: rgba(6, 63, 37, .72);
    color: #fff;
    direction: ltr;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
}
@keyframes heroFade {
    0%, 28% { opacity: 1; }
    34%, 94% { opacity: 0; }
    100% { opacity: 1; }
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}
.site-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
.site-icons-hidden .site-icon,
.site-icons-hidden .home-stat-icon,
.site-icons-hidden .program-card-icon,
.site-icons-hidden .program-hero-fact-icon,
.site-icons-hidden .program-side-icon,
.site-icons-hidden .card-symbol,
.site-icons-hidden .about-service-card > span,
.site-icons-hidden .about-value-card > span {
    display: none !important;
}
.site-icons-hidden .stats-grid .home-stat-card {
    align-content: center;
}
.site-icons-hidden .program-card .card-body {
    padding-top: 24px;
}
.site-icons-hidden .program-card-type,
.site-icons-hidden .program-card-chips span {
    gap: 0;
}

.stats-strip { margin-top: -42px; position: relative; z-index: 2; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.stats-grid .home-stat-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 118px;
    padding: 18px 14px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(228, 173, 58, .08)),
        var(--soft);
    border: 1px solid rgba(11, 95, 52, .08);
    text-align: center;
}
.stats-grid .home-stat-card + .home-stat-card::before {
    content: "";
    position: absolute;
    inset-inline-start: -7px;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: var(--line);
}
.home-stat-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(228, 173, 58, .16);
    color: var(--gold-dark);
    box-shadow: inset 0 0 0 1px rgba(228, 173, 58, .22);
}
.home-stat-icon .site-icon {
    width: 20px;
    height: 20px;
}
.home-stat-card:nth-child(2) .home-stat-icon,
.home-stat-card:nth-child(4) .home-stat-icon {
    background: rgba(11, 95, 52, .10);
    color: var(--green);
}
.stats-grid .home-stat-card strong { display: block; color: var(--green); font-size: 34px; line-height: 1.1; }
.home-stat-card > div > span { color: var(--muted); font-weight: 800; }

.section { padding-block: 78px; }
.section.soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 34px; text-align: center; margin-inline: auto; }
.section-head.align-start { text-align: start; margin-inline: 0; }
.section-head.with-action {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    text-align: start;
}
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 12px; font-size: 1.9rem; line-height: 1.32; letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 1.18rem; line-height: 1.45; }
.lead { color: var(--muted); font-size: .96rem; }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; align-items: center; }
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }
.stack.compact a { color: var(--green); font-weight: 800; }

.content-card {
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(6, 63, 37, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}
a.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.content-card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 24px; }
.card-number { color: var(--gold-dark); font-family: Consolas, monospace; font-weight: 900; }
.card-body p { color: var(--muted); margin-bottom: 0; font-size: .92rem; }
.card-symbol {
    display: grid;
    place-items: center;
    height: 112px;
    background: linear-gradient(135deg, var(--green-soft), #fff8e8);
    color: var(--green);
    font-weight: 900;
    font-size: 26px;
}
.card-symbol .site-icon {
    width: 34px;
    height: 34px;
}
.read-link { display: inline-flex; margin-top: 16px; color: var(--green); font-weight: 900; }
.program-catalog-section {
    background: linear-gradient(180deg, #fff, var(--soft));
}
.program-catalog-grid {
    align-items: stretch;
}
.program-card {
    position: relative;
    border: 0;
    background: #fff;
    box-shadow: 0 18px 42px rgba(6, 63, 37, .09);
}
.program-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(11, 95, 52, .10);
    border-radius: 8px;
    pointer-events: none;
}
.program-card img {
    height: 210px;
}
.program-card-media {
    position: relative;
    overflow: visible;
}
.program-card-icon {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--gold);
    color: #173326;
    box-shadow: 0 14px 30px rgba(6, 63, 37, .22);
}
.program-card-icon .site-icon {
    width: 24px;
    height: 24px;
}
.program-card .card-body {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    gap: 10px;
    padding: 34px 22px 22px;
}
.program-card-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: .76rem;
    font-weight: 900;
}
.program-card-type .site-icon {
    width: 14px;
    height: 14px;
}
.program-card h3 {
    color: var(--green-dark);
    font-size: 1.08rem;
}
.program-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}
.program-card-chips span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #f8fbf9;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 900;
}
.program-card-chips .site-icon {
    width: 13px;
    height: 13px;
    color: var(--gold-dark);
}
.program-card .read-link {
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 4px;
    padding-inline: 14px;
    border-radius: 8px;
    background: var(--gold);
    color: #173326;
}
.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.center-action { margin-top: 30px; text-align: center; }

.media-frame { overflow: hidden; border-radius: 8px; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 420px; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
}

.page-hero, .detail-hero {
    padding-block: 76px;
    background:
        linear-gradient(135deg, rgba(6, 63, 37, .96), rgba(11, 95, 52, .88)),
        var(--green);
    color: #fff;
}
.dynamic-page-hero {
    background-size: cover;
    background-position: center;
}
.page-hero h1, .detail-hero h1 { max-width: 880px; margin-bottom: 14px; font-size: 2.35rem; line-height: 1.24; }
.page-hero p, .detail-hero p { max-width: 790px; margin-bottom: 0; color: #d8eadf; font-size: .96rem; }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.detail-image { width: 100%; height: 340px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.program-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    background:
        linear-gradient(135deg, rgba(6,63,37,.97), rgba(11,95,52,.88)),
        var(--green-dark);
    color: #fff;
}
.program-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 50%, rgba(255,255,255,.06) 50% 66%, transparent 66%),
        radial-gradient(circle at 12% 20%, rgba(228,173,58,.16), transparent 24%);
}
.program-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 42px;
    align-items: center;
}
.breadcrumb-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255,255,255,.76);
    font-size: .86rem;
    font-weight: 800;
}
.breadcrumb-line a:hover { color: #fff; }
.program-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--green);
    font-size: .82rem;
    font-weight: 900;
}
.program-hero h1 {
    max-width: 760px;
    margin: 14px 0 14px;
    color: var(--gold);
    font-size: 2.8rem;
    line-height: 1.25;
}
.program-hero p {
    max-width: 760px;
    margin-bottom: 0;
    color: #e4f0e8;
    font-size: .98rem;
}
.program-hero-media {
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 24px 70px rgba(0,0,0,.2);
}
.program-hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}
.program-hero-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}
.program-hero-facts div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
}
.program-hero-fact-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--gold);
    color: #173326;
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
}
.program-hero-fact-icon .site-icon {
    width: 20px;
    height: 20px;
}
.program-hero-fact-text {
    min-width: 0;
}
.program-hero-fact-label {
    display: block;
    color: rgba(255,255,255,.75);
    font-size: .78rem;
    font-weight: 800;
}
.program-hero-facts strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 1rem;
}
.program-detail-section {
    background: #fff;
}
.program-detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.program-detail-layout-single {
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
}
.program-enroll-card {
    position: sticky;
    top: 126px;
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(6, 63, 37, .10);
}
.program-enroll-card > span {
    color: var(--green);
    text-align: center;
    font-size: 1.05rem;
    font-weight: 900;
}
.program-enroll-card del {
    color: #c2aaa0;
    text-align: center;
    font-weight: 800;
}
.program-enroll-card > strong {
    color: var(--green);
    text-align: center;
    font-size: 1.75rem;
    line-height: 1.1;
}
.program-enroll-card > small {
    justify-self: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff0ec;
    color: #d35b43;
    font-weight: 900;
}
.program-card-actions {
    display: grid;
    gap: 9px;
    margin: 8px 0;
}
.program-fact-list {
    display: grid;
    gap: 8px;
    margin: 0;
}
.program-fact-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.program-fact-list div:last-child { border-bottom: 0; }
.program-fact-list dt,
.program-fact-list dd { margin: 0; }
.program-fact-list dt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
}
.program-side-icon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: rgba(228, 173, 58, .14);
    color: var(--gold-dark);
}
.program-side-icon .site-icon {
    width: 15px;
    height: 15px;
}
.program-fact-list dd {
    color: var(--green);
    font-size: .88rem;
    font-weight: 900;
    text-align: end;
}
.program-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.program-tabs a {
    padding: 12px 10px 13px;
    border-bottom: 2px solid transparent;
    color: #42584a;
    font-weight: 900;
}
.program-tabs a:hover {
    color: var(--green);
    border-bottom-color: var(--gold);
}
.program-section-stack {
    display: grid;
    gap: 22px;
}
.program-section-card {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(6, 63, 37, .07);
}
.program-section-card h2 {
    color: var(--green);
    font-size: 1.55rem;
}
.program-check-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    padding: 0;
    margin: 22px 0 0;
}
.program-check-list li {
    position: relative;
    padding-inline-start: 26px;
    color: #314b3d;
    font-size: .92rem;
    font-weight: 800;
}
.program-check-list li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: .72rem;
}
.related-programs-section {
    border-top: 1px solid var(--line);
}
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.rich-panel, .side-panel, .panel, .empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(6, 63, 37, .05);
}
.rich-panel { padding: clamp(24px, 4vw, 44px); }
.rich-text { color: #314b3d; font-size: .94rem; white-space: pre-line; }
.side-panel { position: sticky; top: 126px; padding: 24px; }
.side-panel p { color: var(--muted); }
.empty-state { padding: 28px; color: var(--muted); }
.narrow { width: min(780px, calc(100% - 32px)); }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tabs a {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 900;
}
.tabs a.active, .tabs a:hover { background: var(--green); border-color: var(--green); color: #fff; }

.home-news-showcase {
    background:
        linear-gradient(180deg, #fff, #f7faf8);
}
.home-news-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr .85fr;
    gap: 18px;
    align-items: stretch;
}
.news-card {
    min-height: 100%;
    display: grid;
    grid-template-rows: 210px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(6, 63, 37, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(228, 173, 58, .6);
    box-shadow: var(--shadow);
}
.news-card.is-featured {
    grid-row: span 2;
    grid-template-rows: 340px 1fr;
}
.news-card-media {
    position: relative;
    overflow: hidden;
    background: var(--green-soft);
}
.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.news-card:hover .news-card-media img {
    transform: scale(1.04);
}
.news-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--green);
    font-weight: 900;
}
.news-card-body {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-content: start;
    gap: 10px;
    padding: 22px;
    min-height: 245px;
}
.news-kicker,
.news-count {
    display: inline-flex;
    width: fit-content;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: .78rem;
    font-weight: 900;
}
.news-card-body p {
    color: var(--muted);
    margin-bottom: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.news-card-body h3 {
    min-height: 3.5em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-date-badge,
.news-views-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
.news-date-badge {
    right: 12px;
    background: var(--gold);
    color: #173326;
}
.news-views-badge {
    left: 12px;
    background: #fff;
    color: var(--green);
}
.news-archive-section {
    background:
        linear-gradient(180deg, #fff, var(--soft));
}
.news-spotlight {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 0;
    overflow: hidden;
    margin-bottom: 42px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.news-spotlight-copy {
    align-self: center;
    padding: 38px;
}
.news-spotlight-copy p {
    color: var(--muted);
}
.news-spotlight-media {
    min-height: 360px;
    background: var(--green-soft);
}
.news-spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-archive-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}
.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.news-detail-hero {
    padding: 58px 0 34px;
    background:
        linear-gradient(180deg, #fff, #fbfcf8);
    text-align: center;
}
.news-detail-hero h1 {
    max-width: 980px;
    margin: 0 auto 16px;
    color: var(--green-dark);
    font-size: 2.4rem;
    line-height: 1.35;
}
.news-meta-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.news-meta-row span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    border: 1px solid var(--line);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(6, 63, 37, .06);
}
.news-detail-section {
    padding-top: 30px;
    background:
        radial-gradient(circle at 15% 28%, rgba(228,173,58,.10), transparent 26%),
        radial-gradient(circle at 85% 10%, rgba(11,95,52,.08), transparent 28%),
        #fff;
}
.news-main-photo {
    position: relative;
    width: min(920px, 100%);
    height: clamp(260px, 44vw, 470px);
    margin: 0 auto 58px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--green-soft);
    box-shadow: 0 24px 70px rgba(6, 63, 37, .14);
}
.news-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-counter {
    position: absolute;
    right: 50%;
    bottom: 14px;
    transform: translateX(50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--green);
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    color: var(--green);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    box-shadow: 0 14px 32px rgba(0,0,0,.14);
}
.gallery-nav.prev { right: 14px; }
.gallery-nav.next { left: 14px; }
.news-detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}
.news-side-stack {
    display: grid;
    gap: 16px;
}
.quick-info-card,
.news-content-panel,
.article-switcher a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(6, 63, 37, .07);
}
.quick-info-card {
    padding: 22px;
}
.quick-info-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}
.quick-info-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--soft);
}
.quick-info-card dt,
.quick-info-card dd {
    margin: 0;
}
.quick-info-card dt {
    color: var(--muted);
    font-weight: 800;
}
.quick-info-card dd {
    color: var(--green);
    font-weight: 900;
}
.news-nav-links {
    display: grid;
    gap: 9px;
}
.news-nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid rgba(11,95,52,.18);
    border-radius: 8px;
    color: var(--green);
    font-weight: 900;
}
.news-nav-links a:first-child {
    background: var(--green);
    color: #fff;
}
.news-content-panel {
    position: relative;
    padding: clamp(26px, 4vw, 46px);
}
.quote-mark {
    position: absolute;
    top: 22px;
    left: 28px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 14px 28px rgba(6, 63, 37, .16);
}
.news-update-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.article-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}
.article-switcher a {
    display: grid;
    gap: 6px;
    padding: 18px;
}
.article-switcher span {
    color: var(--gold-dark);
    font-size: .82rem;
    font-weight: 900;
}
.article-switcher strong {
    color: var(--green-dark);
    line-height: 1.5;
}
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.partner-grid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.partner-tile {
    min-height: 92px;
    display: grid;
    place-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--green);
    text-align: center;
    font-weight: 900;
}
.partner-logo {
    max-width: 140px;
    max-height: 54px;
    margin-bottom: 10px;
    object-fit: contain;
}

.about-showcase-section {
    padding-top: 56px;
    background: #fff;
}
.about-browser-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(6, 63, 37, .1);
}
.browser-dots {
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
}
.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dbe6df;
}
.browser-dots span:nth-child(1) { background: #f05d50; }
.browser-dots span:nth-child(2) { background: #f4bd35; }
.browser-dots span:nth-child(3) { background: #4abb6d; }
.about-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
    gap: 16px;
}
.about-intro-panel,
.about-visual-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}
.about-intro-panel {
    padding: clamp(26px, 5vw, 48px);
}
.about-intro-panel h2 {
    max-width: 620px;
    color: var(--green-dark);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}
.about-intro-panel p {
    color: #42584a;
}
.about-visual-panel {
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(11,95,52,.08), rgba(228,173,58,.12)),
        #fff;
}
.about-stat-panel {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: clamp(24px, 4vw, 36px);
}
.about-panel-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
}
.about-stat-panel h3 {
    max-width: 360px;
    color: var(--green-dark);
    font-size: 1.45rem;
}
.about-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}
.about-stat-grid div {
    padding: 22px;
    background: #fff;
}
.about-stat-grid strong {
    display: block;
    color: var(--green);
    font-size: 1.7rem;
    line-height: 1.1;
}
.about-stat-grid span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}
.about-mission-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 40px;
    align-items: start;
}
.about-goal-list {
    list-style: none;
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
}
.about-goal-list li {
    position: relative;
    padding: 18px 48px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #314b3d;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(6, 63, 37, .05);
}
.about-goal-list li::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--gold));
}
.about-services-section {
    background:
        linear-gradient(180deg, #fff, #fbfcf8);
}
.about-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.about-service-card {
    min-height: 190px;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px;
    border: 1px solid rgba(11, 95, 52, .16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 10px 12px 0 rgba(6, 63, 37, .09);
}
.about-service-card.is-featured {
    grid-column: span 2;
    background: var(--green);
    color: #fff;
    box-shadow: 10px 12px 0 rgba(228, 173, 58, .32);
}
.about-service-card span {
    color: var(--gold);
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 900;
}
.about-service-card h3 {
    margin-bottom: 0;
    color: inherit;
    font-size: 1.25rem;
}
.about-service-card p {
    margin-bottom: 0;
    color: var(--muted);
}
.about-service-card.is-featured p {
    color: rgba(255,255,255,.82);
}
.about-value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.about-value-card {
    min-height: 210px;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 24px;
    border: 1px solid rgba(11, 95, 52, .14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 10px 12px 0 rgba(6, 63, 37, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.about-value-card:hover {
    transform: translateY(-3px);
    box-shadow: 10px 12px 0 rgba(228, 173, 58, .26), 0 18px 42px rgba(6, 63, 37, .08);
}
.about-value-card.is-featured {
    grid-column: span 2;
    background: var(--green-dark);
    color: #fff;
}
.about-value-card span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--gold);
    color: #173326;
    font-weight: 900;
}
.about-value-card h3 {
    margin-bottom: 0;
    color: inherit;
    font-size: 1.22rem;
}
.about-value-card p {
    margin-bottom: 0;
    color: var(--muted);
}
.about-value-card.is-featured p {
    color: rgba(255,255,255,.82);
}

.contact-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 30px; align-items: start; }
.contact-showcase-section {
    background:
        radial-gradient(circle at 14% 18%, rgba(228,173,58,.12), transparent 27%),
        radial-gradient(circle at 86% 8%, rgba(11,95,52,.08), transparent 24%),
        #fff;
}
.contact-showcase-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 28px;
    align-items: start;
}
.contact-experience-panel,
.contact-form-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(6, 63, 37, .08);
}
.contact-experience-panel {
    padding: clamp(24px, 4vw, 38px);
    background:
        linear-gradient(145deg, #fff, #f8fbf9);
}
.contact-experience-panel p {
    color: var(--muted);
}
.contact-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.contact-method-card {
    min-height: 170px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 20px;
    border: 1px solid rgba(11, 95, 52, .12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 8px 9px 0 rgba(6, 63, 37, .08);
}
.contact-method-card.is-featured {
    grid-column: 1 / -1;
    background: var(--green);
    color: #fff;
    box-shadow: 8px 9px 0 rgba(228, 173, 58, .28);
}
.contact-method-card span {
    color: var(--gold);
    font-weight: 900;
}
.contact-method-card h3 {
    margin-bottom: 0;
    color: inherit;
}
.contact-method-card p {
    margin-bottom: 0;
    color: var(--muted);
}
.contact-method-card.is-featured p {
    color: rgba(255,255,255,.84);
}
.contact-form-card {
    padding: clamp(24px, 4vw, 38px);
}
.contact-form-card label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--ink);
    font-weight: 900;
}
.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 13px;
    background: var(--soft);
    color: var(--ink);
    font-size: .92rem;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: 3px solid rgba(228, 173, 58, .24);
    border-color: var(--gold);
    background: #fff;
}
.form-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.form-title-row span {
    color: var(--green);
    font-weight: 900;
}
.form-title-row strong {
    color: var(--gold-dark);
    font-size: 1.8rem;
    line-height: 1;
}
.form-card { padding: 24px; }
.form-card label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--ink); font-weight: 900; }
.field-note {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}
.form-card input, .form-card textarea, .form-card select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 13px;
    background: #fff;
    color: var(--ink);
    font-size: .92rem;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
    outline: 3px solid rgba(228, 173, 58, .24);
    border-color: var(--gold);
}
.register-section { background: linear-gradient(180deg, #fff, var(--soft)); }
.register-layout {
    display: grid;
    grid-template-columns: .9fr 1.25fr;
    gap: 24px;
    align-items: start;
}
.register-info-card,
.register-form-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(6, 63, 37, .09);
}
.register-info-card {
    position: sticky;
    top: 130px;
    padding: clamp(22px, 4vw, 36px);
}
.register-info-card h2 {
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}
.register-info-card p {
    color: var(--muted);
    margin-bottom: 24px;
}
.register-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.register-info-grid div {
    padding: 16px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--green-soft);
    text-align: center;
}
.register-info-grid strong {
    display: block;
    color: var(--green);
    font-size: 1.55rem;
    line-height: 1;
}
.register-info-grid span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 900;
}
.registration-phone-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
    gap: 16px;
    align-items: end;
}
.phone-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    align-items: end;
}
.register-form-card {
    padding: clamp(24px, 4vw, 36px);
    background:
        linear-gradient(135deg, rgba(11, 95, 52, .045), rgba(228, 173, 58, .055) 42%, transparent 72%),
        #fff;
    border-top: 4px solid var(--gold);
}
.register-form-card .grid.two,
.register-form-card .dynamic-field-grid,
.register-form-card .registration-phone-grid {
    gap: 4px 18px;
}
.register-form-card label,
.country-picker {
    margin-bottom: 18px;
}
.register-form-card label,
.country-picker > label {
    font-size: .92rem;
}
.country-picker {
    position: relative;
    display: grid;
    gap: 8px;
}
.country-picker > label {
    margin-bottom: 0;
    color: var(--ink);
    font-weight: 900;
}
.register-form-card input,
.register-form-card select,
.country-picker-trigger {
    min-height: 54px;
}
.register-form-card textarea {
    min-height: 118px;
    resize: vertical;
}
.register-form-card input,
.register-form-card select,
.register-form-card textarea {
    border-color: #dce8e1;
    background: #fbfdfc;
}
.register-form-card input:focus,
.register-form-card select:focus,
.register-form-card textarea:focus {
    background: #fff;
}
.country-picker-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dce8e1;
    border-radius: 8px;
    background: #fbfdfc;
    color: var(--ink);
    text-align: right;
    cursor: pointer;
}
.country-picker-trigger:focus {
    outline: 3px solid rgba(228, 173, 58, .24);
    border-color: var(--gold);
}
.country-flag {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--green-soft);
    font-size: 18px;
    line-height: 1;
}
.country-selected-text {
    display: grid;
    gap: 1px;
    min-width: 0;
}
.country-selected-text strong {
    color: var(--ink);
    font-size: .9rem;
    line-height: 1.2;
}
.country-selected-text small {
    color: var(--green);
    font-weight: 900;
    line-height: 1.2;
}
.registration-phone-grid .country-selected-text strong {
    display: none;
}
.registration-phone-grid .country-selected-text small {
    font-size: .95rem;
}
.country-caret {
    color: var(--gold-dark);
    font-size: .9rem;
    font-weight: 900;
}
.country-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 25;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.registration-phone-grid .country-options {
    width: min(280px, calc(100vw - 32px));
    left: auto;
}
.country-picker.is-open .country-options {
    display: grid;
    gap: 6px;
}
.country-options button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    text-align: right;
    cursor: pointer;
}
.country-options button:hover,
.country-options button[aria-selected="true"] {
    background: var(--green-soft);
    color: var(--green);
}
.country-options strong {
    font-size: .82rem;
    color: var(--green);
}
.registration-phone-grid .national-id-field,
.registration-phone-grid .phone-field,
.registration-phone-grid .country-picker {
    min-width: 0;
}
.dynamic-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.required-mark { color: #a33a23; }
.alert, .errors {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 800;
}
.alert { background: #eaf8ef; color: var(--green); }
.errors { background: #fff3f0; color: #a33a23; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card {
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}
.info-card span { display: inline-flex; color: var(--gold-dark); font-weight: 900; margin-bottom: 16px; }
.info-card p { color: var(--muted); margin-bottom: 0; }
.map-link:hover { background: #fff; box-shadow: var(--shadow); }

.cta-band { padding-block: 58px; background: var(--green-dark); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner h2 { max-width: 780px; }
.cta-inner p { color: #d8eadf; margin-bottom: 0; }
.footer { padding: 54px 0 24px; background: #10281b; color: #d9eadf; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; align-items: start; }
.footer .brand small, .footer p, .footer a { color: #b9d0c2; }
.footer-links { display: grid; gap: 9px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: #d9eadf;
    font-weight: 900;
}
.footer a:hover { color: #fff; }
.copyright { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a9c1b4; }
.back-to-top {
    position: fixed;
    inset-inline-end: 24px;
    bottom: 24px;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(228, 173, 58, .42);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    box-shadow: 0 14px 32px rgba(6, 63, 37, .22);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.back-to-top:hover {
    background: linear-gradient(135deg, var(--gold), #c98e19);
    color: #173326;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--green-soft), #fff);
}
.auth-card { width: min(460px, 100%); }
.admin-body {
    height: 100vh;
    overflow: hidden;
    background: #f4f8f5;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 14px;
}
.admin-body p,
.admin-body label,
.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body button,
.admin-body a,
.admin-body small,
.admin-table {
    font-size: 13px;
}
.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-header h1,
.admin-toolbar h2,
.admin-list-head h2 {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;
}
.admin-shell {
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    height: 100vh;
    min-height: 0;
}
.sidebar {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    padding: 22px;
    background: var(--green-dark);
    color: #fff;
}
.sidebar-brand { color: #fff; margin-bottom: 24px; }
.sidebar-brand small { color: #b9d0c2; }
.side-nav { display: grid; gap: 7px; }
.side-nav-group-title {
    display: block;
    margin-top: 10px;
    padding: 10px 12px 4px;
    color: rgba(255,255,255,.52);
    font-size: .78rem;
    font-weight: 900;
}
.side-nav a, .side-nav button {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    background: transparent;
    color: rgba(255,255,255,.78);
    text-align: right;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}
.side-nav a.active, .side-nav a:hover, .side-nav button:hover { background: rgba(255,255,255,.10); color: #fff; }
.admin-main {
    height: 100vh;
    overflow-y: auto;
    padding: 26px;
}
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.admin-role-chip {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(228, 173, 58, .14);
    color: var(--gold-dark);
    font-weight: 900;
}
.admin-list-head p {
    margin-bottom: 0;
    color: var(--muted);
    font-weight: 800;
}
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    box-shadow: 0 16px 36px rgba(6, 63, 37, .14);
}
.metric::after {
    content: "";
    position: absolute;
    inset-inline-start: -30px;
    bottom: -42px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.metric:nth-child(2) { background: linear-gradient(135deg, #173f52, var(--green)); }
.metric:nth-child(3) { background: linear-gradient(135deg, var(--gold), #b98212); color: #173326; }
.metric:nth-child(4) { background: linear-gradient(135deg, #294c60, #10281b); }
.metric:nth-child(5) { background: linear-gradient(135deg, #5b6f42, var(--green)); }
.metric:nth-child(6) { background: linear-gradient(135deg, #7d6230, var(--gold)); color: #173326; }
.metric:nth-child(7) { background: linear-gradient(135deg, #2b6a56, #0d2635); }
.metric:nth-child(8) { background: linear-gradient(135deg, #4c5862, #182a33); }
.metric span,
.metric strong,
.metric small { position: relative; z-index: 1; }
.metric strong { display: block; font-size: 1.9rem; color: inherit; line-height: 1.1; }
.metric small { color: rgba(255,255,255,.78); }
.metric:nth-child(3) small,
.metric:nth-child(6) small { color: rgba(23, 51, 38, .72); }
.admin-panel { margin-top: 24px; padding: 24px; }
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.admin-toolbar h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: 18px;
}
.table-scroll {
    width: 100%;
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
}
.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    vertical-align: top;
    line-height: 1.55;
}
.admin-table th {
    background: #f7fbf8;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}
.admin-table tbody tr:nth-child(odd) { background: #fff; }
.admin-table tbody tr:nth-child(even) { background: #f1faf5; }
.admin-table tbody tr:hover { background: #e9f6ee; }
.admin-table strong { font-size: 14px; }
.admin-table td small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.news-thumb {
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    background: #f7fbf8;
    color: var(--muted);
    font-weight: 900;
}
.admin-news-summary {
    max-width: 440px;
    white-space: normal;
}
.pill.gold {
    margin-inline-start: 6px;
    background: rgba(228, 173, 58, .16);
    color: #96680f;
}
.registrations-table td { min-width: 150px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.compact-action-buttons {
    align-items: center;
    gap: 6px;
}
.compact-action-buttons form {
    margin: 0;
}
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(11, 95, 52, .22);
    border-radius: 8px;
    background: #fff;
    color: var(--green);
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(6, 63, 37, .06);
}
.icon-btn:hover {
    background: var(--green);
    color: #fff;
}
.icon-btn.warning {
    border-color: #f0d698;
    background: #fff8e8;
    color: #8b650e;
}
.icon-btn.warning:hover {
    background: var(--gold);
    color: #173326;
}
.icon-btn.danger {
    border-color: #f2b8aa;
    background: #fff;
    color: #a33a23;
}
.icon-btn.danger:hover {
    background: #a33a23;
    color: #fff;
}
.pill { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 900; }
.muted-pill { background: #f0f2f1; color: #66756c; }
.users-table td:nth-child(3) { min-width: 300px; }
.permission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.permission-tags span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef8f2;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}
.admin-user-form {
    max-width: 980px;
}
.permission-active-toggle {
    align-content: end;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbf9;
}
.permission-panel {
    display: grid;
    gap: 16px;
    margin: 10px 0 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}
.permission-panel h2 {
    margin-bottom: 4px;
    color: var(--green-dark);
}
.permission-panel p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}
.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.permission-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
}
.permission-grid input,
.permission-active-toggle input {
    width: auto;
    min-height: auto;
    accent-color: var(--green);
}
.danger { color: #a33a23; background: #fff; border-color: #ffd5cc; box-shadow: none; }
.btn.warning {
    background: #fff8e8;
    color: #8b650e;
    border-color: #f0d698;
    box-shadow: none;
}
.btn.warning:hover {
    background: var(--gold);
    color: #173326;
    border-color: var(--gold);
}
.action-buttons {
    align-items: center;
}
.action-buttons form {
    margin: 0;
}
.action-buttons .btn {
    min-width: 72px;
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
}
.messages-table td {
    vertical-align: middle;
}
.messages-table .message-preview {
    min-width: 250px;
    max-width: 460px;
    white-space: normal;
    color: #53665b;
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.admin-tabs a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-weight: 900; }
.admin-tabs a.active { background: var(--green); color: #fff; border-color: var(--green); }
.pagination {
    margin-top: 18px;
    color: var(--ink);
    font-size: 13px;
}
.pagination nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pagination svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block;
}
.pagination a,
.pagination span {
    font-size: 13px;
}
.pagination a[rel="prev"],
.pagination a[rel="next"],
.pagination [aria-label*="Previous"],
.pagination [aria-label*="Next"],
.pagination [aria-label*="السابق"],
.pagination [aria-label*="التالي"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
}
.pagination .inline-flex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pagination .relative {
    width: auto !important;
    height: auto !important;
}
.admin-body .pagination,
.admin-body .pagination nav,
.admin-body .pagination div,
.admin-body .pagination span,
.admin-body .pagination a {
    max-width: 100%;
}
.admin-body .pagination svg,
.admin-body .pagination a svg,
.admin-body .pagination span svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
}
.admin-body .pagination [aria-hidden="true"] {
    display: inline-grid !important;
    place-items: center;
    width: 18px !important;
    height: 18px !important;
}
.admin-body .pagination a,
.admin-body .pagination span {
    line-height: 1.2;
}
.message-card { margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.extra-fields-list {
    display: grid;
    gap: 8px;
    margin: 0;
}
.extra-fields-list div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--soft);
}
.extra-fields-list dt {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
}
.extra-fields-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 900;
}
.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.compact-registration-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.compact-registration-list article {
    display: grid;
    gap: 7px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}
.compact-registration-list small {
    color: var(--muted);
    font-weight: 800;
}
.media-library {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.compact-media-form {
    padding: 18px;
}
.compact-media-form .grid.three {
    gap: 12px;
    align-items: start;
}
.compact-media-form label {
    margin-bottom: 0;
    gap: 6px;
    font-size: 13px;
}
.compact-media-form input,
.compact-media-form select,
.compact-media-form textarea {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
}
.compact-media-form input[type="file"] {
    padding: 7px 10px;
}
.media-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(6, 63, 37, .05);
}
.media-preview {
    height: 190px;
    background: var(--soft);
}
.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-missing {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 16px;
    border: 1px dashed rgba(163, 58, 35, .34);
    color: #a33a23;
    background: #fff6f3;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}
.media-card-body {
    display: grid;
    gap: 8px;
    padding: 12px;
}
.media-card-body small {
    color: var(--muted);
}
.media-card-body .btn {
    justify-self: start;
    min-height: 32px;
    padding-inline: 11px;
    font-size: 12px;
}
.media-card-body input,
.code-input {
    direction: ltr;
    text-align: left;
}
.compact-link-input {
    width: min(100%, 340px);
    min-height: 32px;
    margin-top: 8px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
}
.policy-public-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
}
.admin-help-text {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.settings-form {
    display: grid;
    gap: 14px;
}
.settings-accordion {
    padding: 0;
    overflow: hidden;
}
.settings-accordion summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    cursor: pointer;
    list-style: none;
    background: #fff;
}
.settings-accordion summary::-webkit-details-marker {
    display: none;
}
.settings-accordion summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
}
.settings-accordion[open] summary::after {
    content: "-";
    background: var(--green);
    color: #fff;
}
.settings-accordion summary span {
    display: block;
    font-size: 1rem;
    font-weight: 900;
}
.settings-accordion summary small {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}
.settings-help-card {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--green-soft);
}
.settings-help-card strong {
    display: block;
    color: var(--green-dark);
    margin-bottom: 4px;
}
.settings-help-card p {
    margin: 0;
    color: var(--muted);
}
.registration-field-builder {
    gap: 12px;
}
.registration-field-row {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.mini-toggle {
    align-self: stretch;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}
.mini-toggle input,
.maintenance-toggle input {
    width: auto;
}
.form-accordion {
    margin: 18px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.form-accordion summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    background: var(--soft);
}
.form-accordion summary::-webkit-details-marker {
    display: none;
}
.form-accordion summary::after {
    content: "+";
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    color: var(--green);
    font-weight: 900;
}
.form-accordion[open] summary::after {
    content: "-";
    background: var(--green);
    color: #fff;
}
.form-accordion summary span {
    display: block;
    font-weight: 900;
}
.form-accordion summary small {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}
.accordion-body {
    padding: 18px;
}
.program-section-editor {
    display: grid;
    gap: 14px;
}
.program-section-row {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}
.settings-panel-body {
    padding: 0 20px 20px;
    border-top: 1px solid var(--line);
}
.identity-colors {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}
.palette-preview {
    display: flex;
    gap: 8px;
}
.palette-preview span {
    width: 48px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
}
.repeat-grid {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.maintenance-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}
.maintenance-toggle input {
    width: auto !important;
}
.icon-visibility-toggle {
    flex-wrap: wrap;
}
.icon-visibility-toggle small {
    flex-basis: 100%;
    color: var(--muted);
    font-weight: 700;
}
.custom-html {
    color: #233b2e;
}
.custom-html h1,
.custom-html h2,
.custom-html h3 {
    color: var(--green-dark);
}
.custom-html img {
    border-radius: 8px;
    margin-block: 18px;
}
.custom-html a {
    color: var(--green);
    font-weight: 900;
    text-decoration: underline;
}
.custom-frame-shell {
    width: min(1320px, calc(100% - 32px));
}
.custom-page-frame {
    display: block;
    width: 100%;
    min-height: 1180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(6, 63, 37, .05);
}
.maintenance-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(6, 63, 37, .92), rgba(11, 95, 52, .82)),
        var(--green-dark);
}
.maintenance-card {
    width: min(640px, 100%);
    padding: clamp(28px, 5vw, 52px);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}
.maintenance-card .brand-mark {
    margin-inline: auto;
    margin-bottom: 18px;
}
.maintenance-card h1 {
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.2;
}
.maintenance-card p {
    color: var(--muted);
    font-size: 18px;
}

.print-body {
    background: #edf4ef;
    color: var(--ink);
}
.print-sheet {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto;
    padding: 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(6, 63, 37, .10);
}
.print-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}
.print-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--green);
}
.print-header span,
.print-header time {
    color: var(--muted);
    font-weight: 900;
}
.print-header h1 {
    margin: 5px 0 0;
    color: var(--green-dark);
}
.print-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.print-summary div {
    padding: 14px;
    border-radius: 8px;
    background: var(--green-soft);
}
.print-summary span,
.print-table small {
    display: block;
    color: var(--muted);
    font-weight: 800;
}
.print-summary strong {
    color: var(--green);
    font-size: 1.5rem;
}
.print-table {
    width: 100%;
    border-collapse: collapse;
}
.print-table th,
.print-table td {
    padding: 12px;
    border: 1px solid var(--line);
    text-align: right;
    vertical-align: top;
}
.print-table th {
    background: var(--green-dark);
    color: #fff;
}

@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
    .print-sheet {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    .print-table th,
    .print-table td {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 1020px) {
    .admin-body {
        height: auto;
        overflow: auto;
    }
    .admin-shell {
        height: auto;
        min-height: 100vh;
    }
    .admin-main {
        height: auto;
        overflow: visible;
    }
    .nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding-block: 12px;
    }
    .mobile-nav-toggle { display: grid; }
    .nav-links,
    .nav-actions {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
    }
    .topline-inner { flex-wrap: wrap; }
    .site-header.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 18px 44px rgba(6, 63, 37, .10);
    }
    .site-header.mobile-open .nav-actions {
        display: flex;
        justify-content: stretch;
        flex-wrap: wrap;
        gap: 8px;
    }
    .nav-links a,
    .nav-trigger {
        width: 100%;
        justify-content: space-between;
        min-height: 42px;
        padding: 8px 12px;
        border: 1px solid rgba(11, 95, 52, .10);
        border-radius: 8px;
        background: var(--soft);
    }
    .nav-links a:hover,
    .nav-links a.active,
    .nav-trigger:hover,
    .nav-trigger.active {
        border-color: rgba(228, 173, 58, .48);
        background: #fff;
    }
    .nav-dropdown { width: 100%; }
    .mega-menu {
        position: static;
        width: 100%;
        display: none;
        grid-template-columns: 1fr;
        margin-top: 8px;
        padding: 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: 0 14px 34px rgba(6, 63, 37, .11);
    }
    .mega-menu::before { display: none; }
    .nav-dropdown:hover .mega-menu,
    .nav-dropdown:focus-within .mega-menu { display: none; }
    .nav-dropdown.is-open .mega-menu { display: grid; }
    .split, .detail-grid, .article-layout, .contact-grid, .contact-showcase-grid, .news-partners, .featured-news, .news-spotlight, .news-detail-layout, .program-hero-grid, .program-detail-layout, .about-showcase-grid, .about-mission-grid, .footer-grid, .admin-shell, .register-layout, .report-grid { grid-template-columns: 1fr; }
    .side-panel, .sidebar, .program-enroll-card, .register-info-card { position: relative; top: auto; height: auto; }
    .grid.three, .grid.four, .stats-grid, .metric-grid, .media-library, .home-news-grid, .news-archive-grid, .partner-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-card.is-featured { grid-row: auto; }
    .news-side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .program-hero-media { width: min(520px, 100%); }
    .program-enroll-card { order: 2; }
    .program-main-content { order: 1; }
    .about-service-grid,
    .about-value-grid,
    .compact-registration-list,
    .permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    .container, .narrow { width: min(100% - 20px, 1180px); }
    .topline-inner {
        min-height: auto;
        justify-content: center;
        gap: 8px;
        padding-block: 8px;
        text-align: center;
    }
    .topline-links {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .topline-contact {
        width: 100%;
        justify-content: center;
        gap: 8px 14px;
    }
    .topline-links a {
        min-height: 30px;
        padding-inline: 10px;
        font-size: .78rem;
    }
    .nav {
        align-items: center;
        gap: 12px;
        min-height: auto;
    }
    .brand {
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }
    .brand strong { font-size: .92rem; }
    .brand small { font-size: .76rem; }
    .brand-logo, .brand-mark { width: 48px; height: 48px; }
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 8px 12px;
        font-size: .86rem;
    }
    .nav-links a { padding-block: 5px; }
    .nav-dropdown { width: 100%; text-align: center; }
    .nav-trigger {
        width: 100%;
        justify-content: center;
        min-height: 36px;
    }
    .mega-menu {
        position: static;
        width: 100%;
        display: none;
        grid-template-columns: 1fr;
        margin-top: 8px;
        padding: 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: 0 14px 34px rgba(6, 63, 37, .11);
    }
    .mega-menu::before { display: none; }
    .nav-dropdown:hover .mega-menu,
    .nav-dropdown:focus-within .mega-menu { display: none; }
    .nav-dropdown.is-open .mega-menu { display: grid; }
    .mega-action {
        flex-direction: column;
    }
    .nav-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .btn { min-height: 40px; padding-inline: 14px; font-size: .9rem; }
    .hero, .hero-slide { min-height: 500px; }
    .slider-hero { min-height: 500px; height: 500px; }
    .hero-content { padding-block: 58px; }
    .hero h1 { font-size: 2.15rem; }
    .page-hero h1, .detail-hero h1 { font-size: 2.05rem; }
    .hero p, .page-hero p, .detail-hero p, .lead { font-size: .98rem; }
    .section { padding-block: 50px; }
    .stats-strip { margin-top: 0; }
    .stats-grid { padding: 12px; }
    .section-head.with-action, .news-archive-head { align-items: flex-start; flex-direction: column; }
    .grid.three, .grid.four, .stats-grid, .metric-grid, .value-grid, .partner-grid, .partner-grid.wide, .contact-cards, .contact-method-grid, .about-service-grid, .about-value-grid, .media-library, .home-news-grid, .news-archive-grid, .article-switcher, .news-side-stack, .program-hero-facts, .program-check-list, .about-stat-grid, .dynamic-field-grid, .compact-registration-list, .print-summary, .permission-grid { grid-template-columns: 1fr; }
    .about-service-card.is-featured,
    .about-value-card.is-featured { grid-column: auto; }
    .admin-main { padding: 18px; }
    .admin-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .registration-phone-grid,
    .phone-row { grid-template-columns: 1fr; }
    .registration-phone-grid .country-picker-trigger {
        justify-content: stretch;
    }
    .registration-phone-grid .country-selected-text strong {
        display: block;
    }
    .registration-phone-grid .country-options {
        width: 100%;
        left: 0;
    }
    .register-info-grid { grid-template-columns: 1fr; }
    .extra-fields-list div { grid-template-columns: 1fr; }
    .cta-inner { align-items: flex-start; flex-direction: column; }
    .featured-news img, .detail-image, .media-frame img { height: 240px; }
    .news-card,
    .news-card.is-featured { grid-template-rows: 220px 1fr; }
    .news-detail-hero { padding-top: 40px; }
    .news-detail-hero h1 { font-size: 1.7rem; }
    .news-main-photo {
        height: 260px;
        margin-bottom: 26px;
        border-radius: 8px;
    }
    .gallery-counter {
        bottom: 10px;
        min-height: 28px;
        padding-inline: 10px;
        font-size: .82rem;
    }
    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }
    .gallery-nav.prev { right: 8px; }
    .gallery-nav.next { left: 8px; }
    .quick-info-card,
    .news-content-panel,
    .article-switcher a { padding: 18px; }
    .quote-mark {
        position: static;
        margin-bottom: 12px;
    }
    .news-update-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .program-hero {
        padding: 44px 0;
    }
    .program-hero h1 {
        font-size: 2rem;
    }
    .program-hero p {
        font-size: .96rem;
    }
    .breadcrumb-line {
        font-size: .78rem;
    }
    .program-hero-media {
        padding: 5px;
    }
    .program-tabs {
        gap: 6px;
    }
    .program-tabs a {
        padding: 8px 6px 10px;
        font-size: .84rem;
    }
    .program-section-card,
    .program-enroll-card {
        padding: 18px;
    }
    .program-enroll-card > strong {
        font-size: 1.65rem;
    }
    .about-browser-card {
        padding: 10px;
    }
    .about-intro-panel {
        padding: 22px;
    }
    .about-stat-panel { padding: 20px; }
    .about-goal-list li {
        padding: 16px 42px 16px 14px;
    }
    .contact-method-card.is-featured { grid-column: auto; }
    .back-to-top {
        inset-inline-end: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
        font-size: 1.35rem;
    }
    .contact-form-card,
    .contact-experience-panel {
        padding: 20px;
    }
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .footer { padding-top: 38px; }
    .settings-accordion summary,
    .form-accordion summary { align-items: flex-start; }
}

/* Smart assistant */
.form-honeypot {
    position: absolute !important;
    inset-inline-start: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.form-security-box {
    display: grid;
    gap: 8px;
    justify-items: start;
    padding: 14px;
    border: 1px solid #dce9e1;
    border-radius: 8px;
    background: #f6faf7;
}
.form-security-box small { color: #63756b; font-size: .78rem; }
.human-challenge {
    grid-template-columns: minmax(130px, auto) minmax(90px, 130px);
    align-items: end;
}
.human-challenge label {
    display: grid;
    gap: 4px;
    margin: 0;
    color: var(--green-dark);
}
.human-challenge label span { font-size: .78rem; font-weight: 700; }
.human-challenge label strong { font-size: 1rem; }
.human-challenge input {
    width: 100%;
    min-height: 44px;
    margin: 0;
    text-align: center;
}
.human-challenge small,
.human-challenge .field-error { grid-column: 1 / -1; }
.field-error { color: #b42318; font-size: .8rem; font-weight: 700; }
.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}
.risk-badge.low { color: #086b3b; background: #e8f7ee; }
.risk-badge.medium { color: #8a5200; background: #fff3d6; }
.risk-badge.high { color: #a3261d; background: #fee9e7; }
.security-meta { display: grid; gap: 4px; min-width: 120px; }
.security-meta small { color: #66776e; }
.security-reasons { margin: 6px 0 0; padding-inline-start: 18px; font-size: .78rem; }
.security-summary-grid { margin-bottom: 18px; }
.security-event-details { max-width: 320px; white-space: normal; }
.chatbot {
    position: fixed;
    right: 82px;
    left: auto;
    bottom: 22px;
    z-index: 1200;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
}
.whatsapp-float {
    position: fixed;
    right: 22px;
    left: auto;
    bottom: 22px;
    z-index: 1190;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    color: #fff;
    background: #1f9d55;
    box-shadow: 0 14px 34px rgba(6, 63, 37, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(6, 63, 37, .32);
}
.whatsapp-float svg { width: 27px; height: 27px; }
.chatbot-launcher {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--green);
    box-shadow: 0 14px 36px rgba(6, 63, 37, .24);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.chatbot-launcher-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--green-dark);
    background: var(--gold);
}
.chatbot-window {
    position: absolute;
    inset-inline-start: 0;
    bottom: 62px;
    display: none;
    width: min(380px, calc(100vw - 28px));
    height: min(620px, calc(100vh - 120px));
    grid-template-rows: auto 1fr auto auto auto;
    overflow: hidden;
    border: 1px solid rgba(11, 95, 52, .16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(6, 63, 37, .24);
}
.chatbot.is-open .chatbot-window { display: grid; }
.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 13px 16px;
    color: #fff;
    background: var(--green-dark);
}
.chatbot-header > div {
    display: grid;
    grid-template-columns: 10px 1fr;
    column-gap: 9px;
}
.chatbot-header strong { font-size: .96rem; }
.chatbot-header small {
    grid-column: 2;
    color: rgba(255,255,255,.72);
    font-size: .75rem;
}
.chatbot-status {
    align-self: center;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}
.chatbot-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.1);
    font-size: 1.5rem;
    cursor: pointer;
}
.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
    background: #f5f9f6;
}
.chatbot-message {
    max-width: 88%;
    padding: 11px 13px;
    border: 1px solid #dfebe4;
    border-radius: 8px;
    white-space: pre-wrap;
    line-height: 1.75;
    font-size: .88rem;
}
.chatbot-message.assistant {
    align-self: flex-start;
    color: #173326;
    background: #fff;
}
.chatbot-message.user {
    align-self: flex-end;
    border-color: var(--green);
    color: #fff;
    background: var(--green);
}
.chatbot-message.is-loading { color: #6b7f74; }
.chatbot-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #e5eee8;
}
.chatbot-sources a {
    padding: 4px 8px;
    border-radius: 5px;
    color: var(--green);
    background: #edf6f0;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
}
.chatbot-suggestions {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 9px 12px 5px;
    background: #fff;
}
.chatbot-suggestions button {
    flex: 0 0 auto;
    min-height: 30px;
    padding-inline: 9px;
    border: 1px solid #d7e5dc;
    border-radius: 6px;
    color: var(--green-dark);
    background: #fff;
    font: inherit;
    font-size: .74rem;
    cursor: pointer;
}
.chatbot-form {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
}
.chatbot-form textarea {
    min-height: 42px;
    max-height: 100px;
    resize: none;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #cfddd4;
    border-radius: 6px;
    font: inherit;
    font-size: .85rem;
}
.chatbot-form button {
    border: 0;
    border-radius: 6px;
    color: #173326;
    background: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
}
.chatbot-form button:disabled { opacity: .55; cursor: wait; }
.chatbot-note {
    margin: 0;
    padding: 0 12px 9px;
    color: #718078;
    background: #fff;
    font-size: .68rem;
    text-align: center;
}
.chatbot-admin-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chatbot-admin-message {
    width: min(760px, 92%);
    padding: 15px;
    border: 1px solid #dfe9e2;
    border-radius: 8px;
    background: #fff;
}
.chatbot-admin-message.user { align-self: flex-start; border-inline-start: 4px solid var(--gold); }
.chatbot-admin-message.assistant { align-self: flex-end; border-inline-start: 4px solid var(--green); background: #f2f8f4; }
.chatbot-admin-message p { white-space: pre-wrap; }
.chatbot-admin-message small { color: #718078; }

@media (max-width: 640px) {
    .chatbot { right: 70px; left: auto; bottom: 14px; }
    .whatsapp-float { right: 14px; left: auto; bottom: 14px; width: 48px; height: 48px; }
    .human-challenge { grid-template-columns: 1fr 92px; }
    .chatbot-launcher span:last-child { display: none; }
    .chatbot-launcher { width: 48px; padding: 8px; }
    .chatbot-window {
        position: fixed;
        inset: auto 10px 10px;
        width: auto;
        height: min(680px, calc(100vh - 20px));
    }
    .chatbot.is-open .chatbot-launcher { display: none; }
}
.bulk-action-bar,
.admin-filter-grid {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-action-bar {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid rgba(11, 95, 52, .16);
    background: #f3faf6;
    border-radius: 8px;
}

.bulk-action-bar select {
    min-width: 170px;
    height: 38px;
}

.compact-filter-panel {
    margin-bottom: 12px;
    padding: 12px;
}

.admin-filter-grid label {
    display: grid;
    gap: 5px;
    min-width: 180px;
    flex: 1;
    font-size: 13px;
    font-weight: 700;
}

.admin-filter-grid input,
.admin-filter-grid select {
    height: 40px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 1px;
}

.selection-cell {
    width: 42px;
    text-align: center !important;
}

.selection-cell input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand-primary, #0b5f34);
}

@media (max-width: 720px) {
    .admin-filter-grid label,
    .admin-filter-grid .filter-actions,
    .bulk-action-bar select,
    .bulk-action-bar .btn {
        width: 100%;
    }
}

/* Unified admin controls and responsive navigation */
.admin-icon {
    display: block;
    flex: 0 0 auto;
    pointer-events: none;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-nav-toggle {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.admin-nav-toggle:hover,
.admin-nav-toggle[aria-expanded="true"] {
    border-color: rgba(228, 173, 58, .75);
    background: var(--gold);
    color: #173326;
}

.side-nav a,
.side-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-nav a .admin-icon,
.side-nav button .admin-icon {
    width: 17px;
    height: 17px;
    opacity: .86;
}

.side-nav a.active .admin-icon,
.side-nav a:hover .admin-icon,
.side-nav button:hover .admin-icon {
    color: var(--gold);
    opacity: 1;
}

.admin-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-body .btn .admin-icon {
    width: 17px;
    height: 17px;
}

.admin-body input:not([type="checkbox"]):not([type="radio"]),
.admin-body select,
.admin-body textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d4e2da;
    border-radius: 8px;
    padding: 9px 12px;
    background: #fbfdfc;
    color: var(--ink);
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-body textarea {
    min-height: 112px;
    line-height: 1.8;
    resize: vertical;
}

.admin-body input[type="file"] {
    padding: 7px;
    background: #fff;
}

.admin-body input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-body select:focus,
.admin-body textarea:focus {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 95, 52, .11);
}

.admin-body input::placeholder,
.admin-body textarea::placeholder {
    color: #8a9a91;
}

.admin-body label {
    color: var(--ink);
    font-weight: 800;
}

.admin-body .panel,
.admin-body .form-card {
    border-color: #dfe9e3;
    box-shadow: 0 12px 34px rgba(6, 63, 37, .06);
}

.admin-body .table-scroll {
    border: 1px solid #e0eae4;
    border-radius: 8px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 95, 52, .35) transparent;
}

.admin-body .admin-table {
    border-radius: 0;
}

.admin-body .admin-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #edf7f1;
    color: #284537;
}

.admin-body .admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.row-actions.compact-action-buttons,
.row-actions.admin-icon-actions {
    flex-wrap: nowrap;
    gap: 7px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.icon-btn .admin-icon {
    width: 17px;
    height: 17px;
}

.icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(6, 63, 37, .14);
}

.icon-btn:focus-visible,
.admin-nav-toggle:focus-visible,
.admin-body .btn:focus-visible {
    outline: 3px solid rgba(228, 173, 58, .35);
    outline-offset: 2px;
}

.compact-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-list-head {
    margin-bottom: 16px;
}

.bulk-action-bar strong {
    color: var(--green-dark);
}

.bulk-action-bar select,
.admin-filter-grid input,
.admin-filter-grid select {
    min-height: 42px;
}

@media (max-width: 1020px) {
    .admin-shell {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    .admin-main,
    .admin-main > :not(script),
    .admin-panel,
    .admin-body .form-card,
    .admin-body .table-scroll {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .admin-main {
        width: 100%;
        overflow-x: hidden;
    }

    .admin-body .table-scroll {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-body .sidebar {
        position: sticky;
        top: 0;
        z-index: 500;
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 10px 16px;
        box-shadow: 0 10px 28px rgba(3, 36, 21, .2);
    }

    .sidebar-brand {
        margin: 0;
        min-width: 0;
        justify-content: flex-start;
        text-align: right;
    }

    .sidebar-brand .brand-mark {
        width: 42px;
        height: 42px;
        font-size: .72rem;
    }

    .sidebar-brand strong {
        font-size: .85rem;
    }

    .sidebar-brand small {
        font-size: .72rem;
    }

    .admin-nav-toggle {
        display: grid;
    }

    .side-nav {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        display: none;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        padding: 10px 16px 18px;
        border-top: 1px solid rgba(255, 255, 255, .1);
        background: var(--green-dark);
        box-shadow: 0 22px 36px rgba(3, 36, 21, .22);
    }

    .sidebar.nav-open .side-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .side-nav-group-title {
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .side-nav form {
        grid-column: 1 / -1;
    }

    .admin-main {
        min-height: calc(100vh - 64px);
        padding: 20px;
    }

    .admin-header {
        margin-bottom: 18px;
    }
}

@media (max-width: 640px) {
    .admin-body .sidebar {
        padding: 9px 12px;
    }

    .sidebar-brand strong {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar.nav-open .side-nav {
        grid-template-columns: 1fr;
        padding-inline: 12px;
    }

    .admin-main {
        padding: 14px 10px 24px;
    }

    .admin-header,
    .admin-toolbar {
        gap: 12px;
    }

    .admin-header .btn,
    .admin-toolbar > .btn,
    .admin-toolbar > form,
    .admin-toolbar > form .btn {
        width: 100%;
    }

    .admin-panel,
    .form-card {
        padding: 16px;
    }

    .compact-toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compact-toolbar-actions .btn {
        width: 100%;
        padding-inline: 8px;
    }

    .admin-body .admin-table {
        display: table;
        width: 720px;
        min-width: 720px;
        max-width: none;
        overflow: visible;
    }

    .admin-body .admin-table th,
    .admin-body .admin-table td {
        padding: 9px 10px;
    }

    .bulk-action-bar {
        align-items: stretch;
    }

    .bulk-action-bar strong {
        width: 100%;
    }

    .bulk-action-bar select,
    .bulk-action-bar .btn,
    .admin-filter-grid label,
    .admin-filter-grid .filter-actions {
        width: 100%;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Compact fixed admin rail and horizontal mobile navigation */
.admin-nav-toggle {
    display: none !important;
}

@media (min-width: 1021px) {
    .admin-body {
        height: 100vh;
        overflow: hidden;
    }

    .admin-shell {
        display: block;
        width: 100%;
        height: 100vh;
        min-height: 0;
    }

    .admin-body .sidebar {
        position: fixed;
        z-index: 600;
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 88px;
        height: 100vh;
        padding: 14px 10px;
        overflow-x: hidden;
        overflow-y: auto;
        background: var(--green-dark);
        box-shadow: 10px 0 30px rgba(3, 36, 21, .12);
        scrollbar-width: none;
    }

    .admin-body .sidebar::-webkit-scrollbar {
        width: 0;
    }

    .sidebar-top {
        display: block;
    }

    .sidebar-brand {
        display: grid;
        place-items: center;
        margin: 0 0 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .sidebar-brand .brand-mark {
        width: 52px;
        height: 52px;
        font-size: .78rem;
    }

    .sidebar-brand > span:last-child,
    .side-nav-group-title,
    .side-nav a > span:not(.admin-icon),
    .side-nav button > span:not(.admin-icon) {
        display: none;
    }

    .side-nav {
        display: grid;
        gap: 5px;
    }

    .side-nav a,
    .side-nav button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 8px;
    }

    .side-nav a .admin-icon,
    .side-nav button .admin-icon {
        width: 20px;
        height: 20px;
    }

    .side-nav a.active {
        background: var(--gold);
        color: #173326;
        box-shadow: 0 9px 20px rgba(0, 0, 0, .14);
    }

    .side-nav a.active .admin-icon {
        color: #173326;
    }

    .side-nav form {
        margin: 0;
    }

    .admin-main {
        width: calc(100% - 88px);
        height: 100vh;
        min-width: 0;
        margin-left: 88px;
        padding: 24px;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

@media (max-width: 1020px) {
    .admin-body {
        height: 100vh;
        overflow: hidden;
    }

    .admin-shell {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    .admin-body .sidebar {
        position: relative;
        z-index: 600;
        top: auto;
        right: auto;
        left: auto;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        padding: 0;
        overflow: visible;
        background: #fff;
        color: var(--ink);
        box-shadow: 0 10px 28px rgba(3, 36, 21, .12);
    }

    .sidebar-top {
        display: flex;
        align-items: center;
        min-height: 64px;
        padding: 8px 14px;
        background: #fff;
    }

    .sidebar-brand {
        display: flex;
        width: 100%;
        margin: 0;
        color: var(--green-dark);
    }

    .sidebar-brand small {
        color: var(--muted);
    }

    .sidebar-brand strong {
        max-width: 230px;
        overflow: hidden;
        color: var(--green-dark);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-brand .brand-mark {
        width: 44px;
        height: 44px;
        color: #173326;
    }

    .side-nav,
    .sidebar.nav-open .side-nav {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        display: flex;
        align-items: center;
        width: 100%;
        max-height: none;
        gap: 6px;
        padding: 8px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        border: 0;
        background: var(--green-dark);
        box-shadow: none;
        direction: rtl;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .side-nav::-webkit-scrollbar {
        display: none;
    }

    .side-nav-group-title {
        display: none;
    }

    .side-nav a,
    .side-nav button {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 42px;
        gap: 7px;
        padding: 9px 13px;
        border: 1px solid transparent;
        border-radius: 8px;
        color: rgba(255, 255, 255, .84);
        text-align: center;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .side-nav a .admin-icon,
    .side-nav button .admin-icon {
        width: 16px;
        height: 16px;
    }

    .side-nav a.active {
        border-color: rgba(255, 255, 255, .32);
        background: var(--gold);
        color: #173326;
        box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
    }

    .side-nav a.active .admin-icon {
        color: #173326;
    }

    .side-nav form {
        flex: 0 0 auto;
        grid-column: auto;
    }

    .admin-main {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 18px;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

@media (max-width: 640px) {
    .sidebar-top {
        min-height: 60px;
        padding-inline: 11px;
    }

    .sidebar-brand strong {
        max-width: 210px;
    }

    .side-nav,
    .sidebar.nav-open .side-nav {
        padding: 7px 10px;
    }

    .side-nav a,
    .side-nav button {
        min-height: 40px;
        padding: 8px 11px;
    }

    .admin-main {
        padding: 14px 10px 24px;
    }
}

/* Expandable RTL desktop sidebar */
.admin-sidebar-toggle {
    display: none;
}

@media (min-width: 1021px) {
    .admin-body .sidebar {
        left: auto;
        right: 0;
        width: 264px;
        padding: 14px;
        direction: rtl;
        transition: width .22s ease, padding .22s ease;
    }

    .sidebar-top {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        direction: rtl;
    }

    .sidebar-brand {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        margin: 0;
        padding: 0;
        border: 0;
        text-align: right;
    }

    .sidebar-brand > span:last-child {
        display: grid;
        min-width: 0;
    }

    .sidebar-brand strong,
    .sidebar-brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-sidebar-toggle {
        display: grid;
        flex: 0 0 auto;
        place-items: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 8px;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        cursor: pointer;
        transition: background .18s ease, color .18s ease, transform .22s ease;
    }

    .admin-sidebar-toggle:hover,
    .admin-sidebar-toggle:focus-visible {
        background: var(--gold);
        color: #173326;
    }

    .admin-sidebar-toggle .admin-icon {
        width: 18px;
        height: 18px;
        transform: rotate(0deg);
        transition: transform .22s ease;
    }

    .side-nav {
        direction: rtl;
    }

    .side-nav-group-title {
        display: block;
        width: 100%;
        margin-top: 8px;
        padding: 9px 11px 3px;
        text-align: right;
    }

    .side-nav a,
    .side-nav button {
        justify-content: flex-start;
        gap: 10px;
        height: 44px;
        padding: 0 12px;
        text-align: right;
        white-space: nowrap;
    }

    .side-nav a > span:not(.admin-icon),
    .side-nav button > span:not(.admin-icon) {
        display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-main {
        width: calc(100% - 264px);
        margin-left: 0;
        margin-right: 264px;
        transition: width .22s ease, margin-right .22s ease;
    }

    .admin-sidebar-collapsed .admin-body .sidebar {
        width: 88px;
        padding-inline: 10px;
    }

    .admin-sidebar-collapsed .sidebar-top {
        display: grid;
        justify-items: center;
    }

    .admin-sidebar-collapsed .sidebar-brand {
        display: grid;
        place-items: center;
        width: 100%;
    }

    .admin-sidebar-collapsed .sidebar-brand > span:last-child,
    .admin-sidebar-collapsed .side-nav-group-title,
    .admin-sidebar-collapsed .side-nav a > span:not(.admin-icon),
    .admin-sidebar-collapsed .side-nav button > span:not(.admin-icon) {
        display: none;
    }

    .admin-sidebar-collapsed .admin-sidebar-toggle .admin-icon {
        transform: rotate(180deg);
    }

    .admin-sidebar-collapsed .side-nav a,
    .admin-sidebar-collapsed .side-nav button {
        justify-content: center;
        padding: 0;
    }

    .admin-sidebar-collapsed .admin-main {
        width: calc(100% - 88px);
        margin-left: 0;
        margin-right: 88px;
    }
}

@media (max-width: 1020px) {
    .admin-sidebar-toggle {
        display: none !important;
    }
}
