/* ============================================
   THE GIFTED LEADER — site additions
   (dropdown nav, page heroes, cards, prose)
   ============================================ */

/* --- Dropdown navigation --- */
.nav-links .has-dropdown { position: relative; }
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  min-width: 220px;
  background: rgba(253, 251, 247, 0.98);
  backdrop-filter: blur(16px);
  border: 0.5px solid var(--border);
  list-style: none;
  padding: 12px 0;
  z-index: 1200;
}
.nav-links .has-dropdown:hover .dropdown,
.nav-links .has-dropdown.open .dropdown { display: block; }
.nav-links .dropdown li { display: block; }
.nav-links .dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 0.68rem;
}
.nav-links .has-dropdown::after {
  /* hover bridge so the menu doesn't close crossing the gap */
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%; height: 16px;
}

/* --- Page hero --- */
.page-hero { padding: 170px 0 70px; }
.page-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 300; }
.page-hero .section-subtitle { margin: 20px auto 0; max-width: 640px; }

/* --- Credential list --- */
.credential-list {
  list-style: none;
  margin: 20px 0 24px;
}
.credential-list li {
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-body);
}
.credential-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Feature band (magazine feature) --- */
.feature-band {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  border: 0.5px solid var(--border);
  background: var(--white);
  padding: 40px;
}
.feature-band img { width: 100%; height: auto; }
.feature-band h3 { margin: 8px 0 12px; }
.feature-band p { color: var(--text-soft); }

/* --- Guarantee band --- */
.guarantee-band {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto 56px;
  border: 0.5px solid var(--gold-border);
  background: var(--gold-faint);
  padding: 32px 40px;
}
.guarantee-band img { width: 110px; flex-shrink: 0; }
.guarantee-band h3 { margin-bottom: 8px; }
.guarantee-band p { color: var(--text-body); font-size: 0.95rem; }

/* --- Review cards --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.review-card p {
  font-style: italic;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 24px;
  flex: 1;
}
.review-card p::before {
  content: '';
  display: block;
  width: 32px; height: 0.5px;
  background: var(--gold);
  margin-bottom: 20px;
}
.review-name {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.review-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 2px;
}

/* --- Blog cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.blog-card {
  display: block;
  background: var(--white);
  border: 0.5px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-3px); }
.blog-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.blog-card-body { padding: 22px 24px 26px; }
.blog-card-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
}
.blog-card-body .blog-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 10px;
}

/* --- Course cards --- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.course-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.course-card h4 { font-size: 1rem; }
.course-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.course-card .pricing-amount { font-size: 2.4rem; margin: 8px 0 4px; }
.course-card p { font-size: 0.9rem; color: var(--text-soft); flex: 1; }
.course-card .btn { align-self: center; margin-top: 12px; }

/* --- Topics grid (keynote) --- */
.topics-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 48px;
  max-width: 900px;
  margin: 0 auto;
}
.topics-grid li {
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--text-body);
}
.topics-grid li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* --- Podcast platforms --- */
.platform-cols {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-top: 64px;
}
.platform-cols h3 { margin-bottom: 20px; }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 0.5px solid var(--border);
  padding: 22px 16px;
  transition: all var(--transition);
}
.platform-card:hover { transform: translateY(-3px); }
.platform-card img { height: 44px; width: auto; object-fit: contain; }
.platform-card span {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* --- Prose (legal + article pages) --- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h3 { margin: 40px 0 14px; }
.prose p { margin-bottom: 18px; line-height: 1.9; color: var(--text-body); }
.prose.legal p { font-size: 0.98rem; }
.prose img { margin: 28px auto; }

/* --- Blog post page --- */
.post-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  margin-bottom: 48px;
}
.post-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-top: 16px;
}
.post-body h2, .post-body h3 { margin: 40px 0 16px; }
.post-body p { margin-bottom: 20px; line-height: 1.95; color: var(--text-body); }
.post-body ul, .post-body ol { margin: 0 0 20px 22px; line-height: 1.9; color: var(--text-body); }
.post-body li { margin-bottom: 8px; }
.post-body img { margin: 32px auto; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border);
}

/* --- Card icons (payments) --- */
.card-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.card-icons img { height: 44px; width: auto; }

/* --- Footer additions --- */
.footer-newsletter {
  text-align: center;
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 0.5px solid var(--border);
}
.footer-newsletter h3 { margin-bottom: 6px; }
.footer-newsletter p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 20px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--text);
}
.newsletter-form input:focus { outline: none; border-bottom-color: var(--navy); }
.footer-social {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
}
.footer-social a {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-social a:hover { color: var(--navy); }
.footer-copy a { color: var(--text-faint); }
.footer-copy a:hover { color: var(--navy); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links .dropdown {
    position: static;
    border: none;
    padding: 0 0 0 18px;
    background: transparent;
  }
  .page-hero { padding: 140px 0 48px; }
  .feature-band { grid-template-columns: 1fr; padding: 28px; }
  .guarantee-band { flex-direction: column; text-align: center; padding: 28px; }
  .platform-cols { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .post-nav { flex-direction: column; }
}

/* --- Nav density fixes --- */
.nav-links { gap: 26px; }
.nav-links a { white-space: nowrap; }
.nav-cta { margin-left: 8px; }
.btn-sm { padding: 12px 20px; }
@media (max-width: 1080px) and (min-width: 769px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.64rem; }
}

/* --- Actual TGL logo sizing --- */
.nav-logo img { height: 62px; }
.footer-logo img { height: 56px; }

/* --- Fix logo aspect ratio (prevent squeeze from max-width) --- */
.nav-logo img, .footer-logo img { width: auto; max-width: none; object-fit: contain; }

/* --- Full-width nav: logo far left, menu far right --- */
.nav-inner { max-width: none; padding: 0 48px; }
@media (max-width: 768px) { .nav-inner { padding: 0 20px; } }

/* --- Mobile optimization pass --- */
html, body { overflow-x: hidden; }
.footer-links { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
.footer-social { flex-wrap: wrap; }

@media (max-width: 768px) {
  .nav-links {
    background: var(--cream);
    box-shadow: 0 18px 30px rgba(12, 31, 63, 0.08);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-links .dropdown { background: var(--cream-dark); padding: 6px 0 6px 18px; }
  .nav-logo img { height: 52px; }
  .page-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .post-meta { line-height: 1.9; padding: 0 12px; }
  .post-nav .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .footer-links { gap: 18px; }
  .card-icons { flex-wrap: wrap; }
  .card-icons img { height: 34px; }
  .guarantee-band img { width: 90px; }
  section { padding: 64px 0; }
  .page-hero { padding: 130px 0 44px; }
  .about-image-placeholder { aspect-ratio: auto; }
  .about-image-placeholder img { aspect-ratio: 3/4; }
  .topics-grid { grid-template-columns: 1fr; }
  .blog-card img { height: 180px; }
}

/* --- Company logo marquee --- */
.logo-band-section { padding: 84px 0; background: var(--white); }
.logo-band { overflow: hidden; position: relative; }
.logo-band::before, .logo-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.logo-band::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.logo-band::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.logo-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: logo-scroll 80s linear infinite;
  padding: 8px 0;
}
.logo-band:hover .logo-track { animation-play-state: paused; }
.logo-track img {
  height: 130px;
  width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 6px 18px rgba(12, 31, 63, 0.05);
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .logo-track { gap: 18px; animation-duration: 55s; }
  .logo-track img { height: 100px; width: 150px; padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* --- Podcast episode embeds --- */
.episode-embeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.episode-embeds h3 { margin-bottom: 16px; }
.embed-frame {
  position: relative;
  background: var(--white);
  border: 0.5px solid var(--border);
}
.embed-frame iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}
@media (max-width: 900px) {
  .episode-embeds { grid-template-columns: 1fr; }
}

/* --- Home podcast widget --- */
.podcast-widget { max-width: 900px; margin: 0 auto; }
.podcast-widget .embed-frame iframe { height: 500px; }
@media (max-width: 768px) {
  .podcast-widget .embed-frame iframe { height: 320px; }
  .episode-embeds .embed-frame iframe { height: 380px; }
}

/* --- Video banner (podcast) --- */
.video-banner {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: var(--navy);
}
.video-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/FB2021-5_002_.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
  animation: banner-zoom 24s ease-in-out infinite alternate;
}
@keyframes banner-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}
.video-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,31,63,0.86), rgba(12,31,63,0.92));
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .video-banner-bg { animation: none; }
}

/* --- Video testimonials gallery --- */
.video-testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.video-testimonials img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  transition: transform var(--transition);
}
.video-testimonials img:hover { transform: translateY(-3px); }
@media (max-width: 768px) {
  .video-testimonials { grid-template-columns: 1fr 1fr; }
  .video-testimonials img { height: 160px; }
}

/* --- Home podcast two-column (watch + pick episode) --- */
.podcast-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.podcast-col-label {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}
.podcast-split .embed-frame { background: var(--white); border: none; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.22); }
.podcast-split .embed-frame iframe { height: 440px; }
@media (max-width: 860px) {
  .podcast-split { grid-template-columns: 1fr; gap: 32px; }
  .podcast-split .embed-frame iframe { height: 360px; }
}

/* --- Native episode list widget --- */
.ep-list {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  max-height: 440px;
  overflow-y: auto;
  padding: 6px 0;
}
.ep-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-body);
  transition: background var(--transition);
}
.ep-row:last-child { border-bottom: none; }
.ep-row:hover { background: var(--gold-faint); color: var(--navy); }
.ep-play {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  padding-left: 2px;
  transition: all var(--transition);
}
.ep-row:hover .ep-play { background: var(--gold); color: var(--navy); }
.ep-title {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 400;
}
.ep-dur {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
/* scrollbar */
.ep-list::-webkit-scrollbar { width: 8px; }
.ep-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.ep-list::-webkit-scrollbar-thumb:hover { background: var(--gold); }


/* --- Inline episode player --- */
.ep-player-wrap {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  overflow: hidden;
}
.ep-nowplaying {
  padding: 16px 20px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ep-np-text { display: flex; flex-direction: column; gap: 2px; }
.ep-np-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.ep-np-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.3;
}
.ep-nowplaying audio { width: 100%; height: 36px; }
.ep-player-wrap .ep-list {
  box-shadow: none;
  border-radius: 0;
  max-height: 360px;
}
.ep-row.playing { background: var(--gold-faint); }
.ep-row.playing .ep-play { background: var(--gold); color: var(--navy); }
.ep-row { width: 100%; text-align: left; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; font-family: inherit; }
