/* ============================================================
   CLOUDPANG — category & article page styles
   ============================================================ */

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 24px 32px 0;
  max-width: 1440px;
  margin: 0 auto;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:last-child { color: var(--text-primary); }

/* ===== CATEGORY HERO ===== */
.cat-hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}

.cat-hero-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: end;
  min-height: 480px;
}

.cat-hero-text { padding-bottom: 24px; }

.cat-hero .eyebrow { margin-bottom: 32px; }

.cat-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.cat-hero h1 em { font-style: italic; }

.cat-hero .cat-tagline-en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 8px;
  max-width: 480px;
}

.cat-hero .cat-tagline-th {
  font-family: var(--font-thai-body);
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.cat-hero-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.cat-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-hero-image .corner-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-canvas);
  color: var(--text-primary);
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.cat-hero-image .corner-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== ARTICLE LIST ===== */
.article-list {
  padding: 80px 0 60px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.list-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.list-head h2 em { font-style: italic; color: var(--accent); }

.list-head .count {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-bottom: 60px;
}

.article-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.article-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--hover-mist);
}

.article-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .img-wrap img { transform: scale(1.04); }

.article-card .meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.article-card:hover h3 { color: var(--accent); }

.article-card .deck {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* featured first article — span 2 columns */
.article-card.feature {
  grid-column: span 2;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}

.article-card.feature .img-wrap {
  flex: 1;
  margin-bottom: 0;
  aspect-ratio: 4/3;
}

.article-card.feature .text-wrap { flex: 1; }
.article-card.feature h3 { font-size: 28px; }
.article-card.feature .deck { font-size: 16px; }

/* ===== ARTICLE PAGE ===== */
.article-hero {
  padding: 60px 0 48px;
}

.article-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

.article-hero .article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.article-hero .cat-tag {
  color: var(--accent);
  font-weight: 500;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.article-hero h1 em { font-style: italic; }

.article-hero .standfirst {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 720px;
  font-style: italic;
}

.article-hero .byline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.article-hero .byline-row strong {
  color: var(--text-primary);
  font-weight: 500;
}

.article-hero .byline-row .sep {
  width: 1px;
  height: 14px;
  background: var(--text-muted);
}

.article-feature-image {
  max-width: 1200px;
  margin: 0 auto 64px;
  padding: 0 32px;
}

.article-feature-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-feature-image figcaption {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
  font-style: italic;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-body);
}

.article-body > * + * { margin-top: 1.5em; }

.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 64px;
  line-height: 0.9;
  float: left;
  margin: 8px 12px 0 0;
  color: var(--text-primary);
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.article-body h2 em { font-style: italic; }

.article-body blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 2em 0 2em -28px;
  font-style: italic;
}

.article-body blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

.article-body img {
  margin: 2em auto;
  max-width: 100%;
}

.article-body a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.article-body a:hover {
  color: var(--accent);
}

.article-end {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0 32px;
  text-align: center;
}

.article-end-mark {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.5em;
}

.article-end-author {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.article-end-author strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ===== RELATED ARTICLES ===== */
.related-section {
  background: var(--hover-mist);
  padding: 80px 0;
  margin-top: 100px;
}

.related-section .section-head h2 { font-size: 22px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .cat-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cat-hero-text { padding-bottom: 0; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card.feature {
    grid-column: span 2;
    flex-direction: column;
  }
  .article-card.feature .img-wrap { width: 100%; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .breadcrumb { padding: 20px 20px 0; font-size: 11px; }
  .cat-hero { padding: 40px 0 60px; }
  .cat-hero-grid { padding: 0 20px; gap: 24px; }
  .cat-hero h1 { font-size: 44px; }
  .article-list { padding: 48px 0; }
  .list-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 32px; }
  .article-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-card.feature { grid-column: span 1; }
  .article-card.feature h3 { font-size: 22px; }
  .article-hero { padding: 40px 0 32px; }
  .article-hero-inner, .article-body, .article-end { padding: 0 20px; }
  .article-hero h1 { font-size: 32px; }
  .article-hero .standfirst { font-size: 17px; }
  .article-feature-image { padding: 0 20px; margin-bottom: 40px; }
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 24px; }
  .article-body blockquote { font-size: 20px; padding-left: 20px; margin-left: 0; }
  .article-body p:first-of-type::first-letter { font-size: 52px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-hero .byline-row { flex-wrap: wrap; gap: 8px; }
}
