:root {
  --font-heading: 'Playfair Display', Helvetica, Arial, sans-serif;
  --font-body: 'Source Sans Pro', 'Gill Sans', Calibri, sans-serif;
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: var(--font-body);
  line-height: 1.7;
  color: #333;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 3px solid var(--brand-yellow);
  padding-bottom: 2rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #666;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-blue-light), var(--brand-blue));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
}

.article-date {
  color: var(--brand-dark);
  font-weight: 500;
}

/* Content styling - targeting HTML elements within article-content */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin: 2rem 0 1rem 0;
  font-size: 2.2rem;
  color: var(--brand-blue);
  border-left: 5px solid var(--brand-yellow);
  padding-left: 15px;
  font-family: var(--font-heading);
}

.article-content h1 {
  font-size: 2.2rem;
  border-bottom: 2px solid var(--brand-yellow);
  padding-bottom: 0.5rem;
}

.article-content h2 {
  font-size: 1.8rem;
  position: relative;
  padding-left: 1rem;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--brand-blue), var(--brand-blue-light));
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.5rem;
  color: var(--brand-blue);
}

.article-content h4,
.article-content h5,
.article-content h6 {
  font-size: 1.3rem;
  color: var(--brand-blue-dark);
}

.article-content p {
  margin: 1.5rem 0;
  text-align: justify;
}

.article-content p:first-of-type {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brand-dark);
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--brand-yellow);
  background: rgba(254, 207, 7, 0.1);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin: 0.8rem 0;
  position: relative;
}

.article-content ul li::marker {
  color: var(--brand-blue);
}

.article-content ol li::marker {
  color: var(--brand-blue);
  font-weight: 600;
}

.article-content blockquote {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
  border-left: 5px solid var(--brand-blue);
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  font-style: italic;
  font-size: 1.1rem;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.article-content blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--brand-blue);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: var(--font-heading);
  opacity: 0.3;
}

.article-content a {
  color: var(--brand-blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}

.article-content a:hover {
  color: var(--brand-blue-dark);
  border-bottom-color: var(--brand-yellow);
  background: rgba(254, 207, 7, 0.1);
  padding: 0 4px;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform .5s ease;

  box-shadow: -0px 1px 1px rgba(3, 7, 18, 0.03),
      -2px 3px 4px rgba(3, 7, 18, 0.06),
      -4px 6px 9px rgba(3, 7, 18, 0.09),
      -8px 12px 15px rgba(3, 7, 18, 0.12),
      -12px 18px 24px rgba(3, 7, 18, 0.15);
}

.article-content img:hover {
  transform: scale(1.05);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content table th {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-blue-dark));
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.article-content table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.article-content table tr:nth-child(even) {
  background: rgba(37, 99, 235, 0.05);
}

.article-content table tr:hover {
  background: rgba(254, 207, 7, 0.1);
}

.article-content code {
  background: var(--brand-dark);
  color: var(--brand-yellow);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.article-content pre {
  background: var(--brand-dark);
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 3px solid var(--brand-yellow);
}

.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.article-content strong,
.article-content b {
  color: var(--brand-dark);
  font-weight: 600;
}

.article-content em,
.article-content i {
  color: var(--brand-blue);
}

.article-content hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-yellow), var(--brand-blue));
  margin: 3rem 0;
  border-radius: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
  .article-container {
    padding: 1rem;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h1 {
    font-size: 1.8rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }
}
