.home-event {
  padding: var(--sp) 0;
  background: var(--odange-bg, #F7EEE3);
}

.home-event__container {
  position: relative;
}

.home-event__header {
  margin-bottom: var(--48);
}

.home-event__wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.home-event .calendar-wrapper {
  flex: 0 0 518px;
  padding: 60px;
  border-radius: var(--32, 32px);
  background: var(--secondary, #18280E);
  color: var(--white, #FFF);
}

.home-event .calendar-wrapper.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.home-event .calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 190%;
  font-size: 16px;
}

.home-event .calendar-nav {
  display: block;
  border: none;
  outline: none;
  width: 16px;
  aspect-ratio: 1;
  cursor: pointer;
}

.home-event .calendar-prev,
.home-event .calendar-next {
  background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.60001 12L5.60001 8L9.60001 4' stroke='white' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='round'/%3E%3C/svg%3E%0A") center/contain no-repeat;
}

.home-event .calendar-next {
  transform: scale(-1);
}

.home-event .calendar-weekdays div,
.home-event .calendar-day {
  font: 14px var(--default-font-family);
  aspect-ratio: 1;
  border-radius: 4px;
  color: var(--white, #FFF);
  text-align: center;
}

.home-event .calendar-weekdays div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: -moz-fit-content;
  height: fit-content;
  opacity: 0.7;
}

.home-event .calendar-day {
  background: var(--sand-8, rgba(255, 224, 148, 0.08));
  outline: none;
  border: 1px solid transparent;
}

.home-event .calendar-day.is-active {
  cursor: pointer;
}

.home-event .calendar-day.is-active:hover {
  border: 1px solid var(--primary, #E6DA91);
}

.home-event .calendar-day.is-past {
  opacity: 0.3;
  background: transparent;
  border-color: transparent;
}

.home-event .calendar-day.is-today {
  border: 1px solid var(--primary, #E6DA91);
  background: var(--sand-8, rgba(255, 224, 148, 0.08));
}

.home-event .calendar-day.is-selected {
  pointer-events: none;
  background: var(--gold, linear-gradient(180deg, #A0843E 0%, #E6DA91 100%));
}

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

.home-event__events {
  width: 690px;
}

.home-event__events-title {
  margin-bottom: 20px;
}

.home-event__events .events-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.home-event__events .events-list.is-loading {
  opacity: 0.5;
  pointer-events: none;
  min-height: 200px;
}

.home-event__events .events-list.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 4px solid var(--primary, #E6DA91);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.home-event__events .event-card {
  position: relative;
  aspect-ratio: 220/255;
  border-radius: var(--20, 20px);
  overflow: hidden;
  background: #070e11;
  transition: var(--transition);
}

.home-event__events .event-card:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #070e11;
  z-index: 2;
  transition: var(--transition);
  opacity: 0.2;
  pointer-events: none;
}

.home-event__events .event-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  z-index: 1;
  transition: var(--transition);
}

.home-event__events .event-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 16px;
  z-index: 3;
  color: var(--white, #FFF);
}

.home-event__events .event-card__time {
  width: -moz-fit-content;
  width: fit-content;
  margin-bottom: 4px;
  padding: 4px 8px;
  line-height: 140%;
  /* 19.6px */
  letter-spacing: 0.5px;
  border-radius: var(--8, 8px);
  background: #6c715b;
}

.home-event__events .event-card__title {
  line-height: 150%;
  /* 24px */
  letter-spacing: 0.5px;
}

.home-event__events .event-card__location {
  line-height: 160%;
  font-size: var(--body3-14);
}

.home-event__events .event-card__description,
.home-event__events .event-card__speaker {
  display: none;
}

.home-event__events .event-card__link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  font-size: 0;
}

.home-event__events .event-card__icon {
  position: relative;
  width: 48px;
  aspect-ratio: 1;
  display: block;
  margin-top: auto;
  margin-left: auto;
  font-size: 0;
  background: #6c715b;
  border-radius: 50%;
}

.home-event__events .event-card__icon::after {
  content: "";
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='11' viewBox='0 0 12 11' fill='none'%3E%3Cpath d='M7.10556 1.06055L11.15 5.06055L7.10556 9.06055M11.15 5.06055H0.75' stroke='white' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='round'/%3E%3C/svg%3E") center center no-repeat;
  transition: var(--transition);
  z-index: 2;
}

.home-event__events .event-card__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--primary, #e6da91);
  transition: var(--transition);
  z-index: 1;
}

.home-event__events .card-big {
  grid-area: 1/1/2/4;
  min-height: 535px;
  aspect-ratio: auto;
  padding: 12px;
}

.home-event__events .card-big:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 88px;
  background: linear-gradient(180deg, rgba(7, 14, 17, 0) 0%, #070E11 100%);
  z-index: 2;
}

.home-event__events .card-big:hover .event-card__image {
  opacity: 1;
}

.home-event__events .card-big__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.home-event__events .card-big__content {
  position: relative;
  z-index: 3;
  max-width: 430px;
  border-radius: 20px;
  color: var(--white);
  padding: 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  flex-flow: column;
  gap: 16px;
}

.home-event__events .card-big__content:before {
  background: rgba(7, 14, 17, 0.5);
}

.home-event__events .card-big__time {
  width: -moz-fit-content;
  width: fit-content;
  padding: 4px 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 140%;
  /* 28px */
  letter-spacing: 0.5px;
  border-radius: var(--8, 8px);
  background: #6c715b;
}

.home-event__events .card-big__title {
  line-height: 120%;
  /* 24px */
  letter-spacing: 0.5px;
  font-size: var(--h3);
}

.home-event__events .card-big__speaker {
  font-weight: 600;
  line-height: 1.9;
}

.home-event__events .card-big__location {
  font-weight: 600;
  line-height: 150%;
  /* 24px */
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 16px;
  text-align: right;
}

.home-event__events .card-big__description {
  line-height: 1.9;
}

.modal-event__wrap {
  position: relative;
  width: 100%;
  width: 900px;
  padding: 24px;
  border-radius: var(--48, 48px);
  border: 1px solid var(--white, #FFF);
  overflow: hidden;
}

.modal-event__image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  z-index: 1;
}

.modal-event__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  padding: 24px;
  border-radius: var(--32, 32px);
  color: var(--white, #FFF);
}

.modal-event__content::before {
  z-index: 1;
}

.modal-event__content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--black-50, rgba(7, 14, 17, 0.5));
}

.modal-event__header,
.modal-event__title,
.modal-event__speaker,
.modal-event__description {
  position: relative;
  z-index: 3;
}

.modal-event__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-event__time {
  width: -moz-fit-content;
  width: fit-content;
  margin-bottom: 4px;
  padding: 4px 8px;
  line-height: 140%;
  /* 19.6px */
  letter-spacing: 0.5px;
  border-radius: var(--8, 8px);
  background: #6c715b;
}

.modal-event__location {
  max-width: 70%;
}

.modal-event__description {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

@media (max-width: 1260px) {
  .home-event .calendar-wrapper {
    flex-basis: 100%;
  }

  .home-event__events {
    width: 100%;
  }

  .modal-event {
    width: 100%;
  }

  .modal-event__wrap {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .home-event .calendar-wrapper {
    padding: 16px;
  }

  .home-event .calendar-header {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .home-event .calendar-weekdays div,
  .home-event .calendar-day {
    font-size: 12px;
  }

  .home-event .calendar-weekdays,
  .home-event .calendar-grid {
    gap: 2px;
  }

  .home-event__events-title {
    margin-bottom: 16px;
  }

  .home-event__events .events-list {
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }

  .home-event__events .event-card__icon {
    width: 36px;
  }

  .home-event__events .card-big {
    min-height: 500px;
    display: flex;
    align-items: flex-end;
  }

  .home-event__events .card-big__content {
    padding: 8px;
    height: auto;
  }

  .home-event__events .card-big__time {
    font-size: 18px;
    line-height: 135%;
    /* 19.6px */
  }

  .home-event__events .card-big__location {
    font-size: 14px;
    line-height: 145%;
  }

  .home-event__events .card-big__description {
    line-height: 1.7;
  }

  .modal-event__wrap {
    padding: 12px;
  }

  .modal-event__content {
    padding: 12px;
  }

  .modal-event__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (hover: hover) {
  .home-event__events .event-card:hover:after {
    opacity: 0.5;
  }

  .home-event__events .event-card:hover .event-card__image {
    opacity: 1;
    transform: scale(1.12);
  }

  .home-event__events .event-card:hover .event-card__title {
    color: var(--primary, #E6DA91);
  }

  .home-event__events .event-card:hover .event-card__icon::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='11' viewBox='0 0 12 11' fill='none'%3E%3Cpath d='M7.10556 1.06055L11.15 5.06055L7.10556 9.06055M11.15 5.06055H0.75' stroke='%2318280E' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='round'/%3E%3C/svg%3E") center center no-repeat;
  }

  .home-event__events .event-card:hover .event-card__icon::before {
    width: 100%;
  }

  .modal-event .close-button:hover::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M11.6805 11.6786L4.3266 4.32471M11.6735 4.32476L4.31958 11.6787' stroke='%2318280E' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='round'/%3E%3C/svg%3E") center center no-repeat;
  }

  .modal-event .close-button:hover::before {
    width: 100%;
  }
}