/* Public site (galil-school.org). RTL first (ar/he), LTR for en. */
@font-face { font-family: Kufi; font-weight: 500; font-display: swap; src: url(fonts/noto-kufi-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Kufi; font-weight: 700; font-display: swap; src: url(fonts/noto-kufi-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Kufi; font-weight: 500; font-display: swap; src: url(fonts/noto-kufi-arabic-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Kufi; font-weight: 700; font-display: swap; src: url(fonts/noto-kufi-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Plex; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Plex; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Plex; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Plex; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Plex; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-hebrew-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: Plex; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: Kufi; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-hebrew-hebrew-700-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: Kufi; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; }

:root {
  --green: #05682f;        /* school colour (settings: style_color2) */
  --green-deep: #034a21;
  --green-wash: #e6f0e8;
  --plum: #554f65;         /* settings: style_color1 */
  --paper: #f3f5f1;
  --card: #ffffff;
  --ink: #18211c;
  --ink-2: #4c5650;
  --line: #dbe2d9;
  --sun: #f0b400;
  --radius-s: 6px;
  --radius-m: 12px;
  --shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 6px 20px rgba(20, 40, 25, .06);
  --wrap: 1180px;
  --gutter: 20px;
  --head: Kufi, Plex, 'Segoe UI', Tahoma, sans-serif;
  --body: Plex, 'Segoe UI', Tahoma, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.75 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.45; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(26px, 3.4vw, 38px); }
h2 { font-size: clamp(21px, 2.4vw, 27px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--sun); color: #000; padding: 8px 14px; z-index: 100; border-radius: var(--radius-s); }
.skip:focus { top: 10px; }
.muted { color: var(--ink-2); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------------- top strip */
.topbar { background: var(--plum); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; opacity: .92; }
.topbar a:hover { opacity: 1; }
.topbar .fa { opacity: .75; margin-inline-end: 6px; }
.topbar .spacer { flex: 1; }
.topbar .langs { display: flex; gap: 4px; }
.topbar .langs a { padding: 2px 10px; border-radius: 20px; }
.topbar .langs a[aria-current] { background: rgba(255,255,255,.18); opacity: 1; }
.topbar .social a { margin-inline-start: 10px; }
@media (max-width: 720px) { .topbar .hide-s { display: none; } }

/* ---------------- header + nav */
.header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand .name { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.3; max-width: 180px; }
.nav { flex: 1; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; justify-content: flex-start; flex-wrap: wrap; }
.nav li { position: relative; }
.nav a, .nav button.dd { display: flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--ink); font: 500 15.5px/1.4 var(--head); border-radius: var(--radius-s); background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.dd:hover { background: var(--green-wash); text-decoration: none; color: var(--green-deep); }
.nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav .fa-angle-down { font-size: 14px; opacity: .6; transition: transform .2s; }
.nav ul ul { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow); display: none; z-index: 50; }
.nav ul ul ul { top: 0; inset-inline-start: 100%; }
.nav li.open > ul, .nav li:focus-within > ul { display: block; }
@media (hover: hover) { .nav li:hover > ul { display: block; } }
.nav ul ul a, .nav ul ul button.dd { font: 400 15px/1.5 var(--body); padding: 8px 12px; width: 100%; justify-content: space-between; text-align: start; }
.nav .ext { font-size: 11px; opacity: .5; }
.head-actions { display: flex; gap: 6px; flex: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; }
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.menu-btn { display: none; }
.searchbar { display: none; border-top: 1px solid var(--line); background: var(--card); }
.searchbar.open { display: block; }
.searchbar form { display: flex; gap: 8px; padding: 14px 0; }
.searchbar input { flex: 1; }

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .header .wrap { min-height: 68px; }
  .brand img { height: 46px; }
  .nav { position: fixed; inset: 0; background: rgba(10, 20, 14, .45); display: none; z-index: 60; }
  .nav.open { display: block; }
  .nav > ul { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(340px, 88vw); background: var(--card); flex-direction: column; flex-wrap: nowrap; padding: 14px 14px 24px; overflow-y: auto; gap: 0; }
  .nav a, .nav button.dd { padding: 13px 12px; width: 100%; justify-content: space-between; font-size: 16px; }
  .nav a[aria-current="page"] { box-shadow: none; background: var(--green-wash); border-radius: var(--radius-s); }
  .nav ul ul, .nav ul ul ul { position: static; box-shadow: none; border: 0; padding: 0 14px 0 0; min-width: 0; display: none; }
  [dir="ltr"] .nav ul ul { padding: 0 0 0 14px; }
  .nav li:hover > ul, .nav li:focus-within > ul { display: none; }
  .nav li.open > ul { display: block; }
  .nav li.open > .dd .fa-angle-down { transform: rotate(180deg); }
  .nav li.close-li { display: flex; justify-content: flex-end; margin-bottom: 10px; }
  .nav .close-nav { width: 44px; padding: 0; justify-content: center; }
  .brand .name { display: none; }
  .head-actions { margin-inline-start: auto; }
}
@media (min-width: 1021px) { .nav .close-li { display: none; } }

/* ---------------- buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 40px; border: 2px solid var(--green); background: var(--green); color: #fff; font: 600 16px/1.2 var(--body); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green-wash); color: var(--green-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=file], textarea, select {
  width: 100%; font: 400 16px/1.5 var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 11px 14px;
}
input:focus, textarea:focus, select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(5, 104, 47, .15); }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field .req { color: #b42318; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.notice { padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 16px; font-size: 15.5px; }
.notice.ok { background: var(--green-wash); color: var(--green-deep); }
.notice.err { background: #fdecea; color: #8a1c13; }
.field-error { color: #b42318; font-size: 14px; margin-top: 4px; }

/* ---------------- hero (home) */
.hero { position: relative; background: var(--green-deep); color: #fff; }
.hero .slides { position: relative; height: clamp(320px, 52vw, 560px); overflow: hidden; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero .slide.on { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 30, 14, .82) 0%, rgba(3, 30, 14, .25) 45%, rgba(3, 30, 14, 0) 70%); pointer-events: none; }
.hero .title { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding-bottom: 40px; }
.hero .title h1 { color: #fff; font-size: clamp(30px, 5.4vw, 64px); line-height: 1.25; margin: 0; max-width: 13em; text-wrap: balance; }
.hero .title p { font-size: clamp(16px, 1.6vw, 20px); margin: 10px 0 0; opacity: .9; max-width: 34em; }
.hero .dots { display: flex; gap: 8px; margin-top: 22px; }
.hero .dots button { width: 34px; height: 5px; border: 0; border-radius: 3px; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero .dots button[aria-current="true"] { background: var(--sun); }

/* the notice board: latest headlines pinned beside the hero photo */
.board { position: relative; z-index: 3; margin-top: -56px; }
.board .inner { background: var(--card); border-radius: var(--radius-m); box-shadow: var(--shadow); display: grid; grid-template-columns: 200px 1fr; overflow: hidden; }
.board .label { background: var(--green); color: #fff; padding: 20px 22px; font-family: var(--head); font-weight: 700; font-size: 19px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.board .label a { color: #fff; font: 400 14.5px var(--body); opacity: .9; }
.board ul { list-style: none; margin: 0; padding: 8px 0; display: grid; grid-template-columns: 1fr 1fr; }
.board li a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 20px; color: var(--ink); align-items: start; }
.board li a:hover { background: var(--paper); text-decoration: none; }
.board .d { font-family: var(--head); font-weight: 700; color: var(--green); line-height: 1.15; text-align: center; border-inline-end: 2px solid var(--line); padding-inline-end: 10px; }
.board .d b { display: block; font-size: 24px; }
.board .d small { font: 400 12.5px var(--body); color: var(--ink-2); }
.board .t { font-weight: 600; font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) {
  .board { margin-top: 0; }
  .board .wrap { padding: 0; }
  .board .inner { grid-template-columns: 1fr; border-radius: 0; }
  .board .label { flex-direction: row; align-items: center; padding: 14px var(--gutter); }
  .board ul { grid-template-columns: 1fr; }
  .board li a { padding: 12px var(--gutter); }
  .board li:nth-child(n+4) { display: none; }
}

/* ---------------- sections */
.section { padding: 56px 0; }
.section.tight { padding-top: 28px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head a { font-weight: 600; font-size: 15.5px; }

/* quick links: a strip of labelled icons */
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.quick a, .quick span.q { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.45; }
.quick a:hover { border-color: var(--green); color: var(--green-deep); text-decoration: none; }
.quick .fa { font-size: 26px; color: var(--green); width: 54px; height: 54px; border-radius: 50%; background: var(--green-wash); display: flex; align-items: center; justify-content: center; }
.quick span.q { opacity: .8; }

/* news: one lead story + a list */
.news { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.lead { background: var(--card); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.lead .ph { aspect-ratio: 16 / 9; background: var(--green-wash); overflow: hidden; }
.lead .ph img { width: 100%; height: 100%; object-fit: cover; }
.lead .bd { padding: 22px 26px 26px; }
.lead h3 { font-size: clamp(19px, 2vw, 24px); }
.lead h3 a { color: var(--ink); }
.meta { font-size: 14px; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.meta .fa { margin-inline-end: 5px; opacity: .7; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list a.row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; color: var(--ink); align-items: center; }
.list a.row:hover { text-decoration: none; }
.list a.row:hover .t { color: var(--green); }
.list .th { aspect-ratio: 4 / 3; border-radius: var(--radius-s); overflow: hidden; background: var(--green-wash); display: flex; align-items: center; justify-content: center; color: var(--green); }
.list .th img { width: 100%; height: 100%; object-fit: cover; }
.list .t { font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list .d { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } .list a.row { grid-template-columns: 92px 1fr; } }

/* principal's message */
.principal { background: var(--card); }
.principal .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.principal .ph { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 5; background: var(--green-wash); }
.principal .ph img { width: 100%; height: 100%; object-fit: cover; }
.principal blockquote { margin: 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.9; color: var(--ink); border-inline-start: 4px solid var(--sun); padding-inline-start: 22px; }
.principal h2 { color: var(--green); }
@media (max-width: 760px) { .principal .wrap { grid-template-columns: 1fr; gap: 22px; } .principal .ph { max-width: 240px; } }

/* album + videos */
.album { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 10px; }
.album a { position: relative; border-radius: var(--radius-s); overflow: hidden; background: var(--green-wash); color: #fff; }
.album a:first-child { grid-column: span 2; grid-row: span 2; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album a:hover img { transform: scale(1.04); }
.album span { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 10px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); font-weight: 600; font-size: 14.5px; line-height: 1.4; }
@media (max-width: 760px) { .album { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }

/* events */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.event { display: grid; grid-template-columns: 62px 1fr; gap: 14px; background: var(--card); border-radius: var(--radius-m); padding: 16px; border: 1px solid var(--line); }
.event .cal { background: var(--green); color: #fff; border-radius: var(--radius-s); text-align: center; padding: 6px 0; font-family: var(--head); line-height: 1.2; height: max-content; }
.event .cal b { display: block; font-size: 24px; }
.event .cal small { font-size: 12px; }
.event h3 { font-size: 16px; margin: 0 0 4px; }
.event p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------------- inner pages */
.page-head { background: var(--green); color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset-inline-end: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.page-head h1 { color: #fff; margin: 0; max-width: 26em; text-wrap: balance; }
.crumbs { font-size: 14px; margin-bottom: 8px; opacity: .9; }
.crumbs a { color: #fff; }
.crumbs .sep { margin: 0 8px; opacity: .6; }
.page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding: 38px 0 60px; align-items: start; }
.page.full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .page { grid-template-columns: minmax(0, 1fr); } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chips a { padding: 7px 16px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.chips a:hover { border-color: var(--green); text-decoration: none; }
.chips a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.chips small { opacity: .65; margin-inline-start: 4px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; color: var(--ink); }
.card:hover { text-decoration: none; border-color: #b9c8b8; }
.card:hover h3 { color: var(--green); }
.card .ph { aspect-ratio: 16 / 10; background: var(--green-wash); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 34px; overflow: hidden; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph .play { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; padding-inline-start: 4px; }
.card .bd { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 16.5px; line-height: 1.6; margin: 0 0 6px; }
.card p { font-size: 15px; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin: auto 0 0; padding-top: 10px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius-m); padding: 40px 24px; text-align: center; color: var(--ink-2); }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 21px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.pager a:hover { border-color: var(--green); text-decoration: none; }
.pager [aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.pager .gap { border: 0; background: none; }

/* article */
.article { background: var(--card); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); }
.article .cover { margin: calc(-1 * clamp(20px, 3vw, 36px)); margin-bottom: 26px; border-radius: var(--radius-m) var(--radius-m) 0 0; overflow: hidden; background: var(--green-wash); }
.article .cover img { width: 100%; max-height: 560px; object-fit: contain; background: #e9ece7; }
.prose { font-size: 17.5px; line-height: 1.95; overflow-wrap: anywhere; }
.prose img { height: auto !important; border-radius: var(--radius-s); margin: 12px 0; }
.prose table { border-collapse: collapse; width: 100% !important; margin: 16px 0; display: block; overflow-x: auto; font-size: 15.5px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose iframe { max-width: 100%; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose * { max-width: 100%; }
.prose [style*="font-family"] { font-family: inherit !important; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-s); overflow: hidden; margin-bottom: 22px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
audio { width: 100%; margin: 10px 0 20px; }
.block { margin-top: 32px; }
.block > h2 { font-size: 20px; margin-bottom: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery a { aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; background: var(--green-wash); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--ink); }
.files a:hover { border-color: var(--green); text-decoration: none; }
.files .fa { font-size: 22px; color: var(--green); }
.files .fa-file-pdf-o { color: #c4320a; }
.files .dl { margin-inline-start: auto; color: var(--ink-2); font-size: 14px; }
.fields { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 20px; padding: 16px 18px; background: var(--paper); border-radius: var(--radius-s); }
.fields dt { font-weight: 600; color: var(--ink-2); }
.fields dd { margin: 0; }
.map { aspect-ratio: 16 / 8; border: 0; width: 100%; border-radius: var(--radius-s); }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; }
.share a:hover, .share button:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.share .lbl { font-weight: 600; margin-inline-end: 6px; font-size: 15px; }
.comments { list-style: none; padding: 0; margin: 0 0 20px; }
.comments li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comments b { font-family: var(--head); font-weight: 500; }
.comments small { color: var(--ink-2); margin-inline-start: 8px; }
.comments p { margin: 6px 0 0; }

/* sidebar */
.side { display: grid; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 960px) { .side { position: static; } }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; }
.box h2 { font-size: 17px; margin-bottom: 10px; }
.box .list a.row { grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; }
.box .list .t { font-size: 14.5px; }
.side-banner img { border-radius: var(--radius-m); width: 100%; }
.cats { list-style: none; margin: 0; padding: 0; }
.cats a { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.cats li:last-child a { border-bottom: 0; }
.cats a[aria-current] { color: var(--green); font-weight: 600; }

/* staff directory */
.staff-group + .staff-group { margin-top: 30px; }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.person .av { width: 52px; height: 52px; border-radius: 50%; background: var(--green-wash); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 20px; overflow: hidden; }
.person .av img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 16px; margin: 0; }
.person .role { color: var(--ink-2); font-size: 14px; }
.person ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14.5px; }
.person ul .fa { width: 18px; color: var(--green); }
.staff-search { max-width: 420px; margin-bottom: 22px; }

/* calendar */
.calendar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 10px; }
.cal-head h2 { margin: 0; font-size: 20px; }
.cal-head .nav-btns { display: flex; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-grid .dow { padding: 10px 6px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--paper); }
.cal-grid .day { min-height: 96px; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); padding: 6px; font-size: 13.5px; }
.cal-grid .day:nth-child(7n+1) { border-inline-start: 0; }
.cal-grid .day.out { background: #fafbf9; color: #aab3ad; }
.cal-grid .day.today .n { background: var(--green); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.cal-grid .ev { display: block; margin-top: 4px; padding: 2px 6px; border-radius: 4px; background: var(--green-wash); color: var(--green-deep); font-size: 12.5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border: 0; width: 100%; text-align: start; font-family: inherit; }
.cal-grid .ev.t1 { background: #e8e5f0; color: var(--plum); }
.cal-grid .ev.t2 { background: #fff3cc; color: #6b5000; }
.cal-grid .ev.t3 { background: #fde3e1; color: #8a1c13; }
@media (max-width: 640px) { .cal-grid .day { min-height: 58px; } .cal-grid .ev { font-size: 0; height: 6px; padding: 0; } }

/* ---------------- footer */
.footer { background: var(--green-deep); color: #e3ece5; margin-top: 30px; font-size: 15.5px; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 34px; padding: 50px 0 34px; }
.footer h2 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer a { color: #e3ece5; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 4px 0; }
.footer .fa { width: 20px; color: var(--sun); }
.footer .brandline { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer .brandline img { height: 54px; background: #fff; border-radius: 8px; padding: 4px; }
.footer .brandline b { font-family: var(--head); color: #fff; font-size: 17px; line-height: 1.4; }
.footer form { display: grid; gap: 8px; }
.footer input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.footer input::placeholder { color: rgba(255,255,255,.6); }
.footer .btn { background: var(--sun); border-color: var(--sun); color: #2a2000; }
.footer .btn:hover { background: #ffc61a; border-color: #ffc61a; color: #2a2000; }
.footer .msg { font-size: 14.5px; min-height: 1.5em; }
.footer .social { display: flex; gap: 8px; margin-top: 14px; }
.footer .social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; }
.footer .social .fa { color: #fff; width: auto; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; opacity: .85; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .cols { grid-template-columns: 1fr; gap: 26px; } }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(8, 14, 10, .92); z-index: 200; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb .x { top: 16px; inset-inline-end: 16px; }
.lb .p { inset-inline-start: 16px; top: 50%; transform: translateY(-50%); }
.lb .n { inset-inline-end: 16px; top: 50%; transform: translateY(-50%); }
.lb .cap { position: absolute; bottom: 18px; color: #fff; font-size: 15px; opacity: .85; }

.modal { position: fixed; inset: 0; background: rgba(8, 14, 10, .5); z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .in { background: #fff; border-radius: var(--radius-m); padding: 24px; max-width: 460px; width: 100%; }
.modal h3 { margin-bottom: 6px; }

.to-top { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 30; opacity: 0; pointer-events: none; transition: opacity .2s; background: var(--card); box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; }

@media print { .topbar, .header, .footer, .side, .share, .to-top, form { display: none !important; } body { background: #fff; } .article { border: 0; padding: 0; } }
.card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.footer li { display: flex; gap: 8px; align-items: baseline; overflow-wrap: anywhere; }
.contact-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; padding: 38px 0 60px; align-items: start; }
.contact-card { background: var(--green); color: #fff; border-radius: var(--radius-m); padding: 26px; }
.contact-card h2 { color: #fff; font-size: 19px; }
.contact-card ul { list-style: none; margin: 0 0 4px; padding: 0; }
.contact-card li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); align-items: center; }
.contact-card li:last-child { border-bottom: 0; }
.contact-card .fa { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: var(--sun); }
.contact-card a { color: #fff; }
.contact-card small { display: block; opacity: .75; font-size: 13px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
/* accessibility widget: keep its button low on the side so it never covers the logo or menu */
.accessibility-menu-trigger { top: auto !important; bottom: 84px; padding: 10px 8px 10px 18px !important; font-size: 13px; }
[dir="ltr"] .accessibility-menu-trigger { padding: 10px 18px 10px 8px !important; }
.principal.no-photo .wrap { grid-template-columns: minmax(0, 760px); justify-content: center; }

/* ======================================================================
   galil-school.org layer: the campus film carries the home page; the rest stays calm.
   Colours come from the admin settings (--green = style_color2, --plum = style_color1);
   the derived shades below follow whatever is chosen there. Ochre = the campus roofs.
   ====================================================================== */
:root {
  --green-deep: color-mix(in srgb, var(--green) 88%, #000);
  --green-wash: color-mix(in srgb, var(--green) 8%, #fff);
  --sun: #e2ad2f;
  --line: #dfe3dc;
}
.topbar { background: var(--plum); }

/* header: the logo already carries the school's name, so the text name is for screen readers only */
.brand.has-logo .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand img { height: 58px; }
.nav > ul { flex-wrap: nowrap; justify-content: center; }
.nav a, .nav button.dd { white-space: nowrap; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sun); color: var(--ink); }
@media (max-width: 1180px) and (min-width: 1021px) { .nav a, .nav button.dd { padding: 10px 8px; font-size: 15px; } }

/* hero */
.hero .slides { height: clamp(460px, 78vh, 720px); }
.hero.has-video .slides { background: var(--green-deep); }
.hero .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .slides::after {
  background:
    linear-gradient(to top, color-mix(in srgb, var(--green-deep) 92%, transparent) 0%, color-mix(in srgb, var(--green-deep) 45%, transparent) 38%, transparent 68%),
    linear-gradient(to left, rgba(0, 0, 0, .28), transparent 60%);
}
[dir="ltr"] .hero .slides::after {
  background:
    linear-gradient(to top, color-mix(in srgb, var(--green-deep) 92%, transparent) 0%, color-mix(in srgb, var(--green-deep) 45%, transparent) 38%, transparent 68%),
    linear-gradient(to right, rgba(0, 0, 0, .28), transparent 60%);
}
.hero .title { padding-bottom: clamp(88px, 11vh, 120px); }
.hero .title h1 { font-size: clamp(30px, 4.9vw, 64px); line-height: 1.22; max-width: 14em; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero .title p { font-size: clamp(16px, 1.5vw, 20px); margin-top: 14px; max-width: 36em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-actions .btn { background: var(--sun); border-color: var(--sun); color: #231a00; }
.hero-actions .btn:hover { background: #f0bf45; border-color: #f0bf45; color: #231a00; }
.btn.ghost.light { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn.ghost.light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.vid-toggle { position: absolute; z-index: 3; inset-inline-end: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: clamp(96px, 12vh, 128px);
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer; font-size: 15px; }
.vid-toggle:hover { background: rgba(0, 0, 0, .45); }

/* quick links: one white dock lifted onto the bottom edge of the hero */
.dock { position: relative; z-index: 4; margin-top: -64px; }
.dock .quick { background: var(--card); border-radius: var(--radius-m); box-shadow: 0 10px 34px rgba(10, 30, 20, .14); display: flex; overflow: hidden; gap: 0; }
.dock .quick a, .dock .quick span.q { flex: 1 1 0; min-width: 0; border: 0; border-radius: 0; background: none; padding: 20px 10px 18px; font-size: 14.5px; gap: 10px; }
.dock .quick > * + * { border-inline-start: 1px solid var(--line); }
.dock .quick a:hover { background: var(--green-wash); color: var(--ink); }
.dock .quick .fa { width: auto; height: auto; background: none; border-radius: 0; font-size: 26px; color: var(--plum); }
@media (max-width: 860px) {
  .dock { margin-top: -40px; }
  .dock .quick { display: grid; grid-template-columns: repeat(4, 1fr); }
  .dock .quick > * { border-inline-start: 0 !important; border-bottom: 1px solid var(--line); }
  .dock .quick > *:not(:nth-child(4n+1)) { border-inline-start: 1px solid var(--line) !important; }
}
@media (max-width: 520px) {
  .dock .quick a, .dock .quick span.q { padding: 14px 4px 12px; font-size: 12.5px; line-height: 1.35; gap: 8px; }
  .dock .quick .fa { font-size: 22px; }
  .hero .title { padding-bottom: 76px; }
  .vid-toggle { bottom: 64px; width: 40px; height: 40px; }
}

/* news */
.section { padding: 64px 0; }
.dock + .section { padding-top: 56px; }
.sec-head h2 { position: relative; padding-bottom: 10px; }
.sec-head h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--sun); }
@media (min-width: 861px) { .news { grid-template-columns: 1.35fr 1fr; align-items: start; } .list a.row { grid-template-columns: 128px 1fr; } }
.lead { box-shadow: none; border: 1px solid var(--line); }
.list a.row { padding: 16px 0; }
.list li:first-child a.row { padding-top: 0; }

/* principal */
.principal { background: var(--card); border-block: 1px solid var(--line); }
.principal h2 { color: var(--ink); }
.principal blockquote { border-inline-start-color: var(--plum); }

/* album mosaic: 1 large + 4 small fills the 4 columns exactly */
.album { grid-auto-rows: 190px; }
@media (max-width: 760px) { .album { grid-auto-rows: 150px; } .album a:first-child { grid-column: span 2; grid-row: span 1; } }

/* footer: columns share the width whatever is shown */
.footer { background: var(--green-deep); }
.footer .cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer .brandline b { font-size: 16px; }
