@charset "utf-8";

/* --- Left Column --- */
.dz-fair-sidebar .dz-thumbnail {
  position: relative;
  border-radius: 1.25rem;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dz-fair-sidebar .dz-thumbnail img {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* 이 부분을 추가하거나 확인해 주세요. */
  z-index: -1;
}
.dz-fair-sidebar .dz-host-info {
  border-radius: 1.25rem;
  border: 1px solid #eee;
  background: #fff;
  padding: 1.5rem 1.88rem;
  border-radius: 1.25rem;
  border: 1px solid #eee;
  background: #fff;
}

.dz-host-info .dz-host-avatar {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  background: #d9d9d9;
  fill: #d9d9d9;
  border-radius: 50%;
  background-color: #e9ecef;
}

.dz-host-info .dz-host-avatar img {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* 이 부분을 추가하거나 확인해 주세요. */
  z-index: -1;
}

.dz-host-info .dz-host-contact {
  font-size: 0.9rem;
  color: #6c757d;
}
.dz-host-info .dz-host-contact i {
  margin-right: 0.5rem;
}

.dz-fair-sidebar .dz-apply-btn {
  border-radius: 1.25rem;
  background: #151515;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* --- Right Column --- */
.dz-fair-main {
  /* padding: 0 2rem; */
  border-radius: 0.5rem;
}
.dz-fair-main .dz-fair-header {
  margin-bottom: 1.5rem;
}
.dz-fair-main .dz-fair-title {
  color: #151515;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.dz-fair-main .dz-fair-actions .btn:hover {
  background: #f7f7f7;
}
.dz-fair-main .dz-fair-actions .btn:focus {
  /* Bootstrap 5의 포커스 효과(box-shadow)를 제거합니다. */
  box-shadow: none;

  /* 만약을 위해 기본 outline도 제거합니다. */
  outline: 0;
}

.dz-fair-main .dz-info-table {
  border-top: 0.0625rem solid #262626;
}

.dz-fair-main .dz-info-table .row {
  padding: 1rem 0;
  margin: 0;
  border-bottom: 1px solid #e9ecef;
}
.dz-fair-main .dz-info-table .dz-info-label {
  color: #6c6c6c;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  padding: 0.25rem 0;
}
.dz-fair-main .dz-info-table .dz-info-value {
  color: #6c6c6c;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 0.35rem 0;
}
.dz-fair-main .dz-info-table .badge {
  background-color: #ff6000 !important;
}

/* 모바일 */
@media (max-width: 767.98px) {
  .dz-fair-main .dz-info-table .dz-info-label {
    font-size: 1rem;
    padding: 0.25rem 0;
  }
  .dz-fair-main .dz-info-table .dz-info-value {
    font-size: 0.938rem;
    padding: 0.25rem 0;
  }
}

.dz-fair-main .dz-info-table .dz--address,
.dz-fair-main .dz-info-table .dz--address a {
  color: #6c6c6c;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.dz-fair-main .dz-info-table .dz--gift-info {
  color: var(--Main-Black, #151515);
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* ============================
DZ Custom Tab Styles
============================ */
.dz-fair-main-view {
}

.dz-fair-main .dz-tabs .nav-tabs {
  border-bottom: none; /* Bootstrap 기본 하단 테두리 제거 */
  padding: 0 2.5rem 0 1rem;
  border-radius: 0.625rem;
  border: 1px solid #f4f4f4;
  background: #f8f8f8;
}

.dz-fair-main .dz-tabs .nav-item {
  /* 탭 사이의 구분선을 위한 기준점 */
  position: relative;
}

/* 구분선 스타일 (마지막 탭 제외) */
.dz-fair-main .dz-tabs .nav-item:not(:last-child)::after {
  content: '';
  display: block;
  width: 1px;
  height: 1rem; /* 구분선 높이 */
  background-color: #dee2e6; /* 구분선 색상 */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.dz-fair-main .dz-tabs .nav-link {
  border: none; /* 기본 테두리 제거 */
  font-weight: 500;
  padding: 1rem 1rem;
  margin: 0 1rem;
  transition: color 0.2s ease-in-out;
  color: #a2a2a2;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* 마우스 호버 시 (활성 탭이 아닐 때) */
.dz-fair-main .dz-tabs .nav-link:not(.active):hover {
  color: #a2a2a2;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* ✅ 활성 탭 스타일 ✅ */
.dz-fair-main .dz-tabs .nav-link.active {
  color: #212529; /* 활성 탭 텍스트 색상 */
  font-weight: bold;
  background-color: transparent !important; /* 배경색 없음 */
  border-bottom: 3px solid #ff6000; /* 주황색 하단 테두리 */
}

/* 탭 콘텐츠 영역 스타일 */
.dz-fair-main .dz-tab-content {
  padding: 4.26rem 0 1.5rem 0;
  border-top: none;
}

/* 모바일 */
@media (max-width: 767.98px) {
  .dz-fair-main .dz-tabs {
    padding-left: 0;
    padding-right: 0;
  }
  .dz-fair-main .dz-tabs .nav-tabs {
    font-size: 1rem;
    border-radius: 0 !important;
    padding: 0 0rem 0 0rem;
  }
  .dz-fair-main .dz-tabs .nav-link {
    border: none; /* 기본 테두리 제거 */
    padding: 0.9rem 0.7rem 0.7rem;
    margin: 0 0.7rem;
    color: #a2a2a2;
    font-size: 1rem;
  }
  /* 탭 콘텐츠 영역 스타일 */
  .dz-fair-main .dz-tab-content {
    padding: 0 0 1.5rem 0;
    border-top: none;
  }
}

/* ============================
  DZ Custom Tab Styles
  ============================ */
.dz-tabs .nav-tabs {
  border-bottom: none; /* Bootstrap 기본 하단 테두리 제거 */
  background-color: #f8f9fa; /* 탭 전체 배경색 */
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.dz-tabs .nav-item {
  /* 탭 사이의 구분선을 위한 기준점 */
  position: relative;
}

/* 구분선 스타일 (마지막 탭 제외) */
.dz-tabs .nav-item:not(:last-child)::after {
  content: '';
  display: block;
  width: 1px;
  height: 1rem; /* 구분선 높이 */
  background-color: #dee2e6; /* 구분선 색상 */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.dz-tabs .nav-link {
  border: none; /* 기본 테두리 제거 */
  color: #6c757d; /* 비활성 탭 텍스트 색상 */
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: color 0.2s ease-in-out;
}

/* 마우스 호버 시 (활성 탭이 아닐 때) */
.dz-tabs .nav-link:not(.active):hover {
  color: #212529;
}

/* ✅ 활성 탭 스타일 ✅ */
.dz-tabs .nav-link.active {
  color: #212529; /* 활성 탭 텍스트 색상 */
  font-weight: bold;
  background-color: transparent !important; /* 배경색 없음 */
  border-bottom: 3px solid #ff6000; /* 주황색 하단 테두리 */
}

/* 탭 콘텐츠 영역 스타일 */
.dz-tab-content {
  padding: 1.5rem;
  /* border: 1px solid #dee2e6; */
  /* border-top: none; */
  /* border-radius: 0 0 0.5rem 0.5rem; */
}

/* ============================
DZ Review Section Styles
============================ */
.dz-review {
}
.dz-review-header {
  padding-bottom: 0.94rem;
  margin-bottom: 0;
}

.dz-review-header .dz-review-title {
  color: #151515;
  font-size: 1.625rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.dz-review-header .dz-review-title span {
  color: #ff6000;
  font-size: 1.625rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.dz-review-header .dz-review-search {
  position: relative;
  max-width: 16.75rem;
}

.dz-review-header .dz-review-search .dz-input-text {
  border-radius: 6.25rem;
  border: 1px solid #f4f4f4;
  background: #f7f7f7;
  color: #787878;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 0.625rem 1.5rem;
  height: 2.5rem;
  z-index: 1;
}

.dz-review-header .dz-review-search .dz-search-btn {
  position: absolute;
  display: inline-block;
  top: 0.62rem;
  right: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.dz-review-header .dz-review-search .dz-write-btn {
  border-radius: 0.75rem;
  background: #ff6000;
  padding: 0.625rem 1.25rem;
  color: #fff;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  height: 2.5rem;
}
.dz-review-filters {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.dz-review-filters a {
  text-decoration: none;
  color: #6c757d;
  padding: 0 0.5rem;
  position: relative;
}
.dz-review-filters a.active {
  color: #212529;
  font-weight: bold;
}

/* 후기 목록 */
.dz-review-write {
  padding: 2.25rem 1.56rem;
  border-radius: 1.25rem;
  background: #f7f7f7;
  display: none;
}

.dz-review-write textarea {
  border-radius: 1.25rem;
  border: 1px solid #ebebeb;
  background: #fff;
  padding: 1.5rem;

  /* shadow 244 */
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.04);
}

/* 모바일 */
@media (max-width: 767.98px) {
  .dz-review-header {
    padding: 1rem 0.8rem;
  }
  .dz-review-header .dz-review-title {
    font-size: 1.2rem;
  }
  .dz-review-header .dz-review-title span {
    font-size: 1.2rem;
  }
  .dz-review-filters {
    padding: 1rem 0.8rem;
    margin-bottom: 0;
    font-size: 0.9rem;
  }
  .dz-review-list {
    padding: 1rem 0.8rem;
  }
  .dz-review-write {
    padding: 2.25rem 1rem;
    border-radius: 0;
    border: none;
  }
}

.dz-review-write-text div {
  color: #c3c3c3;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.dz-review-write-text div span {
  color: #c3c3c3;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.dz-review-write-star svg {
  width: 1.875rem;
  height: 1.875rem;
  cursor: pointer;
  transition: transform 0.1s ease-in-out;
}

.dz-review-write-star:hover svg {
  transform: scale(1.1);
}

/* ============================
다른 행사
============================ */

.dz-fair-others {
  background-color: #fff;
  padding: 2rem 0;
}

.dz-fair-others-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dz-fair-others-title {
  color: #151515;
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* 모바일 */
@media (max-width: 767.98px) {
  .dz-fair-others-title {
    font-size: 1.25rem;
  }
}

.dz-fair-others-all {
  color: #797a7c;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.dz-fair-others-all span {
  color: inherit;
  font-size: inherit;
}

.dz-fair-others-all:hover {
  color: #797a7c;
}

/* ================================== */
/* 행사 카드 */
.dz-fair-card {
  padding: 0;
}

.dz-fair-card .dz-fair-image {
  background-color: #e9ecef;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative; /* 자식 이미지의 기준점이 됩니다. */
  display: flex; /* 이미지 가운데 정렬을 위해 유지 */
  align-items: center; /* 이미지 가운데 정렬을 위해 유지 */
  justify-content: center; /* 이미지 가운데 정렬을 위해 유지 */
  margin-bottom: 1rem;

  /* 👇 padding-top을 제거하고 aspect-ratio만 사용합니다. */
  aspect-ratio: 1 / 1;
  /* (14.5 / 19.3) * 100% = 약 75.13% 입니다. 필요에 따라 정확한 비율로 조정하세요. */
}
.dz-fair-card .dz-fair-image img {
  /* 이미지의 너비와 높이를 부모 요소에 100% 맞춥니다. */
  width: 100%;
  height: 100%;
  object-fit: cover; /* 비율이 깨지지 않게 이미지를 채웁니다. */
}

.dz-fair-card .dz-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dz-fair-card .dz-tag {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0 0.6em;
  border-radius: 0.25rem;
}

.dz-fair-card .dz-tag-orange {
  padding: 0.25rem 0.625rem;
  border-radius: 6.25rem;
  border: 1px solid #ffe1cf;
  background: #ffe1cf;
  color: #ff6a00;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.dz-fair-card .dz-tag-gray {
  padding: 0.25rem 0.625rem;
  border-radius: 6.25rem;
  border: 1px solid #babec4;
  background: #fff;
  color: #8f9195;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.dz-fair-card .dz-title {
  display: inline-block;
  width: 100%;
  color: #222325;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 600;
  line-height: 155.556%;
  padding: 0.5rem 0 0.5rem 0;
  margin: 0;
  /* Add these three properties for a single-line ellipsis */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dz-fair-card .dz-meta {
  display: flex;
  justify-content: space-between;
}

.dz-fair-card .dz-meta span {
  display: flex; /* SVG와 텍스트 정렬을 위해 추가 */
  align-items: center; /* SVG와 텍스트 정렬을 위해 추가 */
  gap: 0.25rem; /* SVG와 텍스트 사이 간격 추가 */
  color: #a5a6a8;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* ============================
다른 행사
============================ */

.dz-fair-card2 {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 1.875rem;
  border-radius: 1.25rem;
  border: 1px solid #f5f5f5;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}
.dz-fair-card2 .dz-fair-image {
  background-color: #e9ecef;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;

  /* 👇 이 한 줄을 추가하세요 */
  aspect-ratio: 1 / 1;
}
.dz-fair-card2 .dz-fair-image img {
  /* 이미지의 너비와 높이를 부모 요소에 100% 맞춥니다. */
  width: 100%;
  height: 100%;
  object-fit: cover; /* 비율이 깨지지 않게 이미지를 채웁니다. */
}

.dz-fair-card2 .dz-fair-title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5;
  padding: 1.5rem 0;
  border-bottom: 1px solid #efefef;
}

.dz-fair-card2 .dz-fair-details {
  margin-top: 1.5rem;
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
  color: #495057;
  margin-top: 1.88rem;
}

.dz-fair-card2 .dz-fair-details li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  justify-content: flex-start;
}

.dz-fair-card2 .dz-fair-details li > span {
  display: inline-block;
  width: 4rem;
  margin-left: 0.3rem;
  color: #353535;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.dz-fair-card2 .dz-fair-details li > div {
  display: inline-block;
  width: calc(100% - 5rem - 1rem);
  margin: 0.25rem 0;
  color: #8f8f8f;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.dz-fair-card2 .dz-fair-details li > div a {
  color: #343de5;
  font-size: 0.875rem;
  text-decoration-line: underline;
}

.dz-fair-card2 .dz-fair-details .dz-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.75rem;
  fill: #6c757d;
}

.dz-fair-card2 .dz-fair-details .dz-location-link {
  color: #343de5;
  font-size: 0.875rem;
  text-decoration-line: underline;
}

.dz-fair-card2 .dz-apply-btn {
  background-color: #ff6d00;
  border-color: #ff6d00;
  font-weight: 700;
}

.dz-fair-card2 .dz-apply-btn:hover {
  background-color: #e66200;
  border-color: #e66200;
}

/* Right Column: Application Form */
.dz-fair-card2 .dz-form-section {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dz-fair-card2 .dz-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.dz-fair-card2 .dz-section-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.dz-fair-card2 .dz-info-link {
  font-size: 0.875rem;
  color: #6c757d;
  text-decoration: none;
}

.dz-fair-card2 .dz-form-label .text-danger {
  font-weight: 700;
}

/* Terms Agreement Section */
.dz-fair-card2 .dz-terms-box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.dz-fair-card2 .dz-terms-box .form-check {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dz-fair-card2 .dz-terms-box .form-check-label {
  color: #495057;
}

.dz-fair-card2 .dz-terms-box .form-check-label.required {
  color: #dc3545;
}

.dz-fair-card2 .dz-terms-box .view-terms-link {
  font-size: 0.875rem;
  text-decoration: none;
  color: #6c757d;
}

/* ==================================
 행사 사이드바 채널 카드
 */

.dz-fair-channel {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 1.875rem;
  border-radius: 1.25rem;
  border: 1px solid #f5f5f5;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
  /* position: sticky; */
  height: fit-content;
  top: 2rem;
}
.dz-fair-channel .dz-fair-image {
  background-color: #e9ecef;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;

  /* 👇 이 한 줄을 추가하세요 */
  aspect-ratio: 1 / 1;
}
.dz-fair-channel .dz-fair-image img {
  /* 이미지의 너비와 높이를 부모 요소에 100% 맞춥니다. */
  width: 100%;
  height: 100%;
  object-fit: cover; /* 비율이 깨지지 않게 이미지를 채웁니다. */
}

/* 모바일 */
@media (max-width: 767.98px) {
  .dz-fair-channel {
    border-radius: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    position: relative;
    top: 0;
  }
  .dz-fair-channel .dz-fair-image {
    border-radius: 1.25rem;
    background: #ececec;
    aspect-ratio: 1 / 1;
  }
}

.dz-fair-channel .dz-host-avatar {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
}

.dz-fair-channel .dz-host-avatar img {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* 이 부분을 추가하거나 확인해 주세요. */
  z-index: 2;
}

.dz-fair-channel .dz-fair-title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5;
  padding: 1.5rem 0;
}

.dz-fair-channel .dz-channel-link {
  margin-top: 0.35rem;
  padding: 1.12rem 0;
  color: var(--Main-Black, #151515);
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  border-bottom: 0.0625rem solid #efefef;
}

.dz-fair-channel .dz-channel-link span {
  color: var(--Main-Black, #151515);
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.dz-fair-channel .dz-channel-email {
  color: #8f8f8f;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-top: 1.5rem;
}

.dz-fair-channel .dz-channel-phone {
  color: #8f8f8f;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-top: 0.88rem;
  margin-bottom: 1.5rem;
}

.dz-fair-channel .dz-fair-details {
  margin-top: 1.5rem;
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
  color: #495057;
  margin-top: 1.88rem;
}

/* ==============
 동의??
 */
.dz-agree-title {
  border-radius: 10px;
  border: 1px solid #f5f5f5;
  background: #fafafa;
  padding: 0.75rem 1rem;
}

.dz-agree-list {
  padding: 0 1rem;
}

.dz-agree-list div {
}

.dz-badge {
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding: 0.25rem 0.625rem;
}

.dz-badge.dz-badge-orange {
  border-radius: 999px;
  background: linear-gradient(107deg, #ff4d3d 10.27%, #ffb618 97.18%);
  color: #fff;
}

.dz-join-form-user {
  color: var(--Main-Orange, #ff6000);
  text-align: right;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.dz-join-form-user:hover {
  color: var(--Main-Orange, #ff6000);
}
