/* Calendar schedule-style list */
.events-schedule {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 150px 42px 130px 1fr;
  align-items: center;
  padding: 12px 16px; 
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.schedule-row:first-child {
  border-top: 0;
}

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

.date-badge {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(15, 23, 42, 0.15);
  background: #fff;
}

.date-badge.is-today {
  background: var(--temple-maroon);
  border-color: var(--temple-maroon);
  color: #fff;
  /* background: #0b57d0;
  border-color: #0b57d0;
  color: #fff; */
}

.date-number {
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.date-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: rgba(15, 23, 42, 0.75);
  white-space: nowrap;
}

.date-spacer {
  width: 36px;
  height: 36px;
}

.schedule-dot {
  display: grid;
  place-items: center;
}

.schedule-dot .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--temple-saffron);
  /* background: #2b6fff; */
}

.schedule-time {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
  font-size: 13px;
}

.schedule-content {
  min-width: 0;
}

.schedule-title {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  font-size: 13px;
  /* font-size: 13px; */
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-subtitle {
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.65);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}


/* =========================================================
   EVENT LIST: Match left panel height to right  + scroll list
========================================================= */


/* Right column */
.events-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;

  /* IMPORTANT: remove sticky if you want equal-height columns */
  position: static;
  top: auto;
  height: 100%;
  min-height: 0;
}


.event-body {
  display: grid;
  gap: 0.45rem;
}

.events-count {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--temple-leaf);
}

.events-card {
  background: #ffffff;
  border: 1px solid rgba(123, 31, 27, 0.2);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 20px 40px rgba(45, 28, 16, 0.18);
  display: grid;
  gap: 0.9rem;
}

.events-card.highlight {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(247, 225, 189, 0.92));
  border-color: rgba(224, 122, 47, 0.3);
}

.events-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--temple-maroon);
}

.events-contact {
  display: grid;
  gap: 0.8rem;
  color: var(--color-gray-dark);
}

.events-contact-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--temple-leaf);
  margin-bottom: 0.2rem;
}

.events-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--color-gray-dark);
}

.events-checklist li {
  position: relative;
  padding-left: 1.2rem;
}

.events-checklist li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--temple-saffron);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.event-desc {
  margin: 0;
  color: var(--color-gray);
  font-size: 0.95rem;
}

.event-date {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--temple-leaf);
  margin-bottom: 0.4rem;
}

.event-date-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 229, 199, 0.9));
  border: 1px solid rgba(123, 31, 27, 0.16);
  border-radius: 18px;
  padding: 0.7rem 0.6rem;
  text-align: center;
  box-shadow: 0 12px 24px rgba(45, 28, 16, 0.1);
}

.event-day {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--temple-maroon);
}

.events-feed {
  /* height: 100%; */
  height: auto !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;

  /* keep your card look */
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(123, 31, 27, 0.18);
  border-radius: 24px;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 20px 42px rgba(45, 28, 16, 0.18);
}
.events-feed .events-stack {
  display: block !important;  
}


.events-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}


.events-filter .btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Filter buttons */
.events-filter .btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(242, 197, 110, 0.7);
  color: var(--temple-maroon);
  box-shadow: none;
}

/* Active = primary colour */
.events-filter .btn.ghost.is-active,
.events-filter .btn.ghost[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--color-primary), var(--temple-maroon));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(123, 31, 27, 0.22);
}

/* Optional hover polish */
.events-filter .btn.ghost:hover {
  border-color: rgba(123, 31, 27, 0.35);
}
.events-filter .btn.ghost.is-active:hover,
.events-filter .btn.ghost[aria-pressed="true"]:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--temple-maroon));
}


.events-filter .btn.is-active {
  background: linear-gradient(135deg, var(--temple-saffron), var(--temple-maroon));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(123, 31, 27, 0.22);
}


.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.events-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch; /* equal heights */
}



.events-loading,
.events-empty,
.events-error {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(123, 31, 27, 0.15);
  border-radius: 16px;
  color: var(--color-gray-dark);
  text-align: center;
}
.event-month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--temple-leaf);
}


.event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}


.events-highlight {
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.75), rgba(244, 224, 193, 0.7));
}


.events-header {
  display: grid;
  gap: 0.6rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.event-meta-item {
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: rgba(241, 195, 106, 0.16);
  display: grid;
  gap: 0.15rem;
}

.event-meta-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--temple-leaf);
}

.event-meta-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--temple-ink);
}



.event-range {
  font-size: 0.85rem;
  color: var(--color-gray);
}

.event-status {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 93, 69, 0.12);
  color: var(--temple-leaf);
  flex-shrink: 0;
}

.event-status-ongoing {
  background: rgba(224, 122, 47, 0.18);
  color: var(--temple-saffron-dark);
}

.event-status-past {
  background: rgba(90, 74, 63, 0.12);
  color: var(--color-gray);
}


/* If your schedule container is the immediate child, make it not "fight" the scroll */
.events-schedule {
  height: auto;
  max-height: none; 
}

/* =========================================================
   Force equal-height columns + scroll left list
   (so left never grows taller than right column area)
========================================================= */

.events-section {
  position: relative;
}

/* Give the whole 2-column region a fixed height anchor */
.events-section .section-inner {
  /* height: calc(120vh - 100px); 
  min-height: 640px;            */
  height: auto !important;
  min-height: 0 !important;
}


.events-section .event-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.2rem 1.3rem;
  border-left: 3px solid rgba(224, 122, 47, 0.35);
}

.events-section .event-card .event-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--temple-maroon);
}

/* scroll container */
.events-stack {
  flex: 0 0 auto;
  height: 380px !important;      /* <-- pick your fixed height */
  min-height: 0 !important;
  max-height: 520px !important;
  overflow-y: scroll !important;  /* ALWAYS show scrollbar */
  overflow-x: hidden !important;
  scrollbar-gutter: stable;       /* prevents layout shift */
  display: grid;
  /* gap: 1rem; */
  /* padding-right: 8px; */
  padding-bottom: 0.2rem;

  padding-right: 12px !important;  /* room for scrollbar */
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;

  /* flex: 1 1 auto;          */
  /* min-height: 0; */
  /* flex: 1; */
  /* max-height: 560px;       */
}

/* Firefox */
.events-stack {
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 31, 27, 0.35) transparent;
}

/* Optional: nicer scrollbar (Chrome/Safari/Edge) */
.events-stack::-webkit-scrollbar {
  width: 12px;
}
.events-stack::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  border: 3px solid transparent;
  background-clip: content-box;
}
.events-stack::-webkit-scrollbar-track {
  background: transparent;
}

.events-stack .events-schedule {
  height: auto !important;
  max-height: none !important;
}

/* =========================================================
   Events toolbar (Calendar-like)
========================================================= */
.events-feed,
.section-inner,
.section,
.hero-shell {
  overflow: visible;
}

.events-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  margin: 14px 0 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  position: relative;
  overflow: visible;
  z-index: 5;
}


.range-popover{
  position: absolute;
  top: calc(100% + 10px);
  left: 190px; /* tweak if needed so it sits under the range button */
  width: 220px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 18px 40px rgba(15,23,42,0.14);
  z-index: 9999;
  pointer-events: auto;
}

.range-label{
  display:block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(15,23,42,0.75);
}

.range-input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.18);
  font: inherit;
}

.toolbar-btn,
.toolbar-range,
.icon-btn {
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.88);
  cursor: pointer;
}

.toolbar-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toolbar-nav {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}

.toolbar-range {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.08);
}

.toolbar-spacer {
  flex: 1;
}

/* Force the filter buttons to use YOUR active styling */
.events-toolbar .btn.ghost {
  border: 1px solid rgba(242, 197, 110, 0.7);
  background: rgba(255, 255, 255, 0.7);
  color: var(--temple-maroon);
}

/* Active state */
.events-toolbar .btn.ghost.is-active,
.events-toolbar .btn.ghost[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--color-primary), var(--temple-maroon)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px rgba(123, 31, 27, 0.22);
}

/* Kill the blue focus ring / outline that you're seeing */
.events-toolbar .btn.ghost:focus,
.events-toolbar .btn.ghost:focus-visible {
  outline: none !important;
  box-shadow: none;
}

/* Optional: give a subtle maroon focus instead of blue */
.events-toolbar .btn.ghost.is-active:focus-visible {
  box-shadow: 0 0 0 3px rgba(123, 31, 27, 0.25), 0 12px 24px rgba(123, 31, 27, 0.22);
}

.events-toolbar .caret {
  opacity: 0.65;
  font-size: 12px;
  transform: translateY(1px);
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 560px) {
  .events-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .toolbar-spacer {
    display: none;
  }
  .schedule-row {
    grid-template-columns: 94px 30px 1fr;
    grid-template-areas:
      "date dot content"
      "date dot time";
    align-items: start;
  }

  .schedule-date { grid-area: date; }
  .schedule-dot { grid-area: dot; padding-top: 10px; }
  .schedule-content { grid-area: content; }
  .schedule-time { grid-area: time; margin-top: 6px; }
}

@media (max-width: 820px) {
  .schedule-row {
    grid-template-columns: 120px 36px 110px 1fr;
    padding: 14px;
  }

  .date-badge,
  .date-spacer {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 860px) {
  .events-layout {
    display: grid !important;
  }
}


@media (max-width: 980px) {
  .events-layout {
    grid-template-columns: 1fr;
  }

  .events-stack {
    height: auto !important;
    max-height: none !important;
    overflow-y: scroll !important;    /* ALWAYS show scrollbar */
    overflow-x: hidden !important;
    padding-right: 8px !important;
    /* overflow-y: visible !important; */
    /* padding-right: 0 !important; */
  }
}


/* .events-feed .events-stack::-webkit-scrollbar {
  width: 12px !important;
} */

/* .events-feed .events-stack::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.25) !important;
  border-radius: 999px !important;
  border: 3px solid rgba(255,255,255,0.9) !important; // makes it visible 
} */

/* .events-feed .events-stack::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06) !important;
  border-radius: 999px !important;
} */
