/* ============================================================
   CLOUDPANG homepage — disciplined editorial magazine layout
   ordered, breathing, magazine-like but not scattered
   ============================================================ */

/* ===== HERO — clean magazine cover composition ===== */
.hero {
  background: var(--bg-canvas);
  padding: 56px 0 0;
  position: relative;
}

.hero-grid {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: stretch;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 0 24px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-meta .live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-meta .live-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 500;
}

.hero-meta .timestamp {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-left: auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.hero-headline em { font-style: italic; font-weight: 400; }

.hero-deck {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-byline {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

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

.hero-byline .sep {
  width: 16px;
  height: 1px;
  background: var(--text-muted);
  display: inline-block;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

.hero-corner {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 14px 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-right: 2px solid var(--accent);
}

/* ===== TICKER ===== */
.ticker {
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 14px 0;
  overflow: hidden;
  margin-top: 80px;
  border-top: 1px solid var(--border-pearl);
  border-bottom: 1px solid var(--border-pearl);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: ticker-slide 60s linear infinite;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-label {
  background: var(--accent);
  color: #FFFFFF;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: var(--gutter-desktop);
}

.ticker-item { font-size: 13px; color: #FFFFFF; }

.ticker-item span {
  color: var(--text-muted);
  margin-right: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.ticker-sep { color: var(--accent); font-size: 14px; }

/* ===== SECTION HEAD (shared) ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}

.section-head .lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.section-head .meta {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-align: right;
}

/* ===== EDITORIAL TRIPTYCH (Living, Travel, Food) ===== */
.triptych-section {
  padding: 120px 0 60px;
}

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

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

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

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

.triptych-card:hover .img-wrap img { transform: scale(1.03); }

.triptych-card .cat-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
  display: inline-block;
}

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

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

.triptych-card .tagline-en {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.5;
}

.triptych-card .tagline-th {
  font-family: var(--font-thai-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== FEATURE STRIP — Sports/Art alternating ===== */
.feature-strip {
  padding: 60px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--hairline);
}

.feature-row:first-child { border-top: 1px solid var(--hairline); }

.feature-row.flip { grid-template-columns: 1fr 1fr; }
.feature-row.flip .feature-image { order: 2; }
.feature-row.flip .feature-text { order: 1; padding-right: 40px; }

.feature-row:not(.flip) .feature-text { padding-left: 40px; }

.feature-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-row:hover .feature-image img { transform: scale(1.02); }

.feature-text .cat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.feature-text h3 em { font-style: italic; }
.feature-text h3 a { color: inherit; transition: color 0.2s ease; }
.feature-text h3 a:hover { color: var(--accent); }

.feature-text .deck {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 480px;
}

.feature-text .meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  display: flex;
  gap: 14px;
  align-items: center;
}

.feature-text .meta strong { color: var(--text-primary); font-weight: 500; }
.feature-text .meta .sep { width: 12px; height: 1px; background: var(--text-muted); }

/* ===== ENTERTAINMENT BAND — full-bleed Volt accent zone ===== */
.entertainment-band {
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 100px 0;
  margin: 100px 0;
  position: relative;
}

.entertainment-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-ent);
}

.entertainment-band .container { padding: 0 var(--gutter-desktop); }

.ent-band-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-pearl);
}

.ent-band-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

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

.ent-band-head .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-ent);
  text-transform: uppercase;
  font-weight: 500;
}

.ent-band-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.ent-card {
  text-decoration: none;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.ent-card .img-wrap {
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-steel);
  aspect-ratio: 16/10;
}

.ent-card.feature .img-wrap { aspect-ratio: 16/10; }

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

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

.ent-card .cat-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ent);
  font-weight: 500;
  margin-bottom: 12px;
}

.ent-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.ent-card.feature h3 { font-size: 32px; line-height: 1.15; }

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

.ent-card .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.ent-card.feature .tagline { font-size: 17px; color: rgba(255,255,255,0.75); }

/* ===== SCOREBOARD — broadcast zone ===== */
.scoreboard-section {
  padding: 80px 0;
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.score-card {
  background: var(--bg-obsidian);
  color: #FFFFFF;
  border: 1px solid var(--border-pearl);
  padding: 24px;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.score-card .meta {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.score-card .teams {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.3;
}

.score-card .result {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
}

.score-card.live .result { color: var(--accent); }
.score-card.upcoming .result { color: var(--text-muted); font-size: 24px; }

.score-card .result .status-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(255, 45, 45, 0.1);
  padding: 3px 8px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== EDITORIAL QUOTE STRIP ===== */
.quote-strip {
  padding: 100px 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.quote-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

.quote-text .quote-mark {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.8;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 400;
  display: block;
}

.quote-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
  font-style: italic;
}

.quote-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 28px;
  max-width: 540px;
}

.quote-text .author-line {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

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

.quote-text .read-more {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  display: inline-block;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.quote-text .read-more:hover { color: var(--accent); }

/* ===== TRENDING ROW ===== */
.trending-section {
  padding: 100px 0;
  background: var(--hover-mist);
}

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

.trending-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.trending-item .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.trending-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.trending-item:hover h4 { color: var(--accent); }

.trending-item .meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

/* ===== OPINION & TRENDING duo ===== */
.duo-section {
  padding: 120px 0 60px;
}

.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

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

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

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

.duo-card:hover .img-wrap img { transform: scale(1.03); }

.duo-card .cat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
  display: inline-block;
}

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

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

.duo-card .tagline-en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.duo-card .tagline-th {
  font-family: var(--font-thai-body);
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero { padding: 40px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 var(--gutter-tablet); }
  .ticker-label { margin-left: var(--gutter-tablet); }
  .triptych-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .feature-row.flip .feature-image { order: 1; }
  .feature-row.flip .feature-text { order: 2; padding-right: 0; }
  .feature-row:not(.flip) .feature-text { padding-left: 0; }
  .ent-band-grid { grid-template-columns: 1fr; gap: 40px; }
  .scoreboard-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .duo-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 700px) {
  .hero-grid { padding: 0 var(--gutter-mobile); gap: 32px; }
  .ticker-label { margin-left: var(--gutter-mobile); }
  .hero-meta .timestamp { display: none; }
  .hero-meta { margin-bottom: 32px; }
  .hero-headline { font-size: 38px; }
  .hero-deck { font-size: 16px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 40px; }
  .section-head .lead { font-size: 24px; }
  .section-head .meta { text-align: left; }

  .triptych-section, .feature-strip, .quote-strip, .duo-section { padding: 64px 0; }
  .entertainment-band { padding: 64px 0; margin: 64px 0; }
  .scoreboard-section, .trending-section { padding: 64px 0; }

  .ent-band-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ent-band-head h2 { font-size: 28px; }
  .ent-card.feature h3 { font-size: 24px; }
  .ent-card.feature .tagline { font-size: 15px; }

  .scoreboard-grid { grid-template-columns: 1fr; }

  .quote-text .quote-mark { font-size: 64px; }
  .quote-text h3 { font-size: 24px; }

  .trending-grid { grid-template-columns: 1fr; gap: 28px; }
  .trending-item .num { font-size: 48px; margin-bottom: 12px; }
  .trending-item h4 { font-size: 17px; }

  .duo-card h3 { font-size: 22px; }
}
