/* ==========================================================================
   Uzhavara Pani — Frontend Styles
   Prefix: uzp- (unique to this widget to avoid theme collisions)
   ========================================================================== */

.uzp-app {
  --uzp-green-dark: #123c2c !important;
  --uzp-green: #1c5c42 !important;
  --uzp-green-light: #e9f5ee !important;
  --uzp-gold: #caa23e !important;
  --uzp-red: #c0392b !important;
  --uzp-text: #23281f !important;
  --uzp-muted: #6b7268 !important;
  --uzp-line: #e6ece7 !important;
  --uzp-card-radius: 16px !important;
  /* Content column shared by the hero text, actions, sections and CTA. */
  --uzp-container: 1180px !important;
  --uzp-gutter: clamp(16px, 3vw, 24px) !important;

  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  font-family: 'Noto Sans Tamil', 'Segoe UI', system-ui, sans-serif !important;
  color: var(--uzp-text) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.uzp-app * {
  box-sizing: border-box !important;
}

/* ---------- Header ---------- */
.uzp-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: clamp(10px, 2vw, 16px) clamp(14px, 3vw, 24px) !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.uzp-icon-btn {
  background: none !important;
  border: none !important;
  font-size: clamp(18px, 2.4vw, 22px) !important;
  cursor: pointer !important;
  color: var(--uzp-green-dark) !important;
}

.uzp-hamburger {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  background: var(--uzp-green-dark) !important;
  position: relative !important;
}
.uzp-hamburger::before,
.uzp-hamburger::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  width: 22px !important;
  height: 2px !important;
  background: var(--uzp-green-dark) !important;
}
.uzp-hamburger::before { top: -7px !important; }
.uzp-hamburger::after { top: 7px !important; }

.uzp-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: center !important;
}
.uzp-brand-icon {
  font-size: clamp(26px, 4vw, 34px) !important;
}
.uzp-brand-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
.uzp-brand-name {
  font-weight: 800 !important;
  font-size: clamp(18px, 3vw, 24px) !important;
  color: #2b1c58 !important;
  line-height: 1.1 !important;
}
.uzp-brand-accent {
  color: var(--uzp-red) !important;
}
.uzp-brand-tag {
  font-size: clamp(10px, 1.6vw, 12px) !important;
  color: var(--uzp-muted) !important;
}

/* ---------- Hero ---------- */
/* Full-bleed photo with a deep-green gradient wash from the left, so the
   title sits on the image instead of beside a large empty panel. The text
   column lines up with the contained sections below (.uzp-hero-inner uses
   the same --uzp-container width). */
.uzp-hero {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: clamp(340px, 58vh, 540px) !important;
  background: var(--uzp-green-dark) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}
.uzp-hero-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  /* Placeholder photo of volunteers cleaning a temple (free Unsplash
     license) — swap for a client-supplied photo once available. */
  background: #1f3d30 url('https://images.unsplash.com/photo-1758599669327-83d310882929?auto=format&fit=crop&w=1600&q=60') center/cover !important;
}
.uzp-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background:
    linear-gradient(90deg, rgba(10, 36, 26, 0.92) 0%, rgba(10, 36, 26, 0.72) 42%, rgba(10, 36, 26, 0.15) 100%),
    linear-gradient(0deg, rgba(10, 36, 26, 0.55) 0%, rgba(10, 36, 26, 0) 40%) !important;
}
@media (max-width: 700px) {
  .uzp-hero::before {
    background: linear-gradient(0deg, rgba(10, 36, 26, 0.94) 10%, rgba(10, 36, 26, 0.55) 100%) !important;
  }
}

.uzp-hero-inner {
  width: 100% !important;
  max-width: var(--uzp-container) !important;
  margin: 0 auto !important;
  padding: clamp(48px, 8vw, 96px) var(--uzp-gutter) clamp(88px, 10vw, 120px) !important;
}
.uzp-hero-text {
  max-width: 600px !important;
}
.uzp-hero-ornament {
  display: block !important;
  width: 56px !important;
  height: 3px !important;
  margin: 0 0 18px !important;
  border-radius: 2px !important;
  background: var(--uzp-gold) !important;
}
.uzp-hero-text h1 {
  color: #fff !important;
  font-size: clamp(32px, 5.6vw, 56px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin: 0 0 14px !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25) !important;
}
.uzp-hero-text p {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: clamp(15px, 2vw, 18px) !important;
  line-height: 1.7 !important;
  margin: 0 0 26px !important;
}
.uzp-hero-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--uzp-gold) !important;
  color: #1b1405 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(202, 162, 62, 0.35) !important;
  transition: transform 0.15s ease, background 0.2s ease !important;
}
.uzp-hero-cta:hover {
  background: #dbb555 !important;
  transform: translateY(-2px) !important;
}

/* ---------- Quick actions ---------- */
/* Four cards pulled up over the hero's bottom edge. Scoped with .uzp-app
   (instead of the bare class) so this containment reliably wins over
   theme/page-builder "full width content" rules of similar specificity —
   see uzp-frontend-assets.php for the matching late enqueue priority. */
.uzp-app .uzp-actions {
  position: relative !important;
  z-index: 2 !important;
  max-width: var(--uzp-container) !important;
  margin: clamp(-64px, -6vw, -48px) auto 0 !important;
  padding: 0 var(--uzp-gutter) !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: clamp(10px, 2vw, 20px) !important;
}
@media (max-width: 760px) {
  .uzp-app .uzp-actions { grid-template-columns: repeat(2, 1fr) !important; }
}

.uzp-action {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: #fff !important;
  border: 1px solid var(--uzp-line) !important;
  border-radius: var(--uzp-card-radius) !important;
  padding: clamp(14px, 2vw, 20px) !important;
  color: var(--uzp-text) !important;
  font-family: inherit !important;
  text-align: left !important;
  text-decoration: none !important;
  box-shadow: 0 12px 30px rgba(18, 60, 44, 0.12) !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.uzp-action:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(202, 162, 62, 0.5) !important;
  box-shadow: 0 18px 36px rgba(18, 60, 44, 0.16) !important;
}
.uzp-action-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: clamp(42px, 5vw, 52px) !important;
  height: clamp(42px, 5vw, 52px) !important;
  border-radius: 50% !important;
  background: var(--uzp-green-light) !important;
  font-size: clamp(20px, 2.6vw, 24px) !important;
  line-height: 1 !important;
}
.uzp-action-text {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  line-height: 1.35 !important;
}
.uzp-action-text strong {
  font-size: clamp(13px, 1.6vw, 15px) !important;
  font-weight: 700 !important;
  color: var(--uzp-green-dark) !important;
}
.uzp-action-text small {
  font-size: clamp(12px, 1.4vw, 13px) !important;
  color: var(--uzp-muted) !important;
}
@media (max-width: 420px) {
  .uzp-action { flex-direction: column !important; text-align: center !important; gap: 8px !important; }
  .uzp-action-text { align-items: center !important; }
}

/* ---------- Sections ---------- */
/* Contained, centered content column — only the hero above is full-bleed.
   Scoped with .uzp-app for the same specificity reason as .uzp-actions. */
.uzp-app .uzp-section {
  max-width: var(--uzp-container) !important;
  margin: 0 auto !important;
  padding: clamp(40px, 6vw, 64px) var(--uzp-gutter) 0 !important;
}
.uzp-app .uzp-shortcode {
  background-color: #FF7B0024 !important;
}

/* Wraps so the "view more" pill drops under the heading in narrow spots
   (e.g. [uzhavara_pani_next_event] in a sidebar column) instead of
   overflowing the container. */
.uzp-section-head {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: clamp(16px, 2.4vw, 24px) !important;
}
.uzp-section-head h2 {
  position: relative !important;
  font-size: clamp(19px, 2.6vw, 26px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: var(--uzp-green-dark) !important;
  margin: 0 !important;
  padding-left: 16px !important;
}
.uzp-section-head h2::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 4px !important;
  bottom: 4px !important;
  width: 4px !important;
  border-radius: 2px !important;
  background: var(--uzp-gold) !important;
}
.uzp-section-head a {
  flex: 0 0 auto !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--uzp-green) !important;
  text-decoration: none !important;
  padding: 7px 14px !important;
  border: 1px solid rgba(28, 92, 66, 0.25) !important;
  border-radius: 999px !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}
.uzp-section-head a:hover {
  background: var(--uzp-green-dark) !important;
  border-color: var(--uzp-green-dark) !important;
  color: #fff !important;
}

/* [uzhavara_pani_next_event] usually sits in a narrow Elementor column, where
   flex-wrap alone wasn't enough: the heading shrank onto two lines and the
   pill still overflowed the column. Size off the widget's own width
   (container query) and stack heading + pill when space is tight. */
.uzp-section-new {
  container-type: inline-size !important;
  width: 100% !important;
  max-width: 100% !important;
}
.uzp-section-new .uzp-section-head h2 {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}
.uzp-section-new .uzp-section-head a {
  max-width: 100% !important;
  white-space: nowrap !important;
}
@container (max-width: 480px) {
  .uzp-section-new .uzp-section-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
}

/* ---------- Event cards (upcoming) ---------- */
/* Two columns on wide screens, one on narrow. Each card: square photo with
   a date badge on the left, title / meta / register button stacked on the
   right — so there's no wide empty gap between the text and the button. */
.uzp-event-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(12px, 2vw, 20px) !important;
}
@media (min-width: 860px) {
  .uzp-event-list { grid-template-columns: repeat(2, 1fr) !important; }
}

.uzp-event-card {
  display: flex !important;
  align-items: stretch !important;
  gap: clamp(12px, 2vw, 18px) !important;
  background: #fff !important;
  border: 1px solid var(--uzp-line) !important;
  border-radius: var(--uzp-card-radius) !important;
  padding: 12px !important;
  box-shadow: 0 6px 18px rgba(18, 60, 44, 0.06) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease !important;
}
.uzp-event-card:hover {
  box-shadow: 0 14px 32px rgba(18, 60, 44, 0.12) !important;
  border-color: rgba(202, 162, 62, 0.45) !important;
  transform: translateY(-3px) !important;
}

.uzp-event-img-wrap {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: clamp(110px, 28%, 160px) !important;
  min-height: 130px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.uzp-event-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  /* Placeholder photo shown until an event gets a featured image. */
  background: #d8e6de url('https://images.unsplash.com/photo-1742277296187-1cc2f783d792?auto=format&fit=crop&w=400&q=60') center/cover !important;
  transition: transform 0.35s ease !important;
}
.uzp-event-card:hover .uzp-event-img {
  transform: scale(1.06) !important;
}

.uzp-event-date {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-width: 44px !important;
  background: #fff !important;
  color: var(--uzp-green-dark) !important;
  border-radius: 10px !important;
  padding: 5px 8px 6px !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}
.uzp-date-month { font-size: 10px !important; font-weight: 800 !important; letter-spacing: 0.5px !important; text-transform: uppercase !important; color: var(--uzp-gold) !important; }
.uzp-date-day { font-size: 20px !important; font-weight: 800 !important; margin-top: 2px !important; }

.uzp-event-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 4px 4px 4px 0 !important;
}
.uzp-event-body h3 {
  font-size: clamp(15px, 1.9vw, 17px) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.uzp-event-body h3 a {
  color: var(--uzp-text) !important;
  text-decoration: none !important;
}
.uzp-event-body h3 a:hover {
  color: var(--uzp-green) !important;
}
.uzp-event-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 16px !important;
}
.uzp-event-loc,
.uzp-event-time {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 13px !important;
  color: var(--uzp-muted) !important;
}
.uzp-event-meta svg {
  flex: 0 0 auto !important;
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: var(--uzp-green) !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.uzp-register-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: var(--uzp-green-dark) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 9px 18px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.uzp-register-btn:hover {
  background: var(--uzp-green) !important;
  transform: translateY(-1px) !important;
}
.uzp-event-body .uzp-register-btn {
  margin-top: 4px !important;
}
@media (max-width: 420px) {
  .uzp-event-img-wrap { width: 96px !important; min-height: 116px !important; }
  .uzp-event-body .uzp-register-btn { align-self: stretch !important; justify-content: center !important; }
}

.uzp-empty {
  color: var(--uzp-muted) !important;
  font-size: 14px !important;
  padding: 24px !important;
  margin: 0 !important;
  text-align: center !important;
  background: #fff !important;
  border: 1px dashed var(--uzp-line) !important;
  border-radius: var(--uzp-card-radius) !important;
}

/* ---------- Next event featured card ("அடுத்த உழவாரப்பணி") ---------- */
/* Rendered inside the plain .uzp-app .uzp-section wrapper (same as every
   other section) — no dedicated frame/background/padding of its own.
   Single card: photo left (stretches to the body's height), temple name +
   date + register button right. Distinct from .uzp-event-card (the list
   row layout, date badge overlaid on the image) — see render_next_event_card(). */
/* flex-wrap + a big flex-grow on the body: photo and text sit side by
   side while the column is wide enough for both (~140px + ~170px), and
   the card stacks (photo on top) in narrower Elementor/sidebar columns
   instead of pushing the register button out of the card. */
.uzp-next-event-card {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  background: #fff !important;
  border: 1px solid #eef0ec !important;
  border-radius: var(--uzp-card-radius) !important;
  padding: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}
.uzp-next-event-img {
  display: block !important;
  flex: 1 1 140px !important;
  min-height: 140px !important;
  border-radius: 10px !important;
  /* Placeholder photo shown until an event gets a featured image. */
  background: #d8e6de url('https://images.unsplash.com/photo-1742277296187-1cc2f783d792?auto=format&fit=crop&w=400&q=60') center/cover !important;
}
.uzp-next-event-body {
  flex: 999 1 170px !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 8px !important;
}
.uzp-next-event-body h3 {
  font-size: clamp(15px, 2.2vw, 18px) !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
.uzp-next-event-body h3 a {
  color: inherit !important;
  text-decoration: none !important;
}
.uzp-next-event-body h3 a:hover {
  color: var(--uzp-green) !important;
  text-decoration: underline !important;
}
.uzp-next-event-date {
  font-size: clamp(12px, 1.6vw, 14px) !important;
  color: var(--uzp-muted) !important;
  margin: 0 !important;
}
.uzp-next-event-btn {
  align-self: flex-start !important;
  margin: 4px 0 0 !important;
}

/* ---------- Completed grid ---------- */
/* Fixed 4 columns (the listing shows at most 4 completed events), so the
   row fills exactly instead of leaving an empty 5th track or orphaning one
   card on tablet; fewer events just keep their 1/4 tile width. 2 columns
   up to small-laptop widths (4 narrow tiles would split long place
   names mid-word). The single page's related grid overrides the column count. */
.uzp-completed-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2vw, 22px) !important;
}
@media (max-width: 820px) {
  .uzp-completed-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}

.uzp-completed-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  background: #fff !important;
  border: 1px solid var(--uzp-line) !important;
  border-radius: var(--uzp-card-radius) !important;
  padding: 8px 8px 12px !important;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(18, 60, 44, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.uzp-completed-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(202, 162, 62, 0.45) !important;
  box-shadow: 0 14px 32px rgba(18, 60, 44, 0.12) !important;
}
.uzp-completed-img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  /* Placeholder photo (volunteers group photo) shown until an event gets
     a featured image. */
  background: #d8e6de url('https://images.unsplash.com/photo-1758599669327-83d310882929?auto=format&fit=crop&w=500&q=60') center/cover !important;
  border-radius: 10px !important;
  margin-bottom: 10px !important;
}
.uzp-completed-loc {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: var(--uzp-text) !important;
  margin: 0 4px !important;
  overflow-wrap: break-word !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.uzp-completed-date {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  color: var(--uzp-muted) !important;
  margin: 6px 4px 0 !important;
}
.uzp-completed-date::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--uzp-gold) !important;
}

/* ---------- WhatsApp CTA ---------- */
/* Deep-green band, contained to the content column, with breathing room
   above the theme footer. Scoped with .uzp-app for the same specificity
   reason as .uzp-section. */
.uzp-app .uzp-whatsapp-cta {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: clamp(12px, 2vw, 20px) !important;
  max-width: calc(var(--uzp-container) - 2 * var(--uzp-gutter)) !important;
  margin: clamp(48px, 7vw, 72px) auto clamp(48px, 7vw, 72px) !important;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 40px) !important;
  background: linear-gradient(120deg, var(--uzp-green-dark) 0%, var(--uzp-green) 100%) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 40px rgba(18, 60, 44, 0.22) !important;
  overflow: hidden !important;
}
@media (max-width: 1180px) {
  .uzp-app .uzp-whatsapp-cta { margin-left: var(--uzp-gutter) !important; margin-right: var(--uzp-gutter) !important; }
}
.uzp-wa-icon-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: clamp(44px, 6vw, 56px) !important;
  height: clamp(44px, 6vw, 56px) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
}
.uzp-wa-icon { font-size: clamp(20px, 2.6vw, 26px) !important; }
.uzp-whatsapp-cta p {
  flex: 1 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: clamp(13px, 1.8vw, 15px) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.uzp-whatsapp-cta p strong {
  color: #fff !important;
  font-size: clamp(16px, 2.2vw, 20px) !important;
}
.uzp-wa-decor {
  position: absolute !important;
  right: -10px !important;
  bottom: -18px !important;
  font-size: 110px !important;
  opacity: 0.07 !important;
  pointer-events: none !important;
}
.uzp-wa-btn {
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 auto !important;
  background: #25d366 !important;
  color: #073b1e !important;
  text-decoration: none !important;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3) !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.uzp-wa-btn:hover {
  background: #3ee07b !important;
  transform: translateY(-2px) !important;
}
@media (max-width: 600px) {
  .uzp-app .uzp-whatsapp-cta { flex-wrap: wrap !important; }
  .uzp-wa-btn { flex: 1 1 100% !important; text-align: center !important; }
}

/* ---------- Registration modal ---------- */
.uzp-modal {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  padding: 16px !important;
}
.uzp-modal[hidden] { display: none !important; }

.uzp-modal-box {
  background: #fff !important;
  border-radius: 18px !important;
  border-top: 4px solid var(--uzp-gold) !important;
  padding: 28px 24px 24px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;
  width: 100% !important;
  max-width: 380px !important;
  max-height: calc(100vh - 32px) !important;
  overflow-y: auto !important;
  position: relative !important;
}
.uzp-modal-close {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  background: none !important;
  border: none !important;
  font-size: 18px !important;
  cursor: pointer !important;
}
.uzp-modal-box h3 {
  font-size: 16px !important;
  margin: 0 0 16px !important;
  padding-right: 20px !important;
}
#uzp-register-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
#uzp-register-form input {
  padding: 10px 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}
.uzp-submit-btn {
  background: var(--uzp-green-dark) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.uzp-form-msg {
  font-size: 13px !important;
  margin: 4px 0 0 !important;
  text-align: center !important;
}

/* ---------- Single event page ---------- */
/* Full-bleed photo with the title on a dark gradient at its foot; the
   details card below is pulled up over the hero's bottom edge. Body,
   related events and prev/next all share the --uzp-container column. */
.uzp-single-hero {
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
  min-height: clamp(300px, 50vh, 480px) !important;
  /* Placeholder photo shown until this event gets a featured image. */
  background: #1f3d30 url('https://images.unsplash.com/photo-1715876722520-02ccc9248dab?auto=format&fit=crop&w=1600&q=60') center/cover !important;
  isolation: isolate !important;
}
.uzp-single-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: linear-gradient(0deg, rgba(10, 36, 26, 0.92) 0%, rgba(10, 36, 26, 0.55) 45%, rgba(10, 36, 26, 0.1) 100%) !important;
}
.uzp-single-hero-inner {
  width: 100% !important;
  max-width: var(--uzp-container) !important;
  margin: 0 auto !important;
  padding: 48px var(--uzp-gutter) clamp(96px, 12vw, 120px) !important;
}
.uzp-single-hero h1 {
  color: #fff !important;
  font-size: clamp(26px, 4.4vw, 46px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 0 10px !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3) !important;
}
.uzp-single-postmeta {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  margin: 0 !important;
}

.uzp-badge {
  display: inline-block !important;
  margin: 0 0 14px !important;
  background: var(--uzp-gold) !important;
  color: #1b1405 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
}

.uzp-single-body {
  position: relative !important;
  z-index: 2 !important;
  max-width: var(--uzp-container) !important;
  margin: 0 auto !important;
  padding: 0 var(--uzp-gutter) !important;
}

/* Details card */
.uzp-single-info {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px 28px !important;
  margin-top: clamp(-72px, -8vw, -56px) !important;
  margin-bottom: clamp(28px, 4vw, 40px) !important;
  padding: clamp(18px, 3vw, 28px) !important;
  background: #fff !important;
  border: 1px solid var(--uzp-line) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 44px rgba(18, 60, 44, 0.14) !important;
}
.uzp-single-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px clamp(20px, 3vw, 36px) !important;
}
.uzp-info-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}
.uzp-info-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: var(--uzp-green-light) !important;
}
.uzp-info-icon svg,
.uzp-action-btn svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: var(--uzp-green) !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.uzp-info-value {
  display: flex !important;
  flex-direction: column !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--uzp-text) !important;
}
.uzp-info-value small,
.uzp-info-value a {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--uzp-muted) !important;
  text-decoration: none !important;
}
.uzp-info-value a:hover {
  color: var(--uzp-green) !important;
}

.uzp-single-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.uzp-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #fff !important;
  color: var(--uzp-green-dark) !important;
  border: 1px solid rgba(28, 92, 66, 0.25) !important;
  border-radius: 999px !important;
  padding: 11px 22px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
}
/* Buttons get their own row under the details, split off by a divider. */
.uzp-single-meta + .uzp-single-actions {
  width: 100% !important;
  padding-top: 18px !important;
  border-top: 1px solid var(--uzp-line) !important;
}
.uzp-action-btn:hover {
  background: var(--uzp-green-light) !important;
  transform: translateY(-1px) !important;
}
.uzp-action-btn--primary {
  background: var(--uzp-green-dark) !important;
  border-color: var(--uzp-green-dark) !important;
  color: #fff !important;
}
.uzp-action-btn--primary:hover {
  background: var(--uzp-green) !important;
}
@media (max-width: 600px) {
  .uzp-single-actions { width: 100% !important; }
  .uzp-single-actions .uzp-action-btn { flex: 1 1 0 !important; padding-left: 12px !important; padding-right: 12px !important; }
}

.uzp-single-content {
  max-width: 820px !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  margin-bottom: 32px !important;
}

.uzp-single-video {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  margin-bottom: 32px !important;
  border-radius: var(--uzp-card-radius) !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px rgba(18, 60, 44, 0.12) !important;
}
.uzp-single-video iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.uzp-single-gallery-wrap {
  margin-bottom: 16px !important;
}
.uzp-gallery-stage-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--uzp-green-dark) !important;
  margin: 0 0 12px !important;
}
.uzp-single-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}
@media (max-width: 420px) {
  .uzp-single-gallery { grid-template-columns: repeat(2, 1fr) !important; }
}
.uzp-gallery-item {
  display: block !important;
  aspect-ratio: 1 / 1 !important;
  background: #d8e6de center/cover !important;
  border-radius: 12px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.uzp-gallery-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(18, 60, 44, 0.16) !important;
}

/* Share row */
.uzp-share {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 18px 0 !important;
  border-top: 1px solid var(--uzp-line) !important;
  border-bottom: 1px solid var(--uzp-line) !important;
}
.uzp-share-label {
  font-size: 14px !important;
  color: var(--uzp-green-dark) !important;
  margin-right: 6px !important;
}
.uzp-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: #fff !important;
  color: var(--uzp-text) !important;
  border: 1px solid var(--uzp-line) !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}
.uzp-share-btn svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}
.uzp-share-btn--wa svg { color: #25d366 !important; }
.uzp-share-btn--tg svg { color: #229ed9 !important; }
.uzp-share-btn--fb svg { color: #1877f2 !important; }
.uzp-share-btn:hover {
  background: var(--uzp-green-dark) !important;
  border-color: var(--uzp-green-dark) !important;
  color: #fff !important;
}
.uzp-share-btn:hover svg { color: #fff !important; }

/* Related events — tinted full-width band with 3 cards */
.uzp-related {
  margin-top: clamp(40px, 6vw, 64px) !important;
  padding: clamp(40px, 6vw, 64px) 0 !important;
  background: var(--uzp-green-light) !important;
}
.uzp-related-inner {
  max-width: var(--uzp-container) !important;
  margin: 0 auto !important;
  padding: 0 var(--uzp-gutter) !important;
}
.uzp-app .uzp-related-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
/* 3 across down to small tablets, then 1 — a 2-column step would leave the
   3rd card alone on its own row. */
@media (max-width: 600px) {
  .uzp-app .uzp-related-grid { grid-template-columns: 1fr !important; }
}
.uzp-related-card .uzp-completed-img {
  position: relative !important;
  aspect-ratio: 16 / 10 !important;
}
.uzp-related-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--uzp-text) !important;
  margin: 0 4px 2px !important;
}
.uzp-related-card .uzp-completed-loc {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--uzp-muted) !important;
}

/* Prev / next */
.uzp-adjacent-nav {
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  max-width: var(--uzp-container) !important;
  margin: 0 auto !important;
  padding: clamp(28px, 4vw, 40px) var(--uzp-gutter) clamp(40px, 6vw, 64px) !important;
}
.uzp-adjacent-nav a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  max-width: 48% !important;
  padding: 14px 20px !important;
  background: #fff !important;
  border: 1px solid var(--uzp-line) !important;
  border-radius: var(--uzp-card-radius) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--uzp-green-dark) !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.uzp-adjacent-nav a:hover {
  border-color: rgba(202, 162, 62, 0.5) !important;
  box-shadow: 0 10px 24px rgba(18, 60, 44, 0.1) !important;
}
.uzp-adjacent-next { margin-left: auto !important; text-align: right !important; }
@media (max-width: 600px) {
  /* Stack prev/next full width — side by side squeezes titles to 4 lines. */
  .uzp-adjacent-nav { flex-direction: column !important; gap: 10px !important; }
  .uzp-adjacent-nav > span:empty { display: none !important; }
  .uzp-adjacent-nav a { max-width: none !important; }
  .uzp-adjacent-next { margin-left: 0 !important; justify-content: space-between !important; }
}
.uzp-adjacent-arrow {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: var(--uzp-green-light) !important;
  color: var(--uzp-green) !important;
}
