/* Consolatha Lupembe — cleaner overlays on existing style.css */
:root {
  --cl-green: #28a745;
  --cl-green-deep: #1e7e34;
  --cl-green-soft: #e8f5e9;
  --cl-text: #1b1b1b;
  --cl-muted: #555;
}

body { color: var(--cl-text); }

#header #logo { font-weight: 700; }

.cl-page-hero {
  background: linear-gradient(120deg, #eef2f6, #e8f5e9);
  padding: 2.5rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.cl-page-hero h1 {
  margin: 0;
  font-size: 1.85rem;
  color: var(--cl-green-deep);
}
.cl-page-hero p { color: var(--cl-muted); margin: .5rem 0 0; }

.cl-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}
.cl-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.cl-card h2, .cl-card h3 { color: var(--cl-green-deep); margin-top: 0; }
.cl-card p, .cl-card li { line-height: 1.7; color: var(--cl-muted); }
.cl-two-col {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .cl-two-col { grid-template-columns: 1fr; }
}
.cl-two-col img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.cl-btn {
  display: inline-block;
  background: var(--cl-green);
  color: #fff !important;
  text-decoration: none;
  padding: .65rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.cl-btn:hover { background: var(--cl-green-deep); }
.cl-btn-outline {
  background: transparent;
  color: var(--cl-green-deep) !important;
  border: 2px solid var(--cl-green);
}
.cl-flash-ok { background: #d1fae5; color: #065f46; padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.cl-flash-err { background: #fee2e2; color: #991b1b; padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }

#footer {
  background: #2c5e1a;
  color: #fff;
  padding: 2rem 1rem 1.5rem;
}
#footer a { color: #e8f5e9; }
#footer .copy { text-align: center; opacity: .9; margin-top: 1.5rem; font-size: .9rem; }
.cl-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer li { margin: .35rem 0; }

/* Gallery — school-nice soft green (#28a745) */
.cl-gallery-hero .cl-gallery-count {
  display: inline-block;
  margin-top: .75rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: rgba(40, 167, 69, .12);
  color: var(--cl-green-deep);
  font-weight: 600;
  font-size: .95rem;
}
.cl-gallery-page { max-width: 1200px; padding-top: .5rem; }
.cl-gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0 0 1.35rem;
  align-items: center;
  justify-content: center;
}
.cl-filter-chip {
  appearance: none;
  border: 1px solid #d4e8d8;
  background: #fff;
  color: var(--cl-green-deep);
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.cl-filter-chip:hover {
  border-color: var(--cl-green);
  box-shadow: 0 2px 8px rgba(40, 167, 69, .12);
}
.cl-filter-chip.is-active {
  background: var(--cl-green);
  border-color: var(--cl-green);
  color: #fff;
}
.cl-chip-n {
  display: inline-block;
  margin-left: .25rem;
  opacity: .85;
  font-weight: 500;
  font-size: .85em;
}
.cl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.cl-gallery-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.07);
  border: 1px solid rgba(40, 167, 69, .08);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
  outline: none;
}
.cl-gallery-item:hover,
.cl-gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(30, 126, 52, .14);
  border-color: rgba(40, 167, 69, .28);
}
.cl-gallery-media {
  position: relative;
  background: #f3f6f4;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cl-gallery-media img,
.cl-gallery-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cl-video-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.25));
}
.cl-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,.62);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.cl-play-icon::after {
  content: '';
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.cl-type-tag {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: rgba(40, 167, 69, .92);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .22rem .55rem;
  border-radius: 6px;
}
.cl-gallery-cap {
  padding: .85rem 1rem 1rem;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 3.2rem;
}
.cl-gallery-cap h3 {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  color: var(--cl-green-deep);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.cl-gallery-empty-filter {
  text-align: center;
  color: var(--cl-muted);
  padding: 2rem 1rem;
}
.cl-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 12, .92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  gap: .5rem;
}
.cl-lightbox.active { display: flex; }
.cl-lightbox-inner {
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cl-lightbox-inner img,
.cl-lightbox-inner video {
  max-width: min(92vw, 1100px);
  max-height: 78vh;
  display: block;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.cl-lightbox-caption {
  color: #e8f5e9;
  text-align: center;
  margin: .75rem 0 0;
  font-size: .95rem;
  max-width: 40rem;
}
.cl-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #1e7e34;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  z-index: 2;
}
.cl-lightbox-close:hover { background: var(--cl-green-soft); }
.cl-lightbox-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: var(--cl-green-deep);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: background .2s ease, transform .2s ease;
}
.cl-lightbox-nav:hover {
  background: #fff;
  transform: scale(1.05);
}
@media (max-width: 640px) {
  .cl-lightbox-nav { width: 36px; height: 36px; font-size: 1.4rem; }
  .cl-lightbox-close { top: -8px; right: 0; }
  .cl-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .85rem; }
}

/* Contact form */
.cl-form label { display: block; font-weight: 600; margin: .6rem 0 .3rem; }
.cl-form input, .cl-form textarea, .cl-form select {
  width: 100%;
  box-sizing: border-box;
  padding: .65rem .75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
}
.cl-form textarea { min-height: 140px; resize: vertical; }
.cl-contact-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }

/* News */
.cl-news-item { margin-bottom: 1.5rem; }
.cl-news-item .meta { color: var(--cl-muted); font-size: .9rem; }
.cl-news-item img { max-width: 100%; border-radius: 10px; margin: .75rem 0; }

/* === CL SITE NAV REDESIGN === */
/* Neutralize broken legacy #menu split layout from style.css */
#header.cl-site-header,
.cl-site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  height: auto !important;
  min-height: 132px;
  padding: 0 !important;
  margin: 0 !important;
  /* Legacy style.css sets #header { overflow:hidden } under 1220px — that clips the mobile dropdown */
  overflow: visible !important;
}
.cl-site-header .container,
.cl-site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  height: auto !important;
  overflow: visible !important;
}
.cl-site-logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: #1e7e34 !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex: 0 0 auto;
  float: none !important;
  position: static !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  text-indent: 0 !important;
}
.cl-site-nav {
  flex: 1 1 auto;
  display: flex !important;
  justify-content: flex-end;
  position: static !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
}
.cl-site-nav__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.35rem;
  float: none !important;
  width: auto !important;
  position: static !important;
}
.cl-site-nav__list li {
  float: none !important;
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  width: auto !important;
}
.cl-site-nav__list a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  color: #1b1b1b !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
  line-height: 1.2;
  background: transparent !important;
}
.cl-site-nav__list a:hover,
.cl-site-nav__list li.is-active > a {
  color: #1e7e34 !important;
  background: #e8f5e9 !important;
}
.cl-site-nav__portal a {
  background: #28a745 !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.45rem 0.95rem !important;
}
.cl-site-nav__portal a:hover {
  background: #1e7e34 !important;
  color: #fff !important;
}
.cl-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.cl-nav-toggle span {
  display: block;
  height: 2px;
  background: #1b1b1b;
  border-radius: 2px;
}
/* Hide legacy menu-trigger if any leftover */
.cl-site-header .menu-trigger,
#header .menu-trigger { display: none !important; }

@media (max-width: 980px) {
  .cl-nav-toggle {
    display: flex !important;
    position: relative;
    z-index: 30;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .cl-site-nav {
    display: none !important;
    position: absolute !important;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    padding: 0.5rem 1rem 1rem;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cl-site-nav.is-open { display: block !important; }
  .cl-site-nav__list {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.25rem;
  }
  .cl-site-nav__list li {
    display: block !important;
    width: 100% !important;
  }
  .cl-site-nav__list a {
    display: block;
    padding: 0.75rem 0.85rem;
  }
  .cl-site-nav__portal a { text-align: center; }
  body.cl-nav-open { overflow: hidden; }
}

/* School logo in site header */
.cl-site-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  background: none !important;
  text-indent: 0 !important;
  width: auto !important;
  height: auto !important;
  float: none !important;
}
.cl-school-logo {
  display: block;
  height: 120px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.cl-site-logo-text {
  font-weight: 800;
  font-size: 1rem;
  color: #1e7e34 !important;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .cl-site-logo-text { display: none; }
  .cl-school-logo { height: 72px; max-width: 140px; }
}
