/* ===================================
   ARTICLES PAGE STYLES
   =================================== */

.articles-main {
  padding: 160px 0 80px;
  min-height: calc(100vh - 160px);
  background: #fafaf8;
}

.articles-page-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid #e8e0d5;
}

.articles-page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #1E3A8A;
  margin-bottom: 12px;
}

.articles-page-header p {
  font-size: 1.1rem;
  color: #6b7280;
  font-style: italic;
}

/* Table of Contents */
.articles-toc {
  background: #fff;
  border: 1px solid #e8e0d5;
  border-left: 4px solid #1E3A8A;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 56px;
  max-width: 700px;
}

.articles-toc h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: #1E3A8A;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.articles-toc ol {
  margin: 0;
  padding-left: 20px;
}

.articles-toc ol li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #374151;
}

.articles-toc ol li a {
  color: #1E3A8A;
  text-decoration: none;
  transition: color 0.2s;
}

.articles-toc ol li a:hover {
  color: #162d6e;
  text-decoration: underline;
}

/* Article counter reset */
.articles-lang-content {
  counter-reset: article-counter;
}

/* Individual article cards */
.article-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 56px;
  margin-bottom: 48px;
  box-shadow: 0 2px 12px rgba(44, 74, 82, 0.07);
  border: 1px solid #e8e0d5;
  position: relative;
  counter-increment: article-counter;
}

.article-card:last-child {
  margin-bottom: 0;
}

/* Article number badge */
.article-card::before {
  content: counter(article-counter);
  position: absolute;
  top: -1px;
  right: 40px;
  background: #1E3A8A;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 0 0 8px 8px;
  text-align: center;
  line-height: 30px;
}

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #2C4A52;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e8f4f4;
  line-height: 1.3;
}

.article-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: #1E3A8A;
  margin: 36px 0 14px;
  font-weight: 600;
  padding-left: 14px;
  border-left: 3px solid #1E3A8A;
  line-height: 1.4;
}

.article-card h3 {
  font-size: 1.05rem;
  color: #374151;
  margin: 20px 0 8px;
  font-weight: 600;
}

.article-card p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}

/* Bullet list — top-level */
.article-list {
  margin: 16px 0 24px 0;
  padding: 0;
  list-style: none;
}

.article-list > li {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 1rem;
  padding-left: 26px;
  position: relative;
}

.article-list > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: #1E3A8A;
  border-radius: 50%;
}

/* Nested sub-list */
.article-sublist {
  margin: 10px 0 6px 0;
  padding: 0;
  list-style: none;
}

.article-sublist li {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 7px;
  padding-left: 20px;
  position: relative;
}

.article-sublist li::before {
  content: '–';
  position: absolute;
  left: 0;
  top: 0;
  color: #1E3A8A;
  font-weight: 700;
  line-height: 1.65;
}

/* Logo link reset */
.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-link:hover h1,
.logo-link:hover .subtitle {
  opacity: 0.85;
}

html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
  .articles-main {
    padding: 40px 0 60px;
  }

  .article-card {
    padding: 28px 20px;
    border-radius: 10px;
  }

  .article-card::before {
    right: 20px;
  }

  .articles-toc {
    padding: 20px;
  }

  .article-title {
    font-size: 1.4rem;
  }
}
