:root{
  --green-dark:#0b3d2e;
  --green-mid:#0f5132;
  --gold:#c9a227;

  --text-dark:#0b2e1f;
  --text-light:#f5f7f4;
  --line:rgba(0,0,0,.10);

  --bg: linear-gradient(180deg,#d3fcd5 0%,#bef8dd 100%);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(201,162,39,.20), transparent),
    var(--bg);
  color:var(--text-dark);
}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:28px 18px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0}
.brand{display:flex;flex-direction:column;line-height:1.1}
.brand b{font-size:18px;color:var(--text-dark)}
.brand span{font-size:12px;color:#1f4d36}

.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 16px;border-radius:14px;
  border:1px solid rgba(201,162,39,.35);
  background:linear-gradient(180deg, rgba(201,162,39,.25), rgba(201,162,39,.12));
  color:var(--text-dark);
  font-weight:600;
  transition:all .2s ease;
}
.btn:hover{background:linear-gradient(180deg, rgba(201,162,39,.35), rgba(201,162,39,.18));transform:translateY(-1px)}

.hero{
  position:relative;
  padding:90px 20px 60px;
  min-height:420px;
  background:
    linear-gradient(rgba(11,61,46,.30), rgba(11,61,46,.45)),
    url("/assets/images/school-front.webp") center/cover no-repeat;
  border-radius:16px;
}
.hero::before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(120deg, rgba(201,162,39,.14), rgba(201,162,39,.03));
  pointer-events:none;
}
.hero>*{position:relative;z-index:1}
.badge{
  display:inline-flex;align-items:center;
  padding:6px 12px;border-radius:999px;
  font-size:12px;font-weight:700;
  color:#1f1300;
  background:linear-gradient(180deg,#e6c55a,#c9a227);
}
.hero h1{font-size:36px;margin:10px 0 12px;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.hero p{margin:0;max-width:75ch;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.45)}

.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px;margin-top:26px}

.card{
  grid-column:span 12;
  background:rgba(2,97,53,.92);
  border-radius:18px;
  padding:20px;
  color:var(--text-light);
}
.card h3{margin:0 0 8px;font-size:18px;color:#fff}
.card p{margin:0;color:#e5f5ec}
.card .actions{margin-top:14px;display:flex;flex-wrap:wrap;gap:10px}
.card .btn{color:#fff}

.footer{
  margin-top:36px;padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--text-dark);
  font-size:13px;
  text-align:center;
}

@media (min-width: 820px){
  .hero{padding:140px 28px 90px;min-height:520px}
  .hero h1{font-size:44px}
  .card.half{grid-column:span 6}
}
@media (max-width: 768px){
  .hero{padding:60px 18px 40px;background-position:center top}
}
.actions-buttons{display:flex;gap:10px;flex-wrap:wrap}
.upload-modal{display:none;margin-top:16px;padding:16px;background:rgba(255,255,255,.85);border-radius:14px;border:1px solid rgba(0,0,0,.08);box-shadow:0 14px 28px rgba(0,0,0,.18)}
.upload-modal__header{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.compact-input{width:120px}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.gallery-feature{
  width:100%;
  margin:12px 0 10px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 16px 30px rgba(0,0,0,.22);
}
.gallery-feature img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}

@media (min-width: 900px){
  .gallery-feature img{
    height:320px;
  }
}

/* ===== Gallery Carousel ===== */
.gallery-carousel { margin-top: 14px; }

.gallery-strip-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.12);
}

.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex: 0 0 auto;
  width: 220px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-thumb:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

.gallery-navbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid rgba(201,162,39,.45);
  background: rgba(0,0,0,.28);
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.gallery-navbtn:hover { background: rgba(0,0,0,.38); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-dots {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}
.gallery-dots button {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,39,.55);
  background: rgba(255,255,255,.18);
  cursor: pointer;
}
.gallery-dots button.active {
  background: linear-gradient(180deg,#e6c55a,#c9a227);
}

/* ===== Lightbox ===== */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#lightbox.open { display: flex; }

#lightboxImg {
  max-width: min(92vw, 1200px);
  max-height: 85vh;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid rgba(201,162,39,.55);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid rgba(201,162,39,.55);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
}

/* ===== Donor Wall ===== */
.donor-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:12px;
  margin-top:12px;
}
.donor-tile{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  padding:12px;
  color:#f7fff8;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.donor-note{margin-top:6px;font-size:14px;color:#e5f5ec}
.tier-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  color:#1f1300;
  background:linear-gradient(180deg,#e6c55a,#c9a227);
  border:1px solid rgba(0,0,0,.08);
}

.card-thumb{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 12px 24px rgba(0,0,0,.18);
}

.steam-hero{
  background:
    linear-gradient(rgba(11,61,46,.30), rgba(11,61,46,.45)),
    url("/assets/images/stemlab.webp") center/cover no-repeat;
}
