@charset "utf-8";
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap'); */
/* NotoSans 쓸 경우 주석 풀고, body 적용 */

/* Pretendard 폰트 로컬 폰트 정의 (CDN 실패 시 대체용) */
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-ExtraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* style.css 맨 위 */
@font-face {
  font-family: "HannaPro";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_seven@1.0/BMHANNAPro.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* 폰트 로딩 전에는 기본 폰트로 보여주기 (깜빡임 방지) */
}

* {
  word-break: keep-all;
  box-sizing: border-box;
}

body {
  font-family: "HannaPro", "Pretendard", "Noto Emoji", "Segoe UI Emoji",
    sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  background-color: #000000;
}

/* 초기화 */
html {
  overflow-y: auto !important;
}

html,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
img {
  margin: 0;
  padding: 0;
  border: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1em;
  font-family: inherit !important;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ul,
dl,
dt,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

legend {
  position: absolute;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  text-indent: -9999em;
  overflow: hidden;
}

label,
input,
button,
select,
img {
  vertical-align: middle;
  font-size: 1em;
}

input,
button {
  margin: 0;
  padding: 0;
  font-family: inherit !important;
}

input[type="submit"] {
  cursor: pointer;
}

button {
  cursor: pointer;
}

textarea,
select {
  font-family: inherit !important;
}

select {
  margin: 0;
}

p {
  margin: 0;
  padding: 0;
  word-break: break-all;
}

pre {
  overflow-x: scroll;
  font-size: 1.1em;
}

a {
  color: inherit;
  text-decoration: none;
}

/*head.sub.php로 셋팅하는 값 = full-h, full-w*/
:root {
  --primary: #2ec5eb;
  --seconday: #666;
  --ca-color: #333;
  /* --full-h: calc(var(--vh, 1vh) * 100);
  --full-w: calc(var(--vw, 1vw) * 100); */
  --header-h: 60px;
  --lnb-h: 48px;
}

.overlay {
  position: relative;
}

.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

#header.active #logo {
  background-image: url("../img/logo.png") !important;
}

/* 아이콘 있는 경우 header.active * {color: #000 !important;} 해주시면 됩니다. */

/* 애니메이션 관련 */

/* 버튼 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #fff;
  color: var(--primary);
  outline: 1px solid var(--primary);
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.15);
}

.btn-primary:active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 4px rgba(96, 165, 250, 0.1);
}

.btn-secondary {
  background-color: var(--seconday);
  color: #fff;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #fff;
  color: var(--seconday);
  outline: 1px solid var(--seconday);
  box-shadow: 0 2px 8px rgba(156, 163, 175, 0.15);
}

.btn-secondary:active {
  background: var(--seconday);
  color: #fff;
  box-shadow: 0 1px 4px rgba(156, 163, 175, 0.1);
}

.btn-primary-outline {
  background-color: transparent;
  color: var(--primary);
  outline: 1px solid var(--primary);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary-outline:hover,
.btn-primary-outline:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.15);
  outline: none;
}

.btn-primary-outline:active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(96, 165, 250, 0.1);
}

.btn-secondary-outline {
  background-color: transparent;
  color: var(--seconday);
  outline: 1px solid var(--seconday);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-secondary-outline:hover,
.btn-secondary-outline:focus {
  background: var(--seconday);
  color: #fff;
  box-shadow: 0 2px 8px rgba(156, 163, 175, 0.15);
  outline: none;
}

.btn-secondary-outline:active {
  background: #fff;
  color: var(--seconday);
  box-shadow: 0 1px 4px rgba(156, 163, 175, 0.1);
}

.btn-animation {
  position: relative;
  overflow: hidden;
  color: var(--primary);
  outline: 1px solid var(--primary);
}

.btn-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--primary);
  z-index: -1;
  transition: all 0.3s ease;
}

.btn-animation:hover {
  color: #fff;
  outline: 0;
}

.btn-animation:hover::before {
  width: 100%;
}

.button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-primary-outline:disabled,
.btn-secondary-outline:disabled,
.btn-animation:disabled {
  background: #e5e7eb !important;
  /* Tailwind gray-200 */
  color: #b0b0b0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.2);
}

.sit_icon {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.editor-content img {
  display: initial;
}

#sev_himg * {
  font-family: "Pretendard", "Noto Emoji", "Segoe UI Emoji", sans-serif !important;
}

.sev_admin {
  display: none;
}

/* Lnb 관련  */
/* lnb  */
.lnb_wrap {
  position: relative;
}

.lnb {
  background: #fff;
}

.lnb .lnb_map {
  height: var(--lnb-h);
  display: flex;
  align-items: center;
  border-left: 1px solid #f1f1f1;
  border-right: 1px solid #f1f1f1;
  max-width: 1600px;
  margin: 0 auto;
}

.lnb .lnb_map .home {
  width: var(--lnb-h);
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lnb .lnb_map .home a {
  color: #333;
}

.lnb .lnb_map > li {
  height: 100%;
  border-right: 1px solid #ddd;

  position: relative;
}

.lnb .lnb_map li.dep a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lnb .lnb_map li.dep a span {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #333;
}

.lnb .lnb_map li.dep ul {
  display: none;
  position: absolute;
  left: 0;
  top: var(--lnb-h);
  width: 100%;
  z-index: 9999;
}

.lnb .lnb_map li.dep ul li {
  width: 100%;
  background: #f9f9f9;
  border-bottom: 1px solid #fff;
}

.lnb .lnb_map li.dep ul li a:hover {
  background: var(--primary);
  color: #fff;
  transition: 0.3s all;
}

.lnb .lnb_map li.dep ul li a.on {
  background: var(--primary);
  color: #fff;
}

/* 구글 번역 부분 커스텀 css - 번역기능 있을 경우만 사용 */

body:not(.modal-open) {
  position: static !important;
}

.goog-logo-link {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
  display: none !important;
}

body > .skiptranslate,
.goog-logo-link,
.gskiptranslate,
.goog-te-gadget span,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
div#goog-gt- {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
  font-size: 0px;
  width: 100px;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

#google_translate_element select {
  background: transparent;
  color: #000;
  border: none;
  font-weight: bold;
  border-radius: 0px;
  padding: 8px 12px;
}

.notranslate {
  translate: no !important;
}

/* 26/01/15 헤더 스크롤 효과 | 작성자 : 남지혜 */
/* 헤더 스크롤 효과 - display는 JavaScript로 제어 */
#header {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out,
    background-color 0.3s ease-in-out;
}

/* ============================================
   Netflix 스타일 슬라이드 컴포넌트 스타일
   ============================================ */

/* Swiper 슬라이드 카드 고정 너비 (피그마 디자인: 295px) */
.popular-posts-swiper .swiper-slide,
.latest-column-swiper .swiper-slide,
.latest-video-swiper .swiper-slide {
  width: 295px !important;
  flex-shrink: 0;
  height: auto;
}

/* 모바일에서 카드 너비 조정 - 화면에 맞게 조정 */
@media (max-width: 1023px) {
  .popular-posts-swiper .swiper-slide,
  .latest-column-swiper .swiper-slide,
  .latest-video-swiper .swiper-slide {
    width: calc(
      100vw - 3rem
    ) !important; /* 화면 너비에서 좌우 패딩(1rem씩) + 간격 제외 */
    max-width: 295px; /* 최대 너비 제한 */
  }
}

/* 태블릿 이상에서만 295px 고정 */
@media (min-width: 1024px) {
  .popular-posts-swiper .swiper-slide,
  .latest-column-swiper .swiper-slide,
  .latest-video-swiper .swiper-slide {
    width: 295px !important;
  }
}

/* Swiper wrapper 오른쪽 패딩 추가 (마지막 카드가 완전히 보이도록) */
.popular-posts-swiper .swiper-wrapper,
.latest-column-swiper .swiper-wrapper,
.latest-video-swiper .swiper-wrapper {
  padding-right: 1rem; /* 모바일에서 오른쪽 여백 추가 */
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .popular-posts-swiper .swiper-wrapper,
  .latest-column-swiper .swiper-wrapper,
  .latest-video-swiper .swiper-wrapper {
    padding-right: 0; /* 데스크톱에서는 패딩 제거 */
  }
}

/* Swiper 네비게이션 버튼 스타일 */
.popular-posts-prev,
.popular-posts-next,
.latest-column-prev,
.latest-column-next,
.latest-video-prev,
.latest-video-next {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* 모바일에서 모든 Swiper 네비게이션 버튼 숨김 */
@media (max-width: 1023px) {
  .popular-posts-prev,
  .popular-posts-next,
  .latest-column-prev,
  .latest-column-next,
  .latest-video-prev,
  .latest-video-next {
    display: none !important;
  }
}

/* 모달이 열려 있을 때 배경 스크롤 완전 차단 */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
  position: fixed !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* 모달 오버레이 스크롤바 - 브라우저 기본 스타일 */
#post_modal_overlay {
  -ms-overflow-style: auto; /* IE and Edge */
  scrollbar-width: auto; /* Firefox */
}

#post_modal_overlay::-webkit-scrollbar {
  display: block; /* Chrome, Safari, Opera */
  width: 8px;
}

#post_modal_overlay::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

#post_modal_overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

#post_modal_overlay::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* 네비게이션 버튼 직접 호버 시 */
.popular-posts-prev:hover,
.popular-posts-next:hover,
.latest-column-prev:hover,
.latest-column-next:hover,
.latest-video-prev:hover,
.latest-video-next:hover {
  opacity: 1 !important;
}

/* 텍스트 줄임표 처리 */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 텍스트 색상 유틸리티 클래스 */
.text-text-muted {
  color: rgba(255, 255, 255, 0.6);
}

.text-search-text {
  color: rgba(255, 255, 255, 0.4);
}

.container {
  max-width: none !important;
}

/* Swiper 넷플릭스 스타일 - 수평 스크롤바 숨김 및 오른쪽 끝 그라데이션 */
.popular-posts-swiper,
.latest-column-swiper,
.latest-video-swiper {
  overflow: hidden !important;
}

.popular-posts-swiper .swiper-wrapper,
.latest-column-swiper .swiper-wrapper,
.latest-video-swiper .swiper-wrapper {
  overflow: visible;
}

/* Swiper 컨테이너 수평 스크롤 방지 */
.popular-posts-swiper,
.latest-column-swiper,
.latest-video-swiper {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.popular-posts-swiper::-webkit-scrollbar,
.latest-column-swiper::-webkit-scrollbar,
.latest-video-swiper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* 그라데이션 오버레이 스타일 */
.swiper-gradient-overlay {
  transition: opacity 0.3s ease;
}
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 1px #878787 !important;
  border: 1px solid #ffffff !important;
}

.more_opt:before,
.more_opt:after {
  display: none !important;
}

/* 로그인 비밀번호 입력란: HannaPro는 마스킹 문자(•) 미지원 → Pretendard만 사용 */
#mb_login #login_pw,
#mb_login input#login_pw {
  font-family: "Pretendard", "Noto Emoji", "Segoe UI Emoji", sans-serif !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
}
#mb_login #login_pw:-webkit-autofill,
#mb_login #login_pw:-webkit-autofill:hover,
#mb_login #login_pw:-webkit-autofill:focus,
#mb_login #login_pw:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0 1000px #333333 inset !important;
}
