/* 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 {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

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

* {
  word-wrap: normal;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  position: relative;
}

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

.main {
  display: flex;
  width: 1920px;
  height: auto;
  flex-direction: column;
  align-items: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notice-board-wrapper {
  display: flex;
  width: 100%;
  height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 256px;
  gap: 32px;
}

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

.title-and-carousel-container {
  display: flex;
  width: 1000px;
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 32px;
}

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

.title-wrapper {
  display: flex;
  width: 1000px;
  height: 36px;
  justify-content: flex-start;
  align-items: center;
}

.title-container {
  height: 36px;
  width: 67px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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


/* -------------------------------------------------------------------------------------------------------------------------------------------- */
/* EVENT CAROUSEL CONTAINER */
/* -------------------------------------------------------------------------------------------------------------------------------------------- */

.event-carousel-container {
  display: flex;
  width: 100%;
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}


/* -------------------------------------------------------------------------------------------------------------------------------------------- */
/* 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;
}

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

.dashboard-wrapper {
  display: flex;
  width: 1240px;
  height: auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

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

.event-cards-container {
  display: flex;
  width: 1240px;
  height: 1188px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  gap: 32px 20px;
  flex-wrap: wrap;
}

.event-card {
  display: flex;
  width: 320px;
  height: 449px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
  border: solid 1px #ccc;
}

.event-card-link {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  text-decoration: none;
}

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

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: lightgray 0.008px -1.997px / 99.998% 100.312% no-repeat,
    lightgray -1px 0px / 100.627% 100% no-repeat;
}

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

.event-info {
  width: 320px;
  height: 113px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  padding: 0 4px;
}

.event-title {
  width: 100%;
  height: 51px;
  max-height: 51px;
  align-self: stretch;
  overflow: hidden;
  color: var(--Gray-100, #000);
  text-overflow: ellipsis;
  white-space: nowrap;
  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: 20px;
  color: #f00;
  font-family: 'HanwhaGothic', sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 250;
  line-height: 150%; /* 19.5px */
}

.event-status {
  width: auto;
  height: 22px;
  display: flex;
  padding: 2px 8px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  border: 1px solid #f00;
  color: #f00;
}

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

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

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

.event-card.event-card-disabled .event-image-container .event-image-disabled {
  filter: brightness(30%);
}

.event-card.event-card-disabled .event-image-container {
  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: 14px;
  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;
}

/* .event-card:not(.event-card-disabled) .event-card-link:hover .event-image-container {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 1);
  transition: box-shadow 0.3s ease;
} */

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

table {
  width: 1200px;
  height: auto;
  max-height: 754px;
  text-align: center;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

thead {
  width: 1168px;
  height: 58px;
  border: solid 1px #000;
}

thead tr {
  border-bottom: solid 1px #000;
}

.thead-tr {
  border-bottom: solid 1px #000;
}

thead th {
  border-bottom: 1px solid #e6e6e6;
}

.table thead tr th:nth-child(2) {
  text-align: left;
}

.table tbody tr td:nth-child(2) {
  text-align: left;
}

tbody tr td {
  border-bottom: 1px solid #e6e6e6;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  height: 58px;
}

tbody a {
  text-decoration: none;
  height: 58px;
}

tbody tr:nth-child(1) td:nth-child(1),
tbody tr:nth-child(2) td:nth-child(1) {
  color: #000;
}

.fixed-height {
  height: 58px;
}

.auto-height {
  height: calc(100% - 100px);
}

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

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

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

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

@media (max-width: 991px) {
  .total-count-container {
    padding: 0 20px;
  }
}

@media (max-width: 640px) {
  .total-count-container {
    padding: 0 16px;
    font-size: 15px;
  }
}

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

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

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

.pagination a {
  color: #4d4d4d;
  float: left;
  padding: 8px 16px;
  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: flex;
  width: 1200px;
  height: auto;
  padding: 32px 0px;
  flex-direction: column;
  align-items: center;
}

.searchbar {
  display: flex;
  padding-top: 32px;
  padding-bottom: 32px;
  flex-direction: column;
  align-items: center;
  font-family: 'HanwhaGothic', -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 300;
  justify-content: center;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .search {
    max-width: 100%;
  }
}

.select-text {
  border: 1px solid #b3b3b3;
  align-self: stretch;
  display: flex;
  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;
}

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

.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;
}

@media (max-width: 991px) {
  .search-input {
    max-width: 100%;
  }
}

.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: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}

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

/* 모바일 버전 화면 숨김 ===================================================== */

.mobile_header_wrapper {
  display: none;
}

.mobile_footer_wrapper {
  display: none;
}