/* ===========================================================
   IKCC Website - Shared Styles
   Theme: warm cream background, deep teal + gold accents
   =========================================================== */

:root {
  /* Colors */
  --color-bg: #f7f3ea;
  --color-bg-alt: #efe8d8;
  --color-cream: #fdfbf6;
  --color-teal: #1b4249;
  --color-teal-dark: #102e33;
  --color-gold: #c9a24b;
  --color-gold-dark: #b08e3f;
  --color-slate: #8aa0a6;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-border: #e3dac8;
  --color-white: #ffffff;

  /* Typography */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --max-width: 1280px;
  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(27, 66, 73, 0.08);
  --shadow-md: 0 4px 16px rgba(27, 66, 73, 0.12);
  --transition: 0.2s ease-in-out;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-teal);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 36px 0;
}

.text-center {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-teal-dark);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.btn-gold:hover {
  background-color: var(--color-gold-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}

.btn-outline:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
}

/* ---------- Header / Nav ---------- */
.site-header {
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 56px;
  width: auto;
}

.logo .logo-text .name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.logo .logo-text .subname {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-gold-dark);
  font-weight: 700;
}

.logo .logo-text .city {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--color-text-muted);
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-teal);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-gold-dark);
  border-bottom-color: var(--color-gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-teal);
  cursor: pointer;
}

/* ---------- Hero Carousel ---------- */
.hero {
  position: relative;
  background-color: var(--color-teal-dark);
  height: clamp(280px, 50vw, 600px);
  overflow: hidden;
}

/* Slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 46, 51, 0.62), rgba(16, 46, 51, 0.1));
  display: flex;
  align-items: flex-end;
  z-index: 2;
}

.hero-content {
  color: #90ee90;
  padding: 40px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  color: #90ee90;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero-content p {
  max-width: 560px;
  font-size: 1.05rem;
}

/* Prev / Next arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(16, 46, 51, 0.45);
  color: var(--color-white);
  border: 2px solid rgba(201, 162, 75, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: rgba(201, 162, 75, 0.75);
  border-color: var(--color-gold);
  outline: none;
}

.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Prayer Times Bar ---------- */
.prayer-bar {
  padding: 36px 0;
}

.prayer-panel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prayer-item {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid var(--color-border);
}

.prayer-item:last-child {
  border-right: none;
}

.prayer-item .prayer-name {
  font-family: var(--font-heading);
  color: var(--color-teal);
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.prayer-item .prayer-icon {
  width: 22px;
  height: 22px;
  stroke: var(--color-gold-dark);
  flex-shrink: 0;
}

.prayer-item .prayer-time {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-teal-dark);
}

.prayer-item .prayer-time .meridiem {
  font-size: 1rem;
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-left: 4px;
}

/* ---------- Feature Cards (About / Services / Donations) ---------- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-cream);
}

.feature-icon {
  width: 84px;
  height: 92px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--color-text-muted);
  min-height: 78px;
}

/* ---------- Generic Page Header (interior pages) ---------- */
.page-header {
  background-color: var(--color-teal);
  color: var(--color-white);
  padding: 56px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-teal-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--color-gold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-ornament {
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-teal);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  margin-top: 12px;
  font-weight: 700;
}

.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }

/* ---------- Cards / generic content ---------- */
.card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ---------- Gallery ---------- */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: center;
  padding: 16px;
}

/* ---------- Events Carousel ---------- */
.events-carousel-section {
  padding: 36px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 1.9rem;
  color: var(--color-teal);
  margin-bottom: 6px;
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-gold);
  margin: 8px auto 0;
  border-radius: 2px;
}

.section-heading p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ── Card ── */
.events-carousel {
  position: relative;
  padding: 8px 12px;
  margin: 0 -12px;
}

.carousel-event-card {
  display: flex;
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  height: 320px;
}

.carousel-event-media {
  flex: 0 0 42%;
  position: relative;
  overflow: hidden;
  height: 320px;
}

.carousel-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-event-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(160deg, var(--color-teal-dark) 0%, var(--color-teal) 60%, #2a6b76 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.carousel-event-placeholder svg {
  opacity: 0.4;
}

.carousel-event-placeholder .placeholder-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* Date block pinned on the media panel */
.carousel-date-block {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--color-gold);
  color: var(--color-white);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-date-block .cdb-day {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.carousel-date-block .cdb-month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.carousel-date-block .cdb-year {
  display: block;
  font-size: 0.65rem;
  opacity: 0.85;
  margin-top: 2px;
  letter-spacing: 0.08em;
}

/* Content panel */
.carousel-event-body {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.carousel-event-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.carousel-event-status.today    { background-color: var(--color-gold);  color: var(--color-white); }
.carousel-event-status.upcoming { background-color: var(--color-teal);  color: var(--color-white); }
.carousel-event-status.past     { background-color: var(--color-bg-alt); color: var(--color-text-muted); border: 1px solid var(--color-border); }

.carousel-event-card h3 {
  font-size: 1.55rem;
  color: var(--color-teal);
  margin-bottom: 14px;
  line-height: 1.25;
}

.carousel-event-time {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 600;
  font-family: Lato, Arial, sans-serif;
  margin: 4px 0 10px;
}
.event-card-time {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-teal);
  font-weight: 600;
  font-family: Lato, Arial, sans-serif;
  margin: 2px 0 8px;
}
.carousel-event-divider {
  width: 40px;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 2px;
  margin-bottom: 14px;
}

.carousel-event-card p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Navigation bar ── */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-teal);
  background-color: var(--color-white);
  color: var(--color-teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  flex-shrink: 0;
}

.carousel-arrow:hover:not(:disabled) {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.carousel-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.carousel-dot.active {
  background-color: var(--color-gold);
  transform: scale(1.3);
}

.carousel-counter {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  min-width: 52px;
  text-align: center;
}

/* ── Slide animations ── */
@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
.carousel-event-card.slide-in-right { animation: slideInRight 0.32s ease; }
.carousel-event-card.slide-in-left  { animation: slideInLeft  0.32s ease; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .carousel-event-card { flex-direction: column; height: auto; }
  .carousel-event-media { flex: none; height: 200px; }
  .carousel-event-body  { padding: 24px 20px; }
  .carousel-event-card h3 { font-size: 1.2rem; }
  .carousel-event-card p { -webkit-line-clamp: 3; }
}

/* ---------- Events ---------- */
.event-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.event-date {
  flex-shrink: 0;
  width: 84px;
  text-align: center;
  background-color: var(--color-teal);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 12px 8px;
  font-family: var(--font-heading);
}

.event-date .month {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.event-date .day {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.event-card h3 {
  margin-bottom: 4px;
}

.event-meta {
  color: var(--color-gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ---------- Donation frequency toggle ---------- */
.frequency-toggle {
  display: flex;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
}

.frequency-toggle input[type="radio"] {
  display: none;
}

.frequency-toggle label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 50px;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
  user-select: none;
}

.frequency-toggle label:hover {
  color: var(--color-teal);
}

.frequency-toggle input[type="radio"]:checked + label {
  background-color: var(--color-teal);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

/* ---------- Donation amount selector ---------- */
.amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.amount-option {
  padding: 14px;
  text-align: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--color-teal);
  background-color: var(--color-white);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.amount-option.selected,
.amount-option:hover {
  border-color: var(--color-gold);
  background-color: var(--color-bg-alt);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .prayer-panel {
    grid-template-columns: repeat(3, 1fr);
  }
  .prayer-item:nth-child(3n) {
    border-right: none;
  }
  .prayer-item {
    border-bottom: 1px solid var(--color-border);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .event-card {
    flex-direction: column;
  }

  .event-date {
    width: auto;
    display: inline-block;
  }

  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--color-border);
    margin-top: 12px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .header-actions {
    order: 2;
  }

  .prayer-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  .prayer-item:nth-child(2n) {
    border-right: none;
  }
}

/* ===== Services Page ===== */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.svc-icon--teal  { background: rgba(27, 66, 73, 0.1);  color: var(--color-teal); }
.svc-icon--gold  { background: rgba(201, 162, 75, 0.15); color: var(--color-gold-dark); }
.svc-icon--slate { background: rgba(138, 160, 166, 0.15); color: var(--color-slate); }

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--color-teal-dark);
}

/* ===== Gallery Page ===== */
.gallery-group {
  margin-bottom: 52px;
}

.gallery-group-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.gallery-group-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  display: block;
  margin-bottom: 4px;
}

.gallery-group-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--color-teal-dark);
  margin: 0;
}

.gallery-group-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-teal);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.gallery-group-link:hover { color: var(--color-gold-dark); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--color-bg-alt);
  display: block;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 46, 51, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: all 0.25s ease;
}

.gallery-thumb:hover .gallery-thumb-overlay {
  background: rgba(16, 46, 51, 0.45);
  opacity: 1;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  max-width: 88vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  display: block;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 1;
}

.lb-arrow:hover:not(:disabled) { background: rgba(255,255,255,0.25); }
.lb-arrow:disabled { opacity: 0.25; cursor: default; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.18s;
}
.lb-close:hover { color: #fff; }

.lb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lb-event-title {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 700;
}

.lb-counter {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-arrow { width: 38px; height: 38px; }
}

/* ===== Contact Map ===== */
.map-wrap {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.map-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-teal);
}

.map-iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

@media (max-width: 720px) {
  .map-iframe { height: 260px; }
}

/* ===== Events Page (events.html) ===== */
.events-page-card {
  padding: 0;
  overflow: hidden;
}
.events-page-media {
  display: block;
  position: relative;
  height: 200px;
  background: var(--color-teal-dark);
  overflow: hidden;
  text-decoration: none;
}
.events-page-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.events-page-media:hover .events-page-img {
  transform: scale(1.04);
}
.events-page-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}
.events-page-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.events-page-body {
  padding: 20px 24px 24px;
}
.events-page-body .event-card {
  box-shadow: none;
  border: none;
  padding: 0;
  background: none;
}
.events-page-body h3 a {
  color: var(--color-teal-dark);
  text-decoration: none;
}
.events-page-body h3 a:hover {
  text-decoration: underline;
}

/* ===== Event Details Page (eventdetails.html) ===== */
.ed-header {
  background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-teal) 100%);
  padding: 32px 0 44px;
  position: relative;
  overflow: hidden;
}
.ed-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ed-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  transition: color 0.2s;
  position: relative;
}
.ed-back:hover {
  color: var(--color-gold);
}
.ed-back svg {
  transition: transform 0.2s;
}
.ed-back:hover svg {
  transform: translateX(-3px);
}
.ed-header-body {
  position: relative;
}
.ed-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ed-date {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-family: Lato, Arial, sans-serif;
}
.ed-time-row {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 700;
  font-family: Lato, Arial, sans-serif;
  background: rgba(201,162,75,0.15);
  padding: 3px 10px 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(201,162,75,0.35);
}
#ed-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ed-header-divider {
  width: 52px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}
@media (max-width: 720px) {
  #ed-title { font-size: 1.6rem; }
  .ed-header { padding: 24px 0 36px; }
}

/* Gallery */
.ed-gallery-section {
  margin-bottom: 40px;
}
.ed-img-placeholder {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.ed-img-single {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.ed-gallery-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ed-gallery-arrow {
  flex: 0 0 44px;
  height: 44px;
  background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-teal);
}
.ed-gallery-arrow:hover:not(:disabled) {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #fff;
}
.ed-gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.ed-gallery-img-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}
.ed-gallery-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}
.ed-gallery-counter {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 10px;
  font-weight: 700;
}
.ed-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ed-thumb {
  width: 68px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s;
}
.ed-thumb.active {
  border-color: var(--color-gold);
}
.ed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Details & Conclusion */
.ed-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 10px;
}
.ed-details-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  white-space: pre-wrap;
}
.ed-conclusion-section {
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f0f7f0 0%, #e8f0e4 100%);
  border-left: 4px solid var(--color-teal);
  border-radius: var(--radius);
}
.ed-conclusion-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 10px;
}
.ed-conclusion-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  white-space: pre-wrap;
}
