/* Reset & Base */
*, *::before, *::after {margin: 0; padding: 0; box-sizing: border-box;}
html {scroll-behavior: smooth; font-size: 16px;}
body {font-family: 'Pretendard', sans-serif; font-weight: 400; color: #2d3436; background: #fff; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased;}
a {text-decoration: none; color: inherit;}
ul {list-style: none;}
img {max-width: 100%; display: block;}
button {border: none; background: none; cursor: pointer; font-family: inherit;}

/* CSS Variables */
:root {
  --clr-primary: #0152a5;
  --clr-primary-light: #2a74c0;
  --clr-primary-pale: #e6eff8;
  --clr-accent: #ec070e;
  --clr-accent-light: #fde8e8;
  --clr-secondary: #d1dc0c;
  --clr-secondary-dark: #b0ba0a;
  --clr-dark: #1a2332;
  --clr-text: #3d4f5f;
  --clr-text-light: #6b7f8e;
  --clr-bg-warm: #faf8f5;
  --clr-bg-sage: #eef2f7;
  --clr-border: #d8e0ea;
  --font-display: 'Gowun Batang', serif;
  --font-body: 'Pretendard', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Header / Nav */
.header {position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);}
.header.scrolled {background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); box-shadow: 0 1px 20px rgba(0,0,0,0.06);}
.header-inner {max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; position: relative;}
.logo {display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; transition: color var(--transition); z-index: 10; flex-shrink: 0;}
.header.scrolled .logo {color: var(--clr-dark);}
.logo-text {font-family: var(--font-body); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap;}
.nav-desktop {display: none; position: absolute; left: 50%; transform: translateX(-50%);}
.nav-desktop .gnb-menu {display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;}
.nav-desktop .gnb-menu li {display: block;}

@media (min-width: 900px) {
  .nav-desktop {display: block;}
}

.nav-desktop a {padding: 8px 14px; font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.85); border-radius: 8px; transition: all var(--transition); position: relative; white-space: nowrap; display: inline-block;}
.header.scrolled .nav-desktop a {color: var(--clr-text);}
.nav-desktop a:hover {background: rgba(255,255,255,0.15); color: #fff;}
.header.scrolled .nav-desktop a:hover {background: var(--clr-primary-pale); color: var(--clr-primary);}
.nav-desktop a.on {color: #fff; background: rgba(255,255,255,0.15); font-weight: 700;}
.header.scrolled .nav-desktop a.on {color: var(--clr-primary); background: var(--clr-primary-pale); font-weight: 700;}

/* Header Right — profile + hamburger 묶음 */
.header-right {display: flex; align-items: center; gap: 4px; margin-left: auto; z-index: 1200;}

/* Profile (Login / My Page) — auth.js 가 로그인 상태에 따라 토글 */
.profile {display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: none; border: none; cursor: pointer; color: #fff; border-radius: 50%; transition: background var(--transition), color var(--transition);}
.profile:hover {background: rgba(255,255,255,0.15);}
.header.scrolled .profile {color: var(--clr-dark);}
.header.scrolled .profile:hover {background: var(--clr-primary-pale); color: var(--clr-primary);}

/* Menu Toggle */
.hamburger {display: flex; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer;}
.hamburger span {width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition);}
.header.scrolled .hamburger span {background: var(--clr-dark);}
.hamburger.active span {background: #fff !important;}
.hamburger.active span:nth-child(1) {transform: rotate(45deg) translate(5px, 5px);}
.hamburger.active span:nth-child(2) {opacity: 0;}
.hamburger.active span:nth-child(3) {transform: rotate(-45deg) translate(5px, -5px);}
.mobile-nav {position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #0152a5; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 1100; overflow-y: auto;}
.mobile-nav.open {opacity: 1; pointer-events: auto;}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

.mobile-nav-close svg {width: 24px; height: 24px; stroke: #fff; stroke-width: 2;}
.mobile-nav-hero {background: #0152a5; padding: 25px 28px 40px; flex-shrink: 0;}
.mobile-nav-hero-title {font-family: var(--font-body); font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 12px;}
.mobile-nav-hero-sub {font-size: 1.05rem; font-weight: 400; color: rgba(255,255,255,0.7); letter-spacing: 0.02em;}
.mobile-nav-links {display: flex; flex-direction: column; padding: 12px 0; flex: 1;}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mobile-nav-links a:first-child {border-top: 1px solid rgba(255,255,255,0.12);}
.mobile-nav-links a:hover,
.mobile-nav-links a:active {color: #fff; background: rgba(255,255,255,0.05);}
.mobile-nav-links a::after {content: '→'; font-size: 1.1rem; color: rgba(255,255,255,0.3); transition: all 0.25s ease;}
.mobile-nav-links a:hover::after {color: rgba(255,255,255,0.7); transform: translateX(4px);}
.mobile-nav-footer {padding: 20px 28px 32px; flex-shrink: 0;}
.mobile-nav-footer span {font-size: 0.85rem; color: rgba(255,255,255,0.35);}

/* Hero */
.hero {position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden;}
.hero-bg {position: absolute; inset: 0; z-index: 0;}
.hero-bg::before {content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(1,82,165,0.4) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(1,82,165,0.25) 0%, transparent 50%), radial-gradient(ellipse at 50% 80%, rgba(26,35,50,0.5) 0%, transparent 60%); z-index: 1;}
.hero-bg-pattern {position: absolute; inset: 0; background: url('/public/images/hero-main.jpg') center center / cover no-repeat; z-index: 0; animation: heroZoom 20s ease-out forwards;}

@keyframes heroZoom {
  0% {transform: scale(1.15);}
  100% {transform: scale(1);}
}

.hero-bg-pattern::after {content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(1,40,82,0.65) 0%, rgba(1,60,120,0.5) 50%, rgba(1,45,90,0.65) 100%);}
.hero-shape {position: absolute; border-radius: 50%; opacity: 0.08; filter: blur(60px); animation: float 20s ease-in-out infinite;}
.hero-shape--1 {width: 500px; height: 500px; background: #2a74c0; top: -10%; right: -5%; animation-delay: 0s;}
.hero-shape--2 {width: 350px; height: 350px; background: #4fc3a1; bottom: 10%; left: -5%; animation-delay: -7s;}
.hero-shape--3 {width: 250px; height: 250px; background: #fff; top: 40%; left: 30%; animation-delay: -14s;}

@keyframes float {
  0%, 100% {transform: translate(0, 0) scale(1);}
  33% {transform: translate(30px, -20px) scale(1.05);}
  66% {transform: translate(-20px, 15px) scale(0.95);}
}

.hero-particles {position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;}
.hero-particle {position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,0.6); border-radius: 50%; animation: sparkle linear infinite;}
.hero-particle:nth-child(1) {left: 10%; top: 20%; width: 3px; height: 3px; animation-duration: 4s; animation-delay: 0s;}
.hero-particle:nth-child(2) {left: 25%; top: 60%; width: 2px; height: 2px; animation-duration: 5s; animation-delay: -1s;}
.hero-particle:nth-child(3) {left: 45%; top: 15%; width: 4px; height: 4px; animation-duration: 6s; animation-delay: -2s;}
.hero-particle:nth-child(4) {left: 60%; top: 70%; width: 3px; height: 3px; animation-duration: 4.5s; animation-delay: -0.5s;}
.hero-particle:nth-child(5) {left: 80%; top: 30%; width: 2px; height: 2px; animation-duration: 5.5s; animation-delay: -3s;}
.hero-particle:nth-child(6) {left: 15%; top: 80%; width: 3px; height: 3px; animation-duration: 7s; animation-delay: -1.5s;}
.hero-particle:nth-child(7) {left: 70%; top: 50%; width: 4px; height: 4px; animation-duration: 4s; animation-delay: -2.5s;}
.hero-particle:nth-child(8) {left: 90%; top: 15%; width: 2px; height: 2px; animation-duration: 6s; animation-delay: -4s;}
.hero-particle:nth-child(9) {left: 35%; top: 40%; width: 3px; height: 3px; animation-duration: 5s; animation-delay: -1s;}
.hero-particle:nth-child(10) {left: 55%; top: 85%; width: 2px; height: 2px; animation-duration: 4.5s; animation-delay: -3.5s;}
.hero-particle:nth-child(11) {left: 5%; top: 45%; width: 2px; height: 2px; animation-duration: 6.5s; animation-delay: -0.8s;}
.hero-particle:nth-child(12) {left: 85%; top: 65%; width: 3px; height: 3px; animation-duration: 5s; animation-delay: -2.2s;}

@keyframes sparkle {
  0% {opacity: 0; transform: translateY(0) scale(0);}
  20% {opacity: 1; transform: translateY(-20px) scale(1);}
  50% {opacity: 0.6; transform: translateY(-50px) scale(0.8);}
  80% {opacity: 0.3; transform: translateY(-80px) scale(0.5);}
  100% {opacity: 0; transform: translateY(-120px) scale(0);}
}

.hero-content {position: relative; z-index: 2; text-align: center; padding: 100px 24px 60px; max-width: 800px;}
.hero-content .hero-badge,
.hero-content .hero-title,
.hero-content .hero-sub,
.hero-content .hero-links {opacity: 0; transform: translateY(30px); animation: heroFadeUp 0.8s ease-out forwards;}
.hero-content .hero-badge {animation-delay: 0.3s;}
.hero-content .hero-title {animation-delay: 0.6s;}
.hero-content .hero-sub {animation-delay: 0.9s;}
.hero-content .hero-links {animation-delay: 1.2s;}

@keyframes heroFadeUp {
  to {opacity: 1; transform: translateY(0);}
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {width: 8px; height: 8px; background: var(--clr-secondary); border-radius: 50%; animation: pulse 2s ease-in-out infinite;}

@keyframes pulse {
  0%, 100% {opacity: 1; transform: scale(1);}
  50% {opacity: 0.5; transform: scale(1.3);}
}

.hero-title {font-family: var(--font-body); font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; color: #fff; line-height: 1.35; margin-bottom: 20px; letter-spacing: -0.02em;}
.hero-title em {font-style: normal; color: var(--clr-secondary);}
.hero-sub {font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: 300; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 48px;}
.hero-links {display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;}
.hero-link {display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 100px; font-size: 0.95rem; font-weight: 600; transition: all var(--transition); position: relative; overflow: hidden;}
.hero-link--primary {background: #fff; color: var(--clr-primary);}
.hero-link--primary:hover {background: var(--clr-secondary); color: var(--clr-dark); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(209,220,12,0.3);}
.hero-link--outline {border: 1.5px solid rgba(255,255,255,0.3); color: #fff;}
.hero-link--outline:hover {border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); transform: translateY(-2px);}
.hero-link svg {width: 18px; height: 18px; transition: transform var(--transition);}
.hero-link:hover svg {transform: translateX(3px);}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: scrollLine 2s ease-in-out infinite;}

@keyframes scrollLine {
  0% {transform: scaleY(0); transform-origin: top;}
  50% {transform: scaleY(1); transform-origin: top;}
  51% {transform: scaleY(1); transform-origin: bottom;}
  100% {transform: scaleY(0); transform-origin: bottom;}
}

/* Section Common */
.section {padding: 100px 24px;}

@media (min-width: 768px) {
  .section {padding: 140px 24px;}
}

.section-inner {max-width: 1080px; margin: 0 auto;}
.section-label {display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--clr-primary); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;}
.section-label::before {content: ''; width: 20px; height: 2px; background: var(--clr-primary); border-radius: 1px;}
.section-title {font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--clr-dark); line-height: 1.4; margin-bottom: 20px; letter-spacing: -0.02em;}
.section-desc {font-size: 1.05rem; color: var(--clr-text-light); line-height: 1.8; max-width: 600px;}

/* Reveal Animation */
.reveal {opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);}
.reveal.visible {opacity: 1; transform: translateY(0);}
.reveal-delay-1 {transition-delay: 0.1s;}
.reveal-delay-2 {transition-delay: 0.2s;}
.reveal-delay-3 {transition-delay: 0.3s;}
.reveal-delay-4 {transition-delay: 0.4s;}
.reveal-delay-5 {transition-delay: 0.5s;}

/* About Section */
.about {background: var(--clr-bg-sage);}
.about-header {text-align: center; margin-bottom: 64px;}
.about-header .section-desc {margin: 0 auto;}

/* About Tabs */
.about-tabs {display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap;}
.about-tab {padding: 10px 28px; border-radius: 50px; font-size: 0.92rem; font-weight: 600; color: var(--clr-text); border: 1.5px solid var(--clr-border); background: #fff; transition: all var(--transition);}
.about-tab:hover {border-color: var(--clr-primary-light); color: var(--clr-primary);}
.about-tab.active {background: var(--clr-primary); color: #fff; border-color: var(--clr-primary);}
.about-panel {display: none;}
.about-panel.active {display: block;}
.about-greeting {display: grid; grid-template-columns: 1fr; gap: 48px;}

@media (min-width: 768px) {
  .about-greeting {
    grid-template-columns: 35% 1fr;
    gap: 64px;
    align-items: center;
  }
}

.about-visual {position: relative;}
.about-visual-card {background: linear-gradient(145deg, var(--clr-primary), #0d5a42); border-radius: var(--radius-lg); padding: 48px 20px; color: #fff; position: relative; overflow: hidden;}
.about-visual-card::before {content: ''; position: absolute; top: -30%; right: -20%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%); border-radius: 50%;}
.about-visual-icon {width: 72px; height: 72px; margin-bottom: 24px; opacity: 0.9;}
.about-president {position: absolute; top: 50%; right: 36px; transform: translateY(-50%); width: 120px; height: auto; border-radius: var(--radius-lg); opacity: 0.85;}
.about-president-name {display: block; margin-top: 8px; margin-left: 40px; font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 500;}
.about-visual-card h3 {font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; margin-left: 25px;}
.about-visual-card p {font-size: 0.95rem; line-height: 1.8; opacity: 0.85;}
.about-visual-tag {display: inline-block; margin-top: 16px; background: rgba(255,255,255,0.15); color: #fff; font-size: 0.82rem; font-weight: 600; padding: 8px 18px; border-radius: 100px;}
.about-text h3 {font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--clr-dark); margin-bottom: 20px; line-height: 1.5;}
.about-text p {font-size: 0.98rem; color: var(--clr-text); line-height: 1.9; margin-bottom: 16px;}
.about-text p:last-child {margin-bottom: 0;}
.about-text p strong {color: var(--clr-primary); font-weight: 600;}
.business {background: #fff;}

/* Business Items (in About section) */
.about-business {background: #fff; border-radius: var(--radius-lg); padding: 48px 36px; box-shadow: var(--shadow-sm); border: 1px solid var(--clr-border);}
.about-business h3 {font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--clr-dark); margin-bottom: 32px; text-align: center;}
.business-grid {display: grid; grid-template-columns: 1fr; gap: 16px;}

@media (min-width: 600px) {
  .business-grid {grid-template-columns: 1fr 1fr;}
}

.business-item {display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--clr-bg-sage); transition: all var(--transition);}
.business-item:hover {background: var(--clr-primary-pale); transform: translateX(4px);}
.business-num {flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--clr-primary); color: #fff; font-size: 0.78rem; font-weight: 700; border-radius: 8px;}
.business-item p {font-size: 0.9rem; color: var(--clr-text); line-height: 1.6; padding-top: 4px;}

/* Org Chart Section */
.orgchart {background: var(--clr-bg-sage);}
.orgchart-header {text-align: center; margin-bottom: 64px;}
.orgchart-header .section-desc {margin: 0 auto;}

/* Tree Structure */
.org-tree {display: flex; flex-direction: column; align-items: center; gap: 0;}
.org-node {text-align: center; position: relative;}
.org-node-card {display: inline-block; padding: 20px 40px; border-radius: var(--radius); font-weight: 600; transition: all var(--transition);}
.org-node-card:hover {transform: translateY(-3px); box-shadow: var(--shadow-md);}
.org-node--ceo .org-node-card {background: linear-gradient(135deg, var(--clr-primary), #0d5a42); color: #fff; font-size: 1.1rem; padding: 22px 48px;}
.org-node--ceo .org-node-role {font-size: 0.78rem; opacity: 0.8; font-weight: 400; display: block; margin-top: 4px;}

/* Connector Lines */
.org-connector {width: 2px; height: 40px; background: var(--clr-border); margin: 0 auto;}
.org-connector-h {display: none;}

@media (min-width: 768px) {
  .org-connector-h {
    display: block;
    height: 2px;
    background: var(--clr-border);
    margin: 0 auto;
    position: relative;
  }
}

.org-branches {display: grid; grid-template-columns: 1fr; gap: 24px; width: 100%; max-width: 900px;}

@media (min-width: 768px) {
  .org-branches {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.org-branch-card {background: var(--clr-bg-sage); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: 32px 28px; transition: all var(--transition);}
.org-branch-card:hover {border-color: var(--clr-primary-light); box-shadow: var(--shadow-sm);}
.org-branch-title {font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--clr-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px;}
.org-branch-title svg {width: 20px; height: 20px; color: var(--clr-primary); flex-shrink: 0;}
.org-member {display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; margin-bottom: 6px; transition: background var(--transition);}
.org-member:hover {background: rgba(255,255,255,0.7);}
.org-member-avatar {width: 36px; height: 36px; border-radius: 50%; background: var(--clr-primary-pale); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--clr-primary); flex-shrink: 0;}
.org-member-info {flex: 1;}
.org-member-name {font-size: 0.92rem; font-weight: 600; color: var(--clr-dark);}
.org-member-role {font-size: 0.78rem; color: var(--clr-text-light);}
.org-advisor-note {text-align: center; margin-top: 32px; padding: 20px; background: var(--clr-bg-warm); border-radius: var(--radius); font-size: 0.9rem; color: var(--clr-text-light);}

/* Press / News Section */
.press {background: var(--clr-bg-sage);}
.press-header {text-align: center; margin-bottom: 64px;}
.press-header .section-desc {margin: 0 auto;}

/* Tab Navigation */
.press-thumbs {display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px;}
.press-thumbs img {width: 100%; height: 150px; border-radius: 8px; object-fit: cover; object-position: top; cursor: pointer; transition: opacity .2s;}
.press-thumbs img:hover {opacity: .85;}
@media (max-width: 768px) {.press-thumbs {grid-template-columns: repeat(2, 1fr); gap: 10px;}}
.press-tabs {display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px;}
.press-tab {padding: 10px 24px; border-radius: 100px; font-size: 0.88rem; font-weight: 600; color: var(--clr-text-light); border: 1.5px solid var(--clr-border); background: #fff; transition: all var(--transition);}
.press-tab:hover {border-color: var(--clr-primary-light); color: var(--clr-primary);}
.press-tab.active {background: var(--clr-primary); color: #fff; border-color: var(--clr-primary);}
.press-panel {display: none;}
.press-panel.active {display: block;}
.press-table {width: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--clr-border);}
.press-table table {width: 100%; border-collapse: collapse;}
.press-table th {padding: 16px 20px; font-size: 0.82rem; font-weight: 600; color: var(--clr-text-light); text-align: center; background: var(--clr-bg-sage); border-bottom: 2px solid var(--clr-border); text-transform: uppercase; letter-spacing: 0.05em;}
.press-table td {padding: 14px 20px; font-size: 0.9rem; color: var(--clr-text); border-bottom: 1px solid #f0f3f2; vertical-align: top;}
.press-table tr:last-child td {border-bottom: none;}
.press-table tr {transition: background var(--transition);}
.press-table tbody tr:hover {background: var(--clr-primary-pale);}
.press-table .td-source,
.press-table th:nth-child(1) {width: 15%; font-weight: 600; color: var(--clr-dark); white-space: nowrap; text-align: center;}
.press-table .td-date,
.press-table th:nth-child(2) {width: 20%; color: var(--clr-text-light); font-size: 0.85rem; white-space: nowrap; text-align: center;}
.press-table .td-title,
.press-table th:nth-child(3) {width: 65%; color: var(--clr-dark); font-weight: 500;}

/* Responsive Table */
@media (max-width: 600px) {
  .press-table .td-date,
  .press-table th:nth-child(2),
  .press-table td:nth-child(2) {display: none;}
}

/* Projects / Business History Section */
.projects {background: #fff; position: relative;}
.projects::before {content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--clr-border), transparent);}
.projects-header {text-align: center; margin-bottom: 64px;}
.projects-header .section-desc {margin: 0 auto;}

/* History Tabs */
.history-tabs {display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap;}
.history-tab {padding: 10px 28px; border-radius: 50px; font-size: 0.92rem; font-weight: 600; color: var(--clr-text); border: 1.5px solid var(--clr-border); background: #fff; transition: all var(--transition);}
.history-tab:hover {border-color: var(--clr-primary-light); color: var(--clr-primary);}
.history-tab.active {background: var(--clr-primary); color: #fff; border-color: var(--clr-primary);}
.history-panel {display: none;}
.history-panel.active {display: block;}

/* History Photo Grid */
.history-photo-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; max-width: 800px; margin: 0 auto;}
.history-photo-card {background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition);}
.history-photo-card:hover {border-color: var(--clr-primary-light); box-shadow: var(--shadow-md); transform: translateY(-4px);}
.history-photo-card img {width: 100%; height: 200px; object-fit: cover;}
.history-photo-card .photo-caption {padding: 16px;}
.history-photo-card .photo-caption h4 {font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--clr-dark); margin-bottom: 4px;}
.history-photo-card .photo-caption p {font-size: 0.82rem; color: var(--clr-text-light); line-height: 1.6;}

/* History Photo Modal */
.photo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.photo-modal-overlay.active {opacity: 1; pointer-events: auto;}
.photo-modal {position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; transform: scale(0.95); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);}
.photo-modal-overlay.active .photo-modal {transform: scale(1);}
.photo-modal img {max-width: 100%; max-height: 75vh; border-radius: var(--radius); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5);}
.photo-modal-caption {margin-top: 16px; text-align: center; color: #fff;}
.photo-modal-caption h4 {font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px;}
.photo-modal-caption p {font-size: 0.88rem; opacity: 0.7;}
.photo-modal-caption .photo-modal-counter {font-size: 0.78rem; opacity: 0.5; margin-top: 6px;}

.photo-modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 3001;
}

.photo-modal-close:hover {background: rgba(255,255,255,0.3);}
.photo-modal-close svg {width: 22px; height: 22px;}

.photo-modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 3001;
}

.photo-modal-nav:hover {background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.1);}
.photo-modal-nav svg {width: 24px; height: 24px;}
.photo-modal-prev {left: 20px;}
.photo-modal-next {right: 20px;}

@media (max-width: 600px) {
  .photo-modal-nav {width: 40px; height: 40px;}
  .photo-modal-prev {left: 10px;}
  .photo-modal-next {right: 10px;}
  .photo-modal-close {top: 12px; right: 12px; width: 38px; height: 38px;}
}

/* Timeline */
.timeline {position: relative; max-width: 800px; margin: 0 auto;}
.timeline::before {content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--clr-primary-pale), var(--clr-primary), var(--clr-primary-pale));}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-1px);
  }
}

.timeline-item {position: relative; padding-left: 56px; padding-bottom: 40px;}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 48px;
  }
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 48px;
    padding-right: 0;
  }
}

.timeline-dot {position: absolute; left: 12px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--clr-primary); z-index: 1; transition: all var(--transition);}
.timeline-item:hover .timeline-dot {background: var(--clr-primary); box-shadow: 0 0 0 6px var(--clr-primary-pale);}

@media (min-width: 768px) {
  .timeline-dot {
    left: auto;
    right: -9px;
  }
  .timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
    right: auto;
  }
}

.timeline-card {background: linear-gradient(135deg, #ffffff 0%, #e6eff8 50%, #d0e0f2 100%); border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 24px; transition: all var(--transition);}
.timeline-card:hover {background: linear-gradient(135deg, #ffffff 0%, #d0e0f2 40%, #b8d4ed 100%); border-color: var(--clr-primary-light); box-shadow: var(--shadow-sm); transform: translateY(-2px);}
.timeline-date {display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--clr-primary); background: var(--clr-primary-pale); padding: 4px 12px; border-radius: 6px; margin-bottom: 12px;}
.timeline-card h4 {font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--clr-dark); margin-bottom: 8px; line-height: 1.5;}
.timeline-card p {font-size: 0.88rem; color: var(--clr-text-light); line-height: 1.7;}

.timeline-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary);
  border: 1px solid var(--clr-primary-pale);
}

.timeline-stat svg {width: 14px; height: 14px;}

/* Newsletter (간의등불) Section */
.newsletter {background: var(--clr-bg-sage); position: relative;}
.newsletter::before {content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--clr-border), transparent);}
.newsletter-header {text-align: center; margin-bottom: 48px;}
.newsletter-header .section-desc {margin: 0 auto;}
.newsletter-count {display: inline-block; margin-top: 12px; background: var(--clr-primary-pale); color: var(--clr-primary); font-size: 0.85rem; font-weight: 600; padding: 6px 18px; border-radius: 50px;}

/* Card Grid */
.newsletter-grid {display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1000px; margin: 0 auto;}

@media (max-width: 900px) {
  .newsletter-grid {grid-template-columns: repeat(3, 1fr);}
}

@media (max-width: 640px) {
  .newsletter-grid {grid-template-columns: repeat(2, 1fr);}
}

@media (max-width: 400px) {
  .newsletter-grid {grid-template-columns: 1fr;}
}

.newsletter-card {display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1.5px solid var(--clr-border); border-radius: var(--radius); cursor: pointer; transition: all var(--transition);}
.newsletter-card:hover {border-color: var(--clr-primary-light); box-shadow: var(--shadow-sm); transform: translateY(-2px);}

.newsletter-card-num {
  flex-shrink: 0;
  min-width: 38px;
  height: 38px;
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
}

.newsletter-card-title {flex: 1; font-size: 0.9rem; font-weight: 600; color: var(--clr-dark); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}

/* Pagination */
.newsletter-pagination {display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 40px;}

.newsletter-page-btn {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text);
  background: #fff;
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}

.newsletter-page-btn:hover {border-color: var(--clr-primary-light); color: var(--clr-primary);}
.newsletter-page-btn.active {background: var(--clr-primary); color: #fff; border-color: var(--clr-primary);}
.newsletter-page-btn.disabled {opacity: 0.4; pointer-events: none;}
.newsletter-page-btn svg {width: 16px; height: 16px;}
.newsletter-page-ellipsis {min-width: 30px; text-align: center; font-size: 0.88rem; color: var(--clr-text-light);}

/* Newsletter Modal */
.nl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,35,50,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nl-modal-overlay.open {opacity: 1; pointer-events: auto;}
.nl-modal {background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 640px; max-height: 85vh; overflow-y: auto; transform: translateY(20px) scale(0.97); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-lg);}
.nl-modal-overlay.open .nl-modal {transform: translateY(0) scale(1);}

.nl-modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
}

.nl-modal-header-info h3 {font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--clr-dark); line-height: 1.5; margin-bottom: 8px;}
.nl-modal-close {width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background var(--transition); color: var(--clr-text-light); flex-shrink: 0;}
.nl-modal-close:hover {background: #f5f5f5;}
.nl-modal-close svg {width: 20px; height: 20px;}
.nl-modal-body {padding: 28px 32px 32px; font-size: 0.95rem; color: var(--clr-text); line-height: 1.9; word-break: break-word;}
.nl-modal-body p {margin-bottom: 14px;}
.nl-modal-body img {max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0;}
.nl-modal-body table {max-width: 100%; overflow-x: auto; display: block;}
.nl-modal-body td, .nl-modal-body th {word-break: break-word;}
.nl-modal-num {display: inline-block; background: var(--clr-primary-pale); color: var(--clr-primary); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;}

@media (max-width: 600px) {
  .nl-modal {border-radius: 12px; max-height: 90vh;}
  .nl-modal-header {padding: 20px 20px 16px;}
  .nl-modal-body {padding: 20px;}
}

/* Back To Top */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(1,82,165,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
}

.back-to-top.visible {opacity: 1; visibility: visible; transform: translateY(0);}
.back-to-top:hover {background: #013d7a; box-shadow: 0 6px 20px rgba(1,82,165,0.4);}
.back-to-top svg {width: 22px; height: 22px;}

/* Notice Section */
.notice {background: #fff;}
.notice-header {text-align: center; margin-bottom: 48px;}
.notice-header .section-desc {margin: 0 auto;}
.notice-list {display: flex; flex-direction: column; gap: 0;}
.notice-item {display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--clr-border); transition: all var(--transition);}
.notice-item:first-child {border-top: 2px solid var(--clr-dark);}
.notice-item:hover {padding-left: 8px;}

.notice-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  white-space: nowrap;
}

.notice-badge--important {background: #fde8e8; color: #d35400;}
.notice-title {flex: 1; font-size: 0.95rem; font-weight: 500; color: var(--clr-dark); line-height: 1.5;}
.notice-date {flex-shrink: 0; font-size: 0.8rem; color: var(--clr-text-light); white-space: nowrap;}

@media (max-width: 600px) {
  .notice-item {flex-wrap: wrap; gap: 8px;}
  .notice-date {display: none;}
}

/* Notice Modal */
.notice-modal-overlay {display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; padding: 24px;}
.notice-modal-overlay.active {display: flex;}
.notice-modal {background: #fff; border-radius: var(--radius-lg); max-width: 640px; width: 100%; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: modalSlideUp 0.3s ease;}

@keyframes modalSlideUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

.notice-modal-header {display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 0;}
.notice-modal-header h3 {font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; color: var(--clr-dark); line-height: 1.4; flex: 1;}

.notice-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.notice-modal-close:hover {background: #eee;}
.notice-modal-close svg {width: 16px; height: 16px; stroke: #666;}
.notice-modal-meta {display: flex; align-items: center; gap: 10px; padding: 12px 28px 0;}
.notice-modal-body {padding: 20px 28px 28px; font-size: 0.95rem; line-height: 1.8; color: var(--clr-text);}
.notice-modal-body p {margin-bottom: 12px;}
.notice-modal-body p:last-child {margin-bottom: 0;}

/* Footer */
.footer {background: var(--clr-dark); color: rgba(255,255,255,0.5); padding: 56px 24px 36px;}
.footer-inner {max-width: 1080px; margin: 0 auto;}
.footer-top {display: flex; flex-direction: column; gap: 32px; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08);}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.8);}
.footer-brand .footer-logo-text {font-family: var(--font-body); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em;}
.footer-mohw-logo {height: 32px; opacity: 0.8;}
.footer-links {display: flex; flex-wrap: wrap; gap: 16px;}
.footer-links a {font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color var(--transition);}
.footer-links a:hover {color: rgba(255,255,255,0.9);}
.footer-info p {font-size: 0.82rem; line-height: 1.8;}
.footer-mohw {display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1);}
.footer-mohw img {height: 36px; opacity: 0.7;}
.footer-mohw span {font-size: 0.75rem; color: rgba(255,255,255,0.45); line-height: 1.5;}
.footer-copyright {margin-top: 4px; opacity: 0.7;}
.dibud-badge {display: inline-flex; flex-direction: column; text-decoration: none; font-family: 'Pretendard', sans-serif; line-height: 1.1; align-self: flex-end; opacity: .3; transition: opacity 0.2s;}
.dibud-badge:hover {opacity: .6;}
.dibud-powered,
.dibud-by {font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: 1px;}
.dibud-name {font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: 2px; margin-top: 2px;}
@media (max-width: 899px) {
  .dibud-badge {flex-direction: row; gap: 6px; align-items: baseline; align-self: stretch; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.15);}
  .dibud-powered, .dibud-by, .dibud-name {font-size: .85rem; font-weight: 700; letter-spacing: 1px; margin-top: 0;}
}
.footer-bottom {display: flex; flex-direction: column; gap: 12px; font-size: 0.8rem;}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* Responsive Extras */
.hide-mobile {display: none;}
@media (min-width: 768px) { .hide-mobile { display: inline; } }

@media (max-width: 480px) {
  .hero-link {padding: 14px 24px; font-size: 0.9rem;}
  .about-visual-card {padding: 36px 20px;}
  .org-branch-card {padding: 24px 20px;}
}

/* Floating Nav */
.side-nav {position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; padding: 0 0 0 12px; border-left: 2px solid #e0e0e0; opacity: 0; pointer-events: none; transition: opacity 0.3s;}
.side-nav.is-visible {opacity: 1; pointer-events: auto;}
.side-nav a {display: block; padding: 7px 0; font-size: 0.95rem; color: #999; white-space: nowrap; transition: color 0.2s; position: relative;}
.side-nav a:hover {color: var(--primary);}
.side-nav a::before {content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid #ccc; background: #fff; transition: all 0.2s;}
.side-nav a.is-current {color: var(--primary); font-weight: 700;}
.side-nav a.is-current::before {border-color: var(--primary); background: var(--primary);}
@media (max-width: 899px) {.side-nav {display: none !important;}}
