/* 기본 스타일링 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    height: 100%;
  }
  
  /* Body 설정: Flex 레이아웃 사용 */
  body {
    display: flex;
    flex-direction: column;
    font-family: 'Pretendard', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
  }

  .container, .hero, .hero-content, .about-section, .contact-section, .news-container {
    flex: 1;
  }

  .container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
  }
  
  /* 네비게이션 바 스타일링 */
  .navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
  }
  
  .navbar .logo {
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
    color: #333;
    display: inline-flex;
    align-items: center;
  }

  .navbar .logo img {
    height: 32px;
    width: auto;
    display: block;
    margin-right: 16px;
  }

  .navbar ul {
    list-style: none;
    float: right;
  }
  
  .navbar ul li {
    display: inline-block;
    margin-left: 20px;
  }
  
  .navbar ul li a {
    text-decoration: none;
    color: #333;
  }
  
  .navbar ul li a:hover {
    color: var(--color-primary);
  }
  
  /* 메인 화면 (Hero) 스타일링 */
  .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    text-align: center;
  }
  
  /* 배경 비디오 설정 */
  #bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* 콘텐츠 뒤에 배치 */
    object-fit: cover; /* 영상이 꽉 차게 설정 */
  }
  
  /* 콘텐츠를 중앙 정렬 */
  .hero-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1; /* 콘텐츠가 비디오 위에 오도록 */
    background-color: rgba(0, 0, 0, 0.4); /* 가독성 위한 배경 어둡게 처리 */
    display: inline-block;
    padding: 80px 80px;
    border-radius: 8px;
  }
  
  .hero-content h1 {
    font-size: 40px;
    margin-bottom: 10px;
  }
  
  .hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .btn {
    background-color: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
  }

  .btn:hover {
    background-color: var(--color-primary-hover);
  }
  
  /* 푸터 스타일링 */
  .footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
    color: #777;
  }

  .news-container {
    margin-top: 60px;
    margin-bottom: 80px;
  }
  
  .news-container h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
  }

  /* 게시판 테이블 스타일 */
  .news-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  
  .news-table th, .news-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
  }
  
  .news-table thead {
    background-color: #f8f8f8;
  }
  
  .news-table tbody tr:hover {
    background-color: #f1f1f1;
  }
  
  .news-table td a {
    color: #333;
    text-decoration: none;
  }
  
  .news-table td a:hover {
    color: var(--color-primary);
  }
  
  /* 각 컬럼 너비 조정 */
  .news-table .no {
    width: 10%;
  }
  
  .news-table .title {
    width: 60%;
  }
  
  .news-table .author, .news-table .date {
    width: 15%;
  }
  
  /* 페이지네이션 스타일 */
  .pagination {
    text-align: center;
  }
  
  .pagination a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--color-primary);
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
  }

  .pagination a.active {
    background-color: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
  }
  
  .pagination a:hover {
    background-color: #e9e9e9;
  }

  /* About 페이지 스타일 */
.about-section {
    text-align: center;
    padding: 60px 20px;
  }
  
  .about-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }
  
  .about-section p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
  }
  
  .values {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .value-item {
    flex: 1;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
  }
  
  .value-item h3 {
    margin-bottom: 10px;
  }
  
  /* Contact 페이지 스타일 */
  .contact-section {
    padding: 60px 20px;
    text-align: center;
  }
  
  .contact-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .contact-section p {
    margin-bottom: 30px;
    color: #555;
  }
  
  .contact-form {
    max-width: 600px;
    margin: 0 auto 40px;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
  }
  
  .contact-form textarea {
    resize: vertical;
    height: 150px;
  }
  
  .contact-form button {
    padding: 12px 20px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
  }

  .contact-form button:hover {
    background-color: var(--color-primary-hover);
  }
  
  .contact-info p {
    margin: 5px 0;
    font-size: 16px;
  }

/* Brand colors (manual #25676d primary, page 8):
   --color-primary used for nav-link hover, btn bg, h2 underline (via accent alias),
   value-item:hover border (via accent alias), pagination.
   --color-primary-hover used for btn:hover, contact-form button:hover.
   Hero hairline + btn:focus-visible inner outline use neutral white per manual
   page 9 BW palette + WCAG 2.4.13 (AA) accessibility-forced exception.
   --color-accent currently aliases to --color-primary (single brand color); kept
   as token for affordance semantics and future palette extension. */

:root {
  --color-primary: #25676d;
  --color-primary-hover: #1a4a4f;
  --color-accent: var(--color-primary);
  --color-text: #333;
  --color-text-muted: #555;
  --color-surface: #f8f8f8;
  --color-border: #eaeaea;
  --color-border-light: #ddd;
  --color-overlay: rgba(0, 0, 0, 0.4);

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo',
    'Malgun Gothic', sans-serif;

  --radius-sm: 5px;
  --radius-card: 8px;
  --radius-hero: 12px;

  --shadow-card: 0 4px 24px rgba(10, 16, 32, 0.06);
  --shadow-card-hover: 0 12px 36px rgba(10, 16, 32, 0.12);
  --shadow-btn-hover: 0 8px 20px rgba(37, 103, 109, 0.32);
  --shadow-hero: 0 16px 48px rgba(0, 0, 0, 0.24);

  --dur-fast: 180ms;
  --dur-mid: 300ms;
  --dur-reveal: 600ms;
  --dur-ken-burns: 12s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-sans);
}

.news-table td,
.footer p {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

#bg-video {
  animation: qm-ken-burns var(--dur-ken-burns) ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes qm-ken-burns {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -50%) scale(1.06); }
}

.hero-content {
  background: rgba(10, 16, 32, 0.32);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-hero);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-content {
    background: rgba(10, 16, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
  }
}

.about-section h2,
.news-container h2,
.contact-section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.about-section h2::after,
.news-container h2::after,
.contact-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transform: translateX(-50%);
  animation: qm-accent-grow var(--dur-reveal) var(--ease-out) 200ms forwards;
}

@keyframes qm-accent-grow {
  to { width: 56px; }
}

.value-item {
  position: relative;
  transition:
    transform var(--dur-fast) var(--ease-snap),
    box-shadow var(--dur-fast) var(--ease-snap),
    border-color var(--dur-fast) var(--ease-snap);
  border: 1px solid transparent;
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent);
}

.btn {
  transition:
    transform var(--dur-fast) var(--ease-snap),
    box-shadow var(--dur-fast) var(--ease-snap);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}

.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-primary), var(--shadow-btn-hover);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  will-change: opacity, transform;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .container {
    width: 92%;
  }
  .navbar .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .navbar .logo img {
    height: 28px;
    margin-right: 0;
  }
  .navbar ul {
    float: none;
    padding: 0;
  }
  .navbar ul li {
    margin: 0 8px 0 0;
  }
  .hero-content {
    padding: 40px 28px;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .values {
    flex-direction: column;
  }
  .about-section {
    padding: 40px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bg-video {
    animation: none !important;
    transform: translate(-50%, -50%) !important;
  }
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .value-item,
  .value-item:hover {
    transform: none !important;
    transition: none !important;
  }
  .btn,
  .btn:hover {
    transform: none !important;
    transition: none !important;
  }
  .about-section h2::after,
  .news-container h2::after,
  .contact-section h2::after {
    animation: none !important;
    width: 56px !important;
  }
}