.events-page { background: #f4f6f9; }
.events-shell { width: min(calc(100% - 48px), 1280px); margin: 0 auto; }

.events-hero {
  min-height: 470px;
  margin-top: var(--header-height);
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(58, 127, 213, 0.1), transparent 38%),
    #fff;
}

.events-hero .events-shell { position: relative; padding: 92px 0 80px; }
.events-breadcrumb { position: absolute; top: 30px; left: 0; display: flex; align-items: center; gap: 10px; color: #8994a4; font-size: 12px; }
.events-breadcrumb strong { color: #536176; font-weight: 750; }
.events-eyebrow { margin: 0; color: #2875dc; font-size: 12px; font-weight: 900; letter-spacing: 0.22em; }
.events-hero h1 { margin: 16px 0 17px; color: #12223a; font-size: clamp(50px, 6vw, 82px); line-height: 1.05; letter-spacing: -0.07em; }
.events-hero > .events-shell > p:last-child { margin: 0; color: #728095; font-size: clamp(17px, 2vw, 22px); line-height: 1.75; }

.events-schedule-section { padding: 105px 0 125px; }
.events-section-heading { margin-bottom: 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.events-section-heading h2,
.monthly-agenda h2 { margin: 10px 0 0; color: #14243b; font-size: clamp(34px, 4vw, 50px); line-height: 1.15; letter-spacing: -0.055em; }
.events-section-heading > p { margin: 0; color: #7b8798; font-size: 15px; line-height: 1.8; }

.events-month-toolbar {
  min-height: 82px;
  margin-bottom: 22px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(13, 43, 79, 0.055);
}

.events-month-toolbar > button { border: 1px solid #dfe5ed; background: #fff; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.events-month-toolbar > button:not(.month-current) { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.events-month-toolbar svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.events-month-toolbar > button:hover { color: #1e68c7; border-color: #86b4ed; background: #f2f7fe; }
.events-month-toolbar h3 { min-width: 170px; margin: 0; color: #10213a; font-size: 23px; text-align: center; letter-spacing: -0.035em; }
.events-month-toolbar .month-current { min-height: 39px; margin-left: 7px; padding: 0 16px; color: #315f95; border-radius: 999px; font-size: 12px; font-weight: 800; }

.events-agenda-layout { display: grid; grid-template-columns: minmax(310px, .72fr) minmax(0, 1.55fr); gap: 22px; align-items: start; }
.monthly-agenda { background: #fff; border: 1px solid #e2e7ee; border-radius: 26px; box-shadow: 0 22px 65px rgba(13, 43, 79, 0.07); overflow: hidden; }

.day-agenda {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  min-height: 610px;
  padding: 42px 34px 30px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: radial-gradient(circle at 100% 0, rgba(77, 145, 225, .42), transparent 34%), #0b294c;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(7, 31, 60, .17);
}
.day-agenda > p { margin: 0; color: #8dbcf3; font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.day-agenda > h3 { margin: 11px 0 28px; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 27px; letter-spacing: -.04em; }
.day-agenda-list { display: grid; gap: 12px; }
.day-agenda-item { padding: 17px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; }
.day-agenda-item small { display: flex; align-items: center; gap: 8px; color: #9fc8f7; font-size: 10px; font-weight: 850; }
.day-agenda-item small::before { content: ""; width: 6px; height: 6px; background: #f1b24b; border-radius: 50%; }
.day-agenda-item h4 { margin: 7px 0 3px; color: #fff; font-size: 16px; }
.day-agenda-item p { margin: 0; color: rgba(255,255,255,.55); font-size: 12px; }
.day-agenda-empty { padding: 28px 0; color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.75; }
.selected-date-controls { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.selected-date-controls button { min-height: 39px; padding: 0 10px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; }
.selected-date-controls button:hover { color: #fff; background: rgba(255,255,255,.13); }
.selected-date-controls button:disabled { opacity: .32; cursor: not-allowed; }
.day-agenda > a { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 13px; font-weight: 800; }
.day-agenda > a span { color: #8fc1ff; font-size: 18px; }

.monthly-agenda { padding: 38px 40px 12px; }
.monthly-agenda > header { margin-bottom: 29px; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.monthly-agenda h2 { font-size: clamp(30px, 3vw, 40px); }
.monthly-agenda > header > span { color: #718095; font-size: 13px; }
.monthly-agenda-head,
.monthly-agenda-item { display: grid; grid-template-columns: 110px 90px minmax(0, 1fr) 82px; align-items: center; gap: 17px; }
.monthly-agenda-head { min-height: 40px; padding: 0 18px; color: #96a0ae; background: #f7f9fb; border-radius: 8px; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.monthly-agenda-item { width: 100%; min-height: 86px; padding: 12px 18px; color: #192a42; background: transparent; border: 0; border-bottom: 1px solid #e8ecf1; border-left: 3px solid transparent; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.monthly-agenda-item:hover { background: #f8fbff; }
.monthly-agenda-item.selected { background: #f1f7ff; border-left-color: #2875dc; }
.monthly-agenda-item:last-child { border-bottom: 0; }
.monthly-agenda-date { display: flex; align-items: baseline; gap: 7px; }
.monthly-agenda-date strong { color: #1f66bb; font-size: 24px; }
.monthly-agenda-date span { color: #8a96a6; font-size: 11px; }
.monthly-agenda-time { color: #58677b; font-size: 13px; font-weight: 750; }
.monthly-agenda-title strong { display: block; font-size: 16px; }
.monthly-agenda-title small { display: block; margin-top: 3px; color: #8a96a6; font-size: 11px; }
.monthly-agenda-type { justify-self: start; padding: 5px 10px; color: #1f68bd; background: #eaf3ff; border-radius: 999px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.monthly-agenda-type.education { color: #8a641d; background: #fff3d4; }
.monthly-agenda-type.fellowship { color: #6f4aa3; background: #f1eaff; }
.monthly-agenda-type.service { color: #24745d; background: #e6f6f0; }
.monthly-agenda-type.special { color: #a34d45; background: #ffebe8; }
.monthly-agenda-empty { padding: 70px 20px; color: #8a96a6; text-align: center; font-size: 14px; line-height: 1.8; }

@media (max-width: 1020px) {
  .events-agenda-layout { grid-template-columns: 1fr; }
  .day-agenda { position: static; min-height: 430px; }
}

@media (max-width: 760px) {
  .events-shell { width: min(calc(100% - 32px), 1280px); }
  .events-hero { min-height: 400px; }
  .events-hero .events-shell { padding: 82px 0 65px; }
  .events-breadcrumb { top: 24px; }
  .events-schedule-section { padding: 78px 0 95px; }
  .events-section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .events-section-heading > p br { display: none; }
  .events-month-toolbar { min-height: 72px; padding: 0 14px; border-radius: 16px; }
  .events-month-toolbar h3 { min-width: 132px; font-size: 19px; }
  .events-month-toolbar > button:not(.month-current) { width: 35px; height: 35px; }
  .events-month-toolbar .month-current { padding: 0 12px; }
  .day-agenda { min-height: 390px; padding: 34px 26px 28px; border-radius: 18px; }
  .monthly-agenda { padding: 30px 20px 7px; border-radius: 18px; }
  .monthly-agenda > header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .monthly-agenda-head { display: none; }
  .monthly-agenda-item { grid-template-columns: 65px 1fr auto; gap: 12px; padding: 15px 2px 15px 9px; }
  .monthly-agenda-time { grid-column: 2; grid-row: 2; }
  .monthly-agenda-title { grid-column: 2; grid-row: 1; }
  .monthly-agenda-type { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 440px) {
  .events-hero h1 { font-size: 46px; }
  .events-hero > .events-shell > p br { display: none; }
  .events-month-toolbar { gap: 7px; padding: 0 9px; }
  .events-month-toolbar h3 { min-width: 104px; font-size: 17px; }
  .events-month-toolbar > button:not(.month-current) { width: 32px; height: 32px; }
  .events-month-toolbar .month-current { min-height: 34px; padding: 0 10px; font-size: 10px; }
  .monthly-agenda-type { display: none; }
  .monthly-agenda-item { grid-template-columns: 58px 1fr; }
}
