/* css/articles.css */

:root {
  --article-max-width: 760px;
  --color-text-soft: #5f6773;
  --color-border-soft: #e5e7eb;
  --color-background-soft: #f7fafc;
  --color-highlight: #eef7fb;
  --color-highlight-border: #b8ddeb;
}

/* Shared */

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2c7a9b;
  margin-bottom: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: #2c7a9b;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: #245f78;
}

/* Articles list page */

.articles-hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(180deg, #f4fbfd 0%, #ffffff 100%);
}

.articles-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero-intro {
  max-width: 680px;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--color-text-soft);
}

.articles-list-section {
  padding: 3rem 0 5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.article-card {
  border: 1px solid var(--color-border-soft);
  border-radius: 1.4rem;
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.article-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.article-card-image {
  aspect-ratio: 16 / 9;
  background: var(--color-background-soft);
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-content {
  padding: 1.5rem;
}

.article-meta {
  font-size: 0.9rem;
  color: #2c7a9b;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.article-card h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.8rem;
}

.article-card p {
  color: var(--color-text-soft);
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  color: #2c7a9b;
  font-weight: 700;
}

/* Single article */

.article-header {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, #f4fbfd 0%, #ffffff 100%);
}

.article-header-inner {
  max-width: var(--article-max-width);
}

.back-link {
  display: inline-block;
  color: #2c7a9b;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.article-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.article-featured-image {
  max-width: 980px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.article-featured-image img {
  width: 100%;
  border-radius: 1.5rem;
  display: block;
}

.article-body {
  padding: 2rem 0 5rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-max-width)) 280px;
  gap: 4rem;
  align-items: start;
}

.article-main-content {
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-main-content p {
  margin: 0 0 1.25rem;
}

.article-main-content h2 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
}

.article-main-content strong {
  font-weight: 800;
}

.article-highlight {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 5px solid var(--color-highlight-border);
  background: var(--color-highlight);
  border-radius: 1rem;
}

.article-highlight h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

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

.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: #f4fbfd;
  border-radius: 1.5rem;
  border: 1px solid var(--color-border-soft);
}

.article-cta h2 {
  margin-top: 0;
}

.article-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-box {
  padding: 1.25rem;
  border: 1px solid var(--color-border-soft);
  border-radius: 1.2rem;
  margin-bottom: 1rem;
  background: #fff;
}

.sidebar-box h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

.sidebar-box p {
  color: var(--color-text-soft);
  line-height: 1.6;
}

.sidebar-box ul {
  padding-left: 1.1rem;
}

.sidebar-box li {
  margin-bottom: 0.75rem;
}

.sidebar-box a {
  color: #2c7a9b;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-box a:hover {
  text-decoration: underline;
}

.article-not-found {
  padding: 5rem 0;
}

/* Responsive */

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

  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-sidebar {
    position: static;
  }
}