/*
Theme Name: NC Wissen
Theme URI: http://nestler-creation.de
Description: Digitales Wissensportal Theme - Navy/Teal Design
Author: NC Wissen
Version: 1.0
Text Domain: nc-wissen
*/

/* ===== CSS Custom Properties ===== */
:root {
  --c-brand: #1B2A5B;
  --c-accent: #1A9CA0;
  --gradient: linear-gradient(135deg, #1B2A5B, #1A9CA0);
  --c-bg: #F5F7FA;
  --c-text: #2D3748;
  --c-subtle: #718096;
  --white: #FFFFFF;
  --success: #38A169;
  --c-divider: #E2E8F0;
  --max-width: 1280px;
  --content-width: 720px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
}

a { color: var(--c-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-brand); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--c-brand);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1.2em; }

ul, ol { margin-bottom: 1.2em; padding-left: 1.5em; }
li { margin-bottom: 0.3em; }

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

/* ===== Header ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--c-divider);
  box-shadow: 0 2px 8px rgba(27, 42, 91, 0.08);
}

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

.logo img {
  height: 45px;
  width: auto;
}

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

.logo .site-title-text {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  background: var(--c-bg);
  color: var(--c-accent);
}

/* Dropdown */
.nav-links .sub-menu {
  display: none;
  position: absolute;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(27, 42, 91, 0.12);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 200px;
  flex-direction: column;
  gap: 0;
  z-index: 100;
}

.nav-links li { position: relative; }
.nav-links li:hover > .sub-menu { display: flex; }

.nav-links .sub-menu a {
  padding: 8px 20px;
  border-radius: 0;
  font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-brand);
  margin: 5px 0;
  transition: transform 0.3s;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--c-divider);
    box-shadow: 0 8px 24px rgba(27, 42, 91, 0.12);
    padding: 16px 24px;
  }

  .nav-links.active { display: block; }

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

  .nav-links .sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
  }
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--c-subtle);
}

.breadcrumbs a { color: var(--c-accent); }
.breadcrumbs .separator { margin: 0 8px; color: var(--c-divider); }

/* ===== Hero Section ===== */
.page-hero {
  background: var(--gradient);
  padding: 60px 0 50px;
  color: var(--white);
  margin-bottom: 40px;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 0.3em;
}

.page-hero .hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
}

/* ===== Content Area ===== */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

.content-wrap.full-width {
  grid-template-columns: 1fr;
}

.content-main article {
  background: var(--white);
  border-radius: 6px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(27, 42, 91, 0.08);
}

.content-main .entry-content {
  max-width: var(--content-width);
}

.content-main .entry-content h2 {
  margin-top: 2em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--c-divider);
}

.content-main .entry-content h3 {
  margin-top: 1.5em;
}

.content-main .post-thumbnail {
  margin: -40px -40px 30px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.content-main .post-thumbnail img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Post Meta */
.entry-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--c-subtle);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-divider);
}

.entry-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Sidebar ===== */
.sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.sidebar .widget {
  background: var(--white);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(27, 42, 91, 0.08);
}

.sidebar .widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-brand);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-accent);
}

/* TOC Widget */
.toc-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-widget li {
  margin-bottom: 0;
}

.toc-widget a {
  display: block;
  padding: 6px 12px;
  font-size: 0.88rem;
  color: var(--c-text);
  border-left: 2px solid var(--c-divider);
  transition: border-color 0.2s, color 0.2s;
}

.toc-widget a:hover,
.toc-widget a.active {
  border-left-color: var(--c-accent);
  color: var(--c-accent);
}

.toc-widget .toc-h3 { padding-left: 24px; font-size: 0.83rem; }

/* ===== Archive / Card Grid ===== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 60px;
}

.archive-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(27, 42, 91, 0.08);
  transition: opacity 0.2s, box-shadow 0.2s;
}

.archive-card:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.archive-card .preview-img {
  height: 180px;
  overflow: hidden;
}

.archive-card .preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-card .preview-body {
  padding: 20px;
}

.archive-card .card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-accent);
  margin-bottom: 8px;
}

.archive-card h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.archive-card h2 a { color: var(--c-brand); }
.archive-card h2 a:hover { color: var(--c-accent); }

.archive-card .card-excerpt {
  font-size: 0.9rem;
  color: var(--c-subtle);
  line-height: 1.5;
  margin-bottom: 12px;
}

.archive-card .card-meta {
  font-size: 0.8rem;
  color: var(--c-subtle);
}

@media (max-width: 900px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 1fr; }
}

/* ===== Homepage Sections ===== */
.home-section {
  padding: 60px 0;
}

.home-section .section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
}

.home-section .section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero {
  background: var(--gradient);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.home-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.home-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.category-pill {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.25);
}

.category-pill:hover {
  background: rgba(255,255,255,0.25);
  color: var(--white);
}

/* ===== Buttons / CTAs ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
}

.btn-gradient {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(26, 156, 160, 0.3);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 156, 160, 0.4);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--c-brand);
}

/* ===== Code Blocks ===== */
code {
  font-family: 'Fira Code', 'Source Code Pro', 'Consolas', monospace;
  font-size: 0.88em;
  background: #EDF2F7;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--c-brand);
}

pre {
  background: #1a1a2e;
  color: #e2e8f0;
  padding: 24px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.5em;
  position: relative;
  border-left: 4px solid var(--c-accent);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Syntax highlighting colors */
pre .comment { color: #718096; }
pre .keyword { color: #63b3ed; }
pre .string { color: #68d391; }
pre .number { color: #f6ad55; }
pre .function { color: #b794f4; }

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
}

th {
  background: var(--c-brand);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-divider);
  font-size: 0.9rem;
}

tr:hover td { background: var(--c-bg); }

/* ===== Blockquotes ===== */
blockquote {
  border-left: 4px solid var(--c-accent);
  padding: 16px 24px;
  margin: 1.5em 0;
  background: var(--c-bg);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--c-subtle);
}

/* ===== Footer ===== */
.bottom-section {
  background: var(--c-brand);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.bottom-col h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-accent);
}

.bottom-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bottom-col li { margin-bottom: 8px; }

.bottom-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.bottom-col a:hover { color: var(--c-accent); }

.bottom-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.bottom-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .bottom-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Author Box ===== */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--c-bg);
  border-radius: 6px;
  padding: 24px;
  margin-top: 40px;
  border: 1px solid var(--c-divider);
}

.author-box .author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box .author-name {
  font-weight: 700;
  color: var(--c-brand);
  font-size: 1rem;
  margin-bottom: 4px;
}

.author-box .author-bio {
  font-size: 0.9rem;
  color: var(--c-subtle);
  margin-bottom: 0;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.pagination a {
  background: var(--white);
  color: var(--c-text);
  box-shadow: 0 2px 8px rgba(27, 42, 91, 0.08);
}

.pagination a:hover {
  background: var(--c-accent);
  color: var(--white);
}

.pagination .current {
  background: var(--gradient);
  color: var(--white);
}

/* ===== Responsive Content ===== */
@media (max-width: 900px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .content-main article { padding: 24px; }
  .content-main .post-thumbnail { margin: -24px -24px 20px; }
}

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== WordPress Defaults ===== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--c-subtle); text-align: center; margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* ===== Homepage Enhanced Sections ===== */

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
}

/* Featured Grid (2x2 on desktop) */
.featured-section {
  padding: 60px 0;
  background: var(--white);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.featured-card {
  display: flex;
  background: var(--c-bg);
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(27, 42, 91, 0.08);
}

.featured-card:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.featured-image {
  width: 200px;
  min-height: 180px;
  flex-shrink: 0;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.featured-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.featured-body h3 a {
  color: var(--c-brand);
}

.featured-body h3 a:hover {
  color: var(--c-accent);
}

.read-more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-accent);
}

.read-more:hover {
  color: var(--c-brand);
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    flex-direction: column;
  }

  .featured-image {
    width: 100%;
    height: 180px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* Top-Ranking Section */
.top-ranking-section {
  padding: 60px 0;
  background: var(--c-bg);
}

.top-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.top-ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: 6px;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(27, 42, 91, 0.08);
  text-decoration: none;
}

.top-ranking-item:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.top-ranking-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.top-ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-ranking-info h3 {
  font-size: 0.95rem;
  color: var(--c-brand);
  margin-bottom: 4px;
}

.top-ranking-cat {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-accent);
}

@media (max-width: 600px) {
  .top-ranking-grid {
    grid-template-columns: 1fr;
  }
}

/* Category Overview Cards */
.category-overview-section {
  padding: 60px 0;
  background: var(--white);
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--c-bg);
  border-radius: 6px;
  padding: 24px;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(27, 42, 91, 0.08);
}

.category-card:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.category-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-accent);
}

.category-card-header h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.category-card-header h3 a {
  color: var(--c-brand);
}

.category-card-header h3 a:hover {
  color: var(--c-accent);
}

.category-count {
  font-size: 0.78rem;
  color: var(--c-subtle);
  white-space: nowrap;
}

.category-card-posts {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.category-card-posts li {
  padding: 8px 0;
  border-bottom: 1px solid var(--c-divider);
  margin-bottom: 0;
}

.category-card-posts li:last-child {
  border-bottom: none;
}

.category-card-posts a {
  font-size: 0.9rem;
  color: var(--c-text);
  transition: color 0.2s;
}

.category-card-posts a:hover {
  color: var(--c-accent);
}

.category-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-accent);
}

.category-card-link:hover {
  color: var(--c-brand);
}

@media (max-width: 900px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Latest Section */
.latest-section {
  padding: 60px 0;
  background: var(--c-bg);
}

/* ===== Homepage Enhanced ===== */

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 32px;
}

/* Section Description */
.section-desc {
  text-align: center;
  color: var(--c-subtle);
  max-width: 600px;
  margin: -24px auto 40px;
  font-size: 1rem;
}

.section-cta {
  text-align: center;
  margin-top: 32px;
}

/* Featured Grid -- 2 large + remaining smaller */
.featured-section {
  background: var(--white);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.featured-card {
  background: var(--c-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(27, 42, 91, 0.08);
  transition: opacity 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.featured-card--large {
  grid-column: span 1;
}

.featured-card--large .preview-img {
  height: 240px;
}

.featured-card .preview-img {
  height: 180px;
  overflow: hidden;
}

.featured-card .preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card .preview-body {
  padding: 20px;
}

.featured-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.featured-card--large h3 {
  font-size: 1.3rem;
}

.featured-card h3 a {
  color: var(--c-brand);
}

.featured-card h3 a:hover {
  color: var(--c-accent);
}

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}

/* Top Links Grid */
.toplinks-section {
  background: var(--white);
}

.toplinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.toplink-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--c-bg);
  border-radius: 6px;
  transition: opacity 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--c-text);
}

.toplink-item:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  color: var(--c-text);
}

.toplink-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.toplink-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toplink-info h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--c-brand);
}

.toplink-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-accent);
}

@media (max-width: 600px) {
  .toplinks-grid { grid-template-columns: 1fr; }
}

/* Category Section alternating bg */
.cat-section.alt-bg {
  background: var(--white);
}

/* Latest Section */
.latest-section {
  background: var(--white);
  padding-bottom: 80px;
}
