/* Birthday Guide page — extends styles.css */

.g-wrap { margin-inline: auto; max-width: 1200px; }
.g-h { font-size: 48px; }
.g-sec .rte { color: var(--body); }
.rte p + p, .rte p + ul, .rte ul + p { margin-top: 0.8em; }
.rte ul { margin: 0.8em 0; padding-left: 1.4em; text-align: left; }
.rte li + li { margin-top: 0.3em; }
.rte a { color: var(--accent); text-underline-offset: 3px; }
.g-h + .rte, .g-h + .sp + .rte { margin-top: 16px; }
.g-img { width: 100%; margin-inline: auto; }
.g-img img { width: 100%; border-radius: 8px; }

/* Gradient banners (top and bottom) */
.g-banner {
  background: linear-gradient(289.09deg, #4010ff 7.44%, #ff57ae 34.19%, #ff2a27 56.63%, #ffa304 82.25%);
  color: #fff; overflow: hidden;
}
.g-banner__inner {
  display: grid; grid-template-columns: 6fr 4fr; align-items: stretch;
  width: 90%; max-width: 1800px; margin-inline: auto;
}
.g-banner__text { align-self: center; padding: 70px 40px 70px 0; }
.g-banner__text .g-h { color: #fff; max-width: 560px; }
.g-banner--top .g-banner__text .g-h { font-size: 56px; }
.g-banner__text .rte { margin-top: 14px; max-width: 560px; color: #fff; }
.g-banner__text .btn { margin-top: 24px; }
.g-banner__media { display: flex; align-items: flex-end; min-height: 320px; }
.g-banner__media img { width: 100%; }

/* Comparison table */
.tbl-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; text-align: left; font-size: 18px; }
.cmp th, .cmp td { padding: 20px; border: 1px solid #d9d4f2; }
.cmp thead th, .cmp thead td { background: var(--star); border-color: var(--star); color: #fff; font-weight: 400; }
.cmp tbody th { color: var(--ink); font-size: 22px; font-weight: 400; }
.cmp .is-hb th, .cmp .is-hb td { background: #d9d4f2; color: var(--ink); font-weight: 700; }

/* Image beside text */
.g-case { margin-top: 20px; }
.g-case .case__media img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Card grids (benefits, checklist) */
.card-grid { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.card-grid + .card-grid { margin-top: 30px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card-grid--2 + .card-grid { margin-top: 20px; }
.card-grid--1 { grid-template-columns: 1fr; }
.card-grid .feature { width: auto; }
.card-grid .feature img { width: 40px; height: 40px; }

.logo-grid--3 { grid-template-columns: repeat(3, 1fr); margin-block: 15px 40px; }
.logo-grid--3 img { max-height: 55%; }

.g-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.g-pair img { width: 100%; }

/* Numbered steps */
.step { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; text-align: left; }
.step img { width: 56px; height: 56px; flex: none; object-fit: contain; }
.step h3 { font-size: 28px; }
.step + .rte { text-align: left; }
.guide .rte strong { color: var(--ink); }

/* Groups: tips panels and stat blocks */
.grp { display: flex; flex-direction: column; margin-block: 40px; }
.grp .grp { margin-bottom: 0; }
.grp > .g-h { font-size: 32px; text-align: center; }
.cols { display: flex; flex-wrap: wrap; justify-content: center; }
.col { flex: 1 1 0; min-width: 0; }
.col--full { flex: 0 0 100%; }
.col--half { flex: 0 0 calc(50% - 15px); }
.cols--stats .col--half { flex-basis: 50%; }
.col--card {
  padding: 24px;
  background: #fff; border-radius: 10px;
  box-shadow: 8px 8px 32px 0 rgba(0, 0, 0, 0.1);
  text-align: center;
}
.col--head { padding: 20px; background: var(--star); color: #fff; text-align: center; }
.col--head .rte, .col--head .rte strong { color: #fff; font-size: 24px; font-weight: 700; }
.col--stat { padding: 24px 20px; border: 1px solid var(--star); text-align: center; }
.col--stat .rte { color: var(--body); }
.col--stat .rte + .rte { margin-top: 4px; color: var(--ink); font-size: 40px; font-weight: 700; line-height: 1.2; }

@media (max-width: 989px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 749px) {
  .g-h, .g-banner--top .g-banner__text .g-h { font-size: 35px; }
  .g-wrap { width: 92% !important; }
  .g-sec { padding-left: 0 !important; padding-right: 0 !important; }
  .g-banner__inner { grid-template-columns: 1fr; }
  .g-banner__text { padding: 50px 0 10px; }
  .g-banner__media { min-height: 0; }
  .card-grid--3, .card-grid--2, .g-pair { grid-template-columns: 1fr; }
  .card-grid, .card-grid + .card-grid { gap: 16px; margin-top: 16px; }
  .logo-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cols { flex-direction: column; }
  .col, .col--half, .cols--stats .col--half { flex: 1 1 auto; }
  .grp { padding-left: 16px !important; padding-right: 16px !important; }
  .step h3 { font-size: 22px; }
  .step img { width: 44px; height: 44px; }
  .cmp th, .cmp td { padding: 12px; font-size: 15px; }
  .cmp tbody th { font-size: 16px; }
}

/* Case study page additions */
.case--flip .case__media { order: 2; }
.case-page .g-case { margin-top: 0; margin-bottom: 40px; }
.case-page .g-case .case__text { padding: 35px 50px; }
.case-page .g-h:not([style*="font-size"]) { font-size: 32px; }
.case-page .g-sec .g-h + .rte { margin-top: 12px; }
.col--third { flex: 1 1 0; padding: 20px; text-align: center; }
.col--third .g-h:not([style*="font-size"]) { margin-top: 20px; font-size: 26px; }
.col--third .g-img img { border-radius: 8px; }
.step--text { align-items: center; max-width: 900px; margin-inline: auto; }
.step--text img { width: 65px; height: 65px; }
.step--text h3 { font-size: 36px; }
.step--text p { margin-top: 6px; }
@media (max-width: 749px) {
  .case--flip .case__media { order: 0; }
  .case-page .g-case .case__text { padding: 24px 4px 0; }
  .case-page .g-h:not([style*="font-size"]) { font-size: 26px; }
  .step--text h3 { font-size: 20px; }
}
