/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --brand-100: #ffeaf5;
  --brand: #ff4db0;
  --brand-600: #b02aa3;
  --brand-800: #7a1f6f;
  --nav-bg: #0b0830;
  --muted: #6c757d;
  --accent: #f7f6fb;
  --text-on-brand: #ffffff;
}

/* =========================================================
   BASE
   ========================================================= */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(180deg, #fbf9ff, #f3f0fb);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 3px solid rgba(176,42,163,0.25);
  outline-offset: 3px;
}

/* =========================================================
   TOP RIBBON + HEADER
   ========================================================= */
.top-ribbon {
  background: var(--brand-600);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1055;
  color: #fff;
  text-align: center;
  padding: .35rem 0;
  font-size: .95rem;
}
.top-ribbon a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.site-header {
  position: fixed;
  top: 26px;
  width: 100%;
  z-index: 1050;
  background: linear-gradient(180deg, rgba(11,8,48,0.98), rgba(11,8,48,0.95));
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

main#main {
  padding-top: 1.75rem;
  min-height: calc(100vh - 200px);
}

@media (max-width: 767px) {
  main#main { padding-top: 1rem; }
}

/* =========================================================
   BRANDING & NAV
   ========================================================= */
.brand-logo { height: 48px; }
.brand-text .h6 { color: #fff; font-weight: 700; }
.brand-text small { color: #D24780; }

.navbar-nav .nav-link { color: var(--brand-100); }
.navbar-nav .nav-link.active {
  color: #fff !important;
  font-weight: 600;
  border-bottom: 2px solid var(--brand);
}

.navbar-toggler { background-color: var(--brand-100) !important; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary,
.donate-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #fff !important;
  border: 0;
  font-weight: 600;
  border-radius: .45rem;
  box-shadow: 0 4px 12px rgba(255,77,176,0.35);
}

.btn-primary:hover,
.donate-primary:hover {
  background: var(--brand-600);
}

.btn-brand-outline {
  border: 2px solid rgba(255,77,176,0.55);
  color: var(--brand) !important;
  background: transparent;
  font-weight: 600;
}
.btn-brand-outline:hover {
  background: var(--brand);
  color: #fff !important;
}

.fab-donate {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 1050;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #fff;
  border-radius: 999px;
  padding: .6rem .9rem;
  font-weight: 700;
  text-decoration: none;
}

/* =========================================================
   CARDS (GLOBAL)
   ========================================================= */
.card-card {
  background: #ffffff;
  border-radius: .65rem;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 1rem;
  margin-bottom: 1rem;
  color: #222;
}

.card-card h3,
.card-card h4,
.card-card h5,
.card-card h6 {
  color: #111;
  font-weight: 700;
}

.card-card p,
.card-card .small,
.card-card ul li {
  color: #444;
  line-height: 1.35;
}

/* =========================================================
   HERO / CAROUSEL (HOME)
   ========================================================= */
.hero-carousel {
  margin-top: 1rem;
}

.hero-carousel .carousel-item {
  height: 58vh;
  min-height: 320px;
  max-height: 760px;
  overflow: hidden;
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel .carousel-caption {
  background: linear-gradient(90deg, rgba(6,4,30,0.78), rgba(6,4,30,0.34));
  padding: 1rem 1.1rem;
  border-radius: .5rem;
  max-width: 70%;
  color: #fff;
}

@media (max-width: 575px) {
  .hero-carousel .carousel-caption {
    max-width: 95%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
}

/* =========================================================
   RECENT FIELD WORK
   ========================================================= */
.work-card {
  background: #fff;
  border-radius: .6rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.work-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.work-card figcaption {
  padding: .55rem .6rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
  color: #222;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(6,4,30,0.08);
}


/* =========================================================
   EVENT HERO + EVENT CARDS
   ========================================================= */
.event-hero {
  position: relative;
  min-height: 240px;
  border-radius: .75rem;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-hero-overlay {
  background: rgba(11,8,48,0.65);
  padding: 2rem;
  border-radius: .5rem;
  color: #fff;
  text-align: center;
}

.event-card img {
  height: 200px;
  object-fit: cover;
  border-radius: .5rem .5rem 0 0;
}

.event-card .event-title {
  font-weight: 600;
  color: #111;
}

.event-card .event-meta {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.3;
}

.event-card .event-location {
  margin-bottom: 2px;
}

.event-card .event-date {
  opacity: 0.9;
}

/* Short description */
.event-card .event-summary {
  color: #444;
  line-height: 1.4;
}
.event-meta {
  font-size: .85rem;
  color: #666;
}

/* =========================================================
   ABOUT PAGE (FULLY RESTORED)
   ========================================================= */
.about-hero {
  background-image: url('../img/events/event-2025-11-14/event-2025-11-14 (8).jpeg');
  background-size: cover;
  background-position: center;
  padding: 3rem 1rem;
  border-radius: .75rem;
  margin-bottom: 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11,8,48,0.62);
  z-index: 1;
}
.about-hero h1,
.about-hero .lead {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}

.about-logo-wrap { position: relative; z-index: 3; }
.about-logo {
  max-width: 140px;
  width: 40%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
  border-radius: 6px;
}

/* =========================================================
   LIGHTBOX (FIXED – NO AUTO DISPLAY)
   ========================================================= */
.lightbox {
  display: none;               /* 🔒 CRITICAL */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lb-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-height: 90vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.6);
}

.lb-prev,
.lb-next,
.lb-close {
  position: absolute;
  background: rgba(0,0,0,0.45);
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 14px; right: 14px; font-size: 40px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg, rgba(11,8,48,0.98), rgba(11,8,48,0.95));
  color: rgba(255,255,255,0.92);
}
.site-footer a { color: #e9ecef; }

/* =========================================================
   CURSORS
   ========================================================= */
.event-gallery img,
.gallery-item img,
.work-card img,
.media-thumb {
  cursor: pointer;
}

.media-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   MEDIA CARDS
   ========================================================= */

.media-card {
  background: #fff;
  border-radius: .65rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 20px rgba(6,4,30,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(6,4,30,0.10);
}

/* Thumbnail wrapper — fixed height, centered content */
.media-card .gallery-item {
  height: 180px;                     /* 👈 controls thumbnail height */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f6;
  overflow: hidden;
}

/* Image — show FULL image, no crop */
.media-card img,
.media-card .media-thumb {
  max-height: 100%;                  /* fit to container height */
  max-width: 100%;                   /* width auto */
  width: auto;
  height: auto;
  object-fit: contain;               /* 👈 KEY CHANGE */
  display: block;
  cursor: pointer;
  transition: transform .18s ease;
}

/* Optional subtle zoom on hover (nice touch) */
.media-card:hover img {
  transform: scale(1.02);
}

/* Meta section */
.media-card .media-meta {
  padding: .65rem .75rem;
}

.media-card .media-title {
  font-weight: 600;
  color: #111;
  font-size: .95rem;
  margin-bottom: .15rem;
}

.media-card .media-date {
  font-size: .82rem;
  color: #666;
}


/* =========================================================
   SINGLE EVENT – MEDIA THUMBNAILS (SMALLER)
   ========================================================= */

.event-media .media-card img {
  height: 160px;        /* 👈 smaller than gallery */
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .event-media .media-card img {
    height: 140px;
  }
}

@media (max-width: 420px) {
  .event-media .media-card img {
    height: 120px;
  }
}


/* =========================
   Event & Gallery Grid
   ========================= */

.gallery-grid {
  display: grid;
  gap: 0.75rem;
}

/* Larger screens */
@media (min-width: 1281px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Large screens (desktop) */
@media (min-width: 992px) and (max-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium screens (tablets) */
@media (min-width: 768px) and (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens (mobile) */
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Image styling (important) */
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}
