/*------------------------------------------------------------------

01. Main Content & Main Page
02. History Page
03. AboutUs Page
04. Services Pages
05. News Pages
06. Contact Pages 

-------------------------------------------------------------------*/

/* ================================
   0) Tokens / Utilities
================================ */
:root{
  --surface: #FFFFFF;
  --surface-weak: #F5F5F5;
  --border-subtle: rgba(0,0,0,.10);
  --shadow-1: 0 2px 10px rgba(0,0,0,.15);
  --shadow-2: 0 8px 32px rgba(0,0,0,.10);
  --radius-1: 2px;
  --radius-2: 8px;
}

.elev-1{ box-shadow: var(--shadow-1); }
.elev-2{ box-shadow: var(--shadow-2); }

.lift-sm{ transition: transform .3s ease, box-shadow .3s ease; }
.lift-sm:hover{ transform: translateY(-4px); }

.lift-md{ transition: transform .3s ease, box-shadow .3s ease; }
.lift-md:hover{ transform: translateY(-8px); }

/* 모션 축소 공통 처리 */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; }
}

/*--------------------------------------------------
  01. Main Content & Main Page
---------------------------------------------------*/
.light-section {
  background-color: #FFFFFF;
}

.main-section {
  background: url('../images/main_bg.png') center top repeat;
  background-size: auto;
  position: relative; 
}
.main-section::before{
  content:"";
  position:absolute; 
  inset:0;
  background: rgba(0,0,0,.10); 
  pointer-events:none;
}

.dark-section {
  background-color: #F3F6FB ;
}

.black-section {
  background-color: #080808;
}

/* HERO CONTAINER */
.hero-section {
  display: flex;    
  flex-direction: column;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  text-align: center;
  position: relative;
  margin: 0 auto;
  flex-shrink: 0;
  width: 100vw;
  height: 100svh;
  max-width: none;
  row-gap: 1.5rem; /* row-gap: 2vw;   ← option B : ~2% de la largeur, si tu préfères */
    container-type: inline-size; 
  /* transform: translateY(-12%); centrer visuellement */
}

.hero-section > * {
  margin-left: 0;              /* ← avant : 10% */
  margin-right: 0;             /* ← avant : 12% */
}



.container{
  min-height:100%;
  display:grid;
  vertical-align: middle;
  align-content: center;
  place-items:center;
  padding:clamp(3vh,7vh,9vh) clamp(2vw,3vw,4vw);
}

.stack{
  width:min(1200px,96vw);
  text-align:center;
}

h1.brand, h2.brand {
  justify-content: center;   /* centre horizontalement */
  align-items: center;       /* centre verticalement */

  margin: 0;
  padding: 0 3%;
  font-size: clamp(36px, 22vw, 34vw);     /* fallback */
  font-size: clamp(36px, 22cqw, 34cqw);   /* modern */
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: .9;
  text-align: center;
  white-space: nowrap;
  display: block;
  width: 100%;
  user-select: none;
  text-shadow: none;
  transform-origin: center;
  will-change: transform;
}

h1.brand .char, h2.brand .char{ vertical-align: baseline; }
h1.brand .glyph, h2.brand .glyph{ transform-origin: 50% 50%; }

h1.brand .char, h2.brand .char{
  position:relative;
  display:inline-block;
  padding:clamp(2px,0.5vw,5px);
  overflow:hidden;
  vertical-align:baseline;
}

h1.brand .glyph, h2.brand .glyph{
  display:inline-block;
  will-change:transform,opacity;
  transform:translateY(100%);
  opacity:0;
}

/* ——— Tagline ——— */
.tagline{
  margin-top:clamp(8px,0.8vh,1%);
  display:flex;
  justify-content:center;
  align-items:center;
  gap:clamp(.5rem,2.5vw,1.5rem);
  position:relative;
  line-height:1.1;
  min-height:clamp(28px,6vw,2%);
  width:100%;
  padding:0 2%;
  margin-left:auto;
  margin-right:auto;
}

.word{
  font-weight:900;
  font-size:clamp(16px,4.5vw,48px);
  letter-spacing:0.02em;
  color:var(--tagline);
  opacity:0;
  transition:transform .7s ease-in-out, opacity .35s ease;
  will-change:transform;
}

.word.center{ transform:translateX(0); position:static; }

/* respiration au survol uniquement quand centrée */
.tagline.hover-ready:hover .word.center{
  transform:scale(1.24);
  transition:transform .6s ease;
}

/* Accessibilité: réduit nettement les transitions */
@media (prefers-reduced-motion: reduce){
  .word{ transition:cubic-bezier(0.55, 0.085, 0.68, 0.53) !important }
}

/* Main Container */
#main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 120px);
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Main Content Layout */
#main-content {
  width: 100%;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.content-row {
  position: relative;
  width: 100%;
  margin: 0;
  z-index: 1;
  opacity: 1;
  box-sizing: border-box;
  text-align: center;
  padding: 80px 0;
  flex-shrink: 0;
  min-height: 695px; 
}

.content-max-width {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.content-max-width,
.hero-section,
.timeline-section,
.tech-company-section,
.statistics-section{
  min-height: inherit;
}

.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Timeline Section Styles */
.timeline-section {
  padding: 0;
  overflow: hidden; 
}

.timeline-title {
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.2;
  padding: 50px 0;
}
.timeline-title h2 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.card-section {
  padding: 12px;
  text-align: left;
}

.card-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-name,
.card-period  {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 8px;
}
.card-divider {
  width: 100%;
  height: 1px;
  background: var(--text);
  margin: 20px 0;
  opacity: 0.3;
}
.card-detail {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 25px;
}
.card-arrow {
  position: absolute;
  bottom: 30px;
  right: 43px;
  width: 47px;
  height: 47px;
  background: var(--surface-weak);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.1);
}
.card-arrow i {
  font-size: 14px;
  color: #666;
}

.viewport{overflow:hidden; width:90%; margin-inline: auto; padding: 2% 2% 3%;}

.swiper{
  overflow:hidden;
  padding:28px 0 48px;
  perspective:1000px;
}
.swiper-wrapper{align-items:stretch}

.swiper-slide{
  display:flex;justify-content:center;align-items:stretch;
  transition:transform .45s ease, filter .45s ease, opacity .45s ease;
  will-change:transform;
  user-select:none;
  cursor:grab;
}
.swiper-slide:active{cursor:grabbing;}

.card{
  width:min(360px,60vw);
  height:min(480px,80vh);
  border-radius:20px;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  padding:18px 18px 20px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  transition:background .3s,color .3s,border-color .3s;
  position: relative;
}
.card header{
  display:flex;justify-content:space-between;align-items:center;
  font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);
  margin-bottom:10px;font-weight:700;
}
.card .period{font-size:13px;font-weight:700;color:var(--muted);margin-bottom:14px}
.card h3{font-size:18px;margin:0 0 8px;font-weight:800}
.card .detail{font-size:13px;color:var(--muted);line-height:1.45}
.card .stretched-link{
  position: absolute; inset: 0;
  z-index: 5;
  pointer-events: auto; /* 꼭 켜두기 */
  text-indent: -9999px; /* 텍스트 감추기(접근성은 aria-label로) */
}

.swiper-slide{
  transform:translateZ(0) scale(var(--side-scale));
  opacity:.9;
  filter:grayscale(.25);
  z-index:1;
}
.swiper-slide-active{
  transform:translateZ(0) scale(1);
  opacity:1;
  filter:none;
  z-index:3;
}
.swiper-slide-active .card{
  background:var(--card-active-bg);
  color:var(--card-active-text);
  border-color:#000;
}
.swiper-slide-active .card .card-divider{background:var(--card-active-text);}
.swiper-slide-prev{
  transform:translateZ(var(--depth)) rotateY(var(--tilt)) scale(var(--side-scale));
  z-index:2;
}
.swiper-slide-next{
  transform:translateZ(var(--depth)) rotateY(calc(var(--tilt)*-1)) scale(var(--side-scale));
  z-index:2;
}

#timeline-swiper { overscroll-behavior-y: contain; }
#timeline-swiper .swiper-slide { pointer-events: none; overscroll-behavior: contain; }
#timeline-swiper .swiper-slide a { 
  pointer-events: auto; 
  display: block;         
  height: 100%;
}

.swiper-pagination{display:block;position:static;margin-top:40px}






/* Technology Company Section */
.tech-company-section {
  text-align: center;
  /* padding: 80px 0; */
}

.tech-title h2 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);  
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  padding: 96px 0 60px;
}

.tech-description {
  margin-bottom: 150px;
}

.tech-text {
  font-size: clamp(2rem, 5.6vw, 5.2rem);
  font-weight: 500;
  margin: 0;
}

/* 공통 pill 버튼 + 개별 변형(services-btn은 2px 보더) */
:is(.services-btn, .about-btn){
  display:inline-flex; align-items:center; gap:12px;
  padding:18px 40px; border-radius:50px;
  font-size:1.1rem; font-weight:600; letter-spacing:.5px;
  text-transform:uppercase; text-decoration:none;
  background:transparent; 
  border:1px solid var(--text);
  transition: all .3s ease;
  position:relative; overflow:hidden;
  color: var(--text);

}
:is(.services-btn, .about-btn) i{
  font-size:14px; transition: transform .3s ease;
}
:is(.services-btn, .about-btn):hover i{ transform: translateX(4px); }
:is(.services-btn, .about-btn):hover{
  background: var(--text); color:#fff; border-color: var(--text);
  box-shadow: 0 8px 25px rgba(46,46,47,.2);
  transform: translateY(-2px);
}
.statistics-button, .tech-button  { margin: 60px 0; }

/* .services-btn{ border-width:2px; border-color:#E0E0E0; } */


/* Statistics Section */
.statistics-section {
  text-align: center;
  /* padding: 80px 0; */
}

.statistics-title h2 {
  font-size: clamp(1.6rem, 4.8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  padding: 96px 0;
  word-break: keep-all; 
}

.statistics-metrics {
  display: flex;
  flex-wrap: wrap;  
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 96px 0;
}

.metric-item {
  flex: 1 1 200px; 
  text-align: center;
  max-width: 300px;   
}

.metric-label {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.4;
}

.metric-number {
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 700;
  line-height: 1;
}



/*--------------------------------------------------
  02. history Page
---------------------------------------------------*/
.history-section .hero-section {
  height: auto;
  min-height: 60vh;
  padding: 40px 0;
}

.main-title-container { flex: 0 0 auto; }

.main-subtitle-history {
  font-size: clamp(1.5rem, 3rem, 4rem);
  margin-bottom: 3.5rem;
}

.main-title, .main-subtitle-history, .main-title-history{
  line-height: 0.8;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.history-section, .history-wrap {
  cursor: grab;  
  position: relative;
  overflow: hidden;
}

.history-section {
  padding:80px 24px 56px;
  overscroll-behavior: contain;
}

.history-wrap {
  max-width:var(--max);
  margin:0 auto;
  position: relative;
}

.history-row {
  display:grid;
  grid-template-columns: 1.1fr 0.9fr; /* 좌측:우측 비율 */
  align-items:center;
  gap:32px;
  min-height:320px;

  scroll-margin-top: 96px;
}

.history-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size: clamp(0.8125rem, 1.3vw, 0.9375rem);
  line-height:1.55;
  text-align: start;
}

.history-list p{
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis; 
}

/* year-hero 단일 선언(스타일 + 트랜지션 통합) */
.year-hero{
  text-align:right; font-weight:800;
  font-size: clamp(72px, 18vw, 200px);
  line-height:.9; color: var(--blue); letter-spacing:1px;
  transform: translateY(-45%); opacity: 0;
  will-change: transform, opacity;
  transition: transform .85s cubic-bezier(.12,.9,.14,1), opacity .45s ease;
}

/* 현재 슬라이드일 때: 제자리로 ‘툭’ */
.history-row.is-current .year-hero{
  transform: translateY(0);
  opacity: 1;
}

.year-hero span {
  display: inline-block;
  transform: translateY(-80%);
  opacity: 0;
  transition: transform 1s cubic-bezier(.25,.8,.25,1),
              opacity .8s ease;
}

/* span.reveal 없이 is-current로 통일 */
.history-row.is-current .year-hero span {
  transform: translateY(0);
  opacity: 1;
}

/* 순차 딜레이 */
.year-hero span:nth-child(1){ transition-delay: 0s;   }
.year-hero span:nth-child(2){ transition-delay: 0.15s;}
.year-hero span:nth-child(3){ transition-delay: 0.3s; }
.year-hero span:nth-child(4){ transition-delay: 0.45s;}

/* 모션 민감 사용자 배려 */
@media (prefers-reduced-motion: reduce){
  .year-hero{
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* 하단 타임라인 */
.timeline{
  margin-top:48px;
  position:relative;
  height:56px;
  overflow: visible; 
}

.timeline-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.timeline.swiping { transition: transform 0.3s ease-out; }

.timeline::before{ content:none; }

.timeline-years{
  position:relative;
  z-index:1; /* 점선 위에 라벨 */
  display:flex;
  flex-wrap: nowrap;
  justify-content:space-between;
  align-items:center;
  color:var(--muted);
  max-width:100%;
  gap: 0; 
}

.timeline-years .year, .dots-group{
  position:relative;
  font-size:18px;
  top: 15px; /* 점선과 동일한 수직 위치 */
  user-select:none;
  white-space:nowrap;
  padding: 2px 8px;
  transition: all 0.3s ease; 
  cursor: pointer; 
}

.timeline-years .year:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.dots-group {
  display: flex;
  gap: 25px; 
  margin: 0 16px; 
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--dot);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.dot.active {
  background-color: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(255, 106, 43, 0.2);
}

.dot.prev-active {
  background-color: var(--text);
  transform: scale(0.9);
}

.dot.next-active {
  background-color: var(--accent);
  transform: scale(1.1);
}

.dot.done { 
  background-color: var(--text); 
  transform: scale(0.95); 
}

.timeline-years .year::before{
  content:"";
  position:absolute;
  left:50%;
  top:-26px;               
  transform:translateX(-50%);
  width:8px;height:8px;
  border-radius:50%;
  background:transparent;   
}

.timeline-years .year.active{
  color:var(--accent);
  font-weight:700;
  transform: scale(1.1); /* 활성 연도를 약간 확대 */
}

.timeline-years .year.prev-active {
  color: var(--muted);
  font-weight: 500;
  transform: scale(0.95);
}

.timeline-years .year.next-active {
  color: var(--blue);
  font-weight: 600;
  transform: scale(1.05);
}

.timeline-years .year.done { 
  font-weight: 600; 
  transform: none; 
  opacity: .9; 
}


/*  Vision Section */
.vision-section{
  text-align: center;
  width: 100%;
}

.vision-content { margin: 0 auto; }

.vision-subtitle, .vision-title {
  text-shadow: 2px 2px 4px rgba(46, 46, 47, 0.1);
}

.vision-title {
  font-size: clamp(6rem, 16vw, 16rem);
  margin: 0;
  line-height: 0.9;
}


/*--------------------------------------------------
  03. About Page
---------------------------------------------------*/
.company-intro {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.intro-text {
  font-size: clamp(1.3rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.8;
  margin: 0;
  position: relative;
}

.about-section {
  padding: 0px; 
}


/*--------------------------------------------------
  04. Service Page
---------------------------------------------------*/
section.service{ height:100vh; border-bottom:1px solid rgba(0,0,0,.06); 
scroll-margin-top: 18vh;  }

/* Accessibilité: masquer visuellement mais garder au DOM */
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

#stack[aria-hidden="true"]{ display:block !important; visibility:visible !important; }

/* Bloc fixe de la pile */
.stack-fixed{
  position: sticky;
  left: clamp(20px,6vw,80px);
  right: clamp(20px,6vw,80px);
  top: 8vh;
  z-index:3000;
  pointer-events:none;
  padding-bottom: 4vh; /* coussin bas visuel */
  overflow: visible;
}

/* Pile */
.stack-items{ display:flex; flex-direction:column; gap:0; }
.stack-item{ display:flex; flex-direction:column; position:relative; 
  margin-bottom:0rem; padding-block: 12px 0px; text-align: left;}

.stack-title   { order:1; }
.stack-subline { order:2; margin-top:.35rem; }
.stack-sep     { order:3; margin:12px 0 16px; }

/* Titre — départ plus bas + transition plus douce */
.stack-title{
  font-weight:400; line-height:.95; letter-spacing:-.01em;
  font-size:clamp(44px,12vw,65px);
  transform: translateY(60px);   /* monte depuis plus bas */
  opacity:0;
  filter:blur(6px);
  transition:
    transform 1000ms cubic-bezier(.16,.84,.44,1),
    opacity   1000ms ease,
    filter    1000ms ease;
  display:inline-block;
  background: var(--bg);
  padding: 0 .08em;
  box-decoration-break: clone;
  position: relative;
  padding: 50px 50px 0;
  will-change: transform;
}
.stack-title .num{
  font-size: .36em;        
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .68;
  position: relative;
  top: -1.2em;             
}
.stack-title .txt{
  display:inline-block;
  margin-left: .35em;
  line-height: 1;
}
.stack-title::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:0px;                        /* 윗줄의 수직 위치 (간격 조절) */
  height:1px;
  background: var(--rule, #111);
  opacity:.25;
  transform: scaleX(0);             /* 처음엔 0 → on일 때 1 */
  transform-origin:left;
  transition:
    transform 700ms cubic-bezier(.25,.8,.25,1),
    opacity   700ms ease;
  will-change: transform;  
}

/* 타이틀이 on 되면 윗줄도 펼쳐짐 */
.stack-title.on::before{
  transform: scaleX(1);
  opacity:.25;
}

.stack-title.on{
  transform: translateY(0);
  opacity:1;
  filter:blur(0);
  padding: 50px 50px 0;
}

/* Trait 15px sous chaque titre */
.stack-sep{
  height:1px;
  background:var(--rule);
  opacity:.25;
  width:100%;
  margin:15px 0 15px 0;
  transform:scaleX(0);
  transform-origin:left;
  transition:
    transform 700ms cubic-bezier(.25,.8,.25,1),
    opacity   700ms ease;
}
.stack-sep.on{ transform:scaleX(1); opacity:.25; }

/* Sous-texte par item */
.stack-subline{
  font-size:20px;
  color:var(--text);
  text-transform:uppercase;
  margin-top:.2rem;
  opacity:0;
  transform: translateY(8px);
  transition:
    transform 700ms cubic-bezier(.25,.8,.25,1),
    opacity   700ms ease;
  background: var(--bg);
  display: inline-block;
  box-decoration-break: clone;
  padding: 30px 100px 100px;
  white-space: pre-line;
}
.stack-subline.on{
  opacity:1;
  transform: translateY(0);
  padding: 30px 100px 100px;
}

.stack-fixed.stack-altpad #stackItems .stack-subline,
.stack-fixed.stack-altpad #stackItems .stack-subline.on {
  padding: 30px 100px 90px;  
}

/* 타이틀/서브라인: ‘자연스럽게’ 올라오게 */
.stack-title,
.stack-subline{
  filter: none;            /* 블러 제거 */
  transform: translateY(120px); /* 시작 위치를 살짝 아래로만 */
  transition: transform 360ms cubic-bezier(.25,.8,.25,1); /* 짧고 자연스럽게 */
}

.stack-title.on,
.stack-subline.on{
  transform: translateY(0); /* on 되면 제자리 */
}

/* 기본은 숨김 */
#stackItems + .btnContents {position: fixed;  bottom: clamp(20px, 5vh, 55px);
  right: auto; left: 50%; transform: translateX(-50%); text-align: center;
  z-index: 4000; pointer-events: none; opacity: 0; transition: opacity 200ms ease;
}
/* 세션 구간일 때만 보이게 */
#stackItems + .btnContents.is-visible{ opacity: 1; pointer-events: auto; } 

#stackItems + .btnContents img {
  width: clamp(15px, 6vw, 25px); 
  opacity: 0.9; 
}

/* .btnContents i {font-size: 60px; position: absolute; bottom: 0px; right: 0px; opacity: 1;}
.btnContents i:nth-of-type(1) {animation: ani linear 1.5s 0s infinite;}
.btnContents i:nth-of-type(2) {animation: ani linear 1.5s 0.5s infinite;}
 @keyframes ani {
  0%,100% { transform: translateY(0); opacity: .9; }
  50%     { transform: translateY(6px); opacity: .4; }
} */


/* Sentinelle de scroll (taille fixée dynamiquement côté JS) */
/* .stack-sentinel{ height:20vh; } */

/* Motion-reduction */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}

@media (max-width:640px){
  section.service{ height:110vh; }
  .stack-fixed{ top:16vh; }
}



/*--------------------------------------------------
  05. News Page
---------------------------------------------------*/
.intro-title-dark,
.intro-title-dark * {
  line-height: 1.2;
}

.intro-title-dark{
  font-size: clamp(1.6rem, 4.8vw, 3.5rem);
}

.word-ani {
  display: inline-block;
  line-height: 1em;
  vertical-align: baseline;
}
.word-ani.is-inview {
  animation: riseFade 700ms cubic-bezier(.22,.9,.3,1) forwards;
}

/* News Board Section */
#flat-news-swiper {
  position: relative;
  overflow: hidden;            
  overscroll-behavior: contain; 
}

/* 트랙 */
#flat-news-swiper .flat-wrapper {
  display: flex;
  align-items: stretch;
  gap: 35px;                    /* 카드 간 간격 */
  will-change: transform;
  padding-right: clamp(12px, 5vw, 56px);
  box-sizing: border-box; 
}

/* 카드(예시; 기존 newscard 스타일 유지 가능) */
#flat-news-swiper .flat-item {
  flex: 0 0 auto;               /* 줄바꿈 없이 가로로 나열 */
  display: flex;
}

/* 인디케이터 */
#flat-news-swiper .flat-indicator {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 12px;
  height: 6px;
  border-radius: 999px;
  background: var(--track, #eee);
  overflow: hidden;
}
#flat-news-swiper .flat-indicator .bar {
  height: 100%;
  width: 0%;
  background: var(--bar, #222);
  transition: width .15s linear;
}

.flat-swiper {
  overflow: hidden;
  padding: 28px 0 48px;
}

.flat-wrapper {
  display: flex;
  align-items: stretch;
}

.flat-item {
  display: flex;
  justify-content: center;
  align-items: stretch;
  transition: transform .3s ease, opacity .3s ease;
}

.flat-item .newscard {
  width: min(480px, 70vw);
  height: min(500px, 80vh);
  border-radius: 5px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 18px 18px 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}

.flat-item .newscard:hover {
  background: var(--card-active-bg);
  color: var(--card-active-text);
  border-color: #000;
}

/* News Section Scroll Indicator */
.flat-pagination {
  position: relative;
  width: 80%;
  height: 4px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.news-indicator-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  transition: clip-path 0.2s ease;
  border-radius: 2px;
}

/* 공통 카드 베이스(뉴스/관련뉴스) */
.news-link {
  display: block; 
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit; 
}
.news-card{ width: clamp(340px, 38vw, 440px); }
.news-card,
.related-news-card{
  background: var(--surface);
  border-radius: var(--radius-1);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.05);
  transition: all .3s ease;
  cursor: pointer;
}
.news-card:hover,
.related-news-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* 이미지 래퍼 공통 */
.news-image,
.related-news-card .news-image{
  width:100%; overflow:hidden; display:flex; align-items:center; justify-content:center;
}
.news-image{ height:260px; }
.related-news-card .news-image{ height:200px; }
.news-image img,
.related-news-card .news-image img{
  width:100%; height:100%; object-fit: cover; transition: transform 0.3s ease; display:block;
}
.news-card:hover .news-image img,
.related-news-card:hover .news-image img{ transform: scale(1.05); }

/* 본문 래퍼 공통 */
.news-content,
.related-news-card .news-content{
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.news-content{ height: 220px; }
.related-news-card .news-content{ height: 190px; }

/* 타이틀 공통 */
.news-card-title,
.related-news-card .news-card-title{
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  font-weight: 600;
  margin: 0 0 16px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

/* 요약 공통 */
.news-preview,
.related-news-card .news-preview{
  font-size: clamp(0.75rem, 2.2vw, 1rem);
  color: var(--muted);
  margin: 0 0 20px 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* 메타 공통 */
.news-meta,
.related-news-card .news-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.8rem, 1.2vw, 0.85rem);
  margin-top: auto; 
  flex-shrink: 0; 
}
.news-date,
.related-news-card .news-date{
  color: var(--muted);
  font-weight: 500;
}

.news-category {
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .news-pin { height: auto; }
  .news-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

/* News Detail Section */
.news-detail-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 0 60px 0;
}

/* Article Header */
.article-header { margin-bottom: 40px; }

.article-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  text-align: left;
}

.article-date {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}

/* Article Main Image */
.article-main-image {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Article Content */
.article-content {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 60px;
  text-align: left;
}
.article-content p { margin-bottom: 24px; }
.article-content p:last-child { margin-bottom: 0; }

/* News Divider */
.news-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--muted), transparent);
  margin: 60px 0;
}

/* Related News Section */
.related-news-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

.related-news-section .news-card-title {
  font-size: clamp(0.8rem, 2.2vw, 1rem) !important;
}

.related-news-section .news-preview {
  font-size: clamp(0.7rem, 2vw, 0.8rem) !important;
}

/* .related-news-title {
  font-size: clamp(1.6rem, 3.6vw, 2rem);
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
} */

.related-news-container { position: relative; overflow: hidden; }
.related-news-carousel { overflow: hidden; margin: 0 60px; }

.related-news-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

/* 관련뉴스 전용 폭만 유지(상단 공통으로 스타일) */
.related-news-card { flex: 0 0 calc(25% - 22.5px); }

/* Carousel Navigation */
.carousel-nav {
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 12px;
  z-index: 10;
  margin: 20px 0;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.nav-btn img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav-btn:hover img { opacity: 1; }

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.nav-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: none;
}

/*--------------------------------------------------
  06. Contact Page
---------------------------------------------------*/
.contact-form-row {
  padding: 0;
  padding-bottom: 80px;
}

.content-row.contact-content { padding-bottom: 0; }

.contact-hero { height: 60vh; }

.header.black-section .navigation a,
.header.black-section .logo,
.header.black-section .flexnav li a {
  color: var(--text-color);  
}

.intro-title{
  font-size: 3.5rem;
  line-height: 1.2;
  color: #F5F5F5;
}

/* Contact Form*/
.contact-form-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form-container {
  background: #F3F6FB;
  border-radius: 1px;
  padding: 3rem;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-label {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
}

.form-input {
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid var(--text);
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus { border-bottom-color: var(--blue); }

.form-input::placeholder { color: #999; }

.form-textarea {
  padding: 1rem;
  border: 1px solid var(--text);
  border-radius: 1px;
  background: #FFFFFF;
  font-size: 1rem;
  outline: none;
  resize: none;
  min-height: 20em;
  transition: border-color 0.3s ease;
}

.form-textarea:focus { border-color: var(--blue); }

.form-textarea::placeholder { color: #999; }

.form-submit-btn {
  align-items: center;
  background: #F3F6FB;
  border: 1px solid var(--text);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  width: 200px; 
  height: 68px; 
}

.form-submit-btn:hover {
  background: var(--text);
  color: #FFFFFF;
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 46, 47, 0.2);
}

.form-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
