/* The bakery demo avoids using tooling so doesn't use SASS. This is a static */
/* CSS file that extends Bootstrap. It's deliberately verbose to aid          */
/* readability with global themes, themes for each list view and themes for   */
/* each detail view                                                           */
/* 0. Fonts                                                                   */
/* 1. Global styles --------------------------------------------------------- */
/* 2. Page header ----------------------------------------------------------- */
/* 3. Main menu ------------------------------------------------------------- */
/* 4. Breadcrumb ------------------------------------------------------------ */
/* 5. Location styles ------------------------------------------------------- */
/* 6. Blog styles ----------------------------------------------------------- */
/* 7. Bread styles ---------------------------------------------------------- */
/* 8. Form styles ----------------------------------------------------------- */
/* 9. Homepage styles ------------------------------------------------------- */
/* 9. Miscellaneous/ Helper styles ------------------------------------------ */
/* 10. Dark Mode ------------------------------------------------------------ */

/* ==========================================================================
   Dark Mode CSS Variables
   ========================================================================== */

:root {
  /* Light mode (default) */
  color-scheme: light;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f0f0;
  --bg-card: #ffffff;
  --bg-input: #f7f7f7;
  --bg-hover: #f5f5f5;

  --text-primary: #121212;
  --text-secondary: #444444;
  --text-muted: #666666;
  --text-light: #888888;

  --border-color: #e8e8e8;
  --border-light: #eeeeee;

  --link-color: #2DD4BF;
  --link-hover: #14B8A6;

  /* Vibrant accent colors */
  --accent-vibrant: #2DD4BF;
  --accent-coral: #FF6B6B;
  --accent-teal: #00B4D8;
  --accent-green: #06D6A0;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);

  --header-bg: #ffffff;
  --footer-bg: #ffffff;
  --sidebar-bg: #ffffff;

  --card-bg: #ffffff;
  --card-border: #e8e8e8;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.08);

  --btn-primary-bg: #2DD4BF;
  --btn-primary-text: #ffffff;
  --btn-outline-border: #333333;
  --btn-outline-text: #333333;

  --code-bg: #f4f4f4;
  --blockquote-border: #d4566b;

  /* Logo fill color */
  --logo-fill: currentColor;
}

[data-theme="dark"] {
  /* Dark mode */
  color-scheme: dark;
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-card: #161b22;
  --bg-input: #21262d;
  --bg-hover: #30363d;

  --text-primary: #e6edf3;
  --text-secondary: #b1bac4;
  --text-muted: #8b949e;
  --text-light: #6e7681;

  --border-color: #30363d;
  --border-light: #21262d;

  --link-color: #5EEAD4;
  --link-hover: #2DD4BF;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);

  --header-bg: #0d1117;
  --footer-bg: #0d1117;
  --sidebar-bg: #161b22;

  --card-bg: #161b22;
  --card-border: #30363d;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.3);

  --btn-primary-bg: #2DD4BF;
  --btn-primary-text: #ffffff;
  --btn-outline-border: #e6edf3;
  --btn-outline-text: #e6edf3;

  --code-bg: #21262d;
  --blockquote-border: #f08090;

  /* Logo fill color for dark mode */
  --logo-fill: #e6edf3;

  /* Vibrant accent colors (even brighter in dark mode) */
  --accent-vibrant: #00F5C4;
  --accent-coral: #FF7B7B;
  --accent-teal: #22D4F2;
  --accent-green: #1BEFA8;
}

/* Dark mode transition for smooth theme switching */
body,
.site-header,
.footer,
.sidebar-nav-panel,
.card,
.blog-card,
.article-card,
main,
.hero,
input,
textarea,
select {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@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;
  }
}


/* Fonts */
.ibm-plex-mono {
  font-family: 'IBM Plex Mono', monospace;
}

.inter {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 19px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body {
    font-size: 22px;
  }
}

h1 {
  font-weight: 300;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
}

.hero h1 {
  color: white;
}

h2 {
  font-weight: 900;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
}

h3 {
  font-weight: 900;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
}

h4 {
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
}

p {
  margin: 0 0 30px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;;
}

a, a:focus, a:visited {
  text-decoration: none;
  color: var(--link-color);
}

a:hover {
  text-decoration: none;
  color: var(--link-hover);
}

a.btn {
  color: var(--text-primary);
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.15em;
  padding: 15px 20px;
  text-transform: uppercase;
}

a.btn:hover {
  color: var(--text-primary);
}

a.btn-sm {
  border-radius: 4px;
  font-size: 10px;
  line-height: normal;
  padding: 6px 8px;
}

/* .header input {
  border-radius: 3px 0 0 3px;
  border: 1px solid #BCBFC2;
  font-size: 18px;
  padding: 8px 6px 6px 40px;
  width: 100%;
  margin-left: -10px;
} */

/* queries for type */
@media (min-width: 768px) {
  h1 {
    font-size: 60px;
  }

  .stand-first {
    font-size: 26px;
  }

  .intro {
    font-size: 30px;
    margin: 0 0 60px;
  }

  p {
    margin: 0 0 30px;
  }
}

ul {
  margin: 0 0 30px;
}

@media (min-width: 768px) {
  ul {
    margin: 0 0 50px;
  }
}

figure {
  margin: 0 0 30px;
  position: relative;
}
@media (min-width: 768px) {
  figure {
    margin: 0 0 50px;
  }
}
figcaption {
  bottom: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 300;
  left: 0;
  width: 100%;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Generic detail page styles */
.intro {
  color: var(--text-primary);
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 23px;
}
.stand-first {
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* Hero image area */
.hero {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), linear-gradient(180deg, rgba(0, 0, 0, 0) 37.5%, #000000 90%), url(https://storage.googleapis.com/globalwarming-media/images/background-hero-homepage-compres.2e16d0ba.fill-1920x1600.jpg);
  background-size: cover;
  background-position: center;
  padding: 30px 0 200px 0;
  position: relative;
  margin: 0 0 30px;
}
@media screen and (min-width: 768px) {
  .hero {
    padding: 60px 0 400px 0;
    margin: 0 0 40px;
  }
}
.hero-gradient-mask {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), linear-gradient(180deg, rgba(0, 0, 0, 0) 37.5%, #000000 90%), url(https://storage.googleapis.com/globalwarming-media/images/background-hero-homepage-compres.2e16d0ba.fill-1920x1600.jpg);
  background-size: cover;
  background-position: right;
  /*border-top-right-radius: 20px; 
  border-bottom-right-radius: 20px; */
  box-shadow: 0 4px 6px rgba(0,0,0,0.19), 0 4px 6px rgb(0 0 0 / 29%);
}

.hero-main-article  {
  border-right: 1px solid white;
}

@media (max-width: 768px) {
  .hero-gradient-mask {
    border-radius: 0px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.19), 0 4px 6px rgb(0 0 0 / 29%);
  }
  
}

@media (max-width: 991px) {
  .hero-main-article  {
    border-right: none;
    border-bottom: 1px solid white;
  }
}

/* .subscribe {
  background-image: linear-gradient(to right, rgba(40, 97, 116,0.75), rgba(40, 97, 116,0.75));
} */

blockquote {
  border-left: 5px solid #d4566b;
  margin: 0 0 50px;
}
blockquote p {
  font-size: 30px;
  margin: 0 0 10px;
  padding-left: 1rem;
}
blockquote footer::before {
  display: none;
}
blockquote footer p {
  font-size: 1.8em;
  font-style: italic;
}
cite {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  color: var(--text-light);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.15em;
}

@media screen and (min-width: 768px) {
  .header,
  .footer {
    padding-right: 0;
    padding-left: 0;
  }
}

/* ==========================================================================
   Premium Site Header
   ========================================================================== */

.site-header {
  position: relative;
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
}

/* Left Section: Menu + Logo */
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.header-menu-toggle:hover {
  background: var(--bg-hover);
  color: var(--link-color);
}

.header-logo {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-logo:hover {
  color: var(--link-color);
  text-decoration: none;
}

.header-logo svg path {
  fill: var(--text-primary);
}

.header-logo svg {
  height: 26px;
  width: auto;
}

/* Center: Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  margin-top: -3px;
  margin-left: 40px;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.header-nav-list li {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-nav-list a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  transition: color 0.2s ease;
}

.header-nav-list a:hover {
  color: var(--link-color);
  text-decoration: none;
}

/* Right: Search */
.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

/* Expandable Search */
.header-search-container {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 2;
}

.header-search-toggle:hover {
  color: var(--link-color);
  background: var(--bg-hover);
}

.header-search-toggle .search-icon,
.header-search-toggle .close-icon {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
}

.header-search-toggle .close-icon {
  display: none;
}

.header-search-container.active .header-search-toggle .search-icon {
  display: none;
}

.header-search-container.active .header-search-toggle .close-icon {
  display: flex;
}

.header-search-form {
  display: flex;
  align-items: center;
  position: absolute;
  right: 44px;
  width: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-input);
  border-radius: 24px;
  opacity: 0;
}

.header-search-container.active .header-search-form {
  width: 280px;
  opacity: 1;
  padding: 4px 4px 4px 16px;
}

.header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  padding: 10px 0;
  width: 100%;
}

.header-search-input::placeholder {
  color: var(--text-muted);
}

.header-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--accent-vibrant);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.header-search-submit:hover {
  background: var(--link-hover);
  transform: scale(1.05);
}

/* Responsive Header */
@media (max-width: 992px) {
  .header-nav {
    display: none;
  }

  .header-logo svg {
    height: 22px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
    height: 60px;
  }

  .header-left {
    gap: 14px;
  }

  .header-search-container.active .header-search-form {
    width: 200px;
  }

  .header-search {
    display: none;
  }

  .header-logo svg {
    height: 20px;
  }

  .header-btn-outline {
    display: none;
  }

  .header-menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .header-menu-toggle svg {
    width: 24px;
    height: 24px;
  }

  .header-search-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .header-search-toggle svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 56px;
  }

  .header-logo svg {
    height: 18px;
  }

  .header-menu-toggle {
    width: 44px;
    height: 44px;
  }

  .header-menu-toggle svg {
    width: 24px;
    height: 24px;
  }
}

/* Legacy header styles (keeping for compatibility) */
.header {
  width: 100%;
  background: white;
  z-index: 10;
}
.headerSection {
  margin-top: 30px;
  margin-bottom: 10px;
  height: 38px;
}
.header h3 {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 40px;
}
.top-nav {
  border-bottom: 1px solid var(--border-color);
}

.bottom-nav {
  border-bottom: 1px solid var(--border-color);
}

.bottom-nav a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.bottom-nav a:hover {
  color: var(--link-color);
}

.top-nav-button {
  background-color: transparent;
  color: var(--accent-vibrant);
  border: 1px solid var(--accent-vibrant);
  border-radius: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.top-nav-button:hover {
  color: #fff;
  background-color: var(--link-hover);
  border-color: var(--link-hover);
}

/* Secondary Navigation */
.secondary-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.secondary-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.secondary-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.secondary-nav-list li {
  margin: 0;
}

.secondary-nav-list a {
  display: block;
  padding: 16px 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.secondary-nav-list a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-vibrant);
  transition: width 0.2s ease;
}

.secondary-nav-list a:hover {
  color: var(--accent-vibrant);
  text-decoration: none;
  background: rgba(59, 189, 196, 0.05);
}

.secondary-nav-list a:hover::after {
  width: 60%;
}

/* Responsive Secondary Nav */
@media (max-width: 768px) {
  .secondary-nav {
    display: none;
  }
}

/* ==========================================================================
   Sidebar Navigation - Premium Design
   ========================================================================== */

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  background: rgba(0, 0, 0, 0);
  z-index: 99998;
  pointer-events: none;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.open {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

/* Sidebar Panel */
.sidebar-nav-panel {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 320px;
  max-width: 85vw;
  height: 100vh !important;
  height: 100dvh !important; /* dynamic viewport height for mobile */
  margin: 0 !important;
  padding: 0;
  background: var(--sidebar-bg);
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.sidebar-nav-panel.open {
  transform: translateX(0) !important;
  visibility: visible !important;
}

/* Hide header elements when sidebar is open */
body.sidebar-open .header,
body.sidebar-open .search-container,
body.sidebar-open .search-label {
  z-index: 1 !important;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
  background: var(--bg-hover);
  color: var(--link-color);
}

.sidebar-logo svg path {
  fill: var(--text-primary);
}

.sidebar-logo {
  display: flex;
  align-items: center;
}

.sidebar-logo svg {
  height: 20px;
  width: auto;
}

/* Sidebar Search */
.sidebar-search {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.sidebar-search-input:focus-within {
  background: var(--bg-primary);
  box-shadow: 0 0 0 2px var(--link-color);
}

.sidebar-search-input input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  outline: none;
}

.sidebar-search-input input::placeholder {
  color: var(--text-muted);
}

/* Sidebar Menu */
.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar-menu-item {
  margin: 0;
  padding: 0;
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-light);
  min-height: 56px;
}

.sidebar-menu-item a:hover {
  background: var(--bg-hover);
  color: var(--link-color);
  padding-left: 28px;
}

.sidebar-menu-item a svg {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
  color: var(--link-color);
}

.sidebar-menu-item a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-menu-item .menu-text {
  position: relative;
}

.sidebar-menu-item a:hover .menu-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--link-color);
  animation: slideIn 0.2s ease forwards;
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Sidebar Subscribe */
.sidebar-subscribe {
  padding: 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.sidebar-subscribe h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.sidebar-subscribe p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.sidebar-subscribe form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-subscribe input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.sidebar-subscribe input[type="email"]:focus {
  outline: none;
  border-color: var(--link-color);
  box-shadow: 0 0 0 3px rgba(59, 189, 196, 0.1);
}

.sidebar-subscribe button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: var(--accent-vibrant);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-subscribe button:hover {
  background: var(--link-hover);
  transform: translateY(-1px);
}

.sidebar-subscribe button svg {
  transition: transform 0.2s ease;
}

.sidebar-subscribe button:hover svg {
  transform: translateX(4px);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
}

.sidebar-social {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.sidebar-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: all 0.2s ease;
  background: var(--bg-hover);
}

.sidebar-social a:hover {
  color: #fff;
  background: var(--link-color);
  transform: translateY(-2px);
}

/* Legacy sidebar styles (keeping for compatibility) */
.more-menu {
  top: 65;
  left: 0;
  right: 0;
  visibility: visible;
  opacity: 1;
  z-index: 100;
  position: fixed;
}
.more-sidebar {
  width: 340px;
  transition: transform .3s ease;
  overflow: auto;
  border-right-width: 1px;
  border-color: var(--border-color);
  background-color: white;
  height: 100%;
}
.sidebar-nav {
  padding-left: 15px;
  list-style: none;
}
.sidebar-nav-pills {
  color: var(--accent-vibrant);
  background-color: transparent;
  font-weight: 400;
}

.sidebar-nav-pills>li>a {
  border-radius: 0;
  border-top: 1px solid transparent;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-top: -1px;
  padding: 10px 10px;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .sidebar-nav-pills>li>a {
    padding: 10px 20px;
    font-size: 14px;
  }
}

.sidebar-container {
    position: fixed;
    top: 0;
    min-width: 350px;
    min-height: 400px;
    height: 100%;
    z-index: 1000;
    box-shadow: 0px 1px 14px 0px #353030;
}

.sidebar.collapse.show,
.sidebar.collapse.show + .col {
    transition: .233s cubic-bezier(0,0,.21,1);
    left: 0;
}

.sidebar.collapse ,
.sidebar.collapsing,
.sidebar.collapsing + .col {
    transition: .233s cubic-bezier(0,0,.21,1);
    z-index: 10500;
    left: -100%;
}
/* Logo */
.logo, .logo:visited, .logo:focus {
  display: inline-block;
  padding: 0;
  color: #000000 !important;;
  font-size: 30px;
  font-weight: 300;
  margin: 0 0 0;
}
.logo:hover {
  text-decoration: none;
}
.search {
  margin: 0 0 0 15px;
  position: relative;
}

.row.collapse.show,
.row.collapse.show + .col {
    transition: .233s ease-in-out; /*cubic-bezier(0.18, 0.89, 0.32, 1.28); */
}

.row.collapsing,
.row.collapsing + .col {
  transition: .233s ease-in-out; /*cubic-bezier(0.6, -0.28, 0.74, 0.05);*/
  z-index: 10500;
}

.row.collapse.show {
  display: -webkit-inline-box;
}

.search-input--mobile {
  padding: 10px 0px 10px 40px;
}

@media (min-width: 400px) {
  .search {
    display: inline-block;
    margin: 0 0 0 15px;
    height: 45px;
  }
}

.search-box {
  transition: width 0.6s, border-radius 0.6s, background 0.6s, box-shadow 0.6s;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: #ebebeb;
}
.search-box + label .search-icon {
  color: black;
}
.search-box:hover {
  color: white;
  background: #c8c8c8;
  box-shadow: 0 0 0 5px #3d4752;
}
.search-box:hover + label .search-icon {
  color: white;
}
.search-box:focus {
  transition: width 0.6s cubic-bezier(0, 1.22, 0.66, 1.39), border-radius 0.6s, background 0.6s;
  border: none;
  outline: none;
  box-shadow: none;
  padding-left: 40px;
  cursor: text;
  width: 100%;;
  border-radius: auto;
  background: #ebebeb;
  color: black;
  z-index: 1;
}
.search-box:focus + label .search-icon {
  color: black;
}
.search-box:not(:focus) {
  text-indent: -5000px;
}

.search-icon-new {
  position: relative;
  color: white;
  cursor: pointer;
}

.search-icon-new svg {
  fill: var(--accent-vibrant);
  height: 20px;
  width: 20px;
}

.search-label {
  margin-top: 6px;
}

@media (max-width: 1100px) {
  .search-box:focus {
    width: 85vw;
  }
}

@media (max-width: 768px) {
  .search-label {
    margin-top: 9px;
  }
  .search-box:focus {
    width: 90vw;
  }
}

.search-icon {
  display: block;
  display: inline-block;
  height: 20px;
  position: absolute;
  left: 0px;
  top: 10px;
  width: 20px;
}

.search-icon svg {
  fill: #BCBFC2;
  height: 20px;
  width: 20px;
}

/* Main menu */
#main-navigation {
  padding-left: 0;
}
@media (min-width: 768px) {
  nav {
    margin: 15px 0 0 0;
    display: block;
  }
}
.nav-pills>li+li {
  margin-left: 0;
}
.nav-pills>li>a {
  border-radius: 0;
  border-top: none;
  border-bottom: 2px solid transparent;
  color: #4a4a4a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 20px;
  transition: all 0.2s ease;
}
.nav-pills>li>a, .nav-pills>li>a:focus,
.nav-pills>li, .nav-pills>li, .nav>li>a, .nav>li>a {
  border-radius: 0;
  color: #4a4a4a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 500 !important;
  padding: 12px 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 20px;
}
.nav-pills>li>a:hover,
.nav>li>a:hover {
  color: #ff3d00 !important;
  border-bottom: 2px solid #ff3d00;
  background-color: transparent;
}
/* The following is to stop a pixel shift on hover */
.nav-pills>.breads {
  width: 90px;
}
.nav-pills>.locations {
  width: 140px;
}
.nav-pills>.blog {
  width: 86px;
}
.nav-pills>.gallery {
  width: 115px;
}
.nav-pills>.contactus {
  /*width: 148px;*/
}
.nav-pills>.about {
  /*width: 88px;*/
}
.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover,
.nav-pills>li.active, .nav>li>a:focus {
  color: #ff3d00 !important;
  border-bottom: 2px solid #ff3d00;
  background-color: transparent;
  font-weight: 500;
}
.nav-pills> li:first-of-type > a {
  padding-left: 0;
}
.nav .open>a, .nav .open>a:focus, .nav .open>a:hover {
  background-color: transparent;
  border-top: 1px solid #d4566b;
}

.dropdown-menu {
  background-color: rgba(25,17,18,1);
  border-radius: 0;
  border: transparent;
}

.dropdown-menu > li> a {
  border-bottom: 1px solid #371c19;
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 10px 20px;
}

.dropdown-menu > li> a:hover {
  background-color: transparent;
  color: #d4566b;
}
/* Menu dropdown hack to allow toggling */
li.has-submenu a.allow-toggle {
  float: left;
  padding-right: 0;
}
.caret-custom {
    float: right;
    display: inline-block!important;
    padding: 10px 10px 15px 5px!important;
}
.caret-custom:after {
    content: "▼"!important;
}
/* Mobile menu styling */
.presentation {
  height: 40px;
  font-size: 25px;
}

@media (max-width: 768px) {
  .nav-pills>.presentation {
    float: none;
  }
  .nav-pills> li > a {
    /*border-top: 1px solid rgba(255,255,255,.1); */
    padding: 20px 0;
  }
  li.has-submenu a.allow-toggle {
    float: none;
  }
  li.has-submenu a.caret-custom {
    display: none!important;
  }
}
/* Custom page footer */
.footer {
  padding-top: 19px;
  color: var(--text-muted);
}
.footer {
  font-size: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 20px 0;
  margin: 20px 0 0;
  font-weight: 300;
  background-color: var(--footer-bg);
}

.footer a {
  color: var(--text-secondary);
}

.footer a:hover {
  color: var(--link-color);
}

.footer svg path {
  fill: var(--text-primary);
}
.footer p {
  margin: 0;
}
.container {
  width: auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container {
    max-width: 1400px;
    padding-left: 40px;
    padding-right: 40px;
  }
}
.container-narrow > hr {
  margin: 30px 0;
}

/* Breadcrumbs */
.breadcrumb-container {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  position: relative;
  z-index: 3;
  margin-top: 0;
}
.breadcrumb {
  background-color: transparent;
  color: #6c757d;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  margin-bottom: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb a {
  color: #0d1b2a;
  transition: color 0.2s ease;
  font-weight: 500;
}
.breadcrumb a:hover {
  color: var(--link-color);
  text-decoration: none;
}
.breadcrumb a i {
  color: var(--link-color);
  font-size: 14px;
}
.breadcrumb .active {
  color: var(--text-primary, #1a202c);
  font-weight: 600;
}
.breadcrumb>li+li:before {
  content: "/";
  color: #adb5bd;
  margin: 0 12px;
  font-weight: 400;
}

/* Premium Editorial Cards - Best-in-class design inspired by Guardian, USAFacts, NYT */
.article-card-link,
.article-card-link:hover,
.article-card-link:visited {
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  height: 100%;
}

.article-card-link:hover {
  text-decoration: none;
}

.article-card-vibrant {
  margin: 0;
  border-radius: 0;
  max-width: 100%;
  background: var(--bg-card);
  border: none;
  box-shadow: none;
  transition: none;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Image container with aspect ratio */
.article-card-vibrant .card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.article-card-vibrant .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #f0f0f0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card-vibrant:hover .card-img-top {
  transform: scale(1.03);
}

/* Placeholder for cards without images */
.article-card-vibrant .card-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category pill - Guardian style */
.article-card-vibrant .card-category {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent-vibrant);
  padding: 3px 8px;
  margin-bottom: 10px;
  border-radius: 2px;
}

/* Alternative category colors by type */
.article-card-vibrant .card-category.education {
  background: var(--accent-vibrant);
}

.article-card-vibrant .card-category.lifestyle {
  background: #7b2cbf;
}

.article-card-vibrant .card-category.science {
  background: #06d6a0;
}

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

/* Title - bold serif with underline animation */
.article-card-vibrant .card-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
  transition: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s ease;
  display: inline;
}

.article-card-vibrant:hover .card-title {
  background-size: 100% 1px;
  color: var(--accent-vibrant);
}

/* Excerpt text */
.article-card-vibrant .card-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

/* Read time / metadata */
.article-card-vibrant .card-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* Equal height cards in grid */
.row-eq-height {
  display: flex;
  flex-wrap: wrap;
}

.row-eq-height > [class*='col-'] {
  display: flex;
}

/* Articles Page Header - Compact */
.articles-page-header {
  background: var(--bg-card);
  padding: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.articles-page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.articles-page-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

.articles-page-subtitle {
  display: none;
}

/* Category Filter Pills - Inline */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-filter-item {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: transparent;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.category-filter-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  border-color: #ccc;
}

.category-filter-item.active {
  background: #121212;
  color: #fff;
  border-color: var(--text-primary);
}

/* Current Filter Display */
.current-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: 6px;
  margin-bottom: 32px;
}

.current-filter-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.current-filter-value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.current-filter-clear {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent-vibrant);
  text-decoration: none;
  margin-left: auto;
}

.current-filter-clear:hover {
  text-decoration: underline;
}

/* Section Title */
.articles-section-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid #121212;
}

/* Tag Filter Notice */
.tag-filter-notice {
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.tag-filter-notice p {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
}

.tag-filter-notice .clear-filter {
  margin-left: 12px;
  color: var(--accent-vibrant);
  text-decoration: none;
}

.tag-filter-notice .clear-filter:hover {
  text-decoration: underline;
}

/* No Articles Message */
.no-articles {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.no-articles p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--text-muted);
}

/* Articles index grid - editorial layout */
.articles-grid-editorial {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  margin-bottom: 60px;
}

@media (max-width: 1199px) {
  .articles-grid-editorial {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
  }
}

@media (max-width: 991px) {
  .articles-grid-editorial {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .articles-page-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .articles-page-title {
    font-size: 28px;
  }
}

@media (max-width: 575px) {
  .articles-grid-editorial {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-card-vibrant .card-title {
    font-size: 15px;
  }

  .articles-page-title {
    font-size: 24px;
  }

  .category-filter-item {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* Mobile nav */
.navbar-toggle { display:block; }

.navbar-toggle .icon-bar {
  background-color: #BCBFC2;
}

/* Pagination navigation */
nav[role=pagination] {
  margin-top: 50px;
  text-align: center;
}

/* Location list page */
.location-list-item {
  text-align: center;
  margin-bottom: 30px;
}
.location-list-title {
  line-height: 270px;
  height: 270px;
  background-color: #eb7400;
}
.location-list-title img {
  background-color: rgba(233,228,221,1);
  height: 270px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
.location-list-title:hover img {
  opacity: 0.3;
}
.location-list-title span.title {
  color: white;
  display: inline-block;
  font-weight: 300;
  position: relative;
  text-shadow: 0px 0px 30px rgba(0, 0, 0, 1);
}
.location-list-title:hover span.title {
  text-shadow: none;
}
.location-list-item address {
  font-weight: 300;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.4em;
  padding: 10px 40px;
}

/* Location detail page */
.template-location-page .intro {
  margin-bottom: 0;
}
.location-opening h3 {
  margin-top: 0;
}
span.day {
  font-weight: bold;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
time.location-time {
  display: block;
}
.map-container {
  height: 550px;
}
.location-address {
  background-color: rgba(233,228,221,1);
  padding: 10px 30px;
  margin-bottom: -200px;
  position: relative;
  z-index: 1;
}

/* Blog list view */
.blog-tags>li {
  border-right: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9em;
  margin-left: -6px;
  padding: 4px 18px;
  text-transform: uppercase;
  display: inline-block;
}
.blog-tags>li:first-child {
  margin-left: 0;
  border-left: 1px solid rgba(0,0,0,0.1);
}
.blog-list li {
  list-style: none;
}

@media (min-width: 1025px) {
.blog-list li:first-of-type, .blogpage-listing li:first-of-type,
.blog-list li:nth-child(6), .blogpage-listing li:nth-child(6),
.blog-list li:nth-child(7), .blogpage-listing li:nth-child(7),
.blog-list li:nth-child(12), .blogpage-listing li:nth-child(12) {
      width: 50%;
    }
}

.blog-list-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.blog-list-item a {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}

.blog-list-item:hover img {
    opacity: 0.3;
}

.blog-list-item .image {
  overflow: hidden;
  flex: 1 0 auto;
}

 .blog-list-item .image img {
  min-height: 170px;
  /*width: auto;
  min-width: 100%;*/
} 

.blog-list-item .text {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.6) 23%,rgba(0,0,0,1) 50%);
  margin-top: -150px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.blog-list-item .text h2 {
  color: #fff;
  font-weight: 200;
  margin-top: 0;
}

.blog-list-item .text p {
  color: #e3e3e3;
  font-size: 0.8em;
  margin-bottom: 0;
}

.blog-list-item .footer {
  background-color: var(--text-secondary);
  color: #fff;
  margin-top: 0;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* used to style tags on blog */
span.outline {
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 0.8em;
  padding: 3px 6px;
  text-transform: uppercase;
}

/* Blog detail page */
.blog-meta {
    margin-bottom: 20px;
}
.blog-avatar {
    border-radius: 100%;
    display: inline;
    width: unset;
}
.blog-avatars {
    margin-bottom: 20px;
}
.blog-avatars .author {
  display: inline-block;
  margin-right: 30px;
}

/* Bread styles */
/* Bread listview */
.bread-list-item {
  display: block;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3px;
  margin: 12px;
  overflow: hidden;
  color: inherit;
}

.bread-list-item h2 {
  font-weight: 300;
}

@media (min-width: 992px) {
  .bread-list-item {
    width: 47%;
  }
}

.bread-list-item .image {
  background-color: #eb7400;
  margin: 0;
  max-width: 180px;
  max-height: 180px;
  min-width: 180px;
  min-height: 180px;
  padding: 0;
}

.bread-list-item:hover img {
  opacity: 0.3;
}

.bread-list-item img {
  margin: 0;
  width: auto;
}

.bread-list-item ul {
  padding-left: 2px;
}

.bread-list-item li {
  list-style: none;
}

.bread-list-item li span {
  color: #777;
  display: inline-block;
  font-weight: 600;
  width: 70px;
}

/* Bread detail page */
.bread-detail .introduction {
  color: #777;
  font-size: 1.4em;
  margin-top: 40px;
}

.bread-detail figure {
  margin: 35px auto 20px auto;
  overflow: hidden;
}

.bread-detail figure img {
  height: auto;
}

.bread-detail ul.bread-meta {
  list-style: none;
  padding-left: 0;
}

.bread-detail ul.bread-meta li ul {
  padding-left: 0;
}

.bread-detail ul.bread-meta li ul li {
  border-bottom: 1px solid #ccc;
  list-style: none;
  max-width: 450px;
}

/* Articles */
/* Article detail page */
.intro::first-letter {
  font-size: 100px;
  line-height: 75px;
  color: var(--accent-vibrant);
  font-weight: 600;
  vertical-align: bottom;
  float: left;
  padding-top: 4px;
	padding-right: 6px;
	margin-bottom: 0.75rem;
}

.article-container h2 {
  color: var(--text-primary);
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 42px;
  line-height: 42px;
  margin-bottom: 15px;
}

.article-container h3 {
  color: var(--text-secondary);
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  line-height: 27px;
  margin-bottom: 15px;
}

.block-paragraph_block>p {
  color: var(--text-primary);
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 23px;
  overflow-wrap: anywhere;;
}

.block-paragraph_block>ul {
  color: var(--text-primary);
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 23px;
}

.block-paragraph_block>ol {
  color: var(--text-primary);
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 23px;
}

/* Forms */
/* Form detail page */
.form-page input, textarea, select {
  display: block;
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
@media (max-width: 766px) {
  .form-page input, textarea, select {
    width: 100%;
  }
}

.form-page li input[type=checkbox], input[type=radio] {
  display: inline-block;
  margin-right: 10px;
}

.form-page .fieldWrapper ul,
.form-page .fieldWrapper li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-page .required {
  color: red;
}

.form-page .fieldWrapper {
  margin-bottom: 15px;
}

.form-page .help {
  color: var(--text-light);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8em;
  margin-top: 10px;
  max-width: 350px;
}

/* Form thank you page */
.form-page-thanks h1 {
  margin-bottom: 30px;
}

/* Generic title image header include */
.base-header img {
  height: auto;
  margin-top: 20px;
  max-width: 100%;
  width: auto;
}

@media (max-width: 970px) {
  .base-header img {
    width: 100%;
  }
}

.article-title {
  font-size: 45px; 
  line-height: 50px; 
  letter-spacing: -3px;
  font-weight: 700; 
  color: white;
}

@media (max-width: 766px) {
  .article-title {
    font-size: 36px; 
    line-height: 36px; 
    font-weight: 700; 
    color: white;
  }
}

/* Homepage */

.homepage .hero {
  margin: 0;
  padding: 200px 0 30px 0;
}

.homepage .hero h1 {
  font-size: 2.2em;
  text-transform: uppercase;
}

.homepage .hero h1:after {
  background-color: rgba(255,255,255, 0.7);
  content: "";
  display: block;
  height: 5px;
  margin: 20px auto;
  width: 250px;
}

.homepage .home-hero {
  margin-bottom: 0;
  padding-bottom: 60px;
  text-align: center;
}
.homepage .home-hero .lead {
  color: #ddd;
  font-size: 1.6em;
  margin: 40px auto;
}

.homepage .home-hero .hero-cta-link {
  color: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 10px 34px 10px 10px;
  display: inline-block;
  vertical-align: middle;
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px transparent;
  position: relative;
  transition-duration: 0.1s;
}

.homepage .home-hero .hero-cta-link:hover:before,
.homepage .home-hero .hero-cta-link:focus:before,
.homepage .home-hero .hero-cta-link:active:before {
  transform: translateX(4px);
}
.homepage .streamfield {
  background: linear-gradient(45deg, rgba(170,170,170,1) 0%,rgba(238,238,238,1) 44%);
}
.homepage .streamfield-column {
  padding: 60px;
  margin: 0 auto;
  float: none;
}
.homepage .streamfield-column h1,
.homepage .streamfield-column h2,
.homepage .streamfield-column h3,
.homepage .streamfield-column h4,
.homepage .streamfield-column h5 {
  text-align: center;
}
.homepage .promo-row {
  padding: 40px 0 40px 0;
}
.homepage .promo {
  background: linear-gradient(190deg, rgba(0,4,8,1) 0%,rgba(55,28,25,1) 100%);
  border-radius: 0px 0px 10px 10px;
  color: #fff;
  height: 100%;
  margin-bottom: 20px;
  margin-top: -40px;
  padding: 40px 60px;
  text-align: center;
}
.homepage .promo h1,
.homepage .promo h2,
.homepage .promo h3,
.homepage .promo h4 {
  color: #eb7400;
  font-weight: 200;
}
.homepage .promo p,
.homepage .promo li {
  color: #ccc;
  line-height: 1.6em;
}
.homepage .promo a {
  color: #fff;
}
@media (max-width: 970px) {
  .homepage .promo {
    padding: 30px 40px;
  }
  .homepage .promo figure img {
    max-width: 120px;
    height: auto;
  }
  .homepage .promo p {
    color: #fff;
    font-size: 1em;
  }
}
@media (max-width: 766px) {
  .homepage .promo {
    margin-left: 15px;
    margin-right: 15px;
  }
}
.homepage .promo figure img {
  border-radius: 100%;
  margin: auto;
  width: auto;
}
.homepage .feature-1 h2 {
  margin-top: 0;
  margin-bottom: 20px;
}
.homepage .feature-1 .featured-children li {
  border: 1px solid #ccc;
  border-radius: 3px;
  list-style: none;
  margin-bottom: 10px;
}
.homepage .feature-1 .featured-children li figure {
  width: 100%;
  overflow: hidden;
  margin: 0;
}
.homepage .feature-1 .featured-children li img {
  width: auto;
}
.homepage .feature-1 .featured-children li h3 {
  margin-top: 40px;
  font-weight: 300;
  font-size: 1.4em;
}
.homepage .feature-2 {
  padding: 40px 0 20px;
}
.homepage .feature-2 .feature-2-row {
  display: flex;
  flex-wrap: wrap;
}
.homepage .feature-2 h2,
.homepage .feature-3 h2 {
  text-align: center;
  margin: 20px;
}
.homepage .feature-2 .feature-2-item {
  display: flex;
  flex-direction: column;
  margin: 0 auto 20px;
}
.homepage .feature-2 .featured-children li {
  list-style: none;
}
.homepage .feature-2 .feature-2-item figure {
  margin-bottom: 0;
}
.homepage .feature-2 .feature-2-item img {
  min-height: 210px;
}
.homepage .feature-2 .feature-2-item .feature-2-text {
  background-color: #dfdfdf;
  border-radius: 0 0 10px 10px;
  padding: 0 20px;
  flex: 1;
}
.homepage .feature-2 figure,
.homepage .feature-3 figure {
  background-color: #eb7400;
  margin: 0;
}
@media (max-width: 766px) {
  .homepage .feature-2 .feature-2-row {
    display: inline-block;
  }
}
.homepage .feature-3 .featured-children li {
  list-style: none;
}
.homepage .feature-3 h3 {
  color: #fff;
  font-weight: 300;
  font-size: 1.8em;
  margin-bottom: 135px;
  margin-top: -145px;
  position: relative;
  text-align: center;
  text-shadow: 0px 0px 30px rgba(0, 0, 0, 1);
  z-index: 1;
}
.homepage .feature-2 li:hover img,
.homepage .feature-3 li:hover img {
  opacity: 0.3;
}

.homepage-education {
  /* Background */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%), url('https://static.globalwarming.com/media/static/background-homepage-globe.jpeg');
  background-size: cover;
  color: white;
}

.homepage-eduction-block-primary {
  background-color: #249FB5;
  background-color: rgba(42, 116, 129, 0.20);
}

/* linear-gradient(180deg, rgba(36, 159, 181, 0.3) 50%, rgba(36, 159, 181, 0.62) 100%) */
.homepage-eduction-block {
  background: linear-gradient(180deg, rgb(42 116 129 / 20%) 50%, rgb(42 116 129 / 75%) 100%), url('https://static.globalwarming.com/media/static/background-homepage-globe.jpeg');
  background-size: cover;
  color: white;
  background-position: center;
  box-shadow: 3px 1px 7px 2px #353030;
}

.homepage-eduction-block-secondary {
  background-color: var(--accent-vibrant);
  background-color: rgba(59, 189, 196,0.75);
  border-radius: 10px;
  height: 15em;
  -moz-box-shadow: 0px -1px 4px 0px #353030;
  -webkit-box-shadow: 0px -1px 4px 0px #353030;
  box-shadow: 0px -1px 4px 0px #353030;
}

@media (max-width: 768px) {
  .homepage-eduction-block-secondary {
    height: 9em;
    border-radius: 10px !important;
  }
  
}

/* Miscellaneous helper styles */
/* No gutters */
.row.no-gutters {
  margin-right: 0;
  margin-left: 0;
}
@media (max-width: 970px) {
  .row.no-gutters {
    display: block;
  }
}
.row.no-gutters > [class^="col-"],
.row.no-gutters > [class*=" col-"] {
  padding-right: 0;
  padding-left: 0;
}

/* Bootstrap Equal height rows */
.row-eq-height {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display:         flex;
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .hidden-md-up {
    display: none;
  }
}
@media (max-width: 991px) {
  .hidden-md-down {
    display: none;
  }
}

/* From Wagtail core */
.richtext-image.left{
    float:left;
    width: 50%;
}
.richtext-image.right{
    float:right;
    width: 50%;
}

/* Subscribe */

.subscribe-container {
  color: white;
  background-size:     cover;                      /* <------ */
  background-repeat:   no-repeat;
  background-position: center center; 
  background-image:  url(https://static.globalwarming.com/media/images/subscribe-small-background-compressed.jpg);
}

.subscribe-btn {
  color: #fff;
  background-color: #343a40;
  border-color: #343a40;
  border-radius: 5px;
}


/* bootstrap overrides */
.btn:focus {
  box-shadow: none;
}

.card-img-top {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.card-shadow {
  box-shadow: rgb(0 0 0 / 20%) 0px 3px 3px -2px, rgb(0 0 0 / 14%) 0px 3px 4px 0px, rgb(0 0 0 / 12%) 0px 1px 8px 0px;
}


/* Carousal */
@media (min-width: 768px) {
  /* show 4 items */
  .carousel-inner .active,
  .carousel-inner .active + .carousel-item,
  .carousel-inner .active + .carousel-item + .carousel-item,
  .carousel-inner .active + .carousel-item + .carousel-item + .carousel-item {
    display: block;
  }

  .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left),
  .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item,
  .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item + .carousel-item,
  .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item + .carousel-item + .carousel-item {
    transition: none;
  }

  .carousel-inner .carousel-item-next,
  .carousel-inner .carousel-item-prev {
    position: relative;
    transform: translate3d(0, 0, 0);
  }

  .carousel-inner .active.carousel-item + .carousel-item + .carousel-item + .carousel-item + .carousel-item {
    position: absolute;
    top: 0;
    right: -25%;
    z-index: -1;
    display: block;
    visibility: visible;
  }

  /* left or forward direction */
  .active.carousel-item-left + .carousel-item-next.carousel-item-left,
  .carousel-item-next.carousel-item-left + .carousel-item,
  .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item,
  .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item + .carousel-item,
  .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item + .carousel-item + .carousel-item {
    position: relative;
    transform: translate3d(-100%, 0, 0);
    visibility: visible;
  }

  /* farthest right hidden item must be absolue position for animations */
  .carousel-inner .carousel-item-prev.carousel-item-right {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    display: block;
    visibility: visible;
  }

  /* right or prev direction */
  .active.carousel-item-right + .carousel-item-prev.carousel-item-right,
  .carousel-item-prev.carousel-item-right + .carousel-item,
  .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item,
  .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item + .carousel-item,
  .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item + .carousel-item + .carousel-item {
    position: relative;
    transform: translate3d(100%, 0, 0);
    visibility: visible;
    display: block;
    visibility: visible;
  }
}


/* Contact us */
.fieldWrapper>label {
  font-size: 16px;
  list-style: 24px;
}

/* ==========================================================================
   MODERN EDITORIAL HOMEPAGE
   ========================================================================== */

.editorial-home {
  font-family: 'Inter', -apple-system, sans-serif;
}

.editorial-home a,
.editorial-home a:hover,
.editorial-home a:visited {
  color: var(--text-primary);
  text-decoration: none;
}

/* Hero Section */
.editorial-home .hero {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.9) 100%), url(https://storage.googleapis.com/globalwarming-media/images/background-hero-homepage-compres.2e16d0ba.fill-1920x1600.jpg);
  background-size: cover;
  background-position: center;
  padding: 120px 0 80px;
  color: #fff;
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Animated particles overlay */
.editorial-home .hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.2), transparent);
  background-size: 200px 200px;
  animation: float-particles 20s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes float-particles {
  0% { transform: translateY(0); }
  100% { transform: translateY(-200px); }
}

.editorial-home .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Animated badge */
.editorial-home .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 61, 0, 0.9);
  padding: 10px 20px;
  border-radius: 30px;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out;
}

.editorial-home .hero-badge .pulse {
  width: 10px;
  height: 10px;
  background: var(--bg-card);
  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.2); }
}

.editorial-home .hero-badge .badge-text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Hero title with dramatic effect */
.editorial-home .hero-title {
  font-size: 80px;
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.editorial-home .hero-title .title-line {
  display: block;
  animation: fadeInUp 0.8s ease-out backwards;
}

.editorial-home .hero-title .title-line:nth-child(1) {
  animation-delay: 0.2s;
  opacity: 0.9;
}

.editorial-home .hero-title .title-line:nth-child(2) {
  animation-delay: 0.4s;
}

.editorial-home .hero-title .title-highlight {
  background: linear-gradient(135deg, #ff3d00 0%, #ff6b35 50%, #ffd23f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.editorial-home .hero-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 550px;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Hero stats */
.editorial-home .hero-stats {
  display: flex;
  gap: 50px;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.editorial-home .hero-stat {
  position: relative;
}

.editorial-home .hero-stat::after {
  content: '';
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.editorial-home .hero-stat:last-child::after {
  display: none;
}

.editorial-home .hero-stat .stat-number {
  display: block;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.editorial-home .hero-stat .stat-unit {
  font-size: 24px;
  color: #ff6b35;
}

.editorial-home .hero-stat .stat-desc {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

/* CTA buttons */
.editorial-home .hero-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 1s backwards;
}

.editorial-home .hero-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff3d00 0%, #ff6b35 100%);
  color: #fff;
  padding: 18px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 61, 0, 0.3);
}

.editorial-home .hero-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 61, 0, 0.4);
}

.editorial-home .hero-cta .btn-primary i {
  transition: transform 0.3s ease;
}

.editorial-home .hero-cta .btn-primary:hover i {
  transform: translateX(5px);
}

.editorial-home .hero-cta .btn-secondary {
  color: #fff;
  padding: 18px 32px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.editorial-home .hero-cta .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Trending section */
.editorial-home .hero-trending {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 400px;
  animation: fadeInUp 0.8s ease-out 1.2s backwards;
}

.editorial-home .trending-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff6b35;
  margin-bottom: 20px;
}

.editorial-home .trending-label i {
  animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.editorial-home .trending-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editorial-home .trending-item {
  display: block;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.editorial-home .trending-item:hover {
  background: rgba(255,255,255,0.1);
  border-left-color: #ff6b35;
  transform: translateX(5px);
}

.editorial-home .trending-category {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #00f5d4;
  margin-bottom: 6px;
}

.editorial-home .trending-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

/* Scroll indicator */
.editorial-home .hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.editorial-home .hero-scroll-indicator i {
  font-size: 14px;
}

/* Stats Strip */
.editorial-home .stats-strip {
  background: var(--bg-card);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.editorial-home .stats-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.editorial-home .stat {
  text-align: center;
  padding: 0 16px;
}

.editorial-home .stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #ff3d00;
  letter-spacing: -0.5px;
}

.editorial-home .stat:nth-child(2) .stat-value {
  color: #00b4d8;
}

.editorial-home .stat:nth-child(3) .stat-value {
  color: #06d6a0;
}

.editorial-home .stat:nth-child(4) .stat-value {
  color: #7b2cbf;
}

.editorial-home .stat-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #0d1b2a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 600;
}

/* Articles Section */
.editorial-home .articles-section {
  padding: 48px 0;
}

.editorial-home .articles-section.alt {
  background: var(--bg-secondary);
}

.editorial-home .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #121212;
}

.editorial-home .section-header h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--text-primary);
}

.editorial-home .section-header .view-all {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-vibrant);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  text-decoration: none;
}

.editorial-home .section-header .view-all:hover {
  color: #a00;
  text-decoration: underline;
}

.editorial-home .section-header .view-all i,
.editorial-home .section-header .view-all .icon-arrow {
  margin-left: 4px;
  font-size: 10px;
}

/* Articles Grid */
.editorial-home .articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.editorial-home .articles-grid.small {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

/* Homepage cards - Premium editorial style */
.editorial-home .article-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.editorial-home .article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: var(--border-color);
}

.editorial-home .article-card a,
.editorial-home .article-card a:hover,
.editorial-home .article-card a:visited {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--text-primary);
}

/* Image with zoom effect */
.editorial-home .card-image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.editorial-home .article-card:hover .card-image {
  transform: scale(1.03);
}

.editorial-home .articles-grid.small .card-image {
  aspect-ratio: 16 / 9;
}

.editorial-home .card-image.placeholder {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.editorial-home .card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.editorial-home .articles-grid.small .card-content {
  padding: 14px;
}

/* Category pill - Guardian style */
.editorial-home .card-content .category {
  display: inline-block;
  width: fit-content;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent-coral);
  padding: 3px 8px;
  margin-bottom: 10px;
  border-radius: 2px;
}

/* Title - bold serif with underline animation */
.editorial-home .card-content h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
  background-image: linear-gradient(#121212, #121212);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s ease, color 0.3s ease;
  display: inline;
}

.editorial-home .article-card:hover .card-content h3 {
  background-size: 100% 1px;
  color: var(--accent-vibrant);
}

.editorial-home .articles-grid.small .card-content h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

/* Excerpt text */
.editorial-home .card-content p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 8px;
  flex: 1;
}

.editorial-home .card-content time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* External Stories Section */
.external-stories-section {
  padding: 48px 0;
  background: var(--bg-card);
}

.external-stories-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #121212;
}

.external-stories-section .section-header h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--text-primary);
}

.external-stories-section .source-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-vibrant);
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.external-stories-section .source-badge i {
  margin-right: 4px;
}

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

.story-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: var(--border-color);
}

.story-card a,
.story-card a:hover,
.story-card a:visited {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
}

.story-content {
  padding: 20px;
}

.story-content time {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.story-content h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 12px;
  transition: color 0.2s ease;
}

.story-card:hover .story-content h3 {
  color: var(--accent-vibrant);
}

.story-content .external-link {
  display: inline-flex;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-vibrant);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.story-content .external-link i {
  margin-left: 4px;
  font-size: 9px;
}

.no-stories {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  padding: 40px;
}

@media (max-width: 1199px) {
  .stories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

  .external-stories-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Quote Section */
.editorial-home .quote-section {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
  padding: 80px 0;
}

.editorial-home .quote-section blockquote {
  text-align: center;
  margin: 0;
  padding: 0;
}

.editorial-home .quote-section blockquote p {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 40px;
}

.editorial-home .quote-section blockquote footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.editorial-home .quote-section blockquote footer img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.editorial-home .quote-section blockquote footer div {
  text-align: left;
}

.editorial-home .quote-section blockquote cite {
  display: block;
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.editorial-home .quote-section blockquote footer span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* Newsletter Section */
.editorial-home .newsletter-section {
  padding: 60px 0;
  background: var(--bg-card);
}

.editorial-home .newsletter-box {
  background: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 100%);
  padding: 48px;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.editorial-home .newsletter-box h3 {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
  color: #fff;
}

.editorial-home .newsletter-box p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 28px;
}

.editorial-home .newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.editorial-home .newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'IBM Plex Mono', monospace;
}

.editorial-home .newsletter-form input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.editorial-home .newsletter-form button {
  background: #ff3d00;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.editorial-home .newsletter-form button:hover {
  background: #e63600;
  transform: translateY(-2px);
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */

.about-page {
  background: var(--bg-card);
}

/* About Hero */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 120px 0 80px;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #00f5d4;
  margin-bottom: 20px;
}

.about-hero h1 {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.about-tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* Mission Section */
.about-mission {
  padding: 80px 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.mission-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.mission-content .lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-weight: 500;
}

.mission-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.mission-content strong {
  color: var(--text-primary);
}

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

.vision-card {
  background: linear-gradient(135deg, #ff3d00 0%, #ff6b35 100%);
  border-radius: 16px;
  padding: 35px;
  color: #fff;
  margin-bottom: 25px;
}

.vision-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.vision-icon i {
  font-size: 22px;
}

.vision-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
}

.vision-card p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.95;
  margin: 0;
}

.values-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 30px;
}

.values-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.values-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

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

.values-card li i {
  color: #00c853;
  font-size: 14px;
}

/* Leadership Section */
.about-leadership {
  background: var(--bg-secondary);
  padding: 80px 0;
}

.about-leadership .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ff3d00;
  margin-bottom: 15px;
}

.about-leadership .section-header h2 {
  font-size: 42px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.about-leadership .section-header p {
  font-size: 18px;
  color: var(--text-muted);
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.team-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  width: 280px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.team-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-overlay i {
  font-size: 40px;
  color: #fff;
}

.team-info {
  padding: 25px;
  text-align: center;
}

.team-info h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.team-role {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff3d00;
  margin-bottom: 10px;
}

.team-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* About CTA */
.about-cta {
  background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff3d00 0%, #ff6b35 100%);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 61, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 61, 0, 0.4);
  color: #fff;
}

.cta-button i {
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(5px);
}

/* About Page Responsive */
@media (max-width: 991px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mission-sidebar {
    position: static;
  }

  .about-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 575px) {
  .about-hero {
    padding: 80px 20px 60px;
  }

  .about-hero h1 {
    font-size: 32px;
  }

  .about-tagline {
    font-size: 16px;
  }

  .about-mission {
    padding: 50px 0;
  }

  .mission-content h2 {
    font-size: 28px;
  }

  .about-leadership {
    padding: 50px 0;
  }

  .about-leadership .section-header h2 {
    font-size: 32px;
  }

  .team-card {
    width: 100%;
    max-width: 320px;
  }

  .about-cta {
    padding: 50px 20px;
  }

  .cta-content h2 {
    font-size: 28px;
  }
}

/* ==========================================================================
   Standard Page Styles (Terms, Privacy, etc.)
   ========================================================================== */

.standard-page {
  background: var(--bg-card);
}

/* Standard Hero */
.standard-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 100px 0 60px;
}

.standard-hero-content {
  max-width: 800px;
}

.standard-hero h1 {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.standard-hero .last-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Standard Content */
.standard-content {
  padding: 60px 0 80px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.content-body {
  max-width: 100%;
}

.content-body h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 40px 0 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.content-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 30px 0 15px;
}

.content-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.content-body ul,
.content-body ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.content-body li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.content-body a {
  color: var(--accent-vibrant);
  text-decoration: underline;
}

.content-body a:hover {
  color: #005a8c;
}

/* Content Sidebar */
.content-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li {
  margin-bottom: 10px;
}

.sidebar-card li:last-child {
  margin-bottom: 0;
}

.sidebar-card li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.sidebar-card li a:hover {
  color: #ff3d00;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ff3d00;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #e63600;
}

/* Standard Page Responsive */
@media (max-width: 991px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 575px) {
  .standard-hero {
    padding: 80px 20px 50px;
  }

  .standard-hero h1 {
    font-size: 32px;
  }

  .standard-content {
    padding: 40px 0 60px;
  }

  .content-sidebar {
    grid-template-columns: 1fr;
  }

  .content-body h2 {
    font-size: 24px;
  }

  .content-body h3 {
    font-size: 20px;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .editorial-home .hero {
    min-height: 100vh;
    padding: 100px 0 80px;
  }

  .editorial-home .hero-title {
    font-size: 60px;
  }

  .editorial-home .hero-trending {
    position: static;
    width: 100%;
    margin-top: 50px;
  }

  .editorial-home .trending-articles {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .editorial-home .trending-item {
    flex: 1;
    min-width: 200px;
  }

  .editorial-home .hero-stats {
    gap: 30px;
  }

  .editorial-home .hero-stat .stat-number {
    font-size: 36px;
  }

  .editorial-home .hero-scroll-indicator {
    display: none;
  }

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

  .editorial-home .articles-grid.small {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .editorial-home .hero {
    padding: 80px 20px 40px;
    min-height: auto;
    min-height: -webkit-fill-available;
  }

  .editorial-home .hero-content {
    max-width: 100%;
  }

  /* Disable particles on mobile for performance */
  .editorial-home .hero-particles {
    display: none;
  }

  /* Badge - keep it prominent */
  .editorial-home .hero-badge {
    padding: 6px 12px;
    margin-bottom: 16px;
    gap: 6px;
  }

  .editorial-home .hero-badge .pulse {
    width: 6px;
    height: 6px;
  }

  .editorial-home .hero-badge .badge-text {
    font-size: 9px;
    letter-spacing: 1px;
  }

  /* Title - smaller for mobile */
  .editorial-home .hero-title {
    font-size: 36px;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1;
  }

  .editorial-home .hero-title .title-line {
    display: block;
  }

  .editorial-home .hero-title .title-highlight {
    font-size: 40px;
  }

  /* Subtitle */
  .editorial-home .hero-subtitle {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  /* Stats - compact grid on mobile */
  .editorial-home .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .editorial-home .hero-stat {
    text-align: center;
  }

  .editorial-home .hero-stat .stat-number {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
  }

  .editorial-home .hero-stat .stat-unit {
    font-size: 14px;
  }

  .editorial-home .hero-stat .stat-desc {
    font-size: 8px;
    letter-spacing: 0.3px;
    margin-top: 4px;
    line-height: 1.2;
  }

  /* CTAs - full width buttons */
  .editorial-home .hero-cta {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    gap: 10px;
  }

  .editorial-home .hero-cta .btn-primary {
    width: 100%;
    -webkit-box-pack: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 12px;
  }

  .editorial-home .hero-cta .btn-secondary {
    width: 100%;
    -webkit-box-pack: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 12px;
    text-align: center;
  }

  /* Trending section - compact cards */
  .editorial-home .hero-trending {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .editorial-home .trending-label {
    font-size: 9px;
    margin-bottom: 12px;
  }

  .editorial-home .trending-articles {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    gap: 8px;
  }

  .editorial-home .trending-item {
    padding: 12px 14px;
    min-width: auto;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
  }

  .editorial-home .trending-category {
    font-size: 8px;
    margin-bottom: 3px;
  }

  .editorial-home .trending-title {
    font-size: 12px;
    line-height: 1.3;
  }

  /* Hide scroll indicator on mobile */
  .editorial-home .hero-scroll-indicator {
    display: none;
  }

  .editorial-home .articles-grid,
  .editorial-home .articles-grid.small {
    grid-template-columns: 1fr;
  }

  .editorial-home .newsletter-form {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
  }

  .editorial-home .quote-section blockquote p {
    font-size: 18px;
  }

  .editorial-home .section-header h2 {
    font-size: 20px;
  }

  .editorial-home .article-card .card-content h3 {
    font-size: 16px;
  }

  .editorial-home .article-card .card-content p {
    font-size: 13px;
  }
}

/* ==========================================================================
   PREMIUM BLOG DESIGN - Modern Editorial Style
   ========================================================================== */

/* Blog Header */
.blog-premium-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.blog-premium-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.blog-premium-header .container {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 100%;
}

.blog-header-content {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 10px;
}

.blog-label {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-vibrant);
  background: rgba(233, 69, 96, 0.15);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.blog-main-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 52px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -1px;
}

.blog-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 500px;
  margin: 0 auto;
}

/* Category Navigation Pills */
.blog-category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-nav-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-nav-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.blog-nav-pill.active {
  background: var(--accent-vibrant);
  border-color: var(--accent-vibrant);
  color: #ffffff;
}

/* Blog Content Area */
.blog-premium-content {
  background: var(--bg-secondary);
  padding: 60px 0 100px;
  min-height: 60vh;
}

/* Filter Notice */
.blog-filter-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
}

.filter-icon {
  color: var(--accent-vibrant);
}

.clear-filter-btn {
  margin-left: auto;
  color: var(--accent-vibrant);
  text-decoration: none;
  font-weight: 500;
}

.clear-filter-btn:hover {
  text-decoration: underline;
}

/* Featured Post */
.blog-featured-post {
  margin-bottom: 60px;
}

.blog-featured-post .featured-link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.4s ease;
}

.blog-featured-post .featured-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.featured-image-wrapper {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

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

.blog-featured-post .featured-link:hover .featured-image {
  transform: scale(1.05);
}

.featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 100%);
}

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

.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.featured-category {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-coral);
  padding: 6px 14px;
  border-radius: 6px;
}

.featured-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-light);
}

.featured-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.featured-excerpt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.featured-read-more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-vibrant);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.featured-read-more .arrow {
  transition: transform 0.3s ease;
}

.blog-featured-post .featured-link:hover .featured-read-more .arrow {
  transform: translateX(4px);
}

/* Section Header */
.blog-section-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #ddd 0%, transparent 100%);
}

/* Premium Blog Grid */
.blog-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Blog Card */
.blog-card-premium {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
}

.blog-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-premium .card-link {
  text-decoration: none;
  display: block;
}

.blog-card-premium .card-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-premium .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card-premium:hover .card-image {
  transform: scale(1.08);
}

.blog-card-premium .card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card-premium .card-content {
  padding: 24px;
}

.blog-card-premium .card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.blog-card-premium .card-category-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-vibrant);
  background: rgba(233, 69, 96, 0.1);
  padding: 5px 10px;
  border-radius: 4px;
}

.blog-card-premium .card-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
}

.blog-card-premium .card-headline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.blog-card-premium:hover .card-headline {
  color: var(--accent-vibrant);
}

.blog-card-premium .card-excerpt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #777;
  margin: 0 0 18px;
}

.blog-card-premium .card-read-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  position: relative;
}

.blog-card-premium .card-read-link::after {
  content: '→';
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.blog-card-premium:hover .card-read-link::after {
  transform: translateX(4px);
}

/* Large Cards (First two after featured) */
.blog-card-premium.card-large {
  grid-column: span 1;
}

.blog-card-premium.card-large .card-image-container {
  height: 240px;
}

.blog-card-premium.card-large .card-headline {
  font-size: 22px;
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border-radius: 16px;
}

.empty-icon {
  color: #ccc;
  margin-bottom: 24px;
}

.blog-empty-state h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.blog-empty-state p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* Responsive - Blog Premium */
@media (max-width: 1199px) {
  .blog-premium-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

@media (max-width: 991px) {
  .blog-premium-header {
    padding: 60px 0 50px;
  }

  .blog-main-title {
    font-size: 40px;
  }

  .blog-featured-post .featured-link {
    grid-template-columns: 1fr;
  }

  .featured-image-wrapper {
    min-height: 280px;
  }

  .featured-content {
    padding: 35px 30px;
  }

  .featured-title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .blog-premium-header {
    padding: 50px 15px 40px;
  }

  .blog-main-title {
    font-size: 32px;
  }

  .blog-subtitle {
    font-size: 13px;
    padding: 0 10px;
  }

  .blog-category-nav {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .blog-category-nav::-webkit-scrollbar {
    display: none;
  }

  .blog-nav-pill {
    font-size: 11px;
    padding: 8px 14px;
  }

  .blog-premium-content {
    padding: 40px 15px 60px;
  }

  .blog-premium-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-featured-post {
    margin-bottom: 30px;
  }

  .featured-image-wrapper {
    min-height: 200px;
  }

  .featured-content {
    padding: 24px 20px;
  }

  .featured-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .featured-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .featured-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .featured-category {
    font-size: 10px;
  }

  .featured-date {
    font-size: 11px;
  }

  .featured-read-more {
    font-size: 13px;
  }

  .blog-section-header {
    margin: 30px 0 25px;
  }

  .section-title {
    font-size: 14px;
  }

  .blog-card-premium .card-content {
    padding: 20px;
  }

  .card-headline {
    font-size: 17px;
  }

  .blog-card-premium .card-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .blog-card-premium .card-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  .blog-premium-header {
    padding: 40px 12px 30px;
  }

  .blog-main-title {
    font-size: 26px;
  }

  .blog-subtitle {
    font-size: 12px;
  }

  .blog-label {
    font-size: 10px;
    padding: 6px 14px;
  }

  .blog-category-nav {
    gap: 6px;
  }

  .blog-nav-pill {
    font-size: 10px;
    padding: 6px 12px;
  }

  .featured-title {
    font-size: 18px;
  }

  .featured-content {
    padding: 20px 16px;
  }

  .card-headline {
    font-size: 16px;
  }

  .blog-card-premium .card-content {
    padding: 16px;
  }
}

/* ==========================================================================
   BLOG ARTICLE DETAIL PAGE - Premium Editorial Style
   ========================================================================== */

/* Article Hero */
.article-hero {
  position: relative;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-color: var(--text-primary);
  display: flex;
  align-items: flex-end;
}

.article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.article-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 60px 0;
}

.article-hero-content .container {
  max-width: 900px;
}

.article-tags-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.article-tag-pill {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent-vibrant);
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-tag-pill:hover {
  background: #d63850;
  color: #ffffff;
  text-decoration: none;
}

.article-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}

.article-meta-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.article-date,
.article-read-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.article-date svg,
.article-read-time svg {
  opacity: 0.7;
}

/* Article Content Wrapper */
.article-content-wrapper {
  background: var(--bg-card);
  padding: 80px 0;
}

.article-content-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Introduction */
.article-introduction {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
  font-style: italic;
}

/* Article Body */
.article-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-secondary);
}

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

.article-body h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 56px 0 24px;
  line-height: 1.3;
}

.article-body h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 48px 0 20px;
  line-height: 1.3;
}

.article-body h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-body a {
  color: var(--accent-vibrant);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: #d63850;
}

.article-body blockquote {
  margin: 48px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--accent-vibrant);
  background: var(--bg-secondary);
  font-style: italic;
  font-size: 20px;
  color: var(--text-secondary);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body ul,
.article-body ol {
  margin: 28px 0;
  padding-left: 28px;
}

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

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 40px 0;
}

.article-body figure {
  margin: 48px 0;
}

.article-body figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

.article-body pre,
.article-body code {
  font-family: 'IBM Plex Mono', monospace;
}

.article-body pre {
  background: #1a1a2e;
  color: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 32px 0;
}

.article-body code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-body pre code {
  background: none;
  padding: 0;
}

/* Article Footer */
.article-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.article-tags-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.tags-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

.article-tag-bottom {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.article-tag-bottom:hover {
  background: #1a1a2e;
  border-color: var(--text-primary);
  color: #ffffff;
  text-decoration: none;
}

/* Share Section */
.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.share-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.share-btn:hover {
  border-color: transparent;
}

.share-twitter:hover {
  background: #000000;
  color: #ffffff;
}

.share-facebook:hover {
  background: #1877F2;
  color: #ffffff;
}

.share-linkedin:hover {
  background: #0A66C2;
  color: #ffffff;
}

.share-copy:hover {
  background: #1a1a2e;
  color: #ffffff;
}

.share-copy.copied {
  background: #28a745;
  border-color: #28a745;
  color: #ffffff;
}

/* Related Articles Section */
.related-articles {
  background: var(--bg-secondary);
  padding: 80px 0;
}

.related-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 48px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.related-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.related-image {
  height: 180px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.related-content {
  padding: 24px;
}

.related-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-vibrant);
  margin-bottom: 12px;
}

.related-headline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 12px;
}

.related-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-light);
}

/* Article Page Responsive */
@media (max-width: 991px) {
  .article-hero {
    min-height: 400px;
  }

  .article-title {
    font-size: 38px;
  }

  .article-content-wrapper {
    padding: 60px 0;
  }

  .article-introduction {
    font-size: 20px;
  }

  .article-body {
    font-size: 18px;
  }

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

@media (max-width: 767px) {
  .article-hero {
    min-height: 350px;
  }

  .article-hero-content {
    padding: 40px 20px;
  }

  .article-title {
    font-size: 28px;
  }

  .article-meta-hero {
    gap: 16px;
  }

  .article-date,
  .article-read-time {
    font-size: 12px;
  }

  .article-content-wrapper {
    padding: 48px 20px;
  }

  .article-introduction {
    font-size: 18px;
    margin-bottom: 36px;
    padding-bottom: 36px;
  }

  .article-body {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 26px;
    margin-top: 40px;
  }

  .article-body h3 {
    font-size: 22px;
    margin-top: 36px;
  }

  .article-body blockquote {
    padding: 20px 24px;
    margin: 32px 0;
  }

  .article-footer {
    margin-top: 48px;
    padding-top: 32px;
  }

  .article-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .related-articles {
    padding: 60px 20px;
  }

  .related-title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .related-image {
    height: 200px;
  }
}

/* ============================================= */
/* Article Page Specific Styles                 */
/* ============================================= */

/* Breadcrumb Navigation */
.article-breadcrumb {
  background: var(--bg-secondary);
  padding: 16px 0;
  border-bottom: 1px solid #e9ecef;
}

.article-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-family: 'IBM Plex Mono', monospace;
}

.breadcrumb-home {
  color: #6c757d;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.breadcrumb-home:hover {
  color: var(--accent-vibrant);
}

.breadcrumb-separator {
  color: #adb5bd;
}

.breadcrumb-link {
  color: #6c757d;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--accent-vibrant);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Article Hero Tall Variant */
.article-hero-tall {
  min-height: 550px;
}

/* Article Category Tag */
.article-tag-category {
  background: rgba(59, 189, 196, 0.9);
}

/* Hero Navigation */
.article-nav-hero {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.article-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.article-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.article-nav-btn svg {
  width: 16px;
  height: 16px;
}

/* Article Pagination Section */
.article-pagination {
  background: var(--bg-secondary);
  padding: 48px 0;
  border-top: 1px solid #e9ecef;
}

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

.pagination-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pagination-item:hover {
  border-color: var(--accent-vibrant);
  box-shadow: 0 4px 12px rgba(59, 189, 196, 0.15);
  transform: translateY(-2px);
}

.pagination-empty {
  background: transparent;
  border: none;
}

.pagination-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-vibrant);
}

.pagination-label svg {
  width: 14px;
  height: 14px;
}

.pagination-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.pagination-prev .pagination-label {
  justify-content: flex-start;
}

.pagination-next {
  text-align: right;
}

.pagination-next .pagination-label {
  justify-content: flex-end;
}

/* Reddit Share Button */
.share-reddit {
  background: #ff4500;
}

.share-reddit:hover {
  background: #e03d00;
}

/* Article Pagination Mobile */
@media (max-width: 767px) {
  .article-breadcrumb .container {
    font-size: 12px;
    gap: 8px;
  }

  .article-hero-tall {
    min-height: 450px;
  }

  .article-nav-hero {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .article-nav-btn {
    justify-content: center;
    padding: 12px 16px;
  }

  .pagination-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pagination-item {
    padding: 20px;
  }

  .pagination-next {
    text-align: left;
  }

  .pagination-next .pagination-label {
    justify-content: flex-start;
  }

  .pagination-title {
    font-size: 16px;
  }

  .article-pagination {
    padding: 32px 0;
  }
}

@media (max-width: 480px) {
  .article-hero-tall {
    min-height: 400px;
  }

  .article-nav-btn {
    font-size: 12px;
    padding: 10px 14px;
  }
}

/* ==========================================================================
   SEARCH PAGE - Modern Editorial Design
   ========================================================================== */

.search-page {
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Search Hero */
.search-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 80px 0;
  text-align: center;
}

.search-hero-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 42px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.search-hero-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px;
}

/* Search Form */
.search-form {
  max-width: 640px;
  margin: 0 auto;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-input-icon {
  width: 22px;
  height: 22px;
  color: var(--text-light);
  flex-shrink: 0;
}

.search-input-field {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
}

.search-input-field::placeholder {
  color: var(--text-light);
}

.search-submit-btn {
  background: var(--accent-vibrant);
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-submit-btn:hover {
  background: #2a9fa5;
}

/* Search Results Section */
.search-results-section {
  background: var(--bg-secondary);
  padding: 60px 0 100px;
  min-height: 50vh;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #262D33;
}

.search-results-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.search-results-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search Results List */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Search Result Card */
.search-result-card {
  display: flex;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-decoration: none;
}

.search-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.search-result-image {
  flex-shrink: 0;
  width: 280px;
  height: 180px;
  overflow: hidden;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.search-result-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
}

.search-result-content {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}

.search-result-category {
  display: inline-block;
  width: fit-content;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: var(--accent-vibrant);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.search-result-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 12px;
  transition: color 0.2s ease;
}

.search-result-card:hover .search-result-title {
  color: var(--accent-vibrant);
}

.search-result-excerpt {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px;
  flex: 1;
}

.search-result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.search-result-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-light);
}

.search-result-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-vibrant);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-readmore svg {
  transition: transform 0.2s ease;
}

.search-result-card:hover .search-result-readmore svg {
  transform: translateX(4px);
}

/* No Results State */
.search-no-results {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border-radius: 16px;
}

.search-no-results svg {
  color: #ccc;
  margin-bottom: 24px;
}

.search-no-results h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.search-no-results p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.search-no-results .search-suggestions a {
  color: var(--accent-vibrant);
  text-decoration: none;
  font-weight: 500;
}

.search-no-results .search-suggestions a:hover {
  text-decoration: underline;
}

/* Search Page Responsive */
@media (max-width: 991px) {
  .search-hero {
    padding: 60px 20px;
  }

  .search-hero-title {
    font-size: 34px;
  }

  .search-result-image {
    width: 220px;
    height: 160px;
  }

  .search-result-title {
    font-size: 20px;
  }

  .search-result-excerpt {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .search-hero {
    padding: 50px 16px;
  }

  .search-hero-title {
    font-size: 28px;
  }

  .search-hero-subtitle {
    font-size: 13px;
    margin-bottom: 28px;
  }

  .search-input-wrapper {
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
  }

  .search-input-icon {
    display: none;
  }

  .search-input-field {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
  }

  .search-submit-btn {
    width: 100%;
    padding: 14px 24px;
    margin-top: 8px;
  }

  .search-results-section {
    padding: 40px 16px 60px;
  }

  .search-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .search-results-title {
    font-size: 20px;
  }

  .search-result-card {
    flex-direction: column;
  }

  .search-result-image {
    width: 100%;
    height: 200px;
  }

  .search-result-content {
    padding: 20px;
  }

  .search-result-title {
    font-size: 18px;
  }

  .search-result-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .search-result-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .search-no-results {
    padding: 60px 20px;
  }

  .search-no-results h2 {
    font-size: 24px;
  }

  .search-no-results p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .search-hero-title {
    font-size: 24px;
  }

  .search-hero-subtitle {
    font-size: 12px;
  }

  .search-result-title {
    font-size: 16px;
  }

  .search-result-excerpt {
    font-size: 13px;
  }
}

/* ==========================================================================
   REDESIGNED EDITORIAL HOMEPAGE - News Website Style
   ========================================================================== */

.editorial-home.redesign {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
}

/* Header (non-sticky) */
.site-header {
  position: relative;
  transition: all 0.3s ease;
  z-index: 1000;
}

/* Breaking News Bar */
.breaking-bar {
  background: var(--accent-vibrant);
  color: #fff;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  overflow: hidden;
}

.breaking-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--bg-card);
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.breaking-ticker {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breaking-ticker a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.breaking-ticker a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Hero Editorial Section */
.hero-editorial {
  padding: 32px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}

/* Main Featured Story */
.hero-main {
  position: relative;
}

/* Compact Hero in Grid */
.hero-compact {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
              linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.85) 100%),
              url(https://storage.googleapis.com/globalwarming-media/images/background-hero-homepage-compres.2e16d0ba.fill-1920x1600.jpg);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.hero-compact-inner {
  position: relative;
  z-index: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
}

.hero-compact .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 61, 0, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  width: fit-content;
}

.hero-compact .hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--bg-card);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-compact .hero-badge .badge-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
}

.hero-title-compact {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero-title-compact .title-line {
  display: block;
  color: #fff;
}

.hero-title-compact .title-highlight {
  background: linear-gradient(135deg, #ff3d00 0%, #ff6b35 50%, #ffd23f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-compact {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px;
  max-width: 400px;
}

.hero-stats-compact {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-stats-compact .hero-stat {
  position: relative;
}

.hero-stats-compact .hero-stat::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats-compact .hero-stat:last-child::after {
  display: none;
}

.hero-stats-compact .stat-number {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.hero-stats-compact .stat-unit {
  font-size: 16px;
  color: #ff6b35;
}

.hero-stats-compact .stat-desc {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.hero-cta-compact {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-primary-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff3d00 0%, #ff6b35 100%);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 61, 0, 0.3);
}

.btn-primary-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 61, 0, 0.4);
  color: #fff;
}

.btn-primary-compact i,
.btn-primary-compact .icon-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.btn-primary-compact:hover i,
.btn-primary-compact:hover .icon-arrow {
  transform: translateX(3px);
}

/* Inline SVG arrow icon */
.icon-arrow {
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-secondary-compact,
.btn-secondary-compact:visited,
.btn-secondary-compact:focus,
.btn-secondary-compact:active {
  display: inline-block;
  color: #fff !important;
  padding: 12px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-secondary-compact:hover {
  border-color: #fff;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.3);
}

.hero-main-link,
.hero-main-link:hover,
.hero-main-link:visited {
  display: block;
  position: relative;
  color: var(--text-primary);
  text-decoration: none;
}

.hero-main-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.hero-main:hover .hero-main-image {
  transform: scale(1.02);
}

.hero-main-content {
  padding: 20px 0 0;
}

.hero-category {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-vibrant);
  margin-bottom: 12px;
}

.hero-headline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.hero-main:hover .hero-headline {
  color: var(--accent-vibrant);
}

.hero-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reading-time {
  color: var(--accent-vibrant);
}

/* Secondary Stories Stack */
.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--border-color);
  padding-left: 32px;
}

.hero-secondary-item {
  display: flex;
  gap: 16px;
}

.hero-secondary-item a,
.hero-secondary-item a:hover,
.hero-secondary-item a:visited {
  display: flex;
  gap: 16px;
  color: var(--text-primary);
  text-decoration: none;
}

.secondary-image {
  width: 140px;
  height: 90px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  border-radius: 3px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-secondary-item:hover .secondary-image {
  transform: scale(1.03);
}

.secondary-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.secondary-category {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-vibrant);
  margin-bottom: 6px;
}

.secondary-content h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 auto;
}

.hero-secondary-item:hover h3 {
  color: var(--accent-vibrant);
}

.secondary-content time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
}

/* Card meta footer - date and likes together */
.secondary-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: auto;
  padding-top: 8px;
}

/* Meta Separator */
.meta-sep {
  color: var(--text-light);
  margin: 0 6px;
  font-size: 12px;
}

/* Card Votes - thumbs up and down together */
.card-votes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-likes,
.card-dislikes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-light);
  font-size: 11px;
}

.card-likes svg,
.card-dislikes svg {
  opacity: 0.7;
}

.card-dislikes {
  color: var(--text-light);
}

/* Stats Bar - USAFacts-inspired */
.stats-bar {
  background: var(--bg-primary);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-vibrant), var(--accent-coral), var(--accent-teal), var(--accent-green));
}

.stats-bar-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
  flex: 1;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

.stat-item:last-child::after {
  display: none;
}

.stat-item .stat-value {
  font-family: 'Inter', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 800;
  display: block;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* Vibrant colors for each stat */
.stat-item:nth-child(1) .stat-value { color: var(--accent-vibrant); }
.stat-item:nth-child(2) .stat-value { color: var(--accent-teal); }
.stat-item:nth-child(3) .stat-value { color: var(--accent-green); }
.stat-item:nth-child(4) .stat-value { color: #7b2cbf; }

/* Animate numbers on view */
.stat-item .stat-value {
  opacity: 0;
  transform: translateY(10px);
  animation: statReveal 0.6s ease-out forwards;
}

.stat-item:nth-child(1) .stat-value { animation-delay: 0.1s; }
.stat-item:nth-child(2) .stat-value { animation-delay: 0.2s; }
.stat-item:nth-child(3) .stat-value { animation-delay: 0.3s; }
.stat-item:nth-child(4) .stat-value { animation-delay: 0.4s; }

@keyframes statReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item .stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 8px;
  display: block;
  font-weight: 500;
}

/* Did You Know? Section - rotating facts */
.did-you-know {
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  padding: 24px 0;
  position: relative;
  overflow: hidden;
}

.did-you-know::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.did-you-know .container {
  position: relative;
  z-index: 1;
}

.did-you-know-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.dyk-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.dyk-fact-container {
  position: relative;
  flex: 1;
  max-width: 700px;
  height: 28px;
  overflow: hidden;
}

.dyk-fact {
  position: absolute;
  width: 100%;
  color: #fff;
  font-family: 'Inter', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.dyk-fact.active {
  opacity: 1;
  transform: translateY(0);
}

.dyk-dots {
  display: flex;
  gap: 6px;
}

.dyk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dyk-dot.active,
.dyk-dot:hover {
  background: #fff;
  transform: scale(1.2);
}

.dyk-link {
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.dyk-link:hover {
  opacity: 1;
  color: #fff;
}

.dyk-link svg {
  transition: transform 0.2s;
}

.dyk-link:hover svg {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .did-you-know-inner {
    flex-direction: column;
    gap: 12px;
  }

  .dyk-fact-container {
    height: auto;
    min-height: 50px;
  }

  .dyk-fact {
    font-size: 16px;
    position: relative;
    transform: none;
  }
}

/* Main Content Section */
.main-content-section {
  padding: 64px 0;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
}

.main-content {
  min-width: 0;
}

/* Section Block */
.section-block {
  margin-bottom: 56px;
}

.editorial-home.redesign .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--text-primary);
  margin-bottom: 28px;
}

.editorial-home.redesign .section-header h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-transform: none;
  letter-spacing: -0.3px;
}

.editorial-home.redesign .section-header .view-all {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-vibrant);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.editorial-home.redesign .section-header .view-all:hover {
  gap: 10px;
}

/* Featured Row */
.featured-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.featured-large,
.featured-medium {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.featured-large:hover,
.featured-medium:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: var(--border-color);
}

.featured-large a,
.featured-large a:hover,
.featured-large a:visited,
.featured-medium a,
.featured-medium a:hover,
.featured-medium a:visited {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
}

.featured-large .featured-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  transition: transform 0.4s ease;
  overflow: hidden;
}

.featured-large:hover .featured-image {
  transform: scale(1.03);
}

.featured-large .featured-content {
  padding: 20px;
}

.featured-large h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.featured-large:hover h3 {
  color: var(--accent-vibrant);
}

.featured-large p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.featured-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-medium .featured-image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  transition: transform 0.4s ease;
  overflow: hidden;
}

.featured-medium:hover .featured-image {
  transform: scale(1.03);
}

.featured-medium .featured-content {
  padding: 16px;
}

.featured-medium h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 8px;
  transition: color 0.2s ease;
}

.featured-medium:hover h3 {
  color: var(--accent-vibrant);
}

.category-pill {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent-coral);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.featured-content time,
.story-content time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Headline List */
.headline-list {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.headline-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.headline-item:last-child {
  border-bottom: none;
}

.headline-item a {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.headline-category {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-vibrant);
  min-width: 70px;
}

.headline-item h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.headline-item:hover h4 {
  color: var(--accent-vibrant);
}

.headline-item time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
}

/* Opinion Section */
.opinion-section {
  background: #fef9f3;
  padding: 32px;
  border-left: 4px solid var(--accent-vibrant);
  margin-left: -32px;
  margin-right: -32px;
  padding-left: 64px;
}

.opinion-section .section-header {
  border-bottom-color: var(--accent-vibrant);
}

.opinion-featured blockquote {
  margin: 0;
  border: none;
  padding: 0;
}

.opinion-featured blockquote p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 20px;
  padding: 0;
}

.opinion-featured blockquote footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.opinion-featured blockquote footer img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.opinion-featured blockquote cite {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}

.opinion-featured blockquote footer span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
}

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

.sidebar-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #121212;
}

/* Most Read */
.most-read-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: most-read;
}

.most-read-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.most-read-list li:last-child {
  border-bottom: none;
}

.most-read-list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.most-read-list .rank {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
  min-width: 30px;
}

.most-read-list .title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.most-read-list a:hover .title {
  color: var(--accent-vibrant);
}

.most-read-list a:hover .rank {
  color: var(--accent-vibrant);
}

/* Newsletter Widget */
.newsletter-widget p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.newsletter-form-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form-compact input {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.newsletter-form-compact input:focus {
  outline: none;
  border-color: var(--accent-vibrant);
}

.newsletter-form-compact button {
  padding: 12px 20px;
  background: var(--accent-vibrant);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form-compact button:hover {
  background: #a00;
}

/* Topics Widget */
.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tag {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s;
}

.topic-tag:hover {
  background: var(--accent-vibrant);
  color: #fff;
}

/* More Stories Section */
.more-stories-section {
  padding: 64px 0;
  background: var(--bg-secondary);
}

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

.story-card a,
.story-card a:hover,
.story-card a:visited {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
}

.story-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--text-light);
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.story-card:hover .story-image {
  transform: scale(1.02);
}

.story-content {
  padding: 16px;
}

.story-category {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-vibrant);
  margin-bottom: 6px;
}

.story-content h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 4px;
  transition: color 0.2s ease;
}

.story-card:hover h3 {
  color: var(--accent-vibrant);
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 6px;
}

.story-meta time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Newsletter Section Full Width */
.newsletter-section-full {
  background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
  padding: 64px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter-text h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.newsletter-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.newsletter-form-inline {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 500px;
}

.newsletter-form-inline input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-card);
}

.newsletter-form-inline button {
  padding: 16px 28px;
  background: var(--accent-vibrant);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsletter-form-inline button:hover {
  background: #a00;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }

  .stories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-secondary {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-secondary-item {
    flex: 1;
    min-width: 280px;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
  }

  .sidebar-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

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

  .featured-stack {
    flex-direction: row;
    gap: 24px;
  }

  .featured-stack > * {
    flex: 1;
  }

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

  .opinion-section {
    margin-left: 0;
    margin-right: 0;
    padding-left: 32px;
  }
}

@media (max-width: 768px) {
  .breaking-bar {
    padding: 8px 16px;
    font-size: 12px;
  }

  .hero-editorial {
    padding: 20px 0;
  }

  .hero-headline {
    font-size: 26px;
  }

  .hero-excerpt {
    font-size: 14px;
  }

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

  .hero-secondary-item {
    min-width: 100%;
  }

  .stats-bar-grid {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 0 0 50%;
    padding: 12px 0;
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border-color);
  }

  .main-content-section {
    padding: 32px 0;
  }

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

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

  .headline-item a {
    flex-wrap: wrap;
  }

  .headline-category {
    min-width: auto;
    margin-right: auto;
  }

  .headline-item h4 {
    order: 1;
    flex-basis: 100%;
    margin-top: 8px;
  }

  .headline-item time {
    order: 0;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form-inline {
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  .opinion-section {
    padding: 24px;
    padding-left: 24px;
  }

  .opinion-featured blockquote p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 22px;
  }

  .secondary-image {
    width: 100px;
    height: 70px;
  }

  .secondary-content h3 {
    font-size: 14px;
  }

  .stat-item .stat-value {
    font-size: 20px;
  }

  .newsletter-text h3 {
    font-size: 22px;
  }

  .hero-compact-inner {
    padding: 24px;
    min-height: auto;
  }

  .hero-title-compact {
    font-size: 28px;
  }

  .hero-stats-compact {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-stats-compact .hero-stat::after {
    display: none;
  }

  .hero-stats-compact .stat-number {
    font-size: 22px;
  }

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

@media (max-width: 768px) {
  .hero-compact-inner {
    padding: 28px;
    min-height: auto;
  }

  .hero-title-compact {
    font-size: 32px;
  }

  .hero-subtitle-compact {
    font-size: 12px;
  }

  .hero-stats-compact .stat-number {
    font-size: 24px;
  }
}

@media (max-width: 992px) {
  .hero-compact-inner {
    min-height: auto;
    padding: 32px;
  }
}

/* ==========================================================================
   PROFESSIONAL ARTICLES INDEX PAGE
   ========================================================================== */

.articles-index-pro {
  background: var(--bg-primary);
}

/* Articles Header */
.articles-header {
  background: var(--bg-primary);
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--border-color);
}

.articles-header .header-content {
  margin-bottom: 16px;
}

.articles-header .page-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}

.articles-header .page-description {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
}

/* Category Navigation */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-pill {
  display: inline-block;
  padding: 8px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.cat-pill:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.cat-pill.active {
  background: var(--accent-vibrant);
  color: #fff;
}

/* Filter Notice */
.filter-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #fef9f3;
  border-left: 3px solid var(--accent-vibrant);
  margin: 24px 0;
  font-size: 14px;
}

.filter-notice strong {
  color: var(--accent-vibrant);
}

.clear-filter {
  margin-left: auto;
  color: var(--accent-vibrant);
  text-decoration: none;
  font-weight: 600;
}

.clear-filter:hover {
  text-decoration: underline;
}

/* Articles Main */
.articles-main {
  padding: 24px 0 48px;
}

/* Compact Filter Bar */
.articles-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.filter-pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.filter-pill:hover {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.filter-pill.active {
  background: #121212;
  color: #fff;
}

/* Featured Article */
.featured-article {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.featured-article a,
.featured-article a:hover,
.featured-article a:visited {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-decoration: none;
  color: var(--text-primary);
  align-items: center;
}

.featured-article .featured-image {
  aspect-ratio: 16 / 10;
  max-height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.featured-article:hover .featured-image {
  transform: scale(1.02);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-article .featured-category {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-coral);
  background: transparent;
  padding: 0;
  margin-bottom: 10px;
}

.featured-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.featured-article:hover .featured-title {
  color: var(--accent-vibrant);
}

.featured-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.featured-meta {
  display: flex;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
}

.featured-meta .read-time {
  color: var(--accent-vibrant);
}

/* Section Divider */
.section-divider {
  padding: 16px 0;
  border-bottom: 2px solid #121212;
  margin-bottom: 24px;
}

.section-divider h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Articles Grid Pro */
.articles-grid-pro {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.article-card-pro {
  background: var(--bg-card);
}

.article-card-pro a,
.article-card-pro a:hover,
.article-card-pro a:visited {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
}

.article-card-pro .card-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  border-radius: 4px;
  transition: transform 0.3s ease;
  margin-bottom: 10px;
}

.article-card-pro:hover .card-image {
  transform: scale(1.02);
}

.article-card-pro .card-body {
  padding: 0;
}

.article-card-pro .card-category {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-coral);
  margin-bottom: 6px;
}

.article-card-pro .card-category.education { color: var(--accent-coral); }
.article-card-pro .card-category.lifestyle { color: #7b2cbf; }
.article-card-pro .card-category.science { color: #06d6a0; }

.article-card-pro .card-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.article-card-pro:hover .card-title {
  color: var(--accent-vibrant);
}

.article-card-pro .card-excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.article-card-pro .card-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}

.article-card-pro .card-meta time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
}

/* Large Cards */
.article-card-pro.large {
  grid-column: span 1;
}

.article-card-pro.large .card-title {
  font-size: 17px;
}

/* Pagination */
.pagination-pro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.page-btn:hover {
  background: var(--accent-vibrant);
  color: #fff;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.page-num:hover {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.page-num.current {
  background: #121212;
  color: #fff;
}

/* No Articles */
.no-articles {
  text-align: center;
  padding: 80px 0;
}

.no-articles h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.no-articles p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.btn-back {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent-vibrant);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
}

/* ==========================================================================
   PROFESSIONAL ARTICLE DETAIL PAGE
   ========================================================================== */

.article-pro {
  background: var(--bg-card);
}

/* Article Header */
.article-header-pro {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border-color);
}

.article-header-inner {
  max-width: 800px;
}

.article-category-link {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-vibrant);
  text-decoration: none;
  margin-bottom: 20px;
}

.article-category-link:hover {
  text-decoration: underline;
}

.article-title-pro {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 24px;
  letter-spacing: -1px;
}

.article-lead {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.article-byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.byline-left {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}

.byline-left .publish-date {
  color: var(--text-secondary);
  font-weight: 600;
}

.byline-left .read-time {
  color: var(--text-light);
}

.share-inline {
  display: flex;
  gap: 12px;
}

.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: 50%;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.share-icon:hover {
  background: #121212;
  color: #fff;
}

.share-icon.copy-btn.copied {
  background: #06d6a0;
  color: #fff;
}

/* Hero Image */
.article-hero-image {
  margin: 0;
  padding: 32px 0;
  background: #f8f8f8;
}

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

.article-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Article Content */
.article-content-pro {
  padding: 64px 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
}

.content-main {
  min-width: 0;
}

/* Article Body */
.article-body-pro {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body-pro p {
  margin: 0 0 24px;
}

.article-body-pro h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 48px 0 20px;
  line-height: 1.3;
}

.article-body-pro h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
}

.article-body-pro a {
  color: var(--accent-vibrant);
  text-decoration: underline;
}

.article-body-pro a:hover {
  color: #a00;
}

.article-body-pro blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--accent-vibrant);
  background: #fef9f3;
  font-style: italic;
  color: var(--text-secondary);
}

.article-body-pro blockquote p:last-child {
  margin-bottom: 0;
}

.article-body-pro img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 32px 0;
}

.article-body-pro ul,
.article-body-pro ol {
  margin: 24px 0;
  padding-left: 24px;
}

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

/* Article Tags */
.article-tags-pro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 48px;
}

.article-tags-pro .tags-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tag-link {
  display: inline-block;
  padding: 6px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-link:hover {
  background: var(--accent-vibrant);
  color: #fff;
}

/* Share Footer */
.article-share-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
}

.article-share-footer .share-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.share-buttons-footer {
  display: flex;
  gap: 12px;
}

.share-btn-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.share-btn-footer.twitter { background: #000; }
.share-btn-footer.facebook { background: #1877F2; }
.share-btn-footer.linkedin { background: #0A66C2; }

.share-btn-footer:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Content Sidebar */
.content-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-widget {
  padding: 24px;
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.sidebar-widget p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-newsletter-form input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.sidebar-newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-vibrant);
}

.sidebar-newsletter-form button {
  padding: 12px;
  background: var(--accent-vibrant);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-newsletter-form button:hover {
  background: #a00;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pill {
  display: inline-block;
  padding: 6px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.topic-pill:hover {
  background: var(--accent-vibrant);
  color: #fff;
  border-color: var(--accent-vibrant);
}

/* Article Navigation */
.article-nav-pro {
  padding: 48px 0;
  background: #f8f8f8;
  border-top: 1px solid var(--border-color);
}

.article-nav-pro .nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.article-nav-pro .nav-item {
  padding: 24px;
  background: var(--bg-card);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
}

.article-nav-pro .nav-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-nav-pro .nav-item.empty {
  background: transparent;
}

.article-nav-pro .nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.article-nav-pro .nav-item.next .nav-label {
  justify-content: flex-end;
}

.article-nav-pro .nav-title {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.article-nav-pro .nav-item.next .nav-title {
  text-align: right;
}

.article-nav-pro .nav-item:hover .nav-title {
  color: var(--accent-vibrant);
}

/* Recommended Section */
.recommended-section {
  padding: 64px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.recommended-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid #121212;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.recommended-card a,
.recommended-card a:hover,
.recommended-card a:visited {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
}

.rec-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  border-radius: 6px;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.recommended-card:hover .rec-image {
  transform: scale(1.02);
}

.rec-content .rec-category {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-vibrant);
  margin-bottom: 8px;
}

.rec-content h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.recommended-card:hover h3 {
  color: var(--accent-vibrant);
}

.rec-content time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
}

/* Responsive Styles for Article Pages */
@media (max-width: 992px) {
  .featured-article a {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .articles-grid-pro {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

  .content-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .articles-grid-pro {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .articles-header .page-title {
    font-size: 32px;
  }

  .featured-title {
    font-size: 24px;
  }

  .articles-grid-pro {
    grid-template-columns: 1fr;
  }

  .article-title-pro {
    font-size: 32px;
  }

  .article-lead {
    font-size: 18px;
  }

  .article-byline {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .article-body-pro {
    font-size: 17px;
  }

  .content-sidebar {
    grid-template-columns: 1fr;
  }

  .article-nav-pro .nav-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-nav-pro .nav-item.next .nav-label,
  .article-nav-pro .nav-item.next .nav-title {
    text-align: left;
    justify-content: flex-start;
  }

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

  .share-buttons-footer {
    flex-wrap: wrap;
  }

  .article-share-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination-pro {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .articles-header .page-title {
    font-size: 28px;
  }

  .article-title-pro {
    font-size: 26px;
  }

  .article-body-pro h2 {
    font-size: 22px;
  }

  .sidebar-widget {
    padding: 20px;
  }
}


/* ============================================
   BLOG PAGES - PROFESSIONAL REDESIGN
   ============================================ */

/* Blog Index Page */
.blog-index-pro {
  background: var(--bg-primary);
}

.blog-header-pro {
  background: #121212;
  padding: 24px 0 20px;
}

.blog-header-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 16px;
}

.blog-header-pro .section-label {
  display: none;
}

.blog-title-pro {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}

.blog-subtitle-pro {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

.blog-tags-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag-pill-nav {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.tag-pill-nav:hover,
.tag-pill-nav.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.filter-active {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin: 32px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.filter-active svg {
  color: var(--accent-vibrant);
}

.clear-filter-link {
  margin-left: auto;
  color: var(--accent-vibrant);
  font-weight: 500;
  text-decoration: none;
}

.clear-filter-link:hover {
  text-decoration: underline;
}

.blog-main-pro {
  padding: 32px 0 60px;
}

/* Blog Featured Post */
.blog-featured-pro {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.featured-link-pro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.featured-image-pro {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 280px;
  border-radius: 6px;
  overflow: hidden;
}

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

.featured-link-pro:hover .featured-image-pro img {
  transform: scale(1.02);
}

.featured-gradient {
  display: none;
}

.featured-content-pro {
  position: static;
  padding: 0;
}

.featured-meta-pro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.featured-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-vibrant);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
}

.featured-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
}

.featured-headline-pro {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 12px;
  transition: color 0.2s;
}

.featured-link-pro:hover .featured-headline-pro {
  color: var(--accent-vibrant);
}

.featured-excerpt-pro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 14px;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-vibrant);
  transition: gap 0.2s;
}

.featured-link-pro:hover .featured-cta {
  gap: 10px;
}

.blog-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.blog-section-divider h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  white-space: nowrap;
  margin: 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--bg-tertiary);
}

/* Blog Grid */
.blog-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.blog-card-pro {
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
}

.blog-card-pro:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.blog-card-pro a {
  display: block;
  text-decoration: none;
}

.card-image-pro {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-image-pro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card-pro:hover .card-image-pro img {
  transform: scale(1.03);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.card-content-pro {
  padding: 14px;
}

.card-meta-pro {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.card-tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
}

.card-meta-pro time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
}

.card-headline-pro {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 8px;
}

.blog-card-pro:hover .card-headline-pro {
  color: var(--link-color);
}

.card-excerpt-pro {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 10px;
}

.card-read-more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-vibrant);
}

/* Blog Pagination */
.blog-pagination-pro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.page-btn-pro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #121212;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.page-btn-pro:hover {
  background: #333;
}

.page-numbers-pro {
  display: flex;
  gap: 8px;
}

.page-num-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.page-num-pro:hover {
  background: var(--bg-tertiary);
}

.page-num-pro.current {
  background: #121212;
  color: #fff;
}

.blog-empty-pro {
  text-align: center;
  padding: 80px 20px;
}

.blog-empty-pro svg {
  color: #ccc;
  margin-bottom: 24px;
}

.blog-empty-pro h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.blog-empty-pro p {
  color: var(--text-muted);
}


/* ============================================
   BLOG POST PAGE - PROFESSIONAL REDESIGN
   ============================================ */

.blog-post-pro {
  background: var(--bg-card);
}

.blog-post-header {
  background: var(--bg-card);
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border-color);
}

.blog-post-header-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.blog-tags-header {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.blog-tag-link {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-vibrant);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.blog-tag-link:hover {
  background: #a00;
}

.blog-post-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0 0 20px;
}

.blog-post-lead {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.byline-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-read-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-read-time::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #ccc;
  border-radius: 50%;
}

.byline-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-icon-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: none;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.share-icon-sm:hover {
  background: #121212;
  color: #fff;
}

.share-icon-sm.copy-link.copied {
  background: #22c55e;
  color: #fff;
}

.blog-post-hero {
  margin: 0;
  padding: 40px 0;
  background: #f8f8f8;
}

.blog-post-hero img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
  padding: 60px 0 80px;
}

.blog-content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.blog-content-main {
  max-width: 700px;
}

.blog-post-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-post-body p {
  margin: 0 0 24px;
}

.blog-post-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 48px 0 20px;
}

.blog-post-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
}

.blog-post-body blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--accent-vibrant);
  background: #f8f8f8;
  font-style: italic;
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 32px 0;
}

.blog-tags-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 48px;
}

.blog-tags-footer .tags-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.tag-link-footer {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.tag-link-footer:hover {
  background: #121212;
  color: #fff;
}

.blog-share-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
}

.blog-share-footer .share-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.share-buttons-lg {
  display: flex;
  gap: 12px;
}

.share-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.share-btn-lg:hover {
  background: #121212;
  color: #fff;
}

.share-btn-lg.twitter:hover {
  background: #1da1f2;
}

.share-btn-lg.facebook:hover {
  background: #1877f2;
}

.share-btn-lg.linkedin:hover {
  background: #0a66c2;
}

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

.sidebar-card {
  background: #f8f8f8;
  padding: 28px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.sidebar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.newsletter-form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form-sidebar input {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background: var(--bg-card);
}

.newsletter-form-sidebar input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.newsletter-form-sidebar button {
  padding: 12px 20px;
  background: var(--accent-vibrant);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form-sidebar button:hover {
  background: #a00;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tag {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.sidebar-tag:hover {
  background: #121212;
  color: #fff;
}

/* Blog Related Posts */
.blog-related-section {
  background: #f8f8f8;
  padding: 80px 0;
}

.related-heading {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 40px;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.related-post-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.related-post-card a {
  display: block;
  text-decoration: none;
}

.related-post-card .related-image {
  aspect-ratio: 5/3;
  background-size: cover;
  background-position: center;
  background-color: var(--text-light);
}

.related-post-card .related-content {
  padding: 20px;
}

.related-post-card .related-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-vibrant);
  margin-bottom: 8px;
}

.related-post-card h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 8px;
}

.related-post-card:hover h3 {
  color: var(--accent-vibrant);
}

.related-post-card time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
}


/* ============================================
   STANDARD PAGE - PROFESSIONAL REDESIGN
   ============================================ */

.standard-page-pro {
  background: var(--bg-card);
}

.standard-header-pro {
  background: #121212;
  padding: 80px 0 60px;
}

.standard-header-content {
  text-align: center;
}

.standard-header-content h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.standard-header-content .last-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.standard-content-pro {
  padding: 60px 0 80px;
}

.standard-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.standard-main {
  max-width: 800px;
}

.standard-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.standard-body p {
  margin: 0 0 24px;
}

.standard-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 48px 0 20px;
}

.standard-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
}

.standard-body ul,
.standard-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.standard-body li {
  margin-bottom: 8px;
}

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

.sidebar-widget {
  background: #f8f8f8;
  padding: 28px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0 0 16px;
}

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

.quick-links li {
  margin-bottom: 12px;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.quick-links a:hover {
  color: var(--accent-vibrant);
}

.quick-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-vibrant);
  border-radius: 50%;
}

/* Quick Resources Widget */
.quick-resources {
  background: linear-gradient(135deg, #f0fdfa 0%, #f5f3ff 100%);
  border: 1px solid rgba(59, 189, 196, 0.2);
}

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

.resource-links li {
  margin-bottom: 8px;
}

.resource-links li:last-child {
  margin-bottom: 0;
}

.resource-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.resource-links a:hover {
  background: #ffffff;
  color: var(--link-color);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.resource-icon {
  font-size: 16px;
}

.resource-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

[data-theme="dark"] .quick-resources {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .resource-links a {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

[data-theme="dark"] .resource-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--link-color);
}

.contact-widget p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #121212;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.contact-btn:hover {
  background: #333;
}


/* ============================================
   ABOUT US PAGE - PROFESSIONAL REDESIGN
   ============================================ */

.about-page-pro {
  background: var(--bg-card);
}

.about-hero-pro {
  position: relative;
  padding: 120px 0 100px;
  background: #121212;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://storage.googleapis.com/globalwarming-media/images/background-hero-homepage-compres.2e16d0ba.fill-1920x1600.jpg') center/cover;
  opacity: 0.3;
}

.about-hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-label {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-vibrant);
  margin-bottom: 16px;
}

.about-hero-content h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
}

.about-tagline {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.about-mission-pro {
  padding: 80px 0;
}

.mission-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.mission-main h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 24px;
}

.mission-lead {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 500;
}

.mission-main p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.vision-card-pro {
  background: #f8f8f8;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.vision-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-vibrant);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 20px;
}

.vision-card-pro h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.vision-card-pro p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.values-card-pro {
  background: #121212;
  padding: 32px;
  border-radius: 12px;
}

.values-card-pro h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin: 0 0 20px;
}

.values-card-pro ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-card-pro li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-bottom: 14px;
}

.values-card-pro li:last-child {
  margin-bottom: 0;
}

.values-card-pro svg {
  color: var(--accent-vibrant);
  flex-shrink: 0;
}

.about-team-pro {
  background: #f8f8f8;
  padding: 80px 0;
}

.section-header-pro {
  text-align: center;
  margin-bottom: 48px;
}

.section-header-pro .section-label {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-vibrant);
  margin-bottom: 12px;
}

.section-header-pro h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.section-header-pro p {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0;
}

.team-grid-pro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.team-member-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.member-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

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

.member-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.member-overlay svg {
  color: #fff;
}

.team-member-card:hover .member-overlay {
  opacity: 1;
}

.member-info {
  padding: 24px;
  text-align: center;
}

.member-info h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.member-role {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-vibrant);
  margin-bottom: 8px;
}

.member-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.about-cta-pro {
  background: #121212;
  padding: 80px 0;
}

.cta-content-pro {
  text-align: center;
}

.cta-content-pro h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.cta-content-pro p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
}

.cta-btn-pro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--accent-vibrant);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.cta-btn-pro:hover {
  background: #a00;
  gap: 14px;
}


/* ============================================
   GALLERY PAGE - PROFESSIONAL REDESIGN
   ============================================ */

.gallery-page-pro {
  background: var(--bg-card);
}

.gallery-header-pro {
  background: #121212;
  padding: 80px 0 60px;
}

.gallery-header-content {
  text-align: center;
}

.gallery-header-content h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}

.gallery-intro {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.gallery-content-pro {
  padding: 60px 0 80px;
}

.gallery-grid-pro {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-grid-pro img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery-grid-pro img:hover {
  transform: scale(1.02);
}


/* ============================================
   FORM/CONTACT PAGE - PROFESSIONAL REDESIGN
   ============================================ */

.form-page-pro {
  background: var(--bg-card);
}

.form-header-pro {
  background: #121212;
  padding: 80px 0 60px;
}

.form-header-content {
  text-align: center;
}

.form-header-content h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.form-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.form-content-pro {
  padding: 60px 0 80px;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.form-intro,
.form-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-form-pro {
  background: #f8f8f8;
  padding: 40px;
  border-radius: 12px;
}

.form-errors {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.error-message {
  color: #dc2626;
  font-size: 14px;
  margin: 0;
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-field.required label::after {
  content: ' *';
  color: var(--accent-vibrant);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--text-primary);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.help-text {
  font-size: 13px;
  color: var(--text-light);
  margin: 8px 0 0;
}

.field-error {
  font-size: 13px;
  color: #dc2626;
  margin: 8px 0 0;
}

.submit-btn-pro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--accent-vibrant);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-btn-pro:hover {
  background: #a00;
  gap: 14px;
}

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

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

.contact-methods li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-methods li:last-child {
  margin-bottom: 0;
}

.contact-methods svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.contact-methods a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-methods a:hover {
  color: var(--accent-vibrant);
}


/* ============================================
   FORM SUCCESS PAGE - PROFESSIONAL REDESIGN
   ============================================ */

.form-success-pro {
  background: #f8f8f8;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.success-content {
  text-align: center;
  max-width: 500px;
}

.success-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #22c55e;
  border-radius: 50%;
  margin: 0 auto 32px;
}

.success-content h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.success-message {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #121212;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.back-home-btn:hover {
  background: #333;
}


/* ============================================
   SEARCH PAGE - PROFESSIONAL REDESIGN
   ============================================ */

.search-page-pro {
  background: var(--bg-card);
}

.search-header-pro {
  background: #121212;
  padding: 80px 0 60px;
}

.search-header-content {
  text-align: center;
  margin-bottom: 32px;
}

.search-header-content h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.search-header-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.search-form-pro {
  max-width: 700px;
  margin: 0 auto;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-icon {
  margin-left: 20px;
  color: var(--text-light);
}

.search-input-pro {
  flex: 1;
  padding: 18px 16px;
  border: none;
  font-size: 16px;
  background: transparent;
}

.search-input-pro:focus {
  outline: none;
}

.search-btn-pro {
  padding: 18px 32px;
  background: var(--accent-vibrant);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn-pro:hover {
  background: #a00;
}

.search-results-pro {
  padding: 60px 0 80px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.results-header h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.results-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}

.results-grid {
  display: grid;
  gap: 24px;
}

.result-card-pro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px;
  background: #f8f8f8;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.result-card-pro:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.result-image {
  border-radius: 8px;
  overflow: hidden;
}

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

.result-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: var(--bg-tertiary);
}

.result-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-category {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-vibrant);
  margin-bottom: 8px;
}

.result-content h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 8px;
}

.result-card-pro:hover h3 {
  color: var(--accent-vibrant);
}

.result-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-meta time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-vibrant);
}

.no-results-pro {
  text-align: center;
  padding: 80px 20px;
}

.no-results-icon {
  color: #ccc;
  margin-bottom: 24px;
}

.no-results-pro h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.no-results-pro p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.no-results-pro .suggestions a {
  color: var(--accent-vibrant);
  text-decoration: none;
}

.no-results-pro .suggestions a:hover {
  text-decoration: underline;
}


/* ============================================
   404 ERROR PAGE - PROFESSIONAL REDESIGN
   ============================================ */

.error-page-pro {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #f8f8f8;
}

.error-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  max-width: 800px;
}

.error-visual {
  text-align: center;
}

.error-code {
  display: block;
  font-size: 140px;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 20px;
}

.error-globe {
  color: var(--accent-vibrant);
  opacity: 0.5;
}

.error-text h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.error-message {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.error-cta-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #121212;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.error-btn:hover {
  background: #333;
}


/* ============================================
   RESPONSIVE STYLES FOR NEW PAGES
   ============================================ */

@media (max-width: 1200px) {
  .blog-grid-pro {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .featured-link-pro {
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .blog-grid-pro {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .featured-link-pro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-image-pro {
    max-height: none;
  }

  .blog-content-layout,
  .standard-layout,
  .mission-layout,
  .form-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-content-sidebar,
  .standard-sidebar,
  .mission-sidebar,
  .form-sidebar {
    position: static;
  }

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

  .team-grid-pro {
    max-width: 100%;
  }

  .error-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .result-image {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .blog-title-pro {
    font-size: 36px;
  }

  .featured-headline-pro {
    font-size: 22px;
  }

  .blog-grid-pro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-post-title {
    font-size: 32px;
  }

  .blog-post-lead {
    font-size: 17px;
  }

  .blog-post-byline {
    flex-direction: column;
    gap: 16px;
  }

  .share-buttons-lg {
    flex-wrap: wrap;
  }

  .share-btn-lg span {
    display: none;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-content h1,
  .standard-header-content h1,
  .form-header-content h1,
  .search-header-content h1,
  .gallery-header-content h1 {
    font-size: 32px;
  }

  .team-grid-pro {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .error-code {
    font-size: 100px;
  }

  .error-text h1 {
    font-size: 28px;
  }

  .blog-share-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-pagination-pro {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .blog-title-pro {
    font-size: 28px;
  }

  .blog-post-title {
    font-size: 26px;
  }

  .featured-headline-pro {
    font-size: 22px;
  }

  .contact-form-pro {
    padding: 24px;
  }

  .search-input-group {
    flex-direction: column;
    border-radius: 8px;
  }

  .search-icon {
    display: none;
  }

  .search-input-pro {
    width: 100%;
    text-align: center;
  }

  .search-btn-pro {
    width: 100%;
  }
}

/* ============================================
   LIKE BUTTON STYLES
   ============================================ */

.article-share-footer,
.blog-share-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid var(--border-color);
}

/* Vote Section - TikTok-style thumbs up/down */
.vote-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  min-width: 56px;
}

.vote-btn:hover {
  background: #e8e8e8;
  transform: scale(1.05);
}

.vote-btn .vote-icon {
  transition: all 0.2s ease;
}

.vote-btn.vote-up:hover,
.vote-btn.vote-up.active {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.vote-btn.vote-up.active .vote-icon {
  fill: #16a34a;
}

.vote-btn.vote-down:hover,
.vote-btn.vote-down.active {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.vote-btn.vote-down.active .vote-icon {
  fill: #dc2626;
}

.vote-count {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.vote-btn.animating .vote-icon {
  animation: votePop 0.3s ease;
}

@keyframes votePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Card likes (thumbnail like counts) */
.card-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
}

.card-likes svg {
  opacity: 0.7;
}

.card-likes .like-count {
  min-width: auto;
  font-size: 12px;
}

/* Featured meta row - date and likes together */
.featured-meta-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.featured-meta-row time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-meta-row .card-likes {
  color: var(--text-light);
}

/* Headline meta - date and likes together */
.headline-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 6px;
}

.headline-meta time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.share-section .share-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .article-share-footer,
  .blog-share-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .share-section {
    width: 100%;
  }

  .share-buttons-footer,
  .share-buttons-lg {
    flex-wrap: wrap;
  }
}

/* ============================================
   GAMES & QUIZZES SECTION
   ============================================ */

/* Games Index Page */
.games-index {
  background: var(--bg-secondary);
  min-height: 100vh;
}

.games-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 60px 0 40px;
  color: #fff;
}

.games-header-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.games-header .section-label {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #06d6a0;
  margin-bottom: 16px;
}

.games-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}

.games-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
  line-height: 1.6;
}

.games-categories-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.category-pill-nav {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.category-pill-nav:hover,
.category-pill-nav.active {
  background: #06d6a0;
  color: var(--text-primary);
}

.games-main {
  padding: 48px 0;
}

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

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

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

/* Quiz Card */
.quiz-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.quiz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.quiz-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.quiz-card-image {
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.quiz-card-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
}

.quiz-difficulty {
  display: inline-block;
  padding: 4px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  color: #fff;
}

.quiz-difficulty.easy {
  background: #22c55e;
}

.quiz-difficulty.medium {
  background: #f59e0b;
}

.quiz-difficulty.hard {
  background: #ef4444;
}

.quiz-card-content {
  padding: 20px;
}

.quiz-category {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #06d6a0;
  margin-bottom: 8px;
}

.quiz-card-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.3;
}

.quiz-card:hover .quiz-card-title {
  color: #667eea;
}

.quiz-card-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.quiz-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.quiz-questions-count,
.quiz-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
}

.quiz-questions-count svg,
.quiz-time svg {
  opacity: 0.7;
}

.quiz-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-card:hover .quiz-cta {
  color: #764ba2;
}

/* Games Empty State */
.games-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.games-empty svg {
  margin-bottom: 24px;
  opacity: 0.4;
}

.games-empty h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.games-empty p {
  font-size: 16px;
  margin: 0;
}

/* Games Pagination */
.games-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

/* ============================================
   QUIZ PAGE
   ============================================ */

.quiz-page {
  background: var(--bg-secondary);
  min-height: 100vh;
}

.quiz-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: #fff;
  text-align: center;
}

.quiz-header-content {
  max-width: 700px;
  margin: 0 auto;
}

.quiz-category-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(6, 214, 160, 0.2);
  color: #06d6a0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.quiz-page-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}

.quiz-page-intro {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px;
  line-height: 1.6;
}

.quiz-meta-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

.meta-badge.difficulty-easy { color: #22c55e; }
.meta-badge.difficulty-medium { color: #f59e0b; }
.meta-badge.difficulty-hard { color: #ef4444; }

/* Quiz Main Container */
.quiz-main {
  padding: 48px 0;
}

.quiz-container {
  max-width: 700px;
  margin: 0 auto;
}

.quiz-screen {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 48px;
}

.quiz-screen.hidden {
  display: none;
}

/* Start Screen */
.quiz-start-content {
  text-align: center;
}

.quiz-start-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-start-icon svg {
  stroke: #fff;
  margin-left: 6px;
}

.quiz-start-content h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.quiz-start-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.quiz-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Progress Bar */
.quiz-progress {
  margin-bottom: 32px;
}

.progress-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Question Content */
.question-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 32px;
  line-height: 1.4;
}

.choices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-btn:hover:not(.disabled) {
  border-color: #667eea;
  background: #f0f0ff;
}

.choice-btn.disabled {
  cursor: default;
}

.choice-btn.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.choice-btn.incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.choice-letter {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}

.choice-btn.correct .choice-letter {
  background: #22c55e;
  color: #fff;
}

.choice-btn.incorrect .choice-letter {
  background: #ef4444;
  color: #fff;
}

.choice-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Feedback */
.question-feedback {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.question-feedback.hidden {
  display: none;
}

.feedback-icon {
  margin-bottom: 16px;
}

.feedback-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feedback-text.correct {
  color: #22c55e;
}

.feedback-text.incorrect {
  color: #ef4444;
}

.feedback-explanation {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.feedback-explanation.hidden {
  display: none;
}

.next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #121212;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.next-btn:hover {
  background: #333;
}

/* Results Screen */
.results-content {
  text-align: center;
}

.results-score-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
}

.results-score-circle.excellent {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.results-score-circle.good {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

.results-score-circle.average {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.results-score-circle.needs-work {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.score-number {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.score-label {
  font-size: 12px;
  opacity: 0.9;
}

.results-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.results-message {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.results-breakdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breakdown-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  position: relative;
}

.breakdown-item.correct {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.breakdown-item.incorrect {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.breakdown-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.breakdown-status {
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.retry-btn,
.more-quizzes-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.retry-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid #121212;
}

.retry-btn:hover {
  background: #121212;
  color: #fff;
}

.more-quizzes-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
}

.more-quizzes-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .games-title {
    font-size: 32px;
  }

  .quiz-page-title {
    font-size: 28px;
  }

  .quiz-screen {
    padding: 32px 24px;
  }

  .question-text {
    font-size: 20px;
  }

  .choice-btn {
    padding: 14px 16px;
  }
}

/* ==========================================================================
   Dark Mode Toggle & Comprehensive Overrides
   ========================================================================== */

/* Dark mode body and main content */
[data-theme="dark"] main {
  background: var(--bg-primary);
}

/* Cards and content blocks */
[data-theme="dark"] .card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .article-card {
  background: var(--card-bg);
  border-color: var(--card-border);
  box-shadow: var(--card-shadow);
}

/* Breadcrumbs */
[data-theme="dark"] .breadcrumb {
  background: transparent;
}

[data-theme="dark"] .breadcrumb a {
  color: var(--text-muted);
}

[data-theme="dark"] .breadcrumb a:hover {
  color: var(--link-color);
}

/* Forms and inputs */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--link-color);
  box-shadow: 0 0 0 3px rgba(88, 213, 220, 0.2);
}

/* Buttons */
[data-theme="dark"] .btn-outline-dark {
  color: var(--btn-outline-text);
  border-color: var(--btn-outline-border);
}

[data-theme="dark"] .btn-outline-dark:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Blog and article index pages */
[data-theme="dark"] .blog-list-item,
[data-theme="dark"] .article-list-item {
  border-color: var(--border-color);
}

[data-theme="dark"] .blog-list-item:hover,
[data-theme="dark"] .article-list-item:hover {
  background: var(--bg-hover);
}

/* Tables */
[data-theme="dark"] table {
  color: var(--text-primary);
}

[data-theme="dark"] th,
[data-theme="dark"] td {
  border-color: var(--border-color);
}

[data-theme="dark"] tr:nth-child(even) {
  background: var(--bg-secondary);
}

/* Code blocks */
[data-theme="dark"] code,
[data-theme="dark"] pre {
  background: var(--code-bg);
  color: var(--text-primary);
}

/* Blockquotes */
[data-theme="dark"] blockquote {
  border-left-color: var(--blockquote-border);
}

[data-theme="dark"] blockquote p {
  color: var(--text-secondary);
}

/* Bottom navigation */
[data-theme="dark"] .bottom-nav {
  border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .bottom-nav a {
  color: var(--text-secondary);
}

[data-theme="dark"] .bottom-nav a:hover {
  color: var(--link-color);
}

[data-theme="dark"] .bottom-nav .top-nav-button {
  background-color: transparent;
  color: var(--link-color);
  border-color: var(--link-color);
}

[data-theme="dark"] .bottom-nav .top-nav-button:hover {
  background-color: var(--link-color);
  color: var(--bg-primary);
  border-color: var(--link-color);
}

/* Search results */
[data-theme="dark"] .search-results {
  background: var(--bg-primary);
}

[data-theme="dark"] .search-result-item {
  border-color: var(--border-color);
}

[data-theme="dark"] .search-result-item:hover {
  background: var(--bg-hover);
}

/* Games page */
[data-theme="dark"] .quiz-screen {
  background: var(--card-bg);
  color: var(--text-primary);
}

[data-theme="dark"] .choice-btn {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .choice-btn:hover {
  border-color: var(--link-color);
  background: var(--bg-hover);
}

/* Pagination */
[data-theme="dark"] .pagination .page-link {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .pagination .page-link:hover {
  background: var(--bg-hover);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
  background: var(--link-color);
  border-color: var(--link-color);
}

/* Hero sections remain dark by default, which works for both modes */

/* Messages/alerts */
[data-theme="dark"] .alert {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

/* Modal overrides */
[data-theme="dark"] .modal-content {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: var(--border-color);
}

/* Dropdown menus */
[data-theme="dark"] .dropdown-menu {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
  color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
  background: var(--bg-hover);
}

/* Article card variants */
[data-theme="dark"] .article-card-vibrant {
  background: var(--card-bg);
}

[data-theme="dark"] .article-card-vibrant .card-title {
  color: var(--text-primary);
}

[data-theme="dark"] .article-card-vibrant .card-text {
  color: var(--text-secondary);
}

[data-theme="dark"] .article-card-vibrant .card-meta {
  color: var(--text-muted);
}

[data-theme="dark"] .article-card-vibrant .card-img-top {
  background-color: var(--bg-tertiary);
}

[data-theme="dark"] .article-card-pro {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
}

[data-theme="dark"] .article-card-pro .card-title {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .article-card-pro:hover .card-title {
  color: var(--link-color) !important;
}

[data-theme="dark"] .article-card-pro .card-excerpt {
  color: var(--text-secondary);
}

[data-theme="dark"] .article-card-pro .card-meta {
  color: var(--text-muted);
}

[data-theme="dark"] .article-card-pro .card-meta time {
  color: var(--text-muted);
}

[data-theme="dark"] .article-card-pro .card-image {
  background-color: var(--bg-tertiary);
}

/* Filter bar */
[data-theme="dark"] .articles-filter-bar {
  border-color: var(--border-color);
}

[data-theme="dark"] .filter-pill {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

[data-theme="dark"] .filter-pill:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

[data-theme="dark"] .filter-pill.active {
  background: var(--link-color);
  color: #000;
}

/* Featured article (top article on articles page) */
[data-theme="dark"] .featured-article {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .featured-article .featured-image {
  background-color: var(--bg-tertiary);
}

[data-theme="dark"] .featured-title {
  color: var(--text-primary);
}

[data-theme="dark"] .featured-article:hover .featured-title {
  color: var(--link-color);
}

[data-theme="dark"] .featured-excerpt {
  color: var(--text-secondary);
}

[data-theme="dark"] .featured-meta {
  color: var(--text-muted);
}

[data-theme="dark"] .featured-category {
  color: var(--accent-coral);
}

/* Homepage editorial cards */
[data-theme="dark"] .editorial-home .article-card {
  background: var(--card-bg);
}

[data-theme="dark"] .featured-large,
[data-theme="dark"] .featured-medium {
  background: var(--card-bg);
}

[data-theme="dark"] .featured-large .featured-content,
[data-theme="dark"] .featured-medium .featured-content {
  background: var(--card-bg);
}

[data-theme="dark"] .featured-large h3,
[data-theme="dark"] .featured-medium h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .featured-large p {
  color: var(--text-secondary);
}

[data-theme="dark"] .featured-meta-row {
  color: var(--text-muted);
}

[data-theme="dark"] .hero-secondary-item {
  background: var(--card-bg);
}

[data-theme="dark"] .hero-secondary-item .secondary-content {
  background: var(--card-bg);
}

[data-theme="dark"] .hero-secondary-item h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .secondary-meta {
  color: var(--text-muted);
}

/* External Stories / Top Stories from Around the World */
[data-theme="dark"] .external-stories-section {
  background: var(--bg-primary);
}

[data-theme="dark"] .external-stories-section .section-header {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .external-stories-section .section-header h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .story-card {
  background: var(--card-bg);
}

[data-theme="dark"] .story-card .story-content {
  background: var(--card-bg);
}

[data-theme="dark"] .story-card h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .story-meta {
  color: var(--text-muted);
}

/* Headline items */
[data-theme="dark"] .headline-item {
  border-color: var(--border-color);
}

[data-theme="dark"] .headline-item h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .headline-meta {
  color: var(--text-muted);
}

/* Sidebar */
[data-theme="dark"] .sidebar {
  background: var(--bg-primary);
}

[data-theme="dark"] .sidebar-section {
  background: var(--card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-title {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

[data-theme="dark"] .most-read-list a {
  color: var(--text-primary);
}

[data-theme="dark"] .most-read-list .title {
  color: var(--text-primary);
}

[data-theme="dark"] .most-read-list a:hover .title {
  color: var(--link-color);
}

[data-theme="dark"] .most-read-list a:hover .rank {
  color: var(--link-color);
}

[data-theme="dark"] .most-read-list li {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .most-read-list .rank {
  color: var(--text-muted);
}

[data-theme="dark"] .newsletter-widget {
  background: var(--card-bg);
}

[data-theme="dark"] .newsletter-widget p {
  color: var(--text-secondary);
}

[data-theme="dark"] .topic-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .topic-tag:hover {
  background: var(--bg-hover);
  color: var(--link-color);
}

/* Stats bar */
[data-theme="dark"] .stats-bar {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .stat-value {
  color: var(--text-primary);
}

[data-theme="dark"] .stat-label {
  color: var(--text-muted);
}

/* Opinion section */
[data-theme="dark"] .opinion-section blockquote {
  background: var(--card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .opinion-section blockquote p {
  color: var(--text-primary);
}

[data-theme="dark"] .opinion-section blockquote cite {
  color: var(--text-secondary);
}

/* Newsletter section */
[data-theme="dark"] .newsletter-section-full {
  background: var(--bg-secondary);
}

[data-theme="dark"] .newsletter-section-full h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .newsletter-section-full p {
  color: var(--text-secondary);
}

/* Section headers */
[data-theme="dark"] .section-header h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .view-all {
  color: var(--link-color);
}

/* Hero editorial section */
[data-theme="dark"] .hero-editorial {
  background: var(--bg-primary);
  border-bottom-color: var(--border-color);
}

/* More stories section */
[data-theme="dark"] .more-stories-section {
  background: var(--bg-secondary);
}

[data-theme="dark"] .story-image {
  background-color: var(--bg-tertiary);
}

[data-theme="dark"] .story-content h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .story-category {
  color: var(--link-color);
}

/* Headline list */
[data-theme="dark"] .headline-list {
  border-color: var(--border-color);
}

[data-theme="dark"] .headline-category {
  color: var(--link-color);
}

/* Section block */
[data-theme="dark"] .section-block {
  border-color: var(--border-color);
}

[data-theme="dark"] .section-header {
  border-bottom-color: var(--border-color);
}

/* Opinion section */
[data-theme="dark"] .opinion-section {
  background: var(--bg-secondary);
  border-left-color: var(--link-color);
}

[data-theme="dark"] .opinion-section .section-header {
  border-bottom-color: var(--link-color);
}

[data-theme="dark"] .opinion-section .section-header h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .opinion-featured blockquote p {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .opinion-featured blockquote cite {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .opinion-featured blockquote footer span {
  color: var(--text-muted);
}

/* Stats bar item borders */
[data-theme="dark"] .stat-item {
  border-right-color: var(--border-color);
}

[data-theme="dark"] .stat-label {
  color: var(--text-muted);
}

/* Sidebar section borders */
[data-theme="dark"] .sidebar-section {
  border-bottom-color: var(--border-color);
}

/* Category pills in cards */
[data-theme="dark"] .category-pill {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* Featured image backgrounds */
[data-theme="dark"] .featured-image {
  background-color: var(--bg-tertiary);
}

/* Newsletter form inline */
[data-theme="dark"] .newsletter-form-inline input {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .newsletter-form-compact input {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* More stories section header */
[data-theme="dark"] .more-stories-section .section-header h2 {
  color: var(--text-primary);
}

/* Subscribe button */
[data-theme="dark"] .subscribe-btn {
  background-color: var(--link-color);
  border-color: var(--link-color);
  color: #000;
}

[data-theme="dark"] .subscribe-btn:hover {
  background-color: var(--link-hover);
  border-color: var(--link-hover);
}

/* Article detail page */
[data-theme="dark"] .article-content-pro {
  background: var(--bg-primary);
}

[data-theme="dark"] .article-body-pro {
  color: var(--text-secondary);
}

[data-theme="dark"] .article-body-pro h2,
[data-theme="dark"] .article-body-pro h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .article-body-pro a {
  color: var(--link-color);
}

[data-theme="dark"] .article-body-pro a:hover {
  color: var(--link-hover);
}

[data-theme="dark"] .article-body-pro blockquote {
  background: var(--bg-secondary);
  border-left-color: var(--link-color);
  color: var(--text-secondary);
}

[data-theme="dark"] .article-tags-pro {
  border-top-color: var(--border-color);
}

[data-theme="dark"] .article-tags-pro .tags-label {
  color: var(--text-muted);
}

[data-theme="dark"] .article-tags-pro .tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

[data-theme="dark"] .article-tags-pro .tag:hover {
  background: var(--bg-hover);
  color: var(--link-color);
}

/* Article header */
[data-theme="dark"] .article-header-pro {
  background: var(--bg-primary);
}

[data-theme="dark"] .article-header-pro h1 {
  color: var(--text-primary);
}

[data-theme="dark"] .article-meta-pro {
  color: var(--text-muted);
}

[data-theme="dark"] .article-intro-pro {
  color: var(--text-secondary);
}

/* Content sidebar */
[data-theme="dark"] .content-sidebar {
  background: var(--bg-primary);
}

[data-theme="dark"] .sidebar-widget {
  background: var(--card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-widget h3 {
  color: var(--text-primary);
}

/* Related articles */
[data-theme="dark"] .related-articles h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .related-item {
  border-color: var(--border-color);
}

[data-theme="dark"] .related-item h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .related-item:hover h4 {
  color: var(--link-color);
}

/* Article page complete dark mode */
[data-theme="dark"] .article-pro {
  background: var(--bg-primary);
}

[data-theme="dark"] .article-category-link {
  color: var(--link-color);
}

[data-theme="dark"] .article-category-link:hover {
  color: var(--link-hover);
}

[data-theme="dark"] .article-title-pro {
  color: var(--text-primary);
}

[data-theme="dark"] .article-lead {
  color: var(--text-secondary);
}

[data-theme="dark"] .article-byline {
  border-top-color: var(--border-color);
}

[data-theme="dark"] .byline-left .publish-date {
  color: var(--text-secondary);
}

[data-theme="dark"] .byline-left .read-time {
  color: var(--text-muted);
}

[data-theme="dark"] .share-icon {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

[data-theme="dark"] .share-icon:hover {
  background: var(--link-color);
  color: #fff;
}

[data-theme="dark"] .article-hero-image {
  background: var(--bg-secondary);
}

[data-theme="dark"] .article-content-pro {
  background: var(--bg-primary);
}

[data-theme="dark"] .tag-link {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

[data-theme="dark"] .tag-link:hover {
  background: var(--link-color);
  color: #fff;
}

[data-theme="dark"] .article-share-footer {
  border-top-color: var(--border-color);
}

[data-theme="dark"] .article-share-footer .share-label {
  color: var(--text-muted);
}

[data-theme="dark"] .share-btn-footer.twitter {
  background: #333;
}

[data-theme="dark"] .sidebar-widget {
  background: var(--bg-secondary);
}

[data-theme="dark"] .sidebar-widget h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .sidebar-widget p {
  color: var(--text-muted);
}

[data-theme="dark"] .sidebar-newsletter-form input {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .sidebar-newsletter-form input:focus {
  border-color: var(--link-color);
}

[data-theme="dark"] .sidebar-newsletter-form input::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] .sidebar-newsletter-form button {
  background: var(--link-color);
}

[data-theme="dark"] .sidebar-newsletter-form button:hover {
  background: var(--link-hover);
}

[data-theme="dark"] .topic-pill {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-muted);
}

[data-theme="dark"] .topic-pill:hover {
  background: var(--link-color);
  border-color: var(--link-color);
  color: #fff;
}

[data-theme="dark"] .article-nav-pro {
  background: var(--bg-secondary);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .article-nav-pro .nav-item {
  background: var(--card-bg);
}

[data-theme="dark"] .article-nav-pro .nav-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .article-nav-pro .nav-label {
  color: var(--text-muted);
}

[data-theme="dark"] .article-nav-pro .nav-label svg {
  stroke: var(--text-muted);
}

[data-theme="dark"] .article-nav-pro .nav-title {
  color: var(--text-primary);
}

[data-theme="dark"] .article-nav-pro .nav-item:hover .nav-title {
  color: var(--link-color);
}

[data-theme="dark"] .recommended-section {
  background: var(--bg-primary);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .recommended-title {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

[data-theme="dark"] .rec-image {
  background-color: var(--bg-tertiary);
}

[data-theme="dark"] .rec-category {
  color: var(--link-color);
}

[data-theme="dark"] .rec-content h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .recommended-card:hover h3 {
  color: var(--link-color);
}

[data-theme="dark"] .rec-content time {
  color: var(--text-muted);
}

[data-theme="dark"] .vote-btn {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

[data-theme="dark"] .vote-btn:hover {
  background: var(--bg-hover);
}

[data-theme="dark"] .vote-btn .vote-icon {
  fill: var(--text-muted);
}

/* ==========================================================================
   iOS App Mode - Bottom Navigation
   ========================================================================== */

/* ==========================================================================
   Mobile & App Spacing Optimization
   ========================================================================== */

/* Tighter mobile spacing */
@media (max-width: 768px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  main {
    padding-top: 0;
  }

  section {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }

  .section-header {
    margin-bottom: 12px;
  }

  /* Hide breadcrumbs on mobile */
  .breadcrumb-container,
  .article-breadcrumb {
    display: none !important;
  }
}

/* Detect Capacitor app and apply app-specific styles */
body.capacitor-app {
  overflow-x: hidden;
  width: 100vw;
  max-width: 100%;
}

body.capacitor-app .site-header {
  display: none !important;
}

body.capacitor-app main {
  padding-bottom: 65px; /* Space for bottom nav */
  padding-top: 52px; /* Space for top bar */
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body.capacitor-app footer {
  padding-bottom: 65px;
}

/* App-specific tight spacing */
body.capacitor-app .container {
  padding-left: 8px !important;
  padding-right: 8px !important;
  max-width: 100% !important;
}

body.capacitor-app section {
  padding: 8px 0;
  margin: 0;
}

body.capacitor-app h1 { font-size: 1.25rem; margin-bottom: 4px; margin-top: 0; }
body.capacitor-app h2 { font-size: 1.1rem; margin-bottom: 4px; margin-top: 0; }
body.capacitor-app h3 { font-size: 0.95rem; margin-bottom: 4px; margin-top: 0; }

body.capacitor-app p {
  margin-bottom: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
}

body.capacitor-app .section-header {
  margin-bottom: 6px;
}

body.capacitor-app .section-header h2 {
  font-size: 1rem;
}

/* Remove extra margins/padding globally in app */
body.capacitor-app * {
  box-sizing: border-box;
}

body.capacitor-app main > *:first-child {
  margin-top: 0;
  padding-top: 0;
}

body.capacitor-app .editorial-home,
body.capacitor-app .articles-page,
body.capacitor-app .blog-page {
  padding: 8px 0;
}

body.capacitor-app .hero-section,
body.capacitor-app .featured-section,
body.capacitor-app .articles-grid,
body.capacitor-app .blog-grid {
  margin-bottom: 12px;
}

body.capacitor-app .card,
body.capacitor-app .article-card,
body.capacitor-app .blog-card {
  padding: 10px;
  margin-bottom: 8px;
}

body.capacitor-app .card-content {
  padding: 8px;
}

body.capacitor-app .card-title,
body.capacitor-app .article-title {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

body.capacitor-app .card-excerpt,
body.capacitor-app .article-excerpt {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 4px;
}

body.capacitor-app .card-meta {
  font-size: 0.7rem;
}

/* Hide breadcrumbs in app */
body.capacitor-app .breadcrumb-container,
body.capacitor-app .article-breadcrumb,
body.capacitor-app .breadcrumb {
  display: none !important;
}

/* Games page app styles */
body.capacitor-app .games-page {
  padding-top: 0.5rem;
}

body.capacitor-app .games-page .container {
  padding: 0 12px;
}

/* App Top Bar - search icon only */
.app-top-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  padding: 6px 10px;
  padding-top: calc(4px + env(safe-area-inset-top));
  z-index: 9998;
  border-bottom: 1px solid var(--border-color);
}

body.capacitor-app .app-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* App Back Button */
.app-back-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--link-color);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.app-back-btn svg {
  width: 20px;
  height: 20px;
}

/* Hide top bar on main pages, show on inner pages */
body.capacitor-app.is-main-page .app-top-bar {
  display: none !important;
}

body.capacitor-app:not(.is-main-page) .app-top-bar {
  display: flex !important;
}

/* App Search Overlay */
.app-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 10001;
  padding-top: env(safe-area-inset-top);
}

.app-search-overlay.active {
  display: block;
}

.app-search-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.app-search-header form {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 8px 12px;
  gap: 8px;
}

.app-search-header svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.app-search-header input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  outline: none;
}

.app-search-header input::placeholder {
  color: var(--text-muted);
}

.app-search-cancel {
  background: none;
  border: none;
  color: var(--accent-vibrant);
  font-size: 17px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  padding: 8px 4px;
}

[data-theme="dark"] .app-top-bar {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .app-search-overlay {
  background: var(--bg-primary);
}

[data-theme="dark"] .app-search-header form {
  background: var(--bg-tertiary);
}

/* App Bottom Navigation Bar - Amazon-style */
.app-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 4px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 9999;
}

body.capacitor-app .app-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}

.app-bottom-nav a,
.app-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 9px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-weight: 500;
  letter-spacing: -0.1px;
  padding: 2px 8px 4px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
  gap: 2px;
  min-width: 64px;
}

.app-bottom-nav a:hover,
.app-bottom-nav a:focus,
.app-bottom-nav button:hover,
.app-bottom-nav button:focus {
  color: var(--text-primary);
}

.app-bottom-nav a.active,
.app-bottom-nav button.active {
  color: var(--accent-vibrant);
}

.app-bottom-nav svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.app-bottom-nav a.active svg,
.app-bottom-nav button.active svg {
  stroke-width: 2;
}

/* Dark mode for app nav */
[data-theme="dark"] .app-bottom-nav {
  background: var(--bg-primary);
  border-color: var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .app-bottom-nav a {
  color: var(--text-muted);
}

[data-theme="dark"] .app-bottom-nav a:hover,
[data-theme="dark"] .app-bottom-nav a:focus,
[data-theme="dark"] .app-bottom-nav button:hover,
[data-theme="dark"] .app-bottom-nav button:focus,
[data-theme="dark"] .app-bottom-nav a.active,
[data-theme="dark"] .app-bottom-nav button.active {
  color: var(--link-color);
}

/* App More Sheet */
.app-more-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.app-more-overlay.active {
  display: block;
  opacity: 1;
}

.app-more-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-radius: 16px 16px 0 0;
  padding: 12px 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.app-more-overlay.active .app-more-panel {
  transform: translateY(0);
}

.app-more-handle {
  width: 36px;
  height: 5px;
  background: var(--border-color);
  border-radius: 3px;
  margin: 0 auto 16px;
}

.app-more-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-more-menu li {
  border-bottom: 1px solid var(--border-color);
}

.app-more-menu li:last-child {
  border-bottom: none;
}

.app-more-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 17px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background 0.15s ease;
}

.app-more-menu a:hover {
  background: var(--bg-hover);
}

.app-more-menu svg {
  width: 22px;
  height: 22px;
  color: var(--accent-vibrant);
  flex-shrink: 0;
}

.app-more-cancel {
  display: block;
  width: calc(100% - 32px);
  margin: 12px 16px 0;
  padding: 14px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  text-align: center;
}

[data-theme="dark"] .app-more-panel {
  background: var(--bg-secondary);
}

[data-theme="dark"] .app-more-cancel {
  background: var(--bg-tertiary);
}
