.container {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.container h2.head {
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 30px;
  margin-top: 20px;
  font-size: 2rem;
  border-left: 0;
  padding-left: 0;
}

.container h2 {
  color: #34495e;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8em;
  border-left: 4px solid #3498db;
  padding-left: 15px;
}

.container h3 {
  color: #7f8c8d;
  margin-top: 25px;
  margin-bottom: 12px;
}

.intro {
  background-color: #ecf0f1;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  border-left: 4px solid #3498db;
}

.conversion-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.conversion-table th,
.conversion-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.conversion-table th {
  background-color: #3498db;
  color: white;
}

.conversion-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.highlight {
  background-color: #fff3cd;
  padding: 15px;
  border-left: 4px solid #ffc107;
  margin: 20px 0;
}

.tip {
  background-color: #d4edda;
  padding: 15px;
  border-left: 4px solid #28a745;
  margin: 20px 0;
}

.warning {
  background-color: #f8d7da;
  padding: 15px;
  border-left: 4px solid #dc3545;
  margin: 20px 0;
}

.formula {
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 5px;
  font-family: monospace;
  text-align: center;
  margin: 20px 0;
}

ul,
ol {
  margin: 15px 0;
  padding-left: 30px;
}

li {
  margin-bottom: 8px;
}

.back-to-top {
  text-align: center;
  margin-top: 40px;
}

.back-to-top a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.back-to-top a:hover {
  text-decoration: underline;
}

.cta {
  background-color: #ecf0f1;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 1em;
  font-weight: bolder;
}

.cta a {
  color: #3498db;
  text-decoration: none;
}

.breadcrumb {
  background-color: #ecf0f1;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.breadcrumb a {
  color: #3498db;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.related-articles {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.related-articles h3 {
  margin-top: 0;
  color: #2c3e50;
}

.related-articles ul {
  padding-left: 20px;
}

.related-articles li {
  margin: 8px 0;
}

.related-articles a {
  color: #3498db;
  text-decoration: none;
}

.related-articles a:hover {
  text-decoration: underline;
}

dl {
  display: grid;
  grid-template-columns: max-content; /* Creates two columns */
  grid-gap: 20px;
}

dt {
  font-weight: bold; /* Make terms bold */
  width: 170px; /* Fixed width for terms */
}

dd {
  margin: 0; /* Remove default margins */
  grid-column-start: 2; /* Place descriptions in the second column */
}

.articles-main {
  margin: 10px 380px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.article-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #3498db;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.article-card p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.article-card a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.article-card a:hover {
  text-decoration: underline;
}

.category-section {
  margin-top: 50px;
}

.category-section h2 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 25px;
  border-left: 0;
  padding-left: 0;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .conversion-table {
    font-size: 14px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
