/*
Theme Name: Dan Pena WordPress Ready
Theme URI: https://www.danpena.co.uk/
Author: Dan Pena Team
Description: The New Official Website of Dan Pena - The Trillion Dollar Man
Version: 22.7
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: danpena
*/

/* =============================================
   DAN PEÑA - THE TRILLION DOLLAR MAN
   Primary Theme Stylesheet
   Colors: #0a0a0a (bg), #FFFFFF (text), #a90000 (accent)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;600;700;900&display=swap');

:root {
  --black:       #0a0a0a;
  --black-mid:   #111111;
  --black-light: #1a1a1a;
  --black-card:  #161616;
  --border:      #2a2a2a;
  --red:         #a90000;
  --red-dark:    #7a0000;
  --red-light:   #cc0000;
  --white:       #ffffff;
  --white-dim:   #cccccc;
  --white-muted: #888888;
  --font-display: 'Bebas Neue', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-mid); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  background: var(--red);
  padding: 8px 0;
  text-align: center;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  z-index: 1001;
}
.topbar a { color: var(--white); font-weight: 700; text-decoration: underline; }

/* =============================================
   NAVIGATION
   ============================================= */
nav.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo .logo-name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  letter-spacing: 0.05em;
}
.nav-logo .logo-title {
  font-family: var(--font-condensed);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--red); }
.nav-links > li > a .chevron {
  font-size: 10px;
  transition: transform 0.2s;
  opacity: 0.6;
}
.nav-links > li:hover > a .chevron { transform: rotate(180deg); }
/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--black-mid);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.nav-links > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 11px 20px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-dim);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { color: var(--white); background: var(--black-light); padding-left: 26px; }
/* Sub-dropdown */
.dropdown li { position: relative; }
.sub-dropdown {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--black-mid);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 200px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.dropdown li:hover .sub-dropdown { display: block; }
.dropdown li a .arrow {
  float: right;
  font-size: 10px;
  opacity: 0.5;
}
/* Nav CTA */
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; color: var(--white) !important; }
/* Linktree Social */
.nav-social {
  flex: 0 0 auto;
}
.nav-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--black-light);
  border: 1px solid var(--border);
  color: var(--white-dim);
  padding: 7px 14px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-social a:hover { border-color: var(--red); color: var(--white); }
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: var(--black-mid);
  border-left: 1px solid var(--border);
  z-index: 2000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-inner { padding: 20px; }
.mobile-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.mobile-close button {
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}
.mobile-nav-item > a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-sub {
  padding: 8px 0 0 16px;
}
.mobile-nav-sub a {
  display: block;
  padding: 8px 0;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-muted);
  border-bottom: 1px solid #1e1e1e;
}
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1500;
}
.overlay.show { display: block; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap iframe,
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.92) 0%,
    rgba(169,0,0,0.15) 50%,
    rgba(10,10,10,0.9) 100%
  );
  z-index: 1;
}
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--black), transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--red);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.92;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.hero-headline .accent { color: var(--red); }
.hero-subheadline {
  font-family: var(--font-condensed);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--white-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  outline: none;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 15px 34px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(169,0,0,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--white-dim);
  padding: 12px 24px;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--white); border-color: var(--white-muted); }
.btn-block { width: 100%; justify-content: center; }

/* =============================================
   SECTION UTILITIES
   ============================================= */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}
.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.eyebrow {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.centered { justify-content: center; }
.eyebrow::before, .eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 60px;
}
.eyebrow.left::after { display: none; }
.eyebrow.left::before { display: none; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
}
.section-title .accent { color: var(--red); }
.section-desc {
  margin-top: 16px;
  color: var(--white-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 600px;
}
.section-desc.centered { margin: 16px auto 0; text-align: center; }
.divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 18px 0;
}
.divider.centered { margin: 18px auto; }

/* =============================================
   GRID & CARDS
   ============================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

.card {
  background: var(--black-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.card:hover { border-color: #333; transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,0.5); }
.card:hover::before { transform: scaleX(1); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--black-light); }
.card-img-sq { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--black-light); }
.card-body { padding: 22px; }
.card-label {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}
.card-text { font-size: 14px; color: var(--white-muted); line-height: 1.6; margin-bottom: 18px; }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  padding: 80px 0 60px;
  background: var(--black-mid);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: attr(data-title);
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 180px;
  color: rgba(169,0,0,0.04);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.02em;
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--white-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--border); }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 90px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
}
.page-hero-title .accent { color: var(--red); }
.page-hero-desc {
  margin-top: 16px;
  color: var(--white-muted);
  font-size: 17px;
  max-width: 600px;
  line-height: 1.7;
}

/* =============================================
   STATS / NUMBERS BAR
   ============================================= */
.stats-bar {
  background: var(--red);
  padding: 30px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-label {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* =============================================
   QUOTE / PULLQUOTE
   ============================================= */
.pullquote {
  border-left: 4px solid var(--red);
  padding: 20px 28px;
  background: var(--black-card);
  margin: 32px 0;
}
.pullquote p {
  font-family: var(--font-condensed);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  font-style: italic;
}
.pullquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

/* =============================================
   VIDEO EMBED
   ============================================= */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--black-mid);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s;
}
.video-thumb:hover img { transform: scale(1.04); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s;
}
.video-thumb:hover .play-btn { background: rgba(169,0,0,0.45); }
.play-btn svg {
  width: 56px;
  height: 56px;
  fill: white;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

/* =============================================
   PLAYLIST TABS
   ============================================= */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-muted);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =============================================
   DOWNLOAD ITEMS
   ============================================= */
.download-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  transition: all 0.25s;
  margin-bottom: 12px;
}
.download-item:hover {
  background: var(--black-light);
  transform: translateX(4px);
}
.download-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.download-info { flex: 1; }
.download-name {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 3px;
}
.download-meta {
  font-size: 13px;
  color: var(--white-muted);
}
.download-actions { flex-shrink: 0; }

/* =============================================
   TEST CARDS
   ============================================= */
.test-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.test-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}
.test-card:hover {
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(169,0,0,0.2);
}
.test-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}
.test-name {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.test-desc {
  color: var(--white-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* =============================================
   BLOG
   ============================================= */
.blog-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}
.blog-card:hover {
  border-color: #333;
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}
.blog-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--black-light);
  transition: transform 0.4s;
}
.blog-card:hover .blog-img { transform: scale(1.04); }
.blog-img-wrap { overflow: hidden; }
.blog-body { padding: 24px; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.blog-date {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.blog-tag {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 3px 10px;
}
.blog-title {
  font-family: var(--font-condensed);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.blog-card:hover .blog-title { color: var(--red); }
.blog-excerpt { font-size: 14px; color: var(--white-muted); line-height: 1.6; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--black-mid);
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .logo-name {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.footer-brand .logo-title {
  font-family: var(--font-condensed);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 320px;
}
.footer-col-title {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--white-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '›';
  color: var(--red);
  font-size: 16px;
  line-height: 1;
}
.footer-links a:hover { color: var(--white); }
.footer-contact p {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--white-muted);
  margin-bottom: 10px;
  align-items: flex-start;
}
.footer-contact strong {
  color: var(--white);
  font-family: var(--font-condensed);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  flex-shrink: 0;
}
.footer-contact a { color: var(--white-muted); transition: color 0.2s; }
.footer-contact a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 13px;
  color: var(--white-muted);
}
.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-muted);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--red); }

/* =============================================
   ANNOUNCEMENT BAR / CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-dark) 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(0,0,0,0.04) 20px,
    rgba(0,0,0,0.04) 21px
  );
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  margin-bottom: 28px;
  font-family: var(--font-condensed);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-white {
  background: var(--white);
  color: var(--red);
  padding: 15px 36px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-white:hover { background: var(--black); color: var(--white); }

/* =============================================
   ACCORDION (QLA content)
   ============================================= */
.accordion-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  margin-bottom: 6px;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black-card);
  user-select: none;
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--black-light); }
.accordion-header .icon {
  font-size: 20px;
  color: var(--red);
  transition: transform 0.3s;
}
.accordion-item.open .icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 20px 22px;
  background: var(--black-mid);
  border-top: 1px solid var(--border);
}
.accordion-item.open .accordion-body { display: block; }
.accordion-body p {
  color: var(--white-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* =============================================
   SCHEDULE TABLE
   ============================================= */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 14px 18px;
  text-align: left;
}
.schedule-table td {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--white-muted);
  border-bottom: 1px solid var(--border);
}
.schedule-table tr { background: var(--black-card); }
.schedule-table tr:nth-child(even) { background: var(--black-mid); }
.schedule-table tr:hover td { background: var(--black-light); color: var(--white); }
.event-country {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}
.event-status {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.status-upcoming { background: var(--red); color: white; }
.status-soldout { background: #333; color: var(--white-muted); }
.status-announced { background: #1a3a00; color: #4caf50; }

/* =============================================
   CONTENT SECTIONS
   ============================================= */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.content-split.reverse { direction: rtl; }
.content-split.reverse > * { direction: ltr; }
.content-img-wrap {
  position: relative;
}
.content-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.content-img-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--red);
  z-index: -1;
  opacity: 0.3;
}
.content-body p {
  color: var(--white-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-body ul li {
  color: var(--white-muted);
  font-size: 15px;
  padding: 6px 0 6px 22px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.content-body ul li::before {
  content: '▸';
  color: var(--red);
  position: absolute;
  left: 0;
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-condensed);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin: 36px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.legal-content p {
  color: var(--white-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul { margin: 12px 0 16px 20px; }
.legal-content ul li {
  color: var(--white-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
  list-style: disc;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 0; }
  .nav-links > li > a { padding: 10px 10px; font-size: 13px; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .content-split { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-social { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .footer-copy {
    width: 100%;
    text-align: center;
  }
  .footer-legal {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
    text-align: center;
  }
  .footer-legal a {
    display: inline-flex;
    justify-content: center;
    text-align: center;
  }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .schedule-table { font-size: 12px; }
  .schedule-table th, .schedule-table td { padding: 10px 12px; }
}

/* Placeholder image style */
.img-placeholder {
  background: var(--black-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-muted);
  font-family: var(--font-condensed);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =============================================
   INTERVIEWS PAGE TEMPLATE
   ============================================= */
.interviews-hero {
  background:
    linear-gradient(135deg, rgba(10,10,10,.92), rgba(10,10,10,.72)),
    radial-gradient(circle at 75% 25%, rgba(169,0,0,.28), transparent 36%);
}
.interviews-section { background: var(--black); }
.interview-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.interview-feature-card,
.interview-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.interview-feature-card:hover,
.interview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(169,0,0,.75);
  box-shadow: 0 16px 42px rgba(0,0,0,.45);
}
.interview-video-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
  position: relative;
  overflow: hidden;
}
.interview-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  filter: grayscale(.25) contrast(1.1);
  transition: transform .35s ease, opacity .35s ease;
}
.interview-feature-card:hover .interview-video-thumb img { transform: scale(1.04); opacity: 1; }
.interview-video-thumb .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(169,0,0,.88);
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.interviews-archive-wrap { background: var(--black-mid); border-top: 1px solid var(--border); }
.interviews-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.interviews-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 620px;
}
.interviews-jump a {
  border: 1px solid var(--border);
  background: #101010;
  color: var(--white-dim);
  padding: 7px 10px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.interviews-jump a:hover { border-color: var(--red); color: var(--white); }
.interview-year-block { padding: 34px 0; border-top: 1px solid var(--border); scroll-margin-top: 100px; }
.interview-year-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.interview-year-heading span {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 76px);
  line-height: .9;
  letter-spacing: .04em;
  color: var(--white);
}
.interview-year-heading em {
  font-family: var(--font-condensed);
  color: var(--red);
  font-style: normal;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
}
.interview-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.interview-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #181818, #0f0f0f 60%, rgba(169,0,0,.35));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.interview-card-media span {
  font-family: var(--font-condensed);
  font-size: 11px;
  letter-spacing: .22em;
  color: #555;
  font-weight: 800;
}
.interview-card-content { padding: 18px; }
.interview-card-content h3 {
  font-family: var(--font-condensed);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 6px 0 10px;
}
.interview-card-content p { color: var(--white-muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 1100px) {
  .interview-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .interview-highlight-grid { grid-template-columns: 1fr; }
  .interviews-toolbar { display: block; }
  .interviews-jump { justify-content: flex-start; margin-top: 18px; }
  .interview-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .interview-year-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .interview-card-grid { grid-template-columns: 1fr; }
}

/* WordPress menu compatibility: keep original dropdown styling with dynamic menus */
.nav-links .sub-menu { display: none; }
.nav-links > li:hover > .sub-menu,
.nav-links > li:hover > .dropdown { display: block; }
.nav-links > li > .sub-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--black-mid);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.nav-links > li > .sub-menu li a,
.nav-links .dropdown li a {
  display: block;
  padding: 11px 20px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-dim);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}
.nav-links > li > .sub-menu li a:hover { color: var(--white); background: var(--black-light); padding-left: 26px; }
.nav-links .sub-menu li { position: relative; }
.nav-links .sub-menu .sub-menu {
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--black-mid);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 200px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.nav-links .sub-menu li:hover > .sub-menu { display: block; }
.mobile-menu .dropdown,
.mobile-menu .sub-dropdown,
.mobile-menu .sub-menu {
  display: block;
  position: static;
  border: 0;
  box-shadow: none;
  background: transparent;
  margin-left: 14px;
  min-width: 0;
}
.mobile-menu li a {
  display: block;
  padding: 9px 0;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.mobile-menu .sub-menu li a,
.mobile-menu .dropdown li a,
.mobile-menu .sub-dropdown li a {
  font-size: 13px;
  color: var(--white-muted);
  border-bottom: 0;
  padding: 6px 0;
}

/* Enhanced Seminar Page */
.seminar-hero-actions { display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }
.eyebrow span { width:40px; height:1px; background:var(--red); display:inline-block; }
.seminar-highlight-box { margin-top:26px; padding:20px 22px; background:var(--black-card); border:1px solid var(--border); border-left:3px solid var(--red); display:grid; gap:8px; }
.seminar-highlight-box strong { color:var(--white); font-family:var(--font-condensed); text-transform:uppercase; letter-spacing:.08em; }
.seminar-highlight-box span { color:var(--white-muted); }
.seminar-info-card { background:var(--black-card); border:1px solid var(--border); padding:34px; box-shadow:0 14px 45px rgba(0,0,0,.28); }
.seminar-info-card h3 { font-family:var(--font-condensed); font-size:28px; text-transform:uppercase; margin-bottom:16px; color:var(--white); }
.seminar-info-card p { color:var(--white-muted); line-height:1.65; margin-bottom:18px; }
.seminar-info-card a:not(.btn) { display:block; color:var(--red); margin:8px 0; font-weight:700; word-break:break-word; }
.seminar-info-card .small-note { font-size:13px; margin-top:22px; color:var(--white-dim); }
.seminar-topic-grid .card { min-height:100%; }
.seminar-steps { display:grid; gap:14px; }
.seminar-steps div { display:grid; grid-template-columns:150px 1fr; gap:20px; background:var(--black-card); border:1px solid var(--border); padding:20px 22px; align-items:start; }
.seminar-steps strong { color:var(--red); font-family:var(--font-condensed); text-transform:uppercase; letter-spacing:.08em; }
.seminar-steps span { color:var(--white-muted); line-height:1.55; }
.seminar-schedule-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:0 auto 34px; max-width:980px; }
.seminar-day-card { background:var(--black-card); border:1px solid var(--border); padding:24px; position:relative; overflow:hidden; }
.seminar-day-card:before { content:""; position:absolute; left:0; top:0; width:3px; height:100%; background:var(--red); }
.seminar-day-card h3 { font-family:var(--font-condensed); text-transform:uppercase; color:var(--white); font-size:24px; margin-bottom:12px; }
.seminar-day-card p { color:var(--white-muted); line-height:1.55; font-size:14px; margin-bottom:16px; }
.seminar-day-card span { color:var(--red); font-family:var(--font-condensed); text-transform:uppercase; letter-spacing:.08em; font-size:12px; }
.seminar-events-table a { color:var(--red); font-weight:700; }
.red-card { border-left:3px solid var(--red); }
.seminar-disclaimer-box { background:var(--black-card); border:1px solid var(--border); padding:30px; max-width:980px; margin:0 auto; }
.seminar-disclaimer-box h2 { font-family:var(--font-condensed); text-transform:uppercase; color:var(--white); font-size:28px; margin-bottom:14px; }
.seminar-disclaimer-box p { color:var(--white-muted); line-height:1.65; margin-bottom:12px; }
@media (max-width: 980px) { .seminar-schedule-grid { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:100%; } }
@media (max-width: 640px) { .seminar-steps div { grid-template-columns:1fr; gap:8px; } .seminar-schedule-grid { grid-template-columns:1fr; } .seminar-hero-actions { flex-direction:column; align-items:flex-start; } }

/* =============================================
   NO-IMAGE INTERVIEW CARDS
   ============================================= */
.interviews-no-images .interview-feature-card,
.interviews-no-images .interview-card {
  background: linear-gradient(180deg, #111 0%, #080808 100%);
}
.interview-brand-link,
.interviews-no-images .interview-card-link {
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.interview-brand-link {
  display: flex;
  flex-direction: column;
}
.interview-brand-panel,
.interview-icon-panel {
  position: relative;
  min-height: 190px;
  padding: 24px;
  background:
    radial-gradient(circle at 85% 15%, rgba(169,0,0,.35), transparent 34%),
    linear-gradient(135deg, #171717 0%, #050505 64%, rgba(169,0,0,.25) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.interview-brand-panel:before,
.interview-icon-panel:before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.interview-brand-kicker {
  position: relative;
  z-index: 1;
  color: var(--red);
  font-family: var(--font-condensed);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}
.interview-brand-panel strong {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  line-height: .86;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.interview-platform-badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  border: 1px solid rgba(169,0,0,.8);
  background: rgba(169,0,0,.12);
  color: var(--white);
  padding: 7px 10px;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.interview-card-grid--text .interview-card-link {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  padding: 18px;
}
.interview-card-grid--text .interview-icon-panel {
  min-height: 138px;
  padding: 15px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.interview-icon-mark {
  position: relative;
  z-index: 1;
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .04em;
  background: rgba(0,0,0,.35);
  margin-bottom: 12px;
}
.interview-card-grid--text .interview-platform-badge {
  align-self: center;
  padding: 5px 7px;
  font-size: 9px;
  letter-spacing: .08em;
}
.interviews-no-images .interview-card-content {
  padding: 0;
}
.interviews-no-images .interview-card-link:hover h3,
.interviews-no-images .interview-card-link:focus h3,
.interview-brand-link:hover .card-title,
.interview-brand-link:focus .card-title {
  color: var(--red);
}
.interviews-no-images .card-body {
  padding: 22px;
}
@media (max-width: 640px) {
  .interview-card-grid--text .interview-card-link {
    grid-template-columns: 1fr;
  }
  .interview-card-grid--text .interview-icon-panel {
    min-height: 118px;
  }
}


/* No-image Talks & Speeches archive */
.talks-no-images { width: 100%; }
.talks-contact-panel {
  max-width: 980px;
  margin: 0 auto 34px;
  padding: 22px 26px;
  border: 1px solid rgba(169,0,0,.45);
  background: linear-gradient(135deg, rgba(169,0,0,.16), rgba(255,255,255,.035));
  color: var(--white-muted);
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}
.talks-contact-panel a { color: var(--white); font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.talks-contact-panel a:hover, .talks-contact-panel a:focus { color: var(--red-light); border-bottom-color: var(--red-light); }
.talks-card-grid .interview-icon-panel { background: radial-gradient(circle at 30% 20%, rgba(169,0,0,.32), rgba(10,10,10,.96)); }
.talk-text-card .interview-icon-mark { font-size: 25px; }

/* No-image QLA Seminar playlist archive */
.seminar-videos-no-images { width: 100%; }
.seminar-card-grid .interview-icon-panel { background: radial-gradient(circle at 30% 20%, rgba(169,0,0,.34), rgba(10,10,10,.96)); }
.seminar-text-card .interview-icon-mark { font-size: 24px; }

/* Podcast & Original Series filtered playlist cards - cosmetic fix */
.podcast-series-no-images {
  width: 100%;
}
.podcast-series-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 28px auto 38px;
  max-width: 820px;
}
.podcast-series-filter {
  appearance: none;
  border: 1px solid rgba(169,0,0,.75);
  background: linear-gradient(135deg, rgba(18,18,18,.98), rgba(5,5,5,.98));
  color: var(--white-dim);
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .12em;
  min-width: 250px;
  padding: 15px 22px;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.podcast-series-filter::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(169,0,0,.18);
  vertical-align: 1px;
}
.podcast-series-filter:hover,
.podcast-series-filter:focus {
  border-color: var(--red-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
  outline: none;
}
.podcast-series-filter.active,
.podcast-series-filter[aria-selected="true"] {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: var(--red-light);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(169,0,0,.28);
}
.podcast-series-filter.active::before,
.podcast-series-filter[aria-selected="true"]::before {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}
.podcast-series-panel {
  display: none;
}
.podcast-series-panel.active {
  display: block;
}
.podcast-series-desc {
  margin: -10px 0 24px;
  max-width: 780px;
  color: var(--white-muted);
}
.podcast-series-grid .interview-icon-panel {
  background: radial-gradient(circle at 30% 20%, rgba(169,0,0,.34), rgba(10,10,10,.96));
}
.podcast-series-card .interview-icon-mark {
  letter-spacing: .08em;
  font-size: 22px;
}
@media (max-width: 640px) {
  .podcast-series-selector {
    align-items: stretch;
    flex-direction: column;
  }
  .podcast-series-filter {
    width: 100%;
    min-width: 0;
  }
}

/* Homepage hero image replacement */
.hero-image-landing .hero-video-wrap { display: none; }
.hero-image-wrap {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-image-landing .hero-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.52) 45%, rgba(0,0,0,0.22) 100%);
}
@media (max-width: 768px) {
  .hero-image-wrap { background-position: center top; }
  .hero-image-landing .hero-overlay { background: rgba(0,0,0,0.64); }
}

/* Homepage Watch Dan In Action layout */
.home-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}
.home-action-featured,
.home-video-card {
  background: linear-gradient(145deg, rgba(20,20,20,0.98), rgba(7,7,7,0.98));
  border: 1px solid rgba(176, 133, 64, 0.35);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.home-action-featured {
  padding: 18px;
}
.home-action-featured .video-wrap {
  max-width: none;
  margin: 0;
}
.home-action-copy {
  padding: 24px 4px 4px;
}
.home-action-copy h3 {
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  margin: 8px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.home-action-copy p {
  color: #aaa;
  margin-bottom: 22px;
}
.home-action-cards {
  display: grid;
  gap: 14px;
}
.home-video-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  padding: 20px 22px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.home-video-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  background: linear-gradient(145deg, rgba(32,14,14,0.98), rgba(10,10,10,0.98));
}
.home-video-card-kicker {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.home-video-card strong {
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.home-video-card span:not(.home-video-card-kicker) {
  color: #aaa;
  font-size: 13px;
  line-height: 1.45;
}
.home-video-card em {
  color: #d7b56d;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 14px;
}
@media (max-width: 980px) {
  .home-action-grid {
    grid-template-columns: 1fr;
  }
  .home-action-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .home-action-cards {
    grid-template-columns: 1fr;
  }
  .home-action-featured {
    padding: 12px;
  }
}

/* Videos dropdown anchor support */
.tabs-component { scroll-margin-top: 120px; }
.tab-panel { scroll-margin-top: 120px; }


/* Seminar program tabs */
.seminar-tab-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px auto 10px;
  max-width: 980px;
}
.seminar-tab-btn {
  background: linear-gradient(135deg, rgba(12,12,12,.96), rgba(30,30,30,.96));
  border: 1px solid rgba(201, 162, 77, .45);
  color: #fff;
  cursor: pointer;
  padding: 24px 26px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.seminar-tab-btn span {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.seminar-tab-btn small {
  color: #aaa;
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  margin-top: 8px;
  text-transform: none;
}
.seminar-tab-btn:hover,
.seminar-tab-btn.is-active {
  border-color: var(--red);
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  transform: translateY(-2px);
}
.seminar-tab-btn.is-active {
  background: linear-gradient(135deg, rgba(120,0,0,.45), rgba(22,22,22,.98));
}
.seminar-tab-panel {
  display: none;
  padding-top: 20px;
}
.seminar-tab-panel.is-active {
  display: block;
}
.seminar-program-tabs > .seminar-tab-panel > .container {
  padding-top: 0;
}
@media (max-width: 780px) {
  .seminar-tab-buttons {
    grid-template-columns: 1fr;
  }
}


/* Seminar page program tabs and Hardcore 2.0 layout */
.seminar-program-tabs-top {
  background: var(--black-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 52px;
}
.section-header.compact {
  margin-bottom: 18px;
}
.seminar-tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px auto 28px;
  max-width: 1200px;
}
.seminar-tab-btn {
  background: linear-gradient(135deg, rgba(12,12,12,.98), rgba(32,32,32,.98));
  border: 1px solid rgba(201, 162, 77, .45);
  color: #fff;
  cursor: pointer;
  padding: 24px 28px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.seminar-tab-btn span {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.seminar-tab-btn small {
  color: #aaa;
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  margin-top: 8px;
  text-transform: none;
}
.seminar-tab-btn:hover,
.seminar-tab-btn.is-active {
  border-color: var(--red);
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  transform: translateY(-2px);
}
.seminar-tab-btn.is-active {
  background: linear-gradient(135deg, rgba(120,0,0,.46), rgba(22,22,22,.98));
}
.seminar-tab-panel {
  display: none;
}
.seminar-tab-panel.is-active {
  display: block;
}
.seminar-tab-panel > .section:first-child {
  padding-top: 48px;
}
.seminar-form-trigger,
.btn-mini {
  appearance: none;
  border: 0;
  cursor: pointer;
}
.btn-mini {
  background: var(--red);
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 10px 16px;
  text-transform: uppercase;
}
.hardcore-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}
.hardcore-timeline div {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: 18px 20px;
}
.hardcore-timeline strong {
  color: var(--red);
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}
.hardcore-timeline span {
  color: #ddd;
}
.seminar-checklist {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.seminar-checklist li {
  border-bottom: 1px solid var(--border);
  color: #ddd;
  padding: 10px 0 10px 24px;
  position: relative;
}
.seminar-checklist li:before {
  content: "•";
  color: var(--red);
  font-size: 22px;
  left: 0;
  line-height: 1;
  position: absolute;
  top: 9px;
}
.castle-schedule,
.hardcore-schedule,
.hardcore-requirements,
.hardcore-date {
  background: var(--black-mid);
  border-top: 1px solid var(--border);
}
@media (max-width: 780px) {
  .seminar-tab-buttons,
  .hardcore-timeline {
    grid-template-columns: 1fr;
  }
}


/* Restored 7 Steps to Super Success design */
.qla-steps-restored {
  background:
    radial-gradient(circle at top left, rgba(160, 0, 0, .16), transparent 34%),
    linear-gradient(180deg, var(--black), var(--black-mid));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.qla-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.qla-step-card {
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201, 162, 77, .28);
  min-height: 220px;
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.qla-step-card:before {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(180,0,0,.32);
  border-radius: 999px;
}
.qla-step-card:hover {
  border-color: var(--red);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
  transform: translateY(-4px);
}
.qla-step-number {
  color: var(--red);
  display: block;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
}
.qla-step-card h3 {
  color: #fff;
  font-size: 18px;
  letter-spacing: .04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.qla-step-card p {
  color: #bdbdbd;
  line-height: 1.7;
  margin: 0;
}
.qla-step-card-wide {
  grid-column: 1 / -1;
  min-height: 150px;
}
@media (max-width: 980px) {
  .qla-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .qla-steps-grid {
    grid-template-columns: 1fr;
  }
  .qla-step-card-wide {
    grid-column: auto;
  }
}

.seminar-combined-dates {
  background: var(--black-mid);
  border-top: 1px solid var(--border);
}


/* Homepage social media counter section */
.social-counter-section {
  background:
    radial-gradient(circle at top center, rgba(160, 0, 0, .18), transparent 34%),
    linear-gradient(180deg, var(--black), var(--black-mid));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.social-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.social-counter-card {
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201, 162, 77, .28);
  color: #fff;
  display: block;
  min-height: 190px;
  padding: 30px 24px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.social-counter-card:before {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(180,0,0,.34);
  border-radius: 999px;
}
.social-counter-card:hover {
  border-color: var(--red);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
  transform: translateY(-4px);
}
.social-counter-platform {
  color: #aaa;
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.social-counter-number {
  color: #fff;
  display: block;
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 14px;
}
.social-counter-label {
  color: #c9c9c9;
  display: block;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 980px) {
  .social-counter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .social-counter-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile fix: homepage authority stats alignment */
@media (max-width: 900px) {
  .stats-bar {
    padding: 22px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  .stat-item {
    min-width: 0;
    padding: 18px 12px;
    border-right: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .stat-item:nth-child(2n) {
    border-right: none;
  }
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .stat-number {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1;
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .stat-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    line-height: 1.45;
    max-width: 150px;
    margin: 8px auto 0;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item,
  .stat-item:nth-child(2n),
  .stat-item:nth-last-child(-n+2) {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .stat-number {
    font-size: 38px;
  }
  .stat-label {
    max-width: 240px;
  }
}


/* Travel schedule responsive table fix */
.travel-schedule,
.travel-schedule-page,
.page-travel,
.travel-table-wrap,
.schedule-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.travel-schedule table,
.travel-schedule-page table,
.page-travel table,
.schedule-table,
.travel-table {
  max-width: 100%;
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

.travel-schedule table th,
.travel-schedule table td,
.travel-schedule-page table th,
.travel-schedule-page table td,
.page-travel table th,
.page-travel table td,
.schedule-table th,
.schedule-table td,
.travel-table th,
.travel-table td {
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .travel-schedule table,
  .travel-schedule-page table,
  .page-travel table,
  .schedule-table,
  .travel-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .travel-schedule table th,
  .travel-schedule table td,
  .travel-schedule-page table th,
  .travel-schedule-page table td,
  .page-travel table th,
  .page-travel table td,
  .schedule-table th,
  .schedule-table td,
  .travel-table th,
  .travel-table td {
    min-width: 120px;
    white-space: normal;
  }
}


/* Downloads section mobile alignment fix */
@media (max-width: 768px) {
  #downloads,
  .downloads-section,
  .download-section,
  .downloads-resources,
  .resources-section {
    overflow: hidden;
  }

  #downloads .container,
  .downloads-section .container,
  .download-section .container,
  .downloads-resources .container,
  .resources-section .container {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  #downloads .grid-3,
  #downloads .grid-4,
  #downloads .downloads-grid,
  #downloads .download-grid,
  #downloads .resource-grid,
  .downloads-section .grid-3,
  .downloads-section .grid-4,
  .downloads-section .downloads-grid,
  .downloads-section .download-grid,
  .downloads-section .resource-grid,
  .download-section .grid-3,
  .download-section .grid-4,
  .download-section .downloads-grid,
  .download-section .download-grid,
  .download-section .resource-grid,
  .downloads-resources .grid-3,
  .downloads-resources .grid-4,
  .downloads-resources .downloads-grid,
  .downloads-resources .download-grid,
  .downloads-resources .resource-grid,
  .resources-section .grid-3,
  .resources-section .grid-4,
  .resources-section .downloads-grid,
  .resources-section .download-grid,
  .resources-section .resource-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 18px;
    width: 100%;
    max-width: 100%;
  }

  #downloads .card,
  #downloads .download-card,
  #downloads .resource-card,
  .downloads-section .card,
  .downloads-section .download-card,
  .downloads-section .resource-card,
  .download-section .card,
  .download-section .download-card,
  .download-section .resource-card,
  .downloads-resources .card,
  .downloads-resources .download-card,
  .downloads-resources .resource-card,
  .resources-section .card,
  .resources-section .download-card,
  .resources-section .resource-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  #downloads .card-body,
  #downloads .download-card,
  #downloads .resource-card,
  .downloads-section .card-body,
  .downloads-section .download-card,
  .downloads-section .resource-card,
  .download-section .card-body,
  .download-section .download-card,
  .download-section .resource-card,
  .downloads-resources .card-body,
  .downloads-resources .download-card,
  .downloads-resources .resource-card,
  .resources-section .card-body,
  .resources-section .download-card,
  .resources-section .resource-card {
    padding-left: 22px;
    padding-right: 22px;
    text-align: left;
  }

  #downloads .btn,
  #downloads a[class*="btn"],
  .downloads-section .btn,
  .downloads-section a[class*="btn"],
  .download-section .btn,
  .download-section a[class*="btn"],
  .downloads-resources .btn,
  .downloads-resources a[class*="btn"],
  .resources-section .btn,
  .resources-section a[class*="btn"] {
    display: inline-flex;
    justify-content: center;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  #downloads img,
  .downloads-section img,
  .download-section img,
  .downloads-resources img,
  .resources-section img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  #downloads .container,
  .downloads-section .container,
  .download-section .container,
  .downloads-resources .container,
  .resources-section .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  #downloads .card-body,
  #downloads .download-card,
  #downloads .resource-card,
  .downloads-section .card-body,
  .downloads-section .download-card,
  .downloads-section .resource-card,
  .download-section .card-body,
  .download-section .download-card,
  .download-section .resource-card,
  .downloads-resources .card-body,
  .downloads-resources .download-card,
  .downloads-resources .resource-card,
  .resources-section .card-body,
  .resources-section .download-card,
  .resources-section .resource-card {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* Precise mobile fix for homepage Downloads & Resources section */
@media (max-width: 768px) {
  .downloads-mobile-safe,
  #downloads,
  section[id*="download"],
  section[class*="download"],
  section[class*="resource"] {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .downloads-mobile-safe *,
  #downloads *,
  section[id*="download"] *,
  section[class*="download"] *,
  section[class*="resource"] * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .downloads-mobile-safe .container,
  #downloads .container,
  section[id*="download"] .container,
  section[class*="download"] .container,
  section[class*="resource"] .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden !important;
  }

  .downloads-mobile-safe .grid-2,
  .downloads-mobile-safe .grid-3,
  .downloads-mobile-safe .grid-4,
  .downloads-mobile-safe [class*="grid"],
  #downloads .grid-2,
  #downloads .grid-3,
  #downloads .grid-4,
  #downloads [class*="grid"],
  section[id*="download"] [class*="grid"],
  section[class*="download"] [class*="grid"],
  section[class*="resource"] [class*="grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .downloads-mobile-safe .card,
  .downloads-mobile-safe [class*="card"],
  .downloads-mobile-safe [class*="item"],
  #downloads .card,
  #downloads [class*="card"],
  #downloads [class*="item"],
  section[id*="download"] [class*="card"],
  section[class*="download"] [class*="card"],
  section[class*="resource"] [class*="card"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    float: none !important;
  }

  .downloads-mobile-safe .card-body,
  .downloads-mobile-safe [class*="body"],
  #downloads .card-body,
  #downloads [class*="body"],
  section[id*="download"] [class*="body"],
  section[class*="download"] [class*="body"],
  section[class*="resource"] [class*="body"] {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .downloads-mobile-safe a,
  .downloads-mobile-safe .btn,
  #downloads a,
  #downloads .btn,
  section[id*="download"] a,
  section[class*="download"] a,
  section[class*="resource"] a {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .downloads-mobile-safe img,
  #downloads img,
  section[id*="download"] img,
  section[class*="download"] img,
  section[class*="resource"] img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .downloads-mobile-safe .container,
  #downloads .container,
  section[id*="download"] .container,
  section[class*="download"] .container,
  section[class*="resource"] .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


/* Downloads page Access Resources button mobile fix */
@media (max-width: 768px) {
  .download-page-access-resources-btn,
  .page-downloads .download-page-access-resources-btn,
  .downloads-page .download-page-access-resources-btn,
  body.page-template-page-downloads .download-page-access-resources-btn,
  body[class*="downloads"] .download-page-access-resources-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .download-page-access-resources-btn::before,
  .download-page-access-resources-btn::after {
    max-width: 100% !important;
  }
}

@media (max-width: 420px) {
  .download-page-access-resources-btn {
    font-size: 13px !important;
    letter-spacing: .04em !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


/* Deal Flow Access Resources mobile alignment fix */
@media (max-width: 768px) {
  .deal-flow-access-resources-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  .deal-flow-access-resources-btn::before,
  .deal-flow-access-resources-btn::after {
    max-width: 100% !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 420px) {
  .deal-flow-access-resources-btn {
    font-size: 12px !important;
    letter-spacing: .03em !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}


/* Precise Watch Dan In Action description alignment fix */
.watch-dan-desc {
  display: block !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}


/* Precise Start Your Journey equal image sizing */
.journey-equal-images .journey-card-img,
.journey-equal-images .card-img,
.journey-equal-image-wrap {
  width: 100% !important;
  height: 260px !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  display: block !important;
  background: var(--black-light);
}

.journey-equal-images .journey-card-img img,
.journey-equal-images .card-img img,
.journey-equal-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  min-height: 260px !important;
  max-height: 260px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.journey-equal-images .journey-card-img-contain img {
  object-fit: contain !important;
  padding: 18px !important;
  background: var(--black-light);
}

@media (max-width: 768px) {
  .journey-equal-images .journey-card-img,
  .journey-equal-images .card-img,
  .journey-equal-image-wrap {
    height: 220px !important;
  }

  .journey-equal-images .journey-card-img img,
  .journey-equal-images .card-img img,
  .journey-equal-image-wrap img {
    min-height: 220px !important;
    max-height: 220px !important;
  }
}


/* Header menu button visual enhancement */
@media (min-width: 901px) {
  .nav-links > li > a {
    padding: 14px 18px !important;
    border-radius: 999px;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .055em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  }

  .nav-links > li > a:hover,
  .nav-links > li:hover > a {
    background: rgba(160, 0, 0, .18);
    border-color: rgba(201, 162, 77, .42);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transform: translateY(-1px);
  }

  .nav-links > li > a .chevron {
    margin-left: 6px;
    font-size: 12px;
  }

  .dropdown {
    border: 1px solid rgba(201, 162, 77, .28) !important;
    box-shadow: 0 18px 46px rgba(0,0,0,.42);
  }

  .dropdown li a {
    padding: 13px 18px !important;
    font-size: 13px !important;
    letter-spacing: .045em;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
  }

  .dropdown li a:hover {
    background: rgba(160, 0, 0, .18) !important;
    color: #fff !important;
    padding-left: 24px !important;
  }
}

@media (max-width: 900px) {
  .mobile-nav-item > a,
  .mobile-nav a {
    padding: 15px 18px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }
}


/* Header logo image replacement */
.site-logo-img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 190px;
  object-fit: contain;
}

.logo,
.site-logo,
.site-brand,
.brand {
  display: flex;
  align-items: center;
}

.logo a,
.site-logo a,
.site-brand a,
.brand a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-logo-img {
    height: 40px;
    max-width: 165px;
  }
}

@media (max-width: 480px) {
  .site-logo-img {
    height: 36px;
    max-width: 145px;
  }
}


/* About page profile image alignment */
.about-profile-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px;
  object-fit: cover !important;
  object-position: center top !important;
  display: block;
}

.about-image,
.about-photo,
.about-profile,
.about-portrait,
.about-page-image {
  overflow: hidden;
}

@media (max-width: 768px) {
  .about-profile-image {
    min-height: 320px;
    max-height: 460px;
  }
}


/* Enhanced About page sections */
.about-timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.about-timeline-card {
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201, 162, 77, .28);
  min-height: 260px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
.about-timeline-card:before {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 125px;
  height: 125px;
  border: 1px solid rgba(180,0,0,.32);
  border-radius: 999px;
}
.about-timeline-card span {
  color: var(--red);
  display: block;
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 18px;
}
.about-timeline-card h3 {
  color: #fff;
  font-size: 18px;
  letter-spacing: .04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.about-timeline-card p {
  color: #bdbdbd;
  line-height: 1.7;
  margin: 0;
}
.about-timeline-wide {
  grid-column: 1 / -1;
  min-height: 170px;
}
.about-clean-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.about-clean-list li {
  border-bottom: 1px solid var(--border);
  color: #ddd;
  padding: 10px 0 10px 24px;
  position: relative;
}
.about-clean-list li:before {
  content: "•";
  color: var(--red);
  font-size: 22px;
  left: 0;
  line-height: 1;
  position: absolute;
  top: 9px;
}
@media (max-width: 980px) {
  .about-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .about-timeline-grid {
    grid-template-columns: 1fr;
  }
  .about-timeline-wide {
    grid-column: auto;
  }
}


/* Footer castle location link */
.footer-contact a[href*="guthriecastle"],
footer a[href*="guthriecastle"] {
  color: var(--red);
  text-decoration: none;
}
.footer-contact a[href*="guthriecastle"]:hover,
footer a[href*="guthriecastle"]:hover {
  color: #fff;
}

.cta-popup-btn{
    background:#fff;
    color:#000;
    border:none;
    padding:16px 32px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    cursor:pointer;
    transition:.3s ease;
}
.cta-popup-btn:hover{
    transform:translateY(-2px);
}


/* Involve.me CTA popup button */
.cta-popup-btn {
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 0;
  padding: 16px 34px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.cta-popup-btn:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 520px) {
  .cta-popup-btn {
    width: 100%;
    max-width: 280px;
  }
}


/* Refined Involve.me CTA popup button design */
.cta-popup-btn.involveme_popup,
button.cta-popup-btn {
  background: linear-gradient(135deg, #8b0000 0%, #b00000 48%, #650000 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(201, 162, 77, .55) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255,255,255,.14);
  border-radius: 0 !important;
  padding: 17px 38px !important;
  min-width: 190px;
  font-family: var(--font-condensed, inherit);
  font-size: 14px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: .12em !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.cta-popup-btn.involveme_popup:before,
button.cta-popup-btn:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: translateX(-120%);
  transition: transform .55s ease;
}

.cta-popup-btn.involveme_popup:hover,
button.cta-popup-btn:hover {
  background: linear-gradient(135deg, #a80000 0%, #d00000 48%, #760000 100%) !important;
  border-color: rgba(201, 162, 77, .9) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .45), 0 0 0 1px rgba(201,162,77,.18);
  color: #fff !important;
  transform: translateY(-2px);
}

.cta-popup-btn.involveme_popup:hover:before,
button.cta-popup-btn:hover:before {
  transform: translateX(120%);
}

.cta-popup-btn.involveme_popup:focus-visible,
button.cta-popup-btn:focus-visible {
  outline: 2px solid rgba(201, 162, 77, .9);
  outline-offset: 4px;
}

@media (max-width: 520px) {
  .cta-popup-btn.involveme_popup,
  button.cta-popup-btn {
    width: 100%;
    max-width: 290px;
    padding: 15px 24px !important;
    font-size: 13px !important;
  }
}


/* Restore original CTA button appearance while preserving Involve.me popup behavior */
button.btn-white.involveme_popup {
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  font: inherit;
}

button.btn-white.involveme_popup,
button.btn-white.involveme_popup:hover,
button.btn-white.involveme_popup:focus {
  text-decoration: none !important;
}


/* Bold Involve.me CTA popup button text */
button.btn-white.involveme_popup {
  font-weight: 900 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* Homepage hero image full-color override */
.hero::before,
.hero::after,
.home-hero::before,
.home-hero::after,
.hero-bg::before,
.hero-bg::after,
.hero-overlay,
.home-hero-overlay {
  background: transparent !important;
  opacity: 0 !important;
  display: none !important;
}

.hero,
.home-hero {
  background-blend-mode: normal !important;
}

.hero .hero-bg,
.home-hero .hero-bg {
  filter: none !important;
  opacity: 1 !important;
}


/* QLA page tabbed sections */
.qla-tab-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px auto 18px;
  max-width: 980px;
}
.qla-tab-btn {
  background: linear-gradient(135deg, rgba(12,12,12,.98), rgba(32,32,32,.98));
  border: 1px solid rgba(201, 162, 77, .45);
  color: #fff;
  cursor: pointer;
  padding: 24px 28px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.qla-tab-btn span {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.qla-tab-btn small {
  color: #aaa;
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  margin-top: 8px;
  text-transform: none;
}
.qla-tab-btn:hover,
.qla-tab-btn.is-active {
  border-color: var(--red);
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  transform: translateY(-2px);
}
.qla-tab-btn.is-active {
  background: linear-gradient(135deg, rgba(120,0,0,.46), rgba(22,22,22,.98));
}
.qla-tab-panel {
  display: none;
}
.qla-tab-panel.is-active {
  display: block;
}
.qla-feature-card {
  background:
    radial-gradient(circle at top right, rgba(160,0,0,.22), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(201,162,77,.32);
  padding: 38px 34px;
  align-self: stretch;
}
.qla-feature-number {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 82px;
  font-weight: 900;
  line-height: .9;
  margin-bottom: 18px;
}
.qla-feature-card h3 {
  color: #fff;
  font-size: 26px;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.qla-feature-card p {
  color: #bdbdbd;
  line-height: 1.7;
  margin-bottom: 24px;
}
.qla-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}
.qla-process-card,
.qla-library-highlight > div {
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201,162,77,.26);
  padding: 24px 22px;
  min-height: 220px;
}
.qla-process-card span {
  color: var(--red);
  display: block;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}
.qla-process-card h3,
.qla-library-highlight h3 {
  color: #fff;
  font-size: 16px;
  letter-spacing: .04em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.qla-process-card p,
.qla-library-highlight p {
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.qla-quote-box {
  border-left: 4px solid var(--red);
  margin: 44px auto 0;
  max-width: 760px;
  padding: 24px 30px;
  background: rgba(255,255,255,.04);
}
.qla-quote-box p {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1.35;
  margin: 0 0 8px;
}
.qla-quote-box span {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.qla-library-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}
.qla-library-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .qla-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qla-library-highlight {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .qla-tab-buttons,
  .qla-process-grid {
    grid-template-columns: 1fr;
  }
}


/* QLA For Dummies video lesson cards */
.qla-dummies-video-section {
  margin: 48px 0 42px;
  padding: 42px 0 8px;
  border-top: 1px solid rgba(201, 162, 77, .22);
}

.qla-dummies-video-section .section-header.compact {
  margin-bottom: 28px;
}

.qla-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.qla-video-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018)),
    linear-gradient(180deg, rgba(120,0,0,.08), transparent);
  border: 1px solid rgba(201, 162, 77, .30);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.qla-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(160,0,0,.85);
  box-shadow: 0 24px 60px rgba(0,0,0,.40);
}

.qla-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  border-bottom: 1px solid rgba(201, 162, 77, .24);
}

.qla-video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.qla-video-body {
  padding: 24px 26px 28px;
}

.qla-video-body .card-title {
  margin-bottom: 10px;
}

@media (max-width: 780px) {
  .qla-video-grid {
    grid-template-columns: 1fr;
  }

  .qla-dummies-video-section {
    margin-top: 34px;
    padding-top: 34px;
  }
}


/* Refined cinematic QLA For Dummies video section */
.qla-video-cinema {
  margin: 58px 0 46px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(160, 0, 0, .22), transparent 32%),
    radial-gradient(circle at 86% 72%, rgba(201, 162, 77, .10), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201, 162, 77, .30);
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}

.qla-video-cinema:before {
  content: "WATCH";
  position: absolute;
  right: -10px;
  top: 14px;
  color: rgba(255,255,255,.025);
  font-family: Georgia, serif;
  font-size: clamp(72px, 11vw, 150px);
  font-weight: 900;
  letter-spacing: .08em;
  pointer-events: none;
}

.qla-video-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.qla-video-intro .section-title {
  margin-bottom: 12px;
}

.qla-video-intro .section-desc {
  max-width: 760px;
}

.qla-video-note {
  background: rgba(0,0,0,.34);
  border-left: 3px solid var(--red);
  padding: 18px 20px;
}

.qla-video-note strong {
  color: #fff;
  display: block;
  font-size: 13px;
  letter-spacing: .10em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.qla-video-note span {
  color: #bdbdbd;
  display: block;
  font-size: 14px;
  line-height: 1.6;
}

.qla-video-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.qla-video-feature {
  background: rgba(5,5,5,.88);
  border: 1px solid rgba(201, 162, 77, .36);
  box-shadow: 0 18px 54px rgba(0,0,0,.42);
  overflow: hidden;
}

.qla-video-feature:hover {
  border-color: rgba(160, 0, 0, .90);
}

.qla-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(120,0,0,.35), rgba(0,0,0,.85));
  border-bottom: 1px solid rgba(201, 162, 77, .25);
}

.qla-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.qla-video-body {
  padding: 24px 28px 28px;
}

.qla-video-body .card-title {
  color: #fff;
  margin-bottom: 8px;
}

.qla-video-body .card-text {
  color: #bdbdbd;
  line-height: 1.65;
}

.qla-video-side {
  display: grid;
  gap: 20px;
}

.qla-video-feature-small .qla-video-body {
  padding: 20px 22px 22px;
}

.qla-video-guidance {
  background: linear-gradient(145deg, rgba(160,0,0,.20), rgba(255,255,255,.025));
  border: 1px solid rgba(201, 162, 77, .26);
  padding: 26px 24px;
}

.qla-video-guidance h3 {
  color: #fff;
  font-size: 17px;
  letter-spacing: .08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.qla-video-guidance ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qla-video-guidance li {
  color: #cfcfcf;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 0 10px 22px;
  position: relative;
}

.qla-video-guidance li:before {
  content: "•";
  color: var(--red);
  font-size: 22px;
  left: 0;
  position: absolute;
  top: 7px;
}

.qla-video-guidance li:last-child {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .qla-video-cinema {
    padding: 30px 24px;
  }

  .qla-video-intro,
  .qla-video-showcase {
    grid-template-columns: 1fr;
  }

  .qla-video-note {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .qla-video-cinema {
    padding: 24px 16px;
    margin-left: -2px;
    margin-right: -2px;
  }

  .qla-video-body {
    padding: 20px;
  }
}


/* QLA book subpages */
.qla-book-cover-card {
  background:
    radial-gradient(circle at top right, rgba(160,0,0,.22), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(201,162,77,.34);
  padding: 42px 36px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 22px 62px rgba(0,0,0,.35);
}
.qla-book-cover-card.red-card {
  background:
    radial-gradient(circle at top left, rgba(201,162,77,.10), transparent 34%),
    linear-gradient(145deg, rgba(140,0,0,.34), rgba(15,15,15,.96));
}
.qla-book-cover-number {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: clamp(70px, 10vw, 120px);
  font-weight: 900;
  line-height: .9;
  margin-bottom: 22px;
}
.qla-book-cover-card h3 {
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.qla-book-cover-card p {
  color: #bdbdbd;
  line-height: 1.7;
  margin-bottom: 26px;
}
.qla-book-grid .card {
  min-height: 260px;
}
.qla-book-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.qla-book-points div {
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201,162,77,.26);
  padding: 26px 28px;
}
.qla-book-points strong {
  color: #fff;
  display: block;
  font-size: 17px;
  letter-spacing: .06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.qla-book-points span {
  color: #bdbdbd;
  line-height: 1.7;
}
.qla-library-highlight a,
.qla-library-accordion a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}
.qla-library-highlight a:hover,
.qla-library-accordion a:hover {
  color: #fff;
}
@media (max-width: 780px) {
  .qla-book-points {
    grid-template-columns: 1fr;
  }
  .qla-book-cover-card {
    min-height: auto;
  }
}


/* QLA book subpages - integrated content */
.qla-book-cover-card {
  background:
    radial-gradient(circle at top right, rgba(160,0,0,.22), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(201,162,77,.34);
  padding: 42px 36px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 22px 62px rgba(0,0,0,.35);
}
.qla-book-cover-card.red-card {
  background:
    radial-gradient(circle at top left, rgba(201,162,77,.10), transparent 34%),
    linear-gradient(145deg, rgba(140,0,0,.34), rgba(15,15,15,.96));
}
.qla-book-cover-number {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: clamp(70px, 10vw, 120px);
  font-weight: 900;
  line-height: .9;
  margin-bottom: 22px;
}
.qla-book-cover-card h3 {
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.qla-book-cover-card p {
  color: #bdbdbd;
  line-height: 1.7;
  margin-bottom: 26px;
}
.qla-book-grid .card {
  min-height: 260px;
}
.qla-book-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.qla-book-points div,
.qla-achievement-strip div {
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201,162,77,.26);
  padding: 26px 28px;
}
.qla-book-points strong,
.qla-achievement-strip strong {
  color: #fff;
  display: block;
  font-size: 17px;
  letter-spacing: .06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.qla-book-points span,
.qla-achievement-strip span {
  color: #bdbdbd;
  line-height: 1.7;
}
.qla-achievement-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.qla-achievement-strip strong {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}
.qla-library-highlight a,
.qla-library-accordion a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}
.qla-library-highlight a:hover,
.qla-library-accordion a:hover {
  color: #fff;
}
@media (max-width: 980px) {
  .qla-achievement-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  .qla-book-points,
  .qla-achievement-strip {
    grid-template-columns: 1fr;
  }
  .qla-book-cover-card {
    min-height: auto;
  }
}


/* Recreated full e-book sections inside QLA Library */
.qla-library-ebook-vault {
  margin: 56px 0 46px;
  padding: 46px 42px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(160, 0, 0, .20), transparent 32%),
    radial-gradient(circle at 88% 72%, rgba(201, 162, 77, .10), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201, 162, 77, .32);
  box-shadow: 0 24px 70px rgba(0,0,0,.36);
}

.qla-library-ebook-vault:before {
  content: "QLA";
  position: absolute;
  right: -18px;
  top: 12px;
  color: rgba(255,255,255,.025);
  font-family: Georgia, serif;
  font-size: clamp(90px, 13vw, 190px);
  font-weight: 900;
  letter-spacing: .08em;
  pointer-events: none;
}

.qla-library-ebook-vault > * {
  position: relative;
  z-index: 1;
}

.qla-recreated-book {
  background: rgba(5,5,5,.82);
  border: 1px solid rgba(201, 162, 77, .34);
  box-shadow: 0 22px 60px rgba(0,0,0,.36);
  margin-top: 38px;
  overflow: hidden;
}

.qla-recreated-book + .qla-recreated-book {
  margin-top: 54px;
}

.qla-recreated-book-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 34px 38px;
  background:
    linear-gradient(135deg, rgba(22,22,22,.98), rgba(35,35,35,.92)),
    linear-gradient(90deg, rgba(160,0,0,.22), transparent);
  border-bottom: 1px solid rgba(201,162,77,.25);
}

.qla-book-mark {
  align-items: center;
  background: rgba(0,0,0,.40);
  border: 1px solid rgba(201,162,77,.48);
  color: var(--red);
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 900;
  height: 82px;
  justify-content: center;
  line-height: 1;
  width: 82px;
}

.qla-recreated-book-hero h2 {
  color: #fff;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.05;
  margin: 8px 0 10px;
  text-transform: uppercase;
}

.qla-recreated-book-hero p {
  color: #bdbdbd;
  margin: 0;
}

.qla-recreated-book-content {
  padding: 46px 54px;
  color: #d5d5d5;
  font-size: 16px;
  line-height: 1.9;
  max-width: 100%;
}

.qla-recreated-book-content > *:first-child {
  margin-top: 0 !important;
}

.qla-recreated-book-content h1,
.qla-recreated-book-content h2,
.qla-recreated-book-content h3,
.qla-recreated-book-content h4,
.qla-recreated-book-content h5,
.qla-recreated-book-content h6 {
  color: #fff;
  line-height: 1.18;
  margin: 38px 0 18px;
  text-transform: uppercase;
}

.qla-recreated-book-content h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.qla-recreated-book-content h2 {
  border-left: 4px solid var(--red);
  font-size: clamp(26px, 3.5vw, 40px);
  padding-left: 20px;
}

.qla-recreated-book-content h3 {
  color: var(--red);
  font-size: 24px;
}

.qla-recreated-book-content p {
  color: #d2d2d2;
  margin: 0 0 20px;
}

.qla-recreated-book-content ul,
.qla-recreated-book-content ol {
  margin: 0 0 26px 24px;
  padding: 0;
}

.qla-recreated-book-content li {
  color: #d2d2d2;
  margin-bottom: 10px;
}

.qla-recreated-book-content a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.qla-recreated-book-content a:hover {
  color: #fff;
}

.qla-recreated-book-content blockquote {
  background: linear-gradient(145deg, rgba(160,0,0,.18), rgba(255,255,255,.025));
  border-left: 4px solid var(--red);
  color: #fff;
  margin: 32px 0;
  padding: 26px 30px;
}

.qla-recreated-book-content img {
  max-width: 100%;
  height: auto;
}

.qla-recreated-book-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.qla-recreated-book-content br + br {
  display: none;
}

@media (max-width: 860px) {
  .qla-library-ebook-vault {
    padding: 30px 18px;
  }

  .qla-recreated-book-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 28px 22px;
  }

  .qla-recreated-book-hero .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .qla-book-mark {
    height: 64px;
    width: 64px;
    font-size: 34px;
  }

  .qla-recreated-book-content {
    padding: 34px 24px;
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .qla-recreated-book-hero {
    grid-template-columns: 1fr;
  }
}


/* Clean recreated QLA Library digital book sections */
.qla-library-books-clean {
  margin: 56px 0 46px;
  padding: 46px 42px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(160, 0, 0, .20), transparent 32%),
    radial-gradient(circle at 88% 72%, rgba(201, 162, 77, .10), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201, 162, 77, .32);
  box-shadow: 0 24px 70px rgba(0,0,0,.36);
}

.qla-library-books-clean:before {
  content: "LIBRARY";
  position: absolute;
  right: -18px;
  top: 12px;
  color: rgba(255,255,255,.025);
  font-family: Georgia, serif;
  font-size: clamp(80px, 12vw, 170px);
  font-weight: 900;
  letter-spacing: .08em;
  pointer-events: none;
}

.qla-library-books-clean > * {
  position: relative;
  z-index: 1;
}

.qla-clean-book {
  background: rgba(5,5,5,.82);
  border: 1px solid rgba(201, 162, 77, .34);
  box-shadow: 0 22px 60px rgba(0,0,0,.36);
  margin-top: 38px;
  overflow: hidden;
}

.qla-clean-book + .qla-clean-book {
  margin-top: 56px;
}

.qla-clean-book-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 36px 40px;
  background:
    linear-gradient(135deg, rgba(22,22,22,.98), rgba(35,35,35,.92)),
    linear-gradient(90deg, rgba(160,0,0,.22), transparent);
  border-bottom: 1px solid rgba(201,162,77,.25);
}

.qla-book-mark {
  align-items: center;
  background: rgba(0,0,0,.40);
  border: 1px solid rgba(201,162,77,.48);
  color: var(--red);
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 900;
  height: 82px;
  justify-content: center;
  line-height: 1;
  width: 82px;
}

.qla-clean-book-copy h2 {
  color: #fff;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.05;
  margin: 8px 0 10px;
  text-transform: uppercase;
}

.qla-clean-book-copy p {
  color: #bdbdbd;
  max-width: 850px;
  margin: 0;
}

.qla-book-reading-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
}

.qla-book-nav {
  background: rgba(0,0,0,.28);
  border-right: 1px solid rgba(201,162,77,.20);
  padding: 34px 24px;
  position: sticky;
  top: 100px;
  align-self: start;
}

.qla-book-nav strong {
  color: #fff;
  display: block;
  font-size: 13px;
  letter-spacing: .12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.qla-book-nav a {
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #aaa;
  display: block;
  font-size: 13px;
  line-height: 1.35;
  padding: 11px 0;
  text-decoration: none;
}

.qla-book-nav a:hover {
  color: #fff;
}

.qla-book-content-clean {
  padding: 42px 52px 54px;
}

.qla-book-chapter {
  padding: 18px 0 34px;
  border-bottom: 1px solid rgba(201,162,77,.16);
}

.qla-book-chapter:last-child {
  border-bottom: 0;
}

.qla-book-chapter h3 {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  margin: 0 0 18px;
  text-transform: uppercase;
  border-left: 4px solid var(--red);
  padding-left: 18px;
}

.qla-book-chapter p {
  color: #d0d0d0;
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 18px;
}

.qla-book-chapter blockquote,
.qla-book-callout {
  background: linear-gradient(145deg, rgba(160,0,0,.18), rgba(255,255,255,.025));
  border-left: 4px solid var(--red);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
  margin: 28px 0;
  padding: 24px 28px;
}

.qla-principle-grid,
.qla-milestone-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.qla-milestone-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qla-principle-grid div,
.qla-milestone-row div {
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201,162,77,.24);
  padding: 22px 20px;
}

.qla-principle-grid strong,
.qla-milestone-row strong {
  color: #fff;
  display: block;
  font-size: 15px;
  letter-spacing: .06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.qla-principle-grid span,
.qla-milestone-row span {
  color: #bdbdbd;
  line-height: 1.55;
}

.qla-credo-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.qla-credo-list div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(201,162,77,.20);
  padding: 18px 20px;
}

.qla-credo-list span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 900;
}

.qla-credo-list p {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

@media (max-width: 980px) {
  .qla-library-books-clean {
    padding: 30px 18px;
  }

  .qla-book-reading-layout {
    grid-template-columns: 1fr;
  }

  .qla-book-nav {
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(201,162,77,.20);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .qla-book-nav strong {
    grid-column: 1 / -1;
  }

  .qla-principle-grid,
  .qla-milestone-row {
    grid-template-columns: 1fr;
  }

  .qla-book-content-clean {
    padding: 32px 24px 42px;
  }
}

@media (max-width: 560px) {
  .qla-clean-book-hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .qla-book-nav {
    grid-template-columns: 1fr;
  }

  .qla-book-mark {
    height: 64px;
    width: 64px;
    font-size: 34px;
  }
}


/* QLA Library book toggle buttons */
.qla-book-toggle-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 28px;
}

.qla-book-toggle-btn {
  appearance: none;
  background:
    linear-gradient(135deg, rgba(14,14,14,.98), rgba(34,34,34,.94)),
    linear-gradient(90deg, rgba(160,0,0,.16), transparent);
  border: 1px solid rgba(201, 162, 77, .38);
  color: #fff;
  cursor: pointer;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
  width: 100%;
}

.qla-book-toggle-btn:hover,
.qla-book-toggle-btn.is-active {
  transform: translateY(-3px);
  border-color: rgba(160, 0, 0, .9);
  box-shadow: 0 20px 50px rgba(0,0,0,.38);
}

.qla-book-toggle-btn.is-active {
  background:
    linear-gradient(135deg, rgba(120,0,0,.38), rgba(20,20,20,.98)),
    linear-gradient(90deg, rgba(201,162,77,.10), transparent);
}

.qla-book-toggle-num {
  align-items: center;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(201,162,77,.50);
  color: var(--red);
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  line-height: 1;
  width: 58px;
}

.qla-book-toggle-copy strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.15;
  text-transform: uppercase;
}

.qla-book-toggle-copy small {
  color: #a9a9a9;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: 7px;
  text-transform: uppercase;
}

.qla-clean-book[data-book-panel] {
  display: none;
  animation: qlaBookReveal .28s ease both;
}

.qla-clean-book[data-book-panel].is-active {
  display: block;
}

@keyframes qlaBookReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qla-library-books-clean .section-header.compact {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .qla-book-toggle-controls {
    grid-template-columns: 1fr;
  }

  .qla-book-toggle-btn {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 20px 18px;
  }

  .qla-book-toggle-copy strong {
    font-size: 16px;
  }
}


/* QLA Seminar Videos accordion library */
.qla-seminar-video-library {
  margin-top: 8px;
}

.qla-seminar-video-intro {
  border-left: 4px solid var(--red);
  background: rgba(255,255,255,.035);
  padding: 22px 26px;
  margin-bottom: 26px;
}

.qla-seminar-video-intro h3 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.qla-seminar-video-intro p {
  color: #bbb;
  margin: 0;
  line-height: 1.65;
}

.qla-seminar-video-collections {
  display: grid;
  gap: 24px;
}

.qla-video-collection {
  background:
    radial-gradient(circle at top right, rgba(160,0,0,.14), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201,162,77,.26);
  padding: 24px;
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
}

.qla-video-collection-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.qla-video-collection-head > span {
  align-items: center;
  border: 1px solid rgba(201,162,77,.48);
  color: var(--red);
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.qla-video-collection-head h4 {
  color: #fff;
  font-size: 20px;
  letter-spacing: .06em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.qla-video-collection-head p {
  color: #aaa;
  font-size: 13px;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
}

.qla-featured-video-frame {
  aspect-ratio: 16 / 9;
  background: #050505;
  border: 1px solid rgba(201,162,77,.22);
  margin-bottom: 18px;
  overflow: hidden;
}

.qla-featured-video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.qla-video-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.qla-video-link {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.qla-video-link:hover {
  background: rgba(160,0,0,.18);
  border-color: rgba(201,162,77,.42);
  transform: translateY(-2px);
}

.qla-video-link span {
  display: block;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.qla-video-link small {
  color: #aaa;
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .qla-video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .qla-video-collection {
    padding: 18px;
  }

  .qla-video-list {
    grid-template-columns: 1fr;
  }

  .qla-video-collection-head {
    align-items: flex-start;
  }
}


/* QLA inline video playback buttons */
.qla-video-play-btn {
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.qla-video-play-btn.is-active {
  background: rgba(160,0,0,.24);
  border-color: rgba(201,162,77,.58);
  box-shadow: inset 3px 0 0 var(--red);
}

.qla-video-play-btn.is-active small {
  color: #fff;
}

.qla-video-play-btn:focus-visible {
  outline: 2px solid rgba(201,162,77,.75);
  outline-offset: 3px;
}


/* Standalone QLA Digital Video Experience */
.qla-video-experience {
  margin: 56px 0 46px;
  padding: 46px 42px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(160, 0, 0, .20), transparent 32%),
    radial-gradient(circle at 88% 72%, rgba(201, 162, 77, .10), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(201, 162, 77, .32);
  box-shadow: 0 24px 70px rgba(0,0,0,.36);
}

.qla-video-experience:before {
  content: "VIDEOS";
  position: absolute;
  right: -18px;
  top: 12px;
  color: rgba(255,255,255,.025);
  font-family: Georgia, serif;
  font-size: clamp(78px, 12vw, 165px);
  font-weight: 900;
  letter-spacing: .08em;
  pointer-events: none;
}

.qla-video-experience > * {
  position: relative;
  z-index: 1;
}

.qla-video-experience-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 28px;
}

.qla-video-experience-tab {
  appearance: none;
  background:
    linear-gradient(135deg, rgba(14,14,14,.98), rgba(34,34,34,.94)),
    linear-gradient(90deg, rgba(160,0,0,.16), transparent);
  border: 1px solid rgba(201, 162, 77, .38);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .055em;
  padding: 18px 20px;
  text-align: left;
  text-transform: uppercase;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.qla-video-experience-tab span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 900;
}

.qla-video-experience-tab:hover,
.qla-video-experience-tab.is-active {
  transform: translateY(-3px);
  border-color: rgba(160, 0, 0, .9);
  box-shadow: 0 20px 50px rgba(0,0,0,.38);
  background:
    linear-gradient(135deg, rgba(120,0,0,.38), rgba(20,20,20,.98)),
    linear-gradient(90deg, rgba(201,162,77,.10), transparent);
}

.qla-video-experience-panel {
  display: none;
  background: rgba(5,5,5,.82);
  border: 1px solid rgba(201, 162, 77, .34);
  box-shadow: 0 22px 60px rgba(0,0,0,.36);
  padding: 28px;
  animation: qlaVideoExperienceReveal .25s ease both;
}

.qla-video-experience-panel.is-active {
  display: block;
}

.qla-video-experience-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  border-bottom: 1px solid rgba(201,162,77,.20);
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.qla-video-experience-head h3 {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 6px;
  text-transform: uppercase;
}

.qla-video-experience-head p {
  color: #aaa;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
}

.qla-video-player-frame {
  aspect-ratio: 16 / 9;
  background: #050505;
  border: 1px solid rgba(201,162,77,.26);
  margin-bottom: 18px;
  overflow: hidden;
}

.qla-video-player-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.qla-video-selector {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.qla-video-selector button {
  appearance: none;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 12px 14px;
  text-align: left;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.qla-video-selector button:hover,
.qla-video-selector button.is-active {
  background: rgba(160,0,0,.24);
  border-color: rgba(201,162,77,.58);
  box-shadow: inset 3px 0 0 var(--red);
  transform: translateY(-2px);
}

@keyframes qlaVideoExperienceReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .qla-video-experience {
    padding: 30px 18px;
  }

  .qla-video-experience-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qla-video-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .qla-video-experience-tabs,
  .qla-video-selector {
    grid-template-columns: 1fr;
  }

  .qla-video-experience-panel {
    padding: 20px;
  }
}


/* Video & Playlists page - convert category tabs into premium buttons */
.page-template-page-videos .tab-nav,
body.page-template-page-videos .tab-nav,
.tabs-component .tab-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border-bottom: 0 !important;
  margin-bottom: 42px;
}

.page-template-page-videos .tab-btn,
body.page-template-page-videos .tab-btn,
.tabs-component .tab-btn {
  background:
    linear-gradient(135deg, rgba(14,14,14,.98), rgba(34,34,34,.94)),
    linear-gradient(90deg, rgba(160,0,0,.12), transparent) !important;
  border: 1px solid rgba(201, 162, 77, .34) !important;
  border-bottom: 1px solid rgba(201, 162, 77, .34) !important;
  color: #fff !important;
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  margin: 0 !important;
  min-height: 64px;
  padding: 18px 20px !important;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.page-template-page-videos .tab-btn:hover,
body.page-template-page-videos .tab-btn:hover,
.tabs-component .tab-btn:hover {
  border-color: rgba(201, 162, 77, .72) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.32);
  color: #fff !important;
  transform: translateY(-3px);
}

.page-template-page-videos .tab-btn.active,
body.page-template-page-videos .tab-btn.active,
.tabs-component .tab-btn.active {
  background:
    linear-gradient(135deg, rgba(145,0,0,.42), rgba(20,20,20,.98)),
    linear-gradient(90deg, rgba(201,162,77,.12), transparent) !important;
  border-color: rgba(160, 0, 0, .95) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.38), inset 0 -3px 0 var(--red);
  color: #fff !important;
}

.page-template-page-videos .tab-btn.active:after,
body.page-template-page-videos .tab-btn.active:after,
.tabs-component .tab-btn.active:after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 3px;
  background: var(--red);
}

@media (max-width: 980px) {
  .page-template-page-videos .tab-nav,
  body.page-template-page-videos .tab-nav,
  .tabs-component .tab-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-template-page-videos .tab-nav,
  body.page-template-page-videos .tab-nav,
  .tabs-component .tab-nav {
    grid-template-columns: 1fr;
  }

  .page-template-page-videos .tab-btn,
  body.page-template-page-videos .tab-btn,
  .tabs-component .tab-btn {
    min-height: 56px;
    padding: 15px 16px !important;
  }
}


/* Strong override: Videos & Playlists tab controls as actual buttons */
.video-page-button-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  border-bottom: 0 !important;
  margin-bottom: 42px !important;
}

.video-page-button-tabs .tab-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: linear-gradient(135deg, #111 0%, #242424 100%) !important;
  border: 1px solid rgba(201, 162, 77, .45) !important;
  border-radius: 0 !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.24) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 18px 22px !important;
  position: relative !important;
  text-align: center !important;
  width: 100% !important;
}

.video-page-button-tabs .tab-btn:hover {
  background: linear-gradient(135deg, #171717 0%, #2b2b2b 100%) !important;
  border-color: rgba(201, 162, 77, .95) !important;
  color: #fff !important;
  transform: translateY(-3px) !important;
}

.video-page-button-tabs .tab-btn.active {
  background: linear-gradient(135deg, rgba(150,0,0,.72) 0%, #171717 100%) !important;
  border-color: var(--red) !important;
  color: #fff !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.36), inset 0 -4px 0 var(--red) !important;
}

.video-page-button-tabs .tab-btn.active:after {
  display: none !important;
}

@media (max-width: 980px) {
  .video-page-button-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .video-page-button-tabs {
    grid-template-columns: 1fr !important;
  }

  .video-page-button-tabs .tab-btn {
    min-height: 58px !important;
  }
}


/* Video page category buttons - direct markup replacement */
.video-category-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 0 44px !important;
  border: 0 !important;
}

.video-category-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: linear-gradient(135deg, #101010 0%, #252525 100%) !important;
  border: 1px solid rgba(201, 162, 77, .48) !important;
  color: #fff !important;
  cursor: pointer !important;
  min-height: 72px !important;
  padding: 18px 22px !important;
  text-align: center !important;
  text-transform: uppercase !important;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease !important;
  width: 100% !important;
}

.video-category-btn span {
  display: block !important;
  font-family: var(--font-condensed, Arial, sans-serif) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: .10em !important;
  line-height: 1.2 !important;
}

.video-category-btn:hover {
  border-color: rgba(201, 162, 77, .95) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.34) !important;
  transform: translateY(-3px) !important;
}

.video-category-btn.active {
  background: linear-gradient(135deg, rgba(150,0,0,.80) 0%, #161616 100%) !important;
  border-color: var(--red) !important;
  box-shadow: 0 20px 52px rgba(0,0,0,.42), inset 0 -4px 0 var(--red) !important;
  color: #fff !important;
}

@media (max-width: 980px) {
  .video-category-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .video-category-buttons {
    grid-template-columns: 1fr !important;
  }

  .video-category-btn {
    min-height: 58px !important;
  }
}

/* ==================================================
   QLA Audio Library - premium redesign
   Added directly to root style.css because WordPress enqueues get_stylesheet_uri().
   ================================================== */
/* QLA audio library - redesigned to match the premium QLA theme */
.qla-audio-library {
  position: relative;
  margin-top: clamp(54px, 7vw, 96px);
  padding: clamp(42px, 6vw, 78px) clamp(18px, 4vw, 42px);
  background:
    radial-gradient(circle at 12% 0%, rgba(169,0,0,0.24), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(135deg, #111 0%, #070707 56%, #120000 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 3px solid var(--red);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(0,0,0,0.44);
  overflow: hidden;
}

.qla-audio-library::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 68%);
  opacity: 0.42;
}

.qla-audio-library > * {
  position: relative;
  z-index: 1;
}

.qla-audio-library .section-header {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.qla-audio-library .section-desc {
  max-width: 720px;
}

.qla-audio-grid {
  counter-reset: qlaAudio;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(34px, 4vw, 52px);
  align-items: stretch;
}

.qla-audio-column {
  counter-increment: qlaAudio;
  position: relative;
  min-width: 0;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    linear-gradient(135deg, rgba(22,22,22,0.98), rgba(8,8,8,0.98));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 22px 48px rgba(0,0,0,0.34);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.qla-audio-column::before {
  content: counter(qlaAudio, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.055);
}

.qla-audio-column::after {
  content: "Audio Archive";
  position: absolute;
  left: 24px;
  top: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid rgba(169,0,0,0.5);
  border-radius: 999px;
  background: rgba(169,0,0,0.14);
  color: var(--white-dim);
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qla-audio-column:hover {
  transform: translateY(-4px);
  border-color: rgba(169,0,0,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 28px 62px rgba(0,0,0,0.46), 0 0 32px rgba(169,0,0,0.12);
}

.qla-audio-column > div:first-child {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 38px 0 22px;
}

.qla-audio-column div[style*="clear"] {
  display: none !important;
}

.audiotitle {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: calc(100% - 70px);
  padding: 0 !important;
  margin: 0 !important;
  color: var(--white);
  font-family: var(--font-condensed);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.audiodropdown {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.audiodropdown::before {
  content: "Choose track";
  color: var(--white-muted);
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.audiodropdown .fa,
.audiodropdown i {
  display: none !important;
}

.audiodropdown select {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #090909;
  color: var(--white);
  padding: 0 42px 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  outline: none;
  appearance: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.audiodropdown select:focus {
  border-color: rgba(169,0,0,0.85);
  box-shadow: 0 0 0 4px rgba(169,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}

.AudioPlayer {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  margin: auto 0 0;
  padding: 0;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  min-height: 46px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.CurrentlyPlaying,
.qla-audio-column:has(.CurrentlyPlaying) {
  border-color: rgba(169,0,0,0.75);
  box-shadow: 0 0 0 4px rgba(169,0,0,0.12), 0 24px 58px rgba(0,0,0,0.42), 0 0 34px rgba(169,0,0,0.20);
}

@media (max-width: 1180px) {
  .qla-audio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .qla-audio-library {
    border-radius: 22px;
  }

  .qla-audio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .qla-audio-library {
    margin-left: -2px;
    margin-right: -2px;
    padding: 36px 14px;
  }

  .qla-audio-grid {
    gap: 16px;
  }

  .qla-audio-column {
    min-height: 0;
    padding: 20px;
    border-radius: 18px;
  }

  .qla-audio-column::before {
    top: 18px;
    right: 18px;
    font-size: 44px;
  }

  .qla-audio-column::after {
    left: 20px;
    top: 20px;
  }

  .qla-audio-column > div:first-child {
    margin-top: 42px;
  }

  .audiotitle {
    max-width: calc(100% - 48px);
    font-size: 22px;
  }

  .audiodropdown select {
    height: 46px;
  }
}

/* QLA Audio Archive grid correction - v13.3.2
   Keeps every audio card the same size and forces a compact 3-up desktop layout. */
.qla-audio-library {
  padding-top: clamp(46px, 5vw, 72px) !important;
  padding-bottom: clamp(46px, 5vw, 72px) !important;
}

.qla-audio-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  margin-top: 30px !important;
}

.qla-audio-column {
  grid-column: auto / span 1 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 188px !important;
  padding: 20px !important;
  border-radius: 18px !important;
}

.qla-audio-column > div:first-child {
  margin: 34px 0 16px !important;
  gap: 13px !important;
}

.qla-audio-column::before {
  top: 15px !important;
  right: 18px !important;
  font-size: 48px !important;
}

.qla-audio-column::after {
  left: 20px !important;
  top: 18px !important;
  min-height: 22px !important;
  padding: 2px 9px !important;
  font-size: 10px !important;
}

.audiotitle {
  max-width: calc(100% - 56px) !important;
  font-size: clamp(18px, 1.55vw, 24px) !important;
  line-height: 1.02 !important;
  letter-spacing: 0.025em !important;
}

.audiodropdown {
  gap: 6px !important;
}

.audiodropdown::before {
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
}

.audiodropdown select {
  height: 40px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  padding-left: 12px !important;
}

.AudioPlayer {
  min-height: 40px !important;
  height: 40px !important;
}

@media (max-width: 980px) {
  .qla-audio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .qla-audio-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .qla-audio-column {
    min-height: 0 !important;
  }
}

/* ==================================================
   QLA Audio Library - ACTUAL grid fix
   The restored legacy audio markup is split into multiple wrapper rows
   (.qla-audio-grid + repeated .contentcontainer). Those wrappers caused
   every third item to become full width. This makes the audio section
   itself the grid and lets all cards flow as equal grid items.
   ================================================== */
.qla-audio-library {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.qla-audio-library .section-header {
  grid-column: 1 / -1 !important;
  margin-bottom: 12px !important;
}

.qla-audio-library > .qla-audio-grid,
.qla-audio-library > .contentcontainer {
  display: contents !important;
}

.qla-audio-library .qla-audio-column {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
  grid-column: auto !important;
}

.qla-audio-library .qla-audio-column:empty,
.qla-audio-library .qla-audio-column:not(:has(audio)) {
  display: none !important;
}

.qla-audio-library .qla-audio-column > div:first-child {
  margin-bottom: 16px !important;
}

.qla-audio-library .audiotitle {
  font-size: clamp(21px, 1.45vw, 27px) !important;
}

.qla-audio-library audio,
.qla-audio-library .AudioPlayer {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin-top: auto !important;
}

@media (max-width: 1100px) {
  .qla-audio-library {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .qla-audio-library {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* QLA Audio Archive - modern accordion + shared player redesign */
.qla-audio-library-modern {
  padding: 70px 0 110px;
  background: radial-gradient(circle at top, rgba(176, 15, 24, 0.16), transparent 35%), #050505;
  position: relative;
}

.qla-audio-library-modern .section-desc {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.qla-audio-toolbar {
  max-width: 980px;
  margin: 34px auto 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.qla-audio-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0 22px;
  font-size: 15px;
  outline: none;
}

.qla-audio-search::placeholder {
  color: rgba(255,255,255,0.58);
}

.qla-audio-search:focus {
  border-color: rgba(218, 32, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(218, 32, 42, 0.16);
}

.qla-audio-count {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.qla-audio-series-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.qla-audio-series-card {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  overflow: hidden;
}

.qla-audio-card-head {
  appearance: none;
  width: 100%;
  min-height: 190px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 24px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.qla-audio-card-head:hover,
.qla-audio-card-head:focus-visible {
  background: rgba(218, 32, 42, 0.09);
  outline: none;
}

.qla-audio-card-kicker {
  color: #da202a;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 12px;
}

.qla-audio-card-title {
  font-size: 21px;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 16px;
}

.qla-audio-card-meta {
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  margin-top: auto;
}

.qla-audio-card-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 18px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #da202a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.qla-audio-card-head[aria-expanded="true"] .qla-audio-card-toggle {
  background: rgba(255,255,255,0.13);
}

.qla-audio-card-head[aria-expanded="true"] .qla-audio-card-toggle {
  font-size: 0;
}

.qla-audio-card-head[aria-expanded="true"] .qla-audio-card-toggle::after {
  content: "Hide Tracks";
  font-size: 13px;
}

.qla-audio-track-panel {
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.34);
  max-height: 360px;
  overflow: auto;
}

.qla-audio-track-list {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.qla-audio-track {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  min-height: 46px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.qla-audio-track:hover,
.qla-audio-track:focus-visible,
.qla-audio-track.is-playing {
  border-color: rgba(218,32,42,0.85);
  background: rgba(218,32,42,0.13);
  outline: none;
}

.qla-audio-track-number {
  color: rgba(255,255,255,0.48);
  font-size: 12px;
  font-weight: 800;
}

.qla-audio-track-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
}

.qla-audio-track-play {
  color: #da202a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.qla-global-player {
  position: sticky;
  bottom: 0;
  z-index: 20;
  border-top: 1px solid rgba(255,255,255,0.14);
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 -20px 50px rgba(0,0,0,0.45);
}

.qla-global-player-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 520px) auto;
  gap: 18px;
  align-items: center;
}

.qla-global-player-label {
  display: block;
  color: #da202a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 4px;
}

.qla-global-player-copy strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
}

.qla-global-player audio {
  width: 100%;
  height: 40px;
}

.qla-global-download {
  color: #fff;
  background: #da202a;
  border-radius: 999px;
  padding: 11px 16px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 1024px) {
  .qla-audio-series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .qla-global-player-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .qla-audio-library-modern {
    padding: 50px 0 90px;
  }
  .qla-audio-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .qla-audio-series-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .qla-audio-card-head {
    min-height: 150px;
    padding: 20px;
  }
  .qla-audio-card-title {
    font-size: 19px;
  }
  .qla-global-player {
    position: static;
  }
}


/* QLA Audio Archive - refined premium visual pass */
.qla-audio-library-modern {
  padding: 82px 18px 120px !important;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.96), rgba(7,7,7,1) 42%, rgba(0,0,0,0.98)),
    radial-gradient(circle at 50% 0, rgba(218,32,42,0.18), transparent 38%) !important;
  overflow: hidden;
}

.qla-audio-library-modern .eyebrow,
.qla-audio-library-modern .section-title,
.qla-audio-library-modern .section-desc {
  position: relative;
  z-index: 1;
}

.qla-audio-library-modern .section-title {
  margin-bottom: 12px !important;
}

.qla-audio-library-modern .section-desc {
  color: rgba(255,255,255,0.72) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

.qla-audio-toolbar {
  max-width: 1180px !important;
  margin: 34px auto 24px !important;
  padding: 12px !important;
  border: 1px solid rgba(255,255,255,0.11) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.045) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.32) !important;
}

.qla-audio-search {
  min-height: 50px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(0,0,0,0.42) !important;
  padding: 0 18px !important;
  font-weight: 700 !important;
}

.qla-audio-count {
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  border-left: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.76) !important;
  white-space: nowrap !important;
}

.qla-audio-series-grid {
  counter-reset: audioSeries;
  max-width: 1180px !important;
  gap: 18px !important;
}

.qla-audio-series-card {
  counter-increment: audioSeries;
  position: relative;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.072), rgba(255,255,255,0.028)) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.34) !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

.qla-audio-series-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #da202a, rgba(218,32,42,0.12));
  z-index: 2;
}

.qla-audio-series-card::after {
  content: counter(audioSeries, decimal-leading-zero);
  position: absolute;
  right: 18px;
  top: 20px;
  color: rgba(255,255,255,0.045);
  font-family: Georgia, serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.qla-audio-series-card:hover,
.qla-audio-series-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(218,32,42,0.42) !important;
  box-shadow: 0 22px 56px rgba(0,0,0,0.46) !important;
}

.qla-audio-card-head {
  min-height: 158px !important;
  padding: 22px !important;
  position: relative;
  z-index: 3;
}

.qla-audio-card-head:hover,
.qla-audio-card-head:focus-visible {
  background: linear-gradient(180deg, rgba(218,32,42,0.10), rgba(255,255,255,0.015)) !important;
}

.qla-audio-card-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: max-content !important;
  margin-bottom: 13px !important;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  background: rgba(218,32,42,0.12) !important;
  color: #ff4a53 !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

.qla-audio-card-title {
  max-width: 82%;
  min-height: 50px;
  margin-bottom: 14px !important;
  font-size: 18px !important;
  line-height: 1.28 !important;
  letter-spacing: -0.01em !important;
}

.qla-audio-card-meta {
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  margin-top: 0 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.75) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.qla-audio-card-toggle {
  position: absolute !important;
  right: 18px !important;
  bottom: 18px !important;
  min-height: 34px !important;
  margin-top: 0 !important;
  padding: 0 13px !important;
  background: transparent !important;
  border: 1px solid rgba(218,32,42,0.72) !important;
  color: #fff !important;
  font-size: 11px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04) !important;
}

.qla-audio-card-toggle::before {
  content: "▶";
  margin-right: 7px;
  font-size: 9px;
  color: #da202a;
}

.qla-audio-card-head[aria-expanded="true"] .qla-audio-card-toggle {
  background: #da202a !important;
  border-color: #da202a !important;
}

.qla-audio-card-head[aria-expanded="true"] .qla-audio-card-toggle::before {
  content: "▴";
  color: #fff;
}

.qla-audio-card-head[aria-expanded="true"] .qla-audio-card-toggle::after {
  font-size: 11px !important;
}

.qla-audio-track-panel {
  position: relative;
  z-index: 4;
  max-height: 285px !important;
  border-top: 1px solid rgba(255,255,255,0.09) !important;
  background: rgba(0,0,0,0.48) !important;
}

.qla-audio-track-list {
  padding: 12px !important;
  gap: 7px !important;
}

.qla-audio-track {
  min-height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  background: rgba(255,255,255,0.035) !important;
  grid-template-columns: 30px minmax(0, 1fr) 58px !important;
  padding: 8px 10px !important;
  transition: background .16s ease, border-color .16s ease, transform .16s ease !important;
}

.qla-audio-track:hover,
.qla-audio-track:focus-visible,
.qla-audio-track.is-playing {
  transform: translateX(2px);
  background: rgba(218,32,42,0.16) !important;
  border-color: rgba(218,32,42,0.58) !important;
}

.qla-audio-track-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.72) !important;
  font-size: 10px !important;
}

.qla-audio-track-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.92) !important;
}

.qla-audio-track-play {
  min-height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(218,32,42,0.12);
  color: #ff4a53 !important;
  font-size: 10px !important;
}

.qla-global-player {
  margin-top: 28px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(180deg, rgba(18,18,18,0.98), rgba(5,5,5,0.98)) !important;
  box-shadow: 0 -14px 45px rgba(0,0,0,0.48) !important;
}

.qla-global-player-inner {
  padding: 16px 20px !important;
}

.qla-global-player-copy strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px !important;
}

.qla-global-player audio {
  filter: invert(1) grayscale(1) contrast(1.05);
}

.qla-global-download {
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 10px 26px rgba(218,32,42,0.18) !important;
}

.qla-global-download[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .qla-audio-card-title {
    max-width: 88%;
  }
}

@media (max-width: 680px) {
  .qla-audio-library-modern {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .qla-audio-toolbar {
    padding: 10px !important;
    border-radius: 14px !important;
  }
  .qla-audio-count {
    border-left: 0 !important;
    justify-content: flex-start !important;
    min-height: auto !important;
    padding: 4px 6px !important;
  }
  .qla-audio-card-head {
    min-height: 145px !important;
  }
  .qla-audio-card-title {
    max-width: 100%;
    min-height: auto;
    padding-right: 54px;
    font-size: 17px !important;
  }
  .qla-audio-series-card::after {
    font-size: 42px;
  }
  .qla-global-player {
    border-radius: 16px !important;
  }
}

/* QLA Audio Archive - clean accordion layout */
.qla-audio-library-modern {
  padding: 76px 18px 96px !important;
}

.qla-audio-toolbar {
  max-width: 980px !important;
  margin: 30px auto 22px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  background: rgba(255,255,255,0.035) !important;
  border: 1px solid rgba(255,255,255,0.11) !important;
  border-radius: 14px !important;
  padding: 10px !important;
}

.qla-audio-series-grid {
  max-width: 980px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  counter-reset: audioSeries !important;
}

.qla-audio-series-card {
  counter-increment: audioSeries !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(20,20,20,0.96), rgba(8,8,8,0.98)) !important;
  border: 1px solid rgba(255,255,255,0.105) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28) !important;
  transform: none !important;
}

.qla-audio-series-card::before {
  width: 4px !important;
  height: auto !important;
  inset: 0 auto 0 0 !important;
  background: #da202a !important;
}

.qla-audio-series-card::after {
  content: counter(audioSeries, decimal-leading-zero) !important;
  left: 22px !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: rgba(255,255,255,0.08) !important;
  font-size: 34px !important;
  line-height: 1 !important;
}

.qla-audio-series-card:hover,
.qla-audio-series-card:focus-within {
  transform: none !important;
  border-color: rgba(218,32,42,0.42) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35) !important;
}

.qla-audio-card-head {
  width: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 20px 22px 20px 76px !important;
  text-align: left !important;
  background: transparent !important;
}

.qla-audio-card-head:hover,
.qla-audio-card-head:focus-visible {
  background: rgba(218,32,42,0.065) !important;
}

.qla-audio-card-kicker {
  display: none !important;
}

.qla-audio-card-title {
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  color: #fff !important;
}

.qla-audio-card-meta {
  margin: 0 !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.075) !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.qla-audio-card-toggle {
  position: static !important;
  min-width: 118px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(218,32,42,0.72) !important;
  background: rgba(218,32,42,0.10) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

.qla-audio-card-toggle::before {
  content: "+" !important;
  margin-right: 8px !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.qla-audio-card-head[aria-expanded="true"] .qla-audio-card-toggle {
  background: #da202a !important;
  border-color: #da202a !important;
}

.qla-audio-card-head[aria-expanded="true"] .qla-audio-card-toggle::before {
  content: "−" !important;
}

.qla-audio-track-panel {
  max-height: none !important;
  overflow: visible !important;
  border-top: 1px solid rgba(255,255,255,0.09) !important;
  background: rgba(0,0,0,0.32) !important;
}

.qla-audio-track-list {
  padding: 14px 18px 18px 76px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.qla-audio-track {
  min-height: 40px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 62px !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.075) !important;
}

.qla-audio-track:hover,
.qla-audio-track:focus-visible,
.qla-audio-track.is-playing {
  transform: none !important;
  background: rgba(218,32,42,0.14) !important;
  border-color: rgba(218,32,42,0.45) !important;
}

.qla-global-player {
  max-width: 980px !important;
  margin: 22px auto 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
  border-radius: 14px 14px 0 0 !important;
}

.qla-global-player-inner {
  display: grid !important;
  grid-template-columns: minmax(180px, .8fr) minmax(220px, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
}

@media (max-width: 820px) {
  .qla-audio-toolbar,
  .qla-audio-card-head,
  .qla-global-player-inner {
    grid-template-columns: 1fr !important;
  }
  .qla-audio-card-head {
    gap: 10px !important;
    padding: 18px 18px 18px 58px !important;
  }
  .qla-audio-series-card::after {
    left: 18px !important;
    top: 22px !important;
    transform: none !important;
    font-size: 26px !important;
  }
  .qla-audio-card-title {
    font-size: 17px !important;
  }
  .qla-audio-card-meta,
  .qla-audio-card-toggle {
    width: max-content !important;
  }
  .qla-audio-track-list {
    grid-template-columns: 1fr !important;
    padding: 12px 14px 14px 58px !important;
  }
  .qla-global-player {
    position: static !important;
    border-radius: 14px !important;
  }
}

/* QLA Audio Archive - spacious accordion with floating mini player */
.qla-audio-library-modern {
  padding: 82px 24px 92px !important;
}

.qla-audio-library-modern .section-header,
.qla-audio-library-modern .section-desc,
.qla-audio-toolbar,
.qla-audio-series-grid {
  width: min(100%, 1180px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.qla-audio-toolbar {
  margin-top: 34px !important;
  margin-bottom: 26px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 12px !important;
  border-radius: 18px !important;
}

.qla-audio-series-grid {
  max-width: 1180px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}

.qla-audio-series-card {
  border-radius: 18px !important;
}

.qla-audio-card-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px 18px !important;
  padding: 22px 22px 22px 70px !important;
}

.qla-audio-card-title {
  grid-column: 1 / 2 !important;
  font-size: 18px !important;
}

.qla-audio-card-meta {
  grid-column: 1 / 2 !important;
  grid-row: 2 !important;
  width: max-content !important;
}

.qla-audio-card-toggle {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  min-width: 112px !important;
}

.qla-audio-track-panel {
  background: rgba(0,0,0,0.38) !important;
}

.qla-audio-track-list {
  padding: 16px 18px 18px 70px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

.qla-audio-track {
  min-height: 44px !important;
}

.qla-global-player[hidden] {
  display: none !important;
}

.qla-global-player {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  z-index: 9999 !important;
  width: min(520px, calc(100vw - 44px)) !important;
  max-width: 520px !important;
  margin: 0 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  background: linear-gradient(180deg, rgba(18,18,18,0.985), rgba(4,4,4,0.985)) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,0.62), 0 0 0 1px rgba(218,32,42,0.12) inset !important;
  backdrop-filter: blur(14px) !important;
}

.qla-global-player-inner {
  max-width: none !important;
  padding: 14px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px 12px !important;
  align-items: center !important;
}

.qla-global-player-copy {
  min-width: 0 !important;
}

.qla-global-player-label {
  font-size: 10px !important;
  margin-bottom: 3px !important;
}

.qla-global-player-copy strong {
  max-width: 100% !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.qla-global-player audio {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  height: 34px !important;
}

.qla-global-download {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 10px !important;
  border-radius: 999px !important;
}

@media (max-width: 980px) {
  .qla-audio-series-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  .qla-audio-library-modern {
    padding: 58px 16px 86px !important;
  }

  .qla-audio-toolbar {
    grid-template-columns: 1fr !important;
  }

  .qla-audio-count {
    border-left: 0 !important;
    justify-content: flex-start !important;
  }

  .qla-audio-card-head {
    grid-template-columns: 1fr !important;
    padding: 18px 18px 18px 56px !important;
  }

  .qla-audio-card-title,
  .qla-audio-card-meta,
  .qla-audio-card-toggle {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .qla-audio-track-list {
    grid-template-columns: 1fr !important;
    padding: 12px 14px 14px 56px !important;
  }

  .qla-global-player {
    right: 12px !important;
    left: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  .qla-global-player-inner {
    padding: 12px !important;
  }
}

/* QLA Audio Archive - card alignment correction */
.qla-audio-library-modern > .container {
  width: 100% !important;
  max-width: 1260px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  box-sizing: border-box !important;
}

.qla-audio-library-modern .eyebrow,
.qla-audio-library-modern .section-title,
.qla-audio-library-modern .section-desc {
  max-width: 920px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.qla-audio-library-modern .qla-audio-toolbar {
  width: 100% !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.qla-audio-library-modern .qla-audio-series-grid {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 18px !important;
}

.qla-audio-library-modern .qla-audio-series-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.qla-audio-library-modern .qla-audio-series-card:has(.qla-audio-card-head[aria-expanded="true"]) {
  grid-column: 1 / -1 !important;
}

.qla-audio-library-modern .qla-audio-card-head {
  width: 100% !important;
}

@media (max-width: 980px) {
  .qla-audio-library-modern > .container {
    max-width: 760px !important;
  }
  .qla-audio-library-modern .qla-audio-series-grid {
    max-width: 720px !important;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  .qla-audio-library-modern > .container {
    max-width: none !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ==================================================
   QLA Audio Archive - 4 column full-width alignment fix
   This overrides older legacy audio-grid rules that were forcing the
   modern archive section itself to become a narrow grid item on the left.
   ================================================== */
.qla-audio-library-modern.qla-audio-library {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: clamp(54px, 7vw, 96px) auto 0 !important;
  padding: 78px clamp(22px, 4vw, 52px) 110px !important;
  box-sizing: border-box !important;
}

.qla-audio-library-modern > .container {
  width: min(100%, 1480px) !important;
  max-width: 1480px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.qla-audio-library-modern .eyebrow,
.qla-audio-library-modern .section-title,
.qla-audio-library-modern .section-desc {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.qla-audio-library-modern .qla-audio-toolbar {
  width: min(100%, 980px) !important;
  max-width: 980px !important;
  margin: 34px auto 28px !important;
}

.qla-audio-library-modern .qla-audio-series-grid {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  justify-content: center !important;
  align-items: start !important;
}

.qla-audio-library-modern .qla-audio-series-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  grid-column: auto !important;
}

.qla-audio-library-modern .qla-audio-series-card:has(.qla-audio-card-head[aria-expanded="true"]) {
  grid-column: auto !important;
}

.qla-audio-library-modern .qla-audio-card-head {
  min-height: 188px !important;
  padding: 24px 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-align: left !important;
}

.qla-audio-library-modern .qla-audio-card-kicker {
  position: static !important;
  order: 1 !important;
}

.qla-audio-library-modern .qla-audio-card-title {
  order: 2 !important;
  width: 100% !important;
  max-width: none !important;
  font-size: clamp(18px, 1.25vw, 22px) !important;
  line-height: 1.05 !important;
  letter-spacing: .025em !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.qla-audio-library-modern .qla-audio-card-meta {
  order: 3 !important;
  margin-top: auto !important;
  width: auto !important;
}

.qla-audio-library-modern .qla-audio-card-toggle {
  order: 4 !important;
  width: 100% !important;
  min-width: 0 !important;
  justify-content: center !important;
  margin-top: 2px !important;
}

.qla-audio-library-modern .qla-audio-series-card::after {
  top: 18px !important;
  right: 18px !important;
  font-size: 42px !important;
}

.qla-audio-library-modern .qla-audio-track-panel {
  position: relative !important;
  width: 100% !important;
}

.qla-audio-library-modern .qla-audio-track-list {
  padding: 14px !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

@media (max-width: 1280px) {
  .qla-audio-library-modern > .container {
    width: min(100%, 1180px) !important;
  }
  .qla-audio-library-modern .qla-audio-series-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 920px) {
  .qla-audio-library-modern .qla-audio-series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .qla-audio-library-modern.qla-audio-library {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .qla-audio-library-modern .qla-audio-series-grid {
    grid-template-columns: 1fr !important;
  }
}

/* QLA Seminar Videos: hide player until a video is selected */
.qla-video-experience .qla-video-player-frame {
  display: none;
}
.qla-video-experience .qla-video-player-frame.is-visible {
  display: block;
}
.qla-video-experience-panel .qla-video-selector {
  margin-top: 0;
}
.qla-video-experience-panel:not(:has(.qla-video-player-frame.is-visible)) .qla-video-experience-head {
  margin-bottom: 18px;
}

/* =============================================
   FRONT PAGE: WHAT'S NEW
   ============================================= */
.whats-new-section {
  position: relative;
  overflow: hidden;
}
.whats-new-section::before {
  content: 'NEW';
  position: absolute;
  right: -18px;
  top: 40px;
  font-family: var(--font-display);
  font-size: clamp(90px, 13vw, 190px);
  line-height: 1;
  color: rgba(255,255,255,0.025);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.whats-new-grid { position: relative; z-index: 1; }
.whats-new-card a { display: block; height: 100%; }
.whats-new-card .blog-body { min-height: 220px; }
.whats-new-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.18);
  border-bottom: 1px solid var(--border);
}
.whats-new-empty {
  text-align: center;
}

@media (max-width: 768px) {
  .whats-new-card .blog-body { min-height: auto; }
}


/* Homepage What's New image crop fix */
.blog-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black-light);
}
.blog-img-wrap .blog-img,
.whats-new-card .blog-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
}
.whats-new-placeholder.blog-img {
  aspect-ratio: auto;
}


/* Downloads page CTA refinements */
.download-actions .download-page-btn {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  border: 0;
  text-decoration: none;
  min-width: 150px;
  justify-content: center;
  padding: 10px 24px;
  line-height: 1.2;
}

.download-actions button.download-page-btn {
  font-family: var(--font-condensed);
}

.download-actions .download-page-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .85);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .download-item {
    align-items: flex-start;
  }

  .download-actions,
  .download-actions .download-page-btn {
    width: 100%;
  }
}

/* Downloads: Penaisms audio grid and floating player */
.penaisms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.ringtones-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.penaism-card {
  min-width: 0;
}
.penaism-card-button {
  width: 100%;
  height: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  color: var(--white);
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.penaism-card-button:hover,
.penaism-card-button.is-playing {
  transform: translateY(-3px);
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(139,0,0,.18), rgba(255,255,255,.025));
}
.penaism-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.penaism-card-number {
  font-family: var(--font-head);
  color: var(--red-light);
  letter-spacing: .08em;
  font-size: 13px;
}
.penaism-excerpt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  min-height: 62px;
}
.penaism-play-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 9px 16px;
  font-size: 12px;
  pointer-events: none;
}
.penaism-player-modal[hidden] {
  display: none;
}
.penaism-player-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.penaism-player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(7px);
}
.penaism-player-panel {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid var(--red);
  background: var(--black-mid);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.penaism-player-panel audio {
  width: 100%;
}
.penaism-player-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.penaism-download-link {
  align-self: flex-start;
}
body.penaism-player-open {
  overflow: hidden;
}
@media (max-width: 1100px) {
  .penaisms-grid,
  .ringtones-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .penaisms-grid,
  .ringtones-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .penaisms-grid,
  .ringtones-grid {
    grid-template-columns: 1fr;
  }
  .penaism-player-panel {
    padding: 24px 18px 20px;
  }
}

/* Downloads: Mobile wallpapers grid and popup preview */
.wallpapers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.wallpaper-card {
  min-width: 0;
}
.wallpaper-card-button {
  width: 100%;
  height: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  color: var(--white);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.wallpaper-card-button:hover,
.wallpaper-card-button.is-active {
  transform: translateY(-3px);
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(139,0,0,.18), rgba(255,255,255,.025));
  box-shadow: 0 20px 45px rgba(0,0,0,.24);
}
.wallpaper-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wallpaper-card-number {
  font-family: var(--font-head);
  color: var(--red-light);
  letter-spacing: .08em;
  font-size: 13px;
}
.wallpaper-card-type {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.wallpaper-phone-icon {
  width: 64px;
  height: 106px;
  border: 2px solid rgba(255,255,255,.30);
  border-radius: 16px;
  padding: 7px;
  margin: 6px auto 4px;
  background: rgba(0,0,0,.22);
  box-shadow: inset 0 0 0 1px rgba(139,0,0,.22);
}
.wallpaper-phone-screen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(139,0,0,.72), rgba(255,255,255,.08) 42%, rgba(0,0,0,.86)),
    radial-gradient(circle at 65% 22%, rgba(255,255,255,.35), transparent 28%);
}
.wallpaper-preview-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 9px 16px;
  font-size: 12px;
  pointer-events: none;
}
.wallpaper-preview-panel {
  width: min(760px, 100%);
}
.wallpaper-modal-image-wrap {
  width: 100%;
  max-height: min(68vh, 760px);
  background: #080808;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wallpaper-modal-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(68vh, 760px);
  object-fit: contain;
}
.wallpaper-download-link {
  align-self: flex-start;
}
@media (max-width: 1100px) {
  .wallpapers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .wallpapers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .wallpapers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wallpaper-card-button {
    min-height: 220px;
    padding: 18px;
  }
  .wallpaper-phone-icon {
    width: 58px;
    height: 96px;
  }
}



.schedule-table .status-open {
  color: #18a058;
}

.schedule-table .status-closed {
  color: #c53030;
}

.schedule-table .btn-mini.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Seminar schedule action button visibility fix */
.seminar-events-table .btn-mini,
.seminar-events-table a.btn-mini,
.seminar-events-table span.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 40px;
  padding: 11px 18px;
  background: var(--red);
  color: #fff !important;
  border: 1px solid var(--red);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  box-sizing: border-box;
  white-space: nowrap;
}

.seminar-events-table a.btn-mini:hover,
.seminar-events-table a.btn-mini:focus {
  background: #fff;
  color: var(--red) !important;
  border-color: #fff;
}

.seminar-events-table .btn-mini.is-disabled {
  background: rgba(190, 0, 0, .55);
  color: rgba(255,255,255,.9) !important;
  border-color: rgba(190, 0, 0, .55);
  opacity: 1;
}


.qla-audio-player-close,
.dp-player-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  cursor: pointer;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.qla-audio-player-close:hover,
.dp-player-close:hover {
  background: #b80000;
  border-color: #b80000;
  transform: scale(1.05);
}

.qla-audio-player-popup,
.qla-audio-player-modal,
.qla-audio-floating-player,
.qla-audio-player,
.audio-player-popup,
.audio-player-modal,
.floating-audio-player,
.download-audio-player {
  position: relative;
}

.qla-audio-player-popup.is-hidden,
.qla-audio-player-modal.is-hidden,
.qla-audio-floating-player.is-hidden,
.qla-audio-player.is-hidden,
.audio-player-popup.is-hidden,
.audio-player-modal.is-hidden,
.floating-audio-player.is-hidden,
.download-audio-player.is-hidden {
  display: none !important;
}



.qla-global-player-inner {
  position: relative;
  padding-right: 58px;
}

.qla-global-player-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: #b80000;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: transform 0.2s ease, background 0.2s ease;
}

.qla-global-player-close:hover,
.qla-global-player-close:focus {
  background: #e00000;
  transform: scale(1.05);
  outline: none;
}



/* QLA Audio Archive uniform card sizing */
.qla-audio-series-card{
  height:100%;
  display:flex;
  flex-direction:column;
}

.qla-audio-card-head{
  min-height:150px;
}

.qla-audio-card-title{
  font-size:clamp(15px,1vw,18px) !important;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.6em;
  max-height:2.6em;
}

.qla-audio-card-meta,
.qla-audio-card-toggle{
  margin-top:auto;
}

.qla-audio-series-grid{
  align-items:stretch;
}

.qla-audio-series-card .qla-audio-track-panel{
  margin-top:auto;
}








/* Footer newsletter CTA - theme aesthetic */
.footer-newsletter-signup {
  margin-top: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.footer-newsletter-btn {
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 20px !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  background: transparent !important;
  color: #ffffff !important;
  font-family: var(--font-condensed, inherit) !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.footer-newsletter-btn:hover,
.footer-newsletter-btn:focus {
  background: var(--red, #b80000) !important;
  border-color: var(--red, #b80000) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  outline: none !important;
}

.footer-newsletter-btn::before,
.footer-newsletter-btn::after {
  display: none !important;
}



/* Downloads mobile involve.me button alignment fix */
.downloads-page .involveme_popup,
.download-page .involveme_popup,
.page-template-page-downloads .involveme_popup,
body.page-template-page-downloads .involveme_popup,
.download-actions .involveme_popup,
.download-item .involveme_popup,
.footer-newsletter-btn.involveme_popup {
  box-sizing: border-box !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (max-width: 768px) {
  .download-item,
  .download-card,
  .download-actions,
  .downloads-grid,
  .download-list {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .download-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .download-actions .involveme_popup,
  .download-actions .download-page-btn,
  .download-item .involveme_popup,
  .download-card .involveme_popup,
  .page-template-page-downloads .involveme_popup {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    text-align: center !important;
  }

  .downloads-page,
  .download-page,
  .page-template-page-downloads main,
  body.page-template-page-downloads {
    overflow-x: hidden !important;
  }
}

@media (max-width: 480px) {
  .download-actions .involveme_popup,
  .download-actions .download-page-btn,
  .download-item .involveme_popup,
  .download-card .involveme_popup,
  .page-template-page-downloads .involveme_popup {
    font-size: 12px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.04em !important;
    padding: 11px 12px !important;
  }
}



/* Downloads page hard mobile overflow lock - v18.9 */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.page-template-page-downloads,
  body.page-template-page-downloads #page,
  body.page-template-page-downloads .site,
  body.page-template-page-downloads main,
  body.page-template-page-downloads .site-main,
  body.page-template-page-downloads .page-content,
  body.page-template-page-downloads .downloads-page,
  body.page-template-page-downloads .download-page {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.page-template-page-downloads *,
  body.page-template-page-downloads *::before,
  body.page-template-page-downloads *::after {
    box-sizing: border-box !important;
  }

  body.page-template-page-downloads .container,
  body.page-template-page-downloads .section,
  body.page-template-page-downloads .download-section,
  body.page-template-page-downloads .download-grid,
  body.page-template-page-downloads .downloads-grid,
  body.page-template-page-downloads .download-list,
  body.page-template-page-downloads .download-card,
  body.page-template-page-downloads .download-item,
  body.page-template-page-downloads .download-actions,
  body.page-template-page-downloads .penaisms-grid,
  body.page-template-page-downloads .ringtones-grid,
  body.page-template-page-downloads .wallpapers-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  body.page-template-page-downloads .download-actions,
  body.page-template-page-downloads .download-card,
  body.page-template-page-downloads .download-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.page-template-page-downloads .download-actions a,
  body.page-template-page-downloads .download-actions button,
  body.page-template-page-downloads .download-page-btn,
  body.page-template-page-downloads button.involveme_popup,
  body.page-template-page-downloads .involveme_popup {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-align: center !important;
  }

  body.page-template-page-downloads .penaisms-grid,
  body.page-template-page-downloads .ringtones-grid,
  body.page-template-page-downloads .wallpapers-grid {
    grid-template-columns: 1fr !important;
  }

  body.page-template-page-downloads img,
  body.page-template-page-downloads video,
  body.page-template-page-downloads audio,
  body.page-template-page-downloads iframe,
  body.page-template-page-downloads table {
    max-width: 100% !important;
  }

  body.page-template-page-downloads .penaism-player-modal,
  body.page-template-page-downloads .wallpaper-modal,
  body.page-template-page-downloads .download-modal,
  body.page-template-page-downloads .dp-modal,
  body.page-template-page-downloads [class*="modal"],
  body.page-template-page-downloads [class*="popup"] {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
}

/* Fallback for cases where WP template class is different */
@media (max-width: 768px) {
  .page-downloads,
  .downloads-page,
  .download-page,
  .downloads-page *,
  .download-page * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .downloads-page,
  .download-page {
    overflow-x: hidden !important;
  }
}



/* Seminar involve.me enquiry button compatibility */
.seminar-involveme-btn.involveme_popup {
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: inherit;
  box-sizing: border-box !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 768px) {
  .seminar-info-card,
  .seminar-info-card *,
  .seminar-program-tabs,
  .seminar-program-tabs *,
  .page-template-page-seminar .seminar-info-card,
  .page-template-page-seminar .seminar-info-card * {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  .seminar-info-card .seminar-involveme-btn,
  .page-template-page-seminar .seminar-involveme-btn,
  .seminar-info-card button.involveme_popup {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.page-template-page-seminar,
  body.page-template-page-seminar main,
  body.page-template-page-seminar .site-main,
  body.page-template-page-seminar .seminar-program-tabs {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 480px) {
  .seminar-info-card .seminar-involveme-btn,
  .page-template-page-seminar .seminar-involveme-btn,
  .seminar-info-card button.involveme_popup {
    font-size: 12px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.04em !important;
  }
}






/* Targeted eyebrow balance fix - preserves intentional grey lines */
.eyebrow.centered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.eyebrow.centered::before,
.eyebrow.centered::after {
  flex: 0 0 40px;
}

.eyebrow.centered span,
.eyebrow > span {
  flex: 0 0 40px;
  width: 40px !important;
  max-width: 40px !important;
  height: 1px !important;
  background: var(--red, #b80000) !important;
}

/* Prevent duplicate left grey + red line only in eyebrow labels using an inline red span */
.eyebrow.centered:has(> span)::before,
.eyebrow:has(> span)::before {
  display: none !important;
}

/* Keep the red line from drifting right when the duplicate left line is removed */
.eyebrow.centered:has(> span),
.eyebrow:has(> span) {
  justify-content: flex-start;
}



/* Targeted eyebrow right-side grey line removal
   Applies only to eyebrow labels that already include the red inline accent line. */
.eyebrow:has(> span)::after,
.eyebrow.centered:has(> span)::after,
.section-header .eyebrow:has(> span)::after {
  display: none !important;
  content: none !important;
}

.eyebrow:has(> span),
.eyebrow.centered:has(> span),
.section-header .eyebrow:has(> span) {
  gap: 10px !important;
}



/* Bottom seminar CTA involve.me mobile alignment */
.cta-banner .seminar-involveme-btn.involveme_popup {
  box-sizing: border-box !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
}

@media (max-width: 768px) {
  .cta-banner,
  .cta-banner *,
  .cta-banner-inner,
  .cta-banner-inner * {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  .cta-banner {
    overflow-x: hidden !important;
  }

  .cta-banner .seminar-involveme-btn,
  .cta-banner button.involveme_popup {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 480px) {
  .cta-banner .seminar-involveme-btn,
  .cta-banner button.involveme_popup {
    font-size: 12px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.04em !important;
  }
}



/* Take The Test involve.me button styling and mobile compatibility */
.test-involveme-btn.involveme_popup {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
}

@media (max-width: 768px) {
  body.page-template-page-test,
  body.page-template-page-tests,
  body.page-template-page-take-the-test,
  .take-test-page,
  .tests-page,
  .test-card,
  .test-card *,
  .test-grid,
  .test-grid *,
  .test-actions,
  .test-actions *,
  .page-template-page-test main,
  .page-template-page-tests main,
  .page-template-page-take-the-test main {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .take-test-page,
  .tests-page,
  body.page-template-page-test,
  body.page-template-page-tests,
  body.page-template-page-take-the-test,
  .page-template-page-test main,
  .page-template-page-tests main,
  .page-template-page-take-the-test main {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .test-involveme-btn,
  button.test-involveme-btn.involveme_popup,
  .test-card button.involveme_popup,
  .test-actions button.involveme_popup {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 480px) {
  .test-involveme-btn,
  button.test-involveme-btn.involveme_popup,
  .test-card button.involveme_popup,
  .test-actions button.involveme_popup {
    font-size: 12px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.04em !important;
  }
}



/* Take The Test warning disclaimer placement */
.test-disclaimer-copy {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.test-disclaimer-copy h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: var(--font-condensed, inherit);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.test-disclaimer-copy p {
  margin-bottom: 0;
}



/* Take The Test disclaimer color and CTA link fix */
.test-disclaimer-copy p {
  color: var(--muted, #9ca3af) !important;
}

.test-disclaimer-copy h3 {
  color: #ffffff !important;
}



/* Tests page final disclaimer and CTA fixes */
.test-disclaimer-copy p,
.test-disclaimer-copy {
    color: var(--text-muted, #a7a7a7) !important;
    opacity: 1 !important;
}

.test-warning p,
.test-warning .test-disclaimer-copy p {
    color: inherit !important;
}

.ready-to-go-further .btn,
.ready-to-go-further a.btn,
.cta-banner .btn,
.cta-banner a.btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
}

.ready-to-go-further .btn:hover,
.ready-to-go-further a.btn:hover,
.cta-banner .btn:hover,
.cta-banner a.btn:hover {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}





/* Targeted mobile fixed header restore - actual theme header is nav.main-nav */
@media (max-width: 991px) {
  nav.main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    background: rgba(10,10,10,0.98) !important;
  }

  body {
    padding-top: 70px !important;
  }

  body.admin-bar nav.main-nav {
    top: 46px !important;
  }

  body.admin-bar {
    padding-top: 116px !important;
  }

  .topbar {
    position: relative !important;
    z-index: 999 !important;
  }

  .mobile-menu {
    position: fixed !important;
    top: 0 !important;
    z-index: 10001 !important;
  }

  body.admin-bar .mobile-menu {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
  }
}

/* Accessibility and menu state */
.mobile-menu[hidden],
.overlay[hidden],
.tab-panel[hidden],
.seminar-tab-panel[hidden],
.podcast-series-panel[hidden] {
  display: none !important;
}

.nav-links > li:focus-within > .dropdown,
.nav-links > li:focus-within > .sub-menu,
.dropdown li:focus-within > .sub-dropdown,
.nav-links .sub-menu li:focus-within > .sub-menu {
  display: block;
}

.nav-links > li:focus-within > a .chevron {
  transform: rotate(180deg);
}

a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid var(--red-light);
  outline-offset: 4px;
}

.mobile-menu {
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.mobile-menu-open {
  overflow: hidden;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


@media (max-width: 768px) {
  .hero.hero-image-landing {
    --hero-bg-image: url('https://www.danpena.co.uk/wp-content/uploads/2026/06/guthriecastle-hero-mobile.png') !important;
    min-height: 100vh;
  }
  .hero-image-wrap {
    background-size: cover;
    background-position: center top;
  }
}


/* Dan Predicts The Future archive */
.dan-predicts-future-no-images { width: 100%; }
.dan-predicts-future-grid .interview-icon-panel {
  background: radial-gradient(circle at 72% 18%, rgba(169,0,0,.42), transparent 36%), linear-gradient(135deg, #161616 0%, #040404 62%, rgba(169,0,0,.30) 100%);
}
.dan-predicts-future-card .interview-icon-mark {
  width: 64px;
  height: 64px;
  font-size: 18px;
  letter-spacing: .04em;
}


/* Dan Does The Extreme audio story archive */
.dan-does-extreme-section { width: 100%; }
.dan-does-extreme-intro p { margin-bottom: 10px; }
.dan-does-extreme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.dan-extreme-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0; overflow: hidden; background: linear-gradient(145deg, rgba(18,18,18,.96), rgba(5,5,5,.98)); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 45px rgba(0,0,0,.35); }
.dan-extreme-icon { min-height: 100%; background: radial-gradient(circle at 74% 16%, rgba(169,0,0,.50), transparent 38%), linear-gradient(135deg, #151515 0%, #050505 64%, rgba(169,0,0,.35) 100%); }
.dan-extreme-card-content { padding: 24px; }
.dan-extreme-card h3 { margin: 6px 0 14px; color: #fff; font-family: 'Bebas Neue', sans-serif; font-size: clamp(28px, 3vw, 38px); line-height: .95; letter-spacing: .02em; }
.dan-extreme-story-text { color: #c9c9c9; font-size: 15px; line-height: 1.65; max-height: 170px; overflow: auto; padding-right: 8px; margin-bottom: 18px; }
.dan-extreme-story-text p { margin: 0; }
.dan-extreme-audio { width: 100%; display: block; margin: 0 0 16px; filter: grayscale(1); }
.dan-extreme-download { width: 100%; justify-content: center; }
@media (max-width: 1100px) { .dan-does-extreme-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dan-extreme-card { grid-template-columns: 1fr; } .dan-extreme-icon { min-height: 120px; } .dan-extreme-card-content { padding: 20px; } }
