:root {
  --esvrm-blue: #006E8A;
  --esvrm-dark: #292929;
  --esvrm-text: #3f4650;
  --esvrm-light: #f4f7f8;
  --esvrm-soft-blue: #e8f4f7;
  --white: #ffffff;
  --line: #d9dee2;
  --shadow: 0 26px 55px rgba(41, 41, 41, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--esvrm-dark);
  background: #ffffff;
}

.site-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--esvrm-blue);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.top-book-btn,
.book-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 2px;
  border: 1px solid var(--esvrm-blue);
  color: var(--white);
  background: var(--esvrm-blue);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .04em;
}

.outline-btn {
  color: var(--esvrm-blue);
  background: var(--white);
}

main {
  max-width: 1180px;
  margin: 0 auto 42px;
  padding: 0 20px;
}

/* FIRST SECTION, MATCHING THE SCREENSHOT STYLE */
.hero-slider-section {
  position: relative;
  margin: 10px calc(50% - 50vw) 42px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(to bottom, rgba(0,110,138,.14), rgba(255,255,255,.92)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  overflow: hidden;
}

.hero-slider-section::before,
.hero-slider-section::after {
  content: "";
  position: absolute;
  top: 88px;
  bottom: 88px;
  width: 140px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}

.hero-slider-section::before {
  left: calc(50% - 650px);
}

.hero-slider-section::after {
  right: calc(50% - 650px);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1025px, calc(100vw - 110px));
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 50px 60px;
}

.hero-card {
  display: grid;
  grid-template-columns: 48% 1fr;
  gap: 40px;
  align-items: center;
  min-height: 330px;
}

.hero-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.hero-copy h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--esvrm-dark);
  font-weight: 500;
}

.hero-copy .event-date {
  color: var(--esvrm-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
}

.hero-copy p {
  color: var(--esvrm-text);
  font-size: 17px;
  line-height: 1.58;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 54px;
  height: 90px;
  border: 0;
  background: transparent;
  color: #8c9298;
  font-size: 76px;
  font-weight: 200;
  line-height: .8;
  cursor: pointer;
}

.hero-arrow:hover {
  color: var(--esvrm-blue);
}

.hero-arrow-left {
  left: calc(50% - 560px);
}

.hero-arrow-right {
  right: calc(50% - 560px);
}

/* Remaining sections */
.event-section {
  margin: 26px 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(41,41,41,.06);
}

.section-title-row,
.calendar-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 12px 16px;
  background: var(--esvrm-soft-blue);
}

.section-title-row h2,
.calendar-header h2 {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--esvrm-blue);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.event-card {
  min-height: 285px;
  border-right: 1px solid var(--line);
  cursor: pointer;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.event-card:last-child { border-right: 0; }

.event-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, opacity .25s ease;
}

.event-card:hover img {
  transform: scale(1.04);
  opacity: .82;
}

.event-card h3 {
  margin: 0;
  padding: 18px 12px;
  text-align: center;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.25;
  color: var(--esvrm-dark);
}

.calendar-header {
  justify-content: space-between;
  background: var(--esvrm-blue);
}

.calendar-header h2 {
  color: var(--white);
}

.month-btn {
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 38px;
  cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays span {
  text-align: center;
  font-weight: 700;
  padding: 12px 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--esvrm-blue);
}

.calendar-weekdays span:last-child { border-right: 0; }

.calendar-day {
  min-height: 105px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px;
  background: #fff;
}

.calendar-day:nth-child(7n) { border-right: 0; }

.day-number {
  font-size: 12px;
  font-weight: 700;
  opacity: .75;
}

.calendar-event {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 5px;
  border: 1px solid var(--esvrm-blue);
  background: var(--esvrm-soft-blue);
  color: var(--esvrm-dark);
  font-size: 11px;
  cursor: pointer;
  text-align: center;
}

.calendar-day.empty { background: #f8f8f8; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(41,41,41,.68);
  padding: 22px;
  align-items: center;
  justify-content: center;
}

.modal.show { display: flex; }

.modal-panel {
  background: var(--white);
  width: min(680px, 96vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
  padding: 34px;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--esvrm-dark);
  font-size: 28px;
  line-height: 28px;
  cursor: pointer;
}

.modal-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  margin-bottom: 18px;
  display: none;
}

.modal-panel h2 {
  text-transform: uppercase;
  color: var(--esvrm-blue);
  font-size: 22px;
  margin-bottom: 16px;
}

.modal-date {
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

.modal-panel p {
  line-height: 1.55;
  color: var(--esvrm-text);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

footer {
  text-align: center;
  padding: 36px 18px 46px;
  background: var(--esvrm-dark);
  color: var(--white);
}

footer p { margin-bottom: 10px; }

footer a {
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-shell {
    width: min(820px, calc(100vw - 56px));
    padding: 36px;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 310px;
  }

  .hero-arrow-left { left: 10px; }
  .hero-arrow-right { right: 10px; }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 560px) {
  .site-top {
    display: block;
    padding: 18px;
  }

  .top-book-btn { margin-top: 14px; }

  main {
    padding: 0;
  }

  .hero-slider-section {
    margin-left: 0;
    margin-right: 0;
    min-height: auto;
    padding: 28px 0;
  }

  .hero-shell {
    width: calc(100vw - 34px);
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-arrow {
    font-size: 54px;
    width: 36px;
  }

  .hero-image {
    height: 230px;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .calendar-day {
    min-height: 72px;
    padding: 4px;
  }

  .calendar-weekdays span {
    font-size: 10px;
  }
}
