/* ===== ESSF v1.1 — force GitHub Pages rebuild ===== */
/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --saffron: #FF6B00;
  --green:   #138808;
  --navy:    #1a2a4a;
  --text:    #1a1a1a;
  --muted:   #555;
  --bg-light:#f9f7f4;
  --white:   #fff;
  --radius:  6px;
  --gap:     1.5rem;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a   { color: var(--saffron); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAV ===== */
.nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
}

/* circular emblem watermark — right side of nav, very faint */
.nav::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 90px; height: 90px;
  background: url('../assets/logos/logo.png') no-repeat center / contain;
  opacity: 0.09;
  pointer-events: none;
}

.nav-inner {
  max-width: 1100px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem;
  min-height: 70px; /* taller nav so ek1logo renders bigger */
}
.nav-logo { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; }
.nav-logo img { height: 58px; width: auto; } /* up from 46px */
.nav-logo span {
  color: var(--white); font-size: 1rem; font-weight: bold;
  line-height: 1.2; display: none;
}
.nav-links {
  list-style: none; display: flex; gap: .25rem;
}
.nav-links a {
  color: #ddd; padding: .5rem .8rem; border-radius: var(--radius);
  font-family: Arial, sans-serif; font-size: .9rem;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--saffron); color: var(--white); text-decoration: none;
}

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .75rem; min-width: 44px; min-height: 44px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0; border-radius: 2px;
  transition: .3s;
}

/* ===== HERO SLIDER ===== */
.hero { position: relative; overflow: hidden; background: var(--navy); padding: 0 !important; }
.hero-slides { display: flex; transition: transform .6s ease; cursor: grab; user-select: none; }
.hero-slides:active { cursor: grabbing; }
.hero-slide {
  min-width: 100%; position: relative;
  height: 400px;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; opacity: .7;
}
.hero-slide .caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 1rem 2rem;
  color: var(--white);
}
.hero-slide .caption h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  margin-bottom: .5rem;
}
.hero-slide .caption p {
  font-size: clamp(.9rem, 2vw, 1.15rem);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  max-width: 600px;
}

/* hero — no photos placeholder */
.hero-placeholder {
  height: 380px; background: linear-gradient(135deg, var(--navy) 0%, #2c4a7c 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  color: var(--white);
}
.hero-placeholder h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .6rem;
}
.hero-placeholder p { font-size: 1.1rem; opacity: .85; max-width: 580px; }

/* slider controls */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.slider-btn:hover { background: rgba(0,0,0,.7); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }
.slider-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem;
}
.slider-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer; transition: background .3s;
}
.slider-dots span.active { background: var(--saffron); }

/* ===== TAGLINE STRIP ===== */
.tagline-strip {
  background: #f0ece6;
  color: #1a2a4a;
  text-align: center;
  padding: .65rem 1rem;
  font-family: Arial, sans-serif;
  font-size: .82rem;
  letter-spacing: .03em;
  border-top: 2px solid #FF6B00;
  border-bottom: 1px solid #d8d0c8;
}

/* ===== SECTIONS ===== */
section { padding: 4rem 1.25rem; }
section:nth-child(even) { background: var(--bg-light); }

.container { max-width: 1100px; margin: auto; }

.section-title {
  text-align: center; margin-bottom: 2.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
}
.section-title::after {
  content: ''; display: block; margin: .5rem auto 0;
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--saffron), var(--green));
  border-radius: 2px;
}

/* ===== WHAT WE DO ===== */
.mission-text {
  max-width: 780px; margin: 0 auto 2rem;
  text-align: center; font-size: 1.1rem; color: var(--muted);
}
.since-badge {
  display: inline-block; background: var(--navy); color: #fff;
  font-family: Arial, sans-serif; font-size: .8rem;
  padding: .25rem .75rem; border-radius: 20px; margin-bottom: 1rem;
}

/* ===== ACTIVITIES CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 1.75rem 1.5rem; text-align: center;
  border-top: 4px solid var(--saffron);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card-icon { font-size: 2.4rem; margin-bottom: .75rem; line-height: 1; }
.card h3 { color: var(--navy); margin-bottom: .5rem; font-size: 1.05rem; }
.card p  { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; cursor: zoom-in; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item a {
  display: block; height: 100%;
  /* placeholder background when no image */
  background: linear-gradient(135deg, #dde4f0 0%, #c8d5e8 100%);
}
.gallery-item .overlay {
  position: absolute; inset: 0; background: rgba(26,42,74,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  color: #fff; font-family: Arial, sans-serif; font-size: .85rem;
  pointer-events: none;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item.gallery-hidden { display: none; }

.gallery-show-more {
  display: block; margin: 1.25rem auto 0;
  background: var(--navy); color: #fff;
  border: none; border-radius: var(--radius);
  padding: .6rem 1.75rem;
  font-family: Arial, sans-serif; font-size: .9rem;
  cursor: pointer; transition: background .2s;
}
.gallery-show-more:hover { background: var(--saffron); }

/* ===== GALLERY LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 14, 28, .92);
  padding: 4.5rem 1.25rem 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 8rem);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
}
.lightbox-caption {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: .9rem;
  color: rgba(255,255,255,.86);
  font-family: Arial, sans-serif; font-size: .9rem;
  text-align: center;
}
.lightbox-button {
  position: absolute;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-button:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ===== SOCIAL ACTIVITY ===== */
.social-items { display: flex; flex-direction: column; gap: 1.25rem; max-width: 820px; margin: auto; }
.social-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.07); padding: 1.25rem;
}
.social-item .icon {
  font-size: 1.8rem; flex-shrink: 0; line-height: 1;
  width: 48px; text-align: center;
}
.social-item p { font-size: .97rem; color: var(--text); }
.social-item p strong { color: var(--navy); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem; max-width: 780px; margin: auto;
}
.contact-item { text-align: center; }
.contact-item .icon { font-size: 2rem; margin-bottom: .5rem; }
.contact-item h3 { color: var(--navy); font-size: 1rem; margin-bottom: .3rem; }
.contact-item p, .contact-item a { font-size: .97rem; color: var(--muted); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy); color: #aaa;
  text-align: center; padding: 1.5rem 1rem;
  font-family: Arial, sans-serif; font-size: .85rem;
}
footer span { color: var(--saffron); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2c4a7c 100%);
  color: var(--white); text-align: center;
  padding: 3rem 1.25rem;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .4rem; }
.page-hero p  { opacity: .8; font-size: 1rem; }

/* ===== RESPONSIVE ===== */

/* tablet (iPad, small laptops) */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; width: 100%; }
  .nav-links.open {
    display: flex; position: fixed; top: 70px; left: 0; width: 100%;
    background: var(--navy); padding: .5rem 1rem 1rem; gap: 0;
    z-index: 500;
  }
  .nav-links a { display: block; padding: .6rem .8rem; }
  .nav-toggle { display: block; }
  .nav { position: relative; }

  .nav::after { display: none; } /* hide watermark — it crowds the hamburger */
  .nav-logo img { height: 44px; max-width: 65%; }

  .hero-slide { height: 340px; }
  .hero-placeholder { height: 320px; }
}

/* mobile */
@media (max-width: 480px) {
  .nav-logo img { height: 36px; max-width: 72%; }

  .hero-slide { height: 260px; }
  .hero-placeholder { height: 240px; }
  section { padding: 2.5rem 1rem; }
}
