/* ==========================================================================
   Couples & Group pickleball lessons — /couples-group-pickleball-lessons-des-moines-iowa/
   Loaded on this page only (after pages.css). Every rule is prefixed .cg-
   so nothing here can affect the homepage or any other page.
   ========================================================================== */

/* Doubles positioning: diagram + four learning cards */
.cg-pos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(26px, 4vw, 64px); align-items: center; margin-top: clamp(28px, 3.6vw, 52px); }
.cg-pos > * { min-width: 0; }
.cg-skills { margin-top: 0; }

.cg-diagram { margin: 0; padding: clamp(14px, 2vw, 24px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,30,44,.05), 0 24px 60px rgba(16,30,44,.12); }
.cg-diagram svg { display: block; width: 100%; max-width: 460px; height: auto; margin-inline: auto; }
.cg-diagram figcaption { margin-top: 12px; font-size: .88rem; color: var(--ink-3); text-align: center; }
.cg-nvz { fill: rgba(90,135,181,.16); }
.cg-mid { fill: rgba(201,230,77,.38); }
.cg-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.cg-net { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.cg-tx { fill: var(--ink); font: 700 13px/1 var(--f-body, inherit); }
.cg-tx--s { font-weight: 600; font-size: 11.5px; fill: var(--ink-2); }
.cg-pl { fill: var(--ink); }
.cg-pl-t { fill: var(--on-dark); font: 800 16px/1 var(--f-body, inherit); }
.cg-ball { fill: var(--lime); stroke: var(--ink); stroke-width: 1.6; }
.cg-path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-dasharray: 5 6; stroke-linecap: round; }
.cg-move { fill: none; stroke: var(--teal-ink); stroke-width: 3; stroke-linecap: round; }
.cg-arrowhead { fill: context-stroke; }

/* Communication: photo with subtle speech bubbles */
.cg-photo { position: relative; }
.cg-photo .pg-fig { box-shadow: var(--shadow); border-radius: 28px; }
.cg-bubble { position: absolute; z-index: 4; padding: 10px 18px; border-radius: 20px 20px 20px 6px; background: var(--card); color: var(--ink); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; box-shadow: 0 10px 30px rgba(16,30,44,.2); pointer-events: none; }
.cg-bubble--a { left: clamp(12px, 3%, 28px); top: clamp(12px, 5%, 30px); }
.cg-bubble--b { right: clamp(12px, 3%, 28px); bottom: clamp(48px, 14%, 80px); border-radius: 20px 20px 6px 20px; background: var(--lime); }

/* Shot selection: three action-photo cards */
.cg-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 3.4vw, 48px); }
.cg-act { overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--teal); box-shadow: 0 1px 2px rgba(16,30,44,.05), 0 14px 36px rgba(16,30,44,.08); transition: transform .4s var(--ease), box-shadow .3s; }
.cg-act:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16,30,44,.06), 0 22px 46px rgba(16,30,44,.14); }
.cg-act .pg-fig, .cg-aud .pg-fig { width: 100%; aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; }
.cg-act > div { padding: 20px 22px 24px; }
.cg-act h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.cg-act p { margin-top: 6px; color: var(--ink-2); font-size: .98rem; }

/* Audience: four image-led cards (inside the navy section) */
.cg-auds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(30px, 3.6vw, 52px); }
.cg-aud { overflow: hidden; border-radius: 22px; background: rgba(247,245,239,.06); border: 1px solid var(--line-dark); transition: transform .4s var(--ease), background-color .3s; }
.cg-aud:hover { transform: translateY(-4px); background: rgba(247,245,239,.1); }
.cg-aud .pg-fig { aspect-ratio: 16 / 11; }
.cg-aud > div { padding: 18px 20px 22px; }
.cg-aud h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.02em; color: var(--on-dark); }
.cg-aud p { margin-top: 6px; font-size: .96rem; color: var(--on-dark-2); }

@media (max-width: 1023px) {
  .cg-pos { grid-template-columns: minmax(0, 1fr); }
  .cg-acts { grid-template-columns: minmax(0, 1fr); }
  .cg-act { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .cg-act .pg-fig { height: 100%; aspect-ratio: auto; min-height: 150px; }
  .cg-auds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cg-act { grid-template-columns: minmax(0, 1fr); }
  .cg-act .pg-fig { aspect-ratio: 16 / 10; height: auto; }
  .cg-auds { grid-template-columns: minmax(0, 1fr); }
  .cg-bubble { font-size: .95rem; padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { .cg-act, .cg-aud { transition: none; } }
