/* =========================================================
   MEED HOOPS LAB – CORE THEME
   ========================================================= */

:root {
  --meed-navy: #020617;
  --meed-navy-soft: #02091a;
  --meed-navy-strong: #020314;
  --meed-blue: #0f5fff;
  --meed-blue-soft: #1d4ed8;
  --meed-green: #22c55e;
  --meed-green-soft: #16a34a;
  --meed-text-main: #e5edff;
  --meed-text-soft: #c7d2fe;
  --meed-text-muted: #94a3b8;
  --meed-border-soft: rgba(148, 163, 184, 0.35);
  --meed-surface: rgba(15, 23, 42, 0.86);
  --meed-surface-raised: rgba(15, 23, 42, 0.96);
  --meed-pill-bg: rgba(15, 118, 110, 0.18);
  --meed-pill-border: rgba(45, 212, 191, 0.7);
  --meed-pill-text: #a5f3fc;
  --meed-gradient-hero: radial-gradient(circle at top left, #1d4ed8 0, #020617 45%, #020617 100%);
  --meed-card-shadow:
    0 20px 45px rgba(15, 23, 42, 0.75),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  --meed-card-radius: 18px;
  --meed-transition-fast: 180ms ease-out;

  /* Layout system */
  --layout-max-desktop: 1280px;
  --layout-max-tablet: 960px;
  --layout-max-mobile: 100%;
}

/* Global reset-ish */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--meed-text-main);
  background-color: #020617;
}

/* =========================================================
   LEFT-SHIFTED COURT BACKGROUND — LOCKED (IMAGE)
   ========================================================= */
/* Master MEED Hoops Lab court background */
body.module-page {
  min-height: 100vh;
  background-color: #020617; /* navy safety net */
  background-image: url("assets/img/meed-court-bg-2d.png"); /* updated 2D court */
  background-repeat: no-repeat;
  background-position: left top;      /* keeps it left-shifted */
  background-size: 100%;             /* zoomed-out full-court look */
  background-attachment: fixed; /* Forces full-page coverage */
  color: var(--meed-text-main);
}

/* Page wrapper / max width */

.page-wrapper {
  max-width: var(--layout-max-desktop);
  margin: 0 auto;
  padding: 20px 24px 68px;
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 16px 14px 44px;
  }
}

/* =========================================================
   HEADER
   ========================================================= */

header {
  margin-bottom: 18px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  height: 40px;
  width: 40px;
  border-radius: 12px;
  background: none; /* remove green tint behind PNG */
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.8),
    0 0 0 1px rgba(148, 163, 184, 0.22);
}

.brand-text h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-text p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--meed-text-muted);
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.header-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.6);
  color: #bbf7d0;
}

.header-blurb {
  font-size: 0.78rem;
  color: var(--meed-text-muted);
}

/* =========================================================
   NAV
   ========================================================= */

.site-nav {
  margin-top: 16px;
  padding: 8px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.35), transparent 55%);
  box-shadow:
    0 12px 22px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  margin: 0 2px;
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--meed-text-soft);
  white-space: nowrap;
  transition: color var(--meed-transition-fast), background-color var(--meed-transition-fast);
}

.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.4), rgba(45, 212, 191, 0.2));
  opacity: 0;
  transition: opacity var(--meed-transition-fast);
}

.site-nav a span {
  position: relative;
}

.site-nav a:hover::before {
  opacity: 0.14;
}

.site-nav a:hover {
  color: #e5edff;
}

.site-nav a.active {
  background: rgba(15, 23, 42, 0.96);
  color: #e5edff;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.7),
    0 8px 16px rgba(15, 23, 42, 0.9);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  color: var(--meed-text-main);
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 8px;
}

.nav-toggle span {
  margin-right: 4px;
}

/* Nav responsive */

@media (max-width: 900px) {
  .header-top {
    align-items: flex-start;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    margin-top: 8px;
    border-radius: 14px;
    padding: 8px 8px;
    flex-wrap: wrap;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      max-height 220ms ease-out,
      opacity 180ms ease-out,
      transform 180ms ease-out;
  }

  body.nav-open .site-nav {
    max-height: 70vh;   /* was 220px */
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   MODULE HERO
   ========================================================= */

.module-main {
  margin-top: 12px;
}

.module-hero {
  margin-top: 6px;
  border-radius: 26px;
  padding: 20px 22px 22px;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(135deg, #020617 0, #020617 30%, #020617 100%);
  box-shadow: var(--meed-card-shadow);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.module-hero-inner {
  max-width: 920px;
}

.module-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.module-label-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #bae6fd;
}

.module-hero-kicker {
  font-size: 0.9rem;
  color: var(--meed-text-soft);
  margin-bottom: 4px;
}

.module-hero-title {
  font-size: 1.6rem;
  margin: 0 0 4px;
}

.module-hero-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--meed-text-soft);
}

.module-subline {
  margin-top: 4px;
  color: var(--meed-text-muted);
}

.module-topic-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.module-topic-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--meed-text-soft);
}

.module-hero-pill {
  border-color: rgba(52, 211, 153, 0.7);
  color: #bbf7d0;
}

@media (max-width: 768px) {
  .module-hero {
    padding: 8px 12px 14px;
  }

  .module-hero-title {
    font-size: 1.3rem;
  }
}

/* =========================================================
   QUICK NAV / PILL ROW
   ========================================================= */

.module-quick-nav {
  margin: 16px 0 10px;
}

.module-quick-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.module-quick-nav-inner a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.92);
  color: var(--meed-text-soft);
  font-size: 0.78rem;
  text-decoration: none;
  transition:
    background-color var(--meed-transition-fast),
    color var(--meed-transition-fast),
    border-color var(--meed-transition-fast);
}

.module-quick-nav-inner a:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(96, 165, 250, 0.9);
  color: #e5edff;
}

/* =========================================================
   MODULE SECTIONS
   ========================================================= */

.module-section {
  margin-top: 18px;
  border-radius: 24px;
  padding: 9px 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--meed-card-shadow);
  border: 1px solid rgba(15, 23, 42, 0.92);
}

.module-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), transparent 40%);
  opacity: 0.9;
  pointer-events: none;
}

.module-section > * {
  position: relative;
  z-index: 1;
}

.module-section--navy {
  background: radial-gradient(circle at top left, #0b1120 0, #020617 70%);
}

.module-section--slate {
  background: radial-gradient(circle at top left, #020617 0, #020617 60%);
}

.module-section--steel {
  background: radial-gradient(circle at top left, #020617 0, #020617 65%);
}

/* Section header */

.module-section-header {
  margin-bottom: 14px;
}

.module-section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  margin-bottom: 4px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--meed-text-soft);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
}

.module-section-header h2 {
  margin: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.strategy-icon {
  font-size: 1rem;
}

.module-section-sub {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--meed-text-soft);
}

/* Two-column layout */

.section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}
/* Section 2 – Simple Plays should be full-width, not in a 2-column grid */
#section2-plays .section-layout {
  display: block;   /* kill the grid so the copy column becomes 100% width */
}

.section-layout--form {
  align-items: stretch;
}

.section-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Ensures cards fully stretch horizontally inside Section 1 */
.section-layout--form .topic-card {
  width: 100%;
}

/* Topic / strategy cards */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.topic-card,
.strategy-card {
  border-radius: var(--meed-card-radius);
  padding: 10px 14px 12px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(15, 23, 42, 0.85);
}

.topic-card h3,
.strategy-card h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.topic-card p,
.strategy-card p,
.topic-card ul,
.strategy-card ul {
  font-size: 0.84rem;
  color: var(--meed-text-soft);
}

.topic-card ul,
.strategy-card ul {
  padding-left: 18px;
  margin: 4px 0 0;
}

/* Checklists */

.checklist {
  margin: 4px 0 0;
  padding-left: 18px;
}

.checklist li {
  margin-bottom: 3px;
  font-size: 0.84rem;
  color: var(--meed-text-soft);
}

/* MOVE CARD VISUAL ANCHOR */
.topic-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  padding-left: 12px;
  position: relative;
}

.topic-card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 20px;
  background: rgba(0, 140, 255, 0.9); /* electric blue accent */
  border-radius: 3px;
}

/* ADD SPACE BETWEEN CARD BLOCKS */
.topic-grid {
  margin-bottom: 24px;
}

.topic-card.full {
  margin-bottom: 40px; /* More gap below film rows */
}

/* Improve card separation on wide screens */
@media (min-width: 980px) {
  .topic-grid.two-col {
    gap: 24px;
  }
}

/* Section / module responsive */

@media (max-width: 1024px) {
  .section-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 768px) {
  .module-section {
    padding: 14px 12px 16px;
  }

  .section-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-media {
    margin-top: 8px;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   STRATEGY TEXT + DIAGRAM GRID (TEAM STRATEGIES)
   ========================================================= */

.strategy-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.strategy-pair:last-child {
  margin-bottom: 0;
}

.strategy-pair-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strategy-pair-text .strategy-card,
.strategy-pair-text .topic-card {
  height: 100%;
}

.strategy-pair-diagram {
  display: flex;
  align-items: stretch;
}

.strategy-pair-diagram .diagram-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.strategy-pair-diagram .diagram-court {
  flex: 1 1 auto;
}

@media (max-width: 900px) {
  .strategy-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .strategy-pair-diagram {
    margin-top: 6px;
  }
}

/* =========================================================
   FORM POSITION CARDS (SHOOTING / FINISHING)
   ========================================================= */

.form-position-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
}

.form-position-card {
  border-radius: var(--meed-card-radius);
  padding: 10px 12px 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
}

.form-position-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--meed-text-soft);
}

.form-position-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(135deg, #020617 0, #020617 40%, #020617 100%);
}

/* FULL-SIZE FORM IMAGES (no cropping) */
.form-position-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Finishing / arc cards (shared) */

.form-arc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.form-arc-card {
  border-radius: var(--meed-card-radius);
  padding: 10px 12px 12px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.42);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(15, 23, 42, 0.92);
}

.form-arc-img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
}

@media (max-width: 1024px) {
  .form-position-row,
  .form-arc-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .form-arc-img {
    max-height: 320px;
    object-fit: contain;
  }
}

/* =========================================================
   FILM ROOM / BUTTONS
   ========================================================= */

.film-room-section {
  margin-top: 20px;
}

.film-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.film-room-card {
  border-radius: var(--meed-card-radius);
  padding: 10px 12px 12px;
  background: rgba(15, 23, 42, 0.99);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.film-room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.film-room-card-header h4 {
  margin: 0;
  font-size: 0.9rem;
}

.film-room-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.85);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bae6fd;

}

.film-room-pill--blue {
  border-color: rgba(129, 140, 248, 0.9);
  color: #bfdbfe;
}

/* Film-room links as pill buttons */

.film-room-links {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
}

.film-room-links li {
  margin: 0;
  padding: 0;
}

/* Shared pill link style used across modules:
   - Option A: pill buttons
   - Micro-lift + soft glow
   - Accent 1: underline sweep
   - Accent 3: micro shadow pop
   - Small left icon
*/

.film-room-links a,
.link-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.85);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.98));
  color: #e5edff;
  font-size: 0.8rem;
  text-decoration: none;
  gap: 6px;
  overflow: hidden;
  transition:
    background-color var(--meed-transition-fast),
    box-shadow var(--meed-transition-fast),
    transform 120ms ease-out,
    border-color var(--meed-transition-fast);
}

/* Small left icon */
.film-room-links a::before,
.link-button::before {
  content: "▶";
  font-size: 0.72rem;
  opacity: 0.9;
  margin-right: 4px;
}

/* Underline sweep highlight */
.film-room-links a::after,
.link-button::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0),
    rgba(56, 189, 248, 0.9),
    rgba(16, 185, 129, 0)
  );
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition:
    transform 220ms ease-out,
    opacity 220ms ease-out;
}

/* Hover: micro-lift + glow + underline sweep + shadow pop */
.film-room-links a:hover,
.link-button:hover {
  background: rgba(37, 99, 235, 1);
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(59, 130, 246, 0.95);
  transform: translateY(-1px);
}

.film-room-links a:hover::after,
.link-button:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Link rows in other sections */

.link-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* =========================================================
   COACH ASSIGNMENTS / PILLS
   ========================================================= */

.assignments-hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.assignments-pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.team-tabs-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-tab-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.98);
  color: var(--meed-text-soft);
  cursor: default;
}

.coach-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coach-team-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: contain;
  background: #ffffff;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.coach-team-title {
  display: flex;
  flex-direction: column;
}

.coach-team-title h2 {
  margin: 0;
}

.coach-team-title span {
  font-size: 0.82rem;
  color: var(--meed-text-muted);
}

.assignment-card {
  border-radius: var(--meed-card-radius);
  padding: 10px 12px 12px;
  background: rgba(15, 23, 42, 0.99);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(15, 23, 42, 0.92);
}

/* =========================================================
   HOME PAGE / INDEX – HERO, HOW-TO, MODULE GRID
   ========================================================= */

body.home-page .page-wrapper {
  max-width: var(--layout-max-desktop);
}

/* HERO */

.hero {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.hero-inner {
  border-radius: 26px;
  padding: 20px 22px 22px;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.3), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(135deg, #020617 0, #020617 30%, #020617 100%);
  box-shadow:
    0 26px 50px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.hero-inner h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--meed-text-soft);
  max-width: 640px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 12px;
}

.hero-badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.76rem;
  color: #bfdbfe;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  text-decoration: none;
  gap: 6px;
  cursor: pointer;
  transition:
    background-color var(--meed-transition-fast),
    color var(--meed-transition-fast),
    box-shadow var(--meed-transition-fast),
    transform 120ms ease-out;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.4), rgba(37, 99, 235, 0.98));
  color: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.9);
  box-shadow:
    0 18px 32px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.96);
}

.btn-primary:hover {
  background: rgba(37, 99, 235, 1);
  box-shadow:
    0 20px 36px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(129, 140, 248, 0.95);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.96);
  color: var(--meed-text-soft);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.98);
  color: #e5edff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

/* HERO ASIDE */

.hero-aside {
  border-radius: 24px;
  padding: 14px 14px 12px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow:
    0 20px 38px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-list li {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--meed-text-soft);
}

.hero-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #38bdf8, #22c55e);
  margin-top: 5px;
}

.hero-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
  color: var(--meed-text-muted);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-aside {
    order: -1;
  }

  .hero-inner {
    padding: 16px 14px 18px;
  }

  .hero-inner h2 {
    font-size: 1.4rem;
  }
}

/* =========================================================
   HOW-TO STRIP
   ========================================================= */

.how-to {
  margin: 20px 0 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.how-card {
  border-radius: 18px;
  padding: 10px 12px 12px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.96);
  font-size: 0.84rem;
  color: var(--meed-text-soft);
}

.how-title {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e5edff;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .how-to {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   HOME MODULE GRID (INDEX)
   ========================================================= */

.home-modules {
  margin-top: 12px;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-title-row h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title-row span {
  font-size: 0.82rem;
  color: var(--meed-text-muted);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.module-card {
  border-radius: 18px;
  padding: 12px 14px 13px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 18px 32px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.98);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.module-card:hover {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow:
    0 20px 38px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(30, 64, 175, 0.95);
  transform: translateY(-1px);
  transition:
    box-shadow var(--meed-transition-fast),
    border-color var(--meed-transition-fast),
    transform 120ms ease-out;
}

.module-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.module-title {
  font-size: 0.96rem;
  margin-top: 2px;
}

.module-desc {
  font-size: 0.84rem;
  color: var(--meed-text-soft);
  margin-top: 2px;
}

.module-footer {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--meed-text-muted);
}

.module-footer a {
  font-size: 0.78rem;
  color: #93c5fd;
  text-decoration: none;
}

.module-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .modules-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: 26px;
  border-radius: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #020617 0, #020617 50%, #020617 100%);
  border: 1px solid rgba(15, 23, 42, 0.96);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.96);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: flex-start;
}

.footer-title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-sub {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--meed-text-soft);
}

.footer-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.8rem;
}

.footer-modules a {
  color: var(--meed-text-soft);
  text-decoration: none;
  position: relative;
}

.footer-modules a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: rgba(129, 140, 248, 0.9);
  transition: width 160ms ease-out;
}

.footer-modules a:hover::after {
  width: 100%;
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--meed-text-muted);
  text-align: right;
}

.footer-meta a {
  color: #38bdf8;
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

.footer-note {
  margin: 2px 0 4px;
}

/* visited links stay readable */
a:visited {
  color: #c4b5fd;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .footer-meta {
    text-align: left;
  }
}

/* =========================================================
   COURT DIAGRAM STYLING (TEAM STRATEGIES SVG)
   ========================================================= */

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.diagram-card {
  position: relative;
  background: radial-gradient(circle at top left, #10243f 0, #040b1b 60%);
  border-radius: 18px;
  padding: 12px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.diagram-card h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 241, 255, 0.78);
  margin: 0 0 4px;
}

.diagram-note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(232, 241, 255, 0.7);
}

.diagram-court {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 6px auto 0;
}

/* court + paint */

.diagram-court-rect {
  fill: #061a33; /* slightly lighter navy so lines pop */
  stroke: rgba(190, 208, 240, 0.32);
  stroke-width: 1.4;
  rx: 7;
}

.diagram-paint {
  fill: rgba(8, 40, 90, 0.9);
  stroke: rgba(190, 208, 240, 0.35);
  stroke-width: 1.2;
}

/* Rim / hoop target */
.diagram-rim {
  fill: #071326;
  stroke: #ffb347; /* bright orange */
  stroke-width: 1.8;
}

.diagram-rim-inner {
  fill: #ffb347;
}

/* Free-throw circle + three-point arc */
.diagram-arc-ft {
  fill: none;
  stroke: rgba(190, 208, 240, 0.35);
  stroke-width: 1.3;
}

.diagram-arc-three {
  fill: none;
  stroke: rgba(190, 208, 240, 0.35);
  stroke-width: 1.3;
}

/* offensive players */

.diagram-offense {
  fill: #38bdf8;
  stroke: rgba(15, 23, 42, 0.85);
  stroke-width: 0.7;
}

/* defensive players */

.diagram-defense {
  fill: #f97373;
  stroke: rgba(15, 23, 42, 0.85);
  stroke-width: 0.7;
}

/* passing / cutting paths */

.diagram-path {
  fill: none;
  stroke: rgba(190, 208, 240, 0.6);
  stroke-width: 1.2;
  stroke-dasharray: 3 2;
  stroke-linecap: round;
}

/* trap / pressure highlight */

.diagram-trap-zone {
  fill: rgba(248, 250, 252, 0.02);
  stroke: rgba(248, 250, 252, 0.4);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

/* labels / text inside SVG (if used) */

.diagram-label {
  fill: rgba(248, 250, 252, 0.82);
  font-size: 4px;
}

/* layout tweaks for diagrams in team-strategies */

.strategy-diagrams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .strategy-diagrams {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .strategy-diagrams {
    margin-top: 18px;
  }

  .diagram-card {
    max-width: 480px;
    margin-inline: auto;
  }

  .diagram-court {
    max-width: 100%;
  }
}
/* =========================================================
   TABLE ALIGNMENT — CENTER COLUMNS FOR CHECKLISTS
   ========================================================= */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.comparison-table th,
.comparison-table td {
  padding: 10px 14px;
  vertical-align: middle; /* ← keeps multi-line rows centered */
  font-size: 0.9rem;
  color: var(--meed-text-soft);
}
.comparison-table td:first-child {
  text-align: left;
}

.comparison-table td:last-child {
  text-align: center;
}

.comparison-table th {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5edff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.comparison-table tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.35); /* soft navy striping */
}

.comparison-table.small td,
.comparison-table.small th {
  padding: 8px 10px;
}

/* =========================================================
   TABLE ALIGNMENT — CENTER COLUMNS FOR CHECKLISTS
   ========================================================= */

/* …your existing .comparison-table rules… */

/* === INSERT NEW PATCH BELOW THIS LINE === */

/* === TABLE VISUAL ENHANCEMENT === */

.elite-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  overflow: hidden;
}

.elite-table th,
.elite-table td {
  text-align: left;
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.elite-table th {
  font-size: 0.95rem;
  font-weight: 600;
  color: #AEE0FF;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(8, 38, 82, 0.85);
}

.elite-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.04);
}

.elite-table tbody tr:hover {
  background: rgba(0,140,255,0.14);
  transition: 0.15s ease;
}

/* ===== Section 6 Table Enhancements v2 ===== */

.elite-table {
  background: rgba(0,0,0,0.20); /* slightly darker base for better readability */
  border: 1px solid rgba(255,255,255,0.08);
}

.elite-table th {
  background: rgba(10, 60, 120, 0.92); /* stronger header band */
  padding-top: 10px;
  padding-bottom: 10px;
}

.elite-table tbody tr td {
  line-height: 1.35;
  color: #e9f3ff;
}

/* Subtle horizontal separators */
.elite-table tbody tr td {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Hover softened for polished UX */
.elite-table tbody tr:hover {
  background: rgba(0,140,255,0.10);
}

/* Sticky header for future-proof scrolling */
.elite-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(14px);
}


/* Mobile Optimization */
@media (max-width: 700px) {

  .elite-table th,
  .elite-table td {
    font-size: 0.82rem;
    padding: 10px 8px;
  }

  .elite-table tbody tr:hover {
    background: none; /* remove hover highlight on touch */
  }
}

@media (max-width: 480px) {
  .elite-table th,
  .elite-table td {
    white-space: nowrap; /* prevent ugly wrapping */
  }

  .elite-table {
    font-size: 0.78rem;
  }
}


/* === END TABLE PATCH === */

/* ===============================
   SECTION 7 — CREATIVE FINISHING TOOLS GRID
   =============================== */

.module-section {
    margin: 40px auto;
    padding: 0 20px;
}

/* Section Title */
.module-title {
    font-size: 1.9rem;
    color: #E8F1FF;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Intro Copy */
.module-intro-copy {
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.95;
    color: #DCE8FF;
    max-width: 850px;
    margin-bottom: 32px;
}

/* GRID LAYOUT */
.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* CARD BASE */
.module-card {
    background: rgba(15, 40, 85, 0.35);
    padding: 22px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* CARD HOVER */
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* CARD TITLES */
.module-card h3 {
    font-size: 1.3rem;
    color: #E8F1FF;
    margin-bottom: 14px;
    font-weight: 600;
}

/* LIST STYLING */
.module-card ul {
    margin-left: 0;
    padding-left: 18px;
    color: #CFE0FF;
    line-height: 1.5;
}

.module-card li {
    margin-bottom: 10px;
    font-size: 0.97rem;
}

/* SUB LISTS */
.module-card li ul {
    margin-top: 6px;
    padding-left: 18px;
    color: #D8E6FF;
}

.module-card li ul li {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* =============
   RESPONSIVE
   ============= */

@media (max-width: 1024px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 700px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

    .module-card {
        padding: 20px;
    }
}
/* =========================================================
   PATCH: A1–A7 LOCK-IN (NO REMOVALS, OVERRIDES ONLY)
   ========================================================= */

/* ------------------------------
   A1 — UNIVERSAL PILL BUTTONS
   ------------------------------ */

.film-room-links a,
.link-button,
.link-row a,
.module-quick-nav-inner a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.85);
  background: radial-gradient(circle at 0 0,
    rgba(56,189,248,0.25),
    rgba(15,23,42,0.98));
  color: #e5edff !important;
  font-size: 0.82rem;
  gap: 6px;
  overflow: hidden;
  text-decoration: none;
  transition:
    background-color 180ms ease-out,
    box-shadow 180ms ease-out,
    transform 150ms ease-out,
    border-color 180ms ease-out;
}

/* ICON LEFT — OPTION A */
.film-room-links a::before,
.link-button::before,
.link-row a::before,
.module-quick-nav-inner a::before {
  content: "▶";
  font-size: 0.74rem;
  opacity: 0.85;
  margin-right: 4px;
}

/* UNDERLINE SWEEP — A1 */
.film-room-links a::after,
.link-button::after,
.link-row a::after,
.module-quick-nav-inner a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(56,189,248,0),
    rgba(56,189,248,0.9),
    rgba(16,185,129,0)
  );
  transform: scaleX(0);
  opacity: 0;
  transform-origin: left;
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}

/* HOVER — micro-lift + glow + underline sweep */
.film-room-links a:hover,
.link-button:hover,
.link-row a:hover,
.module-quick-nav-inner a:hover {
  background: rgba(37,99,235,1);
  border-color: rgba(129,140,248,0.95);
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(15,23,42,0.95),
    0 0 0 1px rgba(59,130,246,0.9);
}

.film-room-links a:hover::after,
.link-button:hover::after,
.link-row a:hover::after,
.module-quick-nav-inner a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ------------------------------
   A2 — TWO-ROW HEADER / NAV
   (Supplement, no deletions)
   ------------------------------ */

header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Force nav row to wrap cleanly */
.site-nav {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 6px;
  padding: 10px 14px;
}

/* Desktop spacing fix so pills don't bunch */
@media (min-width: 901px) {
  .site-nav a {
    margin-top: 2px;
    margin-bottom: 2px;
  }
}

/* Header top row stays intact but wraps if needed */
.header-top {
  flex-wrap: wrap;
  row-gap: 6px;
}

/* ------------------------------
   A3 — SECTION 7 LAYOUT FIX
   (Finishing module only)
   ------------------------------ */

.finishing-section-7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* 4th card spans full width */
.finishing-section-7-grid .full-span {
  grid-column: 1 / -1;
}

/* Mobile logic */
@media (max-width: 900px) {
  .finishing-section-7-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   A4 — BACKGROUND LOCK
   Ensure full-page coverage no matter content height
   ------------------------------ */

body.module-page {
  background-size: cover !important;
  background-position: left top !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

/* Ensure wrapper never ends short */
.page-wrapper {
  min-height: calc(100vh - 160px);
}

/* ------------------------------
   A5 — FULL-SIZE GRAPHICS
   ------------------------------ */

.form-position-img,
.form-arc-img {
  width: 100%;
  height: auto;
  object-fit: contain !important;
}

/* ------------------------------
   A7 — LEGAL DISCLAIMER
   ------------------------------ */

.footer-legal {
  margin-top: 8px;
  font-size: 0.72rem;
  opacity: 0.75;
  color: var(--meed-text-muted);
  line-height: 1.45;
}
/* =========================================================
   FINISHING – SECTION 7 (A7-PRO-V2 SOLID BACKGROUND)
   Make Section 7 fully opaque (no court bleed-through)
   ========================================================= */

#section-7.module-section {
  /* Solid, deep navy block similar to your other pro panels */
  background: radial-gradient(circle at top left, #020617 0, #020617 70%);
}

/* Remove the semi-transparent overlay just for Section 7 */
#section-7.module-section::before {
  background: none;
  opacity: 0;
}
/* Section 7 – remove extra overlay, solid block */
#section-7.module-section::before {
  background: none;
  opacity: 0;
}
.footer-legal {
  font-size: 0.75rem;
  opacity: 0.8;
  text-align: center;
  margin-top: 4px;
}

/* =========================================================
   DRIBBLING MODULE — SECTION SPACING FIX
   ========================================================= */

/* Ensure clean breathing room after film room card */
.film-room-section {
  margin-bottom: 28px;
}

/* Standard consistent separation for Sections 8–11 */
#section8-drills,
#section9-transition,
#section10-decisions,
#section11-defensive {
  margin-top: 42px !important;
  padding-top: 12px;
}

/* Section headers get a tiny top cushion */
#section8-drills .module-section-header,
#section9-transition .module-section-header,
#section10-decisions .module-section-header,
#section11-defensive .module-section-header {
  margin-top: 6px;
}
/* Proper breathing room between section header and tables */
.module-section-header {
    margin-bottom: 24px !important;
}

/* =========================================================
   PRINT STYLES — MEED HOOPS LAB (V3 "WORKBOOK MODE")
   Stripped-down, black-on-white, handout-style.
   ========================================================= */

@page {
  margin: 0.5in 0.5in 0.75in 0.5in;
}

@media print {

  /* --- Base / fonts / colors --- */

  html,
  body,
  body.module-page {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: "Times New Roman", Georgia, "Times", serif !important;
    font-size: 11pt !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Kill court background + overlays completely */
  body.module-page {
    background-image: none !important;
    background-attachment: scroll !important;
  }

  .module-section::before,
  .page-hero::before,
  .page-hero::after {
    background: none !important;
    opacity: 0 !important;
  }

  /* No box shadows or fancy gradients anywhere */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
  }

  /* --- Layout: single column, centered on page --- */

  .page-wrapper,
  .module-main,
  .module-page,
  .page-shell {
    max-width: 7.0in !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  /* --- Hide web-only chrome --- */

  .site-nav,
  .nav-toggle,
  .header-actions,
  .quick-nav,
  .hero-film-links,
  .hero-tag,
  .hero-label-pill,
  .hero-background,
  .hero-meta-row {
    display: none !important;
  }

  /* Header: keep logo + title, plain black text */

  header,
  .site-header,
  .header-top,
  .brand-block {
    background: #ffffff !important;
    border: 0 !important;
  }

  .brand-text h1,
  .brand-text p {
    color: #000000 !important;
  }

  .brand-text h1 {
    font-size: 16pt !important;
    margin-bottom: 0.05in;
  }

  .brand-text p {
    font-size: 11pt !important;
    margin-top: 0;
  }

  /* --- Sections: make them look like clean modules --- */

  .module-section {
    break-inside: avoid;
    page-break-inside: avoid;
    border-radius: 0;
    border: 1px solid #dddddd;
    margin: 0.25in 0;
    padding: 0.18in 0.22in 0.22in;
    background: #ffffff !important;
  }

  .module-section--navy,
  .module-section--slate,
  .module-section--steel {
    background: #ffffff !important;
  }

  .module-section-header,
  .module-section-header h2,
  .module-section-header h3 {
    color: #000000 !important;
  }

  .module-section-label {
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #555555 !important;
    margin-bottom: 0.04in;
  }

  .module-section h2 {
    font-size: 13pt !important;
    margin: 0 0 0.06in;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 0.04in;
  }

  .module-section-sub {
    font-size: 10pt !important;
    margin: 0 0 0.08in;
  }

  /* Cards just become light boxes inside sections */

  .module-card,
  .film-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    background: #ffffff !important;
    padding: 0.12in 0.14in 0.14in;
    margin-top: 0.08in;
  }

  .module-card h3,
  .film-card h3 {
    color: #000000 !important;
    margin: 0 0 0.04in;
    font-size: 11.5pt !important;
  }

  .module-card p,
  .module-card li,
  .film-card p,
  .film-card li {
    color: #000000 !important;
    font-size: 10pt !important;
  }

  /* Lists spacing */

  ul,
  ol {
    margin-top: 0.03in;
    margin-bottom: 0.03in;
    padding-left: 0.18in;
  }

  li {
    margin-bottom: 0.02in;
  }

  /* --- Links: DON’T print URLs at all (clean handout) --- */

  a[href]::after {
    content: "" !important;
  }

  /* Film-room links print as normal text buttons (no pills) */

  .film-room-links,
  .link-row {
    padding-left: 0;
    margin-top: 0.04in;
  }

  .film-room-links li {
    list-style-type: disc;
    margin-left: 0.18in;
  }

  .film-room-links a,
  .link-button,
  .section-topic-pill {
    display: inline;
    border: none !important;
    padding: 0 !important;
    margin: 0;
    background: none !important;
    color: #000000 !important;
    font-weight: normal !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* --- Footer: brand + contact + centered legal --- */

  .site-footer {
    background: #ffffff !important;
    border: 0 !important;
    margin-top: 0.4in;
  }

  .footer-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 0.4in;
    border-top: 1px solid #000000;
    padding-top: 0.07in;
    margin-bottom: 0.05in;
  }

  .footer-modules {
    display: none !important; /* keep nav pills off paper */
  }

  .footer-title,
  .footer-sub,
  .footer-note,
  .footer-contact p {
    color: #000000 !important;
    font-size: 9pt !important;
  }

  .footer-legal {
    width: 100%;
    text-align: center;
    font-size: 8pt;
    margin: 0.08in 0 0;
    padding-top: 0.04in;
    border-top: 1px solid #000000;
    color: #000000 !important;
    background: none !important;
  }

  /* --- Page-break hints: keep big chunks together --- */

  /* Start main content on a new page after the hero if needed */
  #section-1 {
    page-break-before: always;
  }

  /* For very long modules, force a new page before late sections */
  #section-6,
  #section-9 {
    page-break-before: always;
  }
}
/* =========================================================
   HOME PAGE MODULE CARDS — LEGENDARY PATCH
   (safe override: only affects index.html)
   ========================================================= */

body.home-page .home-modules {
  margin-top: 14px;
}

/* Grid tuning so cards breathe a bit more */
body.home-page .modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

/* Card shell — deeper glow, subtle gradient */
body.home-page .module-card {
  border-radius: 20px;
  padding: 14px 16px 15px;
  background:
    radial-gradient(circle at 0 0,
      rgba(56, 189, 248, 0.12),
      rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow:
    0 22px 40px rgba(15, 23, 42, 0.96),
    0 0 0 1px rgba(15, 23, 42, 0.98);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}

/* Hover: micro-lift + subtle color pop */
body.home-page .module-card:hover {
  border-color: rgba(59, 130, 246, 0.98);
  box-shadow:
    0 26px 52px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(30, 64, 175, 0.98);
  transform: translateY(-2px);
  transition:
    box-shadow var(--meed-transition-fast),
    border-color var(--meed-transition-fast),
    transform 140ms ease-out;
}

/* Typography inside the cards */
body.home-page .module-card .module-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5f3fc;
}

body.home-page .module-card .module-title {
  font-size: 1.02rem;
  margin-top: 3px;
}

body.home-page .module-card .module-desc {
  font-size: 0.86rem;
  color: var(--meed-text-soft);
  margin-top: 4px;
}

body.home-page .module-card .module-footer {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--meed-text-muted);
}

body.home-page .module-card .module-footer a {
  font-size: 0.8rem;
  color: #93c5fd;
  text-decoration: none;
}

body.home-page .module-card .module-footer a:hover {
  text-decoration: underline;
}

/* Mobile: keep the “one big stack of cards” feel */
@media (max-width: 768px) {
  body.home-page .modules-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.home-page .module-card {
    padding: 14px 14px 16px;
  }
}
/* =========================================================
   MEED – BALANCED WATERMARK (UNDER CONSTRUCTION)
   ========================================================= */

body.has-watermark::after,
body.has-watermark::before {
  content: "UNDER CONSTRUCTION";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 99999;
  font-family: 'Arial Black', 'Impact', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Primary text layer */
body.has-watermark::after {
  font-size: min(8vw, 80px);               /* scales nicely, capped at 80px */
  font-weight: 900;
  color: rgba(255, 0, 0, 0.20);           /* softer red overlay */
}

/* Slight shadow/outline for readability */
body.has-watermark::before {
  font-size: min(8vw, 80px);               /* same size */
  font-weight: 900;
  color: rgba(0, 0, 0, 0.25);              /* subtle dark outline */
  z-index: 99998;
}

/* Hide for print */
@media print {
  body.has-watermark::after,
  body.has-watermark::before {
    content: none !important;
  }
}
/* =========================================================
   FINISHING – SECTION 1 LAYOUT FIX
   Make both topic cards fill the full section width
   ========================================================= */

/* Collapse the empty media column so the copy can use full width */
#section1-foundation .section-layout {
  grid-template-columns: minmax(0, 1fr);
}

/* Hide the unused media rail in this section only */
#section1-foundation .section-media {
  display: none;
}

/* Let the two topic cards spread out nicely */
#section1-foundation .topic-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}
/* =========================================================
   TEAM STRATEGIES MODULE – MAKE ALL SECTION LAYOUTS 1-COLUMN
   ========================================================= */

body[data-page="team-strategies"] .section-layout {
  display: block;           /* kill the grid */
  gap: 0;                   /* gap no longer needed */
}
/* DRIBBLING & POSITIONS — FIX NARROW INTERIOR BOXES */
body[data-page="defense"] .section-layout,
body[data-page="dribbling"] .section-layout,
body[data-page="positions"] .section-layout {
  display: block;   /* kill the 1.4fr / 1fr two-column grid */
  gap: 0;
}
/* FIX FILM STUDY BUTTON POSITION / SPACING */

.topic-card.full .link-row {
  padding-bottom: 6px !important;
  margin-bottom: -6px !important;
  display: flex;
  justify-content: flex-start;
}

/* Remove extra height from the button itself */
.pill-link {
  margin-bottom: 0 !important;
  padding: 6px 14px !important;
}

/* Tighter card bottom */
.topic-card.full {
  padding-bottom: 12px !important;
  margin-bottom: 36px !important;
}

/* Space before next move title */
.topic-card.full + .topic-grid {
  margin-top: 24px !important;
}
/* =========================================================
   OPTIMIZATION PATCH — SECTIONS 6 & 7 (CARDS + TABLE)
   ========================================================= */

/* Move Title Anchor — strengthened visibility */
.topic-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  padding-left: 14px;
  position: relative;
  text-transform: none;
}

.topic-card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 24px;
  background: rgba(0,140,255,0.95); /* Electric Blue */
  border-radius: 3px;
}

/* Table Touchups — stronger readability + cleaner mobile */
.elite-table th,
.elite-table td {
  padding: 14px 16px;
  line-height: 1.35;
}

.elite-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(8,38,82,0.92);
  backdrop-filter: blur(6px);
}

/* Better striping and hover */
.elite-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.045);
}
.elite-table tbody tr:hover {
  background: rgba(0,140,255,0.12);
}

/* Two-Column Teaching Spacing */
.topic-grid.two-col {
  gap: 22px;
  margin-bottom: 40px;
}

/* Film Card Tightening */
.topic-card.full {
  padding-top: 10px !important;
  padding-bottom: 12px !important;
  margin-top: -12px !important;
  margin-bottom: 48px !important;
}
.topic-card.full .film-points li {
  margin-bottom: 3px;
}

/* Pill-Link Visual + Hover Refinement */
.pill-link {
  padding: 8px 18px;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  background: rgba(0,90,200,0.92);
  color: #E8F4FF !important;
}
.pill-link:hover {
  background: rgba(0,120,255,1);
  box-shadow: 0 0 12px rgba(0,140,255,0.6);
  transform: translateY(-1px);
  transition: 0.15s ease-out;
}

/* Responsive — mobile card stack clean spacing */
@media (max-width: 820px) {
  .topic-grid.two-col {
    gap: 12px;
    margin-bottom: 44px;
  }
  .topic-card.full {
    margin-bottom: 56px !important;
  }
}
/* =====================================
   SECTION NAV — QUICK-JUMP BAR
   ===================================== */
.section-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px auto 26px;
  padding: 10px 18px;
  background: rgba(0,40,90,0.65);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  width: fit-content;
  border: 1px solid rgba(0,140,255,0.25);
}

.section-nav a {
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #E8F1FF;
  background: rgba(0,120,255,0.25);
  transition: 0.18s ease-out;
}

.section-nav a:hover {
  background: rgba(0,140,255,1);
  box-shadow: 0 0 12px rgba(0,140,255,0.45);
  transform: translateY(-1px);
  color: #fff;
}

/* Mobile */
@media (max-width: 720px) {
  .section-nav {
    gap: 10px;
    padding: 8px 12px;
  }
  .section-nav a {
    font-size: 0.85rem;
    padding: 6px 14px;
  }
}
/*Nav - Dribbling*/
<nav class="section-nav">
  <a href="#section6">Core Foundation</a>
  <a href="#section7">Advanced Handles</a>
  <a href="#section8">Drills & Film</a>
</nav>

/* ==========================================
   GLOBAL SECTION HEADER NORMALIZATION
   Matches 6–8 “Elite Pro” layout
   ========================================== */
.module-section {
  padding: 50px 0 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(0,140,255,0.2);
}

.module-section-header,
.module-title,
h2.module-title,
h2 {
  font-family: inherit;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  text-transform: none;
}

/* Ensure ALL section subtitles use the same style */
.module-intro-copy,
.module-section-sub {
  color: #E8F1FF;
  font-size: 1rem;
  opacity: 0.88;
  margin-bottom: 28px;
  line-height: 1.45;
}

/* Ensure new spacing harmony between elements */
.module-section > h2,
.module-section > .module-title {
  margin-bottom: 18px;
}

.sub-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #9EC9FF;
  margin: 50px 0 20px;
}

/* ==========================================
   Unified Section Header — Final Spacing Fix
   ========================================== */

.module-section {
    padding-top: 40px !important; /* clean space above section */
}

.module-section-header {
    max-width: 1020px;
    margin: 0 auto 28px auto;
    padding: 0 14px;
    text-align: left;
}

/* Section number pill */
.module-section-label {
    display: inline-block;
    margin-bottom: 12px;
    background: rgba(0,140,255,0.28);
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #D8EEFF;
    border-radius: 10px;
    letter-spacing: .5px;
}

/* Section title */
.module-section-header h2 {
    font-size: clamp(1.65rem, 2.65vw, 2.1rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 8px;
}

/* Subtitle line */
.module-intro-copy {
    font-size: 0.95rem;
    opacity: 0.82;
    margin-top: 4px;
    margin-bottom: 30px !important;
    max-width: 820px;
    line-height: 1.42;
}
/* Fix Section Header Alignment */
.module-section-header {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 16px;
    display: block;
    position: relative;
}

/* Prevent headers from inheriting grid alignment */
.module-section-header:not(.topic-grid):not(.topic-card) {
    grid-column: 1 / -1;
}
/* === OVERRIDE: Let section headers go full width (fix Section 5 indent) === */
.module-section-header {
  max-width: 100%;
  margin: 0 0 18px 0;  /* normal bottom gap, no auto-centering */
  padding: 0;          /* lines up with the cards & table */
  text-align: left;    /* keeps title left-aligned */
}
/* =========================================================
   GLOBAL MODULE HEADER UNIFICATION (Sections 1–11)
   Match Section 6 exactly everywhere
   ========================================================= */

/* Section wrapper spacing */
.module-section {
  padding-top: 40px; /* uniform top space before any header */
}

/* Header container (full width alignment, no indent) */
.module-section-header {
  width: 100%;
  max-width: none;
  margin: 0 0 24px 0;
  padding: 0;
  text-align: left;
  display: block;
  position: relative;
}

/* SECTION # pill — match Section 6 */
.module-section-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(0, 140, 255, 0.28);
  color: #d5ebff;
  border-radius: 10px;
}

/* Title Styling — EXACT Section 6 */
.module-section-header h2,
.module-section .module-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.18;
  text-transform: none;
}

/* Subtitle — match Section 6 intro line */
.module-intro-copy,
.module-section-header p {
  font-size: 1rem;
  opacity: 0.85;
  margin: 4px 0 32px 0;
  max-width: 820px;
  line-height: 1.42;
}

/* Ensure headers always break out of layout grids */
.module-section-header {
  grid-column: 1 / -1 !important;
}
/* ===============================================================
   FINAL OVERRIDE — UNIFY ALL MODULE HEADERS TO SECTION 6 STYLE
   =============================================================== */

.module-section {
  padding-top: 30px !important;
}

.module-section-header,
.module-section > h2,
.module-main h2.module-title {
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  text-align: left !important;
  display: block;
  line-height: 1.2;
}

/* SECTION NUMBER PILL — exact match Section 6 */
.module-section-label {
  display: inline-block;
  background: rgba(0, 140, 255, 0.35);
  padding: 4px 16px;
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: .6px;
  color: #D9ECFF;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* MAIN TITLE — EXACT from Section 6 */
.module-section-header h2,
.module-section h2,
.module-main h2.module-title {
  font-size: clamp(2.1rem, 3vw, 2.65rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 10px 0 !important;
  text-transform: none !important;
}

/* SUBTITLE — EXACT Section 6 behavior */
.module-intro-copy,
.module-section-header p {
  font-size: 1rem !important;
  opacity: 0.85 !important;
  margin: 0 0 32px 0 !important;
  max-width: 840px !important;
  line-height: 1.45 !important;
  color: #ffffff !important;
}

/* Prevent headers from shifting inside grid layouts */
.module-section-header {
  grid-column: 1 / -1 !important;
  position: relative;
}
/* Sticky Section Nav System (Matches Pro Coaching UI) */

.hero-topic-grid {
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(8px);
  padding: 12px 0;
}

.hero-topic.active {
  background: #29a8ff;
  color: #ffffff;
}
/* ===== HERO FINAL SYSTEM ===== */
.unified-hero {
  background: transparent;
  padding: 40px 0 30px;
  text-align: left;
}
.hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-title {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: #d6e8ff;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 780px;
  line-height: 1.42;
}
.module-label-pill {
  display: inline-block;
  background: rgba(0, 180, 255, 0.25);
  padding: 6px 18px;
  font-size: .78rem;
  border-radius: 10px;
  font-weight: 700;
  color: #dff3ff;
  margin-bottom: 14px;
}

/* Pills */
/* Full-Width Elite Pill Navigation Bar */
.hero-topic-grid {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* keeps symmetry if pills wrap */
  gap: 10px 14px; /* vertical + horizontal spacing */
  padding: 14px 0 6px; /* breathing room top + bottom */
  background: rgba(0, 20, 60, 0.40); /* subtle navy panel */
  border-top: 1px solid rgba(0, 180, 255, 0.25);
  border-bottom: 1px solid rgba(0, 180, 255, 0.25);
  backdrop-filter: blur(8px);
}

.hero-topic {
  background: rgba(0, 140, 255, 0.38);
  padding: 8px 18px; /* larger tap target */
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: #d9eeff;
  cursor: pointer;
  white-space: nowrap;
  transition: background .20s, transform .12s;
}
.hero-topic:hover {
  background: rgba(0, 180, 255, .75);
  transform: translateY(-1px);
}
.hero-topic.active {
  background: #29a8ff;
  color: #ffffff;
}
/* ===== UNIFIED SECTION HEADERS (MATCH SECTION 6) ===== */
.section-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}
.section-intro {
  font-size: 1rem;
  color: #d6e8ff;
  opacity: .9;
  max-width: 800px;
  margin: 0 0 32px;
  line-height: 1.42;
}
/* ==========================
   GLOBAL MODULE-SECTION FIX
   ========================== */
.module-section {
  padding-top: 36px; /* PRO spacing – consistent across site */
}

/* Mobile refinement */
@media (max-width: 768px) {
  .module-section {
    padding-top: 10px; /* tighter on phones/tablets */
  }
}
/* ===== Mobile-Friendly Table Scroll ===== */
.elite-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.elite-table {
  width: 800px; /* keeps columns readable */
  min-width: 700px;
  border-collapse: collapse;
}

.elite-table th, .elite-table td {
  white-space: nowrap;
  padding: 10px 12px;
}

@media (max-width: 768px) {
  .elite-table-wrapper {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
      0 10px 24px rgba(0,0,0,0.6),
      0 0 0 1px rgba(15, 23, 42, 0.85);
  }
}

@media (max-width: 768px) {
  .drill-table {
    display: block;
    overflow-x: auto;
  }
  .drill-table tr th:last-child,
  .drill-table tr td:last-child {
    width: auto; /* allow scroll-driven layout on mobile */
  }
}

/* SECTION 11 — Expand External Drill Link Column (Desktop) */
.elite-table tbody tr td:last-child,
.elite-table thead tr th:last-child {
  width: 40% !important; /* expand column for links */
}

/* Ensure link section can wrap multiple pills */
.elite-table tbody tr td:last-child .link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.elite-table {
  table-layout: fixed;
}
/* Mobile Device Improvements */
@media (max-width: 768px) {
  .elite-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .elite-table tbody tr td:last-child,
  .elite-table thead tr th:last-child {
    width: auto !important; /* avoid squeezing on phones */
    white-space: normal;
  }
}
.elite-table {
  table-layout: fixed;
}
/* ===============================================
   SECTION 11 — Expand External Drill Link Column
   =============================================== */

/* Desktop: give external link column more width */
.external-link {
  width: 40% !important; /* increases final column width */
}

/* Ensure link buttons wrap nicely inside the cell */
.external-link .link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Improve table responsiveness on narrow screens */
@media (max-width: 768px) {
  .elite-table {
    display: block;
    overflow-x: auto;       /* allow horizontal scroll if needed */
    white-space: nowrap;
  }
  .elite-table th,
  .elite-table td {
    white-space: normal;    /* allow wrapping text */
  }
  .external-link {
    width: auto !important;  /* avoid column crush on phone */
    min-width: 260px;
  }
}
/* ================================
   ELITE TABLE COLUMN LAYOUT FIX
   ================================ */
.elite-table th:first-child,
.elite-table td:first-child {
  width: 18%; /* Level */
}

.elite-table th:nth-child(2),
.elite-table td:nth-child(2) {
  width: 40%; /* Goals - biggest */
}

.elite-table th:nth-child(3),
.elite-table td:nth-child(3) {
  width: 15%; /* Session Length */
}

.elite-table th:nth-child(4),
.elite-table td:nth-child(4) {
  width: 27% !important; /* External Link */
}

/* Mobile fallback */
@media (max-width: 768px) {
  .elite-table {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .elite-table th,
  .elite-table td {
    white-space: normal;
  }
}
/* ===============================
   ✨ GLOBAL ELITE TABLE OVERRIDE ✨
   =============================== */

.elite-table-wrapper {
  width: 100% !important;
  overflow-x: auto !important;
  margin: 0 auto 32px !important;
  padding: 0 !important;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
}

.elite-table {
  width: 100% !important;
  min-width: 760px !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.elite-table th,
.elite-table td {
  white-space: normal !important;
  padding: 12px 14px !important;
  text-align: left !important;
}

/* Column width balance */
.elite-table th:first-child,
.elite-table td:first-child {
  width: 18% !important;
}
.elite-table th:nth-child(2),
.elite-table td:nth-child(2) {
  width: 40% !important;
}
.elite-table th:nth-child(3),
.elite-table td:nth-child(3) {
  width: 15% !important;
}
.elite-table th:nth-child(4),
.elite-table td:nth-child(4) {
  width: 27% !important;
}

/* External link column layout */
.elite-table td.external-link .link-row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

/* Mobile */
@media (max-width: 768px) {
  .elite-table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
}
/* ======================================================
   ✨ GLOBAL PRO-POLISH — HERO + TITLES + NAV + TABLES ✨
   ====================================================== */

/* Tighten hero spacing globally */
.module-hero {
  padding-top: 28px !important;
  padding-bottom: 24px !important;
}

/* Better title and subtitle hierarchy */
.module-hero-title {
  margin-bottom: 6px !important;
}

.module-hero-subtitle {
  margin-bottom: 4px !important;
}

/* Align the underline and reduce excessive spacing */
.module-subline {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

/* Section body spacing rhythm */
.module-section {
  margin-top: 52px !important;
}

/* Mobile nav — show full menu with vertical scroll */
body.nav-open .site-nav {
  max-height: 72vh !important;
  overflow-y: auto !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}
/* =======================================
   FINAL GLOBAL SPACING & VISUAL RHYTHM
   ======================================= */

/* Hero should stand alone and breathe */
.module-hero {
  padding-top: 32px !important;
  padding-bottom: 28px !important;
}

/* Section grouping aligned across modules */
.module-section {
  margin-top: 72px !important;
}

/* Section headers should sit clearly above content blocks */
.section-layout,
.section-copy,
.elite-table-wrapper {
  margin-top: 28px !important;
}

@media (max-width: 768px) {
  /* Mobile hero still compact */
  .module-hero {
    padding-top: 22px !important;
    padding-bottom: 20px !important;
  }

  /* Increase readability on smaller viewports */
  .section-layout,
  .section-copy,
  .elite-table-wrapper {
    margin-top: 18px !important;
  }
}
/* Global tighten — remove giant top gap on all modules */
.module-section {
  padding-top: 38px;
}

/* Extra tighten above Section titles */
.section-title {
  margin-top: 0;
  padding-top: 0;
}

/* Mobile — reduce even more */
@media (max-width: 700px) {
  .module-section {
    padding-top: 26px;
  }
  .section-title {
    font-size: 1.45rem;
    line-height: 1.2;
  }
}
@media (max-width: 700px) {
  .module-card + .module-section,
  .section-card + .module-section {
    margin-top: 10px !important;
  }
}
/* Reduce excess space below top content blocks */
.module-card,
.section-card {
  padding-bottom: 20px !important;
  margin-bottom: 12px !important;
}

/* Ensure no double-spacing between cards + sections */
.module-card + .module-section,
.section-card + .module-section {
  margin-top: 0 !important;
}
/* Tighten spacing under topic cards before a new section */
.topic-card.full {
  margin-bottom: 10px !important;
  padding-bottom: 12px !important;
}

/* Ensure the next section does not re-add extra top margin */
.topic-card.full + .module-section {
  margin-top: 0 !important;
}
/* Remove default top padding when a section follows a topic card */
.topic-card.full + .module-section {
    padding-top: 12px !important; /* matches new tight spacing */
    margin-top: 0 !important;
}
/* Balanced spacing when a section follows a topic card */
.topic-card.full + .module-section {
    padding-top: 28px !important; /* was 12px — too tight */
    margin-top: 0 !important;
}
/* FINAL — Proper spacing after any topic card */
.topic-card.full + .module-section {
    padding-top: 36px !important;
}

/* Ensure unified hero rule does NOT override later sections */
.unified-hero + .module-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
