@charset "utf-8";
/* CSS Document */
/* ═══════════════════════════════════════════
   RESET & ROOT
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: rgb(119, 181, 64);
  --green-dark: #719737;
  --green-light: #4e9a5a;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
  --bg-gray: #f5f5f5;
  --bg-gray: #f5f5f5;
  --white: #fff;
  --header-h: 84px;
}


a, a:hover, a:focus, a:visited {
  text-decoration: none;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', 'Noto Sans Thai', 'Kanit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  border-top: 8px solid var(--green); 
}

/* ═══════════════════════════════════════════
   INTRO (문이 열리며 INDEX가 바로 보이는 버전)
═══════════════════════════════════════════ */

/* 인트로가 진행 중일 때 메인 페이지 스크롤 방지 */
body.intro-active {
  overflow: hidden !important;
  height: 100vh !important;
}

#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999; /* 최상단 배치 */
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* 문이 다 열리고 인트로 레이어 자체를 완전히 숨길 때 */
#intro-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease 0.3s, visibility 0.4s ease 0.3s; 
}
.bg-dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* 까만색 60% 투명도 (원하는 진하기로 조절 가능) */
  z-index: 5; /* 하얀 문(z-index:10)보다는 아래, 페이지 내용보다는 위에 배치 */
}
/* 양옆으로 열리는 하얀 문 */
.door {
  position: fixed;
  top: 0;
  bottom: 0;
  background: #fff;
  z-index: 10;
  transition: transform 1.5s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  display: flex;
  align-items: center;
}
#dL { left: 0; width: 45%; justify-content: flex-end;}
#dR { right: 0; width: 55%; justify-content: flex-start;}

/* 문이 열리는 모션 클래스 */
#dL.open { transform: translateX(-100%); }
#dR.open { transform: translateX(100%); }

/* 하얀 문 위에 올라가는 로고/텍스트 레이아웃 */
#mark-wrap { 
    padding-right: 10px; 
    opacity: 0; 
    transform: none; 
}
#text-wrap { 
    padding-left: 20px; 
    opacity: 0; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    transform: translate(-14px); 
}
#mark { width: 148px; height: 148px; }
.t1 { font-size: 68px; font-weight: 600; color: #111; letter-spacing: 8px; line-height: 1; margin-top: -5px; margin-bottom: 5px; }
.t2 { font-size: 21px; font-weight: 400; color: #111; letter-spacing: 2px; margin-top: -2px; }

/* 애니메이션 Keyframes */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   HEADER  — ACE Inventor Style
═══════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0 48px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  /* ⚡️ 기존의 background 0.3s에서 테두리 변화도 부드럽게 감지하도록 'all'로 확장 */
  transition: all 0.3s ease; 
  
  /* 처음 맨 위 상태일 때는 선이 보이지 않도록 기본 투명 투사 */
  border-bottom: 1px solid transparent; 
}

header.scrolled {
  /* 스크롤이 내려갔을 때 하단에 1px 연한 회색 선 부여 */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); 
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 210;
  background: none !important;
  outline: none !important;
  border: none !important;   
}

/* footer 로고는 헤더 로고와 클래스를 공유하지만, 모바일 메뉴(z-index:199)보다 위로
   튀어 오르면 안 되므로 z-index를 별도로 낮춰준다 */
footer .logo {
  z-index: 1;
}

.logo img { 
  height: 54px; 
  width: auto; 
  display: block; 
  border: none !important;
  outline: none !important; 
}

/* ── GNB NAV ── */
.gnb-nav {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
  justify-content: center;
}

.gnb-list {
  display: flex;
  list-style: none;
  height: 100%;
  gap: 40px;
}

.gnb-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* ── 대메뉴 링크 ── */
.main-depth {
  text-decoration: none;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color 0.25s;
}

/* ── Wave 글자 애니메이션 래퍼 ── */
.menu-txt-wrap {
  display: inline-flex;
  flex-direction: column;
  height: 1.2em;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
}

/* 기본 줄 / hover 줄 — 각각 가로로 글자 나열 */
.char-row {
  display: flex;
  align-items: center;
  line-height: 1.2em;
  white-space: nowrap;
}

.char-row.row-hover {
  position: absolute;
  top: 100%;
  left: 0;
}

/* 글자 하나 — transform + color 둘 다 transition */
.char {
  display: inline-block;
  color: #000;
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),color 0.28s ease;
}

/* hover 줄은 처음부터 진한 검정 */
.char-row.row-hover .char {
  color: var(--green);
}

/* hover 시: 기본 줄 위로, hover 줄 제자리로 + 색 변경 */
.gnb-item:hover .char-row.row-default .char {
  transform: translateY(-100%);
  color: #000;
}
.gnb-item:hover .char-row.row-hover .char {
  transform: translateY(-100%);
}

/* 밑줄 제거 */
.main-depth::after { display: none; }

/* ── 전체 너비 드롭다운 레이어 ── */
.global-dropdown {
  position: fixed;
  top: 84px;
  left: 0;
  width: 100%;
  background: var(--green);
  z-index: 190;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.global-dropdown.open {
  clip-path: inset(0 0 0% 0);
  pointer-events: auto;
}

.global-dropdown-inner {
  width: 100%;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px; /* .sub-nav-inner와 동일한 높이로 고정 (호버 시 높이 점프 방지) */
}

.dropdown-content {
  display: none;
}
.dropdown-content.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 하위메뉴: 가로 배치 */
.sub-depth {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 0;
}

.sub-depth li {
  position: relative;
}

/* 구분선 */
.sub-depth li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.35);
}

.sub-depth a {
  text-decoration: none;
  font-size: 15px; /* .sub-nav-inner a와 동일하게 맞춤 (호버 시 글씨 커지는 현상 방지) */
  color: rgba(255, 255, 255, 0.85);
  display: block;
  white-space: nowrap;
  padding: 14px 28px 14px 36px;
  position: relative;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

/* hover 시 배경 제거 → 왼쪽 상단 점으로 대체 */
.sub-depth a::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 30px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sub-depth a:hover {
  color: #fff;
  background: none;
}

.sub-depth a:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ── 오른쪽: 언어 + Contact ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  z-index: 210;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: #f5f5f5; /* 연한 회색 배경 */
  border-radius: 30px; /* 알약 모양 */
  padding: 4px 16px;
  gap: 4px;
}

/* 맨 앞 지구본 아이콘 */
.lang-switch .lang-icon {
  width: 16px;
  height: 16px;
  color: #333;
  margin-right: 6px;
  flex-shrink: 0;
}

/* 개별 언어 버튼 기본 상태 (평소에는 배경 투명) */
.lang-switch .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  border-radius: 20px;
  cursor: pointer;
  background: transparent !important; 
  transition: background-color 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}

/* 내부 앵커(a) 태그 기본 글자색 설정 */
.lang-switch .lang-btn a,
.lang-switch .lang-btn span {
  text-decoration: none !important;
  color: #000000 !important;       /* 쨍한 검은색(#000000) */
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}


.lang-switch .lang-btn:nth-child(2),
.lang-switch > *:nth-child(2) {
  background: #4e9a5a !important;   /* 오렌지 고정 배경 */
}
.lang-switch .lang-btn:nth-child(2) a,
.lang-switch .lang-btn:nth-child(2) span,
.lang-switch > *:nth-child(2) a,
.lang-switch > *:nth-child(2) span {
  color: #ffffff !important;        /* 글자색 흰색 고정 */
  font-weight: 600 !important;
}


.lang-switch .lang-btn.active,
.lang-switch .lang-btn.active:hover {
  background: #009047 !important;
  color: #fff;
  font-weight: bold;
}
}

.lang-switch .lang-btn.active a {
  color: #ffffff !important;
  font-weight: 600 !important;
}


/* ========================================================
   🎯 [보완] 나머지 2번째 CH, 3번째 EN 버튼: 마우스 오버 시 연회색 효과
   ======================================================== */

/* TH가 아닌 버튼들(CH, EN)에 마우스를 올렸을 때만 연한 회색 바탕 + 검은 글씨 */
.lang-switch .lang-btn:not(.active):hover {
  background: #bbb !important;  /* 연회색 → 녹색으로 변경 */
}

.lang-switch .lang-btn:not(.active):hover a,
.lang-switch .lang-btn:not(.active):hover span {
  color: #ffffff !important;  /* 검은색 → 흰색으로 변경 */
  font-weight: 700 !important;
}
.lang-switch .lang-btn:not(:nth-child(2)):hover a,
.lang-switch .lang-btn:not(:nth-child(2)):hover span,
.lang-switch > *:nth-child(n+3):hover a {
  color: #ffffff !important;  /* #000000 → #ffffff */
  font-weight: 700 !important;
}

/* 자바스크립트 가동 시 CH, EN에 active 클래스가 붙어 오렌지색이 전염되는 것을 원천 차단 */
.lang-switch .lang-btn:nth-child(3).active,
.lang-switch .lang-btn:nth-child(4).active,
.lang-switch .lang-btn .active,
.lang-switch *.active {
  background: transparent !important;
}
.lang-switch .lang-btn:nth-child(3).active a,
.lang-switch .lang-btn:nth-child(4).active a,
.lang-switch .lang-btn .active a {
  color: #000000 !important;
  font-weight: 700 !important; 
}

.lang-switch .lang-btn:not(.active):active,
.lang-switch .lang-btn:not(.active):focus,
.lang-switch .lang-btn:not(.active) a:active,
.lang-switch .lang-btn:not(.active) a:focus {
  background: transparent !important;
  color: #ffffff !important;
}

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  z-index: 220;  
}

.hamburger span {
  background: #333333 !important; 
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ========================================================
   🎯 [보완 핵심] PC/iPad 대화면에서 모바일 요소 차단막 설정
   ======================================================== */
.mobile-header-right,
.mobile-lang-btn,
.mobile-lang-wrap,
#mobileLangBtn {
  display: none !important; /* PC/iPad 화면에서는 모바일 버튼을 절대 숨김 */
}


/* ── 모바일 전용 header-right (기본: 데스크탑에서 숨김) ── */
.mobile-header-right {
  display: none;
}

/* ── 모바일 globe 버튼 (기본 숨김, mobile에서만 표시) ── */
.mobile-lang-btn {
  display: none;
}

/* ── mobile-lang-panel (nav 하단 언어선택) ── */
.mobile-lang-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 24px 0 8px;
  border-top: 1px solid var(--border);
}
.mobile-lang-panel-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-light);
  flex-shrink: 0;
}
.mobile-lang-options {
  display: flex;
  gap: 4px;
}
.mobile-lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #333 !important;
  background: #f0f0f0;
  text-decoration: none;
  transition: all .2s;
  border-bottom: none !important;
}
.mobile-lang-opt.active {
  background: #4e9a5a;
  color: #fff !important;
  font-weight: 600;
}
.mobile-lang-opt:hover:not(.active) {
  background: rgba(0,0,0,0.08);
  color: #000 !important;
}

/* ═══════════════════════════════════════════
   🎯 2번째 이미지(HEC 스펙) 매칭 모바일 드로워 메뉴
═══════════════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; /* 헤더 뒷공간 전체 채우기 */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 199;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) 24px 40px; /* 헤더 높이 확보 크기 */
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open { 
  transform: translateX(0); 
  display: flex;
  background: #68A741;
}

/* ── 상단 최적화 바 (언어팩 알약 버튼 + 고객센터) ── */
.mobile-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 30px;
}

.mobile-lang-options {
  display: flex;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 30px;
  gap: 2px;
}

.mobile-lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #777 !important;
  transition: all 0.2s ease;
}

.mobile-lang-opt.active {
  background: #4e9a5a !important; /* 기업 메인색과 연동 매칭 */
  color: #fff !important;
}

.mobile-cscenter-btn {
  display: inline-flex;     /* 아이콘 정중앙 정렬을 위해 flex 변경 */
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 8px;             /* 사방 패딩을 균일하게 조정 (아이콘 크기에 맞춤) */
  border-radius: 50%;       /* 완전한 원형 버튼으로 변경 (원치 않으면 기존 20px 유지) */
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.mobile-cscenter-btn:shadow,
.mobile-cscenter-btn:active {
  background: #153547;
}

/* ── 아코디언 컴포넌트 리스트 ── */
.mobile-menu-list {
  list-style: none;
  width: 100%;
}

.mobile-menu-item {
  border-bottom: 1px solid #5a9335;
  width: 100%;
}

/* 첫 번째 아이템 상단 보더라인 추가 (HEC 라인 디테일) */
.mobile-menu-list .mobile-menu-item:first-child {
  border-top: 1px solid #5a9335;
}

.mobile-depth-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 22px 4px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.mobile-main-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

/* ── 플러스 / 마이너스 (+/-) 토글 그래픽 인터랙션 ── */
.mobile-toggle-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.toggle-icon-svg {
  width: 16px;
  height: 16px;
  stroke: #27530b;
  stroke-width: 2px;
  stroke-linecap: round;
}

.toggle-icon-svg line {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 아코디언 활성화 상태 컨트롤 스타일 */
.mobile-menu-item.open .mobile-main-title {
  color: #fff;
}

/* 서브메뉴 열릴 때 세로축만 회전 및 투명 처리하여 마이너스(-) 기호 유도 */
.mobile-menu-item.open .toggle-icon-svg .line-v {
  transform: rotate(90deg);
  opacity: 0;
}
.mobile-menu-item.open .toggle-icon-svg .line-h {
  stroke: var(--green);
}

/* ── 슬라이딩 서브메뉴 디자인 ── */
.mobile-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  background: #56952f;
  border-radius: 10px;
  padding: 0 16px;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sub li a {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  color: #e2e2e2;
  font-weight: 400;
  border-bottom: 1px solid #68a741;
}

.mobile-sub li a:hover,
.mobile-sub li a:active {
  color: var(--green);
}

/* 하단 장식 레이아웃 푸터 */
.mobile-footer-panel {
  margin-top: auto;
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: -40px;
  padding: 24px;
  text-align: left;
  background: var(--white);
}
.m-footer-logo {
  font-size: 14px;
  color: #27530b;
  font-weight: 500;
  letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%; 
  max-width: 94%; 
  height: 680px;
  margin: 80px auto 0;  
  overflow: hidden;
  padding: 0; 
  border-radius: 20px;
  box-sizing: border-box;
}

.hero-slider-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a3a2a;
}

/* 각 슬라이드 */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; 
  display: block;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  linear-gradient(90deg, rgba(10, 30, 60, 0.65) 0%, rgba(10, 30, 60, 0.3) 30%, rgba(10, 30, 60, 0) 60%);
  z-index: 2;
}

.hero-text-container {
  position: absolute;
  top: 50px; /* 상단 여백을 살짝 늘려 안정감 확보 */
  left: 60px; 
  max-width: 65%; /* 💡 전체 화면의 3분의 2 영역만 차지하도록 제한 */
  z-index: 3;
  color: #fff;
  text-align: left;
  overflow: visible; 
}

/* ⚡ 2. 상단 문구 기본 상태 및 애니메이션 정의 (좌 ➡️ 우) */
.hero-title-top {
  font-size: 48px;
  font-weight: 600;
  margin: 0 0 20px 0;
  line-height: 1;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.25), 
    0 4px 25px rgba(0, 0, 0, 0.2); 
  opacity: 0;
  transform: translateX(-40px);
}

/* ⚡ 첫 번째 줄 내부의 굵은 글씨 스타일 */
.hero-title-top .txt-bold {
  font-weight: 600; /* 아주 굵게 설정 */
}

/* ⚡ 첫 번째 줄 내부의 얇은 글씨 스타일 */
.hero-title-top .txt-light {
  font-weight: 300; /* 얇게 설정 */
  opacity: 1;    /* 얇은 글씨는 살짝 투명도를 주면 굵은 글씨가 상대적으로 더 강조되어 보입니다 */
}
.hero-title-top .txt-light-small {
  font-weight: 300; /* 얇게 설정 */
  opacity: 1;    /* 얇은 글씨는 살짝 투명도를 주면 굵은 글씨가 상대적으로 더 강조되어 보입니다 */
  font-size: 40px;
}

/* ⚡ 3. 하단 문구 기본 상태 및 애니메이션 정의 (우 ➡️ 좌) */
.hero-title-bottom {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff900;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0);
  opacity: 0;
  transform: translateX(40px);
}

/* ⚡ 3-1. 하단 문구 내부 span(줄바꿈) 제어 속성 추가 */
.hero-title-bottom .block-txt {
  display: block;    /* <br> 없이 자동으로 줄바꿈 처리 */
  line-height: 0.8;  /* 줄간격을 타이트하고 보기 좋게 고정 */
}

/* 💡 첫 번째 줄과 두 번째 줄 사이의 간격을 미세 조정 (원하는 대로 수치 변경 가능) */
.hero-title-bottom .block-txt:first-child {
  margin-bottom: 8px; 
}

/* ⚡ 4. 활성화된(.active) 슬라이드 안에서만 애니메이션 작동 */
.hero-slide.active .hero-title-top {
  animation: slideFromLeft 2.4s cubic-bezier(0.1, 0.8, 0.2, 1) forwards 0.3s;
}

.hero-slide.active .hero-title-bottom {
  animation: slideFromRight 2.4s cubic-bezier(0.1, 0.8, 0.2, 1) forwards 0.5s; /* 부드러운 순차 등장을 위해 지연시간 미세조정 */
}

/* ⚡ 5. 애니메이션 Keyframes 설정 */
@keyframes slideFromLeft {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromRight {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* 반응형 모바일 대응 */
@media (max-width: 1024px) {
  .hero-text-container { max-width: 80%; top: 50px; left: 40px; }
  .hero-title-top { font-size: 36px; }
  .hero-title-bottom { font-size: 20px; }
  .hero-title-bottom .block-txt:first-child { margin-bottom: 6px; }
}

@media (max-width: 768px) {
  .hero-text-container {
    top: 30px;
    left: 30px;
  }
  .hero-title-top { font-size: 24px; margin-bottom: 6px; }
  .hero-title-bottom { font-size: 14px; }
  .hero-title-bottom .block-txt { line-height: 1.3; }
  .hero-title-bottom .block-txt:first-child { margin-bottom: 4px; }
}

/* ── indicator ── */
.hero-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;   
  transform: translateX(-50%); 
  top: auto;
  right: auto;        
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-radius: 40px;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
}

.hero-cur,
.hero-total {
  min-width: 14px;
  text-align: center;
  font-size: 13px;
  opacity: 1;
  letter-spacing: 0.5px;
}
.hero-cur { font-weight: 700; font-size: 15px; }

.hero-bar-wrap { display: flex; align-items: center; }
.hero-bar-track {
  width: 80px;
  height: 2px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  overflow: hidden;
}

.hero-bar-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}

/* 이전/일시정지/다음 버튼 그룹 */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hero-ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity .2s, transform .15s;
}

.hero-ctrl-btn:hover { opacity: 1; transform: scale(1.15); }

/* 일시정지 버튼만 원형 테두리 */
.hero-ctrl-btn.hero-pause {
  width: 28px;
  height: 28px;
  transform: none;
}

.hero-ctrl-btn.hero-pause:hover { background: rgba(255,255,255,0.25); transform: none; }

.pause-icon {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.pause-icon i {
  display: block;
  width: 2px;
  height: 8px;
  background: #fff;
  border-radius: 1px;
}

.play-icon {
  display: none;
  align-items: center;
  justify-content: center;
  padding-left: 1px;
}

/* ═══════════════════════════════════════════
   SHARED SECTION
═══════════════════════════════════════════ */
  /* ── Section titles ── */
.section-title { font-size: 30px; font-weight:600; }

.section-label {
    font-size: 18px;
    color: rgb(119, 181, 64);
    display: flex;
    align-items: center;
    width: 100%;
}

.section-label::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1px;
    background-color: #e2e2e2;
    vertical-align: middle;
    margin-left: 10px;
}

.btn-green {
  display: inline-block;
  padding: 10px 28px;
  background: var(--green);
  color: var(--white);
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}

.btn-green:hover { background: #4e9a5a; }

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */

.about {
  background: var(--white);
  padding: 70px 0;
}

/* 1. 전체 레이아웃 구조 조정 */
.about-inner {
  display: grid;
  /* 텍스트 영역 가로폭을 조금 더 넓혀(1fr -> 1.1fr 수준) 글이 아래로 늘어나는 것을 방지 */
  grid-template-columns: 1.1fr 540px; 
  gap: 60px;
  align-items: start; 
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 2. 타이틀 영역 최적화 */
.about-content h2 {
  font-size: 46px;            /* 48px에서 미세하게 조절하여 타이틀 줄바꿈 밸런스 최적화 */
  font-weight: 600;
  margin: 20px 0 25px;
  line-height: 1.45;          /* 태국어 성조 자소 겹침 방지 */
  letter-spacing: 0;          /* 태국어는 자간 마이너스 제거 */
  word-break: keep-all;       /* 단어 단위 줄바꿈 */
  overflow-wrap: break-word;
  max-width: 620px;           /* 가로폭을 580px에서 620px로 넓혀 메인 카피가 시원하게 두 줄로 떨어지도록 유도 */
}

/* 3. 본문 영역 최적화 (길이 축소의 핵심) */
.about-content p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.85; 
  letter-spacing: 0.01em; 
  margin-bottom: 30px; /
  word-break: keep-all;
  text-align: left; 
  word-break: break-all;
}

/* 4. 본문 내 특정 강조 텍스트 (줄바꿈 방지 및 뭉침 방지) */
.about-content p .point-text {
  display: inline-block; 
  white-space: nowrap;
  font-size: 16px; 
  font-weight: 600;  
  white-space: normal !important;
  word-break: break-all !important;
  overflow-wrap: break-word !important;
}

/* ── 5. 이미지 그리드 핵심 레이아웃 (사진 크기 업그레이드) ── */
.about-images {
  display: grid;
  grid-template-columns: 1.1fr 1fr; 
  /* 기존 repeat(2, 240px) = 총 높이 496px에서 
     repeat(2, 260px) = 총 높이 536px로 사진 세로 크기를 약 40px 키움 
  */
  grid-template-rows: repeat(2, 260px); 
  gap: 16px; 
}

/* 개별 이미지 블록 (카드 래퍼) */
.about-images .img-block {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 20px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* 왼쪽 세로형 카드가 1행부터 2행까지 통째로 차지하도록 설정 */
.about-images .img-block.tall {
  grid-row: 1 / 3; 
}

/* 이미지 자체 스타일 수치 제어 */
.about-images .about-img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  transition: transform 0.5s ease;
}

/* 마우스 오버 시 미세하게 확대되는 효과 */
.about-images .img-block:hover .about-img {
  transform: scale(1.05);
}

/* 이미지별 시각적 중심축 미세 조정 */
.about-images .img1 { object-position: left center; }
.about-images .img2 { object-position: center center; }
.about-images .img3 { object-position: center center; }

/* ═══════════════════════════════════════════
   DISCOVER GLASS BUTTON STYLE (흰색 배경 대응 보정)
═══════════════════════════════════════════ */
.btn-discover {
    cursor: pointer;
    letter-spacing: 0.03em;
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 54px;
    line-height: 40px;
    gap: 15px;
    padding: 0 42px;
    font-size: 18px;
    border-radius: 32px;
    text-decoration: none;
    white-space: nowrap;
    color: #68A741 !important;
    border: 2px solid #68A741;
    background: #fff;
    transition: border 1s ease, color 1s ease, background 1s ease, gap .5s ease, box-shadow 0.3s ease;
}

/* ── 버튼 내부 SVG 화살표 색상 제어 ── */
.btn-discover .arrow-icon {
  transition: transform 0.3s ease;
}

/* 1. 평소 상태: 화살표를 어두운 색(#333333)으로 변경 */
.btn-discover .arrow-icon path {
  stroke: #68A741; /* 👈 #ffffff였던 것을 어두운 색으로 수정! */
  transition: stroke 0.3s ease;
}

/* ── 🌟 마우스 오버 (Hover) 인터랙션 ── */
.btn-discover:hover {
  background: rgb(119, 181, 64);                  /* 호버 시 브랜드 초록색으로 꽉 채움 */
  border: 1px solid rgb(119, 181, 64);
  color: #ffffff !important;                      /* 글자색 흰색으로 반전 */
  gap: 22px;                                      /* 화살표와 텍스트 공간이 벌어지는 효과 */
}

/* 호버 시 화살표 이동 및 색상 반전(흰색) */
.btn-discover:hover .arrow-icon {
  transform: translateX(4px);
}

/* 2. 롤오버 상태: 이때 흰색(#ffffff)으로 변하도록 유지 */
.btn-discover:hover .arrow-icon path {
  stroke: #ffffff !important; 
}

/* ==========================================================================
   반응형 타일 구조 유지 및 보정 (기존 @media 구문 내 코드를 대체하거나 하단에 추가)
   ========================================================================== */

/* ── 태블릿 구간 (최대 1024px) ── */
@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr; /* 텍스트와 이미지를 세로로 배치 */
    gap: 40px;
    max-width: 100%;            /* 💡 컨테이너가 아이패드 화면에 꽉 차도록 확장 */
    padding: 0 28px;            /* 양옆 최소 여백만 확보 */
  }
    
  .about-images {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* 좌우 비율 유지 */
    grid-template-rows: repeat(2, 280px); /* 💡 이미지 높이를 키워 사각형이 시원하게 보이도록 수정 */
    max-width: 100%;            /* 💡 기존 540px 고정값을 제거하여 양옆 여백을 꽉 채움 */
    margin: 0 auto;
    width: 100%;
    gap: 20px;                  /* 💡 이미지와 이미지 사이의 간격을 넓혀 답답함 해소 */
  }
    
  .back-to-top,
  .btn-top,
  a[class*="top"],
  button[class*="top"] { 
    right: 12px !important;    /* 💡 오른쪽 여백을 12px로 줄여 벽면에 바짝 밀착 */
    bottom: 220px !important;   /* 하단 여백도 레이아웃에 맞춰 미세 조정 */
    width: 40px !important;    /* 가로 크기 40px 축소 */
    height: 40px !important;   /* 세로 크기 40px 축소 */
    border-radius: 8px !important; /* 💡 캡처화면의 둥근 사각형 느낌을 유지하되 크기에 맞춰 정돈 */
    
    display: flex !important;  /* 내부 화살표 아이콘을 정중앙에 배치 */
    align-items: center !important;
    justify-content: center !important;
  }

  /* ⚡ 버튼 내부 화살표 아이콘(svg 또는 i 태그) 크기도 비율에 맞게 축소 */
  .back-to-top svg, .btn-top svg,
  .back-to-top i, .btn-top i {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 767px) {
  .btn-discover {
  height: 42px;
    line-height: 36px;
    padding: 0 16px;
    font-size: 14px;
    gap: 10px;
  }
  .btn-discover:hover {
    gap: 14px;
  }
  .awards-more-btn {
    height: 38px;
    line-height: 32px;
    padding: 0 14px;
    font-size: 13px;
    gap: 6px;
  }
  .awards-more-btn .arrow-icon { width: 24px; height: 8px; }
}

/* ═══════════════════════════════════════════
   PROJECTS STYLE 
═══════════════════════════════════════════ */
.projects {
  background: #ffffff; 
  overflow: visible !important; 
  /* 상단 타이틀 주변 여백 확보 */
  position: relative;          /* ★ 추가: 자식 요소들의 z-index 동작의 기준점이 됨 */
  z-index: 1;  
  padding-top: 40px;
  padding-bottom: 0px; 
}

.projects-inner { 
  max-width: 1440px; 
  margin: 0 auto; 
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;          /* 자식 z-index 기준 */
  z-index: 10; 
}

/* --- 타이틀 스타일 (회색 바탕이 시작하기 전, 흰색 바탕 위에 깔끔하게 배치) --- */
.section-title {
  font-size: 28px;
  font-weight: bold;
  color: #68A741;
  text-align: left;
}

.section-label {
  font-size: 14px;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  margin-bottom: 20px; /* 타이틀과 메뉴 사이의 흰색 여백 공간 */
}

/* --- [핵심] 걸쳐져 있는 초록색 탭 메뉴 바 --- */
.filter-tabs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  margin-bottom: -45px;
  z-index: 20;
}

.filter-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1000px;
  width: 100%;
  margin: 0 12px 16px;
}

/* PC·태블릿 기본: 화살표 그룹 숨김 */
.filter-arrow-group {
  display: none !important;
  gap: 8px;
  align-items: center;
}

.filter-arrow {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #68A741;
  background: transparent;
  color: #68A741;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-arrow:hover {
  background: #68A741;
  color: #fff;
}

/* filter-tabs는 wrapper 안으로 들어가므로 margin-bottom 제거 */
.filter-tabs-wrapper .filter-tabs {
  flex: 1;
  margin-bottom: 0;
  margin: 0;
}

.filter-tabs {

  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #68A741;
  padding: 10px 48px;
  border-radius: 80px;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto; 
  position: relative;
  z-index: 20;          /* 회색 바탕보다 레이어를 위로 올려서 묻히지 않게 함 */
  margin-bottom: -45px; /* 탭 메뉴 높이의 약 절반만큼 음수 마진을 주어 걸치게 만듦 */
}

.projects-gray-bg {
  background: var(--bg-gray); /* 기존 정의하신 회색 바탕 적용 */
  width: 100%;
  position: relative;          /* ★ 추가: z-index 동작을 위해 필요 */
  z-index: 5;                 /* ★ 추가: .projects-inner(10)보다 낮은 값을 설정하여 아래로 배치 */
  /* 탭 메뉴가 위에서 걸치고 내려온 만큼 상단 내부 여백을 주어 카드가 안 가려지게 처리 */
  padding-top: 90px; 
  padding-bottom: 80px;
}

/* 아래 기존 탭 내부 및 그리드/카드 관련 CSS는 그대로 유지하시면 됩니다 */
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  padding:0 20px;
}

.tab-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.tab-txt {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.tab-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.3);
}

.tab:hover { color: #ffffff; }
.tab:hover .tab-icon-img { opacity: 1; transform: translateY(-4px); }
.tab.active { color: #ffffff !important; font-weight: 600; }
.tab.active .tab-icon-img { opacity: 1; }

/* --- 프로젝트 리스트 & 카드 레이아웃 --- */
.scroll-wrapper {
  width: 100%;
  overflow: visible !important; 
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 40px;                             
  width: 100%;
  box-sizing: border-box;
}

.project-card {
  background: #ffffff;
  border-radius: 16px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: 16px; 
}

.project-card:hover {
  transform: translateY(-8px); 
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1); 
}

.project-img {
  width: 100%;
  aspect-ratio: 4 / 3;  
  overflow: hidden;
  position: relative;
  background: #f4f4f4;
  border-radius: 8px; 
  object-fit: contain !important; 
}

.card-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;     
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .card-photo {
  transform: scale(1.06); 
}

.project-info {
  padding: 16px 4px 8px 4px;     
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-desc {
  font-size: 16px;        
  color: #333333;
  line-height: 1.6;
  margin-bottom: 60px; 
  display: -webkit-box;
  -webkit-line-clamp: 2;  
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;           
  text-align: left;
}

.btn-green {
  display: inline-block;
  align-self: flex-end;   
  background-color: #999;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 500;
  padding: 7px 28px 6px;
  border-radius: 24px; 
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-green:hover {
  background-color: #68A741; 
}

.project-carousel-nav {
  display: flex;
  justify-content: flex-end; 
  align-items: center;    /* 선과 화살표 정중앙 정렬 */
  gap: 16px;              /* 선과 첫 번째 화살표 사이의 간격 */
  margin-top: 40px;       /* 도트나 카드 영역과의 밸런스를 위한 상단 마진 */
  width: 100%;
  box-sizing: border-box;
}

/* --- 프로젝트 리스트 Swiper 설정 --- */
.project-swiper {
  position: relative;
  z-index: 1;
  overflow: visible !important; 
  /* 위아래로 100px만큼은 안 잘리게 영역을 트고, 좌우는 딱 맞춰 자릅니다 */
  clip-path: inset(-100px 0px -100px 0px); 
}

/* Swiper 내부 카드 정렬 최적화 */
.project-swiper .swiper-slide {
  padding-top: 20px !important;    /* 마우스 오버시 올라가는 높이만큼 여유 공간 확보 */
margin-top: -20px !important; 
}

/* 1. 진행 바 선 스타일 수정 */
.project-carousel-nav .nav-line.swiper-pagination-progressbar {
  flex: 1;
  min-width: 0;

  position: relative !important;
  display: block;

  height: 2px;
  background-color: #dddddd;

  overflow: hidden;
  opacity: 1;

  z-index: 0;
  pointer-events: none;
}

/* 2. Swiper 실제 진행 게이지 선 컬러 */
.project-carousel-nav .nav-line .swiper-pagination-progressbar-fill {
  background-color: #68A741 !important; 
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left top;
  transition-duration: 300ms;
}

/* 3. 좌우 화살표 버튼 공통 스타일 수정 */
.project-carousel-nav .nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e1e1e1;
  background-color: #ffffff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: #333333;

  transition: all 0.3s ease;

  flex-shrink: 0;
  padding: 0;

  position: relative;
  z-index: 30;
}

/*
.project-carousel-nav .nav-btn svg {
  width: 24px;
  height: 24px;
}
*/

/* 화살표 버튼 마우스 호버(Hover) 효과 */
.project-carousel-nav .nav-btn:hover {
  background-color: #68A741;
  border-color: #68A741;
  color: #ffffff;
}

/* ═══════════════════════════════════════════
   NEWS
═══════════════════════════════════════════ */
.news { 
   background: var(--white);
   padding: 48px 48px !important;
   width: 100% !important;
   box-sizing: border-box !important;
}
.news-inner { max-width: 1440px; margin: 0 auto; }
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.news-tabs { display: flex; gap: 8px; margin: 20px 0 28px; flex-wrap: wrap; }
.news-tab {
  padding: 6px 20px 7px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: var(--bg-gray);
  color: var(--text-light);
  transition: all .2s;
}
.news-tab.active { background: var(--green); color: var(--white); }
.more-link { 
  font-size: 16px; 
  color: var(--text); 
  text-decoration: none; 
  border: 1px solid var(--border);
  padding: 6px 20px 7px;
  border-radius: 20px;
}
.more-link:hover { color: var(--green); border-color: var(--green); }

/* 그리드 레이아웃 */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  width: 100%;
}

/* 왼쪽 큰 뉴스 영역 */
.news-featured { 
  display: flex; 
  flex-direction: column; 
  background-color: #eef7fa;
  overflow: hidden;
  width: 100%;
}
.news-featured-img {
  width: 100%;
  height: 400px; /* 시안 비율에 맞춰 높이 조절 */
  overflow: hidden;
}
.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 이미지 비율 유지하며 채움 */
}
.news-featured-content {
  padding: 36px 24px;
}
.news-featured h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; line-height: 1.5; color: #333; }
.news-featured p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

/* 오른쪽 뉴스 리스트 영역 */
.news-list { display: flex; flex-direction: column; width: 100%; }
.news-item {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 24px;
  align-items: center;
  padding: 20px 0; /* 우측 패딩 제거 (내부 요소 정렬로 해결) */
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .2s;
  width: 100%;
}
.news-item:first-child { padding-top: 0; } /* 첫번째 라인 여백 제거 */
.news-item:hover { opacity: .85; }

.news-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; 
  min-width: 0; 
}
.news-item-content h4 { 
    font-size: 16px; 
    font-weight: 600; 
    line-height: 1.5; 
    margin-bottom: 8px;
    color: #333;
    padding-right: 10px; /* 제목 우측 여백 */
    white-space: normal; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  padding-right: 10px; /* 본문 우측 여백 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-thumb {
  width: 120px; 
  height:85px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 4px;
}
.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 공통: 날짜 및 화살표 정렬 메타 영역 */
.news-meta {
  display: flex;
  justify-content: space-between; /* 날짜는 왼쪽, 버튼은 오른쪽 끝으로 */
  align-items: center;
  margin-top: auto;
  padding-right: 0px;
}

.news-featured .news-meta {
  padding-right: 5px; /* 값을 작게 줄수록 화살표가 오른쪽 끝으로 바짝 이동합니다 */
}

.news-date { font-size: 12px; color: #aaa; font-family: sans-serif; }

/* 동그란 화살표 버튼 스타일 */
.arrow-btn {
  width: 32px; /* 살짝 키워서 잘 보이고 클릭하기 쉽게 */
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ddd; /* 테두리 추가로 경계 명확히 */
  background-color: #fff; /* 배경색 명확히 */
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0; /* 버튼 크기가 줄어들지 않도록 */
}
.news-item:hover .arrow-btn,
.news-featured:hover .arrow-btn {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: #f4f4f4;
  padding: 40px 40px 20px;
}

.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.footer-info { font-size: 16px; color: var(--text); line-height: 2; }
.footer-info strong { color: var(--text); }
.footer-copyright { font-size: 14px; color: #777; margin-top: 8px; word-spacing: 1px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-light); text-decoration: none; }
.footer-links a:hover { color: var(--green); }

/* Family Site 전체 감싸는 기준점 */
.footer-family {
  position: relative;
  display: inline-block;
}

/* ⚡ 기존 소스를 바탕으로 수정한 버튼 스타일 */
.family-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  border: 1px solid var(--border);
  padding: 8px 30px 9px;
  border-radius: 4px;
  white-space: nowrap;
  background: #e2e2e2; /* 시안과 일치하도록 흰색 배경 */
  cursor: pointer;
  font-family: inherit;
}

.family-toggle-btn:hover {
  background: #fff;
  border-color: var(--green);
  color: var(--green);
}

/* 화살표 회전 애니메이션 */
.family-toggle-btn svg {
  transition: transform 0.3s;
}
.footer-family.active .family-toggle-btn svg {
  transform: rotate(180deg); /* 열렸을 때 화살표가 아래를 향하도록 회전 */
}

/* ⚡ 클릭 시 버튼 위로 보일 회사 목록 상자 */
.family-list {
  position: absolute;
  bottom: calc(100% + 6px); /* 버튼 바로 위쪽에 6px 여백 생성 */
  right: 0; 
  left: 0;   /* ⚡ 좌측 끝과 우측 끝을 모두 0으로 묶어 버튼과 넓이를 100% 일치시킵니다 */
  width: 100%; /* ⚡ 버튼 넓이만큼 꽉 차게 설정 */
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  padding: 4px 0; /* 내부 위아래 여백을 살짝 줄여서 콤팩트하게 변경 */
  margin: 0;
  list-style: none;
  display: none; /* 기본 상태는 숨김 */
  z-index: 100;
  box-sizing: border-box; /* 패딩과 테두리가 넓이에 영향을 주지 않도록 제한 */
}
/* 활성화 상태(active)일 때 목록 표시 */
.footer-family.active .family-list {
  display: block;
}

.family-list li {
  /* 버튼 테두리에 사용된 var(--border)보다 조금 더 연한 회색(#eee)으로 구분선을 넣습니다. */
  border-bottom: 1px solid #eee; 
}

/* 2. ★중요: 맨 마지막 회사 밑에는 구분선이 안 나오도록 제거 */
.family-list li:last-child {
  border-bottom: none;
}

/* 회사 목록 내부 링크 스타일 */
.family-list li a {
  display: block;
  padding: 6px 12px; /* 좌우 여백을 버튼 스타일에 맞춰 살짝 조절 */
  font-size: 14px;
  color: #333;
  text-decoration: none;
  text-align: left; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
  transition: background 0.2s, color 0.2s;
}

.family-list li a:hover {
  background: #f4f7f5; /* 마우스 오버 시 연한 녹색 배경 */
  color: var(--green);
}

/* ═══════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 20px; 
  right: 56px; 
  width: 60px; 
  height: 60px;
  background: var(--green);
  color: var(--white);
  border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent; 
  box-shadow: 0 4px 12px rgba(58,125,68,.4);
  transition: background .2s, transform .2s, border-color .2s, color .2s;
  z-index: 100;
}

.back-to-top svg {
  width: 24px; 
  height: 24px;
  stroke-width: 2; 
}

.back-to-top:hover { 
  background: var(--white); 
  border-color: var(--green);  
  color: var(--green); 
  transform: translateY(-2px); 
}

/* ═══════════════════════════════════════════
   HORIZONTAL SCROLL WRAPPER (mobile projects)
═══════════════════════════════════════════ */
.scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-wrapper::-webkit-scrollbar { display: none; }

/* Swipe hint dots */
.swipe-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.swipe-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ccc;
  transition: background .3s;
}
.swipe-dots span.active { background: var(--green); }


/* ═══════════════════════════════════════════
   ████  TABLET — iPad (768px ~ 1024px)  ████
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* 🚨 가로 스크롤 유발하는 근본 원인 차단 */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
  }

  /* 헤더 내부 공간 확보 및 정렬 */
  header {
    padding: 0 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. 데스크톱 메뉴 숨김 */
  .gnb-nav {
    display: none !important;
  }

  /* 오른쪽 영역 레이아웃 정렬 (언어버튼 + 햄버거 동시 배치) */
  .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;         
  }
  .lang-switch{display: none !important;}
    
  /* 1. 햄버거 버튼 활성화 (기존 display: none -> flex로 변경) */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 220;
    position: relative;
  }
  .hamburger span {
    background: #333333 !important; /* 흰색 배경 헤더에 맞춰 검은색 삼선 */
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    transition: all .3s;
  }
  
  /* 2. 태블릿 구간에서도 언어 변경 버튼이 보이도록 노출 설정 */
  .mobile-lang-btn {
    display: flex !important;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
  }

  .mobile-nav { display: flex; }

  /* Hero */
  .hero {
    position: relative !important;
    width: calc(100% - 64px) !important;
    margin: 78px auto 0 !important;
    height: 680px !important;
    min-height: 680px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }
  .hero-slider-wrap {
    width: 100% !important;
    height: 100% !important;
    display: flex !important; /* 슬라이드들이 가로로 정렬될 수 있도록 기반 마련 */
    overflow: visible !important; 
  }

  /* 💡 각각의 개별 슬라이드 카드 영역 구조 유연화 */
  .hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;            /* 평소에는 투명하게 숨김 */
    visibility: hidden !important;
    transition: opacity 0.6s ease, visibility 0.6s ease !important;
    display: block !important;
  }
  .hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;            /* 최상단 레이어로 복귀 */
  }

  /* 배경 이미지 찌그러짐 방지 및 정렬 */
  .hero-slide .hero-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .hero-text-container {
    position: absolute !important;
    left: 64px !important;
    right: 64px !important;
    bottom: 72px !important;
    width: auto !important;
    max-width: 720px !important;
    z-index: 5;
  }
  .hero-title-top {
    font-size: 26px !important;
    white-space: normal !important; 
    word-break: keep-all;
  }

    /* 💡 [여기 추가] iPad 해상도에서만 메뉴가 3분의 1 크기로 우측에서 열리도록 설정 */
  .mobile-nav {
    left: auto;             /* 기존 left: 0 해제 */
    right: 0;               /* 우측 정렬 */
    width: 33.333%;         /* 화면의 1/3 크기 */
    min-width: 340px;       /* 메뉴 내부 요소가 깨지지 않기 위한 최소 너비 */
  }
    
  /* 🚨 [핵심 수정] About 영역 우측 잘림 방지 및 유연화 */
  .about { 
    padding: 48px 24px !important; 
    width: 100% !important; 
    max-width: 100% !important;
    box-sizing: border-box !important; 
  }
  .about-inner {
    display: grid !important;
    grid-template-columns: 1fr !important; /* 텍스트와 이미지를 세로 한 줄로 배치 */
    gap: 32px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .about-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .about-content h2 { 
    font-size: 22px !important; 
    white-space: normal !important;
    word-break: keep-all;
  }
  .about-content p {
    white-space: normal !important;
    word-break: keep-all;
    line-height: 1.6;
  }
   .about-images {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: 180px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 12px !important;
    margin: 0 auto;
  }
  .about-images .img-block {
    width: 100% !important;
  }
  .about-images .img-block img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .about-images .img-block.tall { grid-row: auto !important; }

  /* Projects */
  .projects { 
    padding: 48px 0 0 0 !important; /* 💡 좌우 패딩을 0으로 만들어 회색 배경(--bg-gray)이 화면 끝까지 차게 함 */
    width: 100% !important; 
    box-sizing: border-box !important; 
  }
  .projects-inner { 
    width: 100% !important; 
    max-width: 100% !important; 
    box-sizing: border-box !important; 
  }
  
  /* 💡 회색 배경 영역이 깨지지 않도록 좌우 여백 재조정 */
  .projects-gray-bg {
    width: 100% !important;
    padding: 90px 24px 40px 24px !important; 
    box-sizing: border-box !important;
  }
  
  .filter-tabs { 
    gap: 6px; 
    max-width: 100%; /* 패드 화면 안으로 안정적으로 들어오게 설정 */
  }
  .tab { font-size: 16px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Footer */
  footer { padding: 36px 24px 20px !important; width: 100% !important; box-sizing: border-box !important; }
  .footer-inner { width: 100% !important; max-width: 100% !important; padding: 0 28px; box-sizing: border-box !important; }
  .footer-top { flex-direction: column; gap: 20px; }
  
  /* 탑버튼 미세조정 */
  .back-to-top, .btn-top, a[class*="top"], button[class*="top"] { 
    right: 12px !important;    
    bottom: 20px !important;   
    width: 40px !important;    
    height: 40px !important;   
    border-radius: 8px !important; 
    display: flex !important;  
    align-items: center !important;
    justify-content: center !important;
  }
  .back-to-top svg, .btn-top svg, .back-to-top i, .btn-top i {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
  }
    
  /* news */
  .news-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 24px; 
  }

  /* 2. 왼쪽 메인 카드의 이미지 높이를 살짝 줄여 텍스트 공간 확보 */
  .news-featured-img {
    height: 300px; 
  }

  /* 3. 왼쪽 카드 패딩을 살짝 줄여 여백 답답함 해소 */
  .news-featured-content {
    padding: 20px;
  }

  /* 4. 왼쪽 타이틀 글자 크기 미세 조정 (공간 확보) */
  .news-featured h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .news-featured p {
        font-size: 14px; /* 본문 크기 최적화 */
        line-height: 1.6;
  }
  .news-item-content p {
    font-size: 13.5px;
  } 
  /* 5. 오른쪽 리스트의 썸네일 크기를 줄여서 상대적으로 왼쪽이 더 넓어 보이도록 조정 */
  .news-item {
    grid-template-columns: 2.8fr 1fr;
    gap: 16px;
    padding: 16px 0;
  }

  .news-item-thumb {
    width: 130px;
    height: 85px;
  }

  /* 6. 오른쪽 텍스트에 걸려있던 과도한 우측 패딩 제거 */
  .news-item-content h4,
  .news-item-content p {
    padding-right: 0 !important; 
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════════
   ████  MOBILE (≤ 767px)  ████
═══════════════════════════════════════════ */
@media (max-width: 767px) {
  :root { --header-h: 56px; }
  #intro-overlay { display: none !important; }

  .about-content .btn-discover {
    display: flex;
    width: fit-content;
    margin-left: auto;
  }

  /* Header */
  header {
    padding: 0 16px !important;
    height: var(--header-h) !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
  }
  
  .header-right { display: none !important; }
  
  #hamburger, .header-right #hamburger {
    display: none !important;
  }
  .mobile-nav {
    left: auto;
    right: 0;
    width: 33.333%;
    min-width: 280px;
  }
  /* 3. 모바일 전용 우측 레이어만 깔끔하게 정렬 */
  .mobile-header-right {
    display: flex !important;
    align-items: center;
    gap: 12px !important;
  }
  
  .logo img { height: 42px; }

  /* 🌐 [수정] 모바일 globe 버튼 & 드롭다운 래퍼 스타일 */
  .mobile-lang-wrap {
    position: relative;
    display: inline-block;
  }

  .mobile-lang-btn {
    display: flex !important;
    align-items: center;
    padding: 5px 10px 5px 8px;
    font-size: 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
  }
  .mobile-lang-btn svg { width: 15px; height: 15px; stroke: #333; }
  .mobile-lang-code { font-size: 12px; font-weight: 600; color: #333; margin-left: 4px; }

  /* 💡 지구본 호버 또는 클릭 시 노출될 다국어 팝업 패널 */
  .mobile-lang-dropdown {
    display: none; /* 평소에는 숨김 */
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 250;
    padding: 6px 0;
    min-width: 80px;
    text-align: center;
  }

  .mobile-lang-dropdown a, 
  .mobile-lang-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
  }

  .mobile-lang-dropdown a:hover,
  .mobile-lang-dropdown button:hover {
    background-color: #f5f5f5;
    color: #009223; /* 브랜드 포인트 컬러 */
  }

  /* ★ 핵심: 지구본 영역에 마우스 오버(Hover) 시 th, ch, en 메뉴 표시 */
  .mobile-lang-wrap:hover .mobile-lang-dropdown {
    display: block !important;
  }
    
  .mobile-lang-wrap.is-open .mobile-lang-dropdown {
  display: block !important;
}

  /* 🍔 [보완] 모바일 햄버거 버튼 삼선 스타일 강제 활성화 */
  .hamburger-mobile-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 220;
    position: relative;
  }
  
  .hamburger-mobile-toggle span {
    background: #333333 !important;
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    transition: all .3s;
  }

  /* 햄버거 오픈 상태 애니메이션 (X자 교차 효과) */
  .hamburger-mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger-mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero */
    .hero {
      width: calc(100% - 36px) !important;
      margin: 52px auto 0 !important;
      border-radius: 18px !important;
    }
    .hero,
    .hero-slider-wrap,
    .hero-slide {
      overflow: hidden !important;
    }
    
     .hero-slider-wrap {
      height: 100% !important;
    }
  .hero-slide .hero-bg {
      height: 100% !important;
      width: 100% !important;
      object-fit: cover !important;
}

  .section-title { font-size: 20px; }
  .hero-text-container,
  .about-content,
  .project-info,
  .news-item-content {
    min-width: 0 !important;
}
.hero-text-container {
  left: 20px !important;
  right: 20px !important;
  max-width: calc(100% - 40px) !important;
  overflow: hidden !important;
}

.hero-title-top,
.hero-title-bottom {
  width: 100% !important;
  word-break: keep-all !important;
}
  /* About */
  .about { padding: 36px 0px !important; }
  .about-inner { grid-template-columns: 1fr !important; gap: 24px !important; }
  .about-content h2 { font-size: 18px !important; margin: 14px 0 12px; }
  .about-content p { font-size: 14px !important; margin-bottom: 24px; }
  .btn-green { padding: 9px 22px; font-size: 15px; }

  .about-images {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 120px 120px !important;
    gap: 10px !important;
  }
  .about-images .img-block.tall { grid-row: 1 / 3 !important; }


  /* Projects */
.filter-tabs-wrapper {
  width: 100%;
  position: relative;
  z-index: 20;                  /* 회색 바탕 영역보다 위로 올라오도록 레이어 순서 지정 */
  padding: 0;
  
  /* 🎯 핵심 수정: 아래 회색 바탕에 절반쯤 걸치도록 마이너스 마진 설정 */
  margin-bottom: -40px !important; 
}

/* 2. 녹색 메뉴 바 자체 스타일 (화살표와 탭을 품는 컨테이너) */
.filter-tabs-container {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #519E5A;    /* 기존 녹색 배경색 유지 */
  border-radius: 80px;
  padding: 6px 8px;            /* 양끝 화살표 여백을 위한 부모 패딩 */
  box-sizing: border-box;
  margin: 20px 0 0 0 !important; /* 타이틀과의 상단 간격만 유지 */
}

/* 3. 중앙 탭 메뉴 리스트 (스크롤 박스) */
.filter-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;            /* 넘치는 메뉴는 부드럽게 스크롤 */
  scroll-behavior: smooth;
  scrollbar-width: none;       /* 파이어폭스 스크롤바 숨김 */
  flex: 1;                     /* 좌우 화살표를 제외한 나머지 공간을 꽉 채움 */
  padding: 0 24px !important; 
  margin: 0 !important;
}
.filter-tabs::-webkit-scrollbar { display: none; } /* 크롬/사파리 스크롤바 숨김 */

/* ⭐️ 4. 핵심 수정: 모바일 화면에서 '정확히 3개'만 보이도록 너비 계산 */
.tab { 
  /* 좌우 화살표 공간을 제외하고 정확히 3등분하여 화면에 노출합니다. */
  width: calc(100% / 3) !important; 
  flex-shrink: 0;               /* 메뉴가 5개여도 글자가 찌그러지지 않고 형태 유지 */
  padding: 8px 12px !important;    /* 3등분 박스 안에서 글자가 예쁘게 정렬되도록 좌우 패딩 초기화 */
  color: #ffffff;               /* 글자색 흰색 */
  text-align: center;
  background: none;
  border: none;
  margin: 0 16px;
}

.tab-txt {
    font-size: 13px;
}    
    
/* 5. 개별 화살표 디자인 (좌측/우측 양끝 배치 공통 스타일) */
.filter-arrow {
  display: flex !important;     /* 모바일 표시 활성화 */
  align-items: center;
  justify-content: center;
  background: none !important;  /* 기존 회색/원형 배경 제거 */
  border: none !important;      /* 테두리 제거 */
  width: 30px !important;       /* 터치 영역 및 고정 너비 확보 */
  height: 30px !important;
  padding: 0 !important;
  color: #ffffff !important;    /* 아이콘 색상을 흰색으로 변경 */
  cursor: pointer;
  flex-shrink: 0;               /* 화살표 크기 고정 */
  opacity: 0.8;
}

.filter-arrow:active {
  opacity: 1;                   /* 터치했을 때 피드백 효과 */
}

/* Swiper 슬라이더나 그리드 내부 카드 자체의 여백 초기화 */
.project-grid, 
.swiper-container, 
.swiper-wrapper {
  margin: 0 !important;
  width: 100% !important;
}

.projects-gray-bg {padding: 70px 8px 40px 8px !important;}
.filter-header-row{margin: 0 auto}
.projects-inner {padding: 0 28px;}
    
@media screen and (and-width: 768px), screen and (max-width: 768px) {
  :root { --header-h: 60px;}
  header { height: var(--header-h); padding: 0 16px; }
  .news {padding: 48px 28px 30px !important;}

  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important; /* 카드와 카드 사이의 넉넉한 세로 간격 */
    width: 100% !important;
  }

  /* 좌우 그룹 컨테이너 해제 */
  .news-left, .news-right {
    width: 100% !important;
  }

  /* 하위 리스트 정렬 방향을 세로로 변경 */
  .news-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important; /* 아래쪽 3개 아이템들 간의 간격 */
    width: 100% !important;
  }

  /* ── [핵심 변화] 아래쪽 3개 뉴스 아이템을 상단 메인 카드처럼 강제 변경 ── */
  .news-item {
    display: flex !important;
    flex-direction: column !important; /* ◀ 좌우 정렬을 위아래(세로) 정렬로 전환 */
    width: 100% !important;
    padding: 0 0 24px 0 !important; /* 하단 언더라인과의 간격 */
    border-bottom: 1px solid var(--border) !important;
    gap: 16px !important; /* 이미지와 텍스트 사이 간격 */
  }
  
  .news-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  /* 2. 썸네일 이미지를 맨 위로 올리고 가로폭 100%로 확장 */
  .news-item-thumb {
    width: 100% !important;  /* ◀ 가로로 꽉 차게 확장 */
    height: 200px !important; /* ◀ 상단 메인 카드 비율에 맞춘 넉넉한 높이 */
    order: 1 !important;       /* ◀ 텍스트보다 무조건 위로 올라가도록 순서 지정 */
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  .news-item-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 3. 텍스트 콘텐츠 영역을 이미지 밑으로 배치 */
  .news-item-content {
    width: 100% !important;
    order: 2 !important;       /* ◀ 이미지 아래로 정렬 */
    padding-right: 0 !important;
  }

  /* 4. 상단 메인 카드 스타일 모바일 최적화 */
  .news-featured-img {
    height: 200px !important; /* 아래 아이템들과 크기 통일 */
    border-radius: 6px !important;
  }

  .news-featured-content {
    padding: 16px 0 0 0 !important; /* 불필요한 좌우 여백 제거로 텍스트 라인 일치 */
  }

  /* 5. 타이틀 및 본문 폰트 크기 최적화 (상하단 통일) */
  .news-featured h3,
  .news-item-content h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    padding:0 10px;
    /* 제목 글자가 길어져도 말줄임표(...) 처리되지 않고 자연스럽게 줄바꿈 되도록 해제 */
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* 제목은 최대 2줄까지 표시 */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .news-featured p,
  .news-item-content p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 16px !important;
    padding: 0 10px;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* 본문 요약은 깔끔하게 2줄만 노출 */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* 6. 날짜 및 화살표 버튼 하단 정렬 */
  .news-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: auto !important;
    padding-right: 0 !important;
  }

  .news-date {
    font-size: 12px !important;
    color: #aaa !important;
	padding-left: 10px;
  }
  .news-tabs {
      margin: 0px 0 28px;
  }
  .arrow-btn {
    width: 30px !important;
    height: 30px !important;
	margin:10px;
  }
}
  /* Footer */
  footer { padding: 28px 16px 16px !important; }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-inner{padding: 0 14px;}
  .footer-family {margin-top: 20px;}
}
/* ═══════════════════════════════════════════
     SMALL MOBILE (≤ 390px)  
═══════════════════════════════════════════ */

@media (max-width: 390px) {
    .hero { 
      height: auto; 
      max-width: 100%;
    } 
  .about-content h2 { font-size: 16px; }
  .project-grid { grid-template-columns: repeat(4, 220px); }
  .news-featured-img { height: 150px; }
  .footer-links { gap: 10px; }
  .footer-links a { font-size: 11px; }
}

/* ═══════════════════════════════════════════
     AWARDS HISTORY SECTION (auto slider, white theme)
═══════════════════════════════════════════ */
.awards-history {
  background: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.awards-history-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  text-align: left;
}

.awards-history .awards-label {
  color: #888888;
  opacity: 0.9;
  margin-bottom: 40px;
}

.awards-history .awards-label::after {
  background: #e2e2e2;
}

.awards-history .awards-title {
  color: #68A741;
  margin-bottom: 6px;
}

.awards-slider {
  position: relative;
  margin-bottom: 48px;
}

.awards-arrow {
  position: absolute;
  top: 230px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #dddddd;
  background: transparent;
  color: #999999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .25s ease, color .25s ease;
}

.awards-arrow-prev { left: 0; }
.awards-arrow-next { right: 0; }

@media (hover: hover) {
  .awards-arrow:hover {
    background: #999999;
    color: #ffffff;
  }
}

.awards-arrow:active {
  background: #999999;
  color: #ffffff;
}

.awards-viewport {
  margin: 0 60px;
  overflow: hidden;
  position: relative;
}

.awards-viewport::before,
.awards-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.awards-viewport::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, transparent 100%);
}
.awards-viewport::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, transparent 100%);
}

.awards-track {
  display: flex;
  transition: transform .6s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}

.awards-item {
  flex: 0 0 33.3333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
  box-sizing: border-box;
  position: relative;
}

.awards-item::before {
  content: '';
  position: absolute;
  top: 230px;
  left: -20px;
  right: -20px;
  height: 1px;
  background: #C9A227;
  opacity: 1;
  z-index: 0;
}

.awards-trophy {
  width: auto;
  max-width: 200px;
  height: 180px;
  margin: 0 auto 16px;
  color: var(--green);
  opacity: 1;
  position: relative;
  z-index: 1;
  background: transparent;
  transition: transform .35s ease;
}

.awards-trophy svg { width: 100%; height: 100%; display: block; }
.awards-trophy img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.awards-item:hover .awards-trophy {
  transform: translateY(-6px);
}

.awards-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a67c00;
  margin-top: 30px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.awards-year {
  display: inline-block;
  font-size: 48px;
  font-weight: 700;
  color: #a67c00;
  margin-bottom: 14px;
  text-decoration: none;
}

.awards-desc {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a1a;
  max-width: 280px;
  text-decoration: none;
  transition: color .25s ease;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.awards-desc:hover {
  color: #000000;
}

.awards-more-btn-wrap {
  display: flex;
  justify-content: center;
}

.awards-more-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 42px;
  line-height: 36px;
  gap: 10px;
  padding: 0 16px;
  border: 2px solid var(--green);
  border-radius: 32px;
  color: var(--green);
  font-size: 14px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .3s ease, color .3s ease;
}

.awards-more-btn:hover {
  background: var(--green);
  color: #ffffff;
}

.awards-more-btn .arrow-icon { transition: transform .3s ease; }
.awards-more-btn:hover .arrow-icon { transform: translateX(4px); }

@media (max-width: 900px) {
  .awards-history { padding: 56px 0; overflow: visible; }
  .awards-history-inner { padding: 0 20px; overflow: visible; }
  .awards-slider { overflow: visible; }
  .awards-item { flex: 0 0 100%; padding: 0 8px; text-align: center; }
  .awards-item::before { left: -8px; right: -8px; }
  /* 화살표: viewport 위에 떠 올려서 렌더링 — slider 기준 절대위치 */
  .awards-arrow {
    width: 36px;
    height: 36px;
    z-index: 10;
  }
  .awards-arrow-prev { left: 0; }
  .awards-arrow-next { right: 0; }
  .awards-viewport { margin: 0 44px; overflow: hidden; }
  .awards-desc { max-width: none; width: 100%; }
  .awards-viewport::before,
  .awards-viewport::after { display: none; }
}

@media (max-width: 600px) {
  .awards-desc { max-width: none; width: 100%; }
}
