/* ============================================================
   AITREND.GLOBAL — Premium Editorial Design System
   Clean, professional, high-RPM optimized
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Color Palette — Warm Editorial */
  --bg-page: #F8F7F4;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F2F1EE;
  --bg-header: #FFFFFF;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --accent-light: #EFF6FF;
  --accent-secondary: #7C3AED;

  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.25s ease;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

img { display: block; max-width: 100%; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 16px;
}

/* ============================================================
   HEADER
   ============================================================ */
header#mainHeader {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  transition: box-shadow 0.3s ease;
}

header#mainHeader.scrolled {
  box-shadow: var(--shadow-md);
}

header#mainHeader .container {
  padding-top: 0;
  padding-bottom: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.hamburger {
  display: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 8px;
  border-radius: 6px;
}

.hamburger:hover { background: var(--bg-card-alt); }

/* Reading Progress Bar */
.scroll-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  width: 0%;
  transition: width 0.1s ease;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-news-bar {
  background: var(--accent);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  overflow: hidden;
  position: relative;
  z-index: 99;
}

.breaking-news-bar .container {
  padding-top: 0;
  padding-bottom: 0;
  height: 38px;
  display: flex;
  align-items: center;
}

.breaking-label {
  background: rgba(0,0,0,0.15);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-ticker {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 30px, black 95%, transparent);
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 35s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 0 2.5rem;
}

.ticker-item a { color: white; opacity: 0.9; }
.ticker-item a:hover { opacity: 1; text-decoration: underline; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   HERO SECTION — Bento Grid
   ============================================================ */
.hero-section {
  padding: 32px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  height: 480px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-large { height: 280px; }
}

.hero-large {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-end;
}

.hero-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.hero-small {
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
}

.hero-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-card:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hero-content {
  background: linear-gradient(to top, rgba(10,15,30,0.95) 0%, rgba(10,15,30,0.5) 60%, transparent 100%);
  width: 100%;
  padding: 20px;
  position: relative;
}

.hero-large .hero-content {
  padding: 32px;
}

.hero-content h2 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 10px;
  color: white;
}

.hero-content h4 {
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.hero-content .meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* ============================================================
   TAGS & BADGES
   ============================================================ */
.tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.tag.is-small {
  padding: 3px 8px;
  font-size: 0.65rem;
  margin-bottom: 6px;
}

.category-link {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: inline-block;
  transition: var(--transition);
}

.category-link:hover { color: var(--accent-dark); }

/* ============================================================
   MAIN LAYOUT GRID
   ============================================================ */
.layout-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

@media (max-width: 900px) {
  .layout-grid { grid-template-columns: 1fr; }
}

/* Section Headings */
.section-heading {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.highlight-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 2px;
}

/* ============================================================
   ARTICLE LIST ITEMS (Homepage)
   ============================================================ */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-list-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.article-list-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.list-thumb {
  flex-shrink: 0;
  width: 220px;
  height: 148px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-list-item:hover .list-thumb img {
  transform: scale(1.06);
}

.list-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
  transition: var(--transition);
}

.list-title:hover, .article-list-item:hover .list-title {
  color: var(--accent);
}

.list-content .excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.55;
}

.meta-small {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-small .date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reading-time-badge {
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .article-list-item { flex-direction: column; }
  .list-thumb { width: 100%; height: 200px; }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Social Widget */
.social-links {
  display: flex;
  gap: 8px;
}

.social-btn {
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: white;
  transition: var(--transition);
}

.social-btn.twitter { background: #000; }
.social-btn.telegram { background: #0088cc; }
.social-btn.discord { background: #5865F2; }
.social-btn.facebook { background: #1877F2; }
.social-btn.linkedin { background: #0077b5; }
.social-btn.whatsapp { background: #25D366; }

.social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: var(--shadow-md);
}

/* Trending Widget */
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.trending-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.trending-item .number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--border-strong);
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
}

.trending-item h5 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

.cat-mini {
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.trending-item:hover h5 { color: var(--accent); }
.trending-item:hover .number { color: var(--accent); }

/* Newsletter Widget */
.newsletter-widget input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.newsletter-widget input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.newsletter-widget button {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.newsletter-widget button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Ad Widget */
.ad-widget {
  background: var(--bg-card-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 24px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.ad-widget .ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================================
   ARTICLES GRID (Category pages)
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover img { transform: scale(1.04); }

.article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card .tag {
  align-self: flex-start;
  margin-bottom: 10px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-primary);
  transition: var(--transition);
}

.article-title:hover, .article-card:hover .article-title {
  color: var(--accent);
}

.article-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex-grow: 1;
}

/* ============================================================
   ARTICLE SINGLE PAGE
   ============================================================ */
.article-header {
  padding: 40px 0 24px;
  text-align: left;
  border: none;
}

.category-badge {
  background: var(--accent);
  color: white;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: inline-block;
  font-weight: 700;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-meta-bar .author-name {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================================
   COOKIE CONSENT (Handled by Library)
   ============================================================ */

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--text-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 900;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
  #cookieConsent {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

.article-meta-bar .sep { color: var(--border-strong); }

.reading-time {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.article-image-container {
  width: 100%;
  max-height: 420px;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.article-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-article-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 80px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .single-article-grid { grid-template-columns: 1fr; }
}

/* Article Body */
.article-body {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-body p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.article-body h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.article-body li {
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}

.article-body blockquote {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body strong { color: var(--text-primary); }

/* Key Takeaways Box */
.key-takeaways {
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,0.2);
  border-top: 4px solid var(--accent);
  padding: 28px;
  margin-bottom: 36px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.takeaway-header {
  margin-top: 0;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.takeaway-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.takeaway-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(37,99,235,0.06));
  border-left: 4px solid var(--accent-secondary);
  padding: 20px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Professional List */
.professional-list {
  margin: 24px 0;
  padding-left: 0;
  list-style: none;
}

.professional-list li {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--bg-page);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: var(--transition);
}

.professional-list li:hover {
  background: var(--accent-light);
  border-left-color: var(--accent-dark);
  padding-left: 20px;
}

/* In-Content Ad */
.in-content-ad {
  background: var(--bg-card-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  margin: 2rem 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.in-content-ad .ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================================
   ARTICLE SIDEBAR (Single page)
   ============================================================ */
.sidebar-box {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  position: sticky;
  top: 80px;
}

.sidebar-box h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recent-post-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.recent-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-post-item a {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
  transition: var(--transition);
}

.recent-post-item a:hover { color: var(--accent); }

.recent-post-item .post-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   RELATED ARTICLES SECTION
   ============================================================ */
.related-articles {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--border);
}

.related-articles h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
}

.related-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-card-content {
  padding: 14px;
}

.related-card-content .cat-mini {
  margin-bottom: 6px;
}

.related-card-content h5 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  transition: var(--transition);
}

.related-card:hover h5 { color: var(--accent); }

/* ============================================================
   SECTION TITLE (Category pages)
   ============================================================ */
.section-title {
  text-align: center;
  margin: 2.5rem 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 60px;
}

.main-container, .article-body, .section-title {
  margin-bottom: 60px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

footer .container { padding-top: 0; }

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-content { grid-template-columns: 1fr; }
}

.footer-brand .logo-footer {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-section h4 {
  color: white;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
#cookieConsent {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  color: white;
  padding: 20px 24px;
  border-radius: var(--radius);
  max-width: 320px;
  display: none;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

#cookieConsent h4 {
  color: white;
  margin-bottom: 8px;
  font-size: 1rem;
}

#cookieConsent p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}

#cookieConsent button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

#cookieConsent button:hover { background: var(--accent-dark); }

/* ============================================================
   MOBILE NAV
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .nav-links.active { display: flex; }
  .nav-links a { padding: 10px 14px; width: 100%; }
  .hamburger { display: block; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 48px;
  text-align: center;
}

.about-hero h1 { color: white; font-size: 2.5rem; }
.about-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.about-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.team-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  font-family: var(--font-heading);
}

.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.sep { color: var(--border-strong); }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}
