/* ==============================
   Local Font: Pretendard
============================== */

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

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

@font-face {
  font-family: "Pretendard";
  src: url("../assets/fonts/NotoSansKR-Bold.woff2") format("woff2");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}

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

/* ---------- Base ---------- */
:root{
  --bg: #0b1020;
  --header: rgba(17, 24, 39, 1);
  --line: rgb(255, 255, 255);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);

  --paper: #ffffff;
  --paperText: rgba(10, 14, 24, 0.88);
  --paperMuted: rgba(10, 14, 24, 0.62);
  --paperLine: rgba(10, 14, 24, 0.10);

  --container: 1200px;
  --header-h: 64px;
  --hero-h: 400px;      /* 기본 히어로 높이 (여기만 바꾸면 됨) */
  --hero-max: 72vh;     /* 화면이 커도 이 이상 커지지 않게 */
  --hero-min: 240px;    /* 너무 작아지지 않게(선택) */
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  body{
  font-family: "Pretendard",
               system-ui, -apple-system,
               "Apple SD Gothic Neo",
               "Noto Sans KR",
               Segoe UI, Roboto, Arial, sans-serif;
}
  color: var(--text);
  background: var(--bg);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.header-inner{
  width: min(var(--container), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
}

.brand-text{ font-size: 22px; line-height: 1; }

.brand-logo{
  height: 23px;     /* 🔥 여기만 바꾸면 로고 크기 조절 */
  width: auto;
  display: block;
}

.gnb{
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.gnb-link{
  font-size: 18px;
  color: var(--muted);
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}

.gnb-link:hover{
  color: var(--text);
  border-bottom-color: rgba(255,255,255,0.35);
}

.menu-btn{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}
.menu-btn-bar{
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  margin: 1px auto;
}

.mobile-menu{
  position: absolute;
  left: 0; right: 0;
  background: rgba(6, 10, 18, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px 16px;
}
.mobile-link{
  display: block;
  padding: 12px 6px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  border-radius: 10px;
}
.mobile-link:hover{
  background: rgba(255,255,255,0.06);
}

/* ---------- Hero (여백 제거 버전) ---------- */
.hero { 
  padding-top: var(--header-h);
  background: #ffffff; /* 배경을 검은색으로 두거나 배경색에 맞게 조절 */
  width: 100%;
}

.main-slider {
  width: 100%;
  height: auto; /* 고정 높이 제거 */
  aspect-ratio: 1920 / 600; /* ✅ 중요: 사용하시는 이미지의 실제 가로/세로 비율로 수정하세요 */
}

.main-slider .swiper-slide {
  width: 100%;
  height: auto;
}

.main-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  /* cover(꽉 채우기) 대신 contain(전체 보이기) 사용 */
  object-fit: contain; 
  display: block;
}

.main-slider .swiper-slide img {
  width: 100%;
  height: auto;    /* 세로를 고정하지 않음 */
  display: block;
  object-fit: fill; /* 가로/세로를 슬라이더 박스에 강제로 맞춤 */
}

/* 컨트롤러 스타일 (네이비 테마 반영) */
.main-slider .swiper-button-next,
.main-slider .swiper-button-prev {
  color: #fff;
  background: rgba(11, 16, 32, 0.4); /* --bg 컬러 활용 */
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.main-slider .swiper-button-next:after,
.main-slider .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

.main-slider .swiper-pagination-bullet-active {
  background: #00afaa; /* 이미지에 있는 청록색 포인트 컬러 활용 */
  width: 24px;
  border-radius: 4px;
}

/* 모바일에서도 여백 없이 비율 유지 */
@media (max-width: 980px) {
  .main-slider {
    aspect-ratio: 16 / 5.2; /* 모바일 전용 비율이 따로 있다면 수정 */
  }
}

/* NEW CONTENTS: 가운데 정렬 레이아웃 */
.contents{
  background: var(--paper);
  color: var(--paperText);
  padding: 15px 0 44px;
}

.section-head{
  display: flex;
  align-items: baseline;
  padding: 6px 0 0px;
  border-bottom: 1px solid var(--paperLine);
  text-align: center;
}

/* 타이틀 가운데 */
.section-head--center{
  justify-content: center;
  text-align: center;
}

/* 카드 그리드 기본 */
.card-grid{
  display: grid;
  gap: 22px;
  padding-top: 18px;
}

/* ✅ 4개 카드 기준으로 “그리드 폭을 제한”하고 가운데 정렬 */
.card-grid--center4{
  grid-template-columns: repeat(4, 1fr);
  width: min(1040px, 100%); /* 4장 기준 적당 폭 (원하면 값 조절 가능) */
  margin: 0 auto;           /* 가운데 정렬 */
}

.section-head{
  display: flex;
  align-items: baseline;
  padding: 6px 0 18px;
}
.section-title{
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: rgba(0, 175, 170, 0.95); /* 이미지의 청록 느낌 */
  letter-spacing: -0.5px;
}

/* 카드 그리드 */
.card-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-top: 18px;
}

.card{
  display: block;
  border: 1px solid var(--paperLine);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.card-thumb{
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--paperLine);
}

.card-body{
  padding: 14px 14px 12px;
}

.card-title{
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 650;
  color: rgba(10, 14, 24, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.card-desc{
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--paperMuted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.card-meta{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(10, 14, 24, 0.55);
}
.card-meta .dot{
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(10,14,24,0.35);
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--paper);
  border-top: 1px solid var(--paperLine);
  color: rgba(10,14,24,0.62);
}
.footer-inner{
  padding: 18px 0 28px;
}

/* ---------- Responsive (Mobile) ---------- */
@media (max-width: 980px) {
  /* 1. 헤더 및 히어로 높이 최적화 */
  :root {
    --header-h: 60px;
    --hero-h: auto; /* 모바일은 콘텐츠 높이에 맞춤 */
  }

  /* 2. 가로에서 세로로 전환 */
  .hero-grid {
    flex-direction: column; /* 모바일: 세로 배치 */
  }

  .hero-panel {
    height: auto; /* 고정 높이 해제하여 공백 제거 */
    flex: none;
    width: 100%;
  }

  .hero-img {
    height: auto; /* 이미지 원본 비율대로 세로로 쌓임 */
  }

  /* 3. 모바일 메뉴 및 기타 간격 조정 */
  .gnb { display: none; }
  .menu-btn { display: inline-block; }

  .contents {
    padding: 20px 0 30px; /* 섹션 상단 공백 최소화 */
  }
}

/* 카드 그리드 반응형 (기존 유지 및 보정) */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .card-grid, .card-grid--center4 { 
    grid-template-columns: 1fr; 
    width: 100%;
  }
}


/* 반응형 */
@media (max-width: 1100px){
  .card-grid--center4{
    grid-template-columns: repeat(2, 1fr);
    width: min(720px, 100%);
  }
}

@media (max-width: 560px){
  .card-grid--center4{
    grid-template-columns: 1fr;
    width: min(420px, 100%);
  }
}

@media (max-width: 980px){
  :root{
    --hero-h: 420px;
    --hero-max: 60vh;
  }
}

/* =========================================================
   About Page (Light)
========================================================= */
.page-light{
  background: #ffffff;
  color: rgba(10,14,24,0.88);
}

/* 헤더 높이만큼 밀어주기 */
.header-spacer{ height: var(--header-h); }

/* 라이트 헤더 변형 */
.site-header--light{
  background: rgba(240, 246, 252, 0.92);
  border-bottom: 1px solid rgba(10,14,24,0.10);
}
.brand--dark .brand-text{ color: rgba(10,14,24,0.80); }

.gnb--dark .gnb-link--dark{
  color: rgba(10,14,24,0.55);
}
.gnb--dark .gnb-link--dark:hover{
  color: rgba(10,14,24,0.85);
  border-bottom-color: rgba(10,14,24,0.22);
}

.menu-btn--dark{
  border-color: rgba(10,14,24,0.14);
}
.menu-btn--dark .menu-btn-bar{
  background: rgba(10,14,24,0.65);
}

.mobile-menu--light{
  background: rgba(240, 246, 252, 0.96);
  border-bottom: 1px solid rgba(10,14,24,0.10);
}
.mobile-link--dark{
  color: rgba(10,14,24,0.78);
}
.mobile-link--dark:hover{
  background: rgba(10,14,24,0.06);
}

/* About layout */
.about-wrap{
  padding: 22px 0 60px;
}
.about-container{
  width: min(980px, calc(100% - 40px)); /* 이미지처럼 가운데 좁게 */
}

.page-title{
  margin: 10px 0 14px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(0, 175, 170, 0.95);
}

/* 상단 큰 이미지 */
.about-hero{
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid rgba(10,14,24,0.10);
  background-size: cover;
  background-position: center;
}

/* 본문 */
.about-intro{
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(10,14,24,0.70);
}
.about-intro p{ margin: 8px 0; }

/* Vision */
.vision{
  margin-top: 22px;
}
.vision-head{
  margin: 10px 0 10px;
}
.section-title-light{
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: rgba(0, 175, 170, 0.95);
  letter-spacing : -0.5px;
}
.section-sub{
  margin: 0;
  font-size: 21px;
  color: rgba(10,14,24,0.55);
}

.vision-grid{
  gap: 18px;
  margin-top: 12px;
  width: 100%;
}

.vision-text{
  font-size: 20px;
  line-height: 1.6;
  color: rgba(10,14,24,0.70);
}
.vision-text p{ margin: 10px 0; }

.vision-image{
  width: 30%;
  border-radius: 2px;
  height: 380px;
  border: 1px solid rgba(10,14,24,0.10);
  background-image: url("../assets/img/about-vision.png"); /* ✅ 여기만 바꾸면 됨 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  float: right;
}

/* 부모 요소가 높이를 잃지 않게 방지 (Clearfix) */
.vision-image::after {
    content: "";
    display: block;
    clear: both;
}

/* 하단 큰 라운드 박스 */
.about-bottom{
  margin-top: 26px;
  padding-top: 10px;
}
.big-card{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(10,14,24,0.08);
}

/* 라이트 푸터 */
.site-footer--light{
  background: #ffffff;
  border-top: 1px solid rgba(10,14,24,0.10);
  color: rgba(10,14,24,0.60);
}

/* Responsive */
@media (max-width: 980px){
  .vision-image{
    width: 40%;
    float: right;
    display: block;
    margin-left: 15px
  }
}



/* =========================================================
   News Page
========================================================= */
.news-container{
  width: min(980px, calc(100% - 40px));
  padding: 18px 0 60px;
}

/* Featured */
.news-featured{ margin-top: 8px; }

.featured{
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.featured-thumb{
  height: 240px;
  background: rgba(120, 170, 200, 0.18);
  border: 1px solid rgba(10,14,24,0.10);
}

/* 원하는 경우 이미지로 교체:
.featured-thumb{ background-image:url("../assets/img/news-featured.jpg"); background-size:cover; background-position:center; }
*/

.featured-title{
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(10,14,24,0.86);
}
.featured-desc{
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(10,14,24,0.56);
  max-width: 450px;
}

/* Blocks */
.news-block{ margin-top: 22px; }

.block-title{
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(0, 175, 170, 0.95);
}

/* Latest 4-grid */
.news-grid4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mini-card{
  display: block;
  color: inherit;
  text-decoration: none;
}

.mini-thumb{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(120, 170, 200, 0.18);
  border: 1px solid rgba(10,14,24,0.10);
  margin-bottom: 10px;
}

/* 개별 썸네일 이미지로 바꾸고 싶으면,
   각 카드 div에 style="background-image:url(...)"를 주거나
   아래처럼 클래스별로 지정 가능
*/

.mini-title{
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(10,14,24,0.82);
  line-height: 1.25;
}
.mini-desc{
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(10,14,24,0.54);
}

/* Popular 2x2 row cards */
.popular-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
}

.row-card{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(10,14,24,0.14);
  color: inherit;
  text-decoration: none;
}

.row-thumb{
  width: 100%;
  height: 110px;
  background: rgba(120, 170, 200, 0.18);
  border: 1px solid rgba(10,14,24,0.10);
}

.row-title{
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(10,14,24,0.82);
}
.row-desc{
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(10,14,24,0.54);
}

/* Line list */
.line-list{
  border-top: 1px solid rgba(10,14,24,0.18);
}
.line-item{
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10,14,24,0.18);
  font-size: 11px;
  font-weight: 800;
  color: rgba(10,14,24,0.72);
  text-decoration: none;
}
.line-item:hover{
  color: rgba(10,14,24,0.92);
}

/* ========== Detail Layout ========== */
.detail-page{
  padding-top: 84px; /* 헤더 고정 높이에 맞게 조절 */
}

.detail-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

.detail-main{
  background: var(--paper, #fff);
  color: var(--paperText, rgba(10,14,24,.88));
}

.detail-top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.detail-kicker{
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(10,14,24,.55);
}

.breadcrumb{
  font-size: 14px;
  color: rgba(10,14,24,.55);
}
.breadcrumb a{ color: inherit; text-decoration: none; }
.breadcrumb a:hover{ text-decoration: underline; }

.detail-title{
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  margin: 10px 0 12px;
}

.detail-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: rgba(10,14,24,.58);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(10,14,24,.08);
}
.detail-meta .meta-dot{ opacity: .5; }

.detail-hero{
  margin: 22px 0 20px;
  border-radius: 14px;
  overflow: hidden;
}
.detail-hero img{
  width: 100%;
  height: auto;
  display: block;
}

.detail-content{
  font-size: 17px;
  line-height: 1.8;
  padding: 10px 0 24px;
}
.detail-content p{ margin: 0 0 14px; }
.detail-content .hint{
  color: rgba(10,14,24,.6);
}
.detail-content code{
  background: rgba(10,14,24,.06);
  padding: 2px 6px;
  border-radius: 6px;
}

.detail-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0 20px;
}
.detail-tags .tag{
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10,14,24,.06);
  color: rgba(10,14,24,.72);
}

.detail-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(10,14,24,.08);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(10,14,24,.14);
  color: rgba(10,14,24,.86);
  background: #fff;
  cursor: pointer;
}
.btn.ghost{
  background: transparent;
}

.detail-nav{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 18px;
}
.detail-nav .nav-item{
  border: 1px solid rgba(10,14,24,.10);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}
.detail-nav .cap{
  display: block;
  font-size: 12px;
  color: rgba(10,14,24,.55);
}
.detail-nav .ttl{
  display: block;
  margin-top: 6px;
  font-weight: 700;
  line-height: 1.3;
}

/* ========== Sidebar ========== */
.detail-side{
  position: sticky;
  top: 96px; /* 헤더 높이에 따라 */
  align-self: start;
  display: grid;
  gap: 18px;
}

.side-box{
  background: #fff;
  border: 1px solid rgba(10,14,24,.08);
  border-radius: 16px;
  padding: 16px;
}
.side-title{
  font-size: 18px;
  margin: 0 0 12px;
}
.side-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.side-list a{
  text-decoration: none;
  color: rgba(10,14,24,.84);
  line-height: 1.35;
}
.side-list a:hover{ text-decoration: underline; }

.side-more{
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  color: rgba(10,14,24,.6);
}

/* ========== Footer ========== */
.site-footer{
  background: rgba(10,14,24,.96);
  color: rgba(255,255,255,.86);
  padding: 20px 0 0;
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 13px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 28px;
}

.footer-logo{
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

.footer-desc{
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.6;
}

.footer-col h4{
  margin: 0 0 2px;
  font-size: 18px;
}
.footer-col a{
  display: block;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  margin: 8px 0;
}
.footer-col a:hover{ text-decoration: underline; }

.footer-text{
  margin: 8px 0;
  color: rgba(255,255,255,.72);
}

.footer-social{
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.footer-social a{
  color: rgba(255,255,255,.72);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 10px;
  border-radius: 999px;
}
.footer-social a:hover{
  border-color: rgba(255,255,255,.35);
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 14px 20px;
  text-align: center;
  color: rgba(255,255,255,.62);
}

/* ========== Responsive ========== */
@media (max-width: 980px){
  .detail-wrap{
    grid-template-columns: 1fr;
  }
  .detail-side{
    position: static;
    top: auto;
  }
  .footer-inner{
    grid-template-columns: 1fr;
  }
  .footer-cols{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px){
  .footer-cols{
    grid-template-columns: 1fr;
  }
  .detail-nav{
    grid-template-columns: 1fr;
  }
}

/* detail 페이지는 흰 배경 */
body.page-detail{
  background: #fff !important;
  color: rgba(10,14,24,.88);
}

/* detail 페이지에서는 메인 비주얼/배경 텍스트 제거 */
body.page-detail .hero,
body.page-detail .main-hero,
body.page-detail .kv,
body.page-detail .main-visual,
body.page-detail #hero,
body.page-detail .bg-text,
body.page-detail .watermark{
  display: none !important;
}

/* 헤더 높이/정렬 고정 */
.site-header{
  height: 72px;               /* 원하는 헤더 높이로 조절 */
}
.site-header .header-inner{
  height: 100%;
  display: flex;
  align-items: center;
}

/* 로고 크기 제한 (가장 중요) */
.site-header .logo{
  display: inline-flex;
  align-items: center;
  height: 100%;
}

/* 로고 이미지가 커지지 않도록 강제 */
.site-header .logo img{
  height: 23px;               /* 로고 크기: 24~32px 추천 */
  width: auto;
  max-height: 32px;
  display: block;
  object-fit: contain;
}

/* 모바일에서는 조금 더 작게 */
@media (max-width: 520px){
  .site-header{
    height: 64px;
  }
  .site-header .logo img{
    height: 24px;
    max-height: 28px;
  }
}

/* 데스크탑에서 좌우 비율을 다르게 설정하고 싶을 때 */
@media (min-width: 769px) {
    .hero-panel:first-child {
        flex: 1; /* 왼쪽: 숫자가 클수록 넓어집니다 */
    }
    .hero-panel:last-child {
        flex: 1.1;   /* 오른쪽 */
    }
}

/* ===== News Page ===== */
.news-page{
  background: #fff;
  color: rgba(10,14,24,.88);
}

/* 공용 컨테이너 */
.news-page .container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 섹션 타이틀 */
.news-page .section-head{
  padding: 22px 0 14px;
}
.news-page .section-head h2{
  margin: 0;
  font-size: 30px;
  letter-spacing: .08em;
  font-weight: 800;
  color: rgba(10,14,24,.55);
  letter-spacing : -0.5px;
}

/* ===== Featured ===== */
.news-featured{
  padding: 34px 0 14px;
}
.featured-grid{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}
.featured-media{
  background: rgba(100,130,170,.18);
  border: 1px solid rgba(10,14,24,.06);
  border-radius: 8px;
  min-height: 260px;
  background-image: none;
}
.featured-text{
  padding-top: 8px;
}
.featured-kicker{
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(10,14,24,.55);
}
.featured-title{
  margin: 0 0 12px;
  line-height: 1.05;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 900;
}
.featured-desc{
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(10,14,24,.62);
}
.featured-actions .btn{
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(10,14,24,.14);
  text-decoration: none;
  color: rgba(10,14,24,.86);
  background: #fff;
}

/* ===== IN FOCUS (dark strip) ===== */
.news-focus{
  margin-top: 22px;
  padding: 18px 0 26px;
  background: linear-gradient(180deg, rgba(5,12,26,1) 0%, rgba(9,18,38,1) 100%);
  color: rgba(255,255,255,.9);
}
.news-focus .section-head h2{
  color: rgba(160,220,240,.9); /* 이미지처럼 옅은 청록 느낌 */
}
.focus-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 8px;
}
.focus-card{
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.focus-card .thumb{
  height: 120px;
  background: rgba(140,170,210,.22);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
}
.focus-card .title{
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.35;
  color: rgba(255,255,255,.85);
  font-weight: 650;
}

/* ===== NEWS UPDATES ===== */
.news-updates{
  padding: 22px 0 34px;
}
.updates-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 8px;
}
.news-card{
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.news-card .thumb{
  height: 120px;
  background: rgba(100,130,170,.18);
  border: 1px solid rgba(10,14,24,.06);
  border-radius: 6px;
}
.news-card .title{
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.35;
  color: rgba(10,14,24,.82);
  font-weight: 650;
  text-align: left;
}

/* Pager */
.pager{
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 22px 0 0;
}
.pager .pg{
  text-decoration: none;
  color: rgba(10,14,24,.68);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
}
.pager .pg[aria-current="page"]{
  color: rgba(10,14,24,.92);
  font-weight: 800;
  border: 1px solid rgba(10,14,24,.14);
}

/* ===== Responsive ===== */
@media (max-width: 920px){
  .featured-grid{
    grid-template-columns: 1fr;
  }
  .focus-grid{
    grid-template-columns: 1fr;
  }
  .updates-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px){
  .updates-grid{
    grid-template-columns: 1fr;
  }
}
/* ===== NEWS dropdown (desktop) ===== */
.gnb-item{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* 드롭다운 기본: 숨김 */
.gnb-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;

  background: #fff;
  border: 1px solid rgba(10,14,24,.12);
  border-radius: 10px;
  padding: 8px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .18s ease;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  z-index: 1000;
}

.gnb-sub{
  display: block;
  padding: 10px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(10,14,24,.86);
  font-size: 13px;
  line-height: 1.2;
}
.gnb-sub:hover{
  background: rgba(10,14,24,.06);
}

/* 다른 페이지: hover/focus에서만 노출 */
.gnb-item--dropdown:hover .gnb-dropdown,
.gnb-item--dropdown:focus-within .gnb-dropdown{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ===== News 페이지에서는 '고정 오픈' ===== */
body.is-news .gnb-item--dropdown[data-menu="news"] .gnb-dropdown{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* News 페이지에서 NEWS 메뉴가 활성 표시되게(선택) */
body.is-news .gnb-item--dropdown[data-menu="news"] > .gnb-link{
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ===== 모바일에서는 기존 mobile-menu 사용, 드롭다운은 숨김 ===== */
@media (max-width: 980px){
  .gnb-dropdown{
    display: none !important;
  }
}

/* ===== NEWS dropdown: 가로형 ===== */
.gnb-item{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* 드롭다운 박스 */
.gnb-dropdown.gnb-dropdown--row{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);

  background: #fff;
  border: 1px solid rgba(10,14,24,.12);
  border-radius: 999px;             /* 가로 탭 느낌 */
  padding: 8px;

  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .18s ease;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  z-index: 1000;
}

/* 가로 탭 버튼 */
.gnb-dropdown--row .gnb-sub{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  color: rgba(10,14,24,.86);
  background: transparent;
}

.gnb-dropdown--row .gnb-sub:hover{
  background: rgba(10,14,24,.06);
}

/* hover/focus에서 열림(기본 동작) */
.gnb-item--dropdown:hover .gnb-dropdown--row,
.gnb-item--dropdown:focus-within .gnb-dropdown--row{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* News 페이지에서는 항상 오픈 */
body.is-news .gnb-item--dropdown[data-menu="news"] .gnb-dropdown--row{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* 모바일에서는 헤더 드롭다운 숨김(모바일 메뉴로 처리) */
@media (max-width: 980px){
  .gnb-dropdown.gnb-dropdown--row{
    display: none !important;
  }
}

body.is-news .news-page{
  padding-top: 100px; /* 드롭다운 높이에 따라 40~80px 조절 */
}

/* ===== Mobile menu 기본 ===== */
.mobile-menu{
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(10,14,24,.10);
}

/* 모바일 링크들이 세로로 */
.mobile-menu a,
.mobile-menu button{
  width: 100%;
  text-align: left;
}

/* 아코디언 버튼(NEWS) */
.mobile-acc-btn{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 12px 0;
  cursor: pointer;
}

/* 화살표 아이콘 */
.mobile-acc-icon{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(10,14,24,.55);
  border-bottom: 2px solid rgba(10,14,24,.55);
  transform: rotate(45deg);
  transition: .18s ease;
}

/* 펼쳐졌을 때 아이콘 회전 */
.mobile-acc-btn[aria-expanded="true"] .mobile-acc-icon{
  transform: rotate(-135deg);
}

/* 서브 메뉴 */
.mobile-sub{
  padding: 6px 0 10px;
}
.mobile-sublink{
  display: block;
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(10,14,24,.86);
  background: rgba(10,14,24,.04);
}

/* 데스크탑에선 mobile-menu 숨김(기존 hidden으로도 되지만 안전) */
@media (min-width: 981px){
  .mobile-menu{ display: none !important; }
}

/* 모바일에선 gnb 숨김(이미 구현돼있다면 중복이어도 괜찮음) */
@media (max-width: 980px){
  .gnb{ display: none !important; }
  .menu-btn{ display: inline-flex !important; }
}

/* 모바일 햄버거 버튼: 3줄 강제 */
.menu-btn{
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;                 /* 줄 사이 간격 */
  border-radius: 12px;
  border: 1px solid rgba(10,14,24,.18);
  background: transparent;
  padding: 0;
}

.menu-btn-bar{
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(10,14,24,.65);
  border-radius: 999px;

  /* 기존 CSS에 absolute가 있으면 겹치므로 강제 해제 */
  position: static !important;
}

/* 모바일 메뉴 항목 사이즈/패딩 다운 (a와 button 통일) */
.mobile-menu a.mobile-link,
.mobile-menu button.mobile-link{
  padding: 14px 16px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* 화살표도 함께 축소 */
.mobile-acc-icon{
  width: 10px !important;
  height: 10px !important;
  border-right-width: 2px !important;
  border-bottom-width: 2px !important;
}

/* 서브메뉴도 같이 다운 */
.mobile-sub{
  padding: 6px 16px 12px !important;
}
.mobile-sublink{
  padding: 10px 12px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
}

/* ===== Desktop 강제 정상화 (모바일 규칙이 새는 현상 방지) ===== */
@media (min-width: 981px){
  .gnb{ display: flex !important; }
  .menu-btn{ display: none !important; }
  .mobile-menu{ display: none !important; }
}

/* 뉴스 페이지에서 NEWS는 활성 표시를 underline 대신 색/굵기로 처리 */
body.is-news .gnb-item--dropdown[data-menu="news"] > .gnb-link{
  text-decoration: none !important;   /* 항상 밑줄 제거 */
  font-weight: 800 !important;
  opacity: 1;
}

/* 뉴스 페이지에서 hover underline 효과가 겹치면 강제로 끔 */
body.is-news .gnb-item--dropdown[data-menu="news"] > .gnb-link:hover{
  text-decoration: none !important;
}

/* (선택) 활성 표시를 좀 더 분명히: 아래쪽 얇은 바 */
body.is-news .gnb-item--dropdown[data-menu="news"] > .gnb-link{
  position: relative;
}
body.is-news .gnb-item--dropdown[data-menu="news"] > .gnb-link::after{
  content: "";
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: rgba(10,14,24,.35);
  border-radius: 999px;
}

/* 드롭다운이 닫히지 않도록: 트리거(NEWS)와 드롭다운 사이 연결 구간 생성 */
.gnb-item--dropdown{
  position: relative;
}

.gnb-item--dropdown::after{
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 14px;          /* 트리거와 드롭다운 사이 거리만큼 */
  background: transparent;
}

/* NEWS 활성 색상: 확실하게 적용 (우선순위 올림) */
body.page-news header.site-header .gnb .gnb-item--dropdown[data-menu="news"] > a.gnb-link{
  color: rgba(10,14,24,.95) !important;
  opacity: 1 !important;
}

/* 다른 메뉴도 같은 방식으로(원하면) */
body.page-about header.site-header .gnb a[href="./about.html"],
body.page-programs header.site-header .gnb a[href="./programs.html"],
body.page-contact header.site-header .gnb a[href="./contact.html"]{
  color: rgba(10,14,24,.95) !important;
  opacity: 1 !important;
}

/* 드롭다운 항목: hover 스타일과 동일하게 active도 적용 */
.gnb-dropdown--row .gnb-sub[aria-current="page"]{
  background: rgba(10,14,24,.92) !important; /* hover 배경과 동일하게 맞춰도 됨 */
  color: #fff !important;
}

/* News 탭: 모든 썸네일을 16:9로 */
.news-page .thumb,
.news-page .featured-media,
.news-page .detail-hero{
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;              /* aspect-ratio가 높이 계산 */
  overflow: hidden;
  border-radius: 8px;        /* 필요 없으면 제거 */
}

/* img를 쓰는 경우(대표 이미지/카드 이미지 등) */
.news-page .thumb img,
.news-page .featured-media img,
.news-page .detail-hero img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;         /* 16:9에 맞추며 꽉 채움(세로 일부 크롭 가능) */
  object-position: center;
}

/* 배경이미지(background-image)로 썸네일을 만드는 경우 */
.news-page .thumb{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== Statements 탭 전용: Featured를 세로 스택으로 ===== */
.news-featured--statements .featured-stack{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Featured 텍스트를 이미지 아래로(스샷처럼) */
.featured-text--stack{
  padding-top: 0;
}

/* ===== Statements 리스트 ===== */
.news-list{
  padding: 10px 0 34px;
}

.list-wrap{
  border-top: 1px solid rgba(10,14,24,.14);
  margin-top: 8px;
}

.list-item{
  display: block;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(10,14,24,.14);
  color: rgba(10,14,24,.82);
}

.list-item:hover{
  background: rgba(10,14,24,.03);
}

.list-title{
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  padding-left: 10px;
}

/* 모바일에서도 보기 좋게 */
@media (max-width: 520px){
  .list-item{ padding: 12px 0; }
  .list-title{ font-size: 13px; }
}

/* Programs 페이지에서 PROGRAMS 드롭다운 고정 오픈 */
body.is-programs .gnb-item--dropdown[data-menu="programs"] .gnb-dropdown--row{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) !important; /* Y이동 제거한 경우 */
}

/* Programs 탭 활성(hover와 동일한 느낌) */
.gnb-dropdown--row .gnb-sub[aria-current="page"]{
  background: rgba(10,14,24,.92);
  color: #fff;
}

/* Programs page layout */
.programs-page{
  background: #fff;
  color: rgba(10,14,24,.88);
}
.programs-page .container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero-wrap{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(10,14,24,.08);
}
.hero-bg{
  aspect-ratio: 16 / 9;
  width: 100%;
  background: rgba(100,130,170,.18); /* 임시 */
}
.hero-copy{
  position: absolute;
  left: 24px;
  bottom: 18px;
  max-width: 520px;
}
.hero-title{
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: .02em;
}
.hero-desc{
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(10,14,24,.65);
  background: rgba(255,255,255,.75);
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-block;
}

/* Cards grid */
.program-grid{
  padding: 70px 0 36px;
}
.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 30px;
  column-gap: 15px;
  text-align: center;
}
.program-card{
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.program-card .thumb{
  aspect-ratio: 16 / 9;
  width: 100%;
  background: rgba(100,130,170,.18);
  border: 1px solid rgba(10,14,24,.06);
  border-radius: 8px;
}
.program-card .title{
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.35;
  color: rgba(10,14,24,.82);
  line-height: 1.35;
  font-weight: 650;
  text-align: left;
}

/* More button */
.more-wrap{
  display: flex;
  justify-content: center;
  padding-top: 16px;
}
.btn-more{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 34px;
  border: 1px solid rgba(10,14,24,.14);
  border-radius: 8px;
  text-decoration: none;
  color: rgba(10,14,24,.82);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 920px){
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-copy{ left: 14px; bottom: 12px; }
}
@media (max-width: 520px){
  .cards-grid{ grid-template-columns: 1fr; }
}

.tab2{
  text-align: left;
}

.p-tab2{
  text-align: left;
  max-width: 450px;
}

/* ===== Header: Desktop/Mobile 표시 규칙 확정 ===== */
@media (min-width: 981px){
  .gnb{ display:flex !important; }
  .menu-btn{ display:none !important; }
  .mobile-menu{ display:none !important; }
}
@media (max-width: 980px){
  .gnb{ display:none !important; }
  .menu-btn{ display:inline-flex !important; }
  .mobile-menu[hidden]{ display:none !important; }
}

/* ===== Dropdown 기본(hover로 열림) ===== */
.gnb-item--dropdown{ position: relative; }
.gnb-dropdown--row{
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gnb-item--dropdown:hover .gnb-dropdown--row,
.gnb-item--dropdown:focus-within .gnb-dropdown--row{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* hover 끊김 방지 브리지 */
.gnb-item--dropdown::after{
  content:"";
  position:absolute;
  left:-12px; right:-12px;
  top:100%;
  height:14px;
  background:transparent;
}

/* 현재 탭(드롭다운 항목) = hover처럼 진한 배경 */
.gnb-dropdown--row .gnb-sub[aria-current="page"]{
  background: rgba(10,14,24,.92);
  color:#fff;
}

/* News 페이지에서는 News 드롭다운 고정 오픈 */
body.is-news .gnb-item--dropdown[data-menu="news"] .gnb-dropdown--row{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Programs 페이지에서는 Programs 드롭다운 고정 오픈 */
body.is-programs .gnb-item--dropdown[data-menu="programs"] .gnb-dropdown--row{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 모바일 서브 현재 탭 표시(선택) */
.mobile-sub a[aria-current="page"]{
  background: rgba(10,14,24,.08);
  border-radius: 10px;
}

/* ==============================
   Dark header dropdown (Index match)
============================== */
.site-header .gnb-dropdown.gnb-dropdown--row{
  background: rgba(6,10,18,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 30px rgba(0,0,0,0.30);
}

.site-header .gnb-dropdown--row .gnb-sub{
  color: rgba(255,255,255,0.86);
}

.site-header .gnb-dropdown--row .gnb-sub:hover{
  background: rgba(255,255,255,0.10);
}

.site-header .gnb-dropdown--row .gnb-sub[aria-current="page"]{
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}

/* =========================
   Index (dark header) mobile visibility fix
========================= */

/* 햄버거 3줄을 흰색으로 */
.site-header .menu-btn-bar{
  background: rgba(255,255,255,.92);
}

/* 햄버거 버튼 자체도 살짝 보이게 */
.site-header .menu-btn{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

/* 모바일 메뉴(드로어) 배경/텍스트 대비 확보 */
.site-header .mobile-menu{
  background: rgba(6,10,18,.92);
  border-top: 1px solid rgba(255,255,255,.10);
}

/* 모바일 링크를 흰색으로 */
.site-header .mobile-link,
.site-header .mobile-sublink{
  color: rgba(255,255,255,.90);
}

/* 아코디언 아이콘(▼)이 어두워서 안 보이면 색을 밝게 */
.site-header .mobile-acc-icon{
  border-color: rgba(255,255,255,.70);
}

/* hover/active 느낌도 통일 */
.site-header .mobile-link:hover,
.site-header .mobile-sublink:hover{
  background: rgba(255,255,255,.08);
  border-radius: 12px;
}

/* =========================
   Header theme switch (single source of truth)
========================= */

.site-header--dark{
  background: rgba(6,10,18,.92); /* 다크 */
  color: rgba(255,255,255,.92);
}

.site-header--light{
  background: #eef5fb; /* 라이트 */
  color: rgba(10,14,24,.90);
}

/* Logo가 이미지일 때 대비가 안 맞으면 페이지별 로고를 바꾸거나 filter 사용 */
.site-header--dark .brand-logo{ filter: none; }
.site-header--light .brand-logo{ filter: none; }

/* Hamburger bars */
.site-header--dark .menu-btn-bar{ background: rgba(255,255,255,.92); }
.site-header--light .menu-btn-bar{ background: rgba(10,14,24,.70); }

/* Hamburger button plate (선택: 더 잘 보이게) */
.site-header--dark .menu-btn{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.site-header--light .menu-btn{
  border: 1px solid rgba(10,14,24,.10);
  background: rgba(255,255,255,.55);
}

/* Mobile menu (drawer) */
.site-header--dark .mobile-menu{
  background: rgba(6,10,18,.96);
  border-top: 1px solid rgba(255,255,255,.10);
}
.site-header--light .mobile-menu{
  background: #ffffff;
  border-top: 1px solid rgba(10,14,24,.10);
}

/* Mobile links */
.site-header--dark .mobile-link,
.site-header--dark .mobile-sublink{
  color: rgba(255,255,255,.90);
}
.site-header--light .mobile-link,
.site-header--light .mobile-sublink{
  color: rgba(10,14,24,.85);
}

/* Mobile accordion icon (▼) 대비 */
.site-header--dark .mobile-acc-icon{ border-color: rgba(255,255,255,.70); }
.site-header--light .mobile-acc-icon{ border-color: rgba(10,14,24,.45); }

/* =========================
   Contact page (cards)
========================= */
.contact-page{
  background: #f6f8fb;
  padding: 72px 0 84px;
}

.contact-hero{
  text-align: center;
  padding: 40px 0 24px;
}

.contact-title{
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(10,14,24,.92);
}
       
.contact-subtitle{
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(10,14,24,.68);
}

.contact-cards{
  padding-top: 28px;
}

.contact-grid{
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card{
  background: #fff;
  border: 1px solid rgba(10,14,24,.10);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(10,14,24,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 350px;
}

.contact-card__topline{
  height: 6px;
}

.contact-card__body{
  padding: 22px 22px 0;
  flex: 1;
}

.contact-card__title{
  margin: 2px 0 10px;
  font-size: 26px;
  font-weight: 900;
  color: rgba(10,14,24,.92);
}

.contact-card__desc{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(10,14,24,.60);
}

.contact-card__list{
  margin: 0;
  padding-left: 16px;
  list-style: none;
}

.contact-card__list li{
  position: relative;
  padding-left: 12px;
  margin: 10px 0;
  font-size: 16px;
  color: rgba(10,14,24,.70);
}

.contact-card__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(10,14,24,.30);
  transform: translateY(-50%);
}

.contact-card__action{
  padding: 18px 22px 22px;
}

.contact-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 999px; 
  border: 1px solid rgba(10,14,24,.18);
  background: transparent;
  color: rgba(10,14,24,.86);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.contact-btn:hover{
  background: rgba(10,14,24,.04);
}

/* top-line colors */
.contact-card--blue .contact-card__topline{ background: #3aa0ff; }
.contact-card--green .contact-card__topline{ background: #2ecc71; }
.contact-card--indigo .contact-card__topline{ background: #516bff; }
.contact-card--gray .contact-card__topline{ background: #9aa3ad; }

/* responsive */
@media (max-width: 1100px){
  .contact-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .contact-page{ padding: 56px 0 64px; }
  .contact-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Contact modal
========================= */
.modal[hidden]{ display:none; }

.modal{
  position: fixed;
  inset: 0;
  z-index: 999;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.modal-panel{
  position: relative;
  width: min(720px, calc(100% - 32px));
  margin: 70px auto 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  overflow: hidden;
}

.modal-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(10,14,24,.10);
}

.modal-title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: rgba(10,14,24,.92);
}

.modal-sub{
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(10,14,24,.60);
}

.modal-x{
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: rgba(10,14,24,.65);
  cursor: pointer;
}

.modal-form{
  padding: 18px 20px 20px;
}

.f-label{
  display:block;
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(10,14,24,.72);
}

.f-input, .f-select, .f-textarea{
  width: 100%;
  border: 1px solid rgba(10,14,24,.16);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13px;
  outline: none;
}

.f-textarea{ resize: vertical; }

.modal-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.btn-primary{
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(10,14,24,.92);
  background: rgba(10,14,24,.92);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.btn-ghost{
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(10,14,24,.16);
  background: transparent;
  color: rgba(10,14,24,.80);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 520px){
  .modal-panel{ margin-top: 18px; }
  .modal-actions{ grid-template-columns: 1fr; }
}

/* =========================
   FIX: Desktop dropdown color for LIGHT header
   (force white dropdown on pages using .site-header--light)
========================= */

.site-header.site-header--light .gnb-dropdown.gnb-dropdown--row{
  background: #ffffff !important;
  border: 1px solid rgba(10,14,24,.10) !important;
  box-shadow: 0 14px 30px rgba(10,14,24,.10) !important;
}

.site-header.site-header--light .gnb-dropdown--row .gnb-sub{
  color: rgba(10,14,24,.88) !important;
}

.site-header.site-header--light .gnb-dropdown--row .gnb-sub:hover{
  background: rgba(10,14,24,.05) !important;
}

.site-header.site-header--light .gnb-dropdown--row .gnb-sub[aria-current="page"]{
  background: rgba(10,14,24,.92) !important;
  color: #fff !important;
}

/* 라이트 헤더에서 상위 메뉴(NEWS/PROGRAMS) hover 대비도 같이 정리(선택) */
.site-header.site-header--light .gnb-link:hover{
  color: rgba(10,14,24,.92) !important;
}

.program-card .thumb, 
.program-poster img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9; /* 박스를 16:9로 고정 */
    
    /* [핵심] 이미지를 늘리지 않고 박스 크기에 맞춰 재조정 */
    object-fit: contain !important; 
    background-size: contain !important;
    
    /* 확대되어 깨지는 것을 방지 */
    image-rendering: -webkit-optimize-contrast; 
    
}

.program-card .thumb {
    width: 100%;
    /* 1. 박스 비율을 유튜브 16:9 규격으로 고정 */
    aspect-ratio: 16 / 9; 
    
    /* 2. [수정] 이미지 반복 금지 (가장 중요) */
    background-repeat: no-repeat;
    
    /* 3. [수정] 이미지를 늘리거나 자르지 않고 박스 안에 딱 맞춤 */
    /* 비율이 조금 다를 경우 생기는 여백은 검은색으로 처리 */
    background-size: contain; 
    background-position: center;
    
    border-radius: 8px;
    overflow: hidden;
    height: auto !important;
}

/* 1. 헤더 뒤로 숨는 문제 해결 */
.programs-page {
  /* 헤더 높이가 72px라면 72px로, 더 띄우고 싶다면 100px로 조절하세요 */
  padding-top: 72px; 
}

/* 2. 히어로 영역: 가로 전체 노출 모드 */
.program-hero {
  width: 100%;
  background: #000; /* 이미지 비율이 안 맞을 때 생기는 빈 공간 대비 */
}

.hero-bg {
  width: 100%;
  /* 1. 이미지의 가로세로 비율 설정 (1920x600 이미지 기준 3.2) */
  /* 이 숫자를 줄이면(예: 2.5) 상하 공백이 줄어들고, 키우면 공백이 늘어납니다. */
  aspect-ratio: 1920 / 560; 

  /* 2. 빈 공간(여백)의 배경색 설정 */
  /* 현재 사이트의 네이비 톤(#001a3d)이나 흰색(#ffffff) 중 선택해 보세요. */
  background-color: #f0f6fc; 
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
}

/* 3. 탭별 이미지 지정 */
.hero-bg--worship { background-image: url('../assets/img/word.jpg'); }
.hero-bg--culture { background-image: url('../assets/img/culture-hero.jpg'); }
.hero-bg--original { background-image: url('../assets/img/original-hero.jpg'); }

/* 4. 텍스트 레이아웃 (반응형 대응) */
.hero-copy {
  padding: 0 40px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title {
  font-size: clamp(24px, 5vw, 48px); /* 화면 크기에 따라 폰트 조절 */
  margin-bottom: 10px;
}

.hero-desc {
  font-size: clamp(14px, 2vw, 18px);
  max-width: 500px;
  line-height: 1.4;
}

/* 5. 모바일 최적화 */
@media (max-width: 980px) {
  .hero-bg {
    /* 모바일에서 이미지가 너무 얇아 보이면 비율을 살짝 조정할 수 있습니다 */
    aspect-ratio: 16 / 4.9; 
  }
  .hero-copy {
    padding: 0 20px;
  }
}

/* 메인 페이지 최신글 썸네일 박스 */
.thumb-box {
    width: 100%;
    aspect-ratio: 16 / 9; /* 유튜브 표준 비율 */
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
}      

.thumb-box img {
    width: 100%;
    height: 100%;
    /* 잘리지 않고 전체가 다 보이게 하려면 contain, 꽉 채우려면 cover */
    object-fit: cover; 
    display: block;
}

.swiper main-slider{
  max-width: 1600px;
}

/* =========================
   NEWS (tab1) Featured image - FINAL
   ========================= */

/* 대표 이미지: 16:9 박스를 정확히 만들고, 꽉 차게(하지만 과확대/이상 여백 방지) */
.news-page .news-featured .featured-media{
  width: 100%;
  aspect-ratio: 16 / 9;

  /* 기존 min-height 때문에 contain이 과하게 축소되는 문제가 있었음 */
  min-height: 0 !important;

  /* background-image 방식이므로 cover로 채우되, 위에서 썸네일을 16:9로 맞췄기 때문에 과한 크롭이 거의 없음 */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  background-color: #e9eef6; /* 이미지 없거나 로딩 시 배경 */
  border-radius: 12px;       /* 원하면 8px로 */
  overflow: hidden;
}

.news-featured .featured-media{
  aspect-ratio: 16 / 9;
  width: 100%;

  /* 핵심: 여백 제거 */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  /* 레터박스 배경 제거 */
  background-color: transparent !important;

  /* 혹시 기존 min-height 영향 있으면 제거 */
  min-height: 0 !important;

  overflow: hidden;
  border-radius: 8px;
}


/* Featured(대표) 이미지: background-image도 썸네일처럼 cover 적용 */
.news-page .news-featured .featured-media{
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  /* 기존 회색 배경이 보이면 제거 */
  background-color: transparent !important;
}

/* DETAIL 본문 이미지: 원본 비율 유지 */
.page-detail .detail-content img{
  width: 100%;
  max-width: 100%;
  height: auto !important;     /* 비율 유지 핵심 */
  display: block;
}

/* 모바일: 링크가 많으니 줄바꿈 허용 + 소셜 아래로 */
@media (max-width: 768px){
  .site-footer .footer-topbar{
    align-items: flex-start;
  }
  .site-footer .footer-topbar-right{
    width: 100%;
    justify-content: flex-start;
  }
}

/* 상단 링크바 */
.site-footer .footer-topbar{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-left: 12px;
}

.site-footer .footer-topbar-left{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 15px;
}

.site-footer .footer-topbar-left a{
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.site-footer .footer-topbar-left a:hover{
  text-decoration: underline;
}

.site-footer .footer-topbar-left .sep{
  opacity: .55;
}

/* style.css 하단에 추가 */

/* 1. 프로그램 상세 페이지 히어로 영역 흰색 배경 강제 */
.page-detail-program .program-hero.hero-white-bg {
    background-color: #ffffff !important; /* 검은 배경 제거 */
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

/* 2. 제목 및 텍스트 색상을 어두운 네이비로 변경 (검은 배경에서 안 보이던 문제 해결) */
.page-detail-program .pg-title {
    color: #0b1020 !important; /* 제목 색상 */
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    margin: 10px 0;
}

.page-detail-program .pg-kicker {
    color: #00afaa !important; /* 카테고리 강조색 */
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* 3. 유튜브 시청 버튼 스타일 보정 */
.page-detail-program .btn-vod-play {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background-color: #0b1020;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

/* 4. 포스터 이미지 박스 크기 조절 */
.page-detail-program .program-poster {
    width: 240px;
    flex-shrink: 0;
}

.page-detail-program .program-poster img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 모바일 대응: 세로 배치 */
@media (max-width: 768px) {
    .page-detail-program .program-hero.hero-white-bg {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    .page-detail-program .program-poster {
        width: 100%;
        max-width: 300px;
    }
}



.mobile-grid-container{
    display: flex;
    padding-top: 50px;
    padding-bottom: 20px;
    width: 100%;
    height: 100%;
}

@media (max-width: 672px){
  .mobile-grid-container{
    display: block ;
  }
}


/* ===== Language buttons UI ===== */
.lang-switcher{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-left:20px;
}
.lang-btn{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: inherit;
  opacity: .8;
}
.lang-btn:hover{ opacity: 1; }
.lang-btn.is-active{
  opacity: 1;
  font-weight: 700;
}
.lang-sep{
  opacity: .35;
}

/* ===== Google Translate UI 숨김(배너/로고/드롭다운/문구 등) ===== */
.gt-hidden{ display:none !important; }

/* 상단 툴바(iframe) 숨김 */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame{
  display:none !important;
}

/* 페이지가 아래로 밀리는 현상 방지 */
body{ top:0 !important; }
html{ margin-top:0 !important; }

/* 위젯에서 나오는 텍스트/로고 숨김(케이스별) */
.goog-logo-link,
.goog-te-gadget,
.goog-te-gadget span,
.goog-te-gadget-simple{
  display:none !important;
}

/* 1. 구글 번역 상단 바(프레임)를 아예 렌더링하지 않음 */
iframe.goog-te-banner-frame,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

/* 2. 바디가 아래로 밀리는 현상(top: 40px 등)을 원천 차단 */
body {
    top: 0px !important;
    position: static !important;
}

/* 3. 번역 후 텍스트에 생기는 하이라이트와 툴팁 제거 */
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
#goog-gt-tt, .goog-te-balloon-frame {
    display: none !important;
}

/* 1. 구글 번역 바 프레임 제거 */
iframe.goog-te-banner-frame, 
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* 2. 바디 밀림 방지 - HTML과 BODY 모두에 선언 */
html, body {
    top: 0px !important;
    position: static !important;
}

/* 3. 번역 후 텍스트 강조 효과 제거 */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* 4. 구글 번역 로딩 중에도 상단 여백 생기지 않게 방지 */
.skiptranslate {
    display: none !important;
}