/* ==========================================================================
   RankStellar GEO Case Study — Aligned with Google Ads Case Study Design System
   Matches Google Ads Case Study colors, dark navy cards, typography & exact button system
   ========================================================================== */

.rs-case-study,
.rs-geo-citation {
  --rsc-orange: var(--theme-accent, #ff7a00);
  --rsc-navy: #050e1f;
  --rsc-ink: var(--theme-heading, #0b1f41);
  --rsc-muted: var(--theme-text, #475569);
  --rsc-line: #e2e8f0;
  --rsc-pale: #f8fafc;
  --rsc-cream: #fff8f2;
  --rsc-cream-border: #fde2cc;
  color: var(--theme-text, #475569);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.rs-case-study *,
.rs-geo-citation * {
  box-sizing: border-box;
}

.rs-cs-wrap,
.gcr-wrap {
  width: min(1400px, 92%);
  margin-inline: auto;
}

/* ==========================================================================
   Typography (Matching Google Ads Case Study)
   ========================================================================== */

.rs-case-study h1,
.rs-case-study h2,
.rs-case-study h3,
.rs-case-study h4,
.rs-geo-citation h1,
.rs-geo-citation h2,
.rs-geo-citation h3,
.rs-geo-citation h4 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-heading, #0b1f41);
}

.rs-case-study p,
.rs-case-study li,
.rs-geo-citation p,
.rs-geo-citation li {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--theme-text, #475569);
}

/* ==========================================================================
   Hero Section (Dark Navy & Orange Radial Glow matching Google Ads Hero)
   ========================================================================== */

.rs-cs-hero,
.gcr-hero {
  padding: 66px 0 58px;
  background-color: #050505;
  background-image:
    radial-gradient(
      ellipse at 78% 50%,
      rgba(255, 122, 0, 0.1),
      transparent 38%
    ),
    linear-gradient(115deg, #050e1f, #0a0a0a);
  color: #ffffff;
  border-bottom: 1px solid #1b344b;
}

.rs-cs-grid,
.gcr-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

/* Hero Eyebrow Pill */
.rs-cs-eyebrow,
.gcr-pill {
  display: inline-block;
  background: rgba(255, 138, 0, 0.12);
  border: 1px solid rgba(255, 138, 0, 0.25);
  color: var(--theme-accent, #ff7a00);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* line-height: 1.4; */
}

/* Hero Heading H1 */
.gas-hero-title,
.rs-cs-hero h1,
.gcr-hero h1 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 18px 0;
  color: #ffffff;
}

.gas-title-accent,
.gas-hero-title span,
.gas-hero-title strong,
.gas-hero-title em,
.rs-cs-hero h1 span,
.rs-cs-hero h1 strong,
.rs-cs-hero h1 em,
.gcr-hero h1 span,
.gcr-hero h1 strong,
.gcr-hero h1 em {
  color: var(--theme-accent, #ff7a00);
  font-style: normal;
}

/* Hero Description */
.gas-hero-desc,
.rs-cs-hero-copy > p,
.gcr-hero p {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #94A3B8;
  margin: 0 0 2.25rem;
  max-width: 540px;
}

/* Hero Meta */
.rs-cs-meta,
.gcr-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.rs-cs-meta > div,
.gcr-meta > div,
.gcr-meta span {
  display: block;
  color: #94a3b8;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.rs-cs-meta strong,
.gcr-meta strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

/* ==========================================================================
   Buttons (Matching Google Ads Case Study .gas-btn system exactly)
   ========================================================================== */

.gas-hero-ctas,
.gcr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

/* Primary Button (.gas-btn .gas-btn-primary and .gcr-btn .gcr-primary) */
.gas-btn,
.gcr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.875rem 1.75rem;
  min-height: 48px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.gas-btn-primary,
.gcr-primary {
  background: var(--theme-accent, #ff7a00);
  border-color: var(--theme-accent, #ff7a00);
  color: #ffffff !important;
}

.gas-btn-primary span,
.gcr-primary span {
  color: #ffffff !important;
}

.gas-btn-primary:hover,
.gas-btn-primary:focus-visible,
.gcr-primary:hover,
.gcr-primary:focus-visible {
  background: #e86e00;
  border-color: #e86e00;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.gas-btn i,
.gas-btn svg,
.gcr-btn i,
.gcr-btn svg {
  font-size: 0.875rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.gas-btn:hover i,
.gas-btn:hover svg,
.gcr-btn:hover i,
.gcr-btn:hover svg {
  transform: translateX(2px);
}

/* Secondary Button: .text-link (Matching "Get a Campaign Review" on Google Ads) */
/* .gas-hero-ctas .text-link,
.gcr-actions .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none !important;
  border: none !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  padding-bottom: 2px;
  transition: all 0.3s ease;
} */

.gas-hero-ctas .text-link span,
.gcr-actions .text-link span {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

.gas-hero-ctas .text-link i,
.gcr-actions .text-link i {
  font-size: 12px;
  color: #ffffff !important;
  transition: transform 0.3s ease, color 0.3s ease;
}

.gas-hero-ctas .text-link:hover,
.gcr-actions .text-link:hover {
  color: var(--theme-accent, #ff7a00) !important;
  border-bottom-color: var(--theme-accent, #ff7a00) !important;
}

.gas-hero-ctas .text-link:hover span,
.gcr-actions .text-link:hover span {
  color: var(--theme-accent, #ff7a00) !important;
}

.gas-hero-ctas .text-link:hover i,
.gcr-actions .text-link:hover i {
  color: var(--theme-accent, #ff7a00) !important;
  transform: translateX(4px);
}

/* Secondary / Outline Button alternative (.gas-btn-outline / .gcr-outline) */
.gas-btn-outline,
.gcr-hero .gcr-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.gas-btn-outline:hover,
.gcr-hero .gcr-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Visual / Dashboard Artwork (Dark Navy Card + Orange Indicators)
   ========================================================================== */

.rs-cs-hero-visual,
.gcr-hero-art {
  min-height: 250px;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #111827, #050e1f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 23px;
  padding: 24px;
}

.gcr-dashboard {
  background: #09172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  padding: 22px;
  width: 92%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.gcr-dashboard > b {
  display: block;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.gcr-brand-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 17px;
}

.gcr-brand-scores > div {
  background: #050e1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}

.gcr-brand-scores small,
.gcr-brand-scores span {
  display: block;
  font-family: var(--font-body, "Inter", sans-serif);
  color: #94a3b8;
  font-size: 12px;
}

.gcr-brand-scores strong {
  display: block;
  font-family: var(--font-heading, "Manrope", sans-serif);
  color: var(--theme-accent, #ff7a00);
  font-size: 24px;
  font-weight: 800;
  margin: 5px 0;
}

.gcr-brand-scores i,
.gcr-scorebox i {
  display: block;
  background: #1e293b;
  height: 5px;
  border-radius: 8px;
  margin-top: 8px;
  overflow: hidden;
}

.gcr-brand-scores em,
.gcr-scorebox em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffb35c, var(--theme-accent, #ff7a00));
  border-radius: 8px;
}

.rs-cs-float,
.gcr-float {
  position: absolute;
  right: 0;
  top: 12px;
  background: #0b1c33;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.rs-cs-float strong,
.gcr-float strong {
  display: block;
  font-family: var(--font-heading, "Manrope", sans-serif);
  color: #10b981;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
}

.rs-cs-float b,
.gcr-float b {
  display: block;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.rs-cs-float small,
.gcr-float small {
  display: block;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   Sections & Alternating Backgrounds (White & Light Pale #f8fafc)
   ========================================================================== */

.rs-cs-section,
.gcr-section {
  padding: 58px 0;
  border-bottom: 1px solid var(--rsc-line);
  background: #ffffff;
  color: var(--theme-text, #475569);
}

.rs-cs-section.gcr-tint,
.gcr-section.gcr-tint,
.rs-cs-section:nth-of-type(odd) {
  background: var(--rsc-pale);
}

.rs-cs-kicker,
.gcr-eyebrow {
  display: block;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--theme-accent, #ff7a00);
  margin-bottom: 8px;
  line-height: 1.4;
}

.rs-cs-section h2,
.gcr-section h2,
.rs-cs-section-head h2,
.gcr-head h2 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--theme-heading, #0b1f41);
  margin: 0 0 10px;
  font-weight: 800;
}

.rs-cs-section-head,
.gcr-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.gas-hero-ctas.gcr-actions .text-link {
    padding-bottom: 15px;
}

.rs-cs-section-head > p,
.gcr-head > p,
.gcr-intro {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--theme-text, #475569);
  max-width: 520px;
  margin: 0;
}

.gcr-footnote {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.8125rem !important;
  line-height: 1.55;
  color: var(--theme-text, #475569);
  margin-top: 20px;
}

/* ==========================================================================
   Tools Section Cards
   ========================================================================== */

.gcr-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
  margin: 24px 0;
}

.gcr-tools article,
.gcr-tools .rs-cs-softcard {
  background: #ffffff;
  border: 1px solid var(--rsc-line);
  border-radius: 16px;
  padding: 21px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gcr-tools article:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(11, 31, 65, 0.04);
}

.gcr-tools article b {
  display: block;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--theme-heading, #0b1f41);
  margin-bottom: 6px;
}

.gcr-tools article p {
  margin: 0;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--theme-text, #475569);
}

/* ==========================================================================
   Executive Summary & Metrics
   ========================================================================== */

.rs-cs-metrics,
.gcr-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.rs-cs-metric,
.gcr-metrics article {
  border: 1px solid #e1e9f3;
  background: linear-gradient(145deg, #f3f7fc, #ffffff);
  border-radius: 17px;
  padding: 22px;
}

.rs-cs-num,
.gcr-metrics strong {
  display: block;
  /* font-family: var(--font-heading, "Manrope", sans-serif); */
  font-size: 37px;
  font-weight: 900;
  color: var(--theme-accent, #ff7a00);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.rs-cs-num.rs-cs-green,
.gcr-metrics strong.green {
  color: #15965b;
}

.rs-cs-num.orange,
.gcr-metrics strong.orange {
  color: var(--theme-accent, #ff7a00);
}

.rs-cs-num.purple,
.gcr-metrics strong.purple {
  color: var(--theme-heading, #0b1f41);
}

.rs-cs-metric b,
.gcr-metrics b {
  display: block;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-heading, #0b1f41);
}

.rs-cs-metric small,
.gcr-metrics small {
  display: block;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--theme-text, #475569);
  margin-top: 4px;
}

/* ==========================================================================
   Challenge Section Cards (Warm Cream / Orange Accents)
   ========================================================================== */

.rs-cs-two,
.gcr-challenge {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 30px;
  align-items: center;
}

.rs-cs-cards3,
.gcr-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rs-cs-softcard,
.gcr-cards article {
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  padding: 21px;
}

.rs-cs-softcard h3,
.gcr-cards b {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #14243a;
  margin: 0 0 8px;
  display: block;
}

.rs-cs-softcard p,
.gcr-cards p {
  margin: 0;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
}

/* ==========================================================================
   Steps Section
   ========================================================================== */

.rs-cs-steps,
.gcr-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.rs-cs-steps article,
.gcr-steps article {
  padding: 15px;
  border-left: 1px solid var(--rsc-line);
}

.rs-cs-steps article > span,
.gcr-steps span {
  display: block;
  font-size: 12px;
  color: var(--theme-accent, #ff7a00);
  font-weight: 900;
}

.rs-cs-steps h3,
.gcr-steps b {
  display: block;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  margin: 8px 0;
  color: #17263b;
}

.rs-cs-steps p,
.gcr-steps p {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 12px;
  line-height: 1.55;
  color: var(--theme-text, #475569);
  margin: 0;
}

/* ==========================================================================
   Dark Navy Result Cards (Matching Google Ads Case Study .rs-cs-result)
   ========================================================================== */

.rs-cs-results-grid,
.gcr-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rs-cs-result,
.gcr-score {
  background: #050e1f;
  color: #ffffff;
  border: 1px solid #19354f;
  border-radius: 19px;
  padding: 24px;
}

.rs-cs-result h3,
.gcr-score h3 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.rs-cs-result > p,
.gcr-score > p {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 16px;
}

.gcr-scorebox {
  background: #0c1a2e;
  border: 1px solid #1a3350;
  border-radius: 10px;
  padding: 16px;
}

.gcr-scorebox b {
  display: block;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.gcr-scorebox strong {
  float: right;
  font-family: var(--font-heading, "Manrope", sans-serif);
  color: var(--theme-accent, #ff7a00);
  font-size: 24px;
  font-weight: 800;
}

.gcr-scorebox small {
  display: block;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #94a3b8;
  margin-top: 6px;
}

.rs-cs-chart-note,
.gcr-note {
  background: rgba(255, 138, 0, 0.08);
  border: 1px solid rgba(255, 138, 0, 0.2);
  color: #fed7aa;
  border-radius: 11px;
  padding: 13px 15px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-top: 14px;
}

.gcr-combined {
  margin-top: 16px;
}

/* ==========================================================================
   Table Breakdown Section
   ========================================================================== */

.gcr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rsc-line);
  border-radius: 12px;
  background: #ffffff;
}

.gcr-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  min-width: 620px;
}

.gcr-table-wrap th {
  background: #f1f5f9;
  color: var(--theme-heading, #0b1f41);
  text-align: left;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 2px solid var(--rsc-line);
}

.gcr-table-wrap td {
  padding: 14px 16px;
  border-top: 1px solid var(--rsc-line);
  color: #1e293b;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  line-height: 1.55;
}

.gcr-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.gcr-chip.good {
  background: #dcfce7;
  color: #15803d;
}

.gcr-chip.mid {
  background: #ffedd5;
  color: #c2410c;
}

/* Warm Cream Opportunity Highlight Banner */
.gcr-opportunity {
  background: var(--rsc-cream);
  border: 1px solid var(--rsc-cream-border);
  color: #334155;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 16px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  line-height: 1.6;
}

.rs-cs-images-only.single-image {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin-inline: auto;
}

/* ==========================================================================
   Final CTA Banner (Dark Navy + Orange Radial Glow)
   ========================================================================== */

.rs-cs-cta,
.gcr-cta {
  margin: 44px auto;
  background: #050e1f;
  background-image:
    radial-gradient(
      circle at 88% 50%,
      rgba(255, 122, 0, 0.12),
      transparent 45%
    ),
    linear-gradient(115deg, #050e1f 0%, #0a172e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #ffffff;
}

.rs-cs-cta > div,
.gcr-cta > div {
  max-width: 600px;
}

.rs-cs-cta > div > span,
.gcr-cta > div > span {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--theme-accent, #ff7a00);
}

.rs-cs-cta h2,
.gcr-cta h2 {
  color: #ffffff;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: clamp(26px, 3vw, 35px);
  line-height: 1.12;
  font-weight: 800;
  margin: 8px 0;
}

.rs-cs-cta p,
.gcr-cta p {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 14px;
  color: #c9d8eb;
  line-height: 1.6;
  margin: 0;
}

.rs-cs-cta .gas-btn,
.gcr-cta .gcr-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================================================
   Responsive Breakpoints (Desktop, Tablet & Mobile Parity)
   ========================================================================== */

@media (max-width: 900px) {
  .rs-cs-grid,
  .gcr-hero-grid,
  .rs-cs-two,
  .gcr-challenge {
    grid-template-columns: 1fr;
  }
  .rs-cs-metrics,
  .gcr-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .rs-cs-cards3,
  .gcr-cards {
    grid-template-columns: 1fr;
  }
  .gcr-tools {
    grid-template-columns: repeat(2, 1fr);
  }
  .rs-cs-steps,
  .gcr-steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 15px;
  }
  .rs-cs-section-head,
  .gcr-head {
    display: block;
  }
  .rs-cs-section-head > p,
  .gcr-head > p {
    margin-top: 12px;
  }
  .rs-cs-results-grid,
  .gcr-score-grid {
    grid-template-columns: 1fr;
  }
  .rs-cs-cta,
  .gcr-cta {
    display: block;
    padding: 28px;
  }
  .rs-cs-cta .gas-btn,
  .gcr-cta .gcr-btn {
    margin-top: 16px;
  }
}

@media (max-width: 767.98px) {
  .rs-case-study .rs-cs-hero h1,
  .gas-hero-title,
  .gcr-hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.12;
  }
  .rs-case-study .rs-cs-section h2,
  .gcr-section h2,
  .gcr-head h2 {
    font-size: clamp(1.625rem, 6vw, 2rem);
    line-height: 1.2;
  }
  .rs-cs-cta h2,
  .gcr-cta h2 {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
    line-height: 1.15;
  }
  .rs-case-study p,
  .rs-case-study li,
  .rs-geo-citation p,
  .rs-geo-citation li {
    font-size: 1rem;
    line-height: 1.65;
  }
  .rs-cs-num,
  .gcr-metrics strong {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .rs-cs-hero,
  .gcr-hero {
    padding: 42px 0;
  }
  .gas-hero-title,
  .rs-cs-hero h1,
  .gcr-hero h1 {
    font-size: 36px;
    letter-spacing: -1.4px;
    line-height: 1.12;
  }
  .rs-cs-meta,
  .gcr-meta {
    gap: 13px;
  }
  .rs-cs-section,
  .gcr-section {
    padding: 40px 0;
  }
  .rs-cs-section h2,
  .gcr-section h2,
  .gcr-head h2 {
    font-size: 1.5rem;
  }
  .gcr-tools,
  .rs-cs-cards3,
  .gcr-cards,
  .rs-cs-results-grid,
  .gcr-score-grid {
    grid-template-columns: 1fr;
  }
  .rs-cs-metrics,
  .gcr-metrics {
    gap: 9px;
  }
  .rs-cs-metric,
  .gcr-metrics article {
    padding: 15px;
  }
  .rs-cs-num,
  .gcr-metrics strong {
    font-size: 29px;
  }
  .rs-cs-steps,
  .gcr-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .rs-cs-hero-visual,
  .gcr-hero-art {
    min-height: 200px;
    padding: 16px;
  }
  .rs-cs-float,
  .gcr-float {
    right: -3px;
  }
  .rs-cs-cta,
  .gcr-cta {
    padding: 24px;
  }
  .gas-hero-ctas,
  .gcr-actions {
    gap: 0.75rem;
  }
  .gas-hero-ctas .gas-btn,
  .gcr-actions .gcr-btn {
    width: 100%;
    max-width: 320px;
  }
}


/* ==========================================================================
   FINAL SHARED CASE-STUDY TYPE + BUTTON SYSTEM
   Google Ads and GEO case studies: keep visual sizing consistent.
   ========================================================================== */
.rs-case-study,
.rs-geo-citation {
  font-size: 16px;
  line-height: 1.65;
}
.rs-case-study p,
.rs-case-study li,
.rs-geo-citation p,
.rs-geo-citation li,
.gas-page p,
.gas-page li {
  font-size: 16px;
  line-height: 1.65;
}
.rs-case-study h1,
.rs-geo-citation h1,
.gas-hero-title {
  font-size: clamp(2.65rem, 4.3vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.rs-case-study h2,
.rs-geo-citation h2,
.gads-section-heading h2,
.gads-two-col h2,
.gads-faq h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.rs-case-study h3,
.rs-geo-citation h3,
.gads-service-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}
/* .rs-case-study .rs-cs-eyebrow,
.rs-geo-citation .gcr-pill,
.gads-page .gads-eyebrow {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .09em;
} */
.rs-case-study .rs-cs-grid p,
.rs-geo-citation .gcr-hero p,
.gads-page .gads-lead {
  font-size: 16px;
  line-height: 1.7;
}

/* One shared primary/outline button geometry */
.rs-case-study .rs-cs-btn,
.rs-case-study .rs-cs-cta a,
.rs-geo-citation .gcr-btn,
.gads-page .gas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.rs-case-study .rs-cs-btn-primary,
.rs-case-study .rs-cs-cta a,
.rs-geo-citation .gcr-btn-primary,
.gads-page .gas-btn-primary {
  background: var(--theme-accent, #ff7a00);
  border: 1px solid var(--theme-accent, #ff7a00);
  color: #fff !important;
}
.rs-case-study .rs-cs-btn-primary:hover,
.rs-case-study .rs-cs-cta a:hover,
.rs-geo-citation .gcr-btn-primary:hover,
.gads-page .gas-btn-primary:hover {
  background: #e86e00;
  border-color: #e86e00;
  color: #fff !important;
  transform: translateY(-2px);
}
.rs-case-study .rs-cs-btn-secondary,
.rs-geo-citation .gcr-btn-outline,
.gads-page .gas-btn-secondary {
  background: #111827;
  border: 1px solid #374151;
  color: #fff !important;
}
.rs-case-study .rs-cs-btn-secondary:hover,
.rs-geo-citation .gcr-btn-outline:hover,
.gads-page .gas-btn-secondary:hover {
  background: #1f2937;
  border-color: #64748b;
  color: #fff !important;
  transform: translateY(-2px);
}
.rs-geo-citation .gcr-btn span,
.rs-geo-citation .gcr-btn i,
.gads-page .gas-btn span,
.gads-page .gas-btn i {
  font-size: 14px;
  line-height: 1;
}
@media (max-width: 767px) {
  .rs-case-study h1,
  .rs-geo-citation h1,
  .gads-page .gas-hero-title {
    font-size: clamp(2rem, 8vw, 2.65rem);
    line-height: 1.12;
  }
  .rs-case-study h2,
  .rs-geo-citation h2,
  .gads-page .gads-section-heading h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
    line-height: 1.2;
  }
  .rs-case-study p,
  .rs-case-study li,
  .rs-geo-citation p,
  .rs-geo-citation li,
  .gads-page p,
  .gads-page li {
    font-size: 15px;
    line-height: 1.65;
  }
  .rs-case-study .rs-cs-btn,
  .rs-geo-citation .gcr-btn,
  .gads-page .gas-btn {
    min-height: 46px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* SEO case study: four independent result cards with optional image-only mode */
.rs-seo-four-result-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-seo-result-card { min-width: 0; }
.rs-seo-result-card-image { display: block; width: 100%; height: 100%; min-height: 220px; max-height: 360px; object-fit: contain; border-radius: 10px; }
@media (max-width: 767px) { .rs-seo-four-result-cards { grid-template-columns: 1fr; } }


/* GEO case study: four independently editable result cards / image-only cards */
.gcr-results-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.gcr-result-card {
  min-width: 0;
  margin: 0;
}
.gcr-result-image-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #19354f;
  border-radius: 19px;
  background: #050e1f;
  aspect-ratio: 16 / 9;
}
.gcr-result-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 767px) {
  .gcr-results-four { grid-template-columns: 1fr; }
}

/* Hero visual: uploaded image mode */
.rs-cs-hero-visual.gcr-hero-art-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}
.rs-cs-hero-visual .gcr-hero-uploaded-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 22px;
}
