/* =========================================================
   Saham Private School — main stylesheet (v2)
   Layout modelled on home.moe.gov.om: photo background with a
   coloured overlay, transparent header, glass panels, side news
   panel + rounded slider, 6-tile row, one-line footer bar.
   Colours taken from the school logo (green #00371b, red #d10f13).
   ========================================================= */
:root {
    --logo-green: #00371b;
    --logo-red: #d10f13;
    --green-2: #0b5a36;
    --green-3: #13804f;
    --mint: #6fd3a0;
    --gold: #f2b705;

    --radius: 18px;
    --radius-sm: 12px;
    --header-h: 92px;
    --wrap: 1600px;
    --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- Day (default) ---------- */
:root, [data-theme="light"] {
    --bg-overlay: linear-gradient(160deg, rgba(240, 246, 242, .95) 0%, rgba(232, 242, 236, .93) 100%);
    --text: #17301f;
    --muted: #556b5d;
    --heading: #00371b;
    --accent: #0b5a36;
    --glass: #ffffff;
    --glass-strong: rgba(255, 255, 255, .92);
    --glass-border: rgba(0, 55, 27, .12);
    --glass-hover: #ffffff;
    --card: #ffffff;
    --field: #ffffff;
    --shadow: 0 12px 34px rgba(0, 55, 27, .10);
    --header-bg: rgba(255, 255, 255, .7);
    --header-bg-scrolled: rgba(255, 255, 255, .96);
    --menu-solid: #ffffff;
    --page-bg: #f3f6f4;
    --field-bg: #ffffff;
    --soft: #f1f5f2;
    color-scheme: light;
}

/* ---------- Night + always-dark zones (home, header, page banner) ---------- */
[data-theme="dark"], .dark-zone {
    --bg-overlay: linear-gradient(160deg, rgba(0, 40, 20, .93) 0%, rgba(0, 55, 27, .86) 45%, rgba(8, 92, 58, .82) 100%);
    --text: #f3faf6;
    --muted: #c4dccd;
    --heading: #ffffff;
    --accent: #9be8bf;              /* titles / icons on dark */
    --glass: rgba(255, 255, 255, .075);
    --glass-strong: rgba(255, 255, 255, .12);
    --glass-border: rgba(255, 255, 255, .14);
    --glass-hover: rgba(255, 255, 255, .14);
    --card: rgba(255, 255, 255, .07);
    --field: rgba(255, 255, 255, .08);
    --shadow: 0 14px 40px rgba(0, 0, 0, .25);
    --header-bg: rgba(0, 40, 20, .28);
    --header-bg-scrolled: rgba(0, 55, 27, .96);
    --menu-solid: #00371b;
    --page-bg: #0b1d14;
    --field-bg: rgba(255, 255, 255, .06);
    --soft: rgba(255, 255, 255, .07);
    color-scheme: dark;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.big-text { font-size: 112.5%; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.8;
    overflow-x: clip;
    min-height: 100vh;
}
.page-home { background: #0b5a36; }
/* home background: school photo under a bright logo-green gradient */
.page-bg {
    position: fixed; inset: 0; z-index: -1; overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 55, 27, .88) 0%, rgba(6, 92, 54, .74) 45%, rgba(18, 138, 84, .70) 80%, rgba(30, 160, 98, .72) 100%),
        url('../images/page-bg.jpg') center / cover no-repeat;
}
[data-theme="dark"] .page-bg { filter: brightness(.72); }
.net-canvas { opacity: .55; }
.net-canvas { opacity: .7; }
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--logo-red); }
[data-theme="dark"] a:hover { color: #ffd0d1; }
img { max-width: 100%; }
h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.4; color: var(--heading); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 3000; background: var(--logo-red); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: var(--wrap); padding-inline: 24px; }
.container-fluid { max-width: var(--wrap); padding-inline: 24px; }
html { overflow-x: clip; }
@media (max-width: 575.98px) { .container, .container-fluid { padding-inline: 14px; } .row.g-4 { --bs-gutter-x: 1rem; } }

.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 800; padding: .7rem 1.5rem; }
.btn-main { background: var(--logo-red); border: 0; color: #fff; }
.btn-main:hover, .btn-main:focus { background: #b00b0f; color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
    transition: background .3s, box-shadow .3s;
}
.page-home .site-header { background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-scrolled, .page-home .site-header.is-scrolled { background: var(--header-bg-scrolled); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand {
    flex: 0 0 auto; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 16px;
    /* soft mint plate that matches the green header instead of plain white */
   background: linear-gradient(135deg, #dcefe4 0%, #b8e0cc 100%);

    border: 1.5px solid rgba(155, 232, 191, .75);
    box-shadow: 0 6px 18px rgba(0, 25, 12, .25), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.brand img { height: 64px; width: auto; display: block; }

.main-nav { margin-inline-start: 6px; }
.main-nav > ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.nav-a {
    display: block; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 1.05rem;
    color: var(--text); position: relative; transition: background .2s;
}
.nav-a:hover, .has-panel:hover > .nav-a, .has-panel:focus-within > .nav-a { background: var(--glass-strong); color: var(--heading); }
.nav-a.is-active { background: var(--glass-strong); color: var(--heading); }
.nav-a.is-active::after {
    content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 3px; border-radius: 3px; background: var(--logo-red);
}
.nav-panel {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
    display: grid; grid-template-columns: 1fr; gap: 6px;
    padding: 14px; min-width: 260px; border-radius: var(--radius);
    background: var(--glass-strong); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.site-header .nav-panel { background: rgba(0, 40, 20, .97); }
.nav-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-panel:hover > .nav-panel, .has-panel:focus-within > .nav-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-panel a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-weight: 600; }
.nav-panel a:hover, .nav-panel a.is-active { background: var(--glass); color: var(--heading); }
.np-ico {
    flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    background: var(--glass-strong); color: var(--accent); border: 1px solid var(--glass-border);
}

.header-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.tool-btn {
    position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: transparent; border: 0; color: var(--text); font-size: 1.15rem; transition: background .2s;
}
.tool-btn:hover { background: var(--glass-strong); color: var(--heading); }
.header-cta {
    display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 8px;
    background: var(--logo-red); color: #fff; font-weight: 800; padding: 9px 16px; border-radius: 10px;
    box-shadow: 0 6px 18px rgba(209, 15, 19, .35);
}
.header-cta:hover { background: #b00b0f; color: #fff; }
.menu-btn { display: none; }

@media (max-width: 1199.98px) {
    .menu-btn { display: grid; }
    .header-cta span { display: none; }
    .main-nav {
        position: fixed; top: var(--header-h); inset-inline: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); margin: 0; overflow-y: auto;
        background: var(--menu-solid);
        padding: 16px 18px 40px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s;
    }
    .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .main-nav > ul { flex-direction: column; gap: 4px; }
    .nav-a { padding: 12px 14px; }
    .nav-a.is-active::after { display: none; }
    .nav-panel {
        position: static; transform: none !important; opacity: 1; visibility: visible; min-width: 0;
        grid-template-columns: 1fr; background: transparent !important; border: 0; box-shadow: none; padding: 4px 10px 8px;
        -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    .header-tools { margin-inline-start: auto; }
}
@media (max-width: 575.98px) {
    :root { --header-h: 74px; }
    .brand { padding: 4px 10px; border-radius: 12px; }
    .brand img { height: 46px; }
    .header-inner { gap: 8px; }
    .tool-btn { width: 36px; height: 36px; font-size: 1rem; }
    .header-cta { padding: 8px 11px; margin: 0; }
}

/* ---------- Home hero (side panel + slider) ---------- */
.home-hero { padding-top: 22px; padding-bottom: 10px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 20px; align-items: stretch; }
[dir="rtl"] .hero-grid { grid-template-columns: minmax(0, 1fr) 500px; }
.hero-slider { position: relative; overflow: hidden; min-height: 560px; padding: 0; border-width: 6px; border-color: var(--glass-strong); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1s ease; border-radius: 12px; overflow: hidden; background: #00230f; }
.hs-blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(22px) brightness(.55) saturate(1.1); }
.hs-img { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 56%; height: 100%; object-fit: contain; padding: 18px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .45)); }
.hero-slide.is-active { opacity: 1; }
.hero-caption {
    position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 46%; z-index: 2; padding: 40px 40px 60px 70px; color: #fff;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; pointer-events: none;
}
[dir="rtl"] .hero-caption { padding: 40px 70px 60px 40px; }
.hero-caption h1 { text-shadow: 0 4px 18px rgba(0, 0, 0, .45); color: #fff; font-size: clamp(1.8rem, 3.4vw, 3rem); margin: 8px 0 4px; }
.hero-caption p { margin: 0; font-size: clamp(1rem, 1.6vw, 1.25rem); color: #e2efe7; }
.hero-badge { display: inline-block; background: var(--logo-red); color: #fff; font-weight: 800; font-size: .9rem; padding: 4px 14px; border-radius: 8px; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: rgba(0, 0, 0, .25); color: #fff; font-size: 1rem; transition: background .2s;
}
.hero-arrow:hover { background: var(--logo-red); }
.hero-prev { inset-inline-start: 16px; }
.hero-next { inset-inline-end: 16px; }
.hero-dashes { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; }
.hero-dashes button { width: 30px; height: 3px; border: 0; padding: 0; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: background .3s; }
.hero-dashes button.is-active { background: #fff; }

.hero-side { padding: 18px 18px 20px; display: flex; flex-direction: column; min-height: 560px; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.side-head h2 { font-size: 1.25rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.side-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(209, 15, 19, .15); color: #ff8c8e; border: 1px solid rgba(209, 15, 19, .3); font-size: 1rem; }
.side-all { font-size: .85rem; color: var(--muted); font-weight: 700; }
.ticker { position: relative; min-height: 96px; }
.ticker-item {
    position: absolute; inset: 0; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px;
    background: var(--glass); border: 1px solid var(--glass-border); color: var(--text);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .4s;
}
.ticker-item.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.ticker-item:hover { background: var(--glass-hover); color: var(--heading); }
.ticker-ico { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(209, 15, 19, .15); color: #ff8c8e; border: 1px solid rgba(209, 15, 19, .3); }
.ticker-text strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; line-height: 1.6; }
.ticker-text em { display: inline-block; margin-top: 6px; font-style: normal; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: rgba(209, 15, 19, .18); color: #ffb3b4; border: 1px solid rgba(209, 15, 19, .35); }
.ticker-dots { display: flex; justify-content: center; gap: 12px; margin: 14px 0 4px; }
.ticker-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: var(--muted); opacity: .6; transition: all .3s; }
.ticker-dots button.is-active { width: 22px; background: var(--logo-red); opacity: 1; }
.side-divider { border-top: 2px dashed var(--glass-border); margin: 14px 0 12px; }
.side-sub { font-size: 1.15rem; margin-bottom: 10px; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.side-list a { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 600; }
.side-list a:hover { color: var(--heading); }
.side-list img { flex: 0 0 140px; width: 140px; height: 78px; object-fit: cover; border-radius: 10px; border: 3px solid var(--glass-strong); }
.side-list span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-empty { color: var(--muted); margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 20px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--text); border-radius: 10px; transition: background .2s, transform .2s; }
.tile:hover { background: var(--glass-hover); color: var(--heading); transform: translateY(-3px); }
.tile > i { font-size: 2.2rem; color: var(--accent); flex: 0 0 auto; opacity: .9; }
.tile span { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.tile strong { font-size: 1.05rem; color: var(--heading); }
.tile small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1399.98px) { .hero-grid, [dir="rtl"] .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; } .side-list img { flex-basis: 110px; width: 110px; height: 66px; } }
@media (max-width: 1199.98px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991.98px) {
    .hs-img { width: 100%; }
    .hero-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0 !important; }
    .hero-grid, [dir="rtl"] .hero-grid { grid-template-columns: 1fr; }
    .hero-slider { min-height: 420px; }
    .hero-side { min-height: 0; }
}
@media (max-width: 575.98px) {
    .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tile { flex-direction: column; text-align: center; padding: 14px 8px; }
    .tile small { white-space: normal; }
    .hero-slider { min-height: 360px; }
    .hero-arrow { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: rgba(0, 0, 0, .12); }
[data-theme="light"] .section-alt { background: rgba(0, 55, 27, .035); }
.section-head { text-align: center; max-width: 860px; margin: 0 auto 40px; }
.section-head--row { display: flex; align-items: center; justify-content: space-between; max-width: none; text-align: start; gap: 12px; }
.section-head--row .section-title { margin: 0; padding: 0; }
.section-head--row .section-title::after { display: none; }
.section-kicker { display: inline-block; color: var(--accent); font-weight: 800; font-size: .95rem; margin-bottom: 4px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); position: relative; padding-bottom: 14px; margin-bottom: 14px; }
.section-title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--logo-red), var(--accent)); }
.text-start-dir { text-align: start; }
.text-start-dir::after { left: auto; transform: none; inset-inline-start: 0; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin: 0; }
.lead-text { font-size: 1.12rem; }
.view-all { font-weight: 800; display: inline-flex; gap: 8px; align-items: center; color: var(--accent); }

.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--glass-strong); box-shadow: var(--shadow); }
.about-year { position: absolute; bottom: -18px; inset-inline-start: 18px; background: var(--logo-red); color: #fff; padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow); text-align: center; line-height: 1.2; }
.about-year strong { display: block; font-size: 1.9rem; }
.about-year span { font-size: .85rem; }

.vm-card, .stage-card, .project-tile, .principal-box, .form-card, .channel, .g-card, .news-card {
    background: var(--glass); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}

.vm-card { height: 100%; border-radius: var(--radius); padding: 34px 30px; border-top: 4px solid var(--accent); }
.vm-card--mission { border-top-color: var(--logo-red); }
.vm-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--green-3); color: #fff; margin-bottom: 14px; }
.vm-card--mission .vm-icon { background: var(--logo-red); }
.vm-card h3 { font-size: 1.45rem; }
.vm-card p { font-size: 1.1rem; margin: 0; }

.principal-box { display: grid; grid-template-columns: 300px 1fr; border-radius: var(--radius); overflow: hidden; }
.principal-side { background: linear-gradient(160deg, var(--green-2), var(--logo-green)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; gap: 16px; }
.principal-side h2 { color: #fff; font-size: 1.55rem; margin: 0; }
.principal-avatar { width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; font-size: 2.8rem; background: rgba(255, 255, 255, .1); border: 3px solid var(--logo-red); color: #fff; }
.principal-body { padding: 42px 42px 34px; position: relative; }
.principal-quote { position: absolute; top: 22px; inset-inline-end: 28px; font-size: 3.4rem; color: var(--glass-border); }
[dir="ltr"] .principal-quote { transform: scaleX(-1); }
.principal-greeting { font-weight: 800; color: var(--heading); font-size: 1.25rem; }
.principal-body p { font-size: 1.08rem; }
.principal-sign { margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--glass-border); display: flex; gap: 8px; flex-wrap: wrap; }
.principal-sign span { color: var(--muted); }
.principal-sign strong { color: var(--accent); }
@media (max-width: 767.98px) { .principal-box { grid-template-columns: 1fr; } .principal-body { padding: 28px 20px; } }

.stage-card { height: 100%; border-radius: var(--radius); padding: 28px 22px 22px; position: relative; transition: transform .25s, background .25s; }
.stage-card:hover { transform: translateY(-5px); background: var(--glass-hover); }
.stage-num { position: absolute; top: 14px; inset-inline-end: 18px; font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--glass-border); }
.stage-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--logo-red); color: #fff; margin-bottom: 14px; }
.stage-card h3 { font-size: 1.28rem; }
.stage-card dl { margin: 0; }
.stage-card dt { color: var(--accent); font-size: .9rem; font-weight: 800; margin-top: 10px; }
.stage-card dd { margin: 0; }

.project-tile { height: 100%; text-align: center; border-radius: var(--radius); padding: 26px 16px 22px; transition: transform .25s, background .25s; }
.project-tile:hover { transform: translateY(-5px); background: var(--glass-hover); }
.project-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.7rem; background: var(--glass-strong); color: var(--accent); border: 1px solid var(--glass-border); transition: all .25s; }
.project-tile:hover .project-icon { background: var(--logo-red); color: #fff; border-color: var(--logo-red); }
.project-tile h3 { font-size: 1.08rem; }
.project-tile p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 575.98px) { .project-tile { padding: 18px 10px; } .project-tile p { font-size: .88rem; } }

/* ---------- Inner page banner (animated network, header sits on top) ---------- */
.page-banner {
    position: relative; overflow: hidden; color: #fff; isolation: isolate;
    margin-top: calc(-1 * var(--header-h) - 1px);
    padding: calc(var(--header-h) + 56px) 0 54px;
    background: linear-gradient(100deg, #00371b 0%, #0b5a36 45%, #13804f 80%, #1c9a5d 100%);
}
.page-banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; z-index: -1; background: linear-gradient(0deg, rgba(0, 25, 12, .55), transparent); pointer-events: none; }
.banner-inner { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.4rem); margin: 12px 0 0; text-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.page-banner .breadcrumb { margin: 0; font-size: .92rem; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: rgba(255, 255, 255, .78); font-weight: 600; }
.page-banner .breadcrumb-item a:hover { color: #fff; }
.page-banner .breadcrumb-item.active { color: #fff; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { content: "-"; color: rgba(255, 255, 255, .6); }
[dir="rtl"] .page-banner .breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: .5rem; padding-right: 0; }

/* ---------- Contact ---------- */
.channels { display: grid; gap: 12px; }
#accounts .channels { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.channel { display: flex; align-items: center; gap: 16px; padding: 15px 18px; border-radius: 14px; color: var(--text); transition: background .25s, transform .25s; }
a.channel:hover { background: var(--glass-hover); color: var(--text); transform: translateY(-2px); }
.channel small { display: block; color: var(--muted); font-weight: 700; }
.channel strong { font-weight: 800; color: var(--heading); word-break: break-word; }
.channel strong em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .85rem; }
.channel-icon { flex: 0 0 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--glass-strong); color: var(--accent); border: 1px solid var(--glass-border); }
.channel-icon.is-wa { color: #25d366; }
.channel-icon.is-ig { color: #e1306c; }

.contact-section { padding-top: 46px; }
.c-card { background: var(--card); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: 0 6px 22px rgba(0, 55, 27, .06); }
[data-theme="dark"] .c-card { box-shadow: none; }
.c-stack { display: grid; gap: 18px; }
.form-card { padding: 30px 30px 32px; height: 100%; }
.form-title { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.form-title i { color: var(--muted); font-size: 1.1rem; }
.form-label { font-weight: 800; color: var(--heading); font-size: .95rem; }
.form-label .req { color: var(--logo-red); }
[data-theme="dark"] .form-label .req { color: #ff6b6e; }
.form-control, .form-select { border-radius: 10px; padding: .75rem 1rem; border: 1px solid var(--glass-border); background-color: var(--field-bg); color: var(--text); }
.form-control::placeholder { color: var(--muted); opacity: .8; }
.form-control:focus, .form-select:focus { border-color: var(--green-3); box-shadow: 0 0 0 .2rem rgba(19, 128, 79, .15); background-color: var(--field-bg); color: var(--text); }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { text-align: right; }
.hp-field { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
#contactForm { position: relative; }
.hp-field > * { display: block; width: 1px !important; max-width: 1px; padding: 0; border: 0; }
.captcha-box { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 12px; background: var(--soft); border: 1px solid var(--glass-border); }
.captcha-q { font-weight: 800; font-size: 1.15rem; color: var(--heading); white-space: nowrap; }
.captcha-box .form-control { width: 110px; text-align: center !important; font-weight: 800; }
.was-validated .captcha-box:has(:invalid) + .invalid-feedback { display: block; }
.send-row { text-align: center; }
.btn-send { background: var(--logo-green); color: #fff; border: 0; border-radius: 999px; padding: .85rem 2.2rem; font-weight: 800; min-width: 170px; }
.btn-send:hover, .btn-send:focus { background: var(--green-2); color: #fff; }
[data-theme="dark"] .btn-send { background: var(--green-3); }
.c-map { overflow: hidden; }
.c-map iframe { width: 100%; height: 280px; display: block; border-bottom: 1px solid var(--glass-border) !important; }
.c-row { display: flex; align-items: center; gap: 16px; padding: 18px 24px; color: var(--text); }
a.c-row:hover { color: var(--text); background: var(--soft); }
.c-row small { display: block; color: var(--muted); font-weight: 700; font-size: .85rem; }
.c-row strong { display: block; color: var(--heading); font-weight: 800; word-break: break-word; }
.c-ico { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--green-3); font-size: 1.1rem; }
[data-theme="dark"] .c-ico { color: var(--mint); }
.c-list { padding: 6px 0; overflow: hidden; }
.c-list .c-row + .c-row { border-top: 1px solid var(--glass-border); margin-inline: 24px; padding-inline: 0; }
.c-list .c-row:first-child { padding-bottom: 18px; }
.c-follow { padding: 22px 24px; }
.c-follow h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.c-follow h3 i { color: var(--muted); font-size: 1rem; }
.c-social { display: flex; gap: 10px; }
.c-social a { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--heading); font-size: 1.15rem; transition: all .2s; }
.c-social a:hover { background: var(--logo-red); color: #fff; }
@media (max-width: 575.98px) { .form-card { padding: 22px 16px; } .c-row { padding: 16px; } .c-list .c-row + .c-row { margin-inline: 16px; } }

/* ---------- Gallery ---------- */
.g-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 28px; }
.back-chip { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; background: var(--logo-red); color: #fff; border-radius: 999px; font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow); transition: background .25s; }
[dir="rtl"] .back-chip { padding: 8px 8px 8px 20px; }
.back-chip i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); transition: transform .25s; }
.back-chip:hover { background: #b00b0f; color: #fff; }
.back-chip:hover i { transform: translateX(-4px); }
[dir="rtl"] .back-chip:hover i { transform: translateX(4px); }
.g-trail { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); font-weight: 600; }
.g-trail a { color: var(--accent); }
.g-trail li + li::before { content: "›"; margin-inline-end: 6px; color: var(--logo-red); }
[dir="rtl"] .g-trail li + li::before { content: "‹"; }

.g-card { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: start; padding: 0; border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .25s, background .25s; }
.g-card:hover { transform: translateY(-5px); background: var(--glass-hover); color: var(--text); }
.g-thumb { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: rgba(0, 0, 0, .15); margin: 6px 6px 0; border-radius: 12px; }
.g-card--video .g-thumb { aspect-ratio: 16/9; }
.g-thumb img, .g-thumb video { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; display: block; }
.g-card:hover .g-thumb img { transform: scale(1.06); }
.g-body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 18px; position: relative; flex: 1; }
.g-body strong { font-size: 1.08rem; color: var(--heading); line-height: 1.5; }
.g-body small { color: var(--muted); font-weight: 600; }
.g-type { position: absolute; top: -26px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--logo-red); color: #fff; font-size: 1.1rem; box-shadow: var(--shadow); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--logo-red); font-size: 1.35rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, .22); transition: all .25s; }
.play-btn i { margin-left: 4px; }
.g-card--video:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); background: var(--logo-red); color: #fff; }
.v-source { position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .8rem; font-weight: 700; }
.v-source .fa-youtube { color: #ff3d3d; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.photo-item { position: relative; display: block; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; border: 4px solid var(--glass-strong); box-shadow: var(--shadow); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.photo-zoom { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; background: rgba(0, 55, 27, .55); opacity: 0; transition: opacity .25s; }
.photo-item:hover img { transform: scale(1.08); }
.photo-item:hover .photo-zoom, .photo-item:focus .photo-zoom { opacity: 1; }
@media (max-width: 575.98px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 3.2rem; color: var(--logo-red); margin-bottom: 14px; }
.empty-state p { font-size: 1.15rem; font-weight: 700; margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 18, 9, .95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; max-width: 90vw; max-height: 88vh; text-align: center; }
.lb-figure img { max-width: 90vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); user-select: none; }
.lb-figure figcaption { color: #cfe0d6; margin-top: 12px; font-weight: 700; direction: ltr; }
.lb-close, .lb-arrow { position: absolute; border: 0; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; }
.lb-close:hover, .lb-arrow:hover { background: var(--logo-red); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) { .lb-arrow { width: 42px; height: 42px; } .lb-prev { left: 6px; } .lb-next { right: 6px; } }

.video-modal .modal-content { background: #000; border: 0; border-radius: var(--radius); overflow: hidden; }
.video-modal .modal-header { border: 0; background: #002a14; color: #fff; }
.video-modal .modal-title { color: #fff; }
.video-modal .btn-close { filter: invert(1); margin: 0; margin-inline-start: auto; }
.video-modal video, .video-modal iframe { width: 100%; height: 100%; background: #000; }

/* ---------- News cards (all the same size, description scrolls) ---------- */
.news-card { height: 470px; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; transition: transform .25s, background .25s; }
.news-card:hover { transform: translateY(-5px); background: var(--glass-hover); }
.news-img { position: relative; flex: 0 0 210px; height: 210px; overflow: hidden; margin: 6px 6px 0; border-radius: 12px; background: rgba(0, 0, 0, .15); }
.news-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-date { position: absolute; bottom: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 8px; background: var(--logo-red); color: #fff; font-size: .85rem; font-weight: 700; }
.news-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 20px 20px; }
.news-title { font-size: 1.12rem; margin-bottom: 10px; flex: 0 0 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-desc { flex: 1; min-height: 0; overflow-y: auto; color: var(--muted); font-size: .98rem; padding-inline-end: 8px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--logo-red) transparent; }
.news-desc p:last-child { margin-bottom: 0; }
.news-desc::-webkit-scrollbar { width: 6px; }
.news-desc::-webkit-scrollbar-thumb { background: var(--logo-red); border-radius: 6px; }
.news-desc::-webkit-scrollbar-track { background: var(--glass); border-radius: 6px; }

.site-pagination .page-link { border-radius: 10px !important; margin: 0 3px; color: var(--text); border-color: var(--glass-border); background: var(--glass); font-weight: 700; }
.site-pagination .page-item.active .page-link { background: var(--logo-red); border-color: var(--logo-red); color: #fff; }
.site-pagination .page-item.disabled .page-link { opacity: .5; background: var(--glass); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 30px 0 18px; }
.footer-top { padding: 26px; }
.footer-title { font-size: 1.15rem; margin-bottom: 18px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact li > i { color: var(--accent); width: 18px; margin-top: 6px; text-align: center; }
.footer-contact small { display: block; color: var(--muted); font-size: .8rem; }
.footer-contact a, .footer-contact span { color: var(--text); }
.footer-contact a:hover { color: var(--heading); }
.footer-map { height: 100%; min-height: 260px; border-radius: 14px; overflow: hidden; line-height: 0; border: 4px solid var(--glass-strong); }
.footer-map iframe { width: 100%; height: 100%; min-height: 260px; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 22px 6px 4px; color: var(--text); font-weight: 600; }
.fb-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.fb-item i { color: var(--muted); }
a.fb-item:hover { color: var(--heading); }
.fb-wa i { color: #25d366; font-size: 1.1rem; }
.fb-sep { color: var(--muted); opacity: .6; }
.fb-social { display: inline-flex; gap: 14px; font-size: 1.4rem; }
.fb-social a { color: var(--text); }
.fb-social a:hover { color: var(--heading); }
.fb-logo { line-height: 0; padding: 5px 12px; border-radius: 14px; background: linear-gradient(135deg, #f3fbf6 0%, #dff2e7 100%); border: 1.5px solid rgba(155, 232, 191, .75); }
.fb-logo img { height: 46px; width: auto; }
@media (max-width: 767.98px) { .fb-sep { display: none; } .footer-top { padding: 18px; } }

.to-top { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 1020; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--logo-red); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
@media (max-width: 767.98px) {
    .section { padding: 54px 0; }
    .section-head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767.98px) {
    .page-banner { padding: calc(var(--header-h) + 36px) 0 40px; }
}

/* ---------- Home highlights in the logo red ---------- */
.header-cta { background: var(--logo-red); color: #fff; box-shadow: 0 6px 18px rgba(209, 15, 19, .35); }
.header-cta:hover { background: #b00b0f; color: #fff; }
.nav-a.is-active::after { background: var(--logo-red); }
.page-home .ticker-dots button.is-active { background: var(--logo-red); }
.page-home .side-ico, .page-home .ticker-ico { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #ffb3b4 !important; }
.page-home .ticker-text em { background: var(--logo-red); border-color: var(--logo-red); color: #fff !important; }
.page-home .hero-badge { background: var(--logo-red); color: #fff; }
.page-home .hero-arrow:hover, .page-home .hero-dashes button.is-active { background: #fff; }
.page-home .hero-arrow:hover { color: var(--logo-green); }
.page-home .hero-slide { background: #003a1d; }
.page-home .tile > i { color: #c9f3dc; }
.page-home .glass { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .18); }
.page-home .hero-slider { border-color: rgba(255, 255, 255, .22); }
.page-home .fb-item i { color: #c4dccd; }

/* ---------- Home hero: full-width slider + news ticker ---------- */
.hero-wide { min-height: 0; height: clamp(420px, 58vh, 560px); }
.hero-wide .hs-img { width: 50%; padding: 26px; inset-inline-end: 3%; }
.hero-wide .hero-caption { width: 48%; padding: 40px 80px 70px 84px; pointer-events: auto; }
[dir="rtl"] .hero-wide .hero-caption { padding: 40px 84px 70px 80px; }
.hero-wide .hero-caption h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: 14px 0 8px; }
.hero-wide .hero-caption p { font-size: clamp(1rem, 1.5vw, 1.3rem); margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btn-main, .hero-btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 12px; font-weight: 800; transition: all .2s; }
.hero-btn-main { background: var(--logo-red); color: #fff; box-shadow: 0 8px 20px rgba(209, 15, 19, .35); }
.hero-btn-main:hover { background: #b00b0f; color: #fff; transform: translateY(-2px); }
.hero-btn-ghost { border: 1.5px solid rgba(255, 255, 255, .75); color: #fff; }
.hero-btn-ghost:hover { background: #fff; color: var(--logo-green); }

.news-strip { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 8px; border-radius: 14px; overflow: hidden; }
.ns-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; background: var(--logo-red); color: #fff; font-weight: 800; padding: 9px 16px; border-radius: 10px; }
.ns-label:hover { color: #fff; background: #b00b0f; }
.ns-track { flex: 1; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ns-move { display: inline-flex; white-space: nowrap; animation: nsMove 45s linear infinite; }
[dir="rtl"] .ns-move { animation-name: nsMoveRtl; }
.news-strip:hover .ns-move, .news-strip:focus-within .ns-move { animation-play-state: paused; }
@keyframes nsMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes nsMoveRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.ns-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; color: #fff; font-weight: 600; position: relative; }
.ns-item::before { content: ""; position: absolute; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: #ff8c8e; }
.ns-item:hover { color: #ffd0d1; }
.ns-item em { font-style: normal; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .14); padding: 1px 8px; border-radius: 6px; }
.ns-all { flex: 0 0 auto; color: #c4dccd; font-weight: 700; font-size: .9rem; padding-inline-end: 8px; }
.ns-all:hover { color: #fff; }

@media (max-width: 991.98px) {
    .hero-wide { height: auto; }
    .hero-wide .hero-slides { position: relative; height: 340px; }
    .hero-wide .hs-img { width: 100%; inset-inline-end: 0; padding: 14px; }
    .hero-wide .hero-caption, [dir="rtl"] .hero-wide .hero-caption {
        position: relative; width: auto; height: auto; overflow: visible; clip-path: none; padding: 20px 22px 50px !important; text-align: start;
    }
    .hero-wide .hero-arrow { top: 170px; }
    .ns-all { display: none; }
}
@media (max-width: 575.98px) {
    .hero-wide .hero-slides { height: 280px; }
    .hero-wide .hero-arrow { display: grid; place-items: center; top: 140px; width: 38px; height: 38px; }
    .ns-label span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ns-track { overflow-x: auto; }
    .ns-move { animation: none; }
}

/* ---------- Home: latest news (clean white cards) ---------- */
.home-news { padding-top: 46px; padding-bottom: 20px; }
.hn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hn-kicker { color: #ffb3b4; font-weight: 800; font-size: .95rem; }
.hn-head h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 4px 0 0; }
.hn-all { color: #fff; font-weight: 800; padding: 9px 18px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .55); transition: all .2s; }
.hn-all:hover { background: #fff; color: var(--logo-green); }
.hn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 34px; padding-top: 14px; }
.hn-card { --ease: cubic-bezier(.2, .8, .2, 1); position: relative; color: #fff; }

/* polaroid frame: photo only */
.hn-photo { position: relative; display: block; padding: 12px 12px 30px; background: #fffdf8; border-radius: 6px;
    box-shadow: 0 18px 36px rgba(0, 20, 10, .32), 0 3px 8px rgba(0, 20, 10, .12);
    transform: rotate(-2.5deg); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.hn-card:nth-child(2) .hn-photo { transform: rotate(1.8deg) translateY(8px); }
.hn-card:nth-child(3) .hn-photo { transform: rotate(-1.2deg); }
.hn-card:hover .hn-photo { transform: rotate(0) translateY(-6px) scale(1.03); box-shadow: 0 28px 50px rgba(0, 20, 10, .38), 0 4px 10px rgba(0, 20, 10, .14); }
.hn-tape { position: absolute; top: -13px; left: 50%; z-index: 2; width: 96px; height: 26px; transform: translateX(-50%) rotate(-3deg);
    background: rgba(209, 15, 19, .62); box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.hn-card:nth-child(2) .hn-tape { transform: translateX(-50%) rotate(4deg); }
.hn-frame { display: block; height: 240px; overflow: hidden; background: #eef3f0; }
.hn-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.hn-card:hover .hn-frame img { transform: scale(1.03); }

/* text straight on the background */
.hn-text { padding: 22px 4px 0; }
.hn-meta { display: flex; align-items: center; gap: 8px; color: #ffb3b4; font-weight: 800; font-size: .85rem; margin-bottom: 10px; }
.hn-meta::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .25); margin-inline-start: 6px; }
.hn-sep { opacity: .7; }
.hn-text h3 { font-size: 1.3rem; line-height: 1.55; margin: 0 0 8px; }
.hn-text h3 a { color: #fff; }
.hn-text h3 a span {
    background: linear-gradient(#fff, #fff) 0 100% / 0 2px no-repeat; padding-bottom: 3px;
    transition: background-size .5s var(--ease);
}
[dir="rtl"] .hn-text h3 a span { background-position: 100% 100%; }
.hn-card:hover .hn-text h3 a span, .hn-text h3 a:focus span { background-size: 100% 2px; }
.hn-text p { color: #d7ebdf; font-size: .96rem; line-height: 1.75; margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-more { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: .92rem; opacity: .85; transition: opacity .3s, gap .4s var(--ease); }
.hn-card:hover .hn-more { opacity: 1; gap: 12px; }
.hn-more i { color: #ffb3b4; }
[data-theme="dark"] .hn-photo { background: #f2efe6; }
@media (max-width: 991.98px) { .hn-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hn-grid { grid-template-columns: 1fr; gap: 40px; } .hn-frame { height: 220px; } }

/* ---------- Show every image whole (no cropping) ----------
   The picture is fitted inside its frame; a blurred copy of the same
   picture fills the empty space around it. */
.fit-full { position: relative; overflow: hidden; isolation: isolate; background-color: #e9f0eb; background-size: cover; background-position: center; }
.fit-full::before {
    content: ""; position: absolute; inset: -24px; z-index: -1;
    background-image: inherit; background-size: cover; background-position: center;
    filter: blur(18px) brightness(.95) saturate(1.1); opacity: .85;
}
.fit-full > img, .fit-full > video { object-fit: contain !important; object-position: center !important; }
.hn-frame.fit-full { height: 280px; }
.news-img.fit-full { flex-basis: 240px; height: 240px; }
.photo-item.fit-full { aspect-ratio: 3 / 4; }
.g-thumb.fit-full { aspect-ratio: 4 / 3; }
.g-card--video .g-thumb.fit-full { aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .hn-frame.fit-full { height: 300px; } }
/* ---------- Electronic Portal button (green glass, not red) ---------- */
.header-cta.header-cta--portal {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1.5px solid rgba(155, 232, 191, .7);
    box-shadow: none;
}
.header-cta.header-cta--portal i { color: var(--mint); }
.header-cta.header-cta--portal:hover,
.header-cta.header-cta--portal:focus-visible {
    background: var(--mint);
    color: var(--logo-green);
    border-color: var(--mint);
}
.header-cta.header-cta--portal:hover i { color: var(--logo-green); }

/* menu link: mobile only */
.main-nav .nav-portal { display: none; }
.main-nav .nav-portal .nav-a i { color: var(--mint); margin-inline-end: 6px; }

/* same breakpoint where your menu button appears */
@media (max-width: 1199.98px) {
    .main-nav .nav-portal { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--glass-border); }
    .header-cta.header-cta--portal { display: none; }
}
