/*
Theme Name: Red Lion News
Theme URI: https://example.com/red-lion-news
Author: AnyGen
Description: Premium English-language global news WordPress theme with Singapore-inspired red lion branding, SEO-friendly structure, and Google AdSense ad slots.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: redlion-news
Tags: news, blog, magazine, editor-style, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*
Style direction: Commonwealth Review.
Editorial serif headlines, disciplined red accents, broadsheet ivory surfaces, and dark graphite scaffolding.
Avoid playful consumer-blog styling; this should feel like a globally credible news publisher.
*/

:root {
  --rln-red: #b3131b;
  --rln-red-deep: #8f1117;
  --rln-ink: #121212;
  --rln-ivory: #f5f1e8;
  --rln-paper: #fbf8f1;
  --rln-gray: #5c6470;
  --rln-gold: #b8964a;
  --rln-border: rgba(18, 18, 18, 0.12);
  --rln-shadow: 0 20px 40px rgba(18, 18, 18, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--rln-ink);
  background:
    radial-gradient(circle at top left, rgba(179, 19, 27, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.02), transparent 20%),
    var(--rln-paper);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--rln-red-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-shell {
  position: relative;
}

.container {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
}

.top-signal {
  background: var(--rln-ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-signal__inner,
.masthead,
.section-nav,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-signal__inner {
  padding: 10px 0;
}

.live-pill {
  display: inline-flex;
  padding: 4px 10px;
  background: var(--rln-red);
  font-weight: 700;
}

.breaking-ticker {
  overflow: hidden;
  background: var(--rln-red-deep);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.breaking-ticker__track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: rlnTicker 28s linear infinite;
}

.brand-band {
  background: var(--rln-ivory);
  border-bottom: 1px solid var(--rln-border);
}

.masthead {
  padding: 18px 0;
  align-items: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-lockup img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-title {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-tagline,
.meta-text {
  color: var(--rln-gray);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}

.section-nav {
  padding: 16px 0;
  border-top: 1px solid var(--rln-border);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.section-nav a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.75fr;
  gap: 24px;
  padding: 32px 0 24px;
}

.hero-story {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.hero-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-story__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,18,18,0.9) 0%, rgba(18,18,18,0.76) 34%, rgba(18,18,18,0.24) 100%);
}

.hero-story__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  background: var(--rln-red);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}

.hero-story h2,
.story-card h3,
.story-list h3,
.widget-title,
.entry-title,
.archive-title {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.15;
}

.hero-story h2 {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: clamp(38px, 5vw, 60px);
}

.hero-story p {
  max-width: 720px;
  font-size: 19px;
  line-height: 1.7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rln-red-deep);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(184, 150, 74, 0.55);
}

.column-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-card,
.panel,
.widget-panel,
.content-card,
.archive-card {
  border: 1px solid var(--rln-border);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.story-card:hover,
.content-card:hover,
.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rln-shadow);
}

.story-card,
.content-card,
.archive-card,
.panel,
.widget-panel {
  padding: 22px;
}

.story-card h3,
.content-card h3,
.archive-card h3 {
  margin: 12px 0 0;
  font-size: 28px;
}

.story-card .meta-text,
.content-card .meta-text,
.archive-card .meta-text {
  margin-top: 12px;
  display: block;
}

.ad-slot {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px dashed rgba(179, 19, 27, 0.35);
  background: #fff8f6;
  text-align: center;
  color: var(--rln-red-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.opinion-panel {
  background: var(--rln-ink);
  color: #fff;
}

.opinion-panel .section-label {
  color: #f1d48a;
}

.opinion-panel .section-label::after {
  background: rgba(241, 212, 138, 0.4);
}

.opinion-panel article + article {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 18px;
  padding-top: 18px;
}

.opinion-byline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f1d48a;
}

.opinion-panel h3 {
  margin: 10px 0 0;
  font-size: 24px;
}

.mid-grid,
.story-showcase {
  display: grid;
  gap: 24px;
  padding: 12px 0 24px;
}

.mid-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.story-showcase {
  grid-template-columns: 1.2fr 0.8fr;
  padding-bottom: 40px;
}

.columns-3,
.cards-2 {
  display: grid;
  gap: 20px;
}

.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.accent-bar {
  border-left: 3px solid var(--rln-red);
  padding-left: 14px;
}

.accent-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #49515b;
  line-height: 1.7;
  font-size: 15px;
}

.accent-list li + li {
  margin-top: 10px;
}

.newsletter-panel {
  background: var(--rln-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.newsletter-panel .button,
.search-submit input,
.comment-form input[type="submit"] {
  display: inline-block;
  border: none;
  background: var(--rln-red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 18px;
  cursor: pointer;
}

.newsletter-field,
.search-form input[type="search"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: inherit;
  padding: 14px 16px;
  font: inherit;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 32px 0 40px;
}

.entry-content,
.archive-grid {
  min-width: 0;
}

.entry-header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rln-border);
}

.entry-title,
.archive-title {
  margin: 12px 0 0;
  font-size: clamp(34px, 5vw, 54px);
}

.entry-content p,
.entry-content li {
  font-size: 18px;
  line-height: 1.9;
  color: #2a2d31;
}

.entry-content h2,
.entry-content h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  margin-top: 30px;
}

.post-meta {
  font-size: 12px;
  color: var(--rln-gray);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.archive-grid {
  display: grid;
  gap: 18px;
}

.site-footer {
  border-top: 1px solid var(--rln-border);
  background: var(--rln-ink);
  color: #fff;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
  padding: 36px 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rlnTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .editorial-grid,
  .mid-grid,
  .story-showcase,
  .content-layout,
  .footer-grid,
  .columns-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }

  .masthead {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1260px);
  }

  .hero-story__content,
  .story-card,
  .content-card,
  .archive-card,
  .panel,
  .widget-panel {
    padding: 20px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-lockup img {
    width: 52px;
    height: 52px;
  }

  .top-signal__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
