*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --gray-dark: #2a2a2a;
  --gray: #888888;
  --gray-light: #bbb;
  --gray-pale: #e8e8e8;
  --off-white: #f7f7f7;
  --white: #ffffff;
  --blue: #3d7ebf;
  --blue-hover: #5a9ad5;
  --blue-pale: #eaf2fa;
  --text: #1a1a1a;
  --text-light: #555;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

/* ── HEADER (overlays hero, becomes solid on scroll) ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}

header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: padding 0.35s ease;
}

header.scrolled .header-inner {
  padding: 0.55rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.logo img {
  height: 36px;
  width: auto;
  transition: height 0.35s ease;
}

header.scrolled .logo img {
  height: 28px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

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

nav ul li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

nav ul li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

nav ul li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 28vh;
  min-height: 170px;
  max-height: 250px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transition: opacity 2s ease;
  z-index: 0;
}

.hero-bg.active {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 1.4rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.hero-dots {
  position: absolute;
  bottom: 1.2rem;
  right: 2.5rem;
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ── MAIN CONTENT ── */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  min-height: 55vh;
}

.page-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



.page-content h2 {
  font-size: 1.25rem;
  color: var(--black);
  margin: 2.5rem 0 0.6rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.page-content h3 {
  font-size: 1.05rem;
  color: var(--gray-dark);
  margin: 2rem 0 0.5rem;
  font-weight: 700;
}

.page-content p {
  margin-bottom: 1rem;
  text-align: justify;
  color: var(--text);
  line-height: 1.75;
}

.page-content a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

.page-content a:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

/* ── CONTENT IMAGES ── */
.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 6px;
}

.page-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.5rem;
  margin: 1.8rem 0;
  background: var(--blue-pale);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-light);
}

.page-content ul {
  padding-left: 0;
  margin-bottom: 1.5rem;
  list-style: none;
}

.page-content ul li {
  padding: 0.5rem 0 0.5rem 1.2rem;
  position: relative;
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}

/* ── TABLES ── */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--gray-pale);
  border-radius: 6px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.page-content table tbody {
  display: table;
  width: 100%;
}

.page-content table tr:first-child td,
.page-content table th {
}

.page-content table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--gray-pale);
  vertical-align: top;
}

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

.page-content table tr:nth-child(even):not(:first-child) {
  background: var(--off-white);
}

.page-content table tr:hover:not(:first-child) {
  background: var(--blue-pale);
}

/* ── SPECIAL NOTICE ── */
.special-notice {
  background: var(--off-white);
  border: 1px solid var(--gray-pale);
  border-left: 3px solid var(--blue);
  padding: 1.2rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
  color: var(--text-light);
  font-size: 0.92rem;
}

.special-notice a {
  color: var(--blue);
  font-weight: 600;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.45);
  padding: 2.5rem 2rem;
  font-size: 0.82rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-brand img {
  height: 24px;
  width: auto;
  opacity: 0.6;
}

.footer-link {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: rgba(255,255,255,0.8);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(12px);
    display: none;
    padding: 0.5rem 0;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  nav ul li a {
    display: block;
    padding: 0.75rem 2rem;
    border-radius: 0;
    font-size: 0.92rem;
  }

  .hero {
    height: 22vh;
    min-height: 130px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero-content {
    padding: 0 1.2rem 1rem;
  }

  .hero-dots {
    right: 1.5rem;
  }

  main {
    padding: 2rem 1.2rem 3rem;
  }

  .page-section > h1 {
    font-size: 1.35rem;
  }

  .header-inner {
    padding: 0.8rem 1.2rem;
  }

  header.scrolled .header-inner {
    padding: 0.5rem 1.2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
