/* ==========================================
   DEDICATED EVENTS PAGE & CALENDAR STYLES
   ========================================== */

/* Part 1: Hero-Style Upcoming National Event Banner */
.event-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 450px;
  max-height: 100vh;
  overflow: hidden;
  background-color: var(--tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 28, 25, 0.75);
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  color: #ffffff;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--grid-margin);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-container);
  border: 1px solid rgba(254, 210, 111, 0.3);
  padding: 6px 16px;
  background-color: rgba(254, 210, 111, 0.08);
}

.hero-title {
  font-family: var(--font-headline);
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
}

.hero-date {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--tertiary-fixed-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-btn-sharp {
  background-color: var(--primary);
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 0 !important;
  /* Sharp edges */
  font-weight: 700;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(112, 2, 16, 0.4);
  transition: var(--transition-smooth);
  border: 1px solid var(--primary);
  font-family: var(--font-body);
  text-decoration: none;
  font-size: 14px;
}

.hero-btn-sharp:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: none;
}


/* Part 2: Monthly Events Grid (Sharp Edges) */
.monthly-schedule-section {
  background-color: var(--surface);
  padding: 80px 0;
}

.events-header {
  margin-bottom: 48px;
  text-align: left;
}

.events-header .section-subtitle {
  display: inline-block;
  margin-bottom: 8px;
}

.events-header .section-subtitle::after {
  left: 0;
  transform: none;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gutter);
}

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

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

.event-card {
  background-color: var(--surface-container-lowest);
  border-radius: 0 !important;
  /* STRAIGHT SHARP EDGES */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(112, 2, 16, 0.02);
  border: 1px solid rgba(140, 113, 111, 0.06);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(112, 2, 16, 0.06);
}

.event-card-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0 !important;
  /* STRAIGHT SHARP EDGES */
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 0 !important;
  /* STRAIGHT SHARP EDGES */
}

.event-card:hover .event-card-img {
  transform: scale(1.05);
}

.event-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-body);
}

.event-card-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.3;
}

.event-card-desc {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  flex-grow: 1;
  font-family: var(--font-body);
}

.event-card-btn {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 0 !important;
  /* STRAIGHT SHARP EDGES */
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  align-self: flex-start;
  text-decoration: none;
  font-size: 14px;
}

.event-card-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(112, 2, 16, 0.15);
}

/* Past/Done Event card state */
.event-card.event-done {
  opacity: 0.6;
  filter: grayscale(15%);
}

.event-done-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--outline);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0 !important;
  /* STRAIGHT SHARP EDGES */
  letter-spacing: 0.05em;
  z-index: 3;
  font-family: var(--font-body);
}


/* Part 3: Calendar Block */
.calendar-section {
  padding: 80px 0;
  background-color: var(--surface-container-low);
}

.calendar-intro {
  text-align: center;
  margin-bottom: 48px;
}

.calendar-intro h2 {
  color: var(--primary);
  margin-bottom: 12px;
}

.calendar-intro p {
  color: var(--on-surface-variant);
}

.calendar-wrapper {
  background-color: var(--surface-container-lowest);
  border-radius: var(--rounded-xl);
  padding: 40px;
  box-shadow: 0 15px 40px rgba(112, 2, 16, 0.02);
  border: 1px solid rgba(140, 113, 111, 0.06);
}

@media (max-width: 576px) {
  .calendar-wrapper {
    padding: 20px;
  }
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cal-nav-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--on-surface);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.cal-nav-btn:hover {
  background-color: var(--surface-container-high);
  color: var(--primary);
}

.calendar-month-title {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 800;
  color: var(--on-surface);
  text-transform: uppercase;
  min-width: 200px;
  text-align: center;
}

.calendar-filter {
  flex-shrink: 0;
}

.cal-filter-select {
  padding: 10px 20px;
  border-radius: 0;
  border: 1px solid var(--outline-variant);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--on-surface);
  background-color: var(--surface-container-lowest);
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cal-filter-select:focus {
  border-color: var(--primary);
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
}

.calendar-day-header {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #222222;
}

@media (max-width: 576px) {
  .calendar-day-header {
    font-size: 11px;
    padding: 8px;
  }
}

.calendar-days-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-column: span 7;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.calendar-day {
  min-height: 120px;
  padding: 10px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background-color: var(--surface-container-lowest);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: background-color 0.2s ease;
}

@media (max-width: 768px) {
  .calendar-day {
    min-height: 90px;
    padding: 6px;
  }
}

.calendar-day.empty-day {
  background-color: var(--surface-container-low);
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.01) 0px, rgba(0, 0, 0, 0.01) 2px, transparent 2px, transparent 10px);
}

.day-number {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface-variant);
  align-self: flex-start;
}

.calendar-day.today {
  background-color: rgba(112, 2, 16, 0.02);
}

.calendar-day.today .day-number {
  color: var(--primary);
  background-color: var(--primary-fixed);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rounded-full);
}

/* Event text list inside calendar cells */
.day-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: 80px;
}

.cal-event-pills {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 0;
  /* STRAIGHT SHARP EDGES */
  line-height: 1.2;
  word-break: break-word;
  text-align: center;
}

@media (max-width: 768px) {
  .cal-event-pills {
    font-size: 9px;
    padding: 2px 4px;
  }
}

/* Event category pill themes */
.cal-event-pills.category-services {
  background-color: var(--primary-fixed);
  color: var(--primary);
}

.cal-event-pills.category-conferences {
  background-color: #fcf1d8;
  color: #785a00;
}

.cal-event-pills.category-fasting {
  background-color: var(--tertiary-fixed);
  color: var(--on-tertiary-fixed-variant);
}

.cal-event-pills.category-retreats {
  background-color: #dfdcd7;
  color: #353534;
}

/* Help text footer */
.calendar-help-text {
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.calendar-help-text a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.calendar-help-text a:hover {
  color: var(--outline);
}