@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
}

:root {
  --nav-height: 94px;
  --text: #143041;
  --bg: #edf8ff;
  --accent: #00d2e8;
  --accent-2: #f8a000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.hero {
  padding: calc(var(--nav-height) + 50px) 0 50px;
  color: #f4fcff;
  background:
    linear-gradient(180deg, rgba(2, 14, 23, 0.24), rgba(2, 14, 23, 0.66)),
    radial-gradient(circle at 15% 15%, #15a6d8 0%, transparent 35%),
    radial-gradient(circle at 85% 10%, #00d4f0 0%, transparent 35%),
    linear-gradient(130deg, #031c2c 20%, #063d56 90%);
}

.eyebrow {
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--accent);
}

h1 {
  margin: 10px 0 14px;
  font-size: clamp(1.86rem, 5.58vw, 2.976rem);
  line-height: 1.1;
}

p {
  line-height: 1.6;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  border-radius: 999px;
  font-weight: 600;
  padding: 12px 26px;
}

.btn-primary {
  color: #132c3d;
  background: linear-gradient(90deg, #ffcc38, #f8a000);
}

.btn-secondary {
  color: #0f2738;
  background: linear-gradient(90deg, #6df2ff, #2fd9ff);
}

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

.section {
  padding: 52px 0 72px;
}

.card {
  border: 1px solid #cce8f4;
  border-radius: 18px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 12px 26px rgba(20, 48, 65, 0.08);
}

.card h2 {
  margin: 0 0 10px;
}

.events-search {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #cce8f4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(20, 48, 65, 0.08);
}

.events-search__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f5d7a;
}

.events-search__field {
  position: relative;
}

.events-search__input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 2.8rem 0.75rem 1rem;
  border: 1px solid #b9deee;
  border-radius: 999px;
  background: #f8fcff;
  color: #143041;
  font: inherit;
}

.events-search__input:focus {
  outline: none;
  border-color: #2fd9ff;
  box-shadow: 0 0 0 3px rgba(47, 217, 255, 0.22);
}

.events-search__input::placeholder {
  color: #6d8798;
}

.events-search__clear {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e8f6fc;
  color: #0f5d7a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.events-search__clear:hover {
  background: #d7eff9;
}

.events-search__meta {
  margin: 8px 0 0;
  min-height: 1.2em;
}

.calendar-card {
  margin-bottom: 18px;
}

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

.calendar-header h2 {
  margin: 0 0 6px;
}

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

.calendar-nav__label {
  margin: 0;
  min-width: 9.5rem;
  text-align: center;
  font-weight: 700;
  color: #0f5d7a;
}

.calendar-nav__btn {
  width: 38px;
  height: 38px;
  border: 1px solid #b9deee;
  border-radius: 50%;
  background: #f4fcff;
  color: #0f5d7a;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-nav__btn:hover {
  background: #dff4fb;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #496273;
  text-align: center;
}

.calendar-cell--empty {
  min-height: 44px;
}

.calendar-day {
  position: relative;
  min-height: 52px;
  border: 1px solid #d5eaf4;
  border-radius: 12px;
  background: #f8fcff;
  color: #143041;
  font: inherit;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.calendar-day:hover {
  transform: translateY(-1px);
  border-color: #8fd9ef;
}

.calendar-day__number {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.calendar-day__dot {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f8a000;
  transform: translateX(-50%);
}

.calendar-day--has-events {
  background: #fff8e8;
  border-color: #f2d27f;
}

.calendar-day--today {
  box-shadow: inset 0 0 0 2px #2fd9ff;
}

.calendar-day--selected {
  background: linear-gradient(180deg, #e8fbff, #dff4fb);
  border-color: #2fd9ff;
}

.calendar-day-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #d5eaf4;
}

.calendar-day-panel__title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #0f5d7a;
  text-transform: capitalize;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.events-list {
  display: grid;
  gap: 12px;
}

.event-card {
  border: 1px solid #d5eaf4;
  border-radius: 14px;
  background: #f8fcff;
  padding: 14px;
}

.event-card h3 {
  margin: 0 0 6px;
  font-size: 0.93rem;
}

.event-meta {
  margin: 0 0 8px;
  color: #0f5d7a;
  font-weight: 600;
  font-size: 0.9rem;
}

.event-card p {
  margin: 0;
}

.event-actions {
  margin-top: 10px;
}

.featured-section {
  padding-top: 0;
}

.muted {
  margin: 0 0 14px;
  color: #496273;
}

.warning {
  display: none;
  margin-bottom: 14px;
  border-left: 4px solid #f8a000;
  background: #fff9ed;
  color: #734c00;
  padding: 10px 12px;
  border-radius: 10px;
}

code {
  background: #edf5fa;
  border-radius: 6px;
  padding: 2px 6px;
}

#luma-embed {
  width: 100%;
  min-height: 720px;
  border: 1px solid #c9e5f1;
  border-radius: 12px;
  background: #f8fcff;
}

@media (max-width: 900px) {
  .calendar-header {
    flex-direction: column;
  }

  .calendar-nav {
    width: 100%;
    justify-content: center;
  }

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

@media (max-width: 640px) {
  .calendar-weekdays,
  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    min-height: 44px;
    border-radius: 10px;
  }

  .calendar-day__number {
    margin-top: 6px;
    font-size: 0.82rem;
  }

  .calendar-weekdays {
    font-size: 0.62rem;
  }
}

@media (max-width: 640px) {
  #luma-embed {
    min-height: 620px;
  }
}
