/* SEO-friendly CSS additions */

/* Ensure proper heading hierarchy */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
}

/* Improve text readability for accessibility */
p, li, td, th, blockquote {
  line-height: 1.6;
  font-size: 1rem;
}

/* Ensure proper contrast ratios */
.high-contrast-text {
  color: #000;
  background-color: #fff;
}

/* Ensure focus states are visible for keyboard navigation */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Improve image accessibility */
img {
  max-width: 100%;
  height: auto;
}

/* Add alt text styling for when images fail to load */
img::before {
  content: attr(alt);
  display: block;
  line-height: 1.5;
  font-style: italic;
  color: #555;
}

/* Ensure proper text spacing for readability */
article p {
  margin-bottom: 1.5em;
}

/* Improve link accessibility */
/* a {
  text-decoration: underline;
}
 */
a:hover, a:focus {
  text-decoration: none;
}

/* Skip navigation for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Ensure proper table accessibility */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

th {
  text-align: left;
  font-weight: bold;
}

th, td {
  padding: 0.5em;
  border: 1px solid #ddd;
}

/* Ensure proper form field accessibility */
label {
  display: block;
  margin-bottom: 0.5em;
}

/* Ensure proper button accessibility */
button, 
input[type="button"], 
input[type="reset"], 
input[type="submit"] {
  cursor: pointer;
  padding: 0.5em 1em;
}

/* Ensure proper list accessibility */
/* ul, ol {
  padding-left: 2em;
  margin-bottom: 1.5em;
} */

/* Ensure proper blockquote accessibility */
blockquote {
  margin: 1.5em 0;
  padding: 1em;
  border-left: 5px solid var(--primary-color);
  background-color: rgba(0,0,0,0.05);
}

/* Ensure proper code accessibility */
code, pre {
  font-family: monospace;
  background-color: rgba(0,0,0,0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  padding: 1em;
  overflow-x: auto;
}

/* Ensure proper abbreviation accessibility */
abbr[title] {
  border-bottom: 1px dotted;
  cursor: help;
}
