/* ===============================
   ROOT VARIABLES (COLOR SYSTEM)
================================ */
:root {
  --purple: #5a2a82;
  --red: #a1282f;
  --blue: #1f4f8c;
  --white: #ffffff;
  --light-gray: #f5f5f7;
  --dark-gray: #333333;
}

/* ===============================
   GLOBAL RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  line-height: 1.6;
}

/* ===============================
   HEADER & NAVIGATION
================================ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--purple);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 55px;
  width: auto;
}

/* NAV */
.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  border-bottom: 2px solid var(--purple);
  color: var(--purple);
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===============================
   MAIN CONTENT
================================ */
main {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1rem;
}

.card {
  background: var(--white);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.card h1,
.card h2 {
  color: var(--purple);
  margin-bottom: 0.8rem;
}

.card p,
.card li {
  font-size: 0.95rem;
}

.card ul {
  margin-left: 1.2rem;
}

/* ===============================
   GALLERY GRID
================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ===============================
   LIGHTBOX
================================ */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
}

#lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
}

/* ===============================
   DONATION / INFO BOX
================================ */
.donation-box {
  background: var(--light-gray);
  padding: 1rem;
  border-left: 4px solid var(--blue);
  margin: 1rem 0;
}

/* ===============================
   FOOTER
================================ */
footer {
  background: var(--purple);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

/* ===============================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    color: var(--purple);
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    flex-direction: column;
    width: 220px;
    padding: 1rem;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    padding: 0.6rem 0;
  }
}
