@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Poppins:700,600,300,500,400");
@import url("./styleguide.css"); /* CSS 변수를 위한 styleguide 임포트 */
/* The following line is used to measure usage of this code. You can remove it if you want. */
@import url("https://px.animaapp.com/67b5b16119db18799e630e5f.67b5b16219db18799e630e62.0c0W7Jz.hcp.png");

@font-face {
  font-family: "SUIT-ExtraBold";
  font-style: normal;
  font-weight: 800;
  src: url("../fonts/SUIT-ExtraBold.ttf") format("truetype");
}

/* ===== 한국어 페이지 전용 스타일 ===== */
/* 한국어 URL 경로가 포함된 페이지에서 word-break: keep-all 적용 */
body[data-lang="ko"],
html[lang="ko"],
html[lang="ko"] *,
body[data-lang="ko"] * {
  word-break: keep-all;
  word-wrap: break-word;
}

/* 한국어 페이지의 텍스트 요소에 대한 추가 최적화 */
body[data-lang="ko"] p,
body[data-lang="ko"] h1,
body[data-lang="ko"] h2,
body[data-lang="ko"] h3,
body[data-lang="ko"] h4,
body[data-lang="ko"] h5,
body[data-lang="ko"] h6,
body[data-lang="ko"] span,
body[data-lang="ko"] div,
body[data-lang="ko"] .content-text,
html[lang="ko"] p,
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] h4,
html[lang="ko"] h5,
html[lang="ko"] h6,
html[lang="ko"] span,
html[lang="ko"] div,
html[lang="ko"] .content-text {
  word-break: keep-all;
  word-wrap: break-word;
  line-height: 1.6; /* 한국어 가독성을 위한 줄간격 조정 */
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.flex {
  display: flex;
  flex-direction: column;
}

/* Sub Hero Section */
.sub-hero {
  width: 100%;
  height: 500px; /* 필요시 높이 조정 */
  /* 임시 배경입니다. 'about-hero-bg.png' 이미지로 교체해주세요. */
  background: url('../images/about-hero-bg.png') no-repeat center center;
  background-size: cover;
  background-color: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: flex-end;
  text-align: left;
  padding-bottom: 62px;
}
.sub-hero h1 {
  margin-top: 32px;
}
.sub-hero p {
  margin-top: 30px;
  line-height: 1.5;
}

.screen a {
  text-decoration: none;
}

/* 언어 선택 비활성화 스타일 */
.lang-option.disabled,
.mobile-lang-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  color: #999;
}

.lang-option.disabled:hover,
.mobile-lang-option.disabled:hover {
  background-color: transparent;
  opacity: 0.4;
}

/* ===== 전역 컨테이너 패딩 관리 ===== */

/* 기본 컨테이너 - 좌우 패딩만 */
.container-padding {
  padding-left: 20px;
  padding-right: 20px;
}

/* 최대 너비 + 패딩 컨테이너 */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 전체 너비 컨테이너 (배경용) + 내부 패딩 */
.container-full {
  width: 100%;
}

.container-full .container-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* CSS 변수를 활용한 반응형 패딩 */
:root {
  --container-padding-mobile: 16px;
  --container-padding-tablet: 20px;
  --container-padding-desktop: 20px;
  --container-max-width: 1440px;
}

/* 반응형 컨테이너 */
.container-responsive {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--container-padding-desktop);
  padding-right: var(--container-padding-desktop);
}

/* 반응형 패딩 조정 */
@media (max-width: 1200px) {
  .container,
  .container-inner,
  .container-responsive {
    padding-left: var(--container-padding-tablet);
    padding-right: var(--container-padding-tablet);
  }
}

@media (max-width: 768px) {
  .container,
  .container-inner,
  .container-responsive {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }
}

/* Utility 클래스들 */
.px-20 { padding-left: 20px; padding-right: 20px; }
.px-16 { padding-left: 16px; padding-right: 16px; }

@media (max-width: 768px) {
  .px-responsive { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 769px) {
  .px-responsive { padding-left: 20px; padding-right: 20px; }
}

/* 기존 스타일과 통합을 위한 호환성 클래스 */
.section-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--container-padding-desktop);
  padding-right: var(--container-padding-desktop);
}

@media (max-width: 1200px) {
  .section-container {
    padding-left: var(--container-padding-tablet);
    padding-right: var(--container-padding-tablet);
  }
}

@media (max-width: 768px) {
  .section-container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }
}

/* ===== 기존 컨테이너 스타일 업데이트 ===== */

/* ===== 전역 컨테이너 스타일 ===== */
.container-center-horizontal {
  display: flex;
  flex-direction: row;
  justify-content: center;
  pointer-events: none;
  width: 100%;
}

.container-center-horizontal > * {
  flex-shrink: 0;
  pointer-events: auto;
}

/* 전체 화면 너비 컨테이너 (배경용) */
.full-width-container {
  width: 100%;
  min-width: 100%;
}

/* 컨텐츠 최대 너비 컨테이너 */
.content-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* 섹션 공통 스타일 */
.section-wrapper {
  width: 100%;
  position: relative;
}

.section-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* 배경 이미지가 있는 섹션용 */
.section-with-bg {
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-with-bg .section-content {
  position: relative;
  z-index: 2;
}

/* 반응형 지원 */
@media (max-width: 1480px) {
  .content-container,
  .section-content {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .content-container,
  .section-content {
    padding: 0 16px;
  }
}

/* 반응형 헬퍼 클래스 */
@media (max-width: 1200px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  
  /* 모바일용 텍스트 크기 조정 */
  .responsive-text {
    font-size: 90%;
    line-height: 1.4;
  }
  
  /* 모바일용 간격 조정 */
  .responsive-spacing {
    padding: 10px 0;
  }
}

/* 컨테이너 최대/최소 너비 제한 */
.container-max-width {
  max-width: 1440px;
  margin: 0 auto;
}

.container-full-width {
  width: 100%;
  max-width: none;
}

/* 플렉스 레이아웃 헬퍼 */
.flex-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 768px) {
  .flex-responsive {
    flex-direction: column;
  }
}

/* ===== Footer 반응형 스타일 ===== */

.valign-text-middle {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.valign-text-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

* {
  box-sizing: border-box;
}

/* 전역 이미지 및 미디어 요소 반응형 처리 */
img, video, iframe, object, embed {
  max-width: 100%;
  height: auto;
}

/* 컨테이너 오버플로우 방지 */
.container, .section__container, .content-container {
  overflow-x: hidden;
}

/* Body 기본 스타일 - 고정 헤더 때문에 여백 추가 */
body {
  margin-top: 80px; /* 헤더 높이만큼 여백 */
  transition: margin-top 0.3s ease;
  overflow-x: hidden; /* 가로 스크롤 방지 */
}

/* 스크롤 시 헤더 높이가 줄어들면 여백도 조정 */
body.scrolled {
  margin-top: 70px;
}

.logo {
  height: 31px;
  position: relative;
  width: 90px;
}



.rectangle-193988 {
  background-color: var(--cinnabar);
  border-radius: 50px;
  height: 8px;
  position: relative;
  width: 32px;
}

/* 기존 frame 클래스들은 새로운 story-item 스타일로 대체됨 */

.arrows {
  height: 9px;
  margin-right: -0.50px;
  position: relative;
  width: 5px;
}

/* Bottom Banner Section */
.bottom-banner {
  align-items: flex-end;
  justify-content: center;
  background-image: url('../images/common/bottom-banner.png');
  background-size: cover;
  background-position: center;
  display: flex;
  height: 504px;
  width: 100%;
  padding: 228px var(--container-padding-desktop) 96px var(--container-padding-desktop);
  position: relative;
}

.bottom-banner-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bottom-banner-title {
  align-self: stretch;
  color: var(--white);
  font-weight: 400;
  line-height: 48px;
  margin-top: -1.00px;
  position: relative;
  text-align: center;
}

.bottom-banner-desc {
  align-self: stretch;
  color: var(--white);
  font-weight: 400;
  line-height: 28px;
  position: relative;
  text-align: center;
}



/* ===== Footer 스타일 ===== */
.footer {
  background-color: var(--black);
  width: 100%;
  margin-top: auto;
  font-family: var(--font-family-poppins);
}

.footer-1 {
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 356px;
}

.footer-2 {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 96px;
}

/* Footer 좌측 영역 */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
  max-width: 500px;
}

.footer-logo-section {
  display: flex;
  align-items: center;
}

.footer-logo-link {
  text-decoration: none;
}

.logo-1 {
  height: 40px;
  width: 116px;
  transition: opacity 0.3s ease;
}

.footer-logo-link:hover .logo-1 {
  opacity: 0.8;
}

.footer-info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-address,
.footer-contact-info {
  color: var(--santas-gray);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: 0;
}

.footer-copyright {
  color: var(--trout);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Footer 우측 네비게이션 */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.footer-nav-link {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  line-height: 25.2px;
  text-decoration: none;
  text-align: right;
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* Footer 반응형 스타일 */
@media (max-width: 1200px) {
  .footer-1 {
    padding: 0 40px;
  }
  
  .footer-2 {
    padding: 64px 40px;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .footer-1 {
    padding: 0 16px;
    min-height: auto;
  }
  
  .footer-2 {
    flex-direction: column;
    gap: 40px;
    padding: 40px 16px;
    text-align: left;
  }
  
  .footer-left {
    max-width: none;
  }
  
  .footer-nav {
    align-items: flex-start;
    gap: 20px;
  }
  
  .footer-nav-link {
    text-align: left;
    font-size: 18px;
    line-height: 24px;
  }
  
  .footer-links {
    gap: 16px;
  }
  
  .footer-contact {
    gap: 0px;
  }
  
  .footer-address,
  .footer-contact-info {
    font-size: 12px;
    line-height: 18px;
  }
  
  .footer-social {
    margin-top: 8px;
  }
  
  .social-icon {
    width: 18px;
    height: 18px;
  }
  
  .frame-1171275085 {
    max-width: 100%;
    padding: 0 16px;
  }
}

/* 기존 frame 클래스들은 새로운 semantic 클래스로 대체됨 */
.banner-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.bottom-banner-desc {
  line-height: 28px;
  font-weight: 300;
}

.banner-text-group {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  width: 100%;
  text-align: center;
}

.destructive {
  color: var(--white);
  font-weight: 400;
  line-height: 24px;
  margin-top: -1.00px;
  position: relative;
  white-space: nowrap;
  width: fit-content;
}

.nav {
  -webkit-backdrop-filter: blur(10px) brightness(100%);
  align-items: center;
  align-self: center;
  backdrop-filter: blur(10px) brightness(100%);
  background-color: var(--white-3);
  border: 1px solid;
  border-color: var(--white-2);
  border-radius: 12px;
  display: flex;
  gap: 40px;
  justify-content: center;
  padding: 16px 50px;
  position: relative;
  width: 1440px;
}

.arrow {
  padding: 0px 8px 0px 0px;
}

/* Pagination arrow wrapper */
.pagination-arrow {
  height: 36px;
  position: relative;
  width: 36px;
}

.num {
  align-items: center;
  background-color: var(--eerie-black);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 36px;
  justify-content: center;
  padding: 10px;
  position: relative;
  width: 36px;
}

.pagination-item {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 36px;
  width: 36px;
}

.arrow-1 {
  padding: 0px 0px 0px 8px;
}

.arrow-2 {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  position: relative;
}

.pagination-1 {
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
}

.scroll-down {
  color: var(--white);
  font-weight: 400;
  line-height: 16px;
  margin-left: -34.0px;
  margin-top: 34px;
  transform: rotate(-90.00deg);
  white-space: nowrap;
}

.category {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin-top: 33px;
  position: relative;
}

.all {
  color: var(--white);
}

.all-1 {
  color: var(--santas-gray);
}

/* 기존 news-item 스타일은 새로운 story-item으로 대체됨 */

/* ===== Header 전역 스타일 ===== */
/* ===== Header 전역 스타일 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
  color: #FFFFFF;
  font-family: var(--font-family-poppins);
}

.header.scrolled {
  background-color: #FFFFFF;
  color: #000000;
  -webkit-backdrop-filter: blur(10px) brightness(90%);
  backdrop-filter: blur(10px) brightness(90%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
}

.header-container {
  max-width: 1880px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 31px;
  width: 90px;
  transition: opacity 0.3s ease;
}

/* PC 네비게이션 */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link {
  color: inherit;
  font-weight: 400;
  line-height: 28px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-link.active {
  font-weight: 600;
}

/* 헤더 우측 컨트롤 */
.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 언어 선택기 */
.lang-selector {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--black);
  background-color: var(--white);
  border: 1px solid var(--wild-sand-2);
  border-radius: 50px;
  padding: 8px 16px;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 모바일에서 스크롤하지 않았을 때 언어 선택기 스타일 */
@media (max-width: 1024px) {
  .header:not(.scrolled) .lang-selector {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .header:not(.scrolled) .lang-selector .lang-text {
    color: var(--white);
  }
  
  .header:not(.scrolled) .lang-selector .icon-globe {
    filter: brightness(0) invert(1);
  }
  
  .header:not(.scrolled) .lang-selector .lang-arrow {
    filter: brightness(0) invert(1);
  }
}

.header.scrolled .lang-selector {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.header.scrolled .lang-selector:hover {
  border-color: rgba(0, 0, 0, 0.2);
}


.lang-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-globe {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.lang-text {
  font-size: 14px;
}

.lang-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.lang-selector:hover .lang-arrow {
  opacity: 1;
}

/* 언어 드롭다운 메뉴 */
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
  min-width: 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
  padding: 8px;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  position: relative;
}

.lang-option:last-child {
  margin-bottom: 0;
}

.lang-option:hover {
  background: #f8f9fa;
  color: #333;
}

.lang-option.active {
  background: #f0f8ff;
  color: #007bff;
}

.lang-code {
  font-size: 14px;
  color: inherit;
  font-weight: 500;
}

.lang-option.active .lang-code {
  color: #007bff;
  font-weight: 600;
}

/* 모바일 언어 선택 (헤더에 있으므로 숨김) */
.mobile-lang-selector {
  display: none; /* 헤더에 언어 전환이 있으므로 GNB에서는 숨김 */
}

.mobile-lang-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.mobile-lang-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-lang-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  min-height: 44px;
}

.mobile-lang-option:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-lang-option.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 40px;
}

/* 모바일 햄버거 메뉴 버튼 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  width: 44px;
  height: 44px;
  transition: all 0.3s ease;
}

/* 모바일 GNB 메뉴 */
.mobile-gnb {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  transform: scale(0);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  display: none;
  border-radius: 50%;
  transition-delay: 0.1s;
}

.mobile-gnb.active {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  border-radius: 0;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
              opacity 0.3s ease 0.5s,
              border-radius 0.6s ease;
}

.mobile-gnb-content {
  padding-top: 80px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 60px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.mobile-gnb.active .mobile-gnb-content {
  opacity: 1;
  transition-delay: 0.6s;
}

/* 모바일 GNB 스크롤바 스타일 */
.mobile-gnb-content::-webkit-scrollbar {
  width: 4px;
}

.mobile-gnb-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.mobile-gnb-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.mobile-gnb-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* 모바일 드롭다운 메뉴 스크롤바 스타일 */
.mobile-dropdown-menu::-webkit-scrollbar {
  width: 3px;
}

.mobile-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.mobile-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.mobile-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* 모바일 GNB 헤더 */
.mobile-gnb-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

/* 모바일 닫기 버튼 */
.mobile-close-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.mobile-close-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-height: 0;
  overflow-y: visible;
}

.mobile-nav-link {
  color: var(--white);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}

.mobile-nav-link:hover {
  opacity: 0.8;
}

.mobile-nav-link.active {
  font-weight: 600;
  color: var(--lima);
}

/* 메뉴 열렸을 때 body 스크롤 방지 */
body.menu-open {
  overflow: hidden;
}

/* ===== Footer 전역 스타일 ===== */
.footer {
  width: 100%;
  position: relative;
}

.address {
  align-self: stretch;
  color: var(--santas-gray);
  font-weight: 400;
  line-height: 16px;
  position: relative;
}

/* Header 반응형 스타일 */
@media (max-width: 1200px) {
  .header-container {
    padding: 20px 40px;
  }
}

@media (max-width: 1024px) {
  .header-container {
    padding: 16px 20px;
  }
  
  /* PC 네비게이션 숨기기 */
  .desktop-nav {
    display: none;
  }
  
  /* 모바일 메뉴 버튼 표시 */
  .mobile-menu-btn {
    display: flex;
  }
  
  /* 모바일 GNB 표시 */
  .mobile-gnb {
    display: block;
  }
  
  /* 언어 선택기 작게 */
  .lang-selector {
    padding: 6px 12px;
  }
  
  .lang-text {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 16px 20px;
  }
}
/* Global Button Styles */
.btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  position: relative;
  border-radius: 50px;
  gap: 10px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-family-poppins);
  font-size: var(--font-size-m);
  font-weight: 400;
  line-height: 24px;
  background: none;
  border: none;
  outline: none;
}

/* Primary Button - Black background */
.btn-primary {
  background-color: var(--black);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background-color: #222;
  transform: translateY(-1.5px);
}

/* Secondary Button - Transparent with white border */
.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-secondary:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-1.5px);
}

/* Tag/Category Buttons - Small with colored backgrounds */
.btn-tag {
  border-radius: 4px;
  padding: 8px 16px;
  font-size: var(--font-size-s);
  font-weight: 400;
  letter-spacing: -0.36px;
  line-height: 16px;
  color: var(--white);
  background-color: var(--black);
}

.hero-content .btn-tag {
  border-radius: 99px;
}

.btn-tag-red {
  background-color: var(--ogre-odor);
  color: var(--cinnabar);
  border-color: var(--ogre-odor);
}

.btn-tag-green {
  background-color: var(--lima-2);
  color: var(--black);
  border-color: var(--lima-2);
}

.btn-tag-blue {
  background-color: var(--chambray);
  color: var(--white);
  border-color: var(--chambray);
}

/* Button Text Styles */
.btn-text {
  margin-top: -1px;
  white-space: nowrap;
  width: fit-content;
}

/* Button sizes */
.btn-small {
  padding: 8px 16px;
  font-size: var(--font-size-s);
}

.btn-large {
  padding: 16px 32px;
  font-size: var(--font-size-l);
}

/* Button with fixed height */
.btn-fixed {
  height: 44px;
}

/* Navigation Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-link.has-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 12px;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content {
  padding: 12px;
  position: relative;
  z-index: 1;
}

.dropdown-item {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: #333333;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-item:hover {
  background: #f5f5f5;
  color: #333333;
}

/* Mobile Navigation Dropdown */
.mobile-nav-dropdown {
  width: 100%;
}

.mobile-nav-link.has-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.mobile-dropdown-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mobile-dropdown-arrow path {
  stroke: var(--white);
}

.mobile-dropdown-arrow.rotated {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-top: 8px;
  padding: 0; /* 초기 패딩 0 */
}

.mobile-dropdown-menu.active {
  max-height: 200px; /* 고정된 적절한 높이 */
  padding: 8px 0; /* 활성화시 패딩 추가 */
  overflow-y: auto; /* 스크롤 필요시에만 */
}

.mobile-dropdown-item {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-dropdown-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .dropdown-menu {
    min-width: 260px;
  }
}

@media (max-width: 1024px) {
  .nav-dropdown {
    display: none;
  }
  
  .mobile-nav-dropdown {
    display: block;
  }
}

@media (min-width: 1025px) {
  .mobile-nav-dropdown {
    display: none;
  }
}

/* 작은 모바일 화면에서 드롭다운 최적화 */
@media (max-width: 480px) {
  .mobile-dropdown-menu.active {
    max-height: 150px; /* 작은 화면에서 더 제한된 높이 */
  }
}

.sub-hero {
  height: 424px;
}

.sub-hero h1, .sub-hero p {
  margin-top: 20px;
}

/* ===== Stories Section 전역 스타일 ===== */
.stories-section {
  width: 100%;
  padding: 120px 0;
  background-color: var(--white);
}

.stories-container {
  display: flex;
  gap: 70px;
  width: 100%;
}

.stories-header {
  max-width: 1440px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
}

.stories-grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

/* 메인페이지용 3열 그리드 */
.stories-grid-main {
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
}

/* About페이지용 4열 그리드 */
.stories-grid-about {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 기본 그리드 (호환성) */
.stories-grid-default {
  grid-template-columns: repeat(3, 1fr);
}

/* Story Item 스타일 - 직관적인 클래스명 사용 */
.story-item {
  background-color: var(--gray-50);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 16px;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-item:hover {
  background-color: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.story-image {
  align-self: stretch;
  height: 240px;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}

.story-content {
  align-items: flex-start;
  align-self: stretch;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 32px;
  position: relative;
  width: 100%;
  justify-content: space-between;
}

.story-meta {
  align-items: flex-start;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  width: 100%;
}

.story-meta .btn-tag {
  padding: 4px 8px;
}

.story-details {
  align-items: flex-start;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  width: 100%;
  margin-top: 12px;
}

.story-date {
  align-self: stretch;
  color: var(--trout);
  font-weight: 400;
  line-height: 16px;
  margin-top: -1.00px;
  position: relative;
}

.story-title {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  align-self: stretch;
  display: -webkit-box;
  letter-spacing: -0.48px;
  line-height: 24px;
  overflow: hidden;
  position: relative;
  text-overflow: ellipsis;
  color: var(--black);
  font-weight: 500;
  margin: 0;
}

.story-link {
  align-self: stretch;
  color: var(--pale-sky);
  font-weight: 400;
  line-height: 16px;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.story-link:hover {
  color: var(--cinnabar);
}

/* Stories Section 반응형 */
@media (max-width: 1200px) {
  .stories-grid-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .stories-grid-about {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .stories-grid-default {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 추가 중간 크기 대응 */
  @media (max-width: 1000px) {
    .stories-grid,
    .stories-grid-default {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 900px) {
    .stories-grid,
    .stories-grid-default {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}

@media (max-width: 768px) {
  .stories-section {
    padding: 60px 0 80px 0;
  }
  
  .stories-header {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .stories-grid,
  .stories-grid-main,
  .stories-grid-about,
  .stories-grid-default {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .story-item {
    height: auto;
    min-height: 400px;
    padding: 12px;
  }
  
  .story-image {
    margin-bottom: 20px;
    height:180px;
  }
  
  .story-content {
    gap: 20px;
  }
  
  .story-title {
    font-size: 14px;
    line-height: 20px;
    height: auto;
    -webkit-line-clamp: 3;
  }
}

/* ===== Quick Widget - Absolute Positioning ===== */
.quick-widget-absolute {
  position: fixed;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  z-index: 100;
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.quick-widget-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.quick-widget-toggle:hover {
  background: rgba(255, 255, 255, 1);
}

.quickicon-property-24 {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hide {
  color: var(--trout);
  font-family: var(--font-family-poppins);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.quick-widget-content {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.95);
}

.quick-widget-content .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--lima);
  border-radius: 8px;
}

.quick-widget-content .vector-1 {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.accurate-loop-predic {
  color: var(--eerie-black);
  font-family: var(--font-family-poppins);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
  flex: 1;
}

/* Quick Widget 반응형 */
@media (max-width: 1200px) {
  .quick-widget-absolute {
    right: 20px;
    width: 260px;
  }
}

@media (max-width: 768px) {
  .quick-widget-absolute {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    transform: none;
    width: 240px;
  }
}

@media (max-width: 480px) {
  .quick-widget-absolute {
    right: 16px;
    bottom: 16px;
    width: 220px;
  }
  
  .quick-widget-content {
    padding: 16px;
    gap: 12px;
  }
  
  .accurate-loop-predic {
    font-size: 11px;
    line-height: 14px;
  }
}

/* ===== Section 기반 클래스 시스템 ===== */

/* 기본 Section 클래스 - 공통 스타일 */
.section {
  width: 100%;
  position: relative;
}

/* Section 내부 컨테이너 */
.section__container {
  width: 100%;
  max-width: var(--container-max-width);
  padding-left: var(--container-padding-desktop);
  padding-right: var(--container-padding-desktop);
  margin: 0 auto;
}

/* Section 타입별 스타일 */
.section--hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #2f408d, #84b51b);
  color: var(--white);
  display: flex;
  align-items: center;
}

.section--about {
  padding: 120px 0;
  background-color: var(--white);
}

.section--platform {
  padding: 120px 0;
  background-image: url('../images/index/bg-3.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.section--stories {
  padding: 120px 0;
  background-color: var(--white);
}

.section--partner {
  padding: 80px 0;
  background-color: var(--chambray);
  color: var(--white);
}

.section--banner {
  padding: 120px 0;
  background-image: url('../images/common/bottom-banner.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  min-height: 504px;
}

/* Section 반응형 */
@media (max-width: 1200px) {
  .section__container {
    padding-left: var(--container-padding-tablet);
    padding-right: var(--container-padding-tablet);
  }
  .stories-container {
    flex-direction: column;
    gap: 24px;
  }
  .section--about,
  .section--platform,
  .section--stories {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .section__container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }
  .stories-container {
    flex-direction: column;
    gap: 24px;
  }
  
  .section--hero {
    min-height: 70vh;
  }
  
  .section--about,
  .section--platform,
  .section--stories,
  .section--banner {
    padding: 60px 0;
  }
  
  .section--partner {
    padding: 60px 0;
  }
}