:root {
  --primary: #4339ca;
  --primary-light: #6356d5;
  --primary-dark: #3326bb;
  --secondary: #ed72d5;
  --secondary-light: #f096de;
  --secondary-dark: #d54bc0;
  --tertiary: #8657e1;
  --tertiary-light: #9d76e8;
  --tertiary-dark: #7342cd;
  --accent: #50a7ff;
  --accent-light: #74bbff;
  --accent-dark: #3b92f0;
  --highlight: #44bfc3;
  --highlight-light: #65d1d5;
  --highlight-dark: #37a2a6;
  --success: #2cb67d;
  --error: #e53170;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-section {
  position: relative;
  background: linear-gradient(120deg, var(--primary), var(--tertiary));
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
  border-radius: 0;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.2;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 1;
}

.hero-section p {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.checker-card {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 2rem auto;
  padding: 2rem;
  position: relative;
  z-index: 10;
  max-width: 700px;
  transition: var(--transition);
}

.checker-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.checker-card h2 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.checker-card p {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.tool-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  margin: 0;
}

input[type="text"]:focus {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(134, 87, 225, 0.15);
}

button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin: 0;
}

button:hover {
  background-color: var(--primary-light);
}

button:active {
  background-color: var(--primary-dark);
}

button:disabled {
  background-color: var(--gray-500);
  color: var(--gray-200);
  cursor: not-allowed;
}

.recent-checks {
  background-color: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  border-left: 3px solid var(--tertiary);
}

.recent-checks h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tertiary);
  margin-bottom: 0.75rem;
}

.quick-check-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.quick-check-link {
  color: var(--primary-dark);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  background-color: var(--gray-200);
  transition: var(--transition);
}

.quick-check-link:hover {
  background-color: var(--tertiary);
  color: white;
}

#result {
  font-weight: 600;
  margin-top: 1rem;
  font-size: 1.125rem;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

#result.success {
  background-color: rgba(44, 182, 125, 0.15);
  color: #1a8860;
}

#result.error {
  background-color: rgba(229, 49, 112, 0.15);
  color: #c62057;
}

#details {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  text-align: center;
}

.content-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.content-section h2 {
  color: var(--primary-dark);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.content-section h3 {
  color: var(--gray-800);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid var(--accent);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card h3 {
  color: var(--tertiary);
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
  color: var(--gray-700);
}

li {
  margin-bottom: 0.5rem;
}

li strong {
  color: var(--gray-800);
}

.faq-section {
  padding: 3rem 0;
}

.faq-section h2 {
  color: var(--primary);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-weight: 500;
  cursor: pointer;
  padding: 1rem 1.5rem;
  background-color: white;
  border-left: 3px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--gray-50);
}

.faq-question:after {
  content: "+";
  font-size: 1.25rem;
  color: var(--gray-400);
}

.faq-question.active {
  border-left-color: var(--primary);
}

.faq-question.active:after {
  content: "−";
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
  padding: 1rem 1.5rem;
  max-height: 500px;
  background-color: var(--gray-50);
}

.footer {
  background-color: var(--primary-dark);
  color: var(--gray-300);
  padding: 3rem 1.5rem;
  margin-top: 0;
  text-align: center;
}

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

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

.footer p {
  margin: 1rem 0;
  font-size: 0.875rem;
}

.status-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.status-code-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.status-code-card h4 {
  color: var(--gray-800);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.status-code-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.popular-checks {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.popular-checks ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.popular-checks li {
  padding: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.popular-checks strong {
  color: var(--primary);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 1rem;
    margin-bottom: 30px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .checker-card {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .container {
    padding: 0 1rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .content-section h3 {
    font-size: 1.125rem;
  }

  .status-info-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .quick-check-links {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-check-link {
    text-align: center;
  }

  .checker-card {
    padding: 1.25rem;
    margin: 0.5rem auto;
  }
}

.check-link {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  padding: 0 2px;
}

.check-link:hover {
  color: var(--tertiary);
  text-decoration: underline;
}

a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Add skip-to-content link for keyboard users */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-to-content:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  outline: none;
  text-decoration: underline;
}

/* Improved contrast for form elements */
::placeholder {
  color: var(--gray-500); /* Darker placeholder text for better contrast */
}

/* Add reduced motion support for animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Add high contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: #0000cc;
    --primary-dark: #000099;
    --secondary: #cc00cc;
    --tertiary: #6600cc;
    --accent: #0066cc;
    --highlight: #009999;
  }

  body {
    color: black;
    background-color: white;
  }

  a {
    text-decoration: underline;
  }

  button,
  .quick-check-link,
  .feature-card {
    border: 2px solid black;
  }
}

/* Status indicators for recent checks */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
}

.status-dot.up {
  background-color: var(--success);
  box-shadow: 0 0 4px rgba(44, 182, 125, 0.5);
}

.status-dot.down {
  background-color: var(--error);
  box-shadow: 0 0 4px rgba(229, 49, 112, 0.5);
}

/* Navigation menu styles */
.main-nav {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 20;
  margin-bottom: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: var(--transition);
}

.nav-links a:hover::after {
  background-color: var(--tertiary-light);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  background-color: var(--primary);
}

@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Education page styles */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.topic-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: var(--gray-800);
  border-top: 3px solid var(--tertiary);
  display: block;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--gray-900);
}

.topic-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.topic-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Article styles */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h2 {
  color: var(--primary);
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-header .description {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-800);
}

.article-content h3 {
  color: var(--tertiary);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.article-content h4 {
  color: var(--primary-dark);
  margin: 1.5rem 0 1rem;
  font-size: 1.25rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content code {
  background-color: var(--gray-100);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9em;
}

.article-content .code-block {
  background-color: var(--gray-900);
  color: var(--gray-100);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-content .note {
  background-color: rgba(80, 167, 255, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content .warning {
  background-color: rgba(237, 114, 213, 0.1);
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content th {
  background-color: var(--primary-light);
  color: white;
  padding: 0.75rem;
  text-align: left;
}

.article-content td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.article-content tr:nth-child(even) {
  background-color: var(--gray-50);
}

.article-content .image-container {
  margin: 2rem 0;
  text-align: center;
}

.article-content .image-container img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article-content .image-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-500);
  text-align: center;
}

/* Education navigation styles */
.article-nav {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding-right: 1rem;
}

.article-nav-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.article-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-nav-list li {
  margin-bottom: 0.5rem;
}

.article-nav-list a {
  display: block;
  padding: 0.5rem 0;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  border-left: 2px solid var(--gray-200);
  padding-left: 1rem;
}

.article-nav-list a:hover {
  color: var(--primary);
  border-left-color: var(--primary-light);
  text-decoration: none;
}

.article-nav-list a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 500;
}

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

  .article-header h2 {
    font-size: 1.75rem;
  }

  .article-content h3 {
    font-size: 1.35rem;
  }

  .article-content h4 {
    font-size: 1.15rem;
  }
}

.main-nav + #main-content {
  padding-top: 2rem;
}

/* Social sharing buttons */
.social-share {
  margin: 2rem auto;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.social-share h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-button {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
  width: auto;
  min-width: 120px;
  justify-content: center;
}

.share-icon {
  margin-right: 0.5rem;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.facebook {
  background-color: #4267b2;
}

.share-button.linkedin {
  background-color: #0077b5;
}

.share-button.copy {
  background-color: var(--gray-700);
  width: auto;
}

.share-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Newsletter signup */
.newsletter-signup {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--primary-dark);
  border-radius: var(--radius-md);
  color: white;
  text-align: center;
}

.newsletter-signup h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.newsletter-signup p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--gray-200);
}

.newsletter-signup form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-signup input[type="email"] {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.newsletter-signup button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background-color: var(--secondary);
}

.newsletter-signup button:hover {
  background-color: var(--secondary-light);
}

.form-message {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-200);
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
}

/* Lazy loading for images below the fold */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Print styles */
@media print {
  .hero-section,
  .main-nav,
  .footer,
  .share-buttons,
  .newsletter-signup {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .checker-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-signup form {
    flex-direction: column;
  }

  .newsletter-signup input[type="email"] {
    border-radius: var(--radius-md);
    border-right: 2px solid var(--gray-200);
    margin-bottom: 0.5rem;
  }

  .newsletter-signup button {
    border-radius: var(--radius-md);
  }
}

/* Add support for dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    /* Improved dark mode colors with better contrast */
    --primary: #5d4dff;
    --primary-light: #7a6dff;
    --primary-dark: #4339ca;
    --secondary: #ff69d2;
    --secondary-light: #ff8edc;
    --secondary-dark: #d54bc0;
    --tertiary: #9f73ff;
    --tertiary-light: #b590ff;
    --tertiary-dark: #8657e1;
    --accent: #66b2ff;
    --accent-light: #8cc5ff;
    --accent-dark: #3b92f0;

    /* Background and text colors with better contrast */
    --gray-50: #121212;
    --gray-100: #1e1e1e;
    --gray-200: #2c2c2c;
    --gray-300: #3d3d3d;
    --gray-400: #5c5c5c;
    --gray-500: #888888;
    --gray-600: #b0b0b0;
    --gray-700: #d0d0d0;
    --gray-800: #f0f0f0;
    --gray-900: #ffffff;

    /* Updated shadow for dark mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5),
      0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6),
      0 4px 6px -2px rgba(0, 0, 0, 0.3);
  }

  body {
    background-color: var(--gray-50);
    color: var(--gray-800);
  }

  /* Card backgrounds */
  .checker-card,
  .feature-card,
  .status-code-card,
  .content-container,
  .social-share,
  .faq-item,
  .popular-checks {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
  }

  /* Text colors */
  .checker-card h2,
  .content-section h2,
  .feature-card h3,
  .faq-section h2,
  .status-code-card h4 {
    color: var(--primary-light);
  }

  .checker-card p,
  .content-section p,
  .feature-card p,
  li,
  .faq-question {
    color: var(--gray-700);
  }

  /* Links */
  a:not(.nav-links a) {
    color: var(--accent-light);
  }

  a:hover:not(.nav-links a):not(.quick-check-link) {
    color: var(--primary-light);
  }

  /* Form elements */
  input[type="text"],
  input[type="email"] {
    background-color: var(--gray-200);
    color: var(--gray-800);
    border-color: var(--gray-300);
  }

  input::placeholder {
    color: var(--gray-500);
  }

  /* Navigation */
  .main-nav {
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-links a {
    color: var(--gray-700);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary-light);
  }

  /* Quick check links */
  .quick-check-link {
    background-color: var(--gray-200);
    color: var(--gray-700);
  }

  .quick-check-link:hover {
    background-color: var(--primary);
  }

  /* Status and results */
  #result.success {
    background-color: rgba(44, 182, 125, 0.2);
    color: #4aeaa7;
  }

  #result.error {
    background-color: rgba(229, 49, 112, 0.2);
    color: #ff689c;
  }

  /* FAQ section */
  .faq-question {
    color: var(--gray-800);
    background-color: var(--gray-200);
    border-left-color: var(--primary-light);
  }

  .faq-question:after {
    color: var(--gray-700);
  }

  .faq-question:hover {
    background-color: var(--gray-300);
  }

  .faq-answer.show {
    background-color: var(--gray-200);
    color: var(--gray-700);
  }

  /* Improve content-container text visibility in dark mode */
  .content-container {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    color: #000000;
  }

  .page-header h2,
  .legal-section h3 {
    color: #000000;
  }

  .page-header .description {
    color: #000000;
  }

  .legal-section p,
  .legal-section li,
  .content-container p {
    color: #000000;
  }

  .legal-section strong {
    color: #000000;
    font-weight: 700;
  }

  /* Ensure links within legal content are visible */
  .legal-section a {
    color: var(--primary-dark);
    text-decoration: underline;
  }

  .legal-section a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
  }

  /* Table styles */
  .article-content th {
    background-color: var(--primary-dark);
  }

  .article-content tr:nth-child(even) {
    background-color: var(--gray-200);
  }

  .article-content td {
    border-color: var(--gray-300);
  }

  /* Code blocks */
  .article-content code {
    background-color: var(--gray-200);
    color: var(--gray-800);
  }

  .article-content .code-block {
    background-color: var(--gray-200);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
  }

  /* Alert boxes */
  .article-content .note,
  .article-content .warning {
    background-color: var(--gray-200);
  }

  /* Footer styling for dark mode */
  .footer {
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
  }

  .footer p {
    color: var(--gray-700);
  }

  .footer a {
    color: var(--accent-light);
  }

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

/* Support for high refresh rate animations */
@supports (animation-timeline: scroll()) {
  .feature-card {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal linear both;
    animation-timeline: scroll();
    animation-range: entry 10% cover 30%;
  }

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

/* Content container for about, privacy, terms pages */
.content-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Page headers for secondary pages */
.page-header {
  margin-bottom: 2rem;
}

.page-header h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-header .description {
  color: var(--gray-600);
  font-size: 1.1rem;
}

/* Section formatting for legal pages */
.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h3 {
  color: var(--tertiary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.legal-section ul,
.legal-section ol {
  margin-bottom: 1.5rem;
}
