/* ============================================
   BazpeDia — Knowledge Hub Stylesheet
   Answers to questions you didn't know you had
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink-blue: #1A2B4A;
  --parchment: #F7F3E8;
  --amber: #E8A33D;
  --forest: #2D6A4F;
  --slate: #4A5568;
  --parchment-dark: #EDE6D3;
  --ink-light: #2A3F5F;
  --amber-light: #F0BC6A;
  --forest-light: #4A9173;
  --slate-light: #718096;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(26, 43, 74, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 43, 74, 0.1);
  --shadow-lg: 0 12px 40px rgba(26, 43, 74, 0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --max-width-narrow: 760px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-body);
  background-color: var(--parchment);
  color: var(--ink-blue);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--amber);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-blue);
}

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.text-center { text-align: center; }
.text-amber { color: var(--amber); }
.text-forest { color: var(--forest); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink-blue);
  color: var(--parchment);
  padding: 10px 20px;
  z-index: 2000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
  color: var(--parchment);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--parchment);
  border-bottom: 1px solid rgba(26, 43, 74, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(247, 243, 232, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-blue);
  letter-spacing: -0.5px;
}

.nav-brand-text .accent {
  color: var(--amber);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-menu a:hover {
  color: var(--ink-blue);
  background: rgba(232, 163, 61, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-blue);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 43, 74, 0.72) 0%, rgba(45, 106, 79, 0.5) 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 40px 0;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(232, 163, 61, 0.15);
  border-radius: 100px;
  border: 1px solid rgba(232, 163, 61, 0.3);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink-blue);
}

.btn-primary:hover {
  background: var(--amber-light);
  color: var(--ink-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

.btn-ghost:hover {
  background: var(--forest);
  color: var(--white);
}

/* ---------- Did You Know Ticker ---------- */
.ticker {
  background: var(--ink-blue);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
  padding-right: 24px;
  border-right: 2px solid rgba(232, 163, 61, 0.3);
}

.ticker-label .dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  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); }
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll-ticker 40s linear infinite;
}

.ticker-content span {
  color: rgba(247, 243, 232, 0.9);
  font-size: 0.95rem;
}

.ticker-content span strong {
  color: var(--amber-light);
  margin-right: 6px;
}

@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Featured Article ---------- */
.featured-section {
  padding: 72px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 2rem;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.section-link:hover {
  gap: 12px;
  color: var(--amber);
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-card-image {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-card:hover .featured-card-image img {
  transform: scale(1.05);
}

.featured-card-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 16px;
}

.featured-card-title {
  font-size: 1.7rem;
  margin-bottom: 16px;
  line-height: 1.25;
}

.featured-card-title a {
  color: var(--ink-blue);
}

.featured-card-title a:hover {
  color: var(--forest);
}

.featured-card-excerpt {
  color: var(--slate);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.featured-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-top: auto;
}

/* ---------- Topic Cards Grid ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topic-card {
  position: relative;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 43, 74, 0.06);
  transition: all var(--transition);
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 163, 61, 0.3);
}

.topic-card:hover::before {
  transform: scaleX(1);
}

.topic-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--parchment-dark), var(--parchment));
}

.topic-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.topic-card p {
  color: var(--slate);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.topic-card .count {
  font-size: 0.82rem;
  color: var(--slate-light);
  font-weight: 500;
}

.topic-card .count strong {
  color: var(--forest);
}

.topic-card a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
}

/* ---------- Article Grid ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.06);
}

.article-card-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--ink-blue);
  color: var(--parchment);
  border-radius: 100px;
  z-index: 1;
}

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

.article-card-title {
  font-size: 1.22rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-card-title a {
  color: var(--ink-blue);
}

.article-card-title a:hover {
  color: var(--forest);
}

.article-card-excerpt {
  color: var(--slate);
  font-size: 0.93rem;
  margin-bottom: 16px;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--slate-light);
  padding-top: 14px;
  border-top: 1px solid rgba(26, 43, 74, 0.06);
}

.article-card-meta .dot-sep {
  width: 3px;
  height: 3px;
  background: var(--slate-light);
  border-radius: 50%;
}

/* ---------- Newsletter / CTA Section ---------- */
.cta-section {
  background: var(--ink-blue);
  color: var(--parchment);
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(247, 243, 232, 0.85);
  max-width: 520px;
  margin: 0 auto 32px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: 100px;
  background: rgba(247, 243, 232, 0.1);
  color: var(--parchment);
  transition: all var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(247, 243, 232, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(247, 243, 232, 0.15);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--amber);
  color: var(--ink-blue);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.newsletter-form button:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-blue);
  color: rgba(247, 243, 232, 0.7);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--parchment);
}

.footer-brand-text .accent {
  color: var(--amber);
}

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: rgba(247, 243, 232, 0.7);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--amber);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 232, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-bottom .footer-legal {
  display: flex;
  gap: 20px;
}

.footer-bottom .footer-legal a {
  font-size: 0.85rem;
  color: rgba(247, 243, 232, 0.6);
}

.footer-bottom .footer-legal a:hover {
  color: var(--amber);
}

/* ---------- Page Hero (interior pages) ---------- */
.page-hero {
  background: var(--ink-blue);
  color: var(--parchment);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  color: rgba(247, 243, 232, 0.8);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  position: relative;
}

.breadcrumb a {
  color: var(--amber-light);
}

.breadcrumb span {
  color: rgba(247, 243, 232, 0.5);
}

/* ---------- Article Page Layout ---------- */
.article-hero {
  padding: 56px 0 32px;
  background: var(--white);
  border-bottom: 1px solid rgba(26, 43, 74, 0.06);
}

.article-hero .container-narrow {
  text-align: center;
}

.article-category-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(45, 106, 79, 0.1);
  border-radius: 100px;
  margin-bottom: 20px;
}

.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--slate-light);
  flex-wrap: wrap;
}

.article-hero-meta .dot-sep {
  width: 3px;
  height: 3px;
  background: var(--slate-light);
  border-radius: 50%;
}

.article-hero-image {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-hero-image img {
  width: 100%;
}

.article-hero-image figcaption {
  padding: 12px 20px;
  font-size: 0.85rem;
  color: var(--slate-light);
  text-align: center;
}

/* ---------- Article Body ---------- */
.article-body {
  padding: 48px 0 64px;
}

.article-body .container-narrow {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--slate);
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
  color: var(--ink-blue);
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--ink-blue);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-blue);
  font-weight: 400;
}

.article-body ul, .article-body ol {
  margin: 20px 0 20px 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 20px 28px;
  border-left: 4px solid var(--amber);
  background: var(--parchment-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-blue);
}

.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--slate);
}

.article-body strong {
  color: var(--ink-blue);
  font-weight: 600;
}

.article-body a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: rgba(45, 106, 79, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.article-body a:hover {
  text-decoration-color: var(--amber);
  color: var(--amber);
}

.article-body .key-takeaway {
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(232, 163, 61, 0.08), rgba(45, 106, 79, 0.06));
  border: 1px solid rgba(232, 163, 61, 0.2);
  border-radius: var(--radius-md);
}

.article-body .key-takeaway h3 {
  margin-top: 0;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body .key-takeaway h3::before {
  content: '★';
  color: var(--amber);
}

/* ---------- Q&A style ---------- */
.article-body .qa-block {
  margin: 28px 0;
  padding: 24px;
  background: var(--parchment-dark);
  border-radius: var(--radius-md);
}

.article-body .qa-block .question {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-blue);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
}

.article-body .qa-block .question::before {
  content: 'Q.';
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
}

.article-body .qa-block .answer {
  margin: 0;
}

.article-body .qa-block .answer::before {
  content: 'A. ';
  font-weight: 600;
  color: var(--forest);
}

/* ---------- Table style ---------- */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
}

.article-body th {
  background: var(--ink-blue);
  color: var(--parchment);
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
}

.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(26, 43, 74, 0.08);
}

.article-body tr:nth-child(even) td {
  background: rgba(247, 243, 232, 0.5);
}

/* ---------- Article Footer (tags, share) ---------- */
.article-footer-meta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(26, 43, 74, 0.1);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tag-list a {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--parchment-dark);
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition);
}

.tag-list a:hover {
  background: var(--amber);
  color: var(--ink-blue);
}

/* ---------- Related Articles ---------- */
.related-articles {
  padding: 64px 0;
  background: var(--parchment-dark);
}

.related-articles h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8rem;
}

/* ---------- About Page ---------- */
.about-content {
  padding: 64px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 100px;
}

.about-sidebar .value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.about-sidebar .value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--forest);
}

.about-sidebar .value-card p {
  font-size: 0.92rem;
  color: var(--slate);
  margin: 0;
}

.about-main h2 {
  font-size: 1.7rem;
  margin: 32px 0 16px;
}

.about-main h2:first-child { margin-top: 0; }

.about-main p {
  color: var(--slate);
  margin-bottom: 18px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amber);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 4px;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding: 64px 0;
}

.contact-info-card {
  background: var(--ink-blue);
  color: var(--parchment);
  padding: 40px;
  border-radius: var(--radius-lg);
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.contact-info-card p {
  color: rgba(247, 243, 232, 0.8);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  background: rgba(232, 163, 61, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail .text {
  font-size: 0.92rem;
  color: rgba(247, 243, 232, 0.9);
}

.contact-detail .text strong {
  display: block;
  color: var(--amber-light);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
  margin-bottom: 8px;
}

.contact-form-card .form-intro {
  color: var(--slate);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-blue);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid rgba(26, 43, 74, 0.12);
  border-radius: var(--radius-sm);
  background: var(--parchment);
  color: var(--ink-blue);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--amber);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-top: 16px;
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid var(--forest);
  border-radius: var(--radius-sm);
  color: var(--forest);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.form-success.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* ---------- Explore / Filter Page ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  border: 2px solid rgba(26, 43, 74, 0.12);
  background: var(--white);
  color: var(--slate);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--amber);
  color: var(--ink-blue);
}

.filter-btn.active {
  background: var(--ink-blue);
  color: var(--parchment);
  border-color: var(--ink-blue);
}

/* ---------- Sitemap / Legal Pages ---------- */
.legal-content {
  padding: 64px 0;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
  color: var(--ink-blue);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
  color: var(--ink-blue);
}

.legal-content p {
  color: var(--slate);
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 12px 0 16px 24px;
  color: var(--slate);
}

.legal-content li {
  margin-bottom: 8px;
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-list li {
  margin-bottom: 12px;
  padding: 12px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}

.sitemap-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.sitemap-list a {
  font-weight: 500;
  color: var(--ink-blue);
}

.sitemap-list .sitemap-category {
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-left: auto;
}

.sitemap-section {
  margin-bottom: 40px;
}

.sitemap-section h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--forest);
}

/* ---------- 404 Page ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--slate);
  max-width: 480px;
  margin: 0 auto 32px;
}

.search-box {
  max-width: 480px;
  margin: 0 auto 32px;
  display: flex;
  gap: 8px;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid rgba(26, 43, 74, 0.12);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}

.search-box input:focus {
  outline: none;
  border-color: var(--amber);
}

.search-box button {
  padding: 12px 24px;
  background: var(--ink-blue);
  color: var(--parchment);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
}

.error-suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.error-suggestions a {
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--ink-blue);
  font-weight: 500;
  transition: all var(--transition);
}

.error-suggestions a:hover {
  box-shadow: var(--shadow-md);
  color: var(--forest);
}

/* ---------- Topics Hub ---------- */
.topics-hub {
  padding: 64px 0;
}

.topic-hub-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  transition: all var(--transition);
}

.topic-hub-card:hover {
  box-shadow: var(--shadow-md);
}

.topic-hub-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--parchment-dark), var(--parchment));
}

.topic-hub-info h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.topic-hub-info p {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
}

.topic-hub-info .count {
  font-size: 0.82rem;
  color: var(--forest);
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
}

.topic-hub-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--ink-blue);
  color: var(--parchment);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--amber);
  color: var(--ink-blue);
  transform: translateY(-4px);
}

/* ---------- Animations on scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker-content {
    animation: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .scroll-top {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    position: static;
  }

  .topic-hub-card {
    grid-template-columns: auto 1fr;
  }

  .topic-hub-link {
    grid-column: 1 / -1;
    text-align: right;
  }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .nav-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--parchment);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 8px;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(26, 43, 74, 0.06);
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 56px 0;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card-image {
    min-height: 240px;
  }

  .featured-card-content {
    padding: 28px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 40px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .error-suggestions {
    grid-template-columns: 1fr;
  }

  .topic-hub-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .topic-hub-icon {
    margin: 0 auto;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-hero-meta {
    gap: 12px;
    font-size: 0.82rem;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .container, .container-narrow {
    padding: 0 16px;
  }

  .nav-brand-text {
    font-size: 1.25rem;
  }

  .nav-brand img {
    width: 34px;
    height: 34px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .article-body .container-narrow {
    font-size: 1rem;
  }

  .article-body p:first-of-type {
    font-size: 1.05rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}

