:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --green: #26ac21;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --gray: #95a5a6;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;

  /* Modern additions */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --border-light: #e2e8f0;
  --text-muted: #64748b;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: #f0f2f5;
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  padding: 0;
}

/* Page wrapper to enforce max width */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Mobile optimization for page wrapper */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 0 0.5rem;
  }
}

/* Container for consistent spacing */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

header {
  background: linear-gradient(135deg, var(--primary), #2cb1ef);
  color: white;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  pointer-events: none;
}

header h1 {
  margin: 0;
  font-size: 2.6rem;
  letter-spacing: -0.5px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-top: 0.8rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav {
  margin-top: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

nav a:hover {
  background: rgba(255, 255, 255, 0.3);
}

main {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Modern Filter Bar */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex: 0 0 auto; /* Don't grow, don't shrink, auto size */
  max-width: 300px;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  background: white;
}

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

.search-box input {
  min-width: 120px; /* Minimum width for search bar */
  max-width: 300px; /* Maximum width for search bar */
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: flex-start;
  padding: 0.25rem 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  width: 100%;
  max-width: 100%;
}

/* Create a wrapper for the gradient that doesn't scroll */
.filter-tags-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* Ensure content doesn't extend beyond container */
  flex: 1; /* Take all remaining space in flex container */
  min-width: 0; /* Allow shrinking below content size */
}

/* Gradient fade effect to indicate scrollable content */
.filter-tags-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
  z-index: 1;
}

/* Dark mode gradient */
html.dark .filter-tags-wrapper::after {
  background: linear-gradient(to left, var(--dark), rgba(0, 0, 0, 0));
}

.filter-tags::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.filter-tag {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

/* Keep original tag sizes - no shrinking */

.filter-tag:hover {
  background: #e2e8f0;
  color: var(--dark);
}

.filter-tag.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Improved Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-header i {
  font-size: 1.5rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.card-header h2,
.card-header h3 {
  color: var(--primary);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.badge {
  background-color: var(--light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.badge-active {
  background-color: rgba(34, 197, 94, 0.1);
  color: #059669;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-development {
  background-color: rgba(156, 163, 175, 0.1);
  color: #6b7280;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.arrow-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.arrow-link i {
  transition: transform 0.2s ease;
}

.card:hover .arrow-link i {
  transform: translateX(4px);
}

/* Card States - New Status-Based System */
.card.reform-card.active {
  /* Fully active measures (status-proposed, status-discussion) */
  opacity: 1;
  cursor: pointer;
}

.card.reform-card.soon {
  /* Coming soon measures (status-soon) */
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.card.reform-card.draft {
  /* Draft measures (no status) */
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* Legacy disabled class - keep for backward compatibility */
.card.disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.card.disabled::before {
  background: var(--gray);
}

.card.disabled .card-header i {
  color: var(--gray);
}

.card.disabled .arrow-link {
  color: var(--gray);
}

/* Feature Cards */
.feature-card {
  cursor: pointer;
}

/* Reform Cards Specific */
.reform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.reform-card {
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.reform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Active cards start hidden and are shown via pagination */
.reform-card.active {
  opacity: 0;
  transform: translateY(0);
  transition: none;
}

.reform-card.active.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.reform-card.active.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Disabled cards are always visible but with reduced opacity */

.reform-card.disabled:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0.8;
}
.card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge {
  background: var(--gray);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.active {
  background: var(--green);
}

/* Original sections with modern touches */
.info,
.placeholder,
.cta {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--secondary);
}

.info h2,
.placeholder h3,
.cta h3 {
  color: var(--primary);
  margin-top: 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

.info ul {
  padding-left: 1.5rem;
}

.info li {
  margin-bottom: 0.8rem;
  position: relative;
}

.info li::before {
  content: "•";
  color: var(--secondary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Pagination with modern styling */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.page,
.page-nav {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
}

.page:hover,
.page-nav:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.page.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Keep original styling for other components */
blockquote {
  background: #f9f9f9;
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-radius: 4px;
}

.chart-placeholder {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  color: var(--gray);
  border: 1px dashed #ddd;
}

code {
  background: #f5f7fa;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--accent);
}

.cta {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-left: none;
}

.cta h3 {
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary), #2cb1ef);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&w=1600&q=80")
    no-repeat center center;
  background-size: cover;
  opacity: 0.05;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--secondary);
  color: white;
  padding: 1rem 1rem;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section styling */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 1rem 1rem 0.5rem;
  color: var(--primary);
}

.section-description {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.intro {
  padding-top: 0.3rem;
}

/* Info section */
.info-section {
  padding: 2rem 0;
  margin: 2rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1.5rem;
  width: 100%;
  margin: 0;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.info-card i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.info-card h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--accent), #c0392b);
  color: white;
  padding: 3rem 2rem 1rem 2rem;
  text-align: center;
  margin: 2rem 0;
  border-radius: var(--radius-xl);
}

.cta-section h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

footer {
  color: var(--dark);
  padding: 1rem 1rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-logo h3 {
  opacity: 0.8;
  margin: 0;
  font-size: 1.5rem;
}

.footer-logo p {
  margin: 0.5rem 0 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .cards,
  .reform-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .feature-card {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0 0rem;
  }

  header,
  .hero {
    margin: 2rem 0;
    padding: 2rem 1.5rem;
    border-radius: 8px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-section {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .filter-bar {
    padding: 1rem;
  }

  .search-box {
    max-width: 100%;
  }

  .info-section {
    padding: 2rem 0;
    margin: 2rem 0;
  }

  .cta-section {
    margin: 2rem 0;
    padding: 2rem 1.5rem;
  }

  .cards,
  .reform-cards {
    margin: 1.5rem 0;
  }

  .card {
    margin-bottom: 1.5rem;
  }

  .infographic-placeholder,
  .video-suggestion,
  .case-study {
    flex-direction: column;
    text-align: center;
  }

  .examples {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .info-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-content {
    padding: 1rem 2rem !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  body {
    padding: 0 0;
  }

  header,
  .hero {
    padding: 1rem 1rem;
  }

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

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .intro {
    padding: 1rem 0;
  }

  .info-section {
    padding: 1rem 0;
  }

  .cta-section {
    padding: 1rem 0.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    padding: 0.25rem;
    gap: 0.75rem;
  }

  .info-card {
    padding: 1rem;
  }

  .section-title {
    margin-bottom: 0.5rem;
  }

  .section-description {
    margin: 0 auto 1rem;
    font-size: 0.95rem;
  }

  .cards,
  .reform-cards {
    margin: 1rem 0;
  }

  .card {
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .filter-bar {
    margin-bottom: 1rem;
    padding: 1rem 0.5rem;
  }

  footer {
    margin: 1rem 0;
    padding: 1.5rem 0.5rem;
  }

  .footer-content {
    gap: 1rem;
  }

  /* Article page specific */
  .article-container {
    padding: 0.5rem 0;
  }

  .article-sidebar {
    padding: 1rem 0.5rem;
  }

  .article-content {
    padding: 1rem 1rem !important;
  }

  .article-section {
    margin-bottom: 1.5rem;
  }

  .toc,
  .share-box,
  .action-box {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .benefits-grid {
    gap: 0.75rem;
    padding: 0.5rem 0;
  }

  .benefit-item {
    padding: 1rem;
  }

  .related-reforms {
    padding: 1rem 0;
  }

  .info-box {
    margin: 1.5rem 0;
    padding: 1rem;
    gap: 1rem;
  }
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.info-box {
  display: flex;
  gap: 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 3rem 0;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.info-content h3 {
  margin-top: 0;
  color: var(--primary);
  margin-bottom: 1rem;
}

.info-content p:last-child {
  margin-bottom: 0;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.dark-mode-toggle:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  transform: scale(1.08);
}
.dark-mode-toggle .light-icon {
  display: block;
}
.dark-mode-toggle .dark-icon {
  display: none;
}
.dark-mode-toggle.dark .light-icon {
  display: none;
}
.dark-mode-toggle.dark .dark-icon {
  display: block;
}

/* Basic Dark Mode Support */
html.dark {
  background: #181c20;
}
html.dark body {
  background: #181c20;
  color: #f1f5f9;
}
html.dark header,
html.dark .hero {
  background: linear-gradient(135deg, #1a2633, #1e3a5c);
  color: #f1f5f9;
}
html.dark .card,
html.dark .info,
html.dark .placeholder,
html.dark .cta,
html.dark .info-card,
html.dark .article-content,
html.dark .toc,
html.dark .share-box,
html.dark .action-box,
html.dark .info-box {
  background: #232a32;
  color: #f1f5f9;
  border-color: #263040;
}
html.dark .card-header h2,
html.dark .card-header h3,
html.dark .section-title,
html.dark .info-card h3 {
  color: #fff;
}
html.dark .card p,
html.dark .section-description,
html.dark .info-card p {
  color: #b0b8c1;
}
html.dark .filter-bar,
html.dark .search-box input,
html.dark .filter-tag,
html.dark .badge,
html.dark .tag,
html.dark .status-badge {
  background: #232a32;
  color: #b0b8c1;
}

html.dark .badge-active {
  background-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

html.dark .badge-development {
  background-color: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.2);
}
html.dark .filter-tag.active,
html.dark .page.active,
html.dark .page-nav:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
html.dark .btn-primary,
html.dark .btn-accent {
  color: #fff;
}

html.dark footer {
  color: #f1f5f9;
}
html.dark .footer-logo h3 {
  color: #fff;
}
html.dark .footer-links a {
  color: #b0b8c1;
}
html.dark .footer-links a:hover {
  color: var(--secondary);
}
html.dark .dark-mode-toggle {
  border-color: #263040;
  background: #1e252b;
  color: #b0b8c1;
}
html.dark .dark-mode-toggle:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Fix missing dark mode styles */
html.dark .info-content h3 {
  color: #fff;
}

html.dark .page,
html.dark .page-nav {
  background: #232a32;
  color: #b0b8c1;
  border-color: #263040;
}

html.dark .page:hover,
html.dark .page-nav:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

html.dark .search-box input {
  background: #2d353e;
  color: #f1f5f9;
  border-color: #263040;
}

html.dark .search-box input:focus {
  background: #232a32;
  border-color: var(--secondary);
  color: #fff;
}

html.dark .faq-question {
  background: #2d353e;
  color: #f1f5f9;
}

html.dark .related-reforms {
  background: transparent;
}

/* Article Page Styles */

/* Article container */
.article-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  width: 100%;
  margin: 0;
}

/* Article sidebar */
.article-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.toc {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
}

.toc h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

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

.toc li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.toc a {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition);
  display: block;
  padding: 0.3rem 0;
}

.toc a:hover {
  color: var(--secondary);
}

.share-box,
.action-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
}

.share-box h3,
.action-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Platform-specific colors */
.share-btn.facebook-share:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.share-btn.twitter-share:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

.share-btn.linkedin-share:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.share-btn.tiktok-share:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

.action-box .btn {
  display: block;
  width: 100%;
  margin-bottom: 0.8rem;
  text-align: center;
}

.action-box .btn:last-child {
  margin-bottom: 0;
}

/* Article content */
.article-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
}

.article-section {
  margin-bottom: 3rem;
}

.article-section:last-child {
  margin-bottom: 1.5rem;
}

.article-section h2 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.8rem;
}

/* Article meta */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.meta-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Proposal quote */
.proposal-quote {
  background: #f8fafc;
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius-md);
}

.proposal-quote h4 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.proposal-quote p {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.proposal-quote p:last-child {
  margin-bottom: 0;
}

/* Highlight box */
.highlight-box {
  background: #fff7ed;
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  padding-top: 0.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.highlight-box p {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  background: linear-gradient(135deg, #fcfcfc, #e6e6e6);
  border-radius: var(--radius-lg);
  padding: 1rem;
  padding-top: 1.5rem;
  text-align: center;
  transition: all 0.3s ease-out;
  border: 1px solid #dae4da;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.benefit-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(14, 132, 195, 0.4);
  background: linear-gradient(135deg, #f8f8f8, #eef1ee);
  z-index: 10;
}

.benefit-item .hover-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 0.5rem;
  transform: translateY(101%);
  transition: transform 0.3s ease-out;
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.benefit-item:hover .hover-info {
  transform: translateY(0);
}

.benefit-item i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.benefit-item h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.3;
}

/* Arguments list */
.arguments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.argument {
  background: rgba(46, 204, 113, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.argument h4 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.argument p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.faq-item {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  background: rgba(231, 76, 60, 0.1);
}

.faq-question h4 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.faq-answer {
  padding: 1.5rem;
}

.faq-answer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Impact list */
.impact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.impact-list li {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  margin-bottom: 0.8rem;
  border-radius: var(--radius-lg);
  position: relative;
  padding-left: 2.5rem;
  border: 1px solid var(--border-light);
}

.impact-list li:before {
  content: "✓";
  position: absolute;
  left: 1rem;
  color: var(--secondary);
  font-weight: bold;
}

/* Tags container */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0;
}

.content-tag {
  background: #f1f5f9;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Examples */
.examples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.example-card {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.example-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.example-header i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.example-header h4 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.example-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Case study */
.case-study {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
}

.person-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.person-info i {
  font-size: 2.5rem;
  color: var(--secondary);
}

.person-info h4 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.case-study p {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-study p:last-child {
  margin-bottom: 0;
}

/* Questions */
.questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.question-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.question-item i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.question-item p {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
}

/* Infographic cards */
.infographic-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.infographic-tab {
  border: 1px solid var(--border-light);
  background: white;
  color: var(--primary);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.infographic-tab:hover,
.infographic-tab:focus {
  outline: none;
  border-color: rgba(52, 152, 219, 0.4);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.infographic-tab.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.28);
}

.infographic-stage {
  position: relative;
}

.infographic-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  animation: fadeIn 0.35s ease;
}

.infographic-card.active {
  display: flex;
}

.infographic-card[hidden] {
  display: none !important;
}

.infographic-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary);
}

.chart-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* Bar chart */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bar-label {
  font-weight: 600;
  color: var(--primary);
  min-width: 5.5rem;
}

.bar-track {
  flex: 1;
  height: 0.75rem;
  background: #e2e8f0;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0;
  width: calc(var(--value) * 1%);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.bar-taxed {
  background: var(--accent);
}

.bar-savings {
  background: var(--green);
}

.bar-value {
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
}

/* Flow diagram */
.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .flow-steps {
    flex-direction: row;
    align-items: stretch;
  }
}

.flow-step {
  flex: 1;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flow-step h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
}

.flow-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flow-arrow {
  align-self: center;
  font-size: 1.8rem;
  color: var(--secondary);
}

/* Quote */
.quote {
  background: #f8fafc;
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  font-style: italic;
}

.quote p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

/* Video suggestion */
.video-suggestion {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
}

.video-suggestion i {
  font-size: 2.5rem;
  color: var(--accent);
}

.video-suggestion h4 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.video-suggestion p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Related reforms */
.related-reforms {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-radius: var(--radius-xl);
}

.related-card {
  cursor: pointer;
}

/* Button outline style */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .article-container {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    order: 2;
  }

  .article-content {
    order: 1;
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Dark mode support for article page */
html.dark .article-content,
html.dark .toc,
html.dark .share-box,
html.dark .action-box {
  background: #232a32;
  color: #f1f5f9;
  border-color: #263040;
}

html.dark .article-section h2,
html.dark .toc h3,
html.dark .share-box h3,
html.dark .action-box h3 {
  color: #fff;
  border-color: #263040;
}

html.dark .proposal-quote,
html.dark .highlight-box,
html.dark .argument,
html.dark .faq-item,
html.dark .impact-list li,
html.dark .example-card,
html.dark .case-study,
html.dark .question-item,
html.dark .infographic-placeholder,
html.dark .quote,
html.dark .video-suggestion {
  background: #1e252b;
  border-color: #263040;
}

html.dark .benefit-item {
  background: linear-gradient(135deg, #68ddac5f, #69cd8c37);
  border-color: #4a7c59;
}

html.dark .benefit-item:hover {
  background: linear-gradient(135deg, #68ddac5f, #69cd8c37);
  box-shadow: 0 10px 25px rgba(238, 238, 238, 0.219);
}

html.dark .proposal-quote h4,
html.dark .highlight-box p,
html.dark .benefit-item h4,
html.dark .argument h4,
html.dark .faq-question h4,
html.dark .example-header h4,
html.dark .person-info h4,
html.dark .question-item p,
html.dark .quote p {
  color: #fff;
}

html.dark .proposal-quote p,
html.dark .argument p,
html.dark .faq-answer p,
html.dark .example-card p,
html.dark .case-study p,
html.dark .video-suggestion p,
html.dark .infographic-placeholder p,
html.dark .quote cite {
  color: #b0b8c1;
}

html.dark .content-tag {
  background: #1e252b;
  color: #b0b8c1;
}

html.dark .share-btn {
  background: #1e252b;
  color: #b0b8c1;
}

html.dark .share-btn:hover {
  background: var(--secondary);
  color: #fff;
}

html.dark .btn-outline {
  background: transparent;
  border-color: #263040;
  color: #b0b8c1;
}

html.dark .btn-outline:hover {
  background: #1e252b;
  border-color: var(--secondary);
  color: var(--secondary);
}

html.dark .subtitle {
  color: rgba(255, 255, 255, 0.8);
}

html.dark .breadcrumb-item {
  color: rgba(255, 255, 255, 0.7);
}

html.dark .breadcrumb-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

html.dark .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

html.dark .breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
}

html.dark .status-badge {
  /* border removed */
}

html.dark .status-proposed,
html.dark .status-badge.active {
  background: rgba(46, 204, 113, 0.3);
}

html.dark .tags-label {
  color: rgba(255, 255, 255, 0.7);
}

html.dark .category-tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

html.dark .category-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Header Navigation */
.header-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  margin-top: 0;
  padding-top: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.breadcrumb-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

.breadcrumb-current {
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
}

.header-title {
  text-align: center;
  margin: 2rem 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-title h1 {
  margin: 0 0 1rem 0;
  font-size: 2.6rem;
  letter-spacing: 0.3px;
  line-height: 1;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.header-title .subtitle {
  margin-top: 0;
}

/* Enhanced Article Meta */
.article-meta-enhanced {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.status-section {
  display: flex;
  justify-content: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.status-proposed {
  background: rgba(46, 204, 113, 0.2);
  color: #ffffff;
}

.tags-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tags-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Disable hover effects for non-clickable header elements */
.status-proposed:hover {
  background: rgba(46, 204, 113, 0.2);
  color: #ffffff;
  border-color: rgba(46, 204, 113, 0.4);
  transform: none;
  box-shadow: none;
}

.category-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: none;
  box-shadow: none;
}

/* Responsive Design for Enhanced Header */
@media (max-width: 768px) {
  .header-nav {
    align-items: flex-start;
  }

  .breadcrumb-item span {
    display: none;
  }

  .breadcrumb-item i {
    font-size: 1rem;
  }

  .header-title h1 {
    font-size: 2rem;
  }

  .tags-list {
    gap: 0.5rem;
  }

  .category-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .article-meta-enhanced {
    gap: 1rem;
  }
}

/* Newsletter Signup Styles */
.newsletter-signup {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form {
  margin-bottom: 0.5rem;
}

.newsletter-form .form-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
  padding: 0.875rem 1.5rem;
  white-space: nowrap;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.newsletter-note {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.newsletter-message {
  padding: 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  animation: slideIn 0.3s ease-out;
}

.newsletter-message.success {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

.newsletter-message.error {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.newsletter-message i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.newsletter-message p {
  margin: 0;
  font-weight: 500;
}

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

@media (max-width: 768px) {
  .newsletter-form .form-group {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter-input {
    min-width: 100%;
  }

  .newsletter-btn {
    width: 100%;
    min-width: 100%;
  }

  .newsletter-note {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .newsletter-signup {
    max-width: 100%;
  }

  .newsletter-input {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .newsletter-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

html.dark .cta-section {
  background: linear-gradient(135deg, #8b2a2a, #6b1a1a);
  color: #f1f5f9;
}

html.dark footer {
  color: #f1f5f9;
}

@media (max-width: 768px) {
  .tag-filter {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px; /* For scrollbar visibility */
  }
  .tag-filter .tag {
    display: inline-block;
  }
}

.modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.open {
  opacity: 1;
}
.modal-content {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal.open .modal-content {
  transform: scale(1);
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
}
/* Dark mode */
html.dark .modal-content {
  background: #232a32;
  color: #f1f5f9;
}

.modal-content form {
  display: grid;
  gap: 1.5rem;
}
.form-group {
  position: relative;
}
.form-group label {
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  background: white;
  padding: 0 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--secondary);
  outline: none;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
html.dark .form-group label {
  background: #232a32;
}

.sort-select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: white;
  margin-left: 1rem;
}
html.dark .sort-select {
  background: #232a32;
  color: #f1f5f9;
  border-color: #263040;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: #4caf50;
  color: white;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
}

/* Dark mode support for toast */
html.dark .toast {
  background: #2d3748;
  color: #f7fafc;
  border: 1px solid #4a5568;
}

/* Comments section */
.comments-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
}

.comments-section h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.8rem;
}

html.dark .comments-section {
  background: #1a202c;
  color: #f7fafc;
  border-color: #2d3748;
}

html.dark .comments-section h2 {
  color: #f7fafc;
  border-color: #2d3748;
}
