@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* ── Shared tokens ──────────────────────────────────────────────── */
:root {
  --ne-ink:          #191919;
  --ne-muted:        #6a6a6a;
  --ne-surface:      #fffdfa;
  --ne-soft:         #f7efe8;
  --ne-maroon-l:     #a11d23;
  --ne-maroon:       #7f1113;
  --ne-maroon-d:     #4f090c;
  --ne-gold:         #f2c94c;
  --ne-gold-dark:    #d7aa43;
  --ne-green:        #00a651;
  --ne-shadow-s:     0 8px 22px rgba(79,9,12,0.09);
  --ne-shadow-m:     0 18px 42px rgba(79,9,12,0.13);
  --ne-shadow-l:     0 28px 60px rgba(79,9,12,0.16);
  --ne-gradient:     linear-gradient(180deg, var(--ne-maroon-l) 0%, var(--ne-maroon) 52%, var(--ne-maroon-d) 100%);
  --ne-card-bg:      linear-gradient(160deg, #ffffff 0%, #faf3ec 100%);
  --ne-radius-sm:    14px;
  --ne-radius-md:    20px;
  --ne-radius-lg:    26px;
  --ne-border:       1px solid rgba(127,17,19,0.09);
  --ne-page-gutter:  var(--layout-page-gutter, 24px);
}

.ne-page-shell {
  padding-bottom: 56px;
}

.ne-page-intro {
  margin: 8px calc(-1 * var(--layout-page-gutter, var(--ne-page-gutter))) 28px;
  padding: 32px 34px;
  background: var(--ne-card-bg);
  border: var(--ne-border);
  box-shadow: var(--ne-shadow-m);
}

.ne-page-kicker {
  margin-bottom: 10px;
}

.ne-page-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.04;
  color: var(--ne-maroon);
}

.ne-page-copy {
  max-width: 900px;
  margin-top: 14px;
  color: var(--ne-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.ne-page-copy > :first-child,
.ne-modal-text > :first-child {
  margin-top: 0;
}

.ne-page-copy > :last-child,
.ne-modal-text > :last-child {
  margin-bottom: 0;
}

.ne-page-copy p,
.ne-modal-text p {
  margin-bottom: 1em;
}

.ne-rich-copy,
.ne-page-copy,
.ne-featured-desc,
.ne-card-desc,
.ne-modal-summary,
.ne-modal-text {
  white-space: normal;
}

.ne-rich-copy strong,
.ne-page-copy strong,
.ne-featured-desc strong,
.ne-card-desc strong,
.ne-modal-summary strong,
.ne-modal-text strong,
.ne-rich-copy b,
.ne-page-copy b,
.ne-featured-desc b,
.ne-card-desc b,
.ne-modal-summary b,
.ne-modal-text b {
  font-weight: 700;
}

.ne-rich-copy em,
.ne-page-copy em,
.ne-featured-desc em,
.ne-card-desc em,
.ne-modal-summary em,
.ne-modal-text em,
.ne-rich-copy i,
.ne-page-copy i,
.ne-featured-desc i,
.ne-card-desc i,
.ne-modal-summary i,
.ne-modal-text i {
  font-style: italic;
}

.ne-rich-copy u,
.ne-page-copy u,
.ne-featured-desc u,
.ne-card-desc u,
.ne-modal-summary u,
.ne-modal-text u {
  text-decoration: underline;
}

.ne-rich-copy s,
.ne-page-copy s,
.ne-featured-desc s,
.ne-card-desc s,
.ne-modal-summary s,
.ne-modal-text s {
  text-decoration: line-through;
}

.ne-rich-copy strong:not([style*="color"]),
.ne-page-copy strong:not([style*="color"]),
.ne-featured-desc strong:not([style*="color"]),
.ne-card-desc strong:not([style*="color"]),
.ne-modal-summary strong:not([style*="color"]),
.ne-modal-text strong:not([style*="color"]),
.ne-rich-copy b:not([style*="color"]),
.ne-page-copy b:not([style*="color"]),
.ne-featured-desc b:not([style*="color"]),
.ne-card-desc b:not([style*="color"]),
.ne-modal-summary b:not([style*="color"]),
.ne-modal-text b:not([style*="color"]),
.ne-rich-copy em:not([style*="color"]),
.ne-page-copy em:not([style*="color"]),
.ne-featured-desc em:not([style*="color"]),
.ne-card-desc em:not([style*="color"]),
.ne-modal-summary em:not([style*="color"]),
.ne-modal-text em:not([style*="color"]),
.ne-rich-copy i:not([style*="color"]),
.ne-page-copy i:not([style*="color"]),
.ne-featured-desc i:not([style*="color"]),
.ne-card-desc i:not([style*="color"]),
.ne-modal-summary i:not([style*="color"]),
.ne-modal-text i:not([style*="color"]),
.ne-rich-copy u:not([style*="color"]),
.ne-page-copy u:not([style*="color"]),
.ne-featured-desc u:not([style*="color"]),
.ne-card-desc u:not([style*="color"]),
.ne-modal-summary u:not([style*="color"]),
.ne-modal-text u:not([style*="color"]),
.ne-rich-copy s:not([style*="color"]),
.ne-page-copy s:not([style*="color"]),
.ne-featured-desc s:not([style*="color"]),
.ne-card-desc s:not([style*="color"]),
.ne-modal-summary s:not([style*="color"]),
.ne-modal-text s:not([style*="color"]),
.ne-rich-copy span:not([style*="color"]),
.ne-page-copy span:not([style*="color"]),
.ne-featured-desc span:not([style*="color"]),
.ne-card-desc span:not([style*="color"]),
.ne-modal-summary span:not([style*="color"]),
.ne-modal-text span:not([style*="color"]) {
  color: inherit;
}

.ne-card[hidden] {
  display: none !important;
}

.ne-empty-state {
  margin: 0 var(--ne-page-gutter);
  padding: 20px 22px;
  border-radius: var(--ne-radius-md);
  border: var(--ne-border);
  background: linear-gradient(160deg, #fffdf9 0%, #f7efe8 100%);
  color: var(--ne-muted);
  text-align: center;
  box-shadow: var(--ne-shadow-s);
}

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.ne-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px var(--ne-page-gutter);
  font-size: 0.82rem;
  color: var(--ne-muted);
}
.ne-breadcrumb a {
  color: var(--ne-maroon);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.ne-breadcrumb a:visited {
  text-decoration: none;
}
.ne-breadcrumb a:hover { color: var(--ne-maroon-l); }
.ne-breadcrumb span   { color: var(--ne-muted); opacity: .55; }
.ne-breadcrumb strong { color: var(--ne-ink); }

/* ── Featured Event ─────────────────────────────────────────────── */
#featuredEventMount.ne-featured {
  display: grid;
  margin: 10px var(--ne-page-gutter) 40px;
  border-radius: var(--ne-radius-lg);
  overflow: hidden;
  background: var(--ne-card-bg);
  border: var(--ne-border);
  box-shadow: var(--ne-shadow-l);
  min-height: 250px;
}

.ne-featured-img {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 32vw, 360px);
}

.ne-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}
@media (hover: hover) {
  .ne-featured:hover .ne-featured-img img { transform: scale(1.04); }
}

.ne-featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--ne-gradient);
  color: #fffaf4;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(79,9,12,.22);
}

.ne-featured-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.ne-featured-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: var(--ne-ink);
  line-height: 1.08;
  margin: 0;
}

.ne-featured-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--ne-muted);
  font-weight: 600;
  margin: 0;
  flex-wrap: wrap;
}
.ne-featured-meta svg { flex-shrink: 0; color: var(--ne-maroon); }

.ne-featured-desc {
  font-size: 0.97rem;
  color: var(--ne-muted);
  line-height: 1.76;
  margin: 0;
}

/* ── Shared: tag pill ───────────────────────────────────────────── */
.ne-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(127,17,19,.08);
  color: var(--ne-maroon);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
}

/* ── Gold CTA button ────────────────────────────────────────────── */
.ne-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ne-gold) 0%, var(--ne-gold-dark) 100%);
  color: #2d1606;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0 28px;
  min-height: 46px;
  border-radius: 999px;
  text-decoration: none;
  align-self: flex-start;
  box-shadow: 0 8px 22px rgba(210,160,50,.3);
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}
@media (hover: hover) {
  .ne-btn-gold:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px rgba(210,160,50,.38);
  }
}

/* ── Events Section ─────────────────────────────────────────────── */
.ne-events-main { padding: 0 var(--ne-page-gutter); }

.ne-events-section {
  background: var(--ne-card-bg);
  border: var(--ne-border);
  border-radius: var(--ne-radius-lg);
  box-shadow: var(--ne-shadow-m);
  padding: 36px 40px 40px;
  margin-bottom: 40px;
}

.ne-events-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ne-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ne-maroon);
  opacity: .7;
}
.ne-events-header h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ne-maroon);
  margin: 0;
}

.ne-events-columns {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 32px;
}

.ne-events-divider {
  background: rgba(127,17,19,.1);
  border-radius: 999px;
  align-self: stretch;
  margin: 28px 0 0;
}

.ne-col-title {
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ne-col-ongoing  { color: var(--ne-green); }
.ne-col-upcoming { color: var(--ne-maroon); }

/* Live pulse dot */
.ne-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ne-green);
  position: relative;
  flex-shrink: 0;
}
.ne-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--ne-green);
  opacity: .3;
  animation: ne-ping 1.8s ease-out infinite;
}
@keyframes ne-ping {
  0%   { transform: scale(1);  opacity: .35; }
  70%  { transform: scale(2);  opacity: 0;   }
  100% { transform: scale(2);  opacity: 0;   }
}

.ne-event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  min-height: 54px;
  border-radius: var(--ne-radius-sm);
  background: linear-gradient(160deg, rgba(255,255,255,.9) 0%, rgba(247,239,232,.7) 100%);
  border: var(--ne-border);
  margin-bottom: 10px;
  transition: transform .22s ease, box-shadow .22s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ne-event-item:last-child { margin-bottom: 0; }

@media (hover: hover) {
  .ne-event-item:hover {
    transform: translateX(4px);
    box-shadow: var(--ne-shadow-s);
  }
}
.ne-event-item:active { transform: scale(.98); }

.ne-event-item.ne-ongoing {
  background: linear-gradient(160deg, rgba(230,244,234,.9) 0%, rgba(208,234,214,.6) 100%);
  border-left: 3px solid var(--ne-green);
}
@media (hover: hover) {
  .ne-event-item.ne-ongoing:hover { box-shadow: 0 8px 22px rgba(0,100,50,.1); }
}

.ne-event-date {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ne-maroon);
  min-width: 44px;
  flex-shrink: 0;
}
.ne-ongoing .ne-event-date { color: var(--ne-green); }

.ne-event-name {
  font-size: 0.95rem;
  color: var(--ne-ink);
  line-height: 1.45;
  margin: 0;
}

/* ── Filter Bar ─────────────────────────────────────────────────── */
.ne-filter-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--ne-page-gutter);
  margin-top: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ne-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ne-muted);
  letter-spacing: .04em;
  white-space: nowrap;
}
.ne-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ne-filter {
  padding: 8px 20px;
  min-height: 40px;
  border: var(--ne-border);
  border-radius: 999px;
  background: linear-gradient(160deg, var(--ne-surface) 0%, #f3e9e0 100%);
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ne-muted);
  transition: transform .2s, border-color .2s, color .2s, box-shadow .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.ne-filter.active,
.ne-filter:focus-visible {
  background: var(--ne-gradient);
  color: #fffaf4;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79,9,12,.2);
}
@media (hover: hover) {
  .ne-filter:hover:not(.active) {
    border-color: rgba(127,17,19,.28);
    color: var(--ne-maroon);
    transform: translateY(-2px);
    box-shadow: var(--ne-shadow-s);
  }
}

/* ── Card Grid ──────────────────────────────────────────────────── */
.ne-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 var(--ne-page-gutter) 60px;
}

.ne-card {
  background: var(--ne-card-bg);
  border-radius: var(--ne-radius-md);
  overflow: hidden;
  border: var(--ne-border);
  box-shadow: var(--ne-shadow-s);
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease;
}
@media (hover: hover) {
  .ne-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ne-shadow-m);
  }
}
.ne-card:active { transform: scale(.99); }

.ne-card-add {
  min-height: 100%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 2px dashed rgba(127,17,19,.2);
  background: linear-gradient(160deg, rgba(255,255,255,.96) 0%, rgba(250,243,236,.9) 100%);
}

.ne-card-add-inner {
  display: flex;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px 24px;
  text-align: center;
}

.ne-card-add-plus {
  color: var(--ne-maroon);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
}

.ne-card-add-label {
  margin: 0;
  color: var(--ne-maroon);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
}

@media (hover: hover) {
  .ne-card-add:hover {
    transform: translateY(-5px);
    box-shadow: var(--ne-shadow-m);
    border-color: rgba(127,17,19,.4);
  }
}

.ne-card-add:focus-visible {
  outline: 3px solid rgba(242,201,76,.95);
  outline-offset: 3px;
}

.ne-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #d9d9d9;
}
.ne-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, filter .45s ease;
}
@media (hover: hover) {
  .ne-card:hover .ne-card-img img {
    transform: scale(1.07);
    filter: saturate(.88) brightness(.93);
  }
}

/* Tag badge overlaid on card image */
.ne-card-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(20,5,5,.55);
  backdrop-filter: blur(6px);
  color: #fffaf4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
}

.ne-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ne-card-date {
  font-size: 0.8rem;
  color: var(--ne-muted);
  font-weight: 700;
  letter-spacing: .03em;
  margin: 0 0 8px;
}
.ne-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ne-ink);
  line-height: 1.26;
  margin: 0 0 10px;
}
.ne-card-desc {
  font-size: 0.9rem;
  color: var(--ne-muted);
  line-height: 1.72;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.ne-card-desc > :first-child {
  margin-top: 0;
}
.ne-card-desc > :last-child {
  margin-bottom: 0;
}
.ne-card-desc p,
.ne-card-desc ul,
.ne-card-desc ol,
.ne-card-desc blockquote {
  margin: 0 0 0.8em;
}
.ne-card-desc ul,
.ne-card-desc ol {
  padding-left: 1.2rem;
}
.ne-card-desc a:not([style*="color"]) {
  color: var(--ne-maroon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.ne-card-rule {
  border: none;
  border-top: 1px solid rgba(127,17,19,.08);
  margin: 16px 0 14px;
}
.ne-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.ne-card-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ne-muted);
}
.ne-card-loc svg { color: var(--ne-maroon); flex-shrink: 0; }

.ne-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ne-maroon);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  transition: transform .22s, color .22s;
}
.ne-read-more::after { content: "\2197"; font-size: .9em; }
@media (hover: hover) {
  .ne-read-more:hover { transform: translateX(2px); color: var(--ne-maroon-l); }
}

/* ── Modal ──────────────────────────────────────────────────────── */
.ne-modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(161,29,35,.14) 0%, rgba(28,8,10,.46) 38%, rgba(18,3,4,.72) 100%);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  overflow: hidden;
}
.ne-modal-overlay.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.ne-modal-overlay.closing { opacity: 0; }

.ne-modal-card {
  position: relative;
  width: min(1120px, calc(100vw - 56px));
  max-height: min(88vh, calc(100dvh - 40px));
  background: linear-gradient(160deg, #fffcf8 0%, #f7efe8 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(127,17,19,.12);
  box-shadow: 0 36px 70px rgba(32,8,8,.28);
  transform: scale(.92) translateY(28px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s ease;
}
.ne-modal-overlay.show    .ne-modal-card { transform: scale(1) translateY(0); opacity: 1; }
.ne-modal-overlay.closing .ne-modal-card { transform: scale(.92) translateY(28px); opacity: 0; }

.ne-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: rgba(127,17,19,.1);
  color: var(--ne-maroon);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: transform .18s ease, background .18s ease;
}
@media (hover: hover) {
  .ne-modal-close:hover { transform: translateY(-1px); background: rgba(127,17,19,.17); }
}

.ne-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr);
  max-height: inherit;
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ne-modal-img-wrap {
  overflow: hidden;
  background: #d9d9d9;
  min-height: min(72vh, 620px);
  height: auto;
}
.ne-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
@media (hover: hover) {
  .ne-modal-img-wrap:hover img { transform: scale(1.04); }
}

.ne-modal-content {
  padding: 34px 34px 38px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ne-modal-date  { font-size: 0.84rem; color: var(--ne-muted); font-weight: 700; margin: 0; }
.ne-modal-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  color: var(--ne-ink);
  line-height: 1.14;
  margin: 0;
  padding-right: 56px;
}
.ne-modal-summary {
  font-size: 0.98rem;
  color: var(--ne-muted);
  line-height: 1.72;
  margin: 0;
}
.ne-modal-loc  { font-size: 0.9rem; color: var(--ne-muted); margin: 0; font-weight: 600; }
.ne-modal-rule { border: none; border-top: 1px solid rgba(127,17,19,.1); margin: 2px 0 0; }
.ne-modal-details-label {
  margin: 0;
  color: var(--ne-maroon);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ne-modal-text {
  font-size: 0.98rem;
  color: var(--ne-ink);
  line-height: 1.8;
  margin: 0;
}
.ne-modal-text > :first-child { margin-top: 0; }
.ne-modal-text > :last-child { margin-bottom: 0; }
.ne-modal-text p,
.ne-modal-text ul,
.ne-modal-text ol,
.ne-modal-text blockquote {
  margin: 0 0 1em;
}
.ne-modal-text ul,
.ne-modal-text ol {
  padding-left: 1.3rem;
}
.ne-modal-text li {
  margin-bottom: 0.45em;
}
.ne-modal-text a:not([style*="color"]) {
  color: var(--ne-maroon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.72s ease-out, transform 0.72s ease-out;
  will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal.delay-1,
.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-2,
.reveal.delay-200 { transition-delay: 0.2s; }
body.scroll-down .reveal:not(.active) { transform: translateY(40px); }
body.scroll-up   .reveal:not(.active) { transform: translateY(-40px); }
html.modal-open,
body.modal-open  {
  overflow: hidden;
  overscroll-behavior: none;
}

body.modal-open {
  position: fixed;
  inset: 0;
  width: 100%;
}

@media (max-width: 1100px) {
  .ne-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .ne-page-intro {
    padding: 26px 24px;
  }

  .ne-breadcrumb,
  .ne-filter-bar,
  .ne-card-grid       { padding-left: var(--ne-page-gutter); padding-right: var(--ne-page-gutter); }
  .ne-events-main     { padding: 0 var(--ne-page-gutter); }

  #featuredEventMount.ne-featured {
    margin: 10px var(--ne-page-gutter) 32px;
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .ne-featured-img    { height: 260px; }
  .ne-featured-body   { padding: 28px 28px 32px; }
  .ne-featured-title  { font-size: clamp(1.45rem, 3.5vw, 1.9rem); }
}

@media (max-width: 680px) {
  .ne-card-grid { grid-template-columns: 1fr; gap: 18px; }

  .ne-events-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ne-events-divider { display: none; }

  .ne-modal-body {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
  .ne-modal-img-wrap  { min-height: 200px; height: 220px; }
  .ne-modal-title     { font-size: 1.15rem; padding-right: 44px; }
  .ne-modal-content   { max-height: none; overflow: visible; padding: 20px 20px 28px; }

  #featuredEventMount.ne-featured { grid-template-columns: 1fr; }

  .ne-event-item { min-height: 58px; padding: 14px 16px; gap: 14px; }
  .ne-event-date { min-width: 42px; }
}

@media (max-width: 480px) {
  :root { --ne-page-gutter: 16px; }

  .ne-breadcrumb      { padding: 14px var(--ne-page-gutter); font-size: 0.78rem; }
  .ne-page-intro      { margin: 6px calc(-1 * var(--layout-page-gutter, var(--ne-page-gutter))) 22px; padding: 22px 18px; }
  .ne-page-title      { font-size: 1.65rem; }
  .ne-page-copy       { font-size: 0.92rem; }

  #featuredEventMount.ne-featured { margin: 8px var(--ne-page-gutter) 24px; }
  .ne-featured-img    { height: 220px; }
  .ne-featured-body   { padding: 20px 18px 24px; gap: 10px; }
  .ne-featured-title  { font-size: 1.35rem; }
  .ne-featured-desc   { font-size: 0.9rem; }
  .ne-btn-gold        { font-size: 0.84rem; padding: 0 22px; min-height: 42px; }

  .ne-events-section  { padding: 22px 18px 26px; }
  .ne-events-header h2{ font-size: 1.3rem; }

  .ne-filter-bar      { gap: 10px; margin-top: 20px; margin-bottom: 20px; }
  .ne-filter          { padding: 7px 14px; font-size: 0.78rem; min-height: 38px; }
  .ne-filter-label    { font-size: 0.78rem; }

  .ne-card-body       { padding: 16px 16px 18px; }
  .ne-card-title      { font-size: 0.97rem; }
  .ne-card-img        { height: 160px; }

  .ne-event-item      { min-height: 54px; padding: 12px 14px; }
  .ne-event-name      { font-size: 0.9rem; }
  .ne-event-date      { font-size: 0.68rem; }
}

@media (max-width: 360px) {
  :root { --ne-page-gutter: 12px; }
  .ne-featured-title  { font-size: 1.2rem; }
  .ne-events-header h2{ font-size: 1.15rem; }
  .ne-col-title       { font-size: 0.75rem; }
  .ne-filter          { padding: 6px 12px; font-size: 0.74rem; }
  .ne-card-title      { font-size: 0.92rem; }
}

@media (hover: none) {
  .ne-event-item:hover,
  .ne-card:hover,
  .ne-btn-gold:hover,
  .ne-read-more:hover,
  .ne-filter:hover:not(.active),
  .ne-featured:hover .ne-featured-img img,
  .ne-card:hover .ne-card-img img,
  .ne-modal-img-wrap:hover img,
  .ne-modal-close:hover {
    transform: none;
    filter: none;
    box-shadow: none;
  }

  .ne-event-item:active  { transform: scale(.98); }
  .ne-card:active        { transform: scale(.99); }
  .ne-filter:active      { opacity: .85; }
  .ne-btn-gold:active    { filter: brightness(.95); }
}

body.pup-dark-mode {
  --ne-ink:          #f5e8e8;
  --ne-muted:        #c8a8a8;
  --ne-surface:      #1a0d0f;
  --ne-soft:         #220d10;
  --ne-maroon-l:     #c0282f;
  --ne-maroon:       #a11d23;
  --ne-maroon-d:     #7f1113;
  --ne-gold:         #f2c94c;
  --ne-gold-dark:    #d7aa43;
  --ne-green:        #00a651;
  --ne-shadow-s:     0 8px 22px rgba(0,0,0,0.3);
  --ne-shadow-m:     0 18px 42px rgba(0,0,0,0.4);
  --ne-shadow-l:     0 28px 60px rgba(0,0,0,0.5);
  --ne-card-bg:      linear-gradient(160deg, #1e0c0f 0%, #160809 100%);
  --ne-border:       1px solid rgba(200,80,80,0.12);
}

body.pup-dark-mode {
  background: #12080a;
}

body.pup-dark-mode .ne-breadcrumb {
  color: #c8a8a8;
}

body.pup-dark-mode .ne-breadcrumb a {
  color: #e08080;
}

body.pup-dark-mode .ne-breadcrumb a:hover {
  color: #f0a0a5;
}

body.pup-dark-mode .ne-breadcrumb strong {
  color: #f5e8e8;
}

body.pup-dark-mode .ne-page-intro,
body.pup-dark-mode .ne-empty-state {
  background: var(--ne-card-bg);
  border-color: rgba(200,80,80,0.12);
  box-shadow: var(--ne-shadow-s);
}

body.pup-dark-mode .ne-page-title {
  color: #f5e8e8;
}

body.pup-dark-mode .ne-page-copy {
  color: #c8a8a8;
}

body.pup-dark-mode #featuredEventMount.ne-featured {
  background: var(--ne-card-bg);
  border-color: rgba(200,80,80,0.14);
  box-shadow: var(--ne-shadow-l);
}

body.pup-dark-mode .ne-featured-title {
  color: #f5e8e8;
}

body.pup-dark-mode .ne-featured-meta {
  color: #c8a8a8;
}

body.pup-dark-mode .ne-featured-desc {
  color: #c8a8a8;
}

body.pup-dark-mode .ne-tag {
  background: rgba(200,80,80,0.12);
  color: #e08080;
}

body.pup-dark-mode .ne-events-section {
  background: var(--ne-card-bg);
  border-color: rgba(200,80,80,0.12);
  box-shadow: var(--ne-shadow-m);
}

body.pup-dark-mode .ne-events-header h2 {
  color: #e08080;
}

body.pup-dark-mode .ne-section-label {
  color: #e08080;
}

body.pup-dark-mode .ne-events-divider {
  background: rgba(200,80,80,0.12);
}

body.pup-dark-mode .ne-event-item {
  background: linear-gradient(160deg, rgba(30,12,15,0.9) 0%, rgba(22,8,10,0.7) 100%);
  border-color: rgba(200,80,80,0.12);
}

body.pup-dark-mode .ne-event-item.ne-ongoing {
  background: linear-gradient(160deg, rgba(0,60,25,0.35) 0%, rgba(0,45,18,0.25) 100%);
  border-left-color: var(--ne-green);
}

body.pup-dark-mode .ne-event-date {
  color: #e08080;
}

body.pup-dark-mode .ne-ongoing .ne-event-date {
  color: var(--ne-green);
}

body.pup-dark-mode .ne-event-name {
  color: #f5e8e8;
}

body.pup-dark-mode .ne-filter-label {
  color: #c8a8a8;
}

body.pup-dark-mode .ne-filter {
  background: linear-gradient(160deg, rgba(26,10,12,0.98) 0%, rgba(20,8,10,0.96) 100%);
  border-color: rgba(200,80,80,0.14);
  color: #c8a8a8;
}

body.pup-dark-mode .ne-filter:hover:not(.active) {
  border-color: rgba(200,80,80,0.32);
  color: #e08080;
}

body.pup-dark-mode .ne-filter.active {
  background: linear-gradient(135deg, #c8960a 0%, #a87a0a 100%);
  border-color: transparent;
  color: #1a0a00;
}

body.pup-dark-mode .ne-card {
  background: var(--ne-card-bg);
  border-color: rgba(200,80,80,0.12);
  box-shadow: var(--ne-shadow-s);
}

body.pup-dark-mode .ne-card-date {
  color: #c8a8a8;
}

body.pup-dark-mode .ne-card-title {
  color: #f5e8e8;
}

body.pup-dark-mode .ne-card-desc {
  color: #c8a8a8;
}

body.pup-dark-mode .ne-card-rule {
  border-top-color: rgba(200,80,80,0.1);
}

body.pup-dark-mode .ne-card-loc {
  color: #c8a8a8;
}

body.pup-dark-mode .ne-read-more {
  color: #e08080;
}

body.pup-dark-mode .ne-read-more:hover {
  color: #f0a0a5;
}

body.pup-dark-mode .ne-btn-gold {
  box-shadow: none;
}

body.pup-dark-mode .ne-btn-gold:hover {
  box-shadow: none;
  filter: none;
}

body.pup-dark-mode .ne-btn-gold,
body.pup-dark-mode .ne-btn-primary,
body.pup-dark-mode .ne-cta-btn,
body.pup-dark-mode .ne-featured .apply-now-btn,
body.pup-dark-mode .submit-btn,
body.pup-dark-mode .hero-primary {
  background: linear-gradient(135deg, #c8960a 0%, #a87a0a 100%);
  color: #1a0a00 !important;
}

body.pup-dark-mode .ne-btn-gold:hover,
body.pup-dark-mode .ne-btn-primary:hover,
body.pup-dark-mode .ne-cta-btn:hover,
body.pup-dark-mode .ne-featured .apply-now-btn:hover,
body.pup-dark-mode .submit-btn:hover,
body.pup-dark-mode .hero-primary:hover {
  background: linear-gradient(135deg, #b8860a 0%, #986a0a 100%);
  color: #1a0a00 !important;
}

body.pup-dark-mode .ne-modal-card {
  background: linear-gradient(160deg, #1a0d0f 0%, #130809 100%);
  border-color: rgba(200,80,80,0.16);
  box-shadow: 0 36px 70px rgba(0,0,0,0.6);
}

body.pup-dark-mode .ne-modal-overlay {
  background: radial-gradient(circle at top, rgba(80,10,15,0.28) 0%, rgba(10,3,4,0.6) 38%, rgba(5,1,2,0.85) 100%);
}

body.pup-dark-mode .ne-modal-date {
  color: #c8a8a8;
}

body.pup-dark-mode .ne-modal-title {
  color: #f5e8e8;
}

body.pup-dark-mode .ne-modal-loc {
  color: #c8a8a8;
}

body.pup-dark-mode .ne-modal-rule {
  border-top-color: rgba(200,80,80,0.12);
}

body.pup-dark-mode .ne-modal-text {
  color: #c8a8a8;
}

body.pup-dark-mode .ne-modal-close {
  background: rgba(200,80,80,0.12);
  color: #e08080;
}

body.pup-dark-mode .ne-modal-close:hover {
  background: rgba(200,80,80,0.2);
}

body.pup-dark-mode .reveal {
  opacity: 0;
  transform: translateY(38px);
}

body.pup-dark-mode .reveal.active {
  opacity: 1;
  transform: translateY(0);
}
