/**
 * case-study.css â Growth Hacking Lab
 * Scoped to .ghl-case-study-page to avoid conflicts with Elementor/parent theme.
 */

:root {
  --ghl-orange: #ff4d00;
  --ghl-orange-light: #fff2ec;
  --ghl-ink: #0f0f0f;
  --ghl-muted: #6b6b6b;
  --ghl-border: #e5e5e5;
  --ghl-bg: #fafaf9;
}

.ghl-case-study-page {
  font-family: 'Georgia', serif;
  background: var(--ghl-bg);
  color: var(--ghl-ink);
  line-height: 1.75;
  font-size: 17px;
}

/* ââ Hide Elementor header/footer on case study pages (case-study.css only loads here) ââ */
.elementor-location-header,
.elementor-location-footer { display: none !important; }

/* ââ Progress bar ââ */
#progress-bar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; background: var(--ghl-orange); width: 0;
  transition: width 0.1s linear;
}

/* ââ Topbar ââ */
.ghl-topbar {
  position: sticky; top: 0; z-index: 500;
  background: #fff; border-bottom: 1px solid var(--ghl-border);
  padding: 0 32px; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.ghl-topbar-logo { font-family: sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--ghl-ink); text-decoration: none; }
.ghl-topbar-logo span { color: var(--ghl-orange); }
.ghl-topbar-right { display: flex; align-items: center; gap: 24px; }
.ghl-topbar-link { font-family: sans-serif; font-size: 0.82rem; color: var(--ghl-muted); text-decoration: none; }
.ghl-topbar-cta { background: var(--ghl-orange); color: #fff !important; font-family: sans-serif; font-weight: 700; font-size: 0.78rem; padding: 8px 16px; border-radius: 6px; text-decoration: none; }

/* ââ Hero ââ */
.ghl-hero { background: #111; color: #fff; padding: 52px 40px 44px; }
.ghl-hero-inner { max-width: 1100px; margin: 0 auto; }
/* Hero icon wrap (Option C) */
.ghl-hero-icon-wrap { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.ghl-hero-app-icon { width: 80px; height: 80px; border-radius: 18px; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 20px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.1); }
.ghl-hero-icon-meta { display: flex; flex-direction: column; gap: 5px; }
.ghl-hero-app-label { font-family: sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ghl-hero-breadcrumb { font-family: sans-serif; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); margin-bottom: 0; }
.ghl-hero-breadcrumb a { color: rgba(255,255,255,0.35); text-decoration: none; }
.ghl-hero h1 { font-size: 2.1rem; line-height: 1.2; font-weight: 700; max-width: 780px; margin-bottom: 22px; }
.ghl-hero-meta { font-family: sans-serif; font-size: 0.78rem; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.ghl-hero-meta .dot { color: rgba(255,255,255,0.2); }
.ghl-hero-stats { display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; flex-wrap: wrap; }
.ghl-hero-stat { padding-right: 32px; margin-right: 32px; border-right: 1px solid rgba(255,255,255,0.1); }
.ghl-hero-stat:last-child { border-right: none; margin-right: 0; }
.hs-num { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.hs-label { font-family: sans-serif; font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-top: 5px; }

/* ââ App icon row ââ */
.ghl-app-icon-row { max-width: 1100px; margin: 0 auto; padding: 20px 40px 0; display: flex; align-items: center; gap: 14px; }
.ghl-app-icon-row img { width: 52px; height: 52px; border-radius: 12px; border: 2px solid var(--ghl-border); }
.ghl-app-name { font-family: sans-serif; font-weight: 700; font-size: 0.95rem; }
.ghl-app-cat { font-family: sans-serif; font-size: 0.75rem; color: var(--ghl-muted); }

/* ââ Mobile TOC ââ */
.ghl-mobile-toc { background: #fff; border-bottom: 1px solid var(--ghl-border); padding: 14px 20px 16px; }
.mts-label { font-family: sans-serif; font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ghl-muted); margin-bottom: 10px; }
.mts-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-family: sans-serif; font-size: 0.82rem; color: #333; text-decoration: none; border-bottom: 1px solid var(--ghl-border); }
.mts-item:last-child { border-bottom: none; }
.mts-num { font-size: 0.67rem; font-weight: 700; color: var(--ghl-orange); min-width: 18px; }

/* ââ Layout â mobile first ââ */
.ghl-layout { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; }
.ghl-main { order: 1; padding: 36px 0 40px; min-width: 0; }
.ghl-sidebar { order: 2; padding: 0 0 60px; display: flex; flex-direction: column; gap: 18px; }

@media (min-width: 1024px) {
  .ghl-layout { padding: 0 40px; display: grid; grid-template-columns: 1fr 292px; grid-template-areas: "main sidebar"; gap: 60px; align-items: start; }
  .ghl-main { grid-area: main; padding: 36px 0 80px; }
  .ghl-sidebar { grid-area: sidebar; padding: 36px 0 80px; position: sticky; top: 68px; }
  .ghl-mobile-toc { display: none !important; }
}

/* ââ At a Glance ââ */
.ghl-glance-box { background: #fff; border: 1.5px solid var(--ghl-border); border-radius: 12px; padding: 22px 24px; margin-bottom: 32px; font-family: sans-serif; }
.ghl-glance-label { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ghl-orange); margin-bottom: 14px; }
.ghl-glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ghl-glance-item { background: var(--ghl-bg); border: 1px solid var(--ghl-border); border-radius: 8px; padding: 12px 14px; }
.ghl-glance-item .gi-num { font-size: 1.25rem; font-weight: 800; color: var(--ghl-ink); line-height: 1; margin-bottom: 4px; }
.ghl-glance-item .gi-label { font-size: 0.72rem; font-weight: 600; color: var(--ghl-muted); line-height: 1.4; }

/* ââ Article content typography */
.ghl-content p { font-size: 1.02rem; line-height: 1.82; margin-bottom: 18px; color: #1f1f1f; }
.ghl-content strong { font-weight: 700; }
.ghl-content h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin: 36px 0 16px; }
.ghl-content h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin: 28px 0 12px; }
.ghl-content ul, .ghl-content ol { margin: 0 0 18px 22px; }
.ghl-content li { margin-bottom: 6px; line-height: 1.75; }
.ghl-content img { max-width: 100%; border-radius: 10px; border: 1px solid var(--ghl-border); margin: 22px auto; display: block; }
.ghl-content figure { margin: 22px 0; }
.ghl-content figcaption { font-family: sans-serif; font-size: 0.72rem; color: var(--ghl-muted); text-align: center; margin-top: 6px; }
.ghl-content blockquote { border-left: 3px solid var(--ghl-orange); background: var(--ghl-orange-light); border-radius: 0 8px 8px 0; padding: 14px 20px; margin: 22px 0; font-style: italic; }
.ghl-content a { color: var(--ghl-orange); }
.ghl-content hr { border: none; border-top: 1px solid var(--ghl-border); margin: 30px 0; }

.ghl-hr { border: none; border-top: 1px solid var(--ghl-border); margin: 30px 0; }

/* ââ Affiliate callout ââ */
.ghl-affiliate-callout { background: #fff; border: 1.5px solid var(--ghl-border); border-radius: 10px; padding: 18px 22px; margin: 22px 0; position: relative; overflow: hidden; font-family: sans-serif; }
.ghl-affiliate-callout::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--ghl-orange); }
.ghl-ac-label { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ghl-orange); margin-bottom: 6px; }
.ghl-ac-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.ghl-ac-desc { font-size: 0.85rem; line-height: 1.6; color: #333; margin-bottom: 10px; }
.ghl-ac-bottom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ghl-ac-link { color: var(--ghl-orange); font-weight: 700; text-decoration: none; font-size: 0.85rem; }
.ghl-ac-copy-chip { background: var(--ghl-orange-light); border: 1px solid #ffc9a8; color: #c13800; font-size: 0.75rem; font-weight: 700; padding: 4px 11px; border-radius: 4px; letter-spacing: 0.05em; font-family: monospace; cursor: pointer; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.ghl-ac-copy-chip:hover { background: #ffe0cc; }
.ghl-ac-copy-chip.ghl-copied { background: #e6f9ee; border-color: #8fd4a8; color: #1a7a3c; }
.ghl-ac-discount { font-size: 0.78rem; color: #22a040; font-weight: 700; }
.ghl-ac-note { font-family: sans-serif; font-size: 0.68rem; color: var(--ghl-muted); margin-top: 6px; }

/* ââ Dark Lab promo ââ */
.ghl-lab-promo-dark { background: var(--ghl-ink); border-radius: 12px; padding: 30px 32px; margin: 36px 0; color: #fff; font-family: sans-serif; }
.ghl-lpd-eyebrow { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ghl-orange); margin-bottom: 10px; }
.ghl-lab-promo-dark h3 { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 14px; }
.ghl-lpd-win { display: flex; gap: 8px; font-size: 0.84rem; color: #ddd; margin: 7px 0; }
.ghl-lpd-win::before { content: '\2192'; color: var(--ghl-orange); font-weight: 700; flex-shrink: 0; }
.ghl-lpd-btn { display: inline-block; background: var(--ghl-orange); color: #fff !important; font-family: sans-serif; font-weight: 700; font-size: 0.9rem; padding: 12px 24px; border-radius: 7px; text-decoration: none; margin-top: 18px; }
.ghl-lpd-note { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 8px; }

/* ââ Dark promo body (long-form CTA boxes) ââ */
.ghl-lpd-body { margin: 14px 0 4px; }
.ghl-lpd-body p { font-size: 0.86rem; color: rgba(255,255,255,0.75); line-height: 1.65; margin: 9px 0; }
.ghl-lpd-body p.ghl-lpd-highlight { color: var(--ghl-orange); font-weight: 600; }
.ghl-lpd-body p.ghl-lpd-italic { font-style: italic; color: rgba(255,255,255,0.55); }
.ghl-lpd-testimonials { margin: 14px 0 4px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }
.ghl-lpd-testimonials blockquote { margin: 0 0 12px; padding: 0; font-size: 0.82rem; color: rgba(255,255,255,0.65); font-style: italic; line-height: 1.55; }
.ghl-lpd-testimonials blockquote strong { color: #fff; font-style: normal; }
.ghl-lpd-testimonials blockquote cite { display: block; margin-top: 4px; font-style: normal; font-weight: 700; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ââ Related (bottom) ââ */
.ghl-related-label { font-family: sans-serif; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ghl-muted); margin-bottom: 12px; }
.ghl-related-list { display: flex; flex-direction: column; gap: 8px; }
.ghl-rel-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--ghl-border); border-radius: 8px; padding: 11px 14px; text-decoration: none; color: var(--ghl-ink); font-family: sans-serif; transition: border-color 0.13s; }
.ghl-rel-row:hover { border-color: var(--ghl-orange); }
.ghl-rel-row-icon { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--ghl-border); }
.ghl-rel-all { background: var(--ghl-orange-light); color: var(--ghl-orange); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.ghl-rel-row-body { flex: 1; min-width: 0; }
.ghl-rel-row-tag { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ghl-orange); margin-bottom: 2px; }
.ghl-rel-row-title { font-size: 0.82rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghl-rel-row-meta { font-size: 0.7rem; color: var(--ghl-muted); margin-top: 1px; }
.ghl-rel-row-arr { color: var(--ghl-border); font-size: 0.85rem; flex-shrink: 0; }

/* ââ Sidebar: TOCââ */
.ghl-sw-toc { background: #fff; border: 1.5px solid var(--ghl-border); border-radius: 10px; padding: 18px; font-family: sans-serif; }
.ghl-sw-toc-label { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ghl-muted); margin-bottom: 12px; }
.ghl-toc-item { display: flex; gap: 10px; padding: 5px 0; font-size: 0.8rem; color: #444; text-decoration: none; }
.ghl-toc-item:hover { color: var(--ghl-orange); }
.ghl-toc-num { font-size: 0.67rem; font-weight: 700; color: var(--ghl-orange); flex-shrink: 0; min-width: 18px; }
@media (max-width: 1023px) { .ghl-sw-toc { display: none; } }

/* ââ Sidebar: Tools ââ */
.ghl-sw-tools { background: #fff; border: 1.5px solid var(--ghl-border); border-radius: 10px; overflow: hidden; }
.ghl-sw-tools-header { background: var(--ghl-ink); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-family: sans-serif; }
.ghl-sw-tools-header span { font-size: 0.72rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; }
.ghl-badge { background: var(--ghl-orange); color: #fff; font-size: 0.62rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.ghl-sw-tool-item { border-bottom: 1px solid var(--ghl-border); }
.ghl-sw-tool-item:last-child { border-bottom: none; }
.ghl-sw-tool-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px 6px; text-decoration: none; color: var(--ghl-ink) !important; font-family: sans-serif; transition: background 0.12s; }
.ghl-sw-tool-row:hover { background: var(--ghl-orange-light); }
.ghl-str-code-row { padding: 0 16px 9px; }
.ghl-str-copy-chip { background: var(--ghl-orange-light); border: 1px solid #ffc9a8; color: #c13800; font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 4px; letter-spacing: 0.04em; font-family: monospace; cursor: pointer; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.ghl-str-copy-chip:hover { background: #ffe0cc; }
.ghl-str-copy-chip.ghl-copied { background: #e6f9ee; border-color: #8fd4a8; color: #1a7a3c; }
.ghl-str-icon { font-size: 1rem; flex-shrink: 0; }
.ghl-str-body { flex: 1; min-width: 0; }
.ghl-str-name { font-size: 0.8rem; font-weight: 700; }
.ghl-str-discount { font-size: 0.68rem; color: #22a040; font-weight: 600; }
.ghl-str-arr { color: var(--ghl-orange); font-size: 0.85rem; }

/* ââ Sidebar: Lab mini promo ââ */
.ghl-sw-lab-mini { background: var(--ghl-orange); border-radius: 10px; padding: 20px 18px; color: #fff; font-family: sans-serif; }
.ghl-slm-eyebrow { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; margin-bottom: 8px; }
.ghl-sw-lab-mini h3 { font-size: 0.95rem; font-weight: 800; line-height: 1.3; margin-bottom: 13px; color: #fff; }
.ghl-slm-win { display: flex; gap: 6px; font-size: 0.76rem; opacity: 0.92; margin: 5px 0; }
.ghl-slm-win::before { content: '\2713'; font-weight: 700; flex-shrink: 0; }
.ghl-slm-btn { display: block; background: #fff; color: var(--ghl-orange) !important; font-weight: 800; font-size: 0.84rem; text-align: center; padding: 11px; border-radius: 7px; text-decoration: none; margin-top: 16px; }
.ghl-slm-note { font-size: 0.7rem; text-align: center; margin-top: 7px; opacity: 0.65; }

/* ââ Sidebar: Newsletter ââ */
.ghl-sw-email { background: #fff; border: 1.5px solid var(--ghl-border); border-radius: 10px; padding: 18px; font-family: sans-serif; }
.ghl-sw-email h4 { font-size: 0.86rem; font-weight: 700; margin-bottom: 5px; }
.ghl-sw-email p { font-size: 0.76rem; color: var(--ghl-muted); margin-bottom: 12px; line-height: 1.5; }
.ghl-sw-email input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--ghl-border); border-radius: 6px; font-size: 0.82rem; outline: none; margin-bottom: 8px; }
.ghl-sw-email input:focus { border-color: var(--ghl-orange); }
.ghl-sw-email button { width: 100%; background: var(--ghl-ink); color: #fff; border: none; padding: 9px; border-radius: 6px; font-family: sans-serif; font-weight: 700; font-size: 0.82rem; cursor: pointer; }

/* ââ Sidebar: Related ââ */
.ghl-sw-related { background: #fff; border: 1.5px solid var(--ghl-border); border-radius: 10px; overflow: hidden; font-family: sans-serif; }
.ghl-sw-related-header { background: var(--ghl-bg); border-bottom: 1px solid var(--ghl-border); padding: 12px 16px; font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ghl-muted); }
.ghl-sw-rel-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ghl-border); text-decoration: none; color: var(--ghl-ink); transition: background 0.12s; align-items: flex-start; }
.ghl-sw-rel-item:last-child { border-bottom: none; }
.ghl-sw-rel-item:hover { background: var(--ghl-orange-light); }
.ghl-sw-rel-thumb { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--ghl-border); object-fit: cover; flex-shrink: 0; }
.ghl-sw-rel-emoji { width: 38px; height: 38px; border-radius: 8px; background: #1a1a2e; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; color: #fff; }
.ghl-sw-rel-body { flex: 1; min-width: 0; }
.ghl-sw-rel-cat { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ghl-orange); margin-bottom: 3px; }
.ghl-sw-rel-title { font-size: 0.78rem; font-weight: 700; line-height: 1.35; color: var(--ghl-ink); }

/* ââ Popup ââ */
#ghl-popup-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 9999;
  align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity 0.22s ease;
}
.ghl-popup { display: flex; width: 620px; max-width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,0.35); overflow: hidden; position: relative; transform: scale(0.95); opacity: 0; transition: transform 0.22s ease, opacity 0.22s ease; }
.ghl-pop-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; background: #ddd; border: none; border-radius: 4px; cursor: pointer; font-size: 15px; font-weight: 700; color: #555; display: flex; align-items: center; justify-content: center; z-index: 10; }
.ghl-pop-close:hover { background: #ccc; }
.ghl-pop-img { width: 46%; flex-shrink: 0; min-height: 360px; position: relative; }
.ghl-pop-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ghl-pop-form { flex: 1; padding: 44px 32px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; font-family: sans-serif; }
.ghl-pop-form h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.2; color: #111; letter-spacing: -0.3px; margin: 0; }
.ghl-pop-form input { width: 100%; border: none; border-bottom: 1.5px solid #ccc; outline: 1px solid rgba(97,97,97,0.3); border-radius: 8px; padding: 11px 12px; font-size: 1rem; font-family: sans-serif; background: transparent; transition: border-color 0.2s; }
.ghl-pop-form input:focus { border-color: #f08080; outline-color: #f08080; }
.ghl-pop-form button { width: 100%; padding: 14px; background: #f4a0a0; color: #fff; border: none; border-radius: 6px; font-family: sans-serif; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.ghl-pop-form button:hover { background: #e07878; }
.ghl-pop-privacy { font-size: 0.72rem; color: #999; line-height: 1.5; margin: 0; }
.ghl-pop-success { display: none; text-align: center; }
.ghl-pop-check { font-size: 2.2rem; margin-bottom: 10px; }
.ghl-pop-success p { font-size: 1rem; font-weight: 700; color: #111; }
.ghl-pop-success small { font-size: 0.82rem; color: #777; }

@media (max-width: 520px) {
  .ghl-popup { flex-direction: column; }
  .ghl-pop-img { width: 100%; min-height: 200px; }
  .ghl-pop-form { padding: 28px 22px; }
  .ghl-pop-form h2 { font-size: 1.35rem; }
}

@media (max-width: 1023px) {
  .ghl-hero { padding: 36px 20px 32px; }
  .ghl-hero h1 { font-size: 1.55rem; }
  .ghl-app-icon-row { padding-left: 20px; padding-right: 20px; }
  .ghl-topbar { padding: 0 16px; }
  .ghl-hero-app-icon { width: 60px; height: 60px; border-radius: 14px; }
  .ghl-hero-icon-wrap { gap: 14px; margin-bottom: 18px; }
  .ghl-topbar-link { display: none; }
}
