:root {
  --notice-margin: 1rem;
}
* {
  font-weight: var(--font-weight-regular);
}
html {
  /* 스크롤바 숨기기 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

a {
  color: var(--color-blue-01);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

header, footer {
  display: flex;
  position: relative;
  justify-content: center;
  width: 100%;
}
/* 임시 */
/* 헤더 영역 */
header {
  height: 200px;
  min-height: 200px;
  background-color: aliceblue;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.header-title {
  font-size: var(--font-size-1875);
}

main {
  width: 100%;
  max-width: 688px;
  margin: 0 auto;
  padding: 0px 20px;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
}

.no-padding {
  padding: 0px !important;
}

#form1 {
  width: 100%;
}

/* 사업자번호 입력 폼 영역 */
.sabeon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: calc(100vh - 400px);
  min-height: 400px;
  justify-content: center;
}
.sabeon-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--color-gray-02);
  border-radius: 8px;
}
#sabeon {
  width: 100%;
  max-width: 300px;
  height: 50px;
  border: 1px solid var(--color-black-003);
  border-radius: 4px;
  font-size: var(--font-size-1000);
  outline: none;
  padding: 12px 16px;
  background: white;
  /* flex: 1; */
}
#sabeon-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  font-size: var(--font-size-1000);
  padding: 16px 20px;
  background-color: var(--color-blue-01);
  outline: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-1000);
  width: 80px;
  min-width: 80px;
  height: 50px;
}
.sabeon-info > li {
  text-align: left;
  margin-top: 8px;
  gap: 4px;
}









/* 강의 목록 영역 */

/* 강의 목록 헤더 */
header.replay-header {
  background-color: unset;
  height: 130px;
  min-height: auto;
  /* padding: 0px 20px; */
}
.replay-header-items {
  max-width: 1080px;
  /* width: 1080px; */
  display: flex;
  width: 100%;
  padding: 0px 20px;
}
.replay-header-left {
  flex: 1;
}
.replay-header-left-title {
  width: fit-content;
  /* height: 50px; */
  /* background-color: #DF5532; */
  border-radius: 38px;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  /* justify-content: center; */
}
.replay-header-left-title-main {
  font-size: var(--font-size-875);
  color: white;
  letter-spacing: 4px;
  font-weight: var(--font-weight-bold);
}
.replay-header-left-title-sub {
  font-size: var(--font-size-875);
  color: white;
  letter-spacing: 2px;
  font-weight: var(--font-weight-regular-light);
}


.replay-header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}
.replay-header-right-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.replay-header-right-title {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-750);
}
.replay-header-right-sub {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-750);
  color: white;
  background-color: #354052;
  padding: 4px 12px;
  margin-left: 8px;
  border-radius: 38px;
}
.replay-header-right-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-750);
  color: white;
  background-color: var(--color-red-01);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-left: 4px;
}






/* 강의 목록 메인 영역 */
main.replay-main {
  max-width: 1080px;
  width: 100%;
}

/* 강의 목록 검색 영역 */
.replay-search-container {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.replay-search-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.replay-search-title > div {
  font-size: var(--font-size-1750);
  font-weight: var(--font-weight-regular-light);
}
.replay-search-title > div.bold {
  font-weight: var(--font-weight-black);
}
.replay-search-input-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-top: 24px;
}
.replay-search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.replay-search-input {
  width: 100%;
  height: 60px;
  padding: 14px 14px 14px 60px;
  border: transparent;
  border-radius: 20px;
  font-size: var(--font-size-1000);
  outline: none;
  transition: box-shadow 0.1s ease-in-out;
  box-shadow: 20px 20px 60px 0 rgba(0, 0, 0, 0.2);
}
.replay-search-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-black-003);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.1s;
}
.replay-search-clear:hover {
  background: rgba(0, 0, 0, 0.07);
}
.replay-search-input:focus {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}
.replay-search-input::placeholder {
  color: var(--color-black-003);
}

.replay-notice-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}
.replay-notice-top-text {
  color: var(--color-font-black-02);
  font-size: var(--font-size-875);
}
.replay-notice-top-text-sub {
  color: var(--color-font-black-01);
}

/* 카테고리별 강의 리스트 컨테이너 영역 */
.replay-content-container {
  width: 100%;
}
.replay-content {
  min-height: 100px;
  border-top: 1px solid var(--color-line-white-01);
  padding-top: 16px;
  margin-bottom: 40px;
  /* background-color: #DF5532; */
}
.replay-category-title-container {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.replay-category-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-1250);
}
.replay-category-tags-container {
  display: flex;
  align-items: center;
  gap: 4px;
}
.replay-category-tag {
  border-radius: 12px;
  color: var(--color-font-black-03);
  padding: 4px 8px;
  font-size: var(--font-size-750);
  font-weight: var(--font-weight-semi-bold);
  border: 1px solid #E6E6E6;
  background-color: white;
}
.replay-category-tag.enabled {
  border: 1px solid #CDD9F1;
  color: var(--color-font-black-02);
  background-color: var(--color-bg-white-01);
}

/* 카테고리별 강의 아이템 영역 */
.replay-content-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.replay-content-items-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.replay-content-thumbnail-container {
  display: flex;
}
.replay-content-thumbnail-container > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}
.replay-content-title {
  font-size: var(--font-size-875);
  font-weight: var(--font-weight-bold);
}
.replay-content-buttons-container {
  width: 100%;
  display: flex;
  gap: 8px;
}
.replay-content-button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 4px;
  outline: none;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-875);
}
.replay-content-button.primary {
  border: 1px solid var(--color-blue-01);
  background-color: var(--color-blue-01);
  color: white;
}

.replay-content-button.outline {
  border: 1px solid #888888;
  background-color: white;
  color: var(--color-black-004);
}









/* 푸터 영역 */
footer {
  height: 100px;
  min-height: 100px;
  background-color: antiquewhite;
  display: flex;
  align-items: center;
  justify-content: center;
}
footer.footer-1 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: white;
  margin-bottom: 40px;
}
.footer-1-main {
  text-align: center;
  font-size: var(--font-size-1125);
  font-weight: var(--font-weight-medium);
}
.footer-1-contact {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-1-contact-number {
  margin-top: 4px;
  margin-left: 8px;
  font-size: var(--font-size-1250);
  font-weight: var(--font-weight-black);
  color: var(--color-blue-01);
}

footer.footer-2 {
  display: flex;
  position: relative;
  justify-content: center;
  width: 100%;
  height: fit-content;
  min-height: fit-content;
  background-color: #eeeff4;
}
footer.footer-2 img {
  width: 100%;
  max-width: 1080px;
}











/* 플로팅 액션 버튼 (QR코드) */
nav {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.floating-action-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-blue-01);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}
.floating-action-button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.floating-action-button:active {
  transform: scale(0.95);
}
.fab-icon-close {
  display: none;
}
.floating-action-button.open .fab-icon-default {
  display: none;
}
.floating-action-button.open .fab-icon-close {
  display: flex;
}
.qr-code-container {
  background-color: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  text-align: center;
}
.qr-code-container.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.qr-code-label {
  font-size: var(--font-size-875);
  font-weight: var(--font-weight-bold);
  color: var(--color-font-black-01);
  margin-bottom: 12px;
}
.qr-code-container > img {
  width: 160px;
  height: 160px;
  display: block;
  object-fit: contain;
}





/* 모바일 UI */
@media (max-width: 900px) {
  .replay-content-items-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  header.replay-header {
    height: fit-content;
    padding: 0px;
  }
  .replay-header-items {
    padding-top: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  .replay-header-left {
    display: flex;
    align-items: center;
    justify-content: center;
    /* width: 100%; */
  }
  .replay-header-left-title {
    /* width: auto; */
    /* height: auto; */
    border-radius: 0px;
  }
  .replay-header-right {
    width: 100%;
    /* height: auto; */
    padding: 0px 20px;
  }
  .replay-header-right-item {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .replay-header-right-title {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
  }
  #floating-action-button-container {
    display: none;
  }
}

@media (max-width: 560px) {
  .replay-content-items-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 400px) {
  .replay-category-title {
    font-size: var(--font-size-1000);
  }
  .replay-category-title-container {
    gap: 12px;
  }
}