/* ===========================
   Back Nine Tournaments (scoped)
   =========================== */

.b9-tournaments {
  --b9t-bg: #0b0f14;
  --b9t-text: rgba(255, 255, 255, 0.92);
  --b9t-muted: rgba(255, 255, 255, 0.72);
  --b9t-border: rgba(255, 255, 255, 0.14);
  --b9t-accent: #55d6a7;  /* green */
  --b9t-accent2: #7aa7ff; /* blue */
  color: var(--b9t-text);
  background: transparent;
}

.b9-tournaments * { box-sizing: border-box; }
.b9-tournaments a { color: inherit; text-decoration: none; }

.b9t-hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 25% 12%, rgba(122,167,255,0.18), transparent 55%),
    radial-gradient(850px 520px at 85% 22%, rgba(85,214,167,0.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border-top: 1px solid var(--b9t-border);
  border-bottom: 1px solid var(--b9t-border);
  padding: clamp(2.25rem, 4vw, 4rem) 0;
  overflow: hidden;
}

.b9t-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

.b9t-container {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.b9t-content {
  max-width: 720px;
}

/* Force contrast in case global CSS overrides heading colors */
.b9-tournaments :is(h1,h2,h3,h4,h5,h6),
.b9-tournaments :is(.b9t-h1,.b9t-h2) {
  color: var(--b9t-text) !important;
}

.b9t-h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}

.b9t-h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.15;
  color: var(--b9t-text);
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.b9t-highlight {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--b9t-accent) 35%, var(--b9t-border));
  background: color-mix(in srgb, var(--b9t-accent) 16%, rgba(255,255,255,0.03));
  color: var(--b9t-text);
  white-space: nowrap;
}

.b9t-copy {
  margin: 0 0 1.35rem;
  color: var(--b9t-muted) !important;
  max-width: 60ch;
  line-height: 1.6;
}

.b9t-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.b9t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--b9t-border);
  background: rgba(255,255,255,0.06);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.b9t-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}

.b9t-btn--primary {
  background: color-mix(in srgb, var(--b9t-accent) 18%, rgba(255,255,255,0.06));
  border-color: color-mix(in srgb, var(--b9t-accent) 45%, var(--b9t-border));
}

@media (max-width: 680px) {
  .b9t-content { max-width: 100%; }
  .b9t-highlight { white-space: normal; }
}

.b9-tournaments {
  --b9t-hero-minh: 520px;
  --b9t-card-bg: rgba(255, 255, 255, 0.10);
  --b9t-card-border: rgba(255, 255, 255, 0.18);
  --b9t-card-shadow: 0 18px 60px rgba(0,0,0,0.45);
  --b9t-green: #8bc53f; /* closer to the live site button green */
}

/* Make hero feel like a “real” section, not a thin band */
.b9-tournaments .b9t-hero {
  min-height: var(--b9t-hero-minh);
  display: flex;
  align-items: center;
  padding: clamp(2.25rem, 4vw, 4.25rem) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--b9t-border);
  border-bottom: 1px solid var(--b9t-border);
}

/* Background layers: soft gradient + hex pattern + dots */
.b9-tournaments .b9t-hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(900px 520px at 25% 12%, rgba(122,167,255,0.22), transparent 55%),
    radial-gradient(850px 520px at 85% 22%, rgba(85,214,167,0.18), transparent 55%),
    /* dots (top-right) */
    radial-gradient(circle at 82% 20%, rgba(255,255,255,0.14) 2px, transparent 3px) 0 0/26px 26px,
    /* hex-ish subtle pattern using a tiny SVG */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2'%3E%3Cpath d='M30 2h60l30 50-30 50H30L0 52 30 2z'/%3E%3C/g%3E%3C/svg%3E") 0 0/220px 190px,
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.25));
  filter: saturate(1.05);
  pointer-events: none;
}

/* Edge vignette (makes the art pop) */
.b9-tournaments .b9t-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 520px at 50% 50%, transparent 35%, rgba(0,0,0,0.55));
  pointer-events: none;
}

.b9-tournaments .b9t-container {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  align-items: center;
}

/* Optional hero art image (left side) */
.b9-tournaments .b9t-hero--with-art .b9t-art {
  position: absolute;
  left: -80px;
  bottom: -60px;
  width: min(680px, 52vw);
  max-width: 680px;
  opacity: 0.95;
  filter: drop-shadow(0 25px 45px rgba(0,0,0,0.45));
  pointer-events: none;
  user-select: none;
}

/* Card layout (like the live tournaments page) */
.b9-tournaments .b9t-card {
  margin-left: auto;                 /* pushes it right */
  width: min(640px, 100%);
  border-radius: 18px;
  border: 1px solid var(--b9t-card-border);
  background: var(--b9t-card-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--b9t-card-shadow);
  overflow: hidden;
}

/* little sheen */
.b9-tournaments .b9t-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 40%);
  pointer-events: none;
}

/* Ensure content spacing is nice inside the card */
.b9-tournaments .b9t-content {
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  max-width: none;
}

/* Make the highlight look more like the original (solid-ish pill) */
.b9-tournaments .b9t-highlight {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.18);
}

/* CTA like live: brighter green + shadow */
.b9-tournaments .b9t-btn--primary {
  background: var(--b9t-green) !important;
  border-color: rgba(0,0,0,0.08) !important;
  color: #0b0f14 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.b9-tournaments .b9t-btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Mobile: center card + hide hero art so it doesn’t crush layout */
@media (max-width: 900px) {
  .b9-tournaments .b9t-card { margin-left: 0; }
  .b9-tournaments .b9t-hero--with-art .b9t-art { display: none; }
}

/* ===========================
   TOURNAMENTS – use LIVE hero background image
   =========================== */

.b9-tournaments .b9t-hero {
  /* match live */
  background-image: url("https://thebackninegolf.com/wp-content/uploads/2025/01/B9-Tournament-Golf-back-nine-golf-sign-up-top-golf-course.png") !important;
  background-position: top left !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;

  /* keep your sizing */
  min-height: clamp(560px, 78vh, 820px);
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 5rem) 0;

  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--b9t-border);
  border-bottom: 1px solid var(--b9t-border);
}

/* Optional: darken for readability (similar to Elementor overlay) */
.b9-tournaments .b9t-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

/* Ensure content is above overlay */
.b9-tournaments .b9t-container {
  position: relative;
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Card placement closer to live */
.b9-tournaments .b9t-card {
  width: min(560px, 92vw);
  margin-left: auto;
  margin-right: clamp(0px, 3vw, 42px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

/* Match live: green text highlight (no pill) */
.b9-tournaments .b9t-highlight {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #8bc53f !important;
  font-weight: 800 !important;
}

/* CTA like live */
.b9-tournaments .b9t-btn--primary {
  background: #8bc53f !important;
  border-color: rgba(0,0,0,0.08) !important;
  color: #0b0f14 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* If you previously added a hero "art" <img>, hide it now */
.b9-tournaments .b9t-art { display: none !important; }
