:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --card:#ffffff;
  --border:#e2e8f0;
  --accent:#2563eb;
  --accent-2:#059669;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,'Noto Sans',sans-serif;color:var(--text);background:var(--bg)}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:20px}

/* Header / Nav */
header{position:sticky;top:0;background:#ffffffeb;backdrop-filter:blur(8px);border-bottom:1px solid var(--border);z-index:50}
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:12px}
.brand img{width:140px;height:auto}
#nav-open{display:none}
.mobile-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--border);border-radius:10px;background:#f8fafc}
.mobile-toggle svg{width:22px;height:22px}
.menu{display:none;flex-direction:column;gap:10px;position:absolute;left:0;right:0;top:62px;background:#ffffff;border-bottom:1px solid var(--border);padding:12px 20px}
.menu a{padding:10px 12px;border-radius:10px}
.menu a.active,.menu a:hover{background:#f1f5f9}
#nav-open:checked ~ nav .menu{display:flex}
@media(min-width:900px){
  .mobile-toggle{display:none}
  .menu{display:flex !important;position:static;flex-direction:row;gap:16px;border:0;padding:0;background:transparent}
}

/* Hero */
.hero{display:grid;grid-template-columns:1fr;gap:18px;align-items:center;padding:30px 0}
.hero h1{font-size:32px;line-height:1.2;margin:0 0 10px}
.hero p{color:var(--muted);font-size:16px;margin:0}
@media(min-width:900px){ .hero{grid-template-columns:1.1fr .9fr;padding:44px 0} .hero h1{font-size:42px} .hero p{font-size:18px} }
.hero-image .card{padding:0;border-radius:16px;border:1px solid var(--border);overflow:hidden}
.hero-image img{width:100%;height:auto;}

/* Cards / Sections / Grid */
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:18px}
.grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:900px){.grid{grid-template-columns:repeat(3,1fr);gap:20px}}
.section{padding:22px 0}
h2{font-size:24px;margin:22px 0 10px}
@media(min-width:900px){h2{font-size:28px}}
h3{font-size:18px;margin:16px 0 8px}
.muted{color:var(--muted)}
.kicker{letter-spacing:.12em;text-transform:uppercase;color:var(--accent-2);font-size:12px}
.badge{display:inline-block;padding:6px 8px;border:1px solid var(--border);border-radius:999px;font-size:12px;color:var(--muted)}
.banner{display:flex;align-items:center;gap:12px;padding:12px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;flex-wrap:wrap}
.btn{display:inline-block;padding:12px 16px;border-radius:12px;background:var(--accent);color:#fff;font-weight:600;border:0}

/* Programs */
.program-card .thumb-wrap{aspect-ratio:16/9;overflow:hidden;border-radius:14px;border:1px solid var(--border);background:#f8fafc;margin-bottom:12px}
.program-card .program-thumb{width:100%;height:100%;object-fit:cover}

/* About gallery */
.about-gallery .gallery-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:700px){.about-gallery .gallery-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.about-gallery .gallery-grid{grid-template-columns:repeat(3,1fr)}}
.about-figure{padding:0;border-radius:16px;border:1px solid var(--border);overflow:hidden}
.about-figure .media{aspect-ratio:16/9;overflow:hidden}
.about-figure img{width:100%;height:100%;object-fit:cover}
.about-figure .caption{padding:12px 14px;color:var(--muted);font-size:14px}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:900px){
  .contact-grid{grid-template-columns: minmax(320px, 520px) minmax(320px, 520px);align-items:start}
}
form input,form textarea{width:100%;background:#ffffff;border:1px solid var(--border);border-radius:12px;color:var(--text);padding:12px;margin:8px 0}
form textarea{resize:vertical}
form button{border:0}
.map-embed{position:relative;width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;border:1px solid var(--border);background:#f8fafc}
.map-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}




/* === Footer (exact 4cm height, 3 columns) === */
footer{
  margin-top:12px;
  height:4cm;
  padding:8px 20px;
  border-top:1px solid var(--border);
  background:#ffffff;
  box-sizing:border-box;
}
footer .container{
  height:100%;
  display:grid;
  grid-template-rows:1fr;
  align-items:start;
}
footer .cols{
  height:100%;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  column-gap:24px;
}
/* Column 1 */
footer .col-brand{display:flex;flex-direction:column;min-width:220px}
footer .footer-brand{display:flex;align-items:center;gap:10px}
footer .footer-brand img{width:42px;height:auto;border-radius:8px;border:1px solid var(--border);background:#fff}
footer .brand-text strong{font-size:16px}
footer .brand-text .muted{font-size:13px}
.foot-desc{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
  margin-top:6px;
  max-width:60ch;
  display:-webkit-box;
  -webkit-line-clamp:2;       /* clamp to 2 lines to fit in 4cm */
  -webkit-box-orient:vertical;
  overflow:hidden;
}
footer .copyright{
  margin-top:auto;
  font-size:12px;
  color:var(--muted);
}

/* Column 2 */
.col-pages h3{margin:0 0 6px 0;font-size:15px}
.col-pages a{display:block;font-size:14px;line-height:1.35;margin:1px 0}

/* Column 3: inline contact rows */
.col-contact h3{margin:0 0 6px 0;font-size:15px}
.col-contact .row{font-size:13px;line-height:1.35;margin:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.col-contact .label{color:var(--muted);font-weight:600;margin-right:6px}
footer .badge{display:none} /* hide previous pill style in footer */


/* ==== Mobile footer overrides (stack, wrap, auto height) ==== */
@media (max-width: 700px){
  footer{height:auto !important;padding:12px 16px !important}
  footer .container{height:auto;display:block}
  footer .cols{display:grid;grid-template-columns:1fr;row-gap:10px;column-gap:0}
  .foot-desc{-webkit-line-clamp:3;font-size:13px;line-height:1.45}
  .col-contact .row{white-space:normal;overflow:visible;text-overflow:clip}
  footer .copyright{margin-top:8px;text-align:left}
}
