/* =====================
   Base Reset
===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: white;
  color: var(--gray600);
  line-height: 1.4;
  letter-spacing: -0.025em;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  display: none;
}

a {
  color: var(--gray600);
  text-decoration: none;
}

button {
  background: inherit;
  border: none;
  padding: 0;
  overflow: visible;
  cursor: pointer;
  box-shadow: none;
  border-radius: 0;
}

div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, button, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, input {
  border: 0;
  vertical-align: baseline;
}

/* =====================
   Header Styles
===================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  max-width: 1640px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
}

.logo-wrap,
.logo {
  height: 46px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-right .nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-right .nav-item {
  position: relative;
  font-size: var(--text-lg);
  font-weight: 600;
  color: white;
  text-decoration: none;
  padding-bottom: 4px;
  overflow: hidden;
}

/* ::after로 밑줄 생성 */
.nav-right .nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* hover 시 밑줄 애니메이션 */
.nav-right .nav-item:hover::after {
  transform: scaleX(1);
}

.vol-info {
  background: white;
  color: var(--brand500);
  padding: 4px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--text-lg);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: white;
}

@media (max-width: 1440px) {
  .logo-wrap,
  .logo {
    height: 40px;
  }
}

@media (max-width: 1280px) {
  .hamburger { display: flex; }
  .nav-right .nav,
  .vol-info { display: none; }
}

@media (max-width: 768px) {
  .header { padding: 20px; }
  .logo-wrap,
  .logo { height: 32px; }
  .nav-right .nav { display: none; }
}

@media (max-width: 640px) {
  .logo-wrap,
  .logo { height: 24px; }
  .hamburger {
    width: 24px;
    height: 16px;
  }
}


/* =====================
   Mobile Menu Styles
===================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--gray600);
  padding: 60px 40px;
  overflow-y: auto;
  z-index: 9999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}

.menu-title {
  font-size: var(--title-Manuscript);
  font-weight: 600;
  color: white;
}

.menu-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.close-btn {
  width: 36px;
  height: 36px;
}

.menu-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-title {
  font-size: 28px;
  color: white;
  font-weight: 600;
  border-bottom: 1px solid #444;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-item {
  padding: 12px 0;
  border-bottom: 1px solid #333;
}

.section-item a {
  color: white;
}

.section-item a:hover p:first-child {
  text-decoration: underline;
}

.author {
  font-size: var(--text-sm);
  color: #aaa;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .mobile-menu {
    padding: 40px 20px;
  }

  .menu-header {
    margin-bottom: 40px;
  }
}

/* =====================
   Section Common
===================== */
.section {
  width: 100%;
}

.section#spotlight {
  background-image: url('../img/assets/spotlight_bg.png');
  background-size: cover;
}

.section#global {
  background-color: var(--gray100);
}

.section-container {
  max-width: 1640px;
  margin: 0 auto;
  width: 100%;
  padding: var(--content-spacing) 40px;
}

@media (max-width: 1280px) {
  .section-container {
    padding: 80px 40px;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 60px 20px;
  }
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  margin-left:4px;
}

.section-title-wrap#data-subject-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 28px;
}

@keyframes float-horizontal {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-12px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes float-vertical {
  0% {
    transform: translateY(8px);
  }
  50% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(8px);
  }
}

.subject-img-pc {
  animation: float-horizontal 2s ease-in-out infinite;
}

.subject-img-m {
  animation: float-vertical 2s ease-in-out infinite;
}

#data-point {
  padding-top: 0px;
}

#data-subject {
  font-size: var(--text-lg);
  font-weight: 600;
}

@media (max-width: 640px) {
  #data-subject {
    font-size: 16px;
  }
}

.section-title-text {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  color: var(--gray600);
}

#spotlight .section-title-text {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-end;
}

#spotlight .text-highlight {
  font-size: var(--title-important);
}

.text-highlight {
  font-size: var(--title-sectionKorea);
  font-weight: 800;
  color: var(--brand500);
}

@media (max-width: 768px) {
  .section-title-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;;
  }

  .text-highlight {
    font-size: var(--title-sectionEnglish);
  }
}

#spotlight .kor-title {
  font-size: var(--title-important);
  font-weight: 600;
}

.kor-title {
  font-size: var(--title-sectionKorea);
  font-weight: 600;
}

.eng-title {
  font-size: var(--title-sectionEnglish);
  font-weight: 600;
}


.subject-img-pc {
  height: 44px;
  display: none;
}

.subject-img-m {
  height: 52px;
  display: block;
}

@media (min-width: 1024px) {
  .subject-img-pc {
    display: block;
  }

  .subject-img-m {
    display: none;
  }
}

/* =====================
   Content List Grid
===================== */
.spotlight-item,
.global-item,
.people-item,
.trend-item,
.data-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  width: 100%;
  border-radius: 12px;
  border: 4px solid transparent;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  scroll-snap-align: start;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.spotlight-item.animate,
.global-item.animate,
.people-item.animate,
.trend-item.animate,
.data-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.swiper-slide-duplicate a {
  pointer-events: auto;
}

.spotlight-item {
  height: 378px;
}

.global-item,
.people-item,
.trend-item,
.data-item {
  height: 300px;
}

.spotlight-item:hover,
.global-item:hover,
.people-item:hover,
.trend-item:hover,
.data-item:hover {
  border: 4px solid var(--brand500);
}

.item-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.5s ease;
}

.spotlight-item:hover .item-bg,
.global-item:hover .item-bg,
.people-item:hover .item-bg,
.trend-item:hover .item-bg,
.data-item:hover .item-bg {
  transform: scale(1.1);
}

.item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  z-index: 1;
}

.item-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  word-break: keep-all;
}

.item-author {
  font-size: 16px;
}

.item-title {
  font-size: var(--title-thumnail);
  font-weight: 600;
}

@media (max-width: 768px) {
  .spotlight-item,
  .global-item,
  .people-item,
  .trend-item,
  .data-item {
    padding: 16px;
  }

  .item-author {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .spotlight-item,
  .global-item,
  .people-item,
  .trend-item,
  .data-item {
    max-height: 320px;
  }
}

@media (max-width: 400px) {
  .spotlight-item,
  .global-item,
  .people-item,
  .trend-item,
  .data-item {
    max-height: 200px;
  }
}

/* =====================
   만족도 조사
===================== */
#survey-banner {
  width: 100%;
  background-color: var(--gray100);
}

#survey-banner > div {
  max-width: 1640px;
  padding: 0 40px;
  margin: 0 auto;
  background-color: var(--gray100);
}

.survey-link > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.survey-link > img:last-child {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

@media (max-width: 768px) {
  .survey-link > img:first-child {
    display: none;
  }

  .survey-link > img:last-child {
    display: block;
  }

  #survey-banner > div {
  max-width: 768px;
  padding: 0 20px;
  margin: 0 auto;
  background-color: var(--gray100);
}
}

/* =====================
   Footer Styles
===================== */
.footer {
  background-color: var(--gray600);
  color: var(--gray200);
  padding: 60px 0;
}

.footer .footer-container {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top-wrap {
  display: flex;
  justify-content: space-between;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top .footer-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  width: 180px;
}

.footer-description {
  font-size: var(--text-md);
  color: white;
  line-height: 1.8;
  word-break: keep-all;
}

.footer-info {
  font-size: var(--text-md);
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.footer-info-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-info-group > div {
  display: flex;
  gap: 20px;
}

.footer-info-group > div > p:first-child {
  width: fit-content;
  font-weight: 600;
}

.footer-info > .footer-info-group:nth-child(2) > div > p {
  width: 58px;
}

.footer-buttons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: fit-content;
  height: fit-content;
}

.footer-button-outline,
.footer-button-filled {
  padding: 12px 24px;
  border-radius: 9999px;
  text-align: center;
  font-size: var(--text-md);
  transition: background-color 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.footer-button-outline {
  border: 1px solid white;
  color: white;
}

.footer-button-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-button-filled {
  background-color: white;
  color: var(--gray600);
}

.footer-button-filled:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  font-size: var(--text-sm);
  color: var(--gray400);
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid var(--gray400);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-bottom img {
  height: 29px;
}

@media (max-width: 1280px) {
  .footer-top-wrap {
    flex-direction: column;
    gap: 40px;
  }

  .footer-info-group > div {
    gap: 12px;
  }

  .footer-info {
    font-size: var(--text-sm);
    flex-direction: row;
    gap: 24px;
  }

  .footer-description {
    font-size: 14px;
  }

  .footer-info > div:nth-child(1).footer-info-group > div > p:first-child {
    min-width: 36px;
  }

  .footer-info > div:nth-child(2).footer-info-group > div > p:first-child {
    min-width: 52px;
  }
}

@media (min-width: 1024px) {
  .footer-logo {
    width: 269px;
  }
}

@media (max-width: 768px) {
  .footer .footer-container {
    padding: 0 20px;
  }

  .footer-info-group > div {
    gap: 12px;
  }

  .footer-info {
    flex-direction: column;
  }

  .footer-description {
    font-size: 14px;
  }

  .footer-info > div:nth-child(1).footer-info-group > div > p:first-child {
    min-width: 52px;
  }

  .footer-info > .footer-info-group:nth-child(2) > div > p {
  width: 52px;
}

  .footer-button-outline,
  .footer-button-filled {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .footer-buttons {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .footer-button-outline,
  .footer-button-filled {
    width: 100%;
    padding: 8px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .footer-hidden {
    display: none;
  }
}

@media (max-width: 420px) {
  .footer-info,
  .footer-description {
    font-size: 12px;
  }

  .footer-button-outline,
  .footer-button-filled {
    font-size: 14px;
  }

  .footer-buttons {
    flex-direction: column;
    gap: 8px;
  }
}