:root {
  --primary: #123f4d;
  --primary-dark: #092c38;
  --primary-deep: #061f29;
  --turquoise: #14b8b0;
  --turquoise-dark: #078d88;
  --turquoise-light: #dff8f5;
  --mint: #8ee4dc;
  --mint-soft: #effcfb;
  --white: #ffffff;
  --cream: #f8fcfb;
  --text: #29454e;
  --text-light: #647980;
  --muted: #8ca0a6;
  --border: #d8ecea;
  --shadow: 0 14px 35px rgba(18, 63, 77, 0.1);
  --shadow-hover: 0 20px 45px rgba(18, 63, 77, 0.16);
}

.calendar-page {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 4% 12%,
      rgba(20, 184, 176, 0.1) 0 100px,
      transparent 101px
    ),
    radial-gradient(
      circle at 96% 80%,
      rgba(142, 228, 220, 0.15) 0 140px,
      transparent 141px
    ),
    var(--cream);
}

.calendar-page::before,
.calendar-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.calendar-page::before {
  width: 65px;
  height: 65px;
  top: 310px;
  left: 3%;
  background: rgba(20, 184, 176, 0.06);
}

.calendar-page::after {
  width: 45px;
  height: 45px;
  top: 500px;
  right: 5%;
  background: rgba(142, 228, 220, 0.13);
}

.calendar-page-header {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 55px 0 45px;
  text-align: center;
  background:
    radial-gradient(
      circle at 8% 25%,
      rgba(20, 184, 176, 0.12) 0 85px,
      transparent 86px
    ),
    radial-gradient(
      circle at 92% 75%,
      rgba(142, 228, 220, 0.16) 0 115px,
      transparent 116px
    ),
    var(--mint-soft);
  border-bottom: 1px solid var(--border);
}

.calendar-page-header::before,
.calendar-page-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.calendar-page-header::before {
  width: 155px;
  height: 155px;
  left: -70px;
  bottom: -95px;
  background: rgba(20, 184, 176, 0.07);
}

.calendar-page-header::after {
  width: 70px;
  height: 70px;
  right: 12%;
  top: -35px;
  background: rgba(142, 228, 220, 0.18);
}

.calendar-page-header .section-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 11px;
  padding: 7px 14px;
  color: var(--turquoise-dark);
  background: var(--turquoise-light);
  border: 1px solid rgba(20, 184, 176, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.calendar-page-header h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.7px;
}

.calendar-page-header p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

.calendar-full-section {
  position: relative;
  z-index: 1;
  padding: 55px 0 75px;
}

.calendar-full-card {
  position: relative;
  overflow: visible;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 38px);
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.calendar-full-card:hover {
  border-color: rgba(20, 184, 176, 0.22);
  box-shadow: var(--shadow-hover);
}

.calendar-full-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.calendar-current-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.calendar-current-date h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--turquoise-dark);
  background: var(--turquoise-light);
  border: 1px solid rgba(20, 184, 176, 0.2);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.calendar-nav:hover {
  color: var(--white);
  background: var(--turquoise);
  border-color: var(--turquoise);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20, 184, 176, 0.2);
}

.calendar-nav:active {
  transform: scale(0.96);
}

.today-button {
  padding: 8px 16px;
  color: var(--turquoise-dark);
  background: var(--white);
  border: 1px solid rgba(20, 184, 176, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.today-button:hover {
  color: var(--white);
  background: var(--turquoise);
  border-color: var(--turquoise);
  transform: translateY(-1px);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
}

.calendar-weekdays div {
  padding: 14px 5px;
  color: var(--primary-dark);
  background: var(--turquoise-light);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.calendar-weekdays div:last-child {
  border-right: none;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: visible;
  border-left: 1px solid var(--border);
}

.calendar-day {
  position: relative;
  min-height: 130px;
  padding: 12px;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.calendar-day:hover {
  background: var(--mint-soft);
}

.day-number {
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  color: var(--primary);
  border-radius: 50%;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.calendar-day.other-month {
  background: #f7fbfa;
}

.calendar-day.other-month .day-number {
  color: #b3c3c6;
}

.calendar-day.today .day-number {
  color: var(--white);
  background: linear-gradient(135deg, var(--turquoise-dark), var(--turquoise));
  box-shadow: 0 5px 13px rgba(20, 184, 176, 0.25);
}

.calendar-day.has-event {
  background: #f2fbfa;
  cursor: pointer;
}

.calendar-day.has-event:hover {
  background: var(--turquoise-light);
}

.event-indicator {
  position: absolute;
  bottom: 13px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--turquoise);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(20, 184, 176, 0.25);
  transform: translateX(-50%);
}

.event-count {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  color: var(--white);
  background: var(--primary);
  border-radius: 999px;
  line-height: 23px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.calendar-event-tooltip {
  position: absolute;
  z-index: 999;
  left: 50%;
  bottom: calc(100% + 12px);
  width: 310px;
  max-width: calc(100vw - 30px);
  padding: 18px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(18, 63, 77, 0.2);
  transform: translateX(-50%) translateY(8px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.calendar-event-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}

.calendar-day.has-event:hover .calendar-event-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip-event strong {
  display: block;
  margin-bottom: 6px;
  color: var(--turquoise-dark);
  font-size: 15px;
  font-weight: 800;
}

.tooltip-event span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tooltip-event p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.calendar-event-tooltip hr {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.event-dot {
  background: var(--turquoise);
}

.today-dot {
  background: var(--primary);
}

.calendar-information {
  position: relative;
  z-index: 1;
  padding: 0 0 75px;
}

.calendar-info-card,
.calendar-tip-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 30px);
  box-shadow: var(--shadow);
}

.calendar-info-card::before,
.calendar-tip-card::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -35px;
  top: -35px;
  border-radius: 50%;
  background: rgba(20, 184, 176, 0.07);
  pointer-events: none;
}

.calendar-info-card .section-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 12px;
  color: var(--turquoise-dark);
  background: var(--turquoise-light);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.calendar-info-card h3,
.calendar-tip-card h3 {
  margin: 5px 0 15px;
  color: var(--primary-dark);
  font-size: 23px;
  line-height: 1.3;
  font-weight: 800;
}

.calendar-info-card p,
.calendar-tip-card p {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.calendar-tip-card {
  background:
    radial-gradient(
      circle at 90% 15%,
      rgba(142, 228, 220, 0.28) 0 70px,
      transparent 71px
    ),
    var(--turquoise-light);
  border-color: rgba(20, 184, 176, 0.2);
}

.tip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 15px;
  color: var(--turquoise-dark);
  background: var(--white);
  border: 1px solid rgba(20, 184, 176, 0.18);
  border-radius: 17px;
  font-size: 26px;
  box-shadow: 0 6px 15px rgba(20, 184, 176, 0.08);
}

@media (max-width: 991px) {
  .calendar-full-card {
    padding: 20px;
  }

  .calendar-day {
    min-height: 105px;
  }

  .calendar-weekdays div {
    font-size: 12px;
  }

  .calendar-event-tooltip {
    width: 270px;
  }
}

@media (max-width: 767px) {
  .calendar-page-header {
    padding: 45px 15px 35px;
  }

  .calendar-page-header h2 {
    font-size: 31px;
  }

  .calendar-page-header p {
    font-size: 14px;
  }

  .calendar-full-section {
    padding: 30px 10px 55px;
  }

  .calendar-full-card {
    padding: 10px;
    border-radius: 24px;
    overflow: visible;
  }

  .calendar-full-header {
    gap: 8px;
    margin-bottom: 18px;
  }

  .calendar-current-date {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
  }

  .calendar-current-date h3 {
    font-size: 21px;
    text-align: center;
    white-space: nowrap;
  }

  .calendar-nav {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .today-button {
    padding: 6px 12px;
    font-size: 11px;
  }

  .calendar-weekdays {
    border-radius: 12px 12px 0 0;
  }

  .calendar-weekdays div {
    min-width: 0;
    padding: 9px 2px;
    font-size: 9px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
  }


  .calendar-day {
    min-width: 0;
    min-height: 72px;
    padding: 5px;
    overflow: visible;
  }
  .calendar-days{
    width: 100%;
    overflow: visible;
  }

  .day-number {
    width: 27px;
    height: 27px;
    line-height: 27px;
    font-size: 12px;
  }

  .event-indicator {
    bottom: 7px;
    width: 7px;
    height: 7px;
  }

  .event-count {
    top: 5px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 9px;
  }

  .calendar-event-tooltip {
    position: absolute;
    z-index: 2000;
    left: 50%;
    bottom: calc(100% + 10px);
    width: calc(100vw - 40px);
    max-width: 330px;
    padding: 15px;
    transform: translateX(-50%) translateY(8px);
    border-radius: 18px;
  }

  .calendar-event-tooltip::after {
    display: block;
  }

  .calendar-day.has-event:hover .calendar-event-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .calendar-legend {
    gap: 15px;
    flex-wrap: wrap;
  }
  .legend-item {
    font-size: 12px;
  }

  .calendar-information {
    padding: 0 15px 55px;
  }

  .calendar-info-card,
  .calendar-tip-card {
    padding: 23px;
    border-radius: 25px;
  }

  .calendar-info-card h3,
  .calendar-tip-card h3 {
    font-size: 21px;
  }
}

@media (max-width: 420px) {
  .calendar-page-header {
    padding: 40px 12px 32px;
  }

  .calendar-page-header h2 {
    font-size: 28px;
  }

  .calendar-page-header p {
    font-size: 13px;
    line-height: 1.6;
  }

  .calendar-full-section {
    padding: 25px 7px 45px;
  }

  .calendar-full-card {
    padding: 7px;
    border-radius: 20px;
  }

  .calendar-full-header {
    gap: 5px;
    margin-bottom: 15px;
  }

  .calendar-current-date {
    gap: 5px;
  }

  .calendar-current-date h3 {
    font-size: 18px;
  }

  .calendar-nav {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .today-button {
    padding: 5px 10px;
    font-size: 10px;
  }

  .calendar-weekdays div {
    padding: 8px 1px;
    font-size: 8px;
  }

  .calendar-day {
    min-height: 64px;
    padding: 4px;
  }

  .day-number {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 11px;
  }

  .event-indicator {
    bottom: 6px;
    width: 6px;
    height: 6px;
  }

  .event-count {
    top: 4px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    font-size: 8px;
  }

  .calendar-event-tooltip {
    width: calc(100vw - 28px);
    max-width: 340px;
    padding: 14px;
    border-radius: 17px;
  }

  .tooltip-event strong {
    font-size: 14px;
  }

  .tooltip-event span {
    font-size: 11px;
  }

  .tooltip-event p {
    font-size: 12px;
    line-height: 1.5;
  }

  .calendar-legend {
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
  }

  .legend-item {
    font-size: 11px;
  }
}