@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  /* Brand Colors */
  --color-primary-blue: #005bac;    /* 핵심 수소 블루 */
  --color-secondary-blue: #0087db;  /* 스카이 블루 */
  --color-accent-green: #7cb342;    /* 에코 리프 그린 */
  --color-deep-navy: #082545;       /* 깊은 네이비 블루 */
  
  /* Neutral Backgrounds */
  --color-bg-light: #f7f9fc;        /* 소프트 그레이 */
  --color-bg-white: #ffffff;        /* 백그라운드 */
  --color-bg-glass: rgba(255, 255, 255, 0.75); /* 글라스모피즘 */
  --color-border-light: rgba(0, 91, 172, 0.12); /* 보더 라인 */
  --color-glass-border: rgba(255, 255, 255, 0.4);
  
  /* Typography Colors */
  --color-text-dark: #0f172a;       /* Slate 900 */
  --color-text-muted: #475569;      /* Slate 600 */
  --color-text-light: #f8fafc;      /* Slate 50 */
  
  /* Structural Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-subtle: 0 4px 20px -2px rgba(0, 91, 172, 0.06);
  --shadow-hover: 0 10px 30px -4px rgba(0, 91, 172, 0.12);
  --shadow-premium: 0 20px 40px -15px rgba(8, 37, 69, 0.15);
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.625;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-deep-navy);
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-blue), var(--color-accent-green));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: -2.5rem;
  margin-bottom: 4rem;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border-light);
}

/* Round Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.round-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.round-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 91, 172, 0.25);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-deep-navy);
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
}

.logo-subtext {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-text-dark);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-blue);
  transition: var(--transition-smooth);
}

nav a:hover, nav a.active {
  color: var(--color-primary-blue);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary-blue), var(--color-secondary-blue));
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 91, 172, 0.2);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 91, 172, 0.3);
  filter: brightness(1.05);
}

.mobile-cta {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-deep-navy);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Main Layout Structure */
main {
  margin-top: 80px;
  min-height: calc(100vh - 400px);
}

section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer styling */
footer {
  background-color: var(--color-deep-navy);
  color: var(--color-text-light);
  padding: 3rem 2rem 1.5rem;
  border-top: 5px solid var(--color-accent-green);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 1.5rem;
}

.footer-info h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-info p {
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.family-sites {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  outline: none;
  width: 240px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.family-sites:hover {
  background: rgba(255, 255, 255, 0.15);
}

.family-sites option {
  background-color: var(--color-deep-navy);
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.5);
}

/* Banner / Hero Section */
.hero-banner {
  background: linear-gradient(135deg, var(--color-deep-navy) 0%, var(--color-primary-blue) 50%, #5a8f27 100%);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(124, 179, 66, 0.25), transparent);
  pointer-events: none;
}
.main-hero::before {
  display: none !important;
}

.hero-banner h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-banner p {
  font-size: 1.25rem;
  color: rgba(248, 250, 252, 0.85);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
}

/* Components: Numbered Badge */
.numbered-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 91, 172, 0.08);
  border-radius: 50%;
  color: var(--color-primary-blue);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border-light);
}

.round-card:hover .numbered-badge {
  background: var(--color-primary-blue);
  color: white;
  border-color: var(--color-primary-blue);
  transition: var(--transition-smooth);
}

/* Value Statement Section (Deep Blue Banner style) */
.value-section {
  background-color: var(--color-deep-navy);
  color: white;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.value-section .section-title {
  color: white;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.value-card h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.value-card p {
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.95rem;
}

.value-icon {
  margin-bottom: 1.5rem;
}

.value-icon-svg {
  width: 42px;
  height: 42px;
  color: var(--color-accent-green);
  transition: var(--transition-smooth);
}

.value-card:hover .value-icon-svg {
  color: white;
  transform: scale(1.1);
}

/* Table Design for bylaws, history, etc */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border-light);
}

.info-table th {
  background-color: var(--color-bg-light);
  color: var(--color-deep-navy);
  padding: 1.25rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--color-border-light);
}

.info-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:hover td {
  background-color: rgba(0, 91, 172, 0.02);
  color: var(--color-text-dark);
}

/* List with accent */
.accent-list {
  list-style: none;
  margin-bottom: 2rem;
}

.accent-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.accent-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-green);
  font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .header-container {
    padding: 1rem;
  }
  
  .logo img {
    height: 28px !important;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--color-border-light);
    padding: 1.5rem;
  }
  
  nav.open {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .desktop-cta {
    display: none;
  }
  
  nav.open .mobile-cta {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-banner h1 {
    font-size: 2.25rem;
  }
  
  .hero-banner p {
    font-size: 1.05rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* ============================================
   SHARED EVENT PAGE COMPONENTS
   모든 business 하위 이벤트 페이지 공통 컴포넌트
   ============================================ */

/* ── 뒤로가기 링크 ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-primary-blue);
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.back-link:hover {
  text-decoration: underline;
  color: var(--color-deep-navy);
}
.back-link svg {
  flex-shrink: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.info-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.info-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 91, 172, 0.2);
}

/* ── 카드 레이블 (SVG 아이콘 + 텍스트 — 이모지 사용 금지) ── */
.info-card-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}
.info-card-label svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.info-card-value {
  font-weight: 700;
  color: var(--color-deep-navy);
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}

/* ── 출처 배지 ── */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}
.source-badge:hover {
  border-color: var(--color-primary-blue);
  color: var(--color-primary-blue);
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 모바일 테이블 반응형 스크롤 ── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border-light);
}

.table-responsive .info-table {
  margin: 0;
  border: none;
  box-shadow: none;
  min-width: 750px; /* 모바일에서 찌그러지지 않고 정상 비율로 횡스크롤되도록 최소폭 설정 */
}

@media (max-width: 768px) {
  /* 모바일에서 날짜와 상세 보기 단추 열의 개행 방지 */
  .info-table th:first-child,
  .info-table td:first-child,
  .info-table th:last-child,
  .info-table td:last-child {
    white-space: nowrap;
  }
}

