/* ==========================================================================
   Pickleball for beginners — /pickleball-for-beginners-des-moines-iowa/
   Loaded on this page only (after pages.css). Every rule is prefixed .bg- so
   nothing here can affect the homepage or any other page.
   ========================================================================== */

/* Hero: subtle court-line pattern behind the copy and the lead card */
.bg-hero .wrap { position: relative; z-index: 1; }
.bg-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' fill='none' stroke='%23183248' stroke-width='2' preserveAspectRatio='none'%3E%3Cpath d='M40 40H960V560H40Z M500 40V560 M40 190H960 M40 410H960 M270 190V410 M730 190V410'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Section 2: three photo cards with a small label on each photo */
.bg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 3.4vw, 48px); }
.bg-card { overflow: hidden; display: flex; flex-direction: column; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,30,44,.05), 0 12px 32px rgba(16,30,44,.07); transition: transform .4s var(--ease), box-shadow .3s; }
.bg-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16,30,44,.06), 0 18px 40px rgba(16,30,44,.12); }
.bg-card__fig { position: relative; }
.bg-card__img { aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; }
.bg-tag { position: absolute; z-index: 3; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-family: var(--f-mono); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(16,30,44,.12); }
.bg-card__b { padding: 22px 22px 26px; }
.bg-card__n { font-family: var(--f-mono); font-size: .64rem; font-weight: 600; letter-spacing: .14em; color: var(--teal-ink); }
.bg-card h3 { margin-top: 8px; font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.bg-card p { margin-top: 8px; color: var(--ink-2); }

/* Section 3: court diagram */
.bg-court { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: auto; margin: 0; padding: 8px 0; overflow: visible; }
.bg-court figcaption, .bg-serve figcaption { margin-top: 10px; text-align: center; font-size: .86rem; color: var(--ink-3); }

/* Section 4: rule cards on the navy section, plus a legal-serve diagram */
.bg-rulewrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(30px, 3.6vw, 52px); }
.bg-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.bg-rule { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px; border-radius: 22px; background: rgba(247,245,239,.06); border: 1px solid var(--line-dark); transition: transform .4s var(--ease), background-color .3s; }
.bg-rule:hover { transform: translateY(-4px); background: rgba(247,245,239,.1); }
.bg-rule.is-key { border-color: rgba(168,217,91,.7); background: rgba(168,217,91,.1); }
.bg-rule__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 800; }
.bg-rule h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.22; color: var(--on-dark); }
.bg-rule p { margin-top: 6px; font-size: .96rem; color: var(--on-dark-2); }
.bg-visual { padding: 18px 16px 14px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0,0,0,.22); }

/* Section 5: note and button under the equipment cards */
.bg-note { max-width: 62ch; margin: clamp(24px, 3vw, 36px) auto 0; text-align: center; }
.bg-btn { margin-top: 22px; }
.bg-note + .bg-btn { text-align: center; }

/* Section 6: local intro and FAQ under the lesson steps */
.bg-local { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); align-items: start; margin-top: clamp(44px, 5vw, 80px); padding-top: clamp(36px, 4vw, 60px); border-top: 1px solid var(--line); }
.bg-local__copy .yl-faq__h { margin-bottom: 14px; }

@media (max-width: 1023px) {
  .bg-cards { grid-template-columns: minmax(0, 1fr); }
  .bg-card { flex-direction: row; }
  .bg-card__fig { flex: 0 0 42%; }
  .bg-card__img { aspect-ratio: auto; height: 100%; }
  .bg-rulewrap { grid-template-columns: minmax(0, 1fr); }
  .bg-visual { max-width: 320px; margin: 0 auto; }
  .bg-local { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bg-card { flex-direction: column; }
  .bg-card__fig { flex: none; }
  .bg-card__img { aspect-ratio: 16 / 10; height: auto; width: 100%; }
  .bg-rules { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-card, .bg-rule { transition: none; }
}
