/* Custom Properties for POCH Magazine Design System */
:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --text-muted: #555555;
  --text-light: #888888;
  --border-color: rgba(107, 119, 98, 0.45);
  
  /* Color Accents matching mockups - Vibrant and Distinct */
  --accent-orange: #e26d43; /* Pop category */
  --accent-brown: #a87954;  /* Casa category */
  --accent-teal: #3b8e88;   /* Tech category */
  --accent-darkred: #b53838;/* Screen category */
  
  --sage-green-bg: #9da993; /* Newsletter block background */
  --accent-terracotta: #b85a4b; /* Signal accent color */
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Selection Highlight */
::selection {
  background-color: rgba(157, 169, 147, 0.35);
  color: var(--text-color);
}
::-moz-selection {
  background-color: rgba(157, 169, 147, 0.35);
  color: var(--text-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f7f9f6;
}
::-webkit-scrollbar-thumb {
  background: #9da993;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6b7762;
}

/* Global Reset & Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 0;
}

/* Accent Classes */
.text-orange { color: var(--accent-orange); }
.text-brown { color: var(--accent-brown); }
.text-teal { color: var(--accent-teal); }
.text-darkred { color: var(--accent-darkred); }

/* Upper Bar */
.upper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 5%;
  background-color: var(--sage-green-bg);
  border-bottom: 1px solid rgba(157, 169, 147, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
}

.bar-left {
  color: rgba(255, 255, 255, 0.85);
}

.bar-center {
  color: #ffffff;
  text-transform: uppercase;
}

.bar-center:hover {
  opacity: 0.8;
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-social {
  width: 14px;
  height: 14px;
  fill: rgba(255, 255, 255, 0.85);
  transition: var(--transition-smooth);
}

.icon-social:hover {
  fill: #ffffff;
}

.icon-ui {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* Main Navigation Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: linear-gradient(135deg, #ffffff 0%, #f6f8f5 45%, #eff2ed 75%, #ffffff 100%);
  --text-color: #111111;
  --text-muted: #555555;
  color: var(--text-color);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.animated-logo-box {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 50%;
  position: relative;
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 95%);
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 95%);
}

.logo-video {
  width: 108%;
  height: 108%;
  object-fit: cover;
  position: absolute;
  top: -4%;
  left: -4%;
}

.logo-text-box {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--text-color);
}

.brand-tagline {
  font-size: 0.8rem;
  color: #555555;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex: 0 1 auto;
  justify-content: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-color);
  position: relative;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  background-color: rgba(157, 169, 147, 0.1);
  color: var(--text-color);
  border-bottom: 2px solid var(--accent-terracotta);
  border-radius: 4px 4px 0 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--text-color);
}

.header-divider {
  margin: 0 5%;
  border-top: 1px solid var(--border-color);
}

/* Main Container spacing */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 5%;
}

/* Hero Section (Sideslider Wrapper) */
.hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
  border-radius: 4px;
  cursor: grab;
  user-select: none;
}

.hero-section:active {
  cursor: grabbing;
}

.hero-slider-container {
  overflow: hidden;
  width: 100%;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  touch-action: pan-y;
}

/* Individual Slide */
.hero-slide {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 1rem;
}

.hero-img-box {
  border-radius: 4px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  pointer-events: none; /* prevent drag ghost image */
}

.hero-text-content {
  padding-right: 2rem;
}

.category-indicator {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 1rem;
  background-color: rgba(157, 169, 147, 0.15);
  color: #6b7762;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.btn-black {
  display: inline-block;
  background-color: #6b7762;
  color: #ffffff;
  padding: 1rem 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.btn-black:hover {
  background-color: #555f4e;
  transform: translateY(-1px);
}

/* Minimalist Nav Arrows Container */
.hero-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 5%;
  display: flex;
  gap: 0.8rem;
  z-index: 20;
}

.hero-arrow-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: scale(1.05);
}

.hero-arrow-btn svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* Indicators / Dots at bottom */
.hero-slider-indicators {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator-dot.active {
  background: var(--sage-green-bg);
  width: 24px;
  border-radius: 4px;
}

/* Section Title */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent-terracotta) !important;
  padding-bottom: 1rem;
}

.section-title::before {
  content: '✦ ';
  color: var(--accent-terracotta);
  font-size: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Trending Section */
.trending-section {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.trending-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}

.view-all {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
}

.view-all:hover {
  color: var(--text-color);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.trending-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-img-wrapper {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-img-wrapper img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.card-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(107, 119, 98, 0);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.trending-card:hover .card-img-wrapper::after {
  background-color: rgba(107, 119, 98, 0.15);
}

.trending-card:hover .card-img-wrapper img {
  transform: scale(1.03);
}

.card-number {
  position: absolute;
  top: 1rem;
  left: -1.5rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  opacity: 1;
  text-shadow: 0 4px 15px rgba(184, 90, 75, 0.4);
  line-height: 1;
  z-index: 10;
}

.category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: inline-block;
  background-color: rgba(157, 169, 147, 0.15);
  color: #6b7762;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.trending-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
}

/* Sidebar Styling */
.trending-right {
  border-left: 1px solid var(--border-color);
  padding-left: 3rem;
}

.trending-right .section-title {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.sidebar-item {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.sidebar-thumb {
  width: 65px;
  height: 65px;
  border-radius: 2px;
  object-fit: cover;
}

.sidebar-info h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 700;
}

/* 4-Column Main Category Grid */
.categories-grid-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.category-column {
  display: flex;
  flex-direction: column;
}

.column-header {
  font-size: 1.3rem;
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.main-column-card {
  margin-bottom: 1.5rem;
}

.column-main-img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.main-column-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
}

.column-sub-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
}

.sub-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.sub-thumb {
  width: 50px;
  height: 50px;
  border-radius: 2px;
  object-fit: cover;
}

.sub-item p {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 700;
}

/* Money Row */
.money-section {
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  margin-bottom: 5rem;
}

.money-section .section-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.money-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.money-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: #f7f9f6;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(157, 169, 147, 0.15);
}

.money-thumb {
  width: 80px;
  height: 80px;
  border-radius: 2px;
  object-fit: cover;
}

.money-info h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.money-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Newsletter Section */
.newsletter-section {
  background-color: var(--sage-green-bg);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(157, 169, 147, 0.15);
}

.newsletter-content {
  padding: 4rem 5%;
}

.newsletter-content h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.newsletter-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.newsletter-form input:focus {
  outline: none;
  border-color: #6b7762;
  box-shadow: 0 0 0 3px rgba(107, 119, 98, 0.35);
}

.newsletter-form button {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.newsletter-form button:hover {
  background-color: #555f4e;
}

.newsletter-visual img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
}

/* Footer Section */
.main-footer {
  background-color: #111111;
  color: #ffffff;
  padding: 5rem 5% 4rem 5%;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer-tagline {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Integrated Footer Newsletter Box */
.footer-newsletter-box {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1.2rem;
  max-width: 380px;
}

.footer-newsletter-box h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #9da993;
}

.footer-newsletter-box p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.footer-links-grid {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-column h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-column ul a {
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-column ul a:hover {
  color: var(--sage-green-bg);
}

.footer-divider {
  border-top-color: #222222;
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.8rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.icon-social-footer {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.icon-social-footer:hover {
  color: var(--sage-green-bg);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  .hero-arrow-btn {
    width: 40px;
    height: 40px;
  }
  .hero-arrow-btn.prev {
    left: 0.5rem;
  }
  .hero-arrow-btn.next {
    right: 0.5rem;
  }
  .hero-image {
    height: auto;
    max-height: 40vh;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .trending-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .trending-right {
    border-left: none;
    padding-left: 0;
  }
  .categories-grid-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .money-row-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .newsletter-section {
    grid-template-columns: 1fr;
  }
  .newsletter-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2rem;
    line-height: 1.2;
  }
  body {
    line-height: 1.55;
  }
  .hero-summary {
    font-size: 0.95rem;
  }
  .nav-links {
    display: none;
  }
  .upper-bar {
    display: none;
  }
  .categories-grid-section {
    grid-template-columns: 1fr;
  }
  .trending-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-links-grid {
    gap: 2.5rem;
    justify-content: space-between;
    width: 100%;
  }
  /* Center mobile elements */
  .hero-slide {
    text-align: center;
  }
  .hero-text-content {
    align-items: center;
    text-align: center;
    padding: 2rem 0;
  }
  .hero-slider-indicators {
    justify-content: center;
  }
  .trending-card {
  position: relative;
    text-align: center;
  }
  .card-desc {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .section-title {
    text-align: center;
  }
  .section-title::before {
    display: block;
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
}

/* CTR & User Retention Enhancements */
.badge-exclusivo {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  background-color: var(--accent-terracotta);
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.badge-tendencia {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  background-color: #6b7762;
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.sidebar-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.sidebar-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.sidebar-tab-btn.active {
  color: var(--text-color);
}

.sidebar-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #6b7762;
}

.sidebar-tab-content {
  display: none;
}

.sidebar-tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.quick-poll-widget {
  background: #f7f9f6;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 2.5rem;
}

.quick-poll-widget h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: #6b7762;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.poll-opt-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.poll-opt-btn:hover {
  border-color: var(--accent-terracotta);
  background-color: rgba(184, 90, 75, 0.05);
}

.poll-opt-btn .opt-text {
  position: relative;
  z-index: 2;
}

.poll-opt-btn .opt-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: rgba(184, 90, 75, 0.2);
  width: 0%;
  z-index: 1;
  transition: width 0.8s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.poll-opt-btn .opt-pct {
  float: right;
  position: relative;
  z-index: 2;
  font-weight: 700;
  color: var(--accent-terracotta);
  display: none;
}

.poll-opt-btn.voted .opt-pct {
  display: inline;
}

.related-articles-section {
  margin-top: 5rem;
  border-top: 2px solid var(--border-color);
  padding-top: 3rem;
}

.related-articles-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #6b7762;
  text-align: center;
}

/* Infinite Scroll Doomscrolling Loader */
.infinite-scroll-loader {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
  width: 100%;
}

.infinite-scroll-loader.active {
  display: flex;
}

.loader-dot {
  width: 10px;
  height: 10px;
  background-color: #6b7762;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

/* Card Fade-in Animation */
.trending-card.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeIn 0.8s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subpage Theme Customizations (Light Tints) */
.theme-pop {
  background-color: #fcf6f3 !important;
  --accent-orange: #d9745d;
}
.theme-style {
  background-color: #f4f6f2 !important;
  --accent-brown: #738c64;
}
.theme-casa {
  background-color: #faf7f2 !important;
  --accent-brown: #a88865;
}
.theme-tech {
  background-color: #f0f6f5 !important;
  --accent-teal: #62948b;
}
.theme-money {
  background-color: #eff5f2 !important;
  --accent-teal: #52786a;
}
.theme-screen {
  background-color: #faf1f2 !important;
  --accent-darkred: #9e5963;
}

/* Terracotta Signal Accents */
.btn-terracotta {
  background-color: var(--accent-terracotta) !important;
  color: #ffffff !important;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-terracotta:hover {
  background-color: #9b493c !important;
}

/* Title underlines in Terracotta */
.title-underline-terracotta {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.title-underline-terracotta::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--accent-terracotta);
}

/* Premium Editorial Button (formerly comic-bubble-btn) */
.comic-bubble-btn {
  position: relative;
  border: 1px solid var(--accent-terracotta) !important;
  background-color: var(--accent-terracotta) !important;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700 !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: none !important;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.comic-bubble-btn:hover {
  background-color: transparent !important;
  color: var(--accent-terracotta) !important;
  border-color: var(--accent-terracotta) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 90, 75, 0.15) !important;
}

.comic-bubble-btn:active {
  transform: translateY(0);
}

.comic-bubble-btn::before,
.comic-bubble-btn::after {
  display: none !important;
}

/* Premium Minimalist Eyecatcher Badge (formerly comic-burst) */
.comic-burst {
  display: inline-block;
  background-color: rgba(184, 90, 75, 0.1);
  color: var(--accent-terracotta);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(184, 90, 75, 0.25);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 0.8rem;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.comic-burst:hover {
  background-color: var(--accent-terracotta);
  color: #ffffff;
}


/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--accent-terracotta);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Elegant Literary Quiz Widget */
.literary-quiz-widget {
  background-color: #f7f9f6;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

.literary-quiz-widget h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #6b7762;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.quiz-progress-text {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.quiz-question-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.4;
  color: var(--text-color);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.quiz-opt {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: var(--text-color);
  transition: var(--transition-smooth);
}

.quiz-opt:hover {
  border-color: var(--accent-terracotta);
  background-color: rgba(184, 90, 75, 0.03);
}

.quiz-opt.selected {
  border-color: var(--accent-terracotta);
  background-color: rgba(184, 90, 75, 0.08);
  box-shadow: inset 0 0 0 1px var(--accent-terracotta);
}

/* Quiz Result styles */
.quiz-result-card {
  text-align: center;
  padding: 0.5rem 0;
  animation: cardFadeIn 0.6s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

.quiz-result-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent-terracotta);
  margin-bottom: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-result-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}



/* Premium Article Modal Overlay */
.article-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.article-modal-card {
  background-color: #ffffff;
  width: 90%;
  max-width: 760px;
  max-height: 85vh;
  border-radius: 8px;
  overflow-y: auto;
  border: 1px solid rgba(157, 169, 147, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.article-modal.active .article-modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 0.9rem;
  color: var(--text-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.modal-close-btn:hover {
  background: var(--accent-terracotta);
  color: #ffffff;
  border-color: var(--accent-terracotta);
  transform: rotate(90deg);
}

.modal-hero-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
  border-bottom: 1px solid rgba(157, 169, 147, 0.15);
}

.modal-content-area {
  padding: 3rem 10% 4rem 10%;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.modal-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.modal-body p {
  margin-bottom: 1.6rem;
}

/* Custom scrollbar for modal card */
.article-modal-card::-webkit-scrollbar {
  width: 6px;
}

.article-modal-card::-webkit-scrollbar-track {
  background: #f7f9f6;
}

.article-modal-card::-webkit-scrollbar-thumb {
  background: var(--accent-terracotta);
  border-radius: 3px;
}

@media (max-width: 768px) {
  .modal-title {
    font-size: 1.75rem;
  }
  .modal-content-area {
    padding: 2rem 6% 3rem 6%;
  }
  .modal-hero-img {
    height: auto;
    max-height: 200px;
  }
}

/* Search Modal Overlay */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.search-container {
  width: 90%;
  max-width: 600px;
  position: relative;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 1.2rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  border: 1px solid rgba(157, 169, 147, 0.3);
  border-radius: 30px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--accent-terracotta);
  box-shadow: 0 10px 30px rgba(184, 90, 75, 0.15);
}

.search-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.search-close-btn:hover {
  transform: rotate(90deg);
  color: var(--accent-terracotta);
}

.search-results {
  width: 90%;
  max-width: 800px;
  max-height: 60vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-right: 0.5rem;
}

.search-result-item {
  background: #ffffff;
  border: 1px solid rgba(157, 169, 147, 0.15);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.search-result-item:hover {
  border-color: var(--accent-terracotta);
  box-shadow: 0 4px 15px rgba(184, 90, 75, 0.08);
  transform: translateY(-2px);
}

.search-result-thumb {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  object-fit: cover;
}

.search-result-info h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--text-color);
}

.search-result-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Custom scrollbar for search results */
.search-results::-webkit-scrollbar {
  width: 4px;
}

.search-results::-webkit-scrollbar-thumb {
  background: var(--accent-terracotta);
  border-radius: 2px;
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background-color: #ffffff;
  z-index: 10002;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 3rem 2rem;
  transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.4);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 2rem;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.drawer-close-btn:hover {
  color: var(--accent-terracotta);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-links a {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.3rem;
  align-self: flex-start;
  transition: all 0.25s ease;
}

.drawer-links a:hover {
  border-bottom-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

/* Subpage Theme Background Tints for distinct recognition */
body.theme-pop { background-color: rgba(226, 109, 67, 0.02); }
body.theme-style { background-color: rgba(168, 121, 84, 0.02); }
body.theme-casa { background-color: rgba(168, 121, 84, 0.02); }
body.theme-tech { background-color: rgba(59, 142, 136, 0.02); }
body.theme-money { background-color: rgba(59, 142, 136, 0.02); }
body.theme-screen { background-color: rgba(181, 56, 56, 0.02); }

html[data-theme="dark"] body.theme-pop,
html[data-theme="dark"] body.theme-style,
html[data-theme="dark"] body.theme-casa,
html[data-theme="dark"] body.theme-tech,
html[data-theme="dark"] body.theme-money,
html[data-theme="dark"] body.theme-screen {
    --bg-color: #111111;
    --text-color: #f7f9f6;
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --bg-color: #111111;
  --text-color: #f7f9f6;
  --text-muted: #aaaaaa;
  --text-light: #dddddd;
  --border-color: rgba(157, 169, 147, 0.25);
  --sage-green-bg: #1a1e18;
}

/* Header isoliert (bleibt hell) */
[data-theme="dark"] .article-modal-card { background: #1a1e18; color: #ffffff; }
[data-theme="dark"] .trending-card {
  position: relative; background: transparent; }
[data-theme="dark"] .money-card { background: transparent; }
[data-theme="dark"] .quick-poll-widget { background: #151813; }
[data-theme="dark"] .literary-quiz-widget { background: #151813; }
[data-theme="dark"] .search-container { background: #1a1e18; }
[data-theme="dark"] .search-input { background: #1a1e18; color: #fff; }
[data-theme="dark"] .mobile-drawer { background: #111111; }
[data-theme="dark"] .drawer-links a { color: #f7f9f6; }

/* --- MICRO-ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Google Translate Aggressive Suppression */
html, body {
  top: 0 !important;
  margin-top: 0 !important;
}
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-gadget-icon,
.goog-te-gadget-simple {
  display: none !important;
  visibility: hidden !important;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.lang-btn:hover { color: #ffffff; }

.theme-toggle-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}
.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.theme-toggle-btn:hover { color: #ffffff; }

/* --- TTS AUDIO BUTTON --- */
.tts-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-left: auto;
}
.tts-btn:hover { background: rgba(157, 169, 147, 0.1); }
.tts-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* --- LOAD MORE BUTTON (DOOMSCROLL) --- */
.load-more-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

.load-more-btn {
  background: transparent;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.75rem 2.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.load-more-btn:hover {
  background: var(--text-dark);
  color: var(--bg-light);
}

html[data-theme="dark"] .load-more-btn {
  border-color: var(--text-light);
  color: var(--text-light);
}

html[data-theme="dark"] .load-more-btn:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

/* Lazy Loading Fade In */
img {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}
img[loading="lazy"] {
    opacity: 0;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* QA UI/UX Fixes */
[data-theme="dark"] .search-result-item { background: #1a1e18; border: 1px solid var(--border-color); }
[data-theme="dark"] .poll-opt-btn, [data-theme="dark"] .quiz-opt { background: #1a1e18; color: var(--text-color); }

@media (max-width: 1024px) {
  .newsletter-content {
    text-align: center;
    padding: 2rem 1rem;
  }
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  background-color: var(--bg-color);
  color: var(--text-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 400px;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .cookie-banner {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.cookie-banner .btn-accept,
.cookie-banner .btn-reject {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.cookie-banner .btn-accept {
  background-color: var(--accent-terracotta);
  color: #ffffff;
  border: none;
}

.cookie-banner .btn-accept:hover {
  opacity: 0.9;
}

.cookie-banner .btn-reject {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.cookie-banner .btn-reject:hover {
  background-color: rgba(157, 169, 147, 0.1);
}

/* AdSense Slot Styles */
.ad-slot {
  margin: 2rem auto;
  text-align: center;
  border: 1px dashed var(--border-color);
  padding: 1rem;
  position: relative;
}

.ad-slot::before {
  content: 'Advertisement';
  font-size: 0.7rem;
  color: #888;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-color);
  padding: 0 10px;
}


/* --- Advanced CMP Styles --- */
.cmp-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 10000;
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

[data-theme="dark"] .cmp-banner {
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.cmp-content {
    flex: 1;
    min-width: 300px;
}

.cmp-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cmp-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.8;
}

.cmp-links a {
    font-size: 0.8rem;
    color: var(--accent-terracotta);
    text-decoration: none;
    font-weight: 600;
}

.cmp-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cmp-buttons button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-terracotta);
    color: white;
    border: none;
}

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

.btn-text {
    background: transparent;
    color: var(--text-color);
    border: none;
    text-decoration: underline;
    opacity: 0.7;
}

/* Modal */
.cmp-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.cmp-modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.cmp-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cmp-toggle-row h4 {
    margin: 0 0 0.3rem 0;
}

.cmp-toggle-row p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Toggle Switch */
.cmp-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.cmp-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.cmp-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cmp-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cmp-slider {
    background-color: var(--accent-terracotta);
}

input:focus + .cmp-slider {
    box-shadow: 0 0 1px var(--accent-terracotta);
}

input:checked + .cmp-slider:before {
    transform: translateX(26px);
}

.cmp-modal-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Added for horizontal footer links */
.footer-links {
    width: 100%;
}
.link-group h4 {
    margin-bottom: 1rem;
}
.link-group ul {
    list-style: none !important;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
}
.link-group li {
    display: inline-block;
}
.link-group li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.link-group li a:hover {
    color: var(--sage-green-bg);
}

/* Legal Pages Styling */
.legal-container {
    max-width: 800px;
    margin: 4rem auto 6rem auto;
    padding: 3rem 4rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .legal-container {
    background-color: rgba(255,255,255,0.02);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Decorative subtle lines */
.legal-container::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px dashed var(--border-color);
    border-radius: 2px;
    pointer-events: none;
    opacity: 0.5;
}

.legal-container h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.legal-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-terracotta);
}

.legal-container h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(107, 119, 98, 0.2);
    padding-bottom: 0.5rem;
}

.legal-container p, .legal-container ul, .legal-container li {
    font-family: var(--font-sans);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.legal-container ul {
    padding-left: 1.5rem;
    list-style: square;
}

.legal-container a {
    color: var(--accent-terracotta);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.legal-container a:hover {
    border-bottom: 1px solid var(--accent-terracotta);
}

@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem 4rem 1rem;
    }
}

.footer-bottom-menu a:hover {
  color: var(--accent-terracotta) !important;
  transition: var(--transition-smooth);
}
.footer-newsletter-box {
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.newsletter-form input { min-width: 0; }


/* Dark Mode Overrides for Main Header */
[data-theme="dark"] .main-header {
  background: linear-gradient(135deg, #121212 0%, #1a1e18 45%, #181818 100%);
  --text-color: #f0f0f0;
  --text-muted: #aaaaaa;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Ensure SVG logos or icons inside header invert if needed */
[data-theme="dark"] .theme-toggle-btn svg {
  fill: #f0f0f0;
}

#newsletter-form-wrapper { display: flex !important; justify-content: center !important; align-items: center !important; width: 100% !important; }
#newsletter-form-wrapper form { display: flex !important; justify-content: center !important; align-items: center !important; width: 100% !important; max-width: 500px !important; margin: 0 auto !important; }


/* FINAL ULTIMATE FOOTER CENTERING OVERRIDE */
.main-footer .footer-top { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; width: 100% !important; text-align: center !important; }
.main-footer .footer-brand { margin: 0 auto !important; display: flex !important; flex-direction: column !important; align-items: center !important; width: 100% !important; max-width: 800px !important; text-align: center !important; }
.footer-newsletter-box { display: flex !important; flex-direction: column !important; align-items: center !important; width: 100% !important; margin: 2rem auto 0 auto !important; text-align: center !important; }
#newsletter-form-wrapper { display: flex !important; justify-content: center !important; align-items: center !important; width: 100% !important; }
#newsletter-form-wrapper form { display: flex !important; flex-direction: row !important; justify-content: center !important; align-items: center !important; width: 100% !important; max-width: 500px !important; margin: 0 auto !important; }

/* Light Mode Slider Overrides */
.light-mode .hero-arrow-btn {
  border-color: rgba(0, 0, 0, 0.4);
}
.light-mode .hero-arrow-btn svg {
  fill: #000000;
}
.light-mode .hero-arrow-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: #000000;
}
.light-mode .indicator-dot {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.3);
}
.light-mode .indicator-dot.active {
  background: #000000;
}
