/* FONT ===================================================== */

@font-face {
  font-family: 'HanwhaGothic';
  src: url('/QR/fonts/HanwhaGothicR.ttf') format('truetype'),
    url('/QR/fonts/HanwhaGothicR_OTF.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'HanwhaGothic';
  src: url('/QR/fonts/HanwhaGothicL.ttf') format('truetype'),
    url('/QR/fonts/HanwhaGothicL_OTF.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'HanwhaGothic';
  src: url('/QR/fonts/HanwhaGothicEL.ttf') format('truetype'),
    url('/QR/fonts/HanwhaGothicEL_OTF.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'HanwhaGothic';
  src: url('/QR/fonts/HanwhaGothicT.ttf') format('truetype'),
    url('/QR/fonts/HanwhaGothicT_OTF.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'HanwhaGothic';
  src: url('/QR/fonts/HanwhaGothicB.ttf') format('truetype'),
    url('/QR/fonts/HanwhaGothicB_OTF.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/*  Hanwha fonts ===================================================== */

@font-face {
  font-family: 'Hanwha';
  src: url('/QR/fonts/HanwhaR.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Hanwha';
  src: url('/QR/fonts/HanwhaB.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* HTML ===================================================== */

html {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

* {
  word-wrap: normal;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

.container {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* ============================================================================================================================ */

.main {
  display: flex;
  width: 100%;
  max-width: 360px;
  height: auto;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0px 0px 0px;
}

.notice-board-wrapper {
  display: flex;
  width: 100%;
  max-width: 360px;
  height: auto;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */
/* TITLE AND CAROUSEL CONTAINER */
/* -------------------------------------------------------------------------------------------------------------------------------------------- */

.title-and-carousel-container {
  display: flex;
  width: 100%;
  max-width: 360px;
  height: auto;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */
/* TITLE WRAPPER */
/* -------------------------------------------------------------------------------------------------------------------------------------------- */

.title-wrapper {
  display: flex;
  width: 100%;
  max-width: 360px;
  height: auto;
  align-items: center;
}

.title-container {
  display: flex;
  width: 100%;
  max-width: 360px;
  height: auto;
  padding: 0px 16px;
  align-items: flex-start;
}

.title-container p {
  color: var(--Primary-100, #f60);
  text-align: center;
  font-family: 'HanwhaGothic', sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 250;
  line-height: 150%; /* 22.5px */
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */
/* EVENT BANNER CONTAINER */
/* -------------------------------------------------------------------------------------------------------------------------------------------- */

.event-banner-container {
  width: 1000px;
  height: 300px;
  flex-shrink: 0;
  aspect-ratio: 10/3;
}

.event-banner-image-container {
  display: flex;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-banner-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */
/* CARDS CONTAINER */
/* -------------------------------------------------------------------------------------------------------------------------------------------- */

.cards-container {
  display: flex;
  width: 100%;
  max-width: 360px;
  height: auto;
  justify-content: center;
  align-items: center;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */
/* DASHBOARD WRAPPER */
/* -------------------------------------------------------------------------------------------------------------------------------------------- */

.dashboard-wrapper {
  display: flex;
  width: 100%;
  max-width: 360px;
  height: auto;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */
/* EVENTS CARDS CONTAINER */
/* -------------------------------------------------------------------------------------------------------------------------------------------- */

.event-cards-container {
  display: flex;
  width: 100%;
  max-width: 360px;
  height: auto;
  padding: 0px 16px;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  gap: 13px 8px;
  flex-wrap: wrap;
}

.event-card {
  display: flex;
  width: 320px;
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.event-card-link {
  display: flex;
  width: auto;
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
}

.event-image-container {
  display: flex;
  width: 320px;
  height: 320px;
  flex-direction: column;
  align-items: flex-start;
}

.event-image {
  width: 320px;
  height: 320px;
  object-fit: cover;
}

.event-card:hover .event-image {
  filter: brightness(60%) grayscale(20%);
}

.event-info {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.event-title {
  width: 100%;
  max-width: 320px;
  height: 51px;
  max-height: 51px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--Gray-100, #000);
  font-family: 'HanwhaGothic', sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 250;
  line-height: 150%; /* 25.5px */
}

.event-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  width: auto;
  height: auto;
  color: #F00;
  font-family: 'HanwhaGothic', sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 250;
  line-height: 150%; /* 19.5px */
}

.event-date-disabled {
  color: #808080;
}

.event-status {
  width: auto;
  height: auto;
  display: flex;
  padding: 2px 8px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  border: 1px solid #f00;
  color: #F00;
  font-family: 'HanwhaGothic', sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%; /* 18px */
}

.event-status-disabled {
  color: #fff;
  border: 1px solid #fff;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */
/* DISABLED EVENT CARDS */
/* -------------------------------------------------------------------------------------------------------------------------------------------- */

.event-card.event-card-disabled {
  opacity: 0.9;
  height: auto;
}

.event-card.event-card-disabled .event-image-container .event-image-disabled {
  width: 320px;
  height: 320px;
  object-fit: cover;
  filter: brightness(30%);
}

.event-card.event-card-disabled .event-image-container {
  display: flex;
  width: 320px;
  height: 320px;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.event-card.event-card-disabled .event-image-container::after {
  content: url('/Shopping/img/events/event_locked.png');
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  font-family: 'HanwhaGothic', sans-serif;
  white-space: pre;
  line-height: 1.4;
  z-index: 1;
  padding: 5px;
}

.event-card.event-card-disabled .event-card-link {
  pointer-events: none;
  cursor: default;
}

.event-card .date-disabled {
  color: #888;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------- */
/* EVENTS TABLE */
/* -------------------------------------------------------------------------------------------------------------------------------------------- */

.total-count-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 0px 16px;
  margin: 0 auto;
  font-family: 'HanwhaGothic', sans-serif;
  font-size: 13px;
  line-height: 150%;
}

.total-count-text {
  color: #808080;
}

.total-count-number {
  color: #f60;
}

/* ---------------------------------------------------------------- */

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  height: 40px;
  margin: 0 auto;
  font-family: 'HanwhaGothic', -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 150%;
}

.pagination {
  width: auto;
  display: inline-block;
}

.pagination a {
  color: #4d4d4d;
  float: left;
  padding: 4px 10px;
  text-decoration: none;
  border: none;
  border-radius: 50%;
}

.pagination .active-page {
  color: #ffffff;
  background-color: #f60;
  border: none;
}

.pagination a .fas {
  color: #808080;
}

/* ---------------------------------------------------------------- */

.search-container {
  display: none;
  width: 100%;
  max-width: 360px;
  height: auto;
  align-items: center;
}

.searchbar {
  display: flex;
  width: 100%;
  max-width: 360px;
  height: auto;
  align-items: center;
}

.search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 360px;
  height: auto;
  gap: 8px;
  justify-content: flex-start;
}

.select-text {
  border: 1px solid #b3b3b3;
  align-self: stretch;
  display: none;
  margin-top: auto;
  margin-bottom: auto;
  padding: 14px 16px;
  align-items: center;
  color: #000;
  white-space: nowrap;
  justify-content: flex-start;
  width: 120px;
  cursor: pointer;
  border: solid 1px #b3b3b3;
}

.search-input {
  align-self: stretch;
  width: 432px;
  border: 1px solid #b3b3b3;
  min-width: 240px;
  margin-top: auto;
  margin-bottom: auto;
  padding: 12px 16px;
  color: #000;
}

.search-input::placeholder {
  color: #b3b3b3;
}

.search-button {
  align-self: stretch;
  background-color: #373331;
  margin-top: auto;
  margin-bottom: auto;
  padding: 12px 16px;
  color: #fff;
  font-weight: 400;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.search-button:hover {
  background-color: #4a4543;
}

.search-button:focus {
  outline: 2px solid #6a6a6a;
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .search-button {
    white-space: initial;
  }
}

/* Accessibility enhancements */
.select-text:focus,
.search-input:focus {
  outline: 2px solid #f60;
  outline-offset: 1px;
}

/* Remove default button styling */
button {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* 모바일 환경 스타일 추가 ===================================================== */

.desktop_header_wrapper {
  display: none;
}

.desktop_footer_wrapper {
  display: none;
}

.mobile_header_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}

.mobile_footer_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}
