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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1e293b;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ─── */
header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.logo span { color: #3b82f6; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar { display: none; }

.header-nav a {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  background: #f1f5f9;
  color: #0f172a;
}

/* ─── HERO ─── */
.hero {
  text-align: center;
  padding: 72px 0 40px;
}

.hero.has-bg {
  position: relative;
  padding: 96px 0 80px;
  background: url('/images/hello-banner.webp') center center / cover no-repeat;
  overflow: hidden;
}

.hero.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.45) 100%);
  z-index: 1;
}

.hero.has-bg h1,
.hero.has-bg p {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero.has-bg h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 16px;
}

.hero.has-bg p {
  font-size: 19px;
  color: rgba(255,255,255,0.9);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
}

.hero p {
  font-size: 18px;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
}

/* ─── ABOUT SITE ─── */
.about-site {
  background: #f8fafc;
  padding: 48px 0;
  margin-bottom: 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0f172a;
}

.about-content p {
  font-size: 17px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ─── WHY READ US ─── */
.why-read-us {
  padding: 48px 0 32px;
  text-align: center;
}

.why-read-us h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
  color: #0f172a;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.why-card {
  text-align: left;
  padding: 24px;
  background: #f8fafc;
  border-radius: 8px;
}

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.why-card p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

/* ─── TOPIC GRID ─── */
.section-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}

.topic-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.topic-grid li a {
  display: block;
  text-decoration: none;
  color: #1e293b;
}

.entry-link {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #1e293b;
  transition: border-color .15s, box-shadow .15s;
}

.entry-link:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.entry-link:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-body {
  padding: 14px 16px 16px;
}

.entry-link h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.entry-link .tag {
  color: #64748b;
  font-size: 13px;
}

/* ─── NICHE PORTAL ─── */
.niche-portal { padding: 32px 0; }

.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.niche-card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: #1e293b;
  transition: border-color .15s, box-shadow .15s;
}

.niche-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.niche-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.niche-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* ─── NICHE HERO ─── */
.niche-hero {
  padding: 48px 0 24px;
}

.niche-hero h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.niche-hero p {
  font-size: 16px;
  color: #64748b;
  max-width: 560px;
}

/* ─── CONTENT PAGES ─── */
.article-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.article-hero-niche {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  margin-bottom: 12px;
}

.article-hero-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.article-hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  line-height: 1.6;
}

.content-page {
  padding-top: 40px;
}

.content-page h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.content-page .meta {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 28px;
}

.content-page .body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: #0f172a;
}

.content-page .body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: #1e293b;
}

.content-page .body p {
  margin-bottom: 16px;
}

.content-page .body .toc {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.content-page .body .toc h2 {
  font-size: 16px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #475569;
}

.content-page .body .toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-page .body .toc li {
  margin-bottom: 4px;
  font-size: 14px;
}

.content-page .body .toc a {
  color: #3b82f6;
  text-decoration: none;
}

.content-page .body .toc a:hover {
  text-decoration: underline;
}

.content-page .body a {
  color: #2563eb;
  text-decoration: none;
}

.content-page .body section {
  margin-bottom: 32px;
}

.content-page .body section[id] {
  scroll-margin-top: 80px;
}

.content-page .body ul,
.content-page .body ol {
  margin: 0 0 16px 24px;
}

.content-page .body li {
  margin-bottom: 6px;
}

.content-page .sidebar {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.content-page .sidebar h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}

.content-page .sidebar ul {
  list-style: none;
}

.content-page .sidebar li {
  margin-bottom: 6px;
}

.content-page .sidebar a {
  color: #3b82f6;
  text-decoration: none;
  font-size: 14px;
}

.content-page .sidebar a:hover {
  text-decoration: underline;
}

/* ─── FOOTER ─── */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 0;
  margin-top: auto;
  font-size: 14px;
}

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

.footer-col h4 {
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}

.footer-col p {
  line-height: 1.6;
  font-size: 13px;
}

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

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

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}

.footer-col a:hover {
  color: #f1f5f9;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #475569;
}

.footer-bottom a {
  color: #64748b;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #f1f5f9;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  color: #94a3b8;
  transition: color .15s, background .15s;
}

.social-links a:hover {
  background: #334155;
  color: #f1f5f9;
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #cbd5e1;
  padding: 12px 24px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 9999;
  border-top: 1px solid #1e293b;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: #60a5fa;
  text-decoration: underline;
}

.cookie-banner button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}

.cookie-banner button:hover {
  background: #1d4ed8;
}

/* ─── STATIC PAGES (About, Terms, Privacy, Contact) ─── */
.static-page {
  padding: 48px 0 64px;
}

.static-page h1 {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
}

.static-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 28px 0 12px;
}

.static-page p {
  margin-bottom: 14px;
  color: #475569;
  line-height: 1.7;
}

.static-page ul {
  margin: 0 0 16px 24px;
  color: #475569;
}

.static-page li {
  margin-bottom: 6px;
}

/* ─── RESPONSIVE ─── */
/* ─── HAMBURGER MENU ─── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 769px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

@media (max-width: 768px) {
  header .container { height: 56px; padding: 0 16px; }
  .menu-toggle { display: flex; }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    flex-direction: column;
    padding: 8px 0;
    display: none;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .header-nav.open { display: flex; }

  .header-nav a {
    padding: 12px 16px;
    border-radius: 0;
    font-size: 15px;
    width: 100%;
  }
}

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 32px 0 16px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, background .15s;
  cursor: pointer;
}

.page-link:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.page-link.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  cursor: default;
}

.page-link.disabled {
  color: #cbd5e1;
  border-color: #e2e8f0;
  cursor: default;
  pointer-events: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero.has-bg h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .hero.has-bg { padding: 60px 0 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-hero { height: 300px; }
  .article-hero-content h1 { font-size: 24px; }
  .article-hero-desc { font-size: 14px; }
}

@media (max-width: 600px) {
  .article-hero { height: 260px; }
  .article-hero-content h1 { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .niche-grid { grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
