/* =====================================================================
   SRITI Kota Belud: light theme in the style of the Kelab Rakan Muda
   website (Space Grotesk + JetBrains Mono, glowing logo ring, sweep line,
   shine buttons, centred titles with a bar, grid backgrounds).
   Colours: SRITI greens on white.
   ===================================================================== */
:root {
  --white: #FFFFFF;
  --off: #F5F9F1;
  --off2: #EAF3E1;
  --g: #3B8A2E;          /* main green (buttons, links) */
  --g-h: #2F7424;
  --g-hi: #7CC242;       /* bright logo green (glows, accents) */
  --g-soft: rgba(59, 138, 46, .10);
  --g-dd: #1E4A1A;
  --text: #33402F;
  --text-dark: #142312;
  --muted: #6B7A66;
  --line: rgba(59, 138, 46, .20);
  --line-dark: #DCE6D5;
  --red: #B4413A;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font: var(--sans); --font-h: var(--sans);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr: 80px;
  /* names used by dashboard / login styles */
  --surface: #FFFFFF; --bg: #FFFFFF; --soft: var(--off); --sage-l: var(--off2); --sage: var(--g-hi);
  --green: var(--g); --green-h: var(--g-h); --green-dd: var(--g-dd); --ink: var(--text-dark);
  --r: 16px; --r-lg: 18px; --r-sm: 10px;
  --shadow: 0 8px 22px rgba(30, 74, 26, .08); --shadow-h: 0 20px 44px rgba(30, 74, 26, .14);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); line-height: 1.6; background: var(--white); overflow-x: hidden; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: var(--g); text-decoration: none; }
h1, h2, h3, h4 { color: var(--text-dark); line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--g-hi); color: var(--text-dark); }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1140px; margin: auto; padding: 0 20px; position: relative; z-index: 1; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--g), var(--g-hi)); box-shadow: 0 0 10px rgba(124, 194, 66, .7); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); transition: background .3s; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--g-hi), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: sweep 6s linear infinite; }
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.site-header.scrolled { background: rgba(255, 255, 255, .96); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 80px; transition: height .3s var(--ease); }
.site-header.scrolled .bar { height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--text-dark); }
.logo-slot { position: relative; width: 52px; height: 52px; border-radius: 50%; flex: none; transition: width .3s var(--ease), height .3s var(--ease); }
.site-header.scrolled .logo-slot { width: 44px; height: 44px; }
.logo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: relative; z-index: 1; }
.logo-slot::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--g-hi), transparent 40%, var(--g) 60%, transparent 85%, var(--g-hi)); animation: spin 4s linear infinite; }
.logo-slot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }
/* "SRITI" is spread to exactly the width of "KOTA BELUD" (same width, different fonts) */
/* staff-only pages stay blank until the log in is confirmed (visitors are sent to 404) */
body[data-page="admin"]:not(.staff-ok) main, body[data-page="profile"]:not(.staff-ok) main { visibility: hidden; }

/* both lines are spread letter by letter to the width of the longer one */
.brand-text { display: inline-grid; line-height: 1.15; }
.brand-text b, .brand-text small { display: flex; justify-content: space-between; white-space: nowrap; }
.brand-text b { color: var(--text-dark); font-size: 1.12rem; font-weight: 700; }
.brand-text small { font-family: var(--mono); color: var(--g); font-size: .84rem; font-weight: 500; text-transform: uppercase; margin-top: 1px; }
.brand-text i { font-style: normal; }
.brand-text i.sp { width: .3em; }
#nav { display: flex; align-items: center; gap: 26px; color: var(--text-dark); font-weight: 500; }
#nav > a:not(.btn) { position: relative; padding: 4px 0; color: var(--text); opacity: .85; transition: opacity .2s, color .2s; }
#nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--g-hi); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); box-shadow: 0 0 8px rgba(124, 194, 66, .7); }
#nav > a:not(.btn):hover, #nav > a.active { opacity: 1; color: var(--g); }
#nav > a:not(.btn):hover::after, #nav > a.active::after { transform: scaleX(1); transform-origin: left; }
.lang-btn { border: 1px solid var(--line); cursor: pointer; background: var(--white); border-radius: 999px; padding: 6px 12px; font: 600 .74rem var(--mono); letter-spacing: .1em; color: var(--g); margin-left: -6px; transition: border-color .2s, background .2s; }
.lang-btn:hover { border-color: var(--g); background: var(--g-soft); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--text-dark); border-radius: 2px; transition: .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- buttons (pill + shine) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid var(--g); cursor: pointer; font: 600 1rem var(--sans); line-height: 1.1; overflow: hidden; isolation: isolate; white-space: nowrap; background: var(--g); color: #fff; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); z-index: -1; transition: left .6s var(--ease); }
.btn:hover::before { left: 140%; }
.btn:hover { transform: translateY(-2px); background: var(--g-h); border-color: var(--g-h); box-shadow: 0 8px 24px rgba(59, 138, 46, .28); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.btn-white, .btn-ghost { background: var(--white); color: var(--g); border-color: var(--g); }
.btn-white:hover, .btn-ghost:hover { background: var(--g); color: #fff; }
.btn-ghost { border-color: var(--line-dark); color: var(--text-dark); }
.btn-soft { background: var(--g-soft); color: var(--g-dd); border-color: transparent; }
.btn-danger { background: var(--white); color: var(--red); border-color: #E7C4C0; }
.btn-danger:hover { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(180, 65, 58, .25); }
.btn-danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- sections ---------- */
.sec { padding: 80px 0; position: relative; overflow: hidden; }
.sec.alt { background: var(--off); }
.sec.sec-open { overflow: visible; }   /* lets the side menus stay in view while scrolling */
.title { text-align: center; color: var(--text-dark); font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 40px; padding-bottom: 16px; position: relative; }
.title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 72px; height: 3px; margin-left: -36px; background: linear-gradient(90deg, var(--g), var(--g-hi)); border-radius: 2px; box-shadow: 0 0 12px rgba(124, 194, 66, .5); }
.title.left { text-align: left; } .title.left::after { left: 0; margin-left: 0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.lead.center { text-align: center; margin: -24px auto 40px; white-space: pre-line; }
.center-cta { text-align: center; margin-top: 36px; }
.sec-banner { position: relative; border-radius: 18px; overflow: hidden; background: #FDFDFA; box-shadow: 0 0 0 1px var(--line-dark), 0 20px 50px rgba(30, 74, 26, .08); aspect-ratio: 3 / 1; margin-bottom: 36px; }
.sec-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 84%; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.link-more { font: 600 .85rem var(--mono); letter-spacing: .04em; }

/* grid background (like the Kelab hero, light) */
.grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .45; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 72%); animation: gridmove 18s linear infinite; }
@keyframes gridmove { to { background-position: 56px 56px, 56px 56px; } }

/* ---------- hero (home banner) ---------- */
.hero { position: relative; padding: 28px 0 56px; background: radial-gradient(900px 500px at 85% 10%, rgba(124, 194, 66, .16), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(59, 138, 46, .08), transparent 60%), var(--white); overflow: hidden; }
/* banner: same width as the boxes below. Best size 1920×1080 (16:9).
   On short screens the BOTTOM of the photo is trimmed a little so the news / event
   cards and the fundraising bar still fit; the top (logo + title) is always shown. */
.hero-frame { position: relative; border-radius: 20px; overflow: hidden; background: #FDFDFA; box-shadow: 0 0 0 1px var(--line-dark), 0 30px 60px rgba(30, 74, 26, .10); }
.hero-frame img { display: block; width: 100%; height: auto; object-fit: cover; object-position: center top; max-height: max(calc(100vh - 150px), 380px); max-height: max(calc(100svh - 150px), 380px); }
/* latest news + next event strip under the banner */
/* when the strip shows, the banner gets a little shorter so both fit on the first screen */
.hero:has(.highlights:not([hidden])) .hero-frame img, .hero:has(.fund:not([hidden])) .hero-frame img { max-height: max(calc(100vh - 270px), 380px); max-height: max(calc(100svh - 270px), 380px); }
.hero:has(.highlights:not([hidden])):has(.fund:not([hidden])) .hero-frame img { max-height: max(calc(100vh - 400px), 380px); max-height: max(calc(100svh - 400px), 380px); }
/* fundraising campaign bar */
.fund { margin-top: 14px; }
.fund-card { background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 22px 16px; }
.fund-k { font: 600 .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fund-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin: 8px 0 12px; }
.fund-head h3 { font-size: 1.02rem; font-weight: 600; color: var(--text-dark); margin: 0; }
.fund-head h3 span { color: var(--text-dark); }
.fund-head h3 i { font-style: normal; color: var(--muted); margin: 0 10px; font-weight: 400; }
.fund-head em { font-style: normal; font-size: .86rem; color: var(--muted); white-space: nowrap; }
.fund-track { height: 8px; border-radius: 999px; background: #E8EEE5; overflow: hidden; }
.fund-track span { display: block; height: 100%; border-radius: inherit; background: var(--g); transition: width 1s var(--ease); }
.fund-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.fund-foot b { color: var(--g); font-weight: 700; }
.fund-card.clickable { cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.fund-card.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); border-color: var(--line); }
.fund-card.clickable:focus-visible { outline: 3px solid var(--g-hi); outline-offset: 2px; }
.fund-view { display: inline-block; margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--g); }
/* details pop-up */
.fund-pop h2 { margin: 6px 0 2px; }
.fund-phase { color: var(--muted); margin: 0 0 14px; }
.fund-total { background: var(--off); border: 1px solid var(--line-dark); border-radius: 14px; padding: 16px 18px; margin: 12px 0 18px; }
.fund-foot.top { margin: 0 0 8px; align-items: baseline; }
.fund-foot.top em { font-style: normal; }
.fund-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.fund-big b { font-size: 1.7rem; color: var(--text-dark); line-height: 1.1; }
.fund-big span { color: var(--muted); font-size: .9rem; }
.fund-big strong { margin-left: auto; color: var(--g); font-size: 1.1rem; }
.fund-det p { margin: 0 0 10px; line-height: 1.6; }
.fund-tiers-h { font-size: 1rem; margin: 18px 0 10px; color: var(--text-dark); }
.fund-tiers { display: grid; gap: 10px; }
.fund-tier { border: 1px solid var(--line-dark); border-radius: 12px; padding: 12px 14px; }
.fund-tier .fund-foot.top { flex-wrap: wrap; row-gap: 2px; }
.fund-tier .nm { color: var(--text-dark); font-weight: 600; white-space: nowrap; }
.fund-tier .fund-foot.top span { white-space: nowrap; }
.fund-tier .fund-foot.top span { font-size: .82rem; }
.fund-tier .fund-track { height: 6px; }
.fund-tier.earlier { background: var(--off); border-style: dashed; }
.fund-sum { display: flex; justify-content: space-between; padding: 10px 14px 0; border-top: 2px solid var(--line-dark); color: var(--text-dark); }

.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 18px; }
.hl-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 18px; background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--r); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.hl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); border-color: var(--line); }
.hl-card:focus-visible { outline: 3px solid var(--g-hi); outline-offset: 2px; }
.hl-ico, .hl-date { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-content: center; text-align: center; }
.hl-ico { background: var(--off); color: var(--g); }
.hl-ico svg { width: 26px; height: 26px; }
.hl-date { background: var(--g); color: #fff; line-height: 1; }
.hl-date b { font-size: 1.35rem; }
.hl-date small { font: 700 .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.hl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hl-body small { font: 700 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--g); }
.hl-body b { color: var(--text-dark); font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-body > span { font-size: .84rem; color: var(--muted); }
.hl-body em { font-style: normal; display: inline-block; white-space: nowrap; background: rgba(124, 194, 66, .18); color: var(--g-dd); font-weight: 600; padding: 1px 9px; border-radius: 999px; }
.hl-go { flex: none; color: var(--g); font-size: 1.4rem; line-height: 1; }

.js .hero-frame { opacity: 0; animation: rise 1s .1s var(--ease) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { position: relative; background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--line-dark); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--g-hi) 85%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; z-index: 2; pointer-events: none; animation: rot 3s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rot { to { --a: 360deg; } }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(30, 74, 26, .12), 0 0 24px rgba(124, 194, 66, .12); }
.card:hover::before { opacity: 1; }
.card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--off); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card .media img.def, .ev-img img.def { object-fit: contain; background: #FDFDFA; }
.card:hover .media img.def { transform: scale(1.03); }
.card:hover .media img { transform: scale(1.06); }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.18rem; line-height: 1.3; }
.card h3 a { color: inherit; }
.card.linked h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: relative; z-index: 3; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 .8rem var(--mono); color: var(--muted); letter-spacing: .02em; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--g); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--g-soft); border: 1px solid var(--line); color: var(--g); font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.count-pill { font: 500 .78rem var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.count-pill svg { width: 15px; height: 15px; }
.news-date { font: 600 .78rem var(--mono); color: var(--g); letter-spacing: .08em; text-transform: uppercase; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--line); border-radius: 16px; background: var(--white); grid-column: 1 / -1; margin: 0; }

/* ---------- news: text cards (no picture) ---------- */
.news-card { padding: 26px 24px 22px; min-height: 230px; background: linear-gradient(180deg, var(--white), var(--off)); }
.news-card .nc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.news-card .nc-top::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.news-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.news-card p { color: var(--muted); font-size: .96rem; }
.news-card .nc-more { margin-top: auto; padding-top: 16px; font: 600 .8rem var(--mono); color: var(--g); letter-spacing: .06em; }
.news-card .nc-more::after { content: " →"; transition: margin .3s var(--ease); }
.news-card:hover .nc-more::after { margin-left: 4px; }
.act-card { min-height: 0; }
/* ---------- activities: photo tiles (tap for details) ---------- */
/* one row: 5 tiles on a big screen (arrows if more), 3 on a tablet, 2 on a phone */
.act-row .slider-track { grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px; }
.act-row .act-tile { height: 100%; }
.act-tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.act-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); border-color: var(--line); }
.act-tile:focus-visible { outline: 3px solid var(--g-hi); outline-offset: 3px; }
.act-tile[hidden] { display: none; }
.at-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--off), #E3EFDA); }
.at-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.act-tile:hover .at-media img { transform: scale(1.06); }
.at-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--g); opacity: .55; }
.at-ph svg { width: 42px; height: 42px; }
.at-media em, .ev-media em { position: absolute; right: 10px; bottom: 10px; font: 700 .76rem var(--mono); font-style: normal; color: #fff; background: rgba(20, 35, 18, .72); padding: 3px 9px; border-radius: 999px; }
.at-foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px 16px; min-height: 64px; }
.at-foot i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--g-soft); display: grid; place-items: center; }
.at-foot i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--g); box-shadow: 0 0 10px rgba(124, 194, 66, .7); }
.at-foot b { font-size: 1rem; line-height: 1.3; color: var(--text-dark); }

/* ---------- events: cards in a sliding row (tap for details) ---------- */
.ev-card { cursor: pointer; }
.ev-card:focus-visible { outline: 3px solid var(--g-hi); outline-offset: 3px; }
.ev-media { position: relative; margin: -26px -24px 18px; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--off), #E3EFDA); }
.ev-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.ev-card:hover .ev-media img { transform: scale(1.05); }
.ev-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.ev-top h3, .ev-top h2 { margin: 0; }
.ev-badge { flex: none; width: 54px; height: 54px; border-radius: 12px; background: var(--g); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1; box-shadow: 0 8px 18px rgba(59, 138, 46, .25); }
.ev-badge b { font-size: 1.35rem; }
.ev-badge small { font: 700 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.ev-card .meta { margin-bottom: 8px; }

/* details pop-up (events + activities) */
.pop-cover { position: relative; margin: -6px 0 16px; }
.pop-cover button { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--off); aspect-ratio: 16 / 9; max-height: 340px; }
.pop-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-cover em { position: absolute; right: 12px; bottom: 12px; font: 700 .8rem var(--mono); font-style: normal; color: #fff; background: rgba(20, 35, 18, .75); padding: 4px 10px; border-radius: 999px; }
.post-pop h2 { margin: 8px 0 8px; }
.post-pop .meta { margin-bottom: 12px; }
.pop-text p { margin: 0 0 10px; line-height: 1.65; }
.act-card .foot { padding-top: 16px; }
.about-text:empty { display: none; }
.news-card.has-img .body { padding: 20px 22px 22px; }

/* ---------- news slider (Netflix-style row) ---------- */
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 10px 4px 16px; margin: -10px -4px -16px; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
.slider-track .card:hover { transform: translateY(-4px); }
.slide-btn { position: absolute; top: calc(50% - 24px); z-index: 4; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .96); color: var(--g); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(30, 74, 26, .12); transition: opacity .2s, transform .25s var(--ease), background .2s, color .2s; }
.slide-btn:hover { background: var(--g); color: #fff; transform: scale(1.06); }
.slide-btn svg { width: 22px; height: 22px; }
.slide-btn.prev { left: -22px; }
.slide-btn.next { right: -22px; }
.slide-btn[disabled] { opacity: 0; pointer-events: none; }
.dots { display: none; justify-content: center; gap: 8px; margin-top: 18px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: #C9D8BF; cursor: pointer; transition: width .25s, background .25s; }
.dots button[aria-current="true"] { width: 24px; background: var(--g); box-shadow: 0 0 8px rgba(124, 194, 66, .6); }

/* ---------- activities ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filters button { font: 600 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--text); cursor: pointer; transition: .25s var(--ease); }
.filters button:hover { border-color: var(--g); color: var(--g); }
.filters button[aria-pressed="true"] { background: var(--g); border-color: var(--g); color: #fff; box-shadow: 0 6px 16px rgba(59, 138, 46, .25); }

/* ---------- events (list) ---------- */
.ev-list { display: grid; gap: 14px; }
.ev { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--line-dark); border-radius: 16px; transition: box-shadow .35s, border-color .35s, transform .35s var(--ease); }
.ev:hover { border-color: var(--line); box-shadow: 0 16px 36px rgba(30, 74, 26, .10); transform: translateY(-2px); }
.ev-date { text-align: center; border-radius: 12px; background: var(--g); color: #fff; padding: 12px 6px; line-height: 1; box-shadow: 0 8px 18px rgba(59, 138, 46, .25); }
.ev-date b { display: block; font-size: 1.9rem; font-weight: 700; }
.ev-date small { display: block; margin-top: 6px; font: 600 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.ev-img { width: 132px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--off); }
.ev-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-info h3 { font-size: 1.15rem; margin: 0 0 6px; }
.ev-info p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.ev-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ---------- about ---------- */
.about-text { max-width: 860px; margin: 0 auto; font-size: 1.08rem; line-height: 1.85; color: var(--text); text-align: justify; text-justify: inter-word; hyphens: auto; }
.about-text p { white-space: pre-line; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 18px; align-content: start; }
.info { display: flex; gap: 14px; align-items: center; }
.info i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--g); }
.info i svg { width: 20px; height: 20px; }
.info b { display: block; font: 600 .72rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--g); }
.info span, .info a { color: var(--text-dark); word-break: break-word; white-space: pre-line; }
.info a:hover { color: var(--g); }
.panel { background: var(--white); border: 1px solid var(--line-dark); border-radius: 18px; padding: 28px; box-shadow: 0 16px 40px rgba(30, 74, 26, .06); }

/* ---------- forms (Kelab style labels) ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > label, .field > .lbl { font: 600 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--g); }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.input, .field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-dark); border-radius: 10px; background: var(--white); color: var(--text-dark); font-size: 1rem; outline: none; transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: 130px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(124, 194, 66, .2); }
.field input[readonly] { background: var(--off); color: var(--muted); }
.field small { color: var(--muted); font-size: .82rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.msg { padding: 12px 14px; border-radius: 10px; font-size: .95rem; margin: 0 0 16px; }
.msg.ok { background: var(--g-soft); border: 1px solid var(--line); color: var(--g-dd); }
.msg.err { background: #FDF0EF; border: 1px solid #EBC8C4; color: #8E2F29; }
.msg.info { background: var(--off); border: 1px solid var(--line-dark); color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 50px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; border-radius: 8px; width: 38px; height: 34px; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.pw-toggle:hover { background: var(--off); color: var(--g); }
.pw-toggle svg { width: 18px; height: 18px; }

/* ---------- page hero (inner pages), Kelab style, light ---------- */
.page-head { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 85% 0%, rgba(124, 194, 66, .20), transparent 60%), var(--off); padding: 56px 0 50px; border-bottom: 1px solid var(--line-dark); }
.page-head .crumb { font: 500 .8rem var(--mono); color: var(--muted); margin-bottom: 14px; letter-spacing: .06em; }
.page-head .crumb a { color: var(--g); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.page-head .lead { margin: 12px 0 0; white-space: pre-line; }
.accent { background: linear-gradient(90deg, var(--g), var(--g-hi), #A9DB7A, var(--g-hi), var(--g)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }
.js .page-head .wrap > * { opacity: 0; animation: rise .8s var(--ease) forwards; }
.js .page-head .wrap > *:nth-child(2) { animation-delay: .1s; }
.js .page-head .wrap > *:nth-child(3) { animation-delay: .2s; }

/* ---------- article ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article .media { margin: 0 0 28px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--off); box-shadow: 0 0 0 1px var(--line-dark), 0 24px 50px rgba(30, 74, 26, .10); }
.article .media img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 22px; }
.article .content { font-size: 1.08rem; line-height: 1.8; }
.article .content p { white-space: pre-line; margin-bottom: 18px; }
.back-link { display: inline-flex; gap: 8px; font: 600 .82rem var(--mono); color: var(--g); margin-bottom: 22px; }
.back-link:hover { text-decoration: underline; }

/* ---------- header Settings link ---------- */
#nav > a.nav-set { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border: 1.5px solid var(--line); border-radius: 999px; opacity: 1; color: var(--text-dark); font-weight: 600; }
#nav > a.nav-set::after { display: none; }
#nav > a.nav-set svg { width: 18px; height: 18px; color: var(--g); }
#nav > a.nav-set:hover, #nav > a.nav-set.active { border-color: var(--g); color: var(--g); background: var(--g-soft); }
#nav > a.nav-set.in { padding: 4px 14px 4px 4px; }
#nav > a.nav-set .avatar { width: 30px; height: 30px; font-size: .85rem; }

/* ---------- user menu ---------- */
.user-menu { position: relative; margin-left: -6px; }
.user-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); cursor: pointer; background: var(--white); border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 600; font-size: .92rem; color: var(--text-dark); }
.user-chip:hover { border-color: var(--g); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: #fff; font: 700 .9rem var(--sans); flex-shrink: 0; }
.avatar.staff { background: var(--g-hi); color: var(--text-dark); }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-drop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--white); border: 1px solid var(--line-dark); border-radius: 14px; box-shadow: 0 20px 44px rgba(30, 74, 26, .14); padding: 8px; display: none; z-index: 5; }
.user-menu.open .user-drop { display: block; }
.user-drop-head { padding: 8px 10px 12px; border-bottom: 1px solid var(--line-dark); margin-bottom: 6px; }
.user-drop-head b { display: block; color: var(--text-dark); }
.user-drop-head small { font: 500 .78rem var(--mono); color: var(--muted); }
.user-drop a, .user-drop button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; border: 0; background: none; cursor: pointer; color: var(--text-dark); font-weight: 500; font-size: .95rem; }
.user-drop a:hover, .user-drop button:hover { background: var(--off); color: var(--g); }
.role-pill { display: inline-block; font: 600 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--g-soft); color: var(--g); margin-left: 4px; vertical-align: middle; }
.role-pill.admin { background: var(--g); color: #fff; }

/* ---------- footer (centred, like Kelab) ---------- */
.footer { background: var(--off); text-align: center; padding: 56px 0 28px; border-top: 1px solid var(--line-dark); position: relative; margin-top: 0; }
.footer .fgrid { display: block; }
.footer .fbrand { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; color: var(--text-dark); margin-bottom: 22px; }
.footer .flogo { width: 80px; height: 80px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--off), 0 0 0 5px var(--g-hi), 0 0 26px rgba(124, 194, 66, .45); }
.footer .fname b { display: block; font-size: 1.15rem; color: var(--text-dark); }
.footer .fname span { font: 500 .78rem var(--mono); letter-spacing: .08em; color: var(--muted); }
/* social media icons */
.social { display: flex; justify-content: center; gap: 12px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--g); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), background .2s, color .2s; }
.social a svg { width: 21px; height: 21px; }
.social a:hover, .social a:focus-visible { background: var(--g); color: #fff; transform: translateY(-2px); }
.footer .fsocial { margin: -6px 0 24px; }
.footer nav { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; font-weight: 500; }
.footer nav a { color: var(--text); opacity: .85; transition: color .2s, opacity .2s; }
.footer nav a:hover { color: var(--g); opacity: 1; }
.footer .copy { border-top: 1px solid var(--line-dark); margin-top: 26px; padding-top: 20px; font-size: .88rem; color: var(--muted); }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(20, 35, 18, .35); backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal .sheet { width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--white); border-radius: 18px; border-top: 4px solid var(--g); box-shadow: 0 30px 70px rgba(20, 35, 18, .25); padding: 28px; }
.modal .sheet.wide { width: min(760px, 100%); }
.modal h2 { font-size: 1.4rem; margin-bottom: 10px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(calc(100% + 40px)); visibility: hidden; background: var(--text-dark); color: #fff; padding: 12px 18px; border-radius: 12px; font: 500 .9rem var(--mono); box-shadow: 0 16px 36px rgba(20, 35, 18, .3); z-index: 90; transition: transform .3s, visibility .3s; max-width: calc(100% - 32px); border-left: 3px solid var(--g-hi); }
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }
.toast.err { border-left-color: #E07A73; }
.demo-banner { background: var(--g-dd); color: #DDEBD2; text-align: center; font: 500 .78rem var(--mono); padding: 6px 12px; letter-spacing: .02em; }
.demo-banner a { color: var(--g-hi); font-weight: 600; }
.loading-card { text-align: center; padding: 40px; color: var(--muted); grid-column: 1 / -1; font-family: var(--mono); font-size: .9rem; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-frame, .js .page-head .wrap > * { opacity: 1; transform: none; filter: none; }
  html, .slider-track { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .menu-btn { display: flex; }
  #nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line-dark); box-shadow: 0 20px 40px rgba(30, 74, 26, .10); padding: 10px 20px 18px; display: none; }
  #nav.open { display: flex; }
  #nav > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  #nav > a:not(.btn)::after { display: none; }
  #nav .btn { margin-top: 12px; }
  #nav > a.nav-set { margin-top: 12px; justify-content: center; padding: 12px 16px; border-bottom: 1.5px solid var(--line); }
  #nav > a.nav-set.in { padding: 8px 16px; }
  .lang-btn { align-self: flex-start; margin: 12px 0 0; }
  .user-menu { margin: 12px 0 0; }
  .user-chip { width: 100%; }
  .user-drop { position: static; box-shadow: none; border: 0; padding: 6px 0 0; }
  .site-header .wrap { position: static; }
  .site-header .bar { position: relative; }
  .slider-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .ev { grid-template-columns: 72px 1fr; }
  .ev-act { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .slide-btn.prev { left: -8px; } .slide-btn.next { right: -8px; }
}
@media (max-width: 640px) {
  .sec { padding: 56px 0; }
  .bar { height: 68px; }
  .title { margin-bottom: 30px; }
  .lead.center { margin: -14px auto 28px; }
  .sec-banner { aspect-ratio: 5 / 2; margin-bottom: 26px; border-radius: 14px; }
  .sec-banner img { object-position: center 92%; }
  .grid3, .row2 { grid-template-columns: 1fr; }
  .logo-slot { width: 44px; height: 44px; }
  .brand-text b { font-size: 1rem; }
  .brand-text small { font-size: .76rem; }
  .hero { padding: 16px 0 36px; }
  /* mobile slider: one card at a time, arrows + dots underneath */
  .slider { padding-bottom: 56px; }
  .slider-track { grid-auto-columns: 100%; gap: 16px; }
  .slide-btn { top: auto; bottom: 0; width: 42px; height: 42px; box-shadow: none; }
  .slide-btn.prev { left: 0; } .slide-btn.next { right: 0; }
  .slide-btn[disabled] { opacity: .35; pointer-events: none; }
  .dots { display: flex; height: 42px; align-items: center; margin: -42px 56px 0; position: relative; z-index: 2; flex-wrap: wrap; }
  .panel { padding: 22px 18px; }
  .modal .sheet { padding: 22px 18px; }
  .page-head { padding: 40px 0 36px; }
  .about-text { text-align: left; }
}

/* =====================================================================
   CONTACT, ABOUT PHOTOS, GALLERY
   ===================================================================== */
/* school details row (home + contact page) */
.info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.info-strip .info { background: var(--white); border: 1px solid var(--line-dark); border-radius: 14px; padding: 16px 18px; }
.info-strip:empty { display: none; }
/* home page Contact Us card */
.contact-card { max-width: 980px; margin: 0 auto; background: var(--white); border: 1px solid var(--line-dark); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; }
.cc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cc-head img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.cc-head b { display: block; font-size: 1.2rem; color: var(--text-dark); }
.cc-head span { font: 500 .74rem var(--mono); letter-spacing: .08em; color: var(--muted); }
.contact-card .info-strip .info { background: var(--off); }
.cm-pv .contact-card { box-shadow: none; padding: 18px; }

/* contact categories: big clear cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 30px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; border-radius: 16px; border: 1.5px solid var(--line-dark); background: var(--white); cursor: pointer; font: 600 1.05rem var(--sans); color: var(--text-dark); text-align: center; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease), background .25s; }
.cat-card i { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--g-soft); color: var(--g); transition: background .25s, color .25s; }
.cat-card i svg { width: 28px; height: 28px; }
.cat-card:hover { border-color: var(--g); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 74, 26, .10); }
.cat-card[aria-selected="true"] { border-color: var(--g); background: var(--off); box-shadow: 0 0 0 3px rgba(124, 194, 66, .25); }
.cat-card[aria-selected="true"] i { background: var(--g); color: #fff; }
.cat-panel { scroll-margin-top: 100px; }
.cat-head { text-align: center; max-width: 720px; margin: 0 auto 24px; }
.cat-head h2 { font-size: 1.6rem; margin-bottom: 8px; }
.cat-head p { white-space: pre-line; margin: 0; }
.cform { max-width: 820px; margin: 0 auto; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; cursor: pointer; color: var(--text); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--g); flex-shrink: 0; }
.check span { font-weight: 500; }
.field > label.drop { font: 500 .92rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.cform > .btn { min-width: 180px; }
/* letter of interest look (like Kelab) */
.cform.letter { border-top: 5px solid var(--g); border-radius: 6px 6px 18px 18px; background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(59, 138, 46, .05) 31px 32px), #FCFDFB; }
.letter-head { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line); }
.letter-head img { width: 52px; height: 52px; border-radius: 50%; }
.letter-head b { display: block; font: 600 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--g); }
.letter-subject { font-weight: 700; color: var(--text-dark); margin-bottom: 18px; }
/* file / photo drop zone */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--line); border-radius: 14px; background: var(--off); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--g); background: var(--g-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 26px; height: 26px; color: var(--g); }
.drop.small { flex-direction: row; gap: 10px; padding: 14px 16px; font-size: .92rem; }
.drop b { color: var(--text-dark); }
.drop-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(30, 74, 26, .1); margin-bottom: 4px; }

/* staff directory */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.dir-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 24px 16px 18px; border: 1px solid var(--line-dark); border-radius: 16px; background: var(--white); transition: box-shadow .3s, transform .3s var(--ease); }
.dir-card:hover { box-shadow: 0 14px 30px rgba(30, 74, 26, .10); transform: translateY(-3px); }
.dir-card img, .dir-card .avatar.xl { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--g-hi); font-size: 2rem; }
.dir-card b { color: var(--text-dark); font-size: 1.05rem; }
.dir-card .pos { color: var(--g); font-weight: 600; font-size: .92rem; }
.dir-card .dept { font: 500 .74rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dir-links { display: flex; gap: 8px; margin-top: 10px; }
.dir-links a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--g); }
.dir-links a:hover { background: var(--g); color: #fff; }
.dir-links svg { width: 17px; height: 17px; }

/* about with photos */
.about-grid { display: grid; gap: 36px; align-items: start; }
.about-grid.has-media { grid-template-columns: 1fr 1fr; }
.about-grid .about-text { margin: 0; }
.about-media:empty { display: none; }

/* Facebook-style photo grid */
.gallery { display: grid; gap: 4px; border-radius: 14px; overflow: hidden; }
.gallery button { position: relative; padding: 0; border: 0; cursor: zoom-in; background: var(--off); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery em { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 35, 18, .55); color: #fff; font: 700 1.8rem var(--sans); font-style: normal; }
.gallery.g1 { grid-template-columns: 1fr; } .gallery.g1 button { aspect-ratio: 4 / 3; }
.gallery.g2 { grid-template-columns: 1fr 1fr; } .gallery.g2 button { aspect-ratio: 1; }
.gallery.g3 { grid-template-columns: 1fr 1fr; } .gallery.g3 button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } .gallery.g3 button { aspect-ratio: 1; }
.gallery.g4 { grid-template-columns: 1fr 1fr; } .gallery.g4 button { aspect-ratio: 1; }
.gallery.g5 { grid-template-columns: repeat(6, 1fr); } .gallery.g5 button { grid-column: span 2; aspect-ratio: 1; } .gallery.g5 button:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 4 / 3; }
.article .gallery { margin-top: 26px; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(12, 20, 10, .92); backdrop-filter: blur(6px); padding: 60px 16px; animation: fade .25s; }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; border-radius: 10px; }
.lightbox button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: var(--g); border-color: var(--g); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: calc(50% - 23px); } .lb-next { right: 16px; top: calc(50% - 23px); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #DDEBD2; font: 600 .82rem var(--mono); }

@media (max-width: 900px) {
  .about-grid.has-media { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { padding: 16px 10px; font-size: .95rem; }
  .cat-card i { width: 46px; height: 46px; }
  .dir-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dir-card img, .dir-card .avatar.xl { width: 72px; height: 72px; }
}

/* privacy notice */
.privacy { max-width: 860px; margin: 0 auto; padding: 36px; }
.privacy h2 { font-size: 1.15rem; margin: 26px 0 6px; }
.privacy h2:first-child { margin-top: 0; }
.privacy p { white-space: pre-line; color: var(--text); line-height: 1.75; }
.pdpa-box { border: 1px solid var(--line); border-radius: 12px; background: var(--off); padding: 14px 16px; margin: 4px 0 18px; font-size: .92rem; color: var(--muted); }
.pdpa-box p { margin: 0 0 10px; }
.pdpa-box a { font-weight: 600; }
.pdpa-box .check { margin: 0; color: var(--text-dark); }
@media (max-width: 640px) { .privacy { padding: 22px 18px; } }
.modal .sheet:focus { outline: none; }
@media (max-width: 1060px) { .act-row .slider-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 640px) { .act-row .slider-track { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; } .at-foot { padding: 11px 12px 13px; min-height: 54px; gap: 8px; } .at-foot b { font-size: .9rem; } .at-foot i { width: 18px; height: 18px; } .at-foot i::after { width: 8px; height: 8px; } }
