/*
Theme Name: Invest Insider Theme V3
Theme URI: https://investinsider.com.vn/
Author: OpenAI Codex
Author URI: https://openai.com/
Description: WordPress theme v3 with inline embedded latest YouTube video.
Version: 0.3.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: investinsider-first
*/

:root {
  --bg-top: #31446d;
  --bg-bottom: #0b1324;
  --panel: rgba(6, 11, 23, 0.34);
  --text: #f3f4f7;
  --muted: rgba(243, 244, 247, 0.72);
  --line: rgba(255, 255, 255, 0.2);
  --accent: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, var(--bg-top) 0%, #243555 42%, var(--bg-bottom) 100%);
  font-family: "Manrope", Arial, sans-serif;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  padding: 42px 0 24px;
}

.site-footer {
  padding: 56px 0 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand,
.brand a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.1vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.main-nav,
.footer-nav,
.social-mini,
.platform-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a,
.footer-nav a,
.social-mini a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  opacity: 0.72;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.footer-nav a:hover,
.footer-nav .current-menu-item > a,
.social-mini a:hover {
  opacity: 1;
}

.social-mini a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.hero,
.latest-episode,
.programs,
.platforms {
  text-align: center;
}

.hero {
  padding: 88px 0 72px;
}

.eyebrow,
.card-label {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.latest-episode h3,
.programs h3,
.platforms h3,
.program-card h4,
.entry-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.15rem, 5vw, 5.2rem);
  line-height: 0.94;
  font-style: italic;
}

.hero h2 {
  margin: 28px 0 16px;
  font-size: clamp(1.12rem, 1.45vw, 1.55rem);
  font-weight: 800;
}

.hero-copy {
  width: min(760px, 100%);
  margin: 0 auto;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
}

.latest-episode {
  padding: 32px 0 92px;
}

.latest-episode h3,
.programs h3,
.platforms h3 {
  margin: 0 0 28px;
  font-size: clamp(2.8rem, 4.6vw, 4.8rem);
  font-style: italic;
}

.featured-video-card {
  position: relative;
  display: block;
  width: min(760px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.featured-video-card[data-video-id] {
  cursor: pointer;
}

.featured-video-image {
  display: block;
  width: 100%;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.9) contrast(1.02) brightness(0.92);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.18), rgba(4, 8, 18, 0.42));
}

.play-button {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: #ff3d32;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 16px 36px rgba(255, 61, 50, 0.3);
}

.video-meta {
  padding: 16px 24px;
  border-radius: 18px;
  background: rgba(4, 8, 18, 0.46);
  backdrop-filter: blur(8px);
}

.video-meta span,
.video-meta strong {
  display: block;
}

.video-meta span {
  color: var(--muted);
  margin-bottom: 4px;
}

.ghost-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 800;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.programs {
  padding: 18px 0 108px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: start;
  text-align: left;
}

.program-card {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.program-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, filter 140ms ease;
}

.program-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.03);
}

.ii-inline-player {
  display: none;
  width: min(980px, 100%);
  margin: 0 auto 26px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 11, 23, 0.72);
  box-shadow: var(--shadow);
}

.ii-inline-player.is-active {
  display: block;
}

.ii-inline-player__frame {
  aspect-ratio: 16 / 9;
}

.ii-inline-player__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.radio-section {
  padding: 42px 0 68px;
  text-align: center;
}

.radio-title {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 4.4vw, 4.6rem);
  font-style: italic;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.radio-thumb {
  display: block;
  border-radius: 18px;
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-image:
    linear-gradient(180deg, rgba(4, 8, 18, 0.18), rgba(4, 8, 18, 0.72)),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #1d2943 0%, #0c111d 100%);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.radio-thumb:hover {
  transform: translateY(-2px);
  transition: transform 120ms ease;
}


.card-image {
  min-height: 220px;
  border-radius: 8px;
  margin-bottom: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

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

.stack-left-top { grid-column: 1; grid-row: 1; }
.stack-left-bottom { grid-column: 1; grid-row: 2; }
.stack-center-top { grid-column: 2; grid-row: 1; }
.stack-center-middle { grid-column: 2; grid-row: 2; }
.stack-center-bottom { grid-column: 2; grid-row: 3; }
.stack-right-top { grid-column: 3; grid-row: 1; }
.stack-right-bottom { grid-column: 3; grid-row: 2; }

.stack-left-top .card-image,
.stack-left-bottom .card-image,
.stack-center-top .card-image,
.stack-center-middle .card-image,
.stack-center-bottom .card-image,
.stack-right-top .card-image,
.stack-right-bottom .card-image {
  min-height: 150px;
}

.platforms {
  padding: 12px 0 112px;
}

.platforms p {
  margin: 0 0 28px;
  font-size: 1.2rem;
}

.platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 208px;
  padding: 18px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.85rem;
  font-weight: 800;
}

.platform.youtube {
  color: #fff;
  background: #e72b22;
}

.platform.spotify {
  color: #08110a;
  background: #22d760;
}

.content-page {
  padding: 64px 0 96px;
}

.entry-title {
  margin: 0 0 16px;
  font-size: clamp(3rem, 5vw, 5rem);
  font-style: italic;
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

.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;
}

@media (max-width: 980px) {
  .site-header,
  .site-footer,
  .main-nav,
  .footer-nav {
    flex-direction: column;
  }

  .program-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 28px, 100%);
  }

  .site-header {
    padding-top: 28px;
  }

  .hero {
    padding-top: 54px;
  }

  .social-mini,
  .platform-links {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .stack-left-top,
  .stack-left-bottom,
  .stack-center-top,
  .stack-center-middle,
  .stack-center-bottom,
  .stack-right-top,
  .stack-right-bottom {
    grid-column: auto;
    grid-row: auto;
  }

  .platform {
    width: 100%;
  }
}
