:root {
  --color-bg: #f9f9f7;
  --color-text: #333;
  --color-accent: #2c3e34;
  --color-footer: #f2f2f0;
  --color-gray-500: #6b7280;
  --color-gray-400: #9ca3af;
  --color-gray-300: #d1d5db;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 폰트 유틸리티 */
.font-serif-eng {
  font-family: "Cormorant Garamond", serif;
}

.font-serif-kor {
  font-family: "Noto Serif KR", serif;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 공통 레이아웃 */
.container {
  max-width: 80rem;
  /* max-w-7xl */
  margin: 0 auto;
}

/* =========================================
           Navigation (PC Default)
           ========================================= */
.site-nav {
  position: fixed;
  width: 100%;
  z-index: 500;
  padding: 1.5rem 2rem;
  /* py-6 px-8 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  color: rgb(255, 255, 255);
}

.logo {
  font-size: 1.25rem;
  /* text-xl */
  letter-spacing: 0.1em;
  /* tracking-widest */
}

.nav-links {
  display: flex;
  gap: 2rem;
  /* space-x-8 */
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 300;
  /* font-light */
  letter-spacing: 0.025em;
  /* tracking-wide */
}

.nav-links a {
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.7;
}

.btn-book {
  font-size: 0.875rem;
  /* text-sm */
  border: 1px solid white;
  padding: 0.25rem 1rem;
  /* px-4 py-1 */
  transition: all 0.3s;
}

.btn-book:hover {
  background-color: white;
  color: black;
}

/* [추가] 햄버거 버튼 스타일 (PC에서는 숨김) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 60;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #b8b8b8;
  transition: all 0.3s;
}

/* [추가] 햄버거 버튼 애니메이션 (X자로 변신) */
.hamburger-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px);
}

/* [추가] 모바일 전체화면 메뉴 오버레이 */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

/* [추가] 메뉴가 활성화되었을 때 */
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mobile-links a {
  font-size: 1.5rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--color-accent);
}
.mobile-links a.active {
  border-bottom: 1px solid var(--color-accent);
  display: inline-block;
}

/* [수정] 모바일 반응형 부분 (기존 @media 안에 아래 내용을 추가/수정) */
@media (max-width: 768px) {
  /* 기존 내용 유지... */

  /* [추가] PC 메뉴 숨기고 햄버거 버튼 보이기 */
  .nav-links {
    display: none;
  }
  .btn-book {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
}

/* =========================================
           Hero Section (PC Default)
           ========================================= */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: brightness(0.75);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* space-y-6 */
}

.hero-title {
  font-size: 4.5rem;
  /* md:text-7xl */
  font-style: italic;
  font-weight: 300;
  /* font-light */
  letter-spacing: 0.025em;
  /* tracking-wide */
  line-height: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  /* md:text-xl */
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.05em;
  /* tracking-wider */
  margin-top: 1rem;
}

.hero-caption {
  padding-top: 2rem;
}

.hero-caption span {
  font-size: 0.75rem;
  /* text-xs */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* =========================================
           Intro Section (PC Default)
           ========================================= */
.intro-section {
  padding: 8rem 1.5rem;
  /* py-32 px-6 */
  background-color: var(--color-bg);
}

.intro-container {
  max-width: 42rem;
  /* max-w-2xl */
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* space-y-8 */
}

.intro-container h2 {
  font-size: 35px;
}

.intro-container p {
  font-weight: 200;
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.9;
}

.intro-container .line {
  height: 66px;
  width: 1px;
  background: #a3a3a3;
  margin: auto;
}

.intro-title {
  font-size: 1.875rem;
  /* md:text-3xl */
  color: var(--color-accent);
}

.divider {
  width: 1px;
  height: 3rem;
  /* h-12 */
  background-color: var(--color-accent);
  margin: 0 auto;
  opacity: 0.3;
}

.intro-desc {
  font-size: 1rem;
  /* md:text-base */
  line-height: 2;
  /* leading-loose */
  color: #4b5563;
  /* text-gray-600 */
  font-weight: 300;
}

/* =========================================
           Program Section (PC Default)
           ========================================= */
.program-section {
  padding: 5rem 3rem;
  /* py-20 px-12 (PC) */
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* md:grid-cols-3 */
  gap: 3rem;
  /* gap-12 */
}

.program-card {
  cursor: pointer;
}

/* 가운데 카드 상단 마진 (PC Only) */
.program-card:nth-child(2) {
  margin-top: 4rem;
  /* md:mt-16 */
}

.img-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  /* mb-6 */
  aspect-ratio: 3 / 4;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.6s ease, filter 0.3s;
}

/* Group Hover Effect */
.program-card:hover .img-container img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.card-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* space-y-2 */
}

.card-title {
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
}

.card-sub {
  font-size: 1.425rem;
  /* text-sm */
  color: var(--color-gray-500);
  letter-spacing: -1.4px;
  font-weight: 600;
}

.card-desc {
  font-size: 0.95rem;
  /* text-xs */
  color: var(--color-gray-400);
  margin-top: 0.5rem;
  font-weight: 300;
  line-height: 1.625;
  /* leading-relaxed */
  padding: 0 1rem;
}

.view-all-btn-area {
  text-align: center;
  margin-top: 5rem;
  /* mt-20 */
}

.view-all-btn {
  display: inline-block;
  border-bottom: 1px solid black;
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  /* tracking-widest */
  transition: opacity 0.3s;
}

.view-all-btn:hover {
  opacity: 0.5;
}

/* =========================================
          Banner Section 
           ========================================= */

.banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.banner div {
  background: url(../img/banner_1.jpg) center;
  background-size: cover;
  padding: 20rem 6rem 4rem 6rem;
  color: #fff;
}
.banner div:nth-child(2) {
  background-image: url(../img/banner_2.jpg);
}
.banner h3 {
  font-size: 50px;
  font-style: italic;
  letter-spacing: normal;
  padding-bottom: 2rem;
  font-weight: normal;
}

.banner p {
  font-size: 24px;
}
/* =========================================
           Slogan Section 
           ========================================= */
.slogan {
  background: #28342a;
  padding: 30px 0;
  color: #ab9e8c;
  text-align: center;
  font-size: 16px;
  letter-spacing: 3px;
  font-weight: 600;
}

/* =========================================
           Experience Section 
           ========================================= */
.experience-section {
  padding: 190px 0;
  background: url(../img/exp_bg.jpg) center;
  background-size: cover;
  /* py-20 */
}

.exp-banner {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.exp-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.exp-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: white;
}

.exp-title {
  font-size: 2.1rem;
  /* md:text-4xl */
  margin-bottom: 2.5rem;
  letter-spacing: -2.6px;
  font-weight: 400;
}

.exp-desc {
  font-size: 22px;
  /* md:text-base */
  font-weight: 200;
  line-height: 2;
  opacity: 0.7;
  max-width: 55rem;
  /* max-w-lg */
}

/* =========================================
           Footer (PC Default)
           ========================================= */
.site-footer {
  background-color: var(--color-footer);
  padding: 4rem 1.5rem;
  /* py-16 px-6 */
  border-top: 1px solid #e5e5e5;
}

.footer-content {
  display: flex;
  flex-direction: row;
  /* md:flex-row */
  justify-content: space-between;
  align-items: flex-end;
  /* md:items-end */
  gap: 2.5rem;
  /* gap-10 */
}

.footer-brand h2 {
  font-size: 1.5rem;
  /* text-2xl */
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-msg {
  font-size: 0.9rrem;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}

.footer-info {
  font-size: 0.92em;
  /* text-xs */
  color: var(--color-gray-400);
  font-weight: 300;
  line-height: 1.5;
}

.footer-social {
  text-align: right;
}

.social-links {
  display: flex;
  gap: 1rem;
  /* space-x-4 */
  margin-bottom: 1rem;
  color: #4b5563;
}

.social-btn {
  font-size: 0.75rem;
  text-transform: uppercase;
  border: 1px solid var(--color-gray-400);
  padding: 0.25rem 0.75rem;
  transition: all 0.3s;
}

.social-btn:hover {
  background-color: var(--color-gray-400);
  color: white;
}

.copyright {
  font-size: 0.9rem;
  /* text-[10px] */
  color: var(--color-gray-300);
}

/* =========================================
           Media Queries for Mobile (Max-width 768px)
           ========================================= */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
    /* hidden on mobile */
  }

  /* Hero */
  .hero-title {
    font-size: 3rem;
    /* text-5xl */
  }

  .hero-subtitle {
    font-size: 1.125rem;
    /* text-lg */
  }

  /* Intro */
  .intro-section {
    padding: 6rem 0 0;
  }
  .intro-title {
    font-size: 1.5rem;
    /* text-2xl */
  }

  .intro-desc {
    font-size: 0.875rem;
    /* text-sm */
  }
  .intro-container h2 {
    font-size: 30px;
  }
  .intro-container p {
    font-size: 0.99rem;
  }

  /* banner */
  .banner {
    grid-template-columns: 1fr;
  }
  .banner div {
    padding: 5rem 3rem;
  }
  .banner p {
    font-size: 19px;
  }

  /* Program Section */
  .program-section {
    padding: 5rem 1.5rem;
    /* px-6 for mobile */
  }

  .program-grid {
    grid-template-columns: 1fr;
    /* grid-cols-1 */
  }

  .program-card:nth-child(2) {
    margin-top: 0;
    /* Reset margin for mobile */
  }

  /* Experience Section */
  .experience-section {
    padding: 100px 10px;
  }
  .exp-title {
    font-size: 1.5rem;
    /* text-3xl */
  }

  .exp-desc {
    font-size: 1.1rem;
    /* text-sm */
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    /* flex-col */
    align-items: flex-start;
    /* items-start */
  }

  .footer-social {
    text-align: left;
    width: 100%;
  }
}
