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

:root {
  --orange: #FF8C32;
  --navy: #1A2238;
  --blue: #2563EB;
  --cloud-white: #FFFFFF;
  --surface: #FFFFFF;
  --card-bg: #FFDCC8;
  --surface-soft: #FFF8F3;
  --border: #E8D5C4;
  --text: var(--navy);
  --muted: #5C6B8A;
  --cyan: var(--orange);
  --bg: var(--cloud-white);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1A2238;
    --card-bg: #252d3d;
    --surface-soft: #1e2838;
    --border: #2d3a4f;
    --text: #e8ecf0;
    --muted: #94a3b8;
    --bg: #0f1419;
    --navy: #e8ecf0;
  }

  .featured-card-tag { color: #FFB366; }
  .nav-logo { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3)); }
  .page-about .highlight-box,
  .page-contact .highlight-box,
  .page-legal .highlight-box {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  }
}

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

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, nav a, .featured-card-tag, .section-heading, .submit-btn, .back-btn, .mobile-menu a, button {
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

a { color: var(--orange); transition: color 0.2s ease; }
a:hover { color: #E67A22; }

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px 60px; }

nav {
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: var(--surface);
  transition: background-color 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 100px;
  overflow: visible;
  will-change: transform;
  backface-visibility: hidden;
}

.nav-logo-wrap { position: relative; display: flex; align-items: center; }

.nav-logo-wrap::after {
  content: '';
  position: absolute;
  top: 74%;
  left: 300%;
  transform: translateX(-50%);
  width: 880px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 140, 50, 0.35);
  pointer-events: none;
}

.nav-logo {
  height: 150px;
  width: auto;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 8px 12px rgba(26, 34, 56, 0.12));
  display: block;
}

.nav-logo:hover { transform: scale(1.05); }

.nav-links-wrap { position: relative; display: flex; align-items: center; gap: 10px; }

nav a {
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
}

nav a:hover {
  color: var(--orange);
  background: rgba(255, 140, 50, 0.1);
}

.search-box { display: flex; align-items: center; position: relative; margin-left: 8px; }

#site-search {
  width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  transition: width 0.35s ease, padding 0.35s ease;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  border-bottom: 2px solid transparent;
  font-size: 0.92rem;
}

.search-box.active #site-search {
  width: 180px;
  padding: 5px 10px;
  border-bottom: 2px solid var(--orange);
}

.search-icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 8px;
  transition: color 0.2s;
}

.search-icon-btn:hover { color: var(--orange); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 998;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.open { max-height: 400px; padding: 10px 20px; }

.mobile-menu a {
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  display: block;
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu a:hover {
  color: var(--orange);
  background: rgba(255, 140, 50, 0.1);
}

footer {
  text-align: center;
  padding: 40px;
  color: #fff;
  background: var(--orange);
  border-top: none;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
}

.footer-social { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.footer-social a:hover {
  color: var(--orange);
  border-color: #fff;
  background: #fff;
}

.page-title { text-align: center; margin-bottom: 44px; }

.page-title h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
}

.page-title h1 span { color: var(--orange); }

.page-title-line {
  width: 72px;
  height: 4px;
  background: var(--orange);
  margin: 12px auto 0;
  border-radius: 999px;
}

.featured-grid { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 60px; justify-content: center; }

.hero-card,
.featured-card,
.page-about .highlight-box,
.page-contact .highlight-box,
.page-legal .highlight-box {
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.featured-card::before,
.page-about .highlight-box::before,
.page-contact .highlight-box::before,
.page-legal .highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
}

.featured-card {
  flex: 1 1 320px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid rgba(255, 140, 50, 0.25);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 140, 50, 0.5);
  box-shadow: 0 18px 36px rgba(255, 140, 50, 0.18);
}

.featured-card-img { width: 100%; height: 220px; object-fit: cover; display: block; }

.featured-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }

.featured-card-tag {
  display: inline-block;
  background: rgba(255, 140, 50, 0.3);
  color: #C45A1A;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
}

.featured-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}

.featured-card p { font-size: 0.9rem; color: var(--muted); font-weight: 400; flex: 1; }

.featured-card-date { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.6px; }

.hero-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid rgba(255, 140, 50, 0.25);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 30px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 140, 50, 0.5);
  box-shadow: 0 18px 36px rgba(255, 140, 50, 0.18);
}

.hero-img { width: 100%; height: 420px; object-fit: cover; display: block; }

.hero-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }

.hero-body h2 { font-size: 1.75rem; color: var(--navy); line-height: 1.2; }

.section-heading {
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 15px;
  margin: 40px 0 20px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.article-list { display: flex; flex-direction: column; }

.article-list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}

.article-list-item:hover div { color: var(--orange); }

.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  width: 100%;
}

.page-article .container { max-width: 850px; padding: 60px 20px; }

.page-article .back-btn {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 30px;
  display: inline-block;
}

.page-article .back-btn:hover { color: #E67A22; }

.page-article .article-header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--navy);
  margin: 15px 0;
  line-height: 1.1;
}

.page-article .article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-article .main-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.page-article .content { font-size: 1.08rem; color: var(--text); font-weight: 400; }
.page-article .content p { margin-bottom: 25px; }
.page-article .content ul, .page-article .content ol { margin: 20px 0 25px; padding-left: 28px; }
.page-article .content ul { list-style-type: disc; }
.page-article .content ol { list-style-type: decimal; }
.page-article .content li { margin-bottom: 10px; }
.page-article .content .article-img { margin: 30px 0; }
.page-article .content .article-img img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.page-article footer { margin-top: 60px; }

.page-about .container,
.page-contact .container { max-width: 800px; }

.page-about h2,
.page-contact h2 {
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 15px;
  font-size: 1.4rem;
  letter-spacing: 0.7px;
}

.page-about h2 { margin: 40px 0 15px; }
.page-contact h2 { margin: 0 0 15px; }

.page-about .highlight-box {
  background: var(--surface);
  padding: 22px 25px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 12px 26px rgba(30, 41, 59, 0.08);
}

.page-about .highlight-box p { font-size: 0.95rem; font-weight: 400; color: var(--text); }

.page-contact .highlight-box {
  background: var(--surface);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.page-contact .highlight-box p { font-size: 0.95rem; font-weight: 400; color: var(--muted); margin-bottom: 20px; }

.page-contact .contact-form { display: flex; flex-direction: column; gap: 15px; }

.page-contact .contact-form label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -8px;
}

.page-contact .contact-form input,
.page-contact .contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 8px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.page-contact .contact-form input:focus,
.page-contact .contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 140, 50, 0.2);
}

.page-contact .submit-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.page-contact .submit-btn:hover {
  transform: translateY(-1px);
  background: #E67A22;
  box-shadow: 0 12px 20px rgba(255, 140, 50, 0.35);
}

.page-legal .container { max-width: 900px; }
.page-legal nav { position: static; }
.page-legal .nav-logo { height: 60px; }

.page-legal .highlight-box {
  background: var(--surface);
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 12px 24px rgba(30, 41, 59, 0.08);
}

.page-legal h2 {
  color: var(--navy);
  margin-bottom: 15px;
  font-size: 1.4rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.page-legal p { margin-bottom: 15px; font-weight: 400; font-size: 0.95rem; }
.page-legal a { color: var(--orange); text-decoration: none; font-weight: 700; }

.join-queue,
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 700;
}

.live-pill,
.is-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 140, 50, 0.2);
  color: var(--orange);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

@media (max-width: 768px) {
  nav { justify-content: space-between; height: 80px; }
  .nav-logo-wrap::after { display: none; }
  .nav-logo { height: 90px; }
  .nav-links-wrap { display: none; }
  .hamburger { display: flex; }
  .featured-card { flex: 1 1 100%; }
  .page-title h1 { font-size: 1.6rem; }
  .hero-img { height: 280px; }
  .hero-body { padding: 20px; }
  .page-article .article-header h1 { font-size: 1.9rem; }
}