
/* If you prefer ALL centered: uncomment below */
/* .d17-tier-box .d17-sponsor-heading{ text-align:center; } */
/* ===== Home: Scoreboard ===== */
.scoreboard-section { max-width:1100px; margin:36px auto; padding:0 16px; }
.scoreboard-section h2 { margin-bottom:10px; }

/* ===== Home: Mini Calendar ===== */
.home-mini-calendar { max-width:1100px; margin: 26px auto 18px; padding: 0 16px; }
.home-mini-calendar h2 { display:flex; align-items:center; justify-content:space-between; margin:0 0 10px; }
.home-mini-calendar .view-all { font-size:.95rem; font-weight:700; color:#1B3D6D; text-decoration:none; }
.home-mini-calendar .view-all:hover { text-decoration:underline; }
.home-mini-calendar .d17-center { display:flex; justify-content:center; }
.home-mini-calendar .d17-center > div { width:100%; max-width:900px; margin:0 auto; }
.home-mini-calendar .d17-dayhdr { display:none !important; }
.home-mini-calendar .d17-day { border:0 !important; box-shadow:none !important; padding:0 !important; margin:0 !important; }
.mini-calendar-list { border:1px solid #E5E7EB; border-radius:12px; overflow:hidden; background:#fff; }
.mini-calendar-item { display:grid; grid-template-columns: 108px 1fr 220px; align-items:center; gap:.7rem; padding:.6rem .85rem; border-left:4px solid #1B3D6D; border-top:1px solid #EEF2F7; }
.mini-calendar-item:first-child { border-top:none; }
.mini-calendar-item .d17-time { text-align:center; font-weight:800; font-size:.95rem; border:1px solid #CBD5E1; border-radius:10px; padding:.3rem .45rem; background:#F8FAFC; }
.mini-calendar-item .d17-time small { display:block; font-size:.72rem; color:#64748b; margin-top:.05rem; }
.mini-calendar-item .d17-title { margin:0; font-size:1.05rem; font-weight:800; line-height:1.25; text-align:center; }
.mini-calendar-item .d17-title img.teamlogo { width:18px; height:18px; vertical-align:-2px; }
.mini-calendar-item .d17-loc { justify-self:end; max-width:220px; text-align:right; font-size:.88rem; color:#475569; }
.mini-calendar-item .d17-loc .line { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:900px){
  .mini-calendar-item { grid-template-columns: 100px 1fr; }
  .mini-calendar-item .d17-loc { grid-column: 1 / -1; justify-self:start; text-align:left; max-width:100%; }
}

.sponsor-card.tier-legacy img    { max-height: 100px; }
.sponsor-card.tier-gold img      { max-height: 84px; }
.sponsor-card.tier-silver img    { max-height: 70px; }
.sponsor-card.tier-veteran img   { max-height: 70px; filter: grayscale(0.2) contrast(1.1); }
.sponsor-card.tier-supporter img { max-height: 56px; }

/* ===== Tier accent system (subtle, professional) ===== */
:root{
  --tier-legacy:   #7C3AED;  /* purple */
  --tier-gold:     #E7B416;  /* gold   */
  --tier-silver:   #94A3B8;  /* slate  */
  --tier-veteran:  #14532D;  /* army green */
  --tier-support:  #1B365D;  /* navy */
}

/* Base card shell already exists; we add colored rings + faint glow */
.d17-tier-box{
  border-width: 1px;
  box-shadow: 0 2px 8px rgba(2,6,23,.06);
  transition: box-shadow .2s ease, border-color .2s ease;
}

/* Legacy (most prominent) */
.d17-tier-box.tier-legacy{
  border-color: color-mix(in oklab, var(--tier-legacy) 60%, #ffffff);
  box-shadow:
    0 12px 28px color-mix(in oklab, var(--tier-legacy) 18%, transparent),
    0 0 0 1px color-mix(in oklab, var(--tier-legacy) 25%, transparent),
    0 2px 8px rgba(2,6,23,.06);
}

/* Gold */
.d17-tier-box.tier-gold{
  border-color: color-mix(in oklab, var(--tier-gold) 55%, #ffffff);
  box-shadow:
    0 10px 24px color-mix(in oklab, var(--tier-gold) 14%, transparent),
    0 0 0 1px color-mix(in oklab, var(--tier-gold) 22%, transparent),
    0 2px 8px rgba(2,6,23,.05);
}

/* Silver */
.d17-tier-box.tier-silver{
  border-color: color-mix(in oklab, var(--tier-silver) 60%, #ffffff);
  box-shadow:
    0 8px 20px color-mix(in oklab, var(--tier-silver) 12%, transparent),
    0 0 0 1px color-mix(in oklab, var(--tier-silver) 20%, transparent),
    0 2px 6px rgba(2,6,23,.05);
}

/* Veteran-Owned */
.d17-tier-box.tier-veteran{
  border-color: color-mix(in oklab, var(--tier-veteran) 55%, #ffffff);
  box-shadow:
    0 8px 20px color-mix(in oklab, var(--tier-veteran) 10%, transparent),
    0 0 0 1px color-mix(in oklab, var(--tier-veteran) 18%, transparent),
    0 2px 6px rgba(2,6,23,.05);
}

/* Supporter */
.d17-tier-box.tier-supporter{
  border-color: color-mix(in oklab, var(--tier-support) 55%, #ffffff);
  box-shadow:
    0 8px 20px color-mix(in oklab, var(--tier-support) 10%, transparent),
    0 0 0 1px color-mix(in oklab, var(--tier-support) 18%, transparent),
    0 2px 6px rgba(2,6,23,.05);
}

/* Slightly amplify on hover/focus for interactivity */
.d17-tier-box:hover{
  box-shadow:
    0 14px 28px rgba(2,6,23,.10),
    0 0 0 2px currentColor; /* the 1px ring above gives currentColor a soft tint */
}

/* Logo color policy for a professional look */
.d17-tier-box.tier-legacy .sponsor-card img,
.d17-tier-box.tier-gold   .sponsor-card img{ filter:none; }                 /* full color */
.d17-tier-box.tier-silver .sponsor-card img,
.d17-tier-box.tier-supporter .sponsor-card img{ filter:grayscale(1) contrast(1.05) brightness(1.05); }
.d17-tier-box.tier-veteran .sponsor-card img{ filter:none; }                /* honor veteran-owned */
.d17-tier-box .sponsor-card:hover img{ filter:none; }                       /* restore color on hover */

/* ===== Sponsor Wall: Tier Logo Scaling (industry standard) ===== */

/* Premier / Legacy (≈$5K) */
.d17-tier-box.tier-legacy .sponsor-card img {
  max-height: 130px !important;
}

/* Gold (≈$2.5K) */
.d17-tier-box.tier-gold .sponsor-card img {
  max-height: 105px !important;
}

/* Silver (≈$1K) */
.d17-tier-box.tier-silver .sponsor-card img {
  max-height: 82px !important;
}

/* Veteran-Owned (≈$500) */
.d17-tier-box.tier-veteran .sponsor-card img {
  max-height: 82px !important;
}

/* Supporter / Community (≈$300) */
.d17-tier-box.tier-supporter .sponsor-card img {
  max-height: 64px !important;
}

/* Optional: increase spacing slightly for larger logos */
.d17-tier-box.tier-legacy .d17-sponsor-wrap.layout-grid,
.d17-tier-box.tier-gold .d17-sponsor-wrap.layout-grid {
  gap: 20px;
}

/* --- Tier sizing (tight ratios) --- */
.d17-tier-box.tier-legacy     .sponsor-card img { max-height: 130px !important; }
.d17-tier-box.tier-gold       .sponsor-card img { max-height: 105px !important; }
.d17-tier-box.tier-silver     .sponsor-card img { max-height:  82px !important; }

/* Veteran vs Community — DIFFERENT sizes */
.d17-tier-box.tier-veteran    .sponsor-card img { max-height:  78px !important; }
.d17-tier-box.tier-supporter  .sponsor-card img { max-height:  62px !important; }

/* Veteran: grayscale by default, restore color on hover */
.d17-tier-box.tier-veteran .sponsor-card img {
  filter: grayscale(1) contrast(1.05) brightness(1.03);
  transition: filter .15s ease;
}
.d17-tier-box.tier-veteran .sponsor-card:hover img { filter: none; }

/* Community remains grayscale (subtle), color on hover if you want parity */
.d17-tier-box.tier-supporter .sponsor-card img {
  filter: grayscale(.95) contrast(1.05) brightness(1.03);
}
.d17-tier-box.tier-supporter .sponsor-card:hover img { filter: none; }

/* Reasonable card widths so rows pack nicely across breakpoints */
.d17-tier-box.tier-legacy    .sponsor-card { flex: 0 1 280px; }
.d17-tier-box.tier-gold      .sponsor-card { flex: 0 1 240px; }
.d17-tier-box.tier-silver    .sponsor-card { flex: 0 1 200px; }
.d17-tier-box.tier-veteran   .sponsor-card { flex: 0 1 200px; }
.d17-tier-box.tier-supporter .sponsor-card { flex: 0 1 170px; }

/* Slightly tighter tier boxes */
.d17-tier-box { padding-block: 14px !important; }

/* Headings spacing */
.d17-tier-box .d17-sponsor-heading { margin: 8px 0 12px !important; }

/* Make the bigger tiers breathe a hair more */
.d17-tier-box.tier-legacy .d17-sponsor-wrap,
.d17-tier-box.tier-gold   .d17-sponsor-wrap { gap: 20px; }

/* --- Sponsor Wall Layout: consistent side-by-side alignment --- */


/* Control logo-card width by tier (auto-wraps nicely) */
.d17-tier-box.tier-legacy    .sponsor-card { flex: 0 1 280px; }
.d17-tier-box.tier-gold      .sponsor-card { flex: 0 1 240px; }
.d17-tier-box.tier-silver    .sponsor-card { flex: 0 1 220px; }
.d17-tier-box.tier-veteran   .sponsor-card { flex: 0 1 200px; }
.d17-tier-box.tier-supporter .sponsor-card { flex: 0 1 180px; }

/* Center odd logos perfectly */
.d17-tier-box .d17-sponsor-wrap > *:only-child {
  margin-inline: auto;
}

/* --- Normalize box backgrounds --- */
.d17-tier-box {
  background: #fff !important; /* neutralize color cast */
}

/* Re-apply glow accents on borders only (not backgrounds) */
.d17-tier-box.tier-veteran {
  border-color: #14532D !important;
  box-shadow:
    0 0 0 1px rgba(20,83,45,0.2),
    0 6px 18px rgba(20,83,45,0.1);
}

@media (min-width:900px){
  .d17-sponsor-wall .bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    justify-items: center;
  }
}

/* ========== PYRAMID: outer grid ========== */
.d17-sponsor-wall .d17-sponsor-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:28px;
  max-width:1100px;
  margin:0 auto;
  justify-items:center;
}

/* Legacy spans full width on top (centered, a bit narrower) */
.d17-sponsor-wall .tier-legacy{
  grid-column:1 / -1;
  width:85%;
}

/* Everyone else fills half width; the content inside will flow horizontally */
.d17-sponsor-wall .d17-tier-box{
  width:100%;
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:16px;
  padding:16px 18px 18px;
  box-shadow:0 2px 10px rgba(2,6,23,.05);
}

/* Tier titles */
.d17-sponsor-wall .d17-tier-title{
  margin:2px 0 12px;
  font-size:1.08rem;
  color:#0f172a;
}

/* Cards: keep them flat + consistent */
.d17-sponsor-wall .d17-tier-box .sponsor-card{
  min-height:96px;
  padding:12px;
  border:1px solid #E5E7EB;
  border-radius:12px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .15s ease, box-shadow .15s ease;
}
.d17-sponsor-wall .d17-tier-box .sponsor-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(2,6,23,.08);
}

/* Center last row when only 1 left (extra nudge on narrow rows) */
.d17-sponsor-wall .d17-tier-box .d17-sponsor-wrap:has(.sponsor-card:nth-child(odd):last-child){
  justify-content:center;
}

/* ========== Per-tier logo density + size (flex-basis + max-height) ========== */
/* Legacy: huge logo */
.d17-sponsor-wall .tier-legacy .sponsor-card{ flex: 0 1 clamp(280px, 60%, 520px); }
.d17-sponsor-wall .tier-legacy .sponsor-card img{ max-height: 120px; }

/* Gold: 2 per row comfortably */
.d17-sponsor-wall .tier-gold .sponsor-card{   flex: 0 1 clamp(240px, 45%, 360px); }
.d17-sponsor-wall .tier-gold .sponsor-card img{ max-height: 92px; }

/* Silver: slightly smaller than Gold */
.d17-sponsor-wall .tier-silver .sponsor-card{ flex: 0 1 clamp(220px, 45%, 320px); }
.d17-sponsor-wall .tier-silver .sponsor-card img{ max-height: 82px; }

/* Veteran-Owned: same row density as Silver, slightly smaller logos */
.d17-sponsor-wall .tier-veteran .sponsor-card{ flex: 0 1 clamp(210px, 45%, 300px); }
.d17-sponsor-wall .tier-veteran .sponsor-card img{ max-height: 76px; }

/* Community: denser; 2–3 per row depending on viewport */
.d17-sponsor-wall .tier-supporter .sponsor-card{ flex: 0 1 clamp(180px, 33%, 260px); }
.d17-sponsor-wall .tier-supporter .sponsor-card img{ max-height: 70px; }

/* ========== Grayscale policy (industry-consistent) ========== */
.d17-sponsor-wall .d17-tier-box .sponsor-card img{
  filter:grayscale(1) contrast(1.05) brightness(1.03);
  transition:filter .15s ease;
}
.d17-sponsor-wall .tier-legacy .sponsor-card img,
.d17-sponsor-wall .tier-gold   .sponsor-card img{
  filter:none;                                /* color allowed for top tiers */
}
.d17-sponsor-wall .d17-tier-box .sponsor-card:hover img{
  filter:none;                                /* restore color on hover */
}

/* === Sponsor WALL: 2-col pyramid layout ==================== */
.d17-sponsor-wall .d17-sponsor-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  align-items:start;
}

/* Legacy/Premier spans full width (top of pyramid) */
.d17-sponsor-wall .tier-legacy{ grid-column: 1 / -1; }

/* Tier card shell (glow + padding) */
.d17-tier-box{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:16px 18px 18px;
  box-shadow:0 1px 4px rgba(2,6,23,.05);
}

/* Tier title */
.d17-tier-title{
  margin:4px 0 12px;
  font: 700 1.15rem/1.2 system-ui;
  color:#1B3D6D;
}

/* === Tier glows (subtle) =================================== */
.tier-legacy   { box-shadow: 0 10px 26px rgba(99,102,241,.18); border-color:#E9E5FF; }
.tier-gold     { box-shadow: 0 10px 26px rgba(200,146,18,.18); border-color:#F3E7C1; }
.tier-silver   { box-shadow: 0 10px 26px rgba(100,116,139,.14); border-color:#EEF2F7; }
.tier-veteran  { box-shadow: 0 10px 26px rgba(20,83,45,.16);  border-color:#E2F0E7; }
.tier-supporter{ box-shadow: 0 10px 26px rgba(27,54,93,.16);  border-color:#E2ECF7; }

/* === Inside each tier: make logos appear two-up, centered === */
/* The plugin already outputs .d17-sponsor-wrap around cards. */
.d17-tier-box .d17-sponsor-wrap.layout-grid{
  grid-template-columns: repeat(2, minmax(160px,1fr));  /* two-up */
  gap: 14px;
  justify-items: center;       /* center single leftovers (odd count) */
  justify-content: center;     /* keep the whole row centered */
}

/* === Logo sizing by tier (largest -> smallest) ============== */
.d17-tier-box .sponsor-card img{ max-height: 60px; }
.tier-legacy    .sponsor-card img{ max-height: 110px; }
.tier-gold      .sponsor-card img{ max-height: 90px; }
.tier-silver    .sponsor-card img{ max-height: 72px; }
.tier-veteran   .sponsor-card img{ max-height: 64px; }
.tier-supporter .sponsor-card img{ max-height: 56px; }

/* Card aesthetics (kept light) */
.d17-tier-box .sponsor-card{
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:12px;
  padding:12px;
  min-height:90px;
  display:flex; align-items:center; justify-content:center;
  transition:transform .15s ease, box-shadow .15s ease;
}
.d17-tier-box .sponsor-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(2,6,23,.10);
}

/* === Grayscale policy ====================================== */
/* Full color for Legacy & Gold; grayscale elsewhere */
.d17-tier-box .sponsor-card img{ filter: grayscale(1) contrast(1.05) brightness(1.02); }
.tier-legacy .sponsor-card img,
.tier-gold   .sponsor-card img{ filter:none; }

/* Remove any odd background tint that slipped in */
.tier-veteran .sponsor-card,
.tier-veteran .sponsor-card img{ background:transparent !important; }

/* === Responsive ============================================ */
@media (max-width: 980px){
  .d17-sponsor-wall .d17-sponsor-grid{ gap:22px; }
  .d17-tier-box .d17-sponsor-wrap.layout-grid{
    grid-template-columns: repeat(2, minmax(140px,1fr));
  }
}
@media (max-width: 720px){
  .d17-sponsor-wall .d17-sponsor-grid{ grid-template-columns:1fr; }
  .tier-legacy{ grid-column:auto; }
  .d17-tier-box .d17-sponsor-wrap.layout-grid{
    grid-template-columns: 1fr;          /* stack on phones */
  }
  .tier-legacy    .sponsor-card img{ max-height: 92px; }
  .tier-gold      .sponsor-card img{ max-height: 80px; }
  .tier-silver    .sponsor-card img{ max-height: 68px; }
  .tier-veteran   .sponsor-card img{ max-height: 62px; }
  .tier-supporter .sponsor-card img{ max-height: 54px; }
}
/* ========== Subtle tier “glows” (matches your Sponsor page language) ========== */
.d17-sponsor-wall .tier-legacy{   box-shadow:0 10px 28px rgba(124,58,237,.18), 0 0 0 2px rgba(124,58,237,.10) inset; }
.d17-sponsor-wall .tier-gold{     box-shadow:0 10px 26px rgba(200,146,18,.14),  0 0 0 2px rgba(200,146,18,.10) inset; }
.d17-sponsor-wall .tier-silver{   box-shadow:0 8px 22px rgba(15,23,42,.12),     0 0 0 2px rgba(148,163,184,.18) inset; }
.d17-sponsor-wall .tier-veteran{  box-shadow:0 8px 22px rgba(20,83,45,.14),     0 0 0 2px rgba(20,83,45,.10) inset; }
.d17-sponsor-wall .tier-supporter{box-shadow:0 8px 22px rgba(27,54,93,.14),     0 0 0 2px rgba(27,54,93,.10) inset; }

/* ========== Mobile: single column pyramid ========== */
@media (max-width: 900px){
  .d17-sponsor-wall .d17-sponsor-grid{ grid-template-columns: 1fr; }
  .d17-sponsor-wall .tier-legacy{ width:100%; }
  /* tighten gaps a hair */
  .d17-sponsor-wall .d17-tier-box .d17-sponsor-wrap{ gap:14px 18px; }
}

/* === FORCE PYRAMID LAYOUT (resilient to extra wrappers) === */
.d17-sponsor-wall .d17-sponsor-grid{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-areas:
    "legacy legacy"
    "gold   silver"
    "veteran supporter" !important;
  gap: 28px !important;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Map the tier boxes into the named areas */
.d17-sponsor-wall .tier-legacy   { grid-area: legacy    !important; }
.d17-sponsor-wall .tier-gold     { grid-area: gold      !important; }
.d17-sponsor-wall .tier-silver   { grid-area: silver    !important; }
.d17-sponsor-wall .tier-veteran  { grid-area: veteran   !important; }
.d17-sponsor-wall .tier-supporter{ grid-area: supporter !important; }

/* Inside each tier, keep logos two-up and center odd leftovers */
.d17-sponsor-wall .d17-tier-box .d17-sponsor-wrap.layout-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(160px,1fr)) !important;
  gap: 14px !important;
  justify-items: center !important;
  justify-content: center !important;
}

/* Mobile: stack tiers + single-column logos */
@media (max-width: 720px){
  .d17-sponsor-wall .d17-sponsor-grid{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "legacy"
      "gold"
      "silver"
      "veteran"
      "supporter" !important;
    gap: 22px !important;
  }
  .d17-sponsor-wall .d17-tier-box .d17-sponsor-wrap.layout-grid{
    grid-template-columns: 1fr !important;
  }
}
/* ===== Home: Value Props ===== */
.value-props-enhanced { background: #F8FAFC; padding: 36px 0; }
.value-props-enhanced .value-grid { max-width:1100px; margin:0 auto; padding:0 16px; display:grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap:16px; }.value-props-enhanced .value-card { background:#fff; border:1px solid #E5E7EB; border-radius:12px; padding:18px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.value-props-enhanced .value-icon { font-size:1.6rem; }
.value-props-enhanced h3 { margin:.25rem 0 .5rem; }

/* ===== Home: Teams sampler ===== */
.d17-teams-wrap { max-width:1100px; margin:40px auto; padding:0 16px; }
.d17-teams-wrap .d17-teams-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:18px; }
.d17-card { background:#fff; border:1px solid #E5E7EB; border-radius:12px; padding:16px; display:flex; flex-direction:column; }
.d17-card .team-photo-banner img { width:100%; height:180px; object-fit:cover; border-radius:10px; }
.d17-card .team-actions { margin-top:auto; }
.team-button { display:inline-block; width:100%; padding:12px 16px; text-align:center; border-radius:10px; background: var(--d17-gold,#FFD700); color:#111; font-weight:700; text-decoration:none; }
.team-button:hover { filter:brightness(.95); }
.champion-badge { font-weight:800; margin-bottom:6px; color:#92400E; }

/* ===== Home: News grid ===== */
.home-news { max-width:1100px; margin: 40px auto; padding: 0 16px; }
.home-news .news-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.home-news .news-card { background:#fff; border:1px solid #E5E7EB; border-radius:12px; overflow:hidden; box-shadow:0 2px 6px rgba(15,23,42,.04); transition:transform .15s ease, box-shadow .15s ease; }
.home-news .news-card:hover { transform: translateY(-3px); box-shadow:0 6px 18px rgba(15,23,42,.08); }
.home-news .news-card img { width:100%; height: clamp(160px, 24vw, 240px); object-fit:cover; display:block; border-bottom:1px solid #E5E7EB; }
.home-news .news-badge { display:inline-block; margin: 10px 0 6px 12px; font:.85rem/1.2 system-ui; font-weight:700; background:#F8FAFC; border:1px solid #E5E7EB; border-radius:999px; padding:4px 10px; color:#0f172a; }
.home-news .news-card h3 { margin: 0 12px; font-size:1.1rem; line-height:1.3; }
.home-news .news-card h3 a { color:#0f172a; text-decoration:none; }
.home-news .news-card h3 a:hover { color:#00467F; }
.home-news .news-excerpt { color:#475569; font-size:.95rem; margin:6px 12px 12px; }
.home-news .news-meta { font-size:.85rem; color:#64748b; display:flex; align-items:center; justify-content:space-between; border-top:1px solid #E5E7EB; padding:8px 12px; }
.home-news .news-meta .read-more { color:#B91C1C; text-decoration:none; font-weight:600; }
.home-news .home-news-footer { text-align:center; margin-top:24px; }
.home-news .view-all-news { background:#00467F; color:#fff; padding:10px 24px; border-radius:10px; font-weight:600; text-decoration:none; }
.home-news .view-all-news:hover { background:#003763; }
/* ==== Home News: cleanup & correct image sizing ==== */

/* Reset any global height that was set on images inside cards */
.home-news .news-card img {
  height: auto;
  border-bottom: 0;
}

/* Use the .news-thumb wrapper for the crop (only one place to control height) */
.home-news .news-thumb,
.d17-home-news .news-thumb {
  height: clamp(160px, 24vw, 240px);
  overflow: hidden;
  background: #f1f5f9;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Make the image fill the wrapper and crop nicely */
.home-news .news-thumb img,
.d17-home-news .news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card shell (kept minimal so it won't fight theme styles) */
.home-news .news-card {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15,23,42,0.05);
}

/* Grid (if your wrapper is .home-news > .home-news-inner > .news-grid) */
.home-news .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* === Fix: Home News Header & CTA Alignment === */

/* Center the main heading */
.home-news .wp-block-heading,
.home-news h2 {
  text-align: center !important;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  margin-bottom: 1.2rem;
  color: #1B3D6D;
}

/* Center the grid wrapper if needed */
.home-news {
  text-align: center;
}

/* Ensure the footer CTA is centered below the grid */
.home-news-footer {
  text-align: center !important;
  margin-top: 24px;
}

/* Style the CTA button cleanly */
.home-news-footer .view-all-news {
  display: inline-block;
  background: #1B3D6D; /* matches hero/nav blue */
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.home-news-footer .view-all-news:hover {
  background: #0F2E56;
}

/* ===== Home: Sponsors section ===== */
.d17-sponsors { max-width:1100px; margin:48px auto; padding:0 16px; }
.d17-sponsors h2 { font-size:1.9rem; line-height:1.2; margin:0 0 .35rem; }
.d17-sponsors p.lead { color:#475569; margin:0 0 18px; }
.d17-sponsors .cta-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:12px 0 28px; }
.d17-sponsors .cta { display:inline-block; background:#00467F; color:#fff; padding:10px 16px; border-radius:10px; font-weight:700; text-decoration:none; }
.d17-sponsors .cta:hover { background:#003a69; }
.s-tier { display:flex; align-items:center; gap:10px; margin:26px 0 12px; }
.s-tier h3 { margin:0; font-size:1.2rem; color:#0f172a; }
.s-badge { font-size:.8rem; font-weight:800; color:#475569; background:#F1F5F9; border:1px solid #E5E7EB; border-radius:999px; padding:4px 10px; }
.s-premier { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:18px; margin-bottom:24px; }
.s-card { background:#fff; border:1px solid #E5E7EB; border-radius:14px; padding:18px; display:flex; align-items:center; justify-content:center; min-height:120px; transition:transform .15s ease, box-shadow .15s ease, filter .15s ease; box-shadow:0 1px 3px rgba(2,6,23,.05); }
.s-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(2,6,23,.08); }
.s-card img { max-width:100%; max-height:64px; object-fit:contain; display:block; filter:grayscale(1) contrast(1.05) brightness(1.05); transition:filter .15s ease; }
.s-card:hover img { filter:none; }
.s-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap:14px; }
.s-chip { background:#fff; border:1px solid #E5E7EB; border-radius:12px; padding:12px; display:flex; align-items:center; justify-content:center; min-height:88px; transition:transform .15s ease, box-shadow .15s ease; box-shadow:0 1px 2px rgba(2,6,23,.04); }
.s-chip:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(2,6,23,.08); }
.s-chip img { max-width:100%; max-height:46px; object-fit:contain; display:block; filter:grayscale(1); transition:filter .15s ease; }
.s-chip:hover img { filter:none; }
.d17-sponsors .partners-footnote { margin-top:18px; font-size:.95rem; color:#475569; }
.d17-sponsors .footer-cta { display:inline-block; margin-top:8px; }

/* Pack the grid tighter */
.d17-sponsor-wrap.layout-grid { 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 10px 0 18px;
}

/* Tier-based logo sizing */
.d17-sponsor-wrap .sponsor-card img { max-height: 60px; }

/* bigger at the top, step down per tier */
.sponsor-card.tier-legacy   img { max-height: 88px; }
.sponsor-card.tier-gold     img { max-height: 76px; }
.sponsor-card.tier-silver   img { max-height: 66px; }
.sponsor-card.tier-veteran  img { max-height: 66px; }  /* same as Silver, or tweak */
.sponsor-card.tier-supporter img { max-height: 56px; }

/* Cards a bit flatter and denser */
.sponsor-card { 
  min-height: 90px; 
  padding: 10px; 
}

/* Trim heading spacing */
.d17-sponsor-heading { 
  margin: 16px 0 6px; 
}

/* ===== Home: FAQs & Final CTA ===== */
.ai-friendly-faqs { background:#F8FAFC; padding:40px 0; }
.ai-friendly-faqs .container { max-width:1100px; margin:0 auto; padding:0 16px; }
.ai-friendly-faqs .faq-content { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:16px; }
.ai-friendly-faqs .faq-item { background:#fff; border:1px solid #E5E7EB; border-radius:12px; padding:16px; }
.final-cta-section { max-width:900px; margin:36px auto 60px; padding:0 16px; text-align:center; }

/* ===== D17 Home quick fixes (scoped) ===== */
.home .wrap, .home .entry-content { overflow: visible; }

/* 1) Slim Sponsor Strip */
.home .sponsor-strip { background: transparent; padding: 0; border: 0 !important; }
.home .sponsor-strip::before,
.home .sponsor-strip::after { display: none !important; }          /* nuke any theme “top border” */
.home .sponsor-strip .row{
  max-width:1100px; margin: 26px auto; padding: 10px 18px;
  display:flex; align-items:center; gap: 28px; justify-content: space-between;
  background:#fff; border:1px solid #E5E7EB; border-radius:16px;
  box-shadow:0 10px 26px rgba(2,6,23,.08);
}
.home .sponsor-strip .label{font-weight:800;color:#1B3D6D;margin-right:4px;}
.home .sponsor-strip img{height:40px;width:auto;filter:grayscale(1) contrast(1.05) brightness(1.05);}
@media (max-width:780px){ .home .sponsor-strip .row{flex-wrap:wrap; gap:14px; justify-content:center;} }

/* 2) Teams grid — uniform cards + no “cut off” buttons */
.home .d17-teams-wrap{max-width:1100px;margin:40px auto;padding:0 16px;}
.home .d17-teams-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px; align-items:stretch;
}
.home .d17-card{
  display:flex; flex-direction:column; height:100%;
  background:#fff; border:1px solid #E5E7EB; border-radius:14px;
  box-shadow:0 2px 8px rgba(0,0,0,.05); overflow:hidden;
}
.home .team-photo-banner{aspect-ratio:16/9; overflow:hidden;}
.home .team-photo-banner img{width:100%;height:100%;object-fit:cover;display:block;}
.home .coach-info{margin-top:8px;}
.home .team-actions{margin-top:auto; padding:14px 16px 18px;}
.home .team-button{
  display:block; width:100%; text-align:center;
  padding:12px 18px; border-radius:12px; font-weight:700;
  background:#1F2D44; color:#fff; text-decoration:none;
}
.home .team-button:hover{filter:brightness(.95);}
.home .d17-card.champion{border-color:#F59E0B;}
.home .d17-card.champion .team-button{background:#F59E0B; color:#1F2D44;}

/* 3) “See all teams” CTA as a button */
.home .teams-footer-link{ text-align:center; margin:12px 0 0; }
.home .teams-footer-link a{
  display:inline-block; background:#00467F; color:#fff; text-decoration:none;
  padding:10px 22px; border-radius:10px; font-weight:700;
}
.home .teams-footer-link a:hover{ background:#003a69; }

/* 4) News & Announcements (card layout and centered heading/CTA) */
.home .home-news{ max-width:1100px; margin:40px auto; padding:0 16px; }
.home .home-news > h2{ text-align:center; margin-bottom:12px; }
.home .home-news .news-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:24px;
}
.home .home-news .news-card{
  background:#fff; border:1px solid #E5E7EB; border-radius:12px; overflow:hidden;
  box-shadow:0 2px 6px rgba(15,23,42,.06); transition:transform .15s, box-shadow .15s;
}
.home .home-news .news-card:hover{ transform:translateY(-3px); box-shadow:0 8px 18px rgba(15,23,42,.10); }
.home .home-news .news-card img{ width:100%; height:180px; object-fit:cover; display:block; border-bottom:1px solid #E5E7EB; }
.home .home-news .news-badge{
  display:inline-block; margin:10px 0 6px 12px; font-size:.85rem; font-weight:700;
  background:#F8FAFC; border:1px solid #E5E7EB; border-radius:999px; padding:4px 10px; color:#0f172a;
}
.home .home-news .news-card h3{ margin:0 12px; font-size:1.1rem; line-height:1.3; }
.home .home-news .news-card h3 a{ color:#0f172a; text-decoration:none; }
.home .home-news .news-card h3 a:hover{ color:#00467F; }
.home .home-news .news-excerpt{ color:#475569; font-size:.95rem; margin:6px 12px 12px; }
.home .home-news .news-meta{
  font-size:.85rem; color:#64748b; display:flex; justify-content:space-between;
  border-top:1px solid #E5E7EB; padding:8px 12px;
}
.home .home-news .news-meta .read-more{ color:#B91C1C; font-weight:700; text-decoration:none; }
.home .home-news .home-news-footer{ text-align:center; margin-top:18px; }
.home .home-news .home-news-footer .view-all-news{
  background:#00467F; color:#fff; padding:10px 22px; border-radius:10px; text-decoration:none; font-weight:700;
}
.home .home-news .home-news-footer .view-all-news:hover{ background:#003a69; }

/* 5) FAQ tidy (cards) */
.home .ai-friendly-faqs .container{ max-width:1100px; margin:40px auto; padding:0 16px; }
.home .ai-friendly-faqs h2{ text-align:center; position:relative; }
.home .ai-friendly-faqs h2::after{ content:""; display:block; width:70px; height:3px; background:#C89212; margin:8px auto 0; border-radius:2px; }
.home .ai-friendly-faqs .faq-content{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:20px; margin-top:16px;
}
.home .ai-friendly-faqs .faq-item{
  background:#fff; border:1px solid #E5E7EB; border-radius:14px; padding:22px; box-shadow:0 2px 6px rgba(0,0,0,.04);
}

/* 6) Final CTA gradient */
.home .final-cta-section{
  background: linear-gradient(135deg, #0B3D91, #B22222);
  color:#fff; text-align:center; padding:44px 16px; border-radius:16px; max-width:1100px; margin:40px auto;
}
.home .final-cta-section .wp-block-heading{ color:#fff; margin-bottom:12px; }
.home .final-cta-section .wp-block-button__link{
  background:#FFD700; color:#0B3D91; border-radius:12px; padding:12px 22px; font-weight:800; text-decoration:none;
}
.home .final-cta-section .wp-block-button__link:hover{ filter:brightness(.95); }

/* ===== D17 — Homepage fixes (only on the Home page) ===== */

/* 1) Teams grid: kill masonry/columns, use real grid, equal height cards */
.home .d17-teams-wrap{max-width:1100px;margin:40px auto;padding:0 16px;}
.home .d17-teams-grid{
  display:grid !important;                         /* override any theme columns */
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
  align-items:stretch;
  column-count:unset !important;                   /* hard-stop masonry/columns */
}
.home .d17-teams-grid > *{
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
}
.home .d17-card{
  display:flex; flex-direction:column; height:100%;
  background:#fff; border:1px solid #E5E7EB; border-radius:14px;
  box-shadow:0 2px 8px rgba(0,0,0,.05); overflow:hidden;
}
.home .team-photo-banner{aspect-ratio:16/9; overflow:hidden;}
.home .team-photo-banner img{width:100%;height:100%;object-fit:cover;display:block;}
.home .coach-info{margin:8px 16px 0;}
.home .d17-card h3, .home .d17-card > p, .home .d17-card .contact-links{margin:8px 16px;}
.home .team-actions{margin-top:auto; padding:14px 16px 18px;}
.home .team-button{
  display:block; width:100%; text-align:center; padding:12px 18px;
  border-radius:12px; font-weight:700; text-decoration:none;
  background:#1F2D44; color:#fff;
}
.home .team-button:hover{filter:brightness(.95);}
.home .d17-card.champion{border-color:#F59E0B;}
.home .d17-card.champion .team-button{background:#F59E0B; color:#1F2D44;}

/* 2) “Recent Success” (your section uses .content-section + .success-feature-grid) */
.home .content-section{padding:0 16px;}
.home .content-section .content-container{max-width:1100px;margin:0 auto;}
.home .success-feature-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:20px; margin-top:14px;
}
.home .feature-card{
  background:#fff; border:1px solid #E5E7EB; border-radius:14px;
  padding:22px; box-shadow:0 2px 6px rgba(0,0,0,.04);
}
.home .section-header{ text-align:center; }
.home .section-header .gold-underline{ width:70px;height:3px;background:#C89212;border-radius:2px;margin:8px auto 0; }

/* 3) FAQ cards */
.home .ai-friendly-faqs .container{max-width:1100px;margin:40px auto;padding:0 16px;}
.home .ai-friendly-faqs h2{ text-align:center; position:relative; }
.home .ai-friendly-faqs h2::after{content:"";display:block;width:70px;height:3px;background:#C89212;border-radius:2px;margin:8px auto 0;}
.home .ai-friendly-faqs .faq-content{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:20px; margin-top:16px;
}
.home .ai-friendly-faqs .faq-item{
  background:#fff; border:1px solid #E5E7EB; border-radius:14px;
  padding:22px; box-shadow:0 2px 6px rgba(0,0,0,.05);
}

/* 4) Final CTA — match Join page gradient/buttons */
.home .final-cta-section,
.home .teams-final-cta{
  background: linear-gradient(135deg, #011E31 0%, #931F25 100%);
  color:#fff; text-align:center; padding:70px 0 80px; position:relative; overflow:hidden;
  border-radius:16px; max-width:1100px; margin:40px auto;
}
.home .final-cta-section .cta-wrap,
.home .teams-final-cta .cta-wrap{max-width:900px;margin:0 auto;padding:0 16px;position:relative;z-index:1;}
.home .final-cta-section::before,
.home .teams-final-cta::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.25);z-index:0;}
.home .final-cta-section h2,
.home .teams-final-cta h2{color:#fff;font-size:clamp(1.9rem,3vw,2.4rem);font-weight:800;margin-bottom:14px;text-shadow:0 2px 10px rgba(0,0,0,.4);}
.home .final-cta-section p,
.home .teams-final-cta p{color:#F8FAFC;margin:0 0 26px;line-height:1.6;font-size:1.1rem;}
.home .final-cta-section .cta-row,
.home .teams-final-cta .cta-row{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;}
/* Gold primary */
.home .final-cta-section .btn-primary,
.home .final-cta-section .wp-block-button__link.btn-primary,
.home .teams-final-cta .btn-primary,
.home .teams-final-cta .wp-block-button__link.btn-primary{
  background:#C89212 !important; color:#1B365D !important; font-weight:700;
  border-radius:999px; padding:12px 26px; text-decoration:none; border:2px solid #C89212 !important; transition:all .25s ease;
}
.home .final-cta-section .btn-primary:hover,
.home .teams-final-cta .btn-primary:hover{ background:#E3B23C !important; border-color:#E3B23C !important; }
/* Navy secondary */
.home .final-cta-section .btn-gold-outline,
.home .final-cta-section .wp-block-button__link.btn-gold-outline,
.home .teams-final-cta .btn-gold-outline,
.home .teams-final-cta .wp-block-button__link.btn-gold-outline{
  background:#1B365D !important; color:#fff !important; font-weight:700;
  border-radius:999px; padding:12px 26px; text-decoration:none; border:2px solid #1B365D !important; transition:all .25s ease;
}
.home .final-cta-section .btn-gold-outline:hover,
.home .teams-final-cta .btn-gold-outline:hover{ background:transparent !important; color:#fff !important; border-color:#fff !important; }

/* --- D17 Sponsor Strip: Tight alignment + no extra padding --- */

.home section.sponsor-strip {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 1100px !important;
}

/* The pill container itself */
.home section.sponsor-strip .row {
  display: flex !important;
  align-items: center !important;       /* vertically centers label + logos */
  justify-content: center !important;
  gap: 16px !important;

  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 16px !important;
  box-shadow:
    0 2px 10px rgba(2,6,23,.05),
    0 12px 40px rgba(200,146,18,.10) !important;

  padding: 4px 16px !important;         /* thinner vertical padding */
  margin: 26px auto !important;
}

/* Label */
.home section.sponsor-strip .label {
  font-weight: 800 !important;
  color: #1B3D6D !important;
  font-size: clamp(1.05rem, 1.2vw, 1.25rem) !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* Remove all plugin-added card/border styling */
.home section.sponsor-strip .sponsor-strip-item {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  line-height: 0 !important;
}

/* Make the logos perfectly centered vertically */
.home section.sponsor-strip .sponsor-strip-item img {
  height: 26px !important;              /* smaller, more balanced */
  max-height: 26px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
  filter: grayscale(1) contrast(1.05) brightness(1.05);
  transition: filter .15s ease;
}
.home section.sponsor-strip .sponsor-strip-item:hover img {
  filter: none;
}

/* Mobile */
@media (max-width: 780px) {
  .home section.sponsor-strip .row {
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  .home section.sponsor-strip .sponsor-strip-item img {
    height: 24px !important;
    max-height: 24px !important;
  }
}

/* --- Sponsor strip: kill old tiny cap, then set real size --- */

/* 1) Nuke any previous hard caps on images inside the strip */
.home section.sponsor-strip img {
  height: auto !important;
  max-height: none !important;
}

/* 2) Make the row center everything */
body.home section.sponsor-strip .row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
}

/* 3) Normalize the items/links so there’s no extra padding or baseline shift */
body.home section.sponsor-strip .row .sponsor-strip-item,
body.home section.sponsor-strip .row .sponsor-strip-item a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 0 !important;
  box-shadow: none !important;
}

/* 4) Finally, force the logo size (↑ specificity + !important) */
body.home section.sponsor-strip .row .sponsor-strip-item img,
body.home section.sponsor-strip .row .sponsor-strip-item a img {
  height: 64px !important;          /* adjust to taste */
  max-height: 64px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 !important;
  border: 0 !important;
  vertical-align: middle !important;
  filter: grayscale(1) contrast(1.05) brightness(1.05) !important;
  transition: filter .15s ease !important;
}

@media (max-width: 780px) {
  body.home section.sponsor-strip .row { gap: 16px !important; flex-wrap: wrap !important; }
  body.home section.sponsor-strip .row .sponsor-strip-item img,
  body.home section.sponsor-strip .row .sponsor-strip-item a img {
    height: 48px !important;
    max-height: 48px !important;
  }
}

section.sponsor-strip .sponsor-strip-item { filter: none !important; }

/* Stronger, warmer glow for the strip box */
body.home section.sponsor-strip .row {
  box-shadow:
    0 10px 24px rgba(2, 6, 23, 0.10),
    0 0 14px 3px rgba(255, 255, 255, 0.55),
    0 0 30px 5px rgba(27, 54, 93, 0.35); /* navy glow */
}

/* Optional: make it navy/neutral instead of gold */
body.home section.sponsor-strip .row.alt-glow {
  box-shadow:
    0 8px 20px rgba(2, 6, 23, 0.08),
    0 0 30px 5px rgba(27, 54, 93, 0.35); /* navy glow */
}

/* …but restore full color on hover/focus (anchor or span) */
section.sponsor-strip .sponsor-strip-item:hover img,
section.sponsor-strip .sponsor-strip-item:focus-visible img {
  filter: none !important;
}

/* FINAL OVERRIDE: restore color on hover/focus */
body.home section.sponsor-strip .row .sponsor-strip-item:is(:hover, :focus-visible) img {
  filter: none !important;
  -webkit-filter: none !important; /* just in case */
}