/* =====================================================
   Naamdeo Events — Extra CSS v5.0
   Banner + Gallery + Swiper + Location + Organizer
   All rules use html body prefix to beat Elementor
   ===================================================== */

/* ══════════════════════════════════════════════
   EVENT BANNER
   background-image + dark overlay + white text
   Exactly like the reference screenshot
   ══════════════════════════════════════════════ */
html body .nd-event-wrap .nd-event-banner {
  position: relative !important;
  width: 100% !important;
  min-height: 360px !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: flex-end !important;
  overflow: hidden !important;
}
html body .nd-event-wrap .nd-event-banner__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.55) 60%,
    rgba(0,0,0,.80) 100%
  ) !important;
  z-index: 1 !important;
}
html body .nd-event-wrap .nd-event-banner__inner {
  position: relative !important;
  z-index: 2 !important;
  padding: 40px 40px 44px !important;
  max-width: 900px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
html body .nd-event-wrap .nd-event-banner__badge {
  display: inline-block !important;
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 5px 14px !important;
  border-radius: 100px !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
  -webkit-text-fill-color: #fff !important;
}
html body .nd-event-wrap .nd-event-banner__title {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  text-decoration: none !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.4) !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  line-height: 1.18 !important;
  border: none !important;
  box-shadow: none !important;
  display: block !important;
}
html body .nd-event-wrap .nd-event-banner__meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  align-items: center !important;
}
html body .nd-event-wrap .nd-event-banner__meta span {
  font-size: 15px !important;
  color: rgba(255,255,255,.9) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* ══════════════════════════════════════════════
   HERO BODY — below banner
   ══════════════════════════════════════════════ */
html body .nd-event-wrap .nd-hero-body {
  background: #faf6f0 !important;
  border-bottom: 1px solid #e8ddd4 !important;
}
html body .nd-event-wrap .nd-hero-body__inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 44px 40px !important;
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  gap: 44px !important;
  align-items: start !important;
  box-sizing: border-box !important;
}

/* Hero title in body section */
html body .nd-event-wrap .nd-hero__title {
  font-family: Georgia, serif !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 800 !important;
  color: #2a1f1a !important;
  -webkit-text-fill-color: #2a1f1a !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
  display: block !important;
  line-height: 1.2 !important;
}

/* ══════════════════════════════════════════════
   HERO GALLERY — Swiper inside clip-path wrapper
   clip-path beats Elementor overflow:visible
   ══════════════════════════════════════════════ */
html body .nd-event-wrap .nd-hgal-clip {
  width: 100% !important;
  height: 220px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  position: relative !important;
  margin-bottom: 18px !important;
  display: block !important;
  clip-path: inset(0 0 0 0 round 10px) !important;
  -webkit-clip-path: inset(0 0 0 0 round 10px) !important;
}
html body .nd-event-wrap .nd-hero-gallery {
  width: 100% !important;
  height: 220px !important;
  overflow: hidden !important;
  position: relative !important;
}
html body .nd-event-wrap .nd-hero-gallery .swiper-wrapper {
  height: 220px !important;
  align-items: stretch !important;
}
html body .nd-event-wrap .nd-hero-gallery .swiper-slide {
  height: 220px !important;
  overflow: hidden !important;
}
html body .nd-event-wrap .nd-hero-gallery .swiper-button-prev,
html body .nd-event-wrap .nd-hero-gallery .swiper-button-next {
  width: 32px !important; height: 32px !important;
  background: rgba(255,255,255,.9) !important;
  border-radius: 50% !important;
  color: #2a1f1a !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
}
html body .nd-event-wrap .nd-hero-gallery .swiper-button-prev::after,
html body .nd-event-wrap .nd-hero-gallery .swiper-button-next::after {
  font-size: 12px !important; font-weight: 900 !important;
}
html body .nd-event-wrap .nd-hero-gallery .swiper-pagination-bullet {
  background: rgba(255,255,255,.6) !important; opacity: 1 !important;
}
html body .nd-event-wrap .nd-hero-gallery .swiper-pagination-bullet-active {
  background: #fff !important;
}

/* ══════════════════════════════════════════════
   EVENTS SWIPER — cards slider
   ══════════════════════════════════════════════ */
html body .nd-events-swiper {
  width: 100% !important;
  overflow: hidden !important;
  padding-bottom: 40px !important;
  box-sizing: border-box !important;
}
html body .nd-events-swiper .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}
html body .nd-events-swiper .swiper-slide {
  box-sizing: border-box !important;
  height: auto !important;
  flex-shrink: 0 !important;
  display: flex !important;
}
html body .nd-events-swiper .swiper-slide .nd-event-card {
  width: 100% !important;
  flex: 1 !important;
  /* Override main CSS flex value */
  flex-basis: auto !important;
  min-width: 0 !important;
}
html body .nd-events-swiper .swiper-pagination {
  bottom: 2px !important;
}
html body .nd-events-swiper .swiper-pagination-bullet {
  background: #c8b8b0 !important;
  opacity: 1 !important;
  width: 8px !important;
  height: 8px !important;
}
html body .nd-events-swiper .swiper-pagination-bullet-active {
  background: #6b3a2a !important;
  transform: scale(1.3) !important;
}

/* ══════════════════════════════════════════════
   LOCATION
   ══════════════════════════════════════════════ */
html body .nd-location-section { background: #fff !important; }
html body .nd-location-body { background: #faf6f0 !important; border: 1px solid #e8ddd4 !important; border-radius: 14px !important; overflow: hidden !important; }
html body .nd-location-body--has-map { display: grid !important; grid-template-columns: 1fr 1fr !important; min-height: 320px !important; }
html body .nd-location-info { padding: 32px !important; display: flex !important; align-items: flex-start !important; }
html body .nd-location-address { display: flex !important; align-items: flex-start !important; gap: 16px !important; }
html body .nd-location-icon { width: 48px !important; height: 48px !important; border-radius: 12px !important; background: #f5ede8 !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; color: #6b3a2a !important; }
html body .nd-location-address-text { font-size: 16px !important; font-weight: 600 !important; color: #2a1f1a !important; margin: 0 0 10px !important; line-height: 1.5 !important; }
html body a.nd-location-map-link { display: inline-flex !important; align-items: center !important; gap: 6px !important; font-size: 14px !important; font-weight: 700 !important; color: #6b3a2a !important; text-decoration: none !important; border-bottom: 2px solid #f5ede8 !important; padding-bottom: 2px !important; transition: border-color .2s !important; }
html body a.nd-location-map-link:hover { border-color: #6b3a2a !important; }
html body .nd-location-map { position: relative !important; min-height: 320px !important; }
html body .nd-location-map iframe { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; border: 0 !important; display: block !important; }

/* ══════════════════════════════════════════════
   ORGANIZED BY
   ══════════════════════════════════════════════ */
html body .nd-organizer-section { background: #faf6f0 !important; }
html body .nd-organizer-card { background: #fff !important; border: 1px solid #e8ddd4 !important; border-radius: 14px !important; padding: 28px 32px !important; display: flex !important; align-items: center !important; gap: 28px !important; flex-wrap: wrap !important; }
html body .nd-organizer-left { flex-shrink: 0 !important; }
html body .nd-organizer-logo { max-width: 160px !important; max-height: 80px !important; object-fit: contain !important; display: block !important; }
html body .nd-organizer-logo-placeholder { width: 80px !important; height: 80px !important; border-radius: 12px !important; background: #f5ede8 !important; display: flex !important; align-items: center !important; justify-content: center !important; color: #6b3a2a !important; }
html body .nd-organizer-right { flex: 1 !important; min-width: 200px !important; }
html body .nd-organizer-name { font-family: Georgia,serif !important; font-size: 1.25rem !important; font-weight: 800 !important; color: #2a1f1a !important; margin: 0 0 6px !important; }
html body .nd-organizer-desc { font-size: 14px !important; color: #7a6a62 !important; line-height: 1.7 !important; margin: 0 0 16px !important; }
html body .nd-organizer-links { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; }
html body a.nd-organizer-link { display: inline-flex !important; align-items: center !important; gap: 7px !important; font-size: 13px !important; font-weight: 600 !important; color: #6b3a2a !important; text-decoration: none !important; background: #f5ede8 !important; padding: 7px 14px !important; border-radius: 100px !important; border: 1px solid rgba(107,58,42,.15) !important; transition: all .2s !important; box-shadow: none !important; letter-spacing: normal !important; text-transform: none !important; }
html body a.nd-organizer-link:hover { background: #6b3a2a !important; color: #fff !important; border-color: #6b3a2a !important; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media(max-width:1024px){
  html body .nd-event-wrap .nd-hero-body__inner { grid-template-columns: 1fr !important; padding: 36px 24px !important; gap: 28px !important; }
}
@media(max-width:900px){
  html body .nd-location-body--has-map { grid-template-columns: 1fr !important; }
  html body .nd-location-map { min-height: 260px !important; }
}
@media(max-width:640px){
  html body .nd-event-wrap .nd-event-banner { min-height: 260px !important; }
  html body .nd-event-wrap .nd-event-banner__inner { padding: 28px 20px 32px !important; }
  html body .nd-event-wrap .nd-event-banner__title { font-size: 1.5rem !important; }
  html body .nd-event-wrap .nd-event-banner__meta { flex-direction: column !important; gap: 8px !important; }
  html body .nd-event-wrap .nd-hero-body__inner { padding: 28px 16px !important; }
  html body .nd-event-wrap .nd-hero-gallery { height: 170px !important; }
  html body .nd-event-wrap .nd-hero-gallery .swiper-slide { height: 170px !important; }
  html body .nd-organizer-card { padding: 20px !important; }
  html body .nd-location-info { padding: 20px !important; }
}

/* ══════════════════════════════════════════════
   BANNER BACK LINK
   ══════════════════════════════════════════════ */
html body .nd-event-wrap .nd-event-banner__back {
  position: absolute !important;
  top: 18px !important;
  left: 40px !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: rgba(255,255,255,.85) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: rgba(0,0,0,.25) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 100px !important;
  padding: 6px 14px 6px 10px !important;
  transition: all .2s !important;
  -webkit-text-fill-color: rgba(255,255,255,.85) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: none !important;
}
html body .nd-event-wrap .nd-event-banner__back:hover {
  background: rgba(0,0,0,.45) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
@media(max-width:640px){
  html body .nd-event-wrap .nd-event-banner__back { left: 16px !important; top: 14px !important; }
}

/* ══════════════════════════════════════════════
   TESTIMONIALS SWIPER
   ══════════════════════════════════════════════ */
html body .nd-testi-swiper {
  overflow: hidden !important;
  padding-bottom: 40px !important;
  width: 100% !important;
}
html body .nd-testi-swiper .swiper-wrapper {
  align-items: stretch !important;
}
html body .nd-testi-swiper .swiper-slide {
  height: auto !important;
  display: flex !important;
}
html body .nd-testi-swiper .swiper-slide .nd-testi-card {
  width: 100% !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
html body .nd-testi-swiper .swiper-pagination-bullet {
  background: #c8b8b0 !important; opacity: 1 !important;
}
html body .nd-testi-swiper .swiper-pagination-bullet-active {
  background: #6b3a2a !important;
}

/* ══════════════════════════════════════════════
   SCROLL FIX — let vertical page scroll pass
   through horizontal Swipers (mobile + desktop)
   ══════════════════════════════════════════════ */
html body .nd-events-swiper,
html body .nd-testi-swiper,
html body .nd-hero-gallery,
html body .nd-events-swiper .swiper-wrapper,
html body .nd-testi-swiper .swiper-wrapper,
html body .nd-hero-gallery .swiper-wrapper {
  touch-action: pan-y !important;
}

/* Safety: never let plugin sections trap scroll */
html body .nd-event-wrap,
html body .nd-archive-wrap {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* ══════════════════════════════════════════════
   SHARE THIS EVENT
   ══════════════════════════════════════════════ */
html body .nd-share-section { background: #fff !important; }

html body .nd-share-card {
  background: #faf6f0 !important;
  border: 1px solid #e8ddd4 !important;
  border-radius: 14px !important;
  padding: 28px 32px !important;
  text-align: center !important;
}
html body .nd-share__title {
  font-family: Georgia, serif !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #2a1f1a !important;
  margin: 0 0 20px !important;
}
html body .nd-share__buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: center !important;
}
html body .nd-share-section a.nd-share-btn,
html body .nd-share-section button.nd-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  border-radius: 100px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all .2s !important;
  font-family: inherit !important;
  color: #fff !important;
  line-height: 1 !important;
  box-shadow: none !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
html body .nd-share-section a.nd-share-btn:hover,
html body .nd-share-section button.nd-share-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.18) !important;
}
html body .nd-share-section a.nd-share-btn svg,
html body .nd-share-section button.nd-share-btn svg {
  flex-shrink: 0 !important;
}

/* Brand colors */
html body .nd-share-btn--wa    { background: #25D366 !important; }
html body .nd-share-btn--fb    { background: #1877F2 !important; }
html body .nd-share-btn--tw    { background: #000000 !important; }
html body .nd-share-btn--li    { background: #0A66C2 !important; }
html body .nd-share-btn--tg    { background: #229ED9 !important; }
html body .nd-share-btn--email { background: #6b3a2a !important; }
html body .nd-share-btn--copy  { background: #fff !important; color: #2a1f1a !important; border: 1.5px solid #e8ddd4 !important; }
html body .nd-share-btn--copy:hover { border-color: #6b3a2a !important; color: #6b3a2a !important; }
html body .nd-share-btn--copied { background: #e8f8f1 !important; color: #0d7a4e !important; border-color: #0d7a4e !important; }

@media(max-width:480px){
  html body .nd-share-card { padding: 22px 18px !important; }
  html body .nd-share-section a.nd-share-btn,
  html body .nd-share-section button.nd-share-btn { padding: 9px 14px !important; font-size: 13px !important; }
}

/* ══════════════════════════════════════════════
   AGENDA TIMELINE v2 — numbered circles + cards
   ══════════════════════════════════════════════ */
html body .nd-timeline2 {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  counter-reset: none !important;
}
/* Vertical connecting line */
html body .nd-timeline2::before {
  content: '' !important;
  position: absolute !important;
  left: 17px !important;
  top: 12px !important;
  bottom: 12px !important;
  width: 2px !important;
  background: #e0d5cc !important;
  z-index: 0 !important;
}
html body .nd-timeline2__item {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px !important;
  margin-bottom: 18px !important;
  padding-left: 0 !important;
}
html body .nd-timeline2__item:last-child { margin-bottom: 0 !important; }

/* Numbered circle */
html body .nd-timeline2__num {
  flex-shrink: 0 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid #6b3a2a !important;
  background: #fff !important;
  color: #6b3a2a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Card */
html body .nd-timeline2__card {
  flex: 1 !important;
  background: #fff !important;
  border: 1px solid #ece3da !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  box-shadow: 0 2px 10px rgba(107,58,42,.05) !important;
  min-width: 0 !important;
}
html body .nd-timeline2__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}
html body .nd-timeline2__title {
  font-family: Georgia, serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #2a1f1a !important;
  margin: 0 !important;
  flex: 1 !important;
  min-width: 0 !important;
  line-height: 1.4 !important;
}
html body .nd-timeline2__time {
  flex-shrink: 0 !important;
  background: #6b3a2a !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 100px !important;
  white-space: nowrap !important;
  letter-spacing: .02em !important;
}
html body .nd-timeline2__desc {
  font-size: 14px !important;
  color: #7a6a62 !important;
  line-height: 1.65 !important;
  margin: 12px 0 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid #f0e8e0 !important;
}

@media(max-width:560px){
  html body .nd-timeline2__item { gap: 12px !important; }
  html body .nd-timeline2::before { left: 15px !important; }
  html body .nd-timeline2__num { width: 32px !important; height: 32px !important; font-size: 13px !important; }
  html body .nd-timeline2__card { padding: 14px 16px !important; }
  html body .nd-timeline2__head { gap: 8px !important; }
  html body .nd-timeline2__time { font-size: 11px !important; padding: 5px 11px !important; }
}

/* Agenda full-width layout (timeline needs room) */
html body .nd-agenda-grid {
  grid-template-columns: 1fr !important;
  gap: 28px !important;
}
html body .nd-agenda-card .nd-card-header {
  margin-bottom: 24px !important;
}
