/* ==========================================================================
   مكتب تنسيق التعريب — site stylesheet
   Based on the 2025 prototype (Cairo / Amiri, ink-green & gold palette)
   ========================================================================== */
:root {
    --ink: #0C1F0E;
    --ink-2: #0C1A0E;
    --forest: #14532D;
    --emerald: #166534;
    --leaf: #16A34A;
    --sage: #4ADE80;
    --gold: #B8860B;
    --gold-bright: #D4A017;
    --gold-light: #F0C040;
    --cream: #FDFBF5;
    --parchment: #F5F0E8;
    --warm: #EDE5D0;
    --border: #D4A01730;
    --border-solid: #D4A017;
    --text: #1C1008;
    --muted: #5C5040;
    --white: #FFFFFF;
    --danger: #B42318;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; background: var(--cream); color: var(--text); direction: rtl; overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font-family: 'Cairo', sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ══════ SCROLLBAR ══════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ══════ TOPBAR ══════ */
.topbar { background: var(--ink); color: rgba(255,255,255,.65); font-size: .72rem; padding: .35rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.topbar a { color: var(--gold-light); text-decoration: none; margin-left: .8rem; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 1rem; align-items: center; }
.topbar-contact a { margin: 0; color: rgba(255,255,255,.65); }
.topbar-contact a:hover { color: var(--gold-light); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ══════ HEADER ══════ */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(212,160,23,.25); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 .5rem; display: flex; align-items: stretch; }
.logo-wrap { display: flex; align-items: center; padding: .6rem 1.5rem .6rem 0; border-left: 1px solid rgba(212,160,23,.2); margin-left: 1.5rem; flex-shrink: 0; max-width: 175px; }
.logo-wrap img { height: 38px; width: auto; max-width: 160px; display: block; object-fit: contain; }

/* ══════ NAV ══════ */
.main-nav { flex: 1; display: flex; align-items: stretch; min-width: 0; }
.nav-list { display: flex; list-style: none; height: 100%; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: flex; align-items: center; gap: .15rem; padding: .75rem .42rem; color: rgba(255,255,255,.78); font-size: .72rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; background: none; white-space: nowrap; transition: color .2s; position: relative; height: 100%; }
.nav-link::after { content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link .caret { font-size: .55rem; opacity: .6; transition: transform .2s; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }

/* MEGA MENU */
.mega-menu { position: absolute; top: 100%; right: -1rem; background: var(--ink); border: 1px solid rgba(212,160,23,.25); border-top: 2px solid var(--gold); border-radius: 0 0 .75rem .75rem; padding: 1.5rem; min-width: 280px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s; z-index: 2000; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu-title { font-size: .65rem; letter-spacing: .1em; color: var(--gold); font-weight: 700; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(212,160,23,.2); }
.mega-menu a { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.7); font-size: .8rem; padding: .45rem .5rem; border-radius: .35rem; text-decoration: none; transition: all .2s; }
.mega-menu a:hover { color: var(--gold-light); background: rgba(212,160,23,.08); }
.mega-menu a .icon { width: 1.4rem; height: 1.4rem; background: rgba(212,160,23,.12); border-radius: .25rem; display: flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; }

.btn-cta { background: var(--gold); color: var(--ink); padding: .5rem 1.2rem; border-radius: .35rem; font-size: .78rem; font-weight: 700; text-decoration: none; transition: all .2s; border: none; cursor: pointer; white-space: nowrap; }
.btn-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ══════ BUTTONS ══════ */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--gold); color: var(--ink); padding: .75rem 1.8rem; border-radius: .4rem; font-size: .88rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: all .2s; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,160,23,.3); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--ink); padding: .75rem 1.8rem; border-radius: .4rem; font-size: .88rem; font-weight: 600; text-decoration: none; border: 1px solid rgba(0,0,0,.2); cursor: pointer; transition: all .2s; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline.on-dark { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline.on-dark:hover { color: var(--gold-light); border-color: var(--gold); }
.btn-pill { background: none; border: 1px solid rgba(212,160,23,.4); color: var(--gold-light); font-size: .75rem; font-weight: 600; padding: .35rem .9rem; border-radius: 2rem; cursor: pointer; text-decoration: none; transition: background .2s; white-space: nowrap; }
.btn-pill:hover { background: rgba(212,160,23,.15); }
.btn-sm { display: inline-block; padding: .4rem .9rem; background: var(--emerald); color: #fff; border-radius: .35rem; font-size: .75rem; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-sm:hover { background: var(--forest); }
.btn-sm.is-muted { background: var(--muted); }

/* ══════ SECTION COMMONS ══════ */
.section { padding: 4rem 2rem; }
.section-alt { background: var(--parchment); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header.is-start { text-align: right; margin-bottom: 1.5rem; }
.section-header.is-start .section-desc { margin: 0; }
.section-tag { display: inline-block; background: rgba(22,101,52,.12); border: 1px solid rgba(22,101,52,.25); color: var(--emerald); padding: .25rem .9rem; border-radius: 2rem; font-size: .7rem; font-weight: 700; letter-spacing: .05em; margin-bottom: .8rem; }
.section-title { font-family: 'Amiri', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--ink); line-height: 1.35; margin-bottom: .8rem; }
.section-title.is-sm { font-size: 1.5rem; }
.section-desc { font-size: .9rem; color: var(--muted); max-width: 580px; margin: 0 auto; line-height: 1.9; }
.section-divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; margin: 1rem auto 0; }

/* Dark band sections (home) */
.band { padding: 2.5rem 2rem; }
.band-dark { background: var(--ink-2); }
.band-ink { background: var(--ink); border-top: 1px solid rgba(212,160,23,.15); }
.band-inner { max-width: 1300px; margin: 0 auto; }
.band-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.band-title { display: flex; align-items: center; gap: .8rem; }
.band-title::before { content: ''; width: 4px; height: 1.8rem; background: var(--gold); border-radius: 2px; }
.band-title h2 { font-family: 'Amiri', serif; font-size: 1.4rem; color: #fff; margin: 0; }
.band-title.on-light h2 { color: var(--ink); }

/* ══════ GRIDS ══════ */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.grid-fill { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }

/* ══════ CARDS ══════ */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1rem; overflow: hidden; transition: all .3s; text-decoration: none; color: inherit; }
a.card:hover, .card.is-hover:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.1); border-color: rgba(212,160,23,.3); }
.card-img { height: 160px; background: var(--parchment); display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; overflow: hidden; }
.card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.15)); pointer-events: none; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img.is-tall { height: 170px; }
.card-img.is-cover { height: 240px; background: var(--ink); }
.card-img.is-cover img { object-fit: contain; }
.card-badge { position: absolute; top: .7rem; right: .7rem; z-index: 1; background: rgba(22,101,52,.9); color: #fff; font-size: .62rem; font-weight: 700; padding: .2rem .6rem; border-radius: 2rem; }
.card-badge.is-gold { background: rgba(184,134,11,.95); color: var(--ink); }
.card-badge.is-blue { background: rgba(28,58,110,.9); }
.card-body { padding: 1.3rem; flex: 1; }
.card-tag { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .05em; color: var(--emerald); margin-bottom: .4rem; }
.card-title { font-weight: 700; font-size: .95rem; line-height: 1.5; margin-bottom: .5rem; color: var(--ink); }
.card-desc { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.card-footer { padding: .8rem 1.3rem; border-top: 1px solid rgba(0,0,0,.06); display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card-date { font-size: .72rem; color: var(--muted); }
.card-link { font-size: .75rem; color: var(--emerald); font-weight: 600; text-decoration: none; }
.quick-card { text-align: center; padding: 1.5rem; }
.quick-card-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.quick-card-title { font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: .3rem; }
.quick-card-desc { font-size: .75rem; color: var(--muted); }

/* ══════ PAGE HERO (sub pages) ══════ */
.page-hero { background: linear-gradient(135deg, var(--ink) 0%, var(--forest) 100%); padding: 4rem 2rem 3rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; opacity: .05; background-image: repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 1px, transparent 0, transparent 50%); background-size: 30px 30px; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-tag { font-size: .7rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.page-hero h1 { font-family: 'Amiri', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: .6rem; line-height: 1.35; }
.page-hero p { color: rgba(255,255,255,.65); font-size: .9rem; max-width: 640px; line-height: 1.8; }
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.7); }
.page-hero .hero-actions { margin-top: 1.4rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .72rem; color: rgba(255,255,255,.4); margin-bottom: 1.2rem; list-style: none; }
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .current { color: var(--gold); }

/* ══════ TABS (media / publications / news filters) ══════ */
.media-tabs { display: flex; gap: .3rem; flex-wrap: wrap; background: var(--parchment); padding: .4rem; border-radius: .75rem; margin-bottom: 2rem; border: 1px solid var(--border); }
.media-tab { flex: 1; min-width: fit-content; text-align: center; padding: .5rem .8rem; border-radius: .5rem; font-size: .78rem; font-weight: 600; cursor: pointer; transition: all .25s; color: var(--muted); border: none; background: none; text-decoration: none; }
.media-tab:hover { color: var(--emerald); }
.media-tab.active { background: #fff; color: var(--emerald); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.media-panel { display: none; }
.media-panel.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ══════ HOME: INTRO BAR ══════ */
.intro-bar { background: var(--ink); border-bottom: 1px solid rgba(212,160,23,.15); padding: 1.1rem 2rem; }
.intro-bar-inner { max-width: 1300px; margin: 0 auto; }
.intro-bar-kicker { font-size: .7rem; color: var(--gold); font-weight: 700; letter-spacing: .06em; margin-bottom: .25rem; }
.intro-bar p { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.8; margin: 0; max-width: 900px; }

/* ══════ HOME: LEGACY HERO (kept from previous design: counters + flying letters) ══════ */
.legacy-hero { background-color: #105942; padding: 100px 0; position: relative; overflow: hidden; }
.legacy-hero .container { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; position: relative; }
.legacy-hero .letters { display: flex; align-items: center; gap: 2rem; position: relative; z-index: 2; }
.legacy-hero .banner-text-area { flex: 0 0 calc(66.666% - 1rem); }
.legacy-hero .banner-text-area h1 { color: #fff; font-family: 'Amiri', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.5; margin-bottom: .6rem; }
.legacy-hero .banner-text-area > p { color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.9; margin: 1rem 0 0; max-width: 720px; }
.legacy-hero .home-banner-area { flex: 1; padding: 0 20px 20px; position: relative; }
.legacy-hero .home-banner-area::before { content: ''; width: 100%; height: 50%; background-color: #fff; position: absolute; bottom: 0; left: 0; border-radius: 10px; }
.legacy-hero .home-banner-area img { position: relative; z-index: 1; border-radius: 10px; width: 100%; display: block; object-fit: cover; }
.fun-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.fun-fact { position: relative; z-index: 3; }
.fun-fact:not(:last-child)::after { content: ''; position: absolute; top: 5px; left: -.75rem; width: 1px; height: 60px; background: rgba(0,170,85,.5); }
.fun-facts-card { position: relative; display: flex; align-items: center; gap: 15px; }
.fun-facts-card i { width: 70px; height: 70px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; box-shadow: rgba(80,79,79,.1) 0 0 16px; transition: .5s ease-in-out; flex-shrink: 0; }
.fun-facts-card i img { width: auto; max-width: 42px; max-height: 42px; }
.fun-facts-card i img:last-child { display: none; }
.fun-facts-card:hover i { transform: rotateY(180deg); }
.fun-facts-card:hover i img:first-child { display: none; }
.fun-facts-card:hover i img:last-child { display: block; }
.fun-facts-card h2 { color: #fff; font-family: 'Cairo', sans-serif; font-size: 36px; font-weight: 700; line-height: 70px; margin: 0; }
.fun-facts-card h2 .odometer { direction: ltr !important; font-family: 'Cairo', sans-serif; }
.fun-fact-label { color: rgba(255,255,255,.8); font-size: .95rem; margin: .5rem 0 0; }
.falling-letters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }

/* ══════ HOME: NEWS ══════ */
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.news-hero { display: block; min-height: 420px; height: 100%; position: relative; border-radius: .75rem; overflow: hidden; text-decoration: none; }
.news-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-hero:hover img { transform: scale(1.04); }
.news-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.25) 55%, transparent 100%); }
.news-hero-body { position: absolute; bottom: 0; right: 0; left: 0; padding: 2rem; z-index: 1; }
.pill { display: inline-block; background: var(--gold); color: var(--ink); font-size: .65rem; font-weight: 800; padding: .22rem .75rem; border-radius: 2rem; letter-spacing: .03em; }
.news-hero-body .pill { margin-bottom: .8rem; }
.news-hero-body h3 { font-family: 'Amiri', serif; font-size: clamp(1.3rem, 2.2vw, 1.9rem); color: #fff; line-height: 1.45; margin: 0 0 .7rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.news-hero-body p { color: rgba(255,255,255,.7); font-size: .85rem; line-height: 1.8; margin: 0 0 1rem; max-width: 600px; }
.glass-link { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .75rem; padding: .4rem 1rem; border-radius: 2rem; backdrop-filter: blur(4px); }
.news-stack { display: flex; flex-direction: column; gap: .75rem; }
.news-mini { flex: 1; display: flex; min-height: 90px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: .6rem; overflow: hidden; text-decoration: none; transition: border-color .2s; }
.news-mini:hover { border-color: rgba(212,160,23,.45); }
.news-mini-img { width: 90px; flex-shrink: 0; overflow: hidden; position: relative; }
.news-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.news-mini-body { padding: .65rem .8rem; display: flex; flex-direction: column; gap: .3rem; justify-content: center; }
.news-mini-date { font-size: .62rem; color: rgba(212,160,23,.75); }
.news-mini-title { font-family: 'Amiri', serif; font-size: .92rem; color: #fff; line-height: 1.45; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty-state { padding: 2.5rem 1rem; text-align: center; color: var(--muted); font-size: .9rem; border: 1px dashed rgba(0,0,0,.15); border-radius: .75rem; }
.band .empty-state { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.15); }

/* News image placeholder: gradient drawn behind the image, visible when there is no image or it fails to load */
.img-ph { position: relative; overflow: hidden; background: radial-gradient(circle at 20% 15%, rgba(240,192,64,.28), transparent 55%), linear-gradient(135deg, var(--ink) 0%, var(--forest) 60%, #1f6b3a 100%); }
.img-ph::before { content: 'ع'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Amiri', serif; font-size: 3.5rem; line-height: 1; color: rgba(240,192,64,.22); background-image: repeating-linear-gradient(45deg, rgba(212,160,23,.07) 0, rgba(212,160,23,.07) 1px, transparent 1px, transparent 16px); pointer-events: none; }
.news-hero.img-ph::before { font-size: 9rem; align-items: flex-start; padding-top: 3rem; }
.img-ph > img { position: relative; display: block; }
.news-mini-img.img-ph::before { font-size: 2rem; }
.side-news-img.img-ph::before { font-size: 1.6rem; }
.news-featured-img.img-ph::before, .detail-media.img-ph::before { font-size: 6rem; }
.news-hero.img-ph > img { position: absolute; }
.detail-media { border-radius: 1rem; margin-bottom: 1.5rem; min-height: 260px; }
.detail-media > img { width: 100%; max-height: 460px; object-fit: cover; }
.side-news-img { width: 70px; height: 56px; border-radius: .45rem; flex-shrink: 0; }
.side-news-img > img { width: 100%; height: 100%; object-fit: cover; }

/* News page featured item */
.news-featured { display: grid; grid-template-columns: 1fr 320px; background: linear-gradient(135deg, var(--ink), var(--forest)); border-radius: 1.2rem; margin-bottom: 2rem; overflow: hidden; text-decoration: none; transition: box-shadow .3s; }
.news-featured:hover { box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.news-featured-body { padding: 2.5rem; position: relative; }
.news-featured-body > * { position: relative; z-index: 1; }
.news-featured-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; font-size: .75rem; color: rgba(255,255,255,.5); }
.news-featured h2 { font-family: 'Amiri', serif; font-size: 1.6rem; color: #fff; margin-bottom: .8rem; line-height: 1.45; }
.news-featured p { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.85; }
.news-featured-more { margin-top: 1.2rem; display: inline-flex; color: var(--gold-light); font-size: .82rem; font-weight: 600; }
.news-featured-img { overflow: hidden; min-height: 240px; }
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .4s; }
.news-featured:hover .news-featured-img img { transform: scale(1.04); }

/* ══════ HOME: PLATFORMS ══════ */
.platforms-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pf { border-radius: .75rem; overflow: hidden; display: flex; flex-direction: column; }
.pf-head { background: linear-gradient(135deg, var(--ink), var(--forest)); padding: 1.5rem; position: relative; min-height: 110px; display: flex; flex-direction: column; justify-content: flex-end; }
.pf-head > * { position: relative; z-index: 1; }
.pf-icon { font-size: 2rem; margin-bottom: .5rem; }
.pf-name { font-family: 'Amiri', serif; font-size: 1.1rem; color: #fff; font-weight: 700; }
.pf-sub { font-size: .65rem; color: rgba(255,255,255,.5); margin-top: .2rem; }
.pf-body { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-top: none; padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .8rem; }
.pf-body p { font-size: .78rem; color: rgba(255,255,255,.6); line-height: 1.7; margin: 0; }
.pf-stats { display: flex; gap: 1rem; border-top: 1px solid rgba(255,255,255,.07); padding-top: .8rem; }
.pf-stat { text-align: center; flex: 1; }
.pf-stat b { display: block; font-family: 'Amiri', serif; font-size: 1.1rem; color: var(--gold-light); font-weight: 400; }
.pf-stat span { font-size: .6rem; color: rgba(255,255,255,.4); }
.pf-btn { display: block; text-align: center; background: var(--forest); color: #fff; padding: .5rem; border-radius: .4rem; font-size: .75rem; font-weight: 700; text-decoration: none; margin-top: auto; transition: filter .2s; }
.pf-btn:hover { filter: brightness(1.15); }

/* Brand variants shared by platform cards, conference headers, covers */
.pattern::before { content: ''; position: absolute; inset: 0; opacity: .06; background-image: repeating-linear-gradient(45deg, #D4A017 0, #D4A017 1px, transparent 0, transparent 15px); background-size: 15px 15px; pointer-events: none; }
.tone-green { background: linear-gradient(135deg, var(--ink), var(--forest)) !important; }
.tone-blue { background: linear-gradient(135deg, #1C3A6E, #0d2a5a) !important; }
.tone-red { background: linear-gradient(135deg, #5C1A1A, #7a2a2a) !important; }
.tone-brown { background: linear-gradient(135deg, #5C3A0E, #8B5A1A) !important; }
.tone-olive { background: linear-gradient(135deg, #2A3A1A, #3a5a2a) !important; }
.tone-purple { background: linear-gradient(135deg, #2A1A5C, #4a2a8e) !important; }
.btn-blue { background: #1C3A6E !important; }
.btn-red { background: #5C1A1A !important; }

/* ══════ ABOUT ══════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-text h2, .about-text h3 { font-family: 'Amiri', serif; font-size: 1.6rem; color: var(--ink); margin-bottom: 1rem; }
.about-text p, .prose p { font-size: .92rem; color: var(--muted); line-height: 2; margin-bottom: 1rem; text-align: justify; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.value-card { background: var(--parchment); border: 1px solid var(--border); border-radius: .75rem; padding: 1.2rem; border-right: 3px solid var(--gold); }
.value-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.value-title { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: .3rem; }
.value-desc { font-size: .75rem; color: var(--muted); line-height: 1.6; }
.about-timeline { position: relative; padding-right: 2rem; }
.about-timeline::before { content: ''; position: absolute; right: .6rem; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--gold), var(--border)); }
.timeline-item { position: relative; margin-bottom: 1.5rem; padding-right: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; right: -1.8rem; top: .35rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(212,160,23,.2); }
.timeline-year { font-size: .75rem; font-weight: 700; color: var(--gold); margin-bottom: .2rem; }
.timeline-text { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.sub-title { font-family: 'Amiri', serif; font-size: 1.4rem; color: var(--ink); margin-bottom: 1.2rem; }

.prose { color: var(--muted); font-size: .92rem; line-height: 2; }
.prose h2, .prose h3, .prose h4 { font-family: 'Amiri', serif; color: var(--ink); line-height: 1.4; margin: 1.6rem 0 .8rem; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose ul, .prose ol { padding-right: 1.4rem; margin: .6rem 0 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--gold); }
.prose img { height: auto; border-radius: .75rem; }
.prose a { color: var(--emerald); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; }
.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding-right: 1.6rem; }
.check-list li::before { content: '✓'; position: absolute; right: 0; top: 0; color: var(--leaf); font-weight: 700; }

.panel { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1rem; padding: 2rem; }
.panel + .panel { margin-top: 1.5rem; }
.panel-accent { border-right: 3px solid var(--gold); }
.figure { margin: 1.5rem 0 0; text-align: center; }
.figure img { border-radius: .75rem; max-height: 520px; width: auto; }
.figure figcaption { font-size: .78rem; color: var(--muted); margin-top: .6rem; line-height: 1.7; }

.unit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; list-style: none; margin: 1rem 0; }
.unit-list li { background: var(--parchment); border: 1px solid var(--border); border-radius: .6rem; padding: .8rem 1rem; font-size: .85rem; font-weight: 600; color: var(--ink); display: flex; gap: .6rem; align-items: center; }
.unit-list li::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.table-wrap { overflow-x: auto; border: 1px solid rgba(0,0,0,.07); border-radius: .75rem; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 560px; }
.data-table th { background: var(--ink); color: var(--gold-light); font-weight: 700; padding: .7rem 1rem; text-align: right; }
.data-table td { padding: .7rem 1rem; border-top: 1px solid rgba(0,0,0,.06); color: var(--text); }
.data-table tr:nth-child(even) td { background: var(--cream); }
.data-table .c { text-align: center; }

/* Welcome words (quotes) */
.quote-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1rem; padding: 2rem; position: relative; }
.quote-card::before { content: '”'; position: absolute; top: .4rem; left: 1.4rem; font-family: 'Amiri', serif; font-size: 5rem; line-height: 1; color: rgba(212,160,23,.25); }
.quote-person { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.quote-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: var(--parchment); }
.quote-name { font-family: 'Amiri', serif; font-size: 1.15rem; color: var(--ink); font-weight: 700; }
.quote-role { font-size: .75rem; color: var(--emerald); font-weight: 600; }
.quote-card p { font-size: .88rem; color: var(--muted); line-height: 2; text-align: justify; }

/* ══════ PUBLICATIONS ══════ */
.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: .75rem; padding: 1.5rem; display: flex; gap: 1.2rem; transition: all .3s; text-decoration: none; color: inherit; }
.pub-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: rgba(212,160,23,.25); transform: translateX(-4px); }
.pub-cover { width: 70px; height: 90px; background: linear-gradient(135deg, var(--emerald), var(--ink)); border-radius: .4rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; overflow: hidden; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; }
.pub-cover.is-lg { width: 150px; height: auto; min-height: 190px; background: var(--parchment); }
.pub-cover.is-lg img { object-fit: contain; }
.pub-meta { flex: 1; min-width: 0; }
.pub-type { font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: var(--gold); margin-bottom: .3rem; }
.pub-title { font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: .4rem; line-height: 1.5; }
.pub-desc { font-size: .8rem; color: var(--muted); line-height: 1.8; margin-bottom: .6rem; }
.pub-desc p { margin-bottom: .5rem; }
.pub-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.pub-tag { background: rgba(22,101,52,.08); color: var(--emerald); font-size: .65rem; padding: .15rem .5rem; border-radius: 2rem; font-weight: 600; }

.journal-banner { background: linear-gradient(135deg, #5C1A1A, #8B2A2A, #6B1515); border-radius: 1.2rem; padding: 2.5rem; margin-bottom: 2rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.journal-banner::before { content: ''; position: absolute; inset: 0; opacity: .06; background-image: repeating-linear-gradient(45deg, #D4A017 0, #D4A017 1px, transparent 0, transparent 20px); background-size: 20px 20px; }
.journal-banner > * { position: relative; z-index: 1; }
.journal-kicker { font-size: .7rem; color: rgba(212,160,23,.85); font-weight: 700; letter-spacing: .1em; margin-bottom: .5rem; }
.journal-banner h2 { font-family: 'Amiri', serif; font-size: 2rem; color: #fff; margin-bottom: .5rem; }
.journal-banner p { color: rgba(255,255,255,.7); font-size: .88rem; line-height: 1.8; max-width: 520px; }
.journal-banner .links { margin-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.journal-banner .links a { color: var(--gold-light); font-size: .8rem; font-weight: 600; text-decoration: none; }
.journal-stats { display: flex; flex-direction: column; gap: .8rem; text-align: center; }
.journal-stat { background: rgba(255,255,255,.1); border-radius: .75rem; padding: 1rem 1.5rem; }
.journal-stat b { display: block; font-family: 'Amiri', serif; font-size: 2.2rem; color: var(--gold-light); line-height: 1; font-weight: 400; }
.journal-stat span { font-size: .7rem; color: rgba(255,255,255,.6); }
.journal-badge { background: rgba(212,160,23,.2); border: 1px solid rgba(212,160,23,.4); border-radius: .5rem; padding: .5rem 1rem; font-size: .72rem; color: var(--gold-light); font-weight: 700; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.list-head h3 { font-family: 'Amiri', serif; font-size: 1.25rem; color: var(--ink); }
.list-head a { font-size: .78rem; color: var(--emerald); font-weight: 600; text-decoration: none; }

.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.2rem; }
.issue-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: .9rem; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: all .3s; }
.issue-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.1); border-color: rgba(212,160,23,.35); }
.issue-cover { aspect-ratio: 3 / 4; background: linear-gradient(135deg, #5C1A1A, #8B2A2A); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.2rem; }
.issue-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.issue-card:hover .issue-cover img { transform: scale(1.04); }
.issue-body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.issue-no { font-size: .68rem; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.issue-title { font-weight: 700; font-size: .9rem; color: var(--ink); line-height: 1.5; }
.issue-desc { font-size: .75rem; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.issue-foot { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--muted); }
.issue-foot span:last-child { color: var(--emerald); font-weight: 600; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; list-style: none; margin-top: 2.5rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.3rem; height: 2.3rem; padding: 0 .6rem; border-radius: .45rem; border: 1px solid rgba(0,0,0,.1); background: #fff; color: var(--muted); font-size: .82rem; font-weight: 600; text-decoration: none; transition: all .2s; }
.pagination a:hover { border-color: var(--emerald); color: var(--emerald); }
.pagination .active span { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.pagination .disabled span { opacity: .45; }

/* ══════ CONFERENCES / EVENTS ══════ */
.conf-card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1rem; overflow: hidden; transition: all .3s; text-decoration: none; color: inherit; }
.conf-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.conf-header { background: linear-gradient(135deg, var(--ink), var(--forest)); padding: 1.5rem; position: relative; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.conf-header::before { content: ''; position: absolute; inset: 0; opacity: .08; background-image: repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 1px, transparent 0, transparent 20px); background-size: 20px 20px; z-index: 1; }
.conf-header.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,31,14,.95) 10%, rgba(12,31,14,.55) 60%, rgba(12,31,14,.35)); z-index: 1; }
.conf-header > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.conf-card:hover .conf-header > img { transform: scale(1.04); }
.conf-year { font-family: 'Amiri', serif; font-size: 3rem; color: rgba(255,255,255,.14); position: absolute; left: 1rem; top: .5rem; line-height: 1; z-index: 2; }
.conf-tag { font-size: .68rem; font-weight: 700; color: var(--gold-light); letter-spacing: .06em; margin-bottom: .4rem; position: relative; z-index: 2; }
.conf-title { font-family: 'Amiri', serif; font-size: 1.15rem; color: #fff; line-height: 1.45; position: relative; z-index: 2; }
.conf-body { padding: 1.2rem; flex: 1; }
.conf-meta { display: flex; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.conf-meta-item { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--muted); }
.conf-desc { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.conf-footer { padding: .8rem 1.2rem; border-top: 1px solid rgba(0,0,0,.06); display: flex; justify-content: space-between; align-items: center; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.detail-main .detail-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 1rem; display: block; margin-bottom: 1.5rem; background: var(--parchment); }
.detail-section-title { display: flex; align-items: center; gap: .8rem; font-family: 'Amiri', serif; font-size: 1.3rem; color: var(--ink); margin: 2rem 0 .8rem; }
.detail-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.detail-text { white-space: pre-line; }
.sidebar { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 90px; }
.side-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1rem; padding: 1.4rem; }
.side-card h3 { font-family: 'Amiri', serif; font-size: 1.15rem; color: var(--ink); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--border); }
.info-row { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem 0; }
.info-row + .info-row { border-top: 1px solid rgba(0,0,0,.05); }
.info-icon { width: 2.1rem; height: 2.1rem; background: rgba(22,101,52,.1); border-radius: .45rem; display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.info-label { font-size: .68rem; font-weight: 700; color: var(--muted); }
.info-value { font-size: .85rem; font-weight: 600; color: var(--ink); word-break: break-word; }
.side-news { display: flex; gap: .75rem; align-items: center; text-decoration: none; padding: .55rem 0; }
.side-news + .side-news { border-top: 1px solid rgba(0,0,0,.05); }
.side-news img { width: 70px; height: 56px; object-fit: cover; border-radius: .45rem; flex-shrink: 0; background: var(--parchment); }
.side-news-title { font-size: .8rem; font-weight: 700; color: var(--ink); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-news-date { font-size: .68rem; color: var(--muted); }
.side-news:hover .side-news-title { color: var(--emerald); }

/* ══════ PLATFORMS PAGE ══════ */
.platform-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1.2rem; overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.platform-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.platform-header { padding: 2rem; position: relative; overflow: hidden; min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; }
.platform-header > * { position: relative; z-index: 1; }
.platform-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.platform-name { font-family: 'Amiri', serif; font-size: 1.3rem; color: #fff; font-weight: 700; }
.platform-sub { font-size: .72rem; color: rgba(255,255,255,.65); }
.platform-body { padding: 1.4rem; flex: 1; }
.platform-desc { font-size: .83rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.platform-stats { display: flex; gap: 1.2rem; }
.p-stat { text-align: center; }
.p-stat-num { font-family: 'Amiri', serif; font-size: 1.4rem; color: var(--emerald); }
.p-stat-lbl { font-size: .65rem; color: var(--muted); }
.platform-btn { display: block; text-align: center; margin: 0 1.4rem 1.4rem; padding: .65rem; background: var(--emerald); color: #fff; border-radius: .5rem; font-size: .8rem; font-weight: 600; text-decoration: none; transition: all .2s; }
.platform-btn:hover { filter: brightness(1.15); }

/* ══════ MEDIA ══════ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.gallery-item { aspect-ratio: 1; background: var(--parchment); border-radius: .6rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; border: 1px solid var(--border); transition: all .2s; cursor: zoom-in; overflow: hidden; position: relative; padding: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover { transform: scale(1.03); border-color: var(--gold); }
.gallery-item-label { position: absolute; bottom: 0; left: 0; right: 0; padding: .5rem; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); color: #fff; font-size: .7rem; opacity: 0; transition: opacity .2s; }
.gallery-item:hover .gallery-item-label { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(6,14,7,.92); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: .5rem; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 1rem; left: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.3rem; cursor: pointer; }
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item { display: flex; gap: 1rem; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: .75rem; padding: 1.2rem; transition: all .2s; }
.news-item:hover { border-color: rgba(212,160,23,.3); transform: translateX(-3px); }
.news-date { flex-shrink: 0; text-align: center; background: var(--ink); color: #fff; border-radius: .4rem; padding: .5rem .7rem; min-width: 50px; }
.news-day { font-family: 'Amiri', serif; font-size: 1.4rem; line-height: 1; }
.news-month { font-size: .6rem; color: var(--gold); }
.news-content { flex: 1; }
.news-tag { font-size: .65rem; font-weight: 700; color: var(--emerald); letter-spacing: .04em; }
.news-title { font-weight: 700; font-size: .88rem; color: var(--ink); margin: .2rem 0; }
.news-desc { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.newsletter-box { background: linear-gradient(135deg, var(--ink), var(--forest)); border-radius: 1rem; padding: 2.5rem; text-align: center; color: #fff; }
.newsletter-box h3 { font-family: 'Amiri', serif; font-size: 1.5rem; color: var(--gold-light); margin-bottom: .5rem; }
.newsletter-box p { color: rgba(255,255,255,.65); font-size: .85rem; margin-bottom: 1.5rem; }
.newsletter-input-wrap { display: flex; gap: .5rem; max-width: 440px; margin: 0 auto; }
.newsletter-input-wrap input { flex: 1; min-width: 0; padding: .7rem 1rem; border-radius: .4rem; border: 1px solid rgba(212,160,23,.3); background: rgba(255,255,255,.08); color: #fff; font-size: .85rem; }
.newsletter-input-wrap input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-input-wrap button { background: var(--gold); color: var(--ink); border: none; padding: .7rem 1.2rem; border-radius: .4rem; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: #000; }
.video-frame video { width: 100%; height: 100%; display: block; }

/* ══════ TRAINING ══════ */
.training-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1rem; overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.training-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.training-badge { position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: var(--ink); font-size: .65rem; font-weight: 700; padding: .2rem .6rem; border-radius: 2rem; }
.training-badge.is-green { background: var(--emerald); color: #fff; }
.training-header { background: var(--parchment); padding: 1.5rem; position: relative; text-align: center; }
.training-icon { font-size: 2.8rem; margin-bottom: .5rem; }
.training-level { font-size: .7rem; font-weight: 700; color: var(--emerald); letter-spacing: .05em; }
.training-title { font-weight: 700; font-size: .95rem; color: var(--ink); margin: .3rem 0; }
.training-body { padding: 1.3rem; flex: 1; }
.training-info { display: flex; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.t-info { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--muted); }
.training-desc { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.training-footer { padding: .8rem 1.3rem; border-top: 1px solid rgba(0,0,0,.05); display: flex; justify-content: space-between; align-items: center; }
.training-price { font-family: 'Amiri', serif; font-size: 1.2rem; color: var(--emerald); font-weight: 700; }

/* ══════ PARTNERSHIPS ══════ */
.partner-category { margin-bottom: 2.5rem; }
.partner-category-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.partners-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.partner-logo { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: .75rem; padding: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; transition: all .2s; }
.partner-logo:hover { border-color: rgba(212,160,23,.3); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.partner-logo-icon { width: 50px; height: 50px; background: var(--parchment); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.partner-logo-name { font-size: .78rem; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.4; }
.partner-logo-country { font-size: .65rem; color: var(--muted); }

/* ══════ SERVICES ══════ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.pricing-card { background: #fff; border: 2px solid rgba(0,0,0,.08); border-radius: 1.2rem; padding: 2rem; transition: all .3s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--gold); background: linear-gradient(135deg, var(--ink) 0%, var(--forest) 100%); color: #fff; }
.pricing-card.featured::before { content: 'الأكثر طلباً'; position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: var(--ink); font-size: .65rem; font-weight: 700; padding: .2rem .7rem; border-radius: 2rem; }
.pricing-name { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--emerald); margin-bottom: .5rem; }
.pricing-card.featured .pricing-name { color: var(--gold-light); }
.pricing-price { font-family: 'Amiri', serif; font-size: 2.5rem; color: var(--ink); line-height: 1.1; margin-bottom: .3rem; }
.pricing-card.featured .pricing-price { color: #fff; }
.pricing-period { font-size: .75rem; color: var(--muted); margin-bottom: 1.2rem; }
.pricing-card.featured .pricing-period { color: rgba(255,255,255,.5); }
.pricing-features { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.pricing-features li { font-size: .82rem; color: var(--muted); padding: .4rem 0; border-bottom: 1px solid rgba(0,0,0,.05); display: flex; gap: .5rem; }
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,.75); border-bottom-color: rgba(255,255,255,.1); }
.pricing-features li::before { content: '✓'; color: var(--leaf); font-weight: 700; }
.pricing-card.featured .pricing-features li::before { color: var(--gold-light); }
.hadiya-section { background: var(--parchment); border-radius: 1.2rem; padding: 2.5rem; border: 1px solid var(--border); margin-top: 3rem; scroll-margin-top: 90px; }
.hadiya-section h3 { font-family: 'Amiri', serif; font-size: 1.6rem; color: var(--ink); margin-bottom: .5rem; }
.hadiya-section > p { font-size: .88rem; color: var(--muted); line-height: 1.9; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ══════ FORMS ══════ */
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-size: .75rem; font-weight: 600; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea, .form-control { width: 100%; padding: .65rem 1rem; border: 1px solid rgba(0,0,0,.12); border-radius: .45rem; font-size: .85rem; color: var(--text); background: #fff; transition: border .2s, box-shadow .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .form-control:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(22,101,52,.12); }
.form-group.full { grid-column: 1 / -1; }
.form-group .is-invalid { border-color: var(--danger); }
.form-error { font-size: .72rem; color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-stack { display: flex; flex-direction: column; gap: .9rem; }
.form-check { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); }
.submit-btn { width: 100%; margin-top: .5rem; padding: .8rem; background: var(--emerald); color: #fff; border: none; border-radius: .5rem; font-size: .88rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.submit-btn:hover { background: var(--forest); transform: translateY(-1px); }
.submit-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.alert { padding: .8rem 1rem; border-radius: .5rem; font-size: .82rem; line-height: 1.7; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-success { background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.3); color: var(--forest); }
.alert-danger { background: rgba(180,35,24,.08); border-color: rgba(180,35,24,.25); color: var(--danger); }
.alert-info { background: rgba(212,160,23,.1); border-color: rgba(212,160,23,.35); color: #6b4e05; }
[hidden] { display: none !important; }

/* ══════ CONTACT ══════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: .75rem; padding: 1.3rem; display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { width: 2.5rem; height: 2.5rem; background: rgba(22,101,52,.1); border-radius: .5rem; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-label { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: .2rem; }
.contact-value { font-size: .88rem; font-weight: 600; color: var(--ink); }
.contact-value a { text-decoration: none; }
.contact-value a:hover { color: var(--emerald); }
.contact-sub { font-size: .75rem; color: var(--muted); }
.contact-form-wrap { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1rem; padding: 2rem; }
.contact-form-wrap h3 { font-family: 'Amiri', serif; font-size: 1.3rem; color: var(--ink); margin-bottom: .3rem; }
.contact-form-wrap > p { font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; }
.map-frame { border-radius: .75rem; overflow: hidden; height: 250px; border: 1px solid var(--border); margin-top: 1.2rem; background: var(--parchment); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ══════ LINKS PAGE ══════ */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.link-category { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1rem; padding: 1.5rem; }
.link-cat-header { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; padding-bottom: .8rem; border-bottom: 2px solid var(--border); }
.link-cat-icon { width: 2rem; height: 2rem; background: rgba(22,101,52,.1); border-radius: .4rem; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.link-cat-title { font-weight: 700; font-size: .9rem; color: var(--ink); }
.link-item { display: flex; align-items: center; gap: .6rem; padding: .5rem; border-radius: .4rem; text-decoration: none; transition: all .2s; }
.link-item:hover { background: var(--parchment); }
.link-item-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.link-item-text { font-size: .82rem; color: var(--emerald); font-weight: 500; }

/* ══════ AUTH / ERROR ══════ */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; background: var(--parchment); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1rem; padding: 2.2rem; box-shadow: 0 20px 60px rgba(0,0,0,.06); }
.auth-card h1 { font-family: 'Amiri', serif; font-size: 1.6rem; color: var(--ink); margin-bottom: .3rem; text-align: center; }
.auth-card .auth-sub { font-size: .82rem; color: var(--muted); text-align: center; margin-bottom: 1.5rem; }
.auth-card .auth-links { margin-top: 1rem; text-align: center; font-size: .8rem; }
.auth-card .auth-links a { color: var(--emerald); }
.error-page { padding: 5rem 2rem; text-align: center; }
.error-code { font-family: 'Amiri', serif; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--gold); }
.error-page h1 { font-family: 'Amiri', serif; font-size: 1.8rem; color: var(--ink); margin: 1rem 0 .6rem; }
.error-page p { color: var(--muted); max-width: 520px; margin: 0 auto 1.8rem; line-height: 1.9; }

/* ══════ FOOTER ══════ */
.site-footer { background: var(--ink); color: #fff; padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { height: 54px; width: auto; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.8; margin-bottom: 1rem; }
.footer-social { display: flex; gap: .6rem; }
.social-btn { width: 2rem; height: 2rem; background: rgba(255,255,255,.08); border-radius: .35rem; display: flex; align-items: center; justify-content: center; color: #fff; transition: all .2s; text-decoration: none; }
.social-btn svg { width: 15px; height: 15px; fill: currentColor; }
.social-btn:hover { background: var(--gold); color: var(--ink); }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); margin-bottom: 1rem; }
.footer-col > a, .footer-col > span { display: block; font-size: .8rem; color: rgba(255,255,255,.5); text-decoration: none; margin-bottom: .5rem; transition: color .2s; line-height: 1.6; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .73rem; color: rgba(255,255,255,.35); }

.go-top { position: fixed; left: 1.2rem; bottom: 1.2rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: none; background: var(--gold); color: var(--ink); font-size: 1.1rem; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; z-index: 900; }
.go-top.show { opacity: 1; visibility: visible; transform: none; }

/* ══════ MOBILE ══════ */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; padding: .5rem; cursor: pointer; border: none; background: none; margin-right: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; transition: all .3s; }
.nav-backdrop { display: none; }

@media (max-width: 1180px) {
    .hamburger { display: flex; }
    .main-nav { position: fixed; top: 0; right: -100%; width: 80vw; max-width: 320px; height: 100vh; background: var(--ink); border-left: 1px solid rgba(212,160,23,.2); transition: right .3s; padding: 5rem 1.5rem 2rem; flex-direction: column; align-items: flex-start; overflow-y: auto; z-index: 1001; }
    .main-nav.open { right: 0; }
    .nav-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; }
    .nav-list { flex-direction: column; height: auto; width: 100%; gap: .2rem; }
    .nav-item { flex-direction: column; align-items: stretch; }
    .nav-link { font-size: .9rem; padding: .8rem .5rem; width: 100%; }
    .nav-link::after { display: none; }
    .nav-link .caret { display: none; }
    .mega-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(255,255,255,.05); border-radius: .5rem; margin: .1rem 0 .4rem; padding: .6rem; min-width: 0; }
    .mega-menu-title { display: none; }
    .nav-close { display: flex !important; }
    .topbar-links { display: none; }
}
.nav-close { display: none; position: absolute; top: 1rem; left: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(212,160,23,.3); background: none; color: #fff; font-size: 1.2rem; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 991px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-hero { min-height: 340px; }
    .news-featured { grid-template-columns: 1fr; }
    .news-featured-img { order: -1; height: 220px; min-height: 0; }
    .news-featured-body { padding: 1.6rem; }
    .platforms-row { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .legacy-hero { padding: 60px 0; }
    .legacy-hero .letters { flex-direction: column; align-items: stretch; }
    .legacy-hero .banner-text-area { flex: none; }
    .legacy-hero .home-banner-area { max-width: 420px; margin: 0 auto; }
    .journal-banner { grid-template-columns: 1fr; }
    .journal-stats { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 900px) {
    .about-grid, .contact-grid, .form-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
    .footer-grid { gap: 2rem; }
    .topbar { display: none; }
}

@media (max-width: 767px) {
    .section { padding: 3rem 1rem; }
    .band { padding: 2rem 1rem; }
    .page-hero { padding: 3rem 1rem 2.2rem; }
    .intro-bar { padding: 1rem; }
    .site-footer { padding: 3rem 1rem 1.5rem; }
    .grid-2, .grid-3, .grid-fill { grid-template-columns: 1fr; }
    .fun-facts { grid-template-columns: repeat(2, 1fr); }
    .fun-fact { text-align: center; }
    .fun-fact::after { display: none; }
    .fun-facts-card { flex-direction: column; gap: 6px; }
    .fun-facts-card i { margin: 0 auto; }
    .fun-facts-card h2 { font-size: 28px; line-height: 1.4; }
    .about-values { grid-template-columns: 1fr; }
    .about-text p, .prose p, .quote-card p { text-align: right; }
    .pub-card { flex-direction: column; }
    .pub-cover.is-lg { width: 100%; min-height: 220px; }
    .band-head { flex-wrap: wrap; }
    .newsletter-input-wrap { flex-direction: column; }
    .hadiya-section, .contact-form-wrap, .panel, .quote-card { padding: 1.4rem; }
    .issues-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .logo-wrap { padding-left: 1rem; margin-left: .5rem; }
}
