/*
Theme Name:  Good For Free
Description: Modern news & content theme — Good For Free.
Version:     1.4.0
Author:      Good For Free
Text Domain: goodforfree
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette */
  --c-bg:        #fff;
  --c-primary:   #0f1729;
  --c-secondary: #47556a;
  --c-body:      #1e2a3b;
  --c-gold:      #d4a853;
  --c-gold-bg:   rgba(212,168,83,.08);
  --c-teal:      #164e63;
  --c-navy:      #1a2744;
  --c-hdr-bdr:   rgba(15,23,42,.06);
  --c-search-bg: #f0f2f5;
  --c-card-bdr:  rgba(15,23,42,.07);
  --c-divider:   rgba(15,23,42,.07);

  /* Gradients */
  --grad-btn:     linear-gradient(135deg,#1a2744 0%,#164e63 100%);
  --grad-overlay: linear-gradient(0deg,rgba(8,12,22,.92) 0%,rgba(8,12,22,.45) 55%,transparent 100%);
  --grad-subtle:  linear-gradient(135deg,rgba(22,78,99,.04) 0%,rgba(26,39,68,.02) 100%);

  /* Typography */
  --font:  'Urbanist', sans-serif;

  /* Layout */
  --hdr-h:   58px;       /* header height */
  --cont:    1400px;     /* max content width */

  /* Spacing scale — tight 2-3 px base */
  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 6px;
  --sp-4: 8px;
  --sp-5: 12px;
  --sp-6: 16px;
  --sp-7: 20px;
  --sp-8: 24px;

  /* Radii */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow:    0 1px 8px rgba(15,23,41,.06);
  --shadow-md: 0 4px 20px rgba(15,23,41,.10);
}

/* ============================================================
   RESET
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0 }
html                  { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body                  { font-family: var(--font); font-size: 16px; line-height: 1.5;
                        color: var(--c-body); background: var(--c-bg);
                        -webkit-font-smoothing: antialiased }
a                     { color: inherit; text-decoration: none }
img,svg,video         { max-width: 100%; height: auto; display: block }
ul,ol                 { list-style: none }
button                { font-family: var(--font); cursor: pointer; border: none;
                        background: none; padding: 0 }
input,textarea,select { font-family: var(--font) }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-6);
  background: var(--grad-btn); color: #fff;
  padding: 10px 20px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 14px; z-index: 9999;
  transition: top .1s;
}
.skip-link:focus { top: 8px }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   HEADER
   Logo pinned left  |  Search bar ABSOLUTELY CENTRED  |  Settings pinned right
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-hdr-bdr);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--hdr-h);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(15,23,41,.10) }

/*
  Three-zone layout: left / centre / right
  The centre zone is position:absolute so the search bar
  sits exactly in the middle of the header regardless of
  logo or settings widths.
*/
.header-inner {
  max-width: var(--cont);
  margin: 0 auto;
  padding: 0 var(--sp-7);
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;          /* anchor for .header-search-centre */
}

/* ── Logo (left, fixed width zone) ─────────────── */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.site-logo img,
.site-logo svg { height: 32px; width: auto; max-width: 130px; object-fit: contain }

/* ── Search — absolutely centred ───────────────── */
.header-search-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  max-width: calc(100% - 320px);   /* keeps clear of logo + settings */
  z-index: 1;
}

.header-search-wrap {
  display: flex;
  align-items: center;
  background: var(--c-search-bg);
  border-radius: var(--r-pill);
  height: 38px;
  overflow: visible;              /* dropdown escapes */
  position: relative;
}

/* Engine picker */
.search-engine-selector { position: relative; flex-shrink: 0 }

.engine-toggle {
  display: flex; align-items: center; gap: var(--sp-1);
  padding: 0 var(--sp-4) 0 var(--sp-5);
  height: 38px;
  border-right: 1px solid rgba(15,23,42,.10);
  cursor: pointer;
  color: var(--c-secondary);
  transition: color .15s;
  border-radius: var(--r-pill) 0 0 var(--r-pill);
}
.engine-toggle:hover { color: var(--c-primary) }
.engine-icon       { display: flex; align-items: center }
.engine-chevron    { opacity: .5; transition: transform .2s; flex-shrink: 0 }
.engine-toggle[aria-expanded="true"] .engine-chevron { transform: rotate(180deg) }

.engine-dropdown {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 0;
  background: #fff;
  border: 1px solid var(--c-card-bdr);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  min-width: 156px;
  padding: var(--sp-1) 0;
  z-index: 300;
  list-style: none;
}
.engine-option {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-size: 13px; font-weight: 500; color: var(--c-primary);
  cursor: pointer;
  transition: background .12s;
}
.engine-option:hover           { background: var(--c-search-bg) }
.engine-option.engine-active   { color: var(--c-teal); font-weight: 700 }

/* Search form */
.header-search-form {
  flex: 1;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0 var(--sp-6);
  height: 38px;
}
.header-search-form input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  font-family: var(--font); font-size: 13px;
  color: var(--c-primary);
}
.header-search-form input::placeholder { color: var(--c-secondary); opacity: .7 }
.header-search-form svg { flex-shrink: 0; color: var(--c-secondary); opacity: .6 }

/* ── Header right (settings + mobile controls) ── */
.header-right {
  margin-left: auto;
  display: flex; align-items: center; gap: var(--sp-2);
  flex-shrink: 0;
  z-index: 2;
}

.header-settings-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--c-secondary);
  transition: background .15s, color .15s;
}
.header-settings-btn:hover { background: var(--c-search-bg); color: var(--c-primary) }

/* Suppress legacy elements */
.meals-badge, .btn-invite { display: none !important }

/* ── Mobile controls (hidden on desktop) ────────── */
.mobile-search-toggle,
.mobile-menu-toggle { display: none }

.mobile-menu-toggle {
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 34px; height: 34px;
  padding: var(--sp-1);
  border-radius: var(--r-sm);
  transition: background .15s;
}
.mobile-menu-toggle:hover { background: var(--c-search-bg) }
.hamburger-bar {
  display: block; width: 18px; height: 2px;
  background: var(--c-primary); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mobile-menu-toggle.is-open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.mobile-menu-toggle.is-open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0) }
.mobile-menu-toggle.is-open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

.mobile-search-toggle {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm); color: var(--c-secondary);
}
.mobile-search-bar { display: none }
.mobile-nav        { display: none }

/* ============================================================
   SHORTCUT ICONS — tight vertical padding (2-3 px base)
   ============================================================ */
.shortcut-icons-bar {
  background: #fff;
  border-bottom: 1px solid var(--c-hdr-bdr);
}
.shortcut-icons-inner {
  max-width: var(--cont);
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-7);     /* 12px top/bottom */
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.shortcut-icons-inner::-webkit-scrollbar { display: none }

.shortcut-item {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-2);                      /* 4px between icon + label */
  padding: 0 var(--sp-7);
  text-decoration: none; flex-shrink: 0;
}
.shortcut-item .icon-wrap {
  width: 46px; height: 46px;            /* slightly smaller = tighter */
  border-radius: 50%;
  background: var(--c-search-bg);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .15s, transform .15s;
}
.shortcut-item:hover .icon-wrap {
  box-shadow: 0 3px 10px rgba(15,23,41,.13);
  transform: translateY(-1px);
}
.shortcut-item .icon-wrap svg { width: 24px; height: 24px }
.shortcut-item span {
  font-size: 10px; font-weight: 500;
  color: var(--c-secondary); white-space: nowrap;
}

/* ============================================================
   CATEGORY PILLS — minimal height
   ============================================================ */
.category-nav {
  background: #fff;
  border-bottom: 1px solid var(--c-hdr-bdr);
  position: sticky; top: var(--hdr-h); z-index: 100;
}
.category-nav-inner {
  max-width: var(--cont); margin: 0 auto;
  padding: 0 var(--sp-7);
  display: flex; align-items: center; gap: var(--sp-1);
  height: 44px;
  overflow-x: auto; scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar { display: none }

.cat-pill {
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-6);     /* 4px 16px */
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  color: var(--c-secondary);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.cat-pill:hover   { background: var(--c-search-bg); color: var(--c-primary) }
.cat-pill.active  { background: var(--c-primary); color: #fff; font-weight: 600 }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.gff-breadcrumbs {
  font-size: 12px; color: var(--c-secondary);
  margin-bottom: var(--sp-6);
}
.gff-breadcrumbs ol {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1);
}
.gff-breadcrumbs li { display: flex; align-items: center; gap: var(--sp-1) }
.gff-breadcrumbs a { color: var(--c-teal); transition: opacity .15s }
.gff-breadcrumbs a:hover { opacity: .75 }
.gff-breadcrumbs .bc-sep { opacity: .4 }
.gff-breadcrumbs [aria-current="page"] { color: var(--c-primary); font-weight: 600 }

/* ============================================================
   TOP SECTION — Carousel (left 60%) + Panel (right 40%)
   ============================================================ */
.home-top-section {
  max-width: var(--cont); margin: 0 auto;
  padding: var(--sp-6) var(--sp-7) 0;   /* 16px top */
  display: grid;
  grid-template-columns: minmax(0,3fr) minmax(0,2fr);
  gap: var(--sp-6);
  align-items: start;
}

/* ============================================================
   HEADLINE CAROUSEL
   ============================================================ */
.headline-carousel {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--c-primary);
  aspect-ratio: 16/9;
  min-height: 320px; max-height: 440px;
  user-select: none;
}
.carousel-track  { position: absolute; inset: 0 }
.carousel-slide  {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
}
.carousel-slide.is-active { opacity: 1; pointer-events: auto }

.cs-bg           { position: absolute; inset: 0 }
.cs-bg img       { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.cs-bg-placeholder { position: absolute; inset: 0; background: var(--grad-btn); opacity: .5 }
.cs-overlay      {
  position: absolute; inset: 0;
  background: linear-gradient(0deg,rgba(8,12,22,.92) 0%,rgba(8,12,22,.45) 55%,transparent 100%);
}

.cs-top          { position: absolute; top: 16px; left: 18px; display: flex; gap: var(--sp-3); z-index: 2 }
.cs-badge        {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.18); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-5);
  font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .03em;
}

.cs-content      { position: absolute; bottom: 48px; left: 18px; right: 18px; z-index: 2 }
.cs-source-row   { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4) }
.cs-initials     {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 800; color: #fff; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.3);
}
.cs-source { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.9) }
.cs-sep    { font-size: 11px; color: rgba(255,255,255,.4) }
.cs-time   { font-size: 11px; color: rgba(255,255,255,.7) }
.cs-title  {
  font-size: 21px; font-weight: 800; color: #fff;
  line-height: 1.25; text-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Prev/Next */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.20); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.carousel-btn:hover { background: rgba(255,255,255,.35) }
.carousel-prev { left: 12px }
.carousel-next { right: 12px }

/* Dots */
.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--sp-2); z-index: 10;
}
.cs-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer;
  transition: background .2s, width .25s;
}
.cs-dot.is-active { background: #fff; width: 20px; border-radius: var(--r-pill) }

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.home-right-panel { display: flex; flex-direction: column; gap: var(--sp-5) }

/* Banner card */
.banner-card {
  display: flex; align-items: stretch;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-card-bdr);
  background: #fff; overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-images {
  flex: 0 0 110px; position: relative;
  overflow: hidden;
  background: var(--c-search-bg);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}
.banner-img-slide      { position: absolute; inset: 0; opacity: 0; transition: opacity .8s }
.banner-img-slide.is-active { opacity: 1 }
.banner-img-slide img  { width: 100%; height: 100%; object-fit: cover }
.banner-dots           { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; z-index: 5 }
.banner-dot            { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s }
.banner-dot.is-active  { background: #fff }
.banner-text-col       { flex: 1; padding: var(--sp-5) var(--sp-5); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-2) }
.banner-main-text      { font-size: 12px; line-height: 1.5; color: var(--c-primary); margin: 0 }
.banner-main-text strong { font-weight: 700; color: #3b82f6 }
.banner-sub-text       { font-size: 11px; color: var(--c-secondary); line-height: 1.4; margin: 0 }
.btn-banner-cta        {
  flex-shrink: 0; align-self: center;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: #22c55e; color: #fff;
  border-radius: var(--r-pill);
  padding: var(--sp-3) var(--sp-5);
  font-size: 12px; font-weight: 600;
  text-decoration: none; margin-right: var(--sp-5);
  white-space: nowrap; transition: opacity .15s;
}
.btn-banner-cta:hover { opacity: .85 }

/* Trending box */
.trending-box {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-card-bdr);
  background: #fff; box-shadow: var(--shadow);
}
.trending-heading {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .10em; color: var(--c-secondary); margin-bottom: var(--sp-4);
}
.trending-item {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-divider);
  text-decoration: none;
}
.trending-item:last-child { border-bottom: none }
.trending-num  { font-size: 17px; font-weight: 800; color: var(--c-primary); opacity: .14; line-height: 1; flex-shrink: 0; width: 16px; text-align: center }
.trending-info { flex: 1; min-width: 0 }
.trending-title { font-size: 12px; font-weight: 600; color: var(--c-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.trending-meta  { font-size: 10px; color: var(--c-secondary); margin-top: 2px }

/* ============================================================
   CARD FEED — 4-col masonry
   ============================================================ */
.home-feed-wrap {
  max-width: var(--cont); margin: 0 auto;
  padding: var(--sp-6) var(--sp-7) 48px;
}
.home-feed-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--sp-5);                     /* 12px gap */
  grid-auto-flow: column;
  grid-template-rows: repeat(6,auto);
}

/* ── Shared card base ─────────────────────────── */
.fc {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-card-bdr);
  background: #fff;
  text-decoration: none;
  transition: box-shadow .2s, transform .18s;
}
.fc:hover { box-shadow: var(--shadow-md); transform: translateY(-2px) }

/* Shared text atoms */
.fc-source   { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-secondary) }
.fc-time     { font-size: 10px; color: var(--c-secondary); margin-left: var(--sp-1) }
.fc-sep      { font-size: 10px; color: var(--c-secondary); opacity: .4; margin: 0 var(--sp-1) }
.fc-readtime { font-size: 10px; color: var(--c-secondary); margin-top: var(--sp-2) }
.fc-title-sm {
  font-size: 13px; font-weight: 700; color: var(--c-primary);
  line-height: 1.4; margin-top: var(--sp-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fc-thumb-ph { background: linear-gradient(135deg,#e8edf2,#d0dae3); width: 100%; height: 100% }

/* ── Hero card ─────────────────────────────────── */
.fc-hero .fc-thumb { overflow: hidden; background: var(--c-search-bg); height: 132px; flex-shrink: 0 }
.fc-hero .fc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s }
.fc-hero:hover .fc-thumb img { transform: scale(1.04) }
.fc-hero .fc-body { padding: var(--sp-5) }

/* ── Compact card ──────────────────────────────── */
.fc-compact { flex-direction: row; align-items: center; padding: var(--sp-5) var(--sp-5) }
.fc-compact-info { flex: 1; min-width: 0; padding-right: var(--sp-4) }
.fc-compact-thumb { flex-shrink: 0; width: 68px; height: 68px; border-radius: var(--r-md); overflow: hidden; background: var(--c-search-bg) }
.fc-compact-thumb img { width: 100%; height: 100%; object-fit: cover }

/* ── Full image card ───────────────────────────── */
.fc-full { position: relative; aspect-ratio: 4/3; border: none; min-height: 148px }
.fc-full-bg { position: absolute; inset: 0; background: var(--c-search-bg) }
.fc-full-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.fc-full:hover .fc-full-bg img { transform: scale(1.03); transition: transform .4s }
.fc-full-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg,rgba(8,12,22,.86) 0%,rgba(8,12,22,.28) 55%,transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-5);
}
.fc-source-light,.fc-time-light { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.75) }
.fc-title-full {
  font-size: 13px; font-weight: 800; color: #fff; line-height: 1.3; margin-top: var(--sp-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fc-featured-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.2); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-pill); padding: var(--sp-1) var(--sp-4);
  font-size: 9px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .06em;
}

/* ── Publisher card ────────────────────────────── */
.fc-publisher { padding: var(--sp-5) }
.fc-pub-header { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-4) }
.fc-pub-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.fc-pub-name  { font-size: 12px; font-weight: 700; color: var(--c-primary); display: block }
.fc-pub-time  { font-size: 10px; color: var(--c-secondary) }
.fc-pub-body  { display: flex; gap: var(--sp-4); align-items: flex-start }
.fc-pub-info  { flex: 1; min-width: 0 }
.fc-pub-desc  { font-size: 11px; color: var(--c-secondary); line-height: 1.4; margin-top: var(--sp-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.fc-pub-thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: var(--c-search-bg) }
.fc-pub-thumb img { width: 100%; height: 100%; object-fit: cover }

/* ── Video card ────────────────────────────────── */
.fc-video .fc-video-bg { position: relative; height: 140px; background: var(--c-search-bg); overflow: hidden; flex-shrink: 0 }
.fc-video .fc-video-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.fc-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.fc-play-btn::before {
  content: ''; position: absolute;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.22); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.35);
}
.fc-play-btn svg { position: relative; z-index: 1; color: #fff }
.fc-video-info  { padding: var(--sp-4) var(--sp-5) }

/* ── Article card ──────────────────────────────── */
.fc-article { flex-direction: row; align-items: flex-start; padding: var(--sp-5); gap: var(--sp-4) }
.fc-article-info  { flex: 1; min-width: 0 }
.fc-article-thumb { flex-shrink: 0; width: 68px; height: 68px; border-radius: var(--r-sm); overflow: hidden; background: var(--c-search-bg) }
.fc-article-thumb img { width: 100%; height: 100%; object-fit: cover }

/* ── Trending image card ───────────────────────── */
.fc-trending-img .fc-ti-image { height: 150px; overflow: hidden; background: var(--c-search-bg); flex-shrink: 0 }
.fc-trending-img .fc-ti-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s }
.fc-trending-img:hover .fc-ti-image img { transform: scale(1.04) }
.fc-trending-img .fc-ti-info { padding: var(--sp-4) var(--sp-5) }

/* ============================================================
   TAG PILLS
   ============================================================ */
.tag-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(15,23,42,.06); border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-5);
  font-size: 11px; font-weight: 700; color: var(--c-primary); letter-spacing: .04em;
}
.tag-pill.sponsored { background: var(--c-gold-bg); color: var(--c-gold) }
.tag-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block }

/* ============================================================
   ARTICLE / SINGLE PAGE
   ============================================================ */
.article-page {
  max-width: var(--cont); margin: 0 auto;
  padding: var(--sp-8) var(--sp-7) 48px;
  display: flex; gap: var(--sp-8); align-items: flex-start; justify-content: center;
}
.article-main    { flex: 0 0 760px; max-width: 760px; min-width: 0 }
.article-sidebar { flex: 0 0 300px; max-width: 300px }

.article-back {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: 13px; font-weight: 600; color: var(--c-secondary);
  margin-bottom: var(--sp-7); transition: color .15s;
}
.article-back:hover { color: var(--c-primary) }

.article-tags  { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); flex-wrap: wrap }
.article-title { font-size: 38px; font-weight: 800; color: var(--c-primary); line-height: 1.18; letter-spacing: -.02em; margin-bottom: var(--sp-5) }
.article-subtitle { font-size: 18px; font-weight: 400; color: var(--c-secondary); line-height: 1.55; margin-bottom: var(--sp-7) }

.article-meta-bar {
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: var(--grad-subtle);
  border: 1px solid rgba(22,78,99,.08);
  border-radius: var(--r-lg); margin-bottom: var(--sp-8);
}
.author-avatar   { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--grad-btn) }
.author-avatar img { width: 100%; height: 100%; object-fit: cover }
.author-avatar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0db583 0%, #077855 100%);
}
.author-name     { font-size: 13px; font-weight: 700; color: var(--c-primary); line-height: 1.3 }
.article-date-read { font-size: 12px; color: var(--c-secondary); display: flex; align-items: center; gap: var(--sp-3) }

.article-hero-image { border-radius: var(--r-2xl); overflow: hidden; margin-bottom: var(--sp-8); aspect-ratio: 707/343 }
.article-hero-image img { width: 100%; height: 100%; object-fit: cover }
.article-image-caption { font-size: 12px; color: var(--c-secondary); text-align: center; margin-top: var(--sp-3); opacity: .7 }

.article-body { font-size: 17px; color: var(--c-body); line-height: 1.65 }
.article-body p { margin-bottom: var(--sp-8) }
.article-body h2 { font-size: 24px; font-weight: 700; color: var(--c-primary); margin: 32px 0 var(--sp-6) }
.article-body h3 { font-size: 20px; font-weight: 700; color: var(--c-primary); margin: 24px 0 var(--sp-5) }
.article-body a  { color: var(--c-teal); text-decoration: underline; text-underline-offset: 2px }
.article-body ul,.article-body ol { list-style: revert; padding-left: var(--sp-8); margin-bottom: var(--sp-8) }
.article-body li { margin-bottom: var(--sp-4) }
.article-body blockquote {
  border-left: 4px solid var(--c-teal);
  padding: 18px 22px;
  background: rgba(22,78,99,.04);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic; font-size: 18px; color: var(--c-primary); margin: 28px 0;
}
.article-body blockquote p { margin: 0 }
.article-body img  { border-radius: var(--r-md); margin: var(--sp-6) 0 }
.article-body hr   { border: none; border-top: 1px solid var(--c-divider); margin: 32px 0 }
.article-body pre  { background: var(--c-search-bg); padding: var(--sp-6); border-radius: var(--r-md); overflow-x: auto; font-size: 13px; margin-bottom: var(--sp-8) }
.article-body code { background: var(--c-search-bg); padding: 2px var(--sp-3); border-radius: var(--r-xs); font-size: 13px }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: var(--sp-8) }
.article-body th { background: var(--c-search-bg); padding: 10px var(--sp-5); text-align: left; font-weight: 700 }
.article-body td { padding: 10px var(--sp-5); border-bottom: 1px solid var(--c-divider) }

/* Stats card */
.stats-card { border: 1px solid rgba(22,78,99,.08); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 28px; background: var(--grad-subtle) }
.stats-card-inner { display: flex }
.stat-block { flex: 1; padding: 22px 18px; text-align: center; border-right: 1px solid rgba(22,78,99,.08) }
.stat-block:last-child { border-right: none }
.stat-value { font-size: 28px; font-weight: 800; color: var(--c-gold); letter-spacing: -.02em }
.stat-label { font-size: 12px; color: var(--c-secondary); margin-top: var(--sp-2); line-height: 1.4 }

/* Post navigation */
.article-post-nav { margin-top: 48px; padding-top: var(--sp-8); border-top: 1px solid var(--c-divider) }
.article-post-nav .post-navigation { display: flex; gap: var(--sp-5) }
.article-post-nav .nav-previous,.article-post-nav .nav-next { flex: 1 }
.article-post-nav a {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: rgba(13,181,131,.08);
  border: 1px solid rgba(13,181,131,.18);
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 700;
  color: #077855;
  transition: background .15s,color .15s,border-color .15s;
}
.article-post-nav a:hover {
  background: linear-gradient(135deg, #0db583 0%, #077855 100%);
  border-color: transparent;
  color: #fff;
}
.article-post-nav .nav-next a { justify-content: flex-end }

/* Related articles */
.related-articles { margin-top: 48px }
.section-heading  { font-size: 16px; font-weight: 800; color: var(--c-primary); margin-bottom: var(--sp-7); display: flex; align-items: center; gap: var(--sp-4) }
.section-heading::before { content: ''; display: inline-block; width: 4px; height: 16px; background: var(--c-teal); border-radius: 2px }
.related-articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5) }
.related-articles .card-vert { border-color: rgba(13,181,131,.14) }
.related-articles .card-vert:hover { box-shadow: 0 12px 26px rgba(13,181,131,.12) }

/* ============================================================
   SIDEBAR (article page)
   ============================================================ */
.sidebar-sticky { position: sticky; top: calc(var(--hdr-h) + 54px); display: flex; flex-direction: column; gap: var(--sp-5) }
.sidebar-ad-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-card-bdr); background: #fff }
.sidebar-ad-dark { background: var(--grad-btn); height: 152px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden }
.sidebar-ad-dark img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0 }
.sidebar-ad-label-overlay { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between }
.sidebar-ad-badge { background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill); padding: 2px var(--sp-4); font-size: 9px; font-weight: 700; color: #fff; letter-spacing: .06em; text-transform: uppercase }
.sidebar-ad-body  { padding: var(--sp-5) }
.sidebar-ad-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--c-secondary); opacity: .6; margin-bottom: var(--sp-2) }
.sidebar-ad-title { font-size: 14px; font-weight: 700; color: var(--c-primary); line-height: 1.3; margin-bottom: var(--sp-2) }
.sidebar-ad-price { font-size: 20px; font-weight: 800; color: var(--c-primary); margin-bottom: var(--sp-4) }
.sidebar-ad-price s { font-size: 13px; font-weight: 400; color: var(--c-secondary); margin-left: var(--sp-3) }
.btn-shop { display: inline-flex; align-items: center; gap: var(--sp-3); background: var(--grad-btn); color: #fff; border-radius: var(--r-pill); padding: var(--sp-4) var(--sp-6); font-size: 13px; font-weight: 600; text-decoration: none; width: 100%; justify-content: center; transition: opacity .15s }
.btn-shop:hover { opacity: .88 }

.trending-box {
  border: 1px solid rgba(13,181,131,.16);
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}
.trending-heading {
  color: #077855;
}
.trending-item:hover .trending-title {
  color: #0db583;
}

/* ============================================================
   INLINE AD
   ============================================================ */
.inline-ad-widget { display: flex; border: 1px solid var(--c-card-bdr); border-radius: var(--r-lg); overflow: hidden; margin: 28px 0; box-shadow: var(--shadow); background: #fff }
.inline-ad-image  { flex-shrink: 0; width: 130px; overflow: hidden; background: var(--grad-btn); position: relative }
.inline-ad-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.inline-ad-body   { flex: 1; padding: var(--sp-6) }
.inline-ad-label  { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .10em; color: var(--c-gold); margin-bottom: var(--sp-2) }
.inline-ad-title  { font-size: 14px; font-weight: 700; color: var(--c-primary); margin-bottom: var(--sp-3); line-height: 1.3 }
.inline-ad-subtitle { font-size: 12px; color: var(--c-secondary); line-height: 1.5; margin-bottom: var(--sp-4) }
.inline-ad-stats  { display: flex; gap: var(--sp-5); margin-bottom: var(--sp-5); flex-wrap: wrap }
.inline-ad-stat   { display: flex; align-items: center; gap: var(--sp-2); background: var(--c-search-bg); border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-4); font-size: 11px; font-weight: 600; color: var(--c-primary) }
.btn-reserve { display: inline-flex; align-items: center; gap: var(--sp-3); background: var(--grad-btn); color: #fff; border-radius: var(--r-pill); padding: var(--sp-4) var(--sp-6); font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity .15s }
.btn-reserve:hover { opacity: .88 }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination,.nav-links { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding: var(--sp-8) 0 }
.page-numbers,.nav-links a,.nav-links span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 var(--sp-5); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--c-secondary); background: var(--c-search-bg); transition: background .15s,color .15s }
.page-numbers:hover,.nav-links a:hover { background: var(--c-primary); color: #fff }
.page-numbers.current { background: var(--grad-btn); color: #fff }
.page-numbers.dots { background: transparent }

/* ============================================================
   ARCHIVE / CATEGORY PAGES
   ============================================================ */
.archive-page { max-width: var(--cont); margin: 0 auto; padding: var(--sp-8) var(--sp-7) 48px }
.archive-header { background: var(--grad-btn); padding: var(--sp-8) var(--sp-7); border-radius: var(--r-xl); margin-bottom: var(--sp-7); color: #fff }
.archive-title  { font-size: 26px; font-weight: 800 }
.archive-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6) }

/* ============================================================
   CARD-VERT (archive / related)
   ============================================================ */
.card-vert { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--c-card-bdr); display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .2s,transform .18s }
.card-vert:hover { box-shadow: var(--shadow-md); transform: translateY(-2px) }
.card-vert-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--c-search-bg); flex-shrink: 0; position: relative }
.card-vert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s }
.card-vert:hover .card-vert-thumb img { transform: scale(1.04) }
.card-vert-cat { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.92); border-radius: var(--r-pill); padding: 2px var(--sp-4); font-size: 9px; font-weight: 700; color: var(--c-primary); text-transform: uppercase; letter-spacing: .04em }
.card-vert-body { padding: var(--sp-5) var(--sp-5) var(--sp-6); flex: 1; display: flex; flex-direction: column; gap: var(--sp-2) }
.card-vert-source { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-secondary) }
.card-vert-title { font-size: 13px; font-weight: 700; color: var(--c-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.card-vert-excerpt { font-size: 11px; color: var(--c-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1 }
.card-vert-meta { font-size: 10px; color: var(--c-secondary); display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2) }

/* ============================================================
   WIDGETS
   ============================================================ */
.widget { margin-bottom: var(--sp-5); padding: var(--sp-5); background: var(--c-search-bg); border-radius: var(--r-lg) }
.widget-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--c-primary); margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--c-divider) }
.widget ul { list-style: none; padding: 0 }
.widget ul li { padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-divider); font-size: 13px }
.widget ul li:last-child { border-bottom: none }
.widget ul li a:hover { color: var(--c-teal) }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer-minimal { border-top: 1px solid var(--c-divider); padding: var(--sp-7); background: #fff }
.footer-minimal-inner { max-width: var(--cont); margin: 0 auto; display: flex; align-items: center; gap: var(--sp-8); flex-wrap: wrap }
.footer-logo-link { display: flex; align-items: center; flex-shrink: 0 }
.footer-logo-link svg,.footer-logo-link img { height: 26px; width: auto }
.footer-minimal-nav { display: flex; align-items: center; gap: var(--sp-8); flex: 1 }
.footer-minimal-nav a { font-size: 13px; font-weight: 500; color: var(--c-secondary); transition: color .15s }
.footer-minimal-nav a:hover { color: var(--c-primary) }
.footer-minimal-copy { font-size: 12px; color: var(--c-secondary); opacity: .55; margin-left: auto }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,.category-nav,.shortcut-icons-bar,.home-right-panel,
  .article-sidebar,.site-footer-minimal,.inline-ad-widget,.related-articles { display: none !important }
  .article-page { display: block }
  .article-main { max-width: 100%; flex: none }
  .article-title { font-size: 26px }
  a { color: #000 }
}

/* ============================================================
   RESPONSIVE — ≤1300px
   ============================================================ */
@media (max-width:1300px) {
  .home-top-section { grid-template-columns: minmax(0,3fr) minmax(0,2fr) }
  .header-search-centre { width: 480px; max-width: calc(100% - 280px) }
}

/* ============================================================
   RESPONSIVE — ≤1100px
   ============================================================ */
@media (max-width:1100px) {
  .home-feed-grid { grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(8,auto) }
  .article-main { flex: 0 0 600px; max-width: 600px }
  .archive-grid { grid-template-columns: repeat(2,1fr) }
  .related-articles-grid { grid-template-columns: repeat(2,1fr) }
}

/* ============================================================
   RESPONSIVE — ≤900px (small desktop / large tablet)
   ============================================================ */
@media (max-width:900px) {
  .home-top-section { grid-template-columns: 1fr; padding: var(--sp-5) var(--sp-6) 0 }
  .headline-carousel { aspect-ratio: 16/8; min-height: 260px; max-height: 360px }
  .home-feed-grid { grid-template-columns: repeat(2,1fr); grid-auto-flow: row; grid-template-rows: none }
  .article-page { flex-direction: column }
  .article-main { flex: none; max-width: 100%; width: 100% }
  .article-sidebar { display: none }
  .header-search-centre { width: 420px; max-width: calc(100% - 240px) }
}

/* ============================================================
   RESPONSIVE — ≤768px (tablet / mobile)
   ============================================================ */
@media (max-width:768px) {
  :root { --hdr-h: 52px }

  /* Header: hide desktop search, show mobile controls */
  .header-search-centre { display: none }
  .mobile-search-toggle,
  .mobile-menu-toggle   { display: flex }

  /* Mobile search bar drop-down */
  .mobile-search-bar {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--c-hdr-bdr);
    padding: var(--sp-3) var(--sp-6) var(--sp-5);
  }
  .mobile-search-form {
    display: flex; align-items: center; gap: var(--sp-3);
    background: var(--c-search-bg);
    border-radius: var(--r-pill);
    height: 38px; padding: 0 var(--sp-6);
  }
  .mobile-search-form input {
    flex: 1; background: none; border: none; outline: none;
    font-family: var(--font); font-size: 14px; color: var(--c-primary);
  }
  .mobile-search-form svg { flex-shrink: 0; color: var(--c-secondary); opacity: .6 }

  /* Mobile nav */
  .mobile-nav {
    display: block; background: #fff;
    border-top: 1px solid var(--c-hdr-bdr);
    box-shadow: 0 8px 24px rgba(15,23,41,.12);
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: 300;
    animation: slideDown .2s ease;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px) }
    to   { opacity: 1; transform: translateY(0) }
  }
  .mobile-nav-list li a {
    display: block; padding: var(--sp-5) var(--sp-7);
    font-size: 14px; font-weight: 600; color: var(--c-primary);
    border-bottom: 1px solid var(--c-divider);
    transition: background .12s;
  }
  .mobile-nav-list li a:hover { background: var(--c-search-bg) }

  /* Shortcut icons — scrollable row */
  .shortcut-icons-inner  { justify-content: flex-start; padding: var(--sp-4) var(--sp-5) }
  .shortcut-item         { padding: 0 var(--sp-5) }
  .shortcut-item .icon-wrap { width: 40px; height: 40px }
  .shortcut-item .icon-wrap svg { width: 20px; height: 20px }

  /* Category nav no longer sticky (save space) */
  .category-nav { position: static }

  /* Top section single column */
  .home-top-section { padding: var(--sp-4) var(--sp-5) 0 }
  .headline-carousel { min-height: 220px; max-height: 300px }
  .cs-title { font-size: 16px }
  .banner-card { flex-direction: column }
  .banner-images { flex: 0 0 120px; height: 120px; border-radius: var(--r-xl) var(--r-xl) 0 0 }
  .btn-banner-cta { margin: 0 var(--sp-5) var(--sp-5); align-self: flex-start }

  /* Feed single column */
  .home-feed-wrap { padding: var(--sp-5) var(--sp-5) 32px }
  .home-feed-grid { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none }

  /* Article */
  .article-page  { padding: var(--sp-6) var(--sp-5) 32px; flex-direction: column }
  .article-title { font-size: 26px }
  .related-articles-grid { grid-template-columns: 1fr }
  .stats-card-inner { flex-direction: column }
  .stat-block { border-right: none; border-bottom: 1px solid rgba(22,78,99,.08) }
  .stat-block:last-child { border-bottom: none }

  /* Footer */
  .footer-minimal-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-5) }
  .footer-minimal-copy  { margin-left: 0 }
}

/* ============================================================
   RESPONSIVE — ≤480px (small phones)
   ============================================================ */
@media (max-width:480px) {
  .home-feed-grid { grid-template-columns: 1fr }
  .archive-grid   { grid-template-columns: 1fr }
  .article-post-nav .post-navigation { flex-direction: column }
  .inline-ad-widget  { flex-direction: column }
  .inline-ad-image   { width: 100%; height: 150px }
  .shortcut-item     { padding: 0 var(--sp-4) }
  .shortcut-item .icon-wrap { width: 36px; height: 36px }
}

/* ============================================================
   INFINITE SCROLL — loader + end message
   ============================================================ */
#gff-scroll-sentinel {
  height: 1px;
  margin-top: var(--sp-6);
}

.feed-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--sp-8) 0;
  gap: var(--sp-3);
}
.feed-loader-dots {
  display: flex;
  gap: var(--sp-3);
}
.feed-loader-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-secondary);
  opacity: .3;
  animation: gff-dot-bounce .9s ease-in-out infinite;
}
.feed-loader-dots span:nth-child(2) { animation-delay: .15s }
.feed-loader-dots span:nth-child(3) { animation-delay: .30s }

@keyframes gff-dot-bounce {
  0%,80%,100% { transform: scale(1);   opacity: .3 }
  40%          { transform: scale(1.4); opacity: 1   }
}

.feed-end-msg {
  text-align: center;
  padding: var(--sp-8) 0 var(--sp-8);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-secondary);
  opacity: .7;
  letter-spacing: .04em;
}

/* Fade-in for newly appended cards */
@keyframes gff-card-in {
  from { opacity: 0; transform: translateY(10px) }
  to   { opacity: 1; transform: translateY(0) }
}
.fc.is-new {
  animation: gff-card-in .3s ease both;
}

/* ============================================================
   SHARE MODAL
   ============================================================ */
.share-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 480px) {
  .share-modal { align-items: center }
}
.share-modal[hidden] { display: none }

.share-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,12,22,.55);
  backdrop-filter: blur(4px);
  animation: gff-backdrop-in .2s ease;
}
@keyframes gff-backdrop-in {
  from { opacity: 0 } to { opacity: 1 }
}

.share-modal-card {
  position: relative; z-index: 1;
  background: var(--c-bg);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: var(--sp-7) var(--sp-7) calc(var(--sp-7) + env(safe-area-inset-bottom));
  width: 100%; max-width: 440px;
  box-shadow: 0 -4px 40px rgba(8,12,22,.18);
  animation: gff-sheet-in .25s cubic-bezier(.22,.61,.36,1);
}
@media (min-width: 480px) {
  .share-modal-card {
    border-radius: var(--r-2xl);
    padding: var(--sp-7);
    animation: gff-pop-in .2s cubic-bezier(.22,.61,.36,1);
  }
}
@keyframes gff-sheet-in {
  from { transform: translateY(100%) } to { transform: translateY(0) }
}
@keyframes gff-pop-in {
  from { opacity:0; transform: scale(.95) translateY(8px) }
  to   { opacity:1; transform: scale(1)  translateY(0) }
}

.share-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.share-modal-title {
  font-size: 15px; font-weight: 700; color: var(--c-primary);
}
.share-modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  color: var(--c-secondary);
  transition: background .15s;
}
.share-modal-close:hover { background: var(--c-search-bg) }

.share-modal-sub {
  font-size: 12px; color: var(--c-secondary);
  margin-bottom: var(--sp-6); line-height: 1.5;
}

/* Share buttons grid */
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.share-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-2); padding: var(--sp-5) var(--sp-3);
  border-radius: var(--r-lg);
  background: var(--c-search-bg);
  border: 1px solid var(--c-card-bdr);
  cursor: pointer; text-decoration: none;
  color: var(--c-primary);
  font-size: 11px; font-weight: 600;
  transition: background .15s, transform .12s, box-shadow .15s;
  line-height: 1;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.share-btn[hidden] { display: none }

/* Brand colours on icon */
.share-whatsapp svg  { color: #25D366 }
.share-facebook svg  { color: #1877F2 }
.share-twitter  svg  { color: #000    }
.share-telegram svg  { color: #229ED9 }
.share-copy     svg  { color: var(--c-teal) }
.share-native   svg  { color: var(--c-secondary) }

/* Copied state */
.share-copy.is-copied {
  background: rgba(22,78,99,.08);
  border-color: rgba(22,78,99,.2);
}
.share-copy.is-copied svg { color: #22c55e }

/* URL display row */
.share-url-row {
  display: flex; align-items: center;
  background: var(--c-search-bg);
  border: 1px solid var(--c-card-bdr);
  border-radius: var(--r-pill);
  padding: var(--sp-3) var(--sp-5);
  overflow: hidden;
}
.share-url-text {
  flex: 1; min-width: 0;
  font-size: 12px; color: var(--c-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   REACT SITE CLONE: landing + blogs listing
   ============================================================ */
:root {
  --gf-brand: #0db583;
  --gf-brand-dark: #0a9b70;
  --gf-brand-light: rgba(13, 181, 131, 0.03);
  --gf-text: #191919;
  --gf-muted: #6f6f6f;
  --gf-bg-soft: #f2f4f5;
  --gf-bg-section: #f7f9f8;
  --gf-deep: #00140e;
  --gf-line: #c9cac7;
  --gf-cousine: 'Cousine', monospace;
}

.landing-header {
  background: var(--gf-bg-soft);
  border-bottom: 1px solid #e5e7eb;
}

.landing-header-inner,
.gf-shell,
.landing-footer-inner,
.landing-footer-bottom {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.landing-logo-link img,
.landing-logo-link svg,
.landing-footer-logo img,
.landing-footer-logo svg {
  width: 108px;
  height: auto;
  max-width: 100%;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
}

.landing-nav a:hover,
.landing-nav-link.is-active {
  color: var(--gf-brand);
}

.landing-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--gf-brand);
  color: #fff !important;
  padding: 10px 20px;
  font-weight: 700;
}

.landing-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #374151;
}

.landing-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.site-landing {
  background: #fff;
}

.gf-hero-section {
  background: var(--gf-bg-soft);
  padding: 56px 0 0;
}

.gf-hero-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gf-hero-copy {
  width: 100%;
  max-width: 980px;
  text-align: center;
}

.gf-badge-row {
  display: flex;
  justify-content: center;
}

.gf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--gf-brand);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  background: rgba(13, 181, 131, 0.08);
  border: 1px solid rgba(13, 181, 131, 0.19);
}

.gf-badge img {
  width: 14px;
  height: 14px;
}

.gf-hero-copy h1 {
  margin-top: 20px;
  color: var(--gf-text);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
}

.gf-hero-copy h1 span {
  color: var(--gf-brand);
}

.gf-hero-copy p {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--gf-muted);
  font-size: 16px;
  line-height: 1.75;
}

.gf-hero-actions,
.gf-center-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gf-hero-actions {
  margin-top: 42px;
}

.gf-button,
.gf-outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 15px 28px;
  font-size: 17px;
  font-weight: 700;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.gf-button:hover,
.gf-outline-link:hover {
  transform: translateY(-1px);
}

.gf-button img,
.gf-outline-link img {
  width: 18px;
  height: 18px;
}

.gf-button-primary {
  background: var(--gf-brand);
  color: #fff;
}

.gf-button-primary:hover {
  background: var(--gf-brand-dark);
}

.gf-button-secondary,
.gf-outline-link {
  background: #fff;
  color: #111827;
  border: 2px solid #e5e7eb;
}

.gf-members-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.gf-members-row > img {
  width: 112px;
}

.gf-members-meta {
  width: 161px;
  text-align: left;
}

.gf-members-meta strong {
  display: block;
  color: #000;
  font-size: 14px;
  font-weight: 700;
}

.gf-members-meta span {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

.gf-hero-visual {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 20px;
}

.gf-hero-visual::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.landing-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}

.landing-hero-slide.is-active {
  opacity: 1;
}

.landing-hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  background: rgba(255,255,255,.8);
}

.landing-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d1d5db;
  transition: width .2s ease, background .2s ease;
}

.landing-hero-dot.is-active {
  width: 32px;
  background: var(--gf-brand);
}

.gf-section {
  padding: 80px 0;
}

.gf-impact-section,
.gf-video-section,
.gf-faq-section {
  background: #fff;
}

.gf-install-section,
.gf-transparency-section {
  background: var(--gf-bg-section);
}

.gf-section-header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.gf-section-header-narrow {
  max-width: 345px;
}

.gf-section-header-medium {
  max-width: 555px;
}

.gf-section-header h2,
.gf-video-shell h2,
.gf-faq-shell h2,
.gf-cta-shell h2,
.gf-blog-hero-copy h1 {
  color: var(--gf-text);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.gf-section-header h2 {
  margin-top: 16px;
}

.gf-section-header p,
.gf-blog-hero-copy p,
.gf-cta-shell p {
  margin-top: 12px;
  color: var(--gf-muted);
  font-size: 16px;
  line-height: 1.65;
}

.gf-impact-chart {
  display: block;
  width: 100%;
  max-width: 719px;
  margin: 40px auto 0;
}

.gf-impact-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.gf-impact-card {
  min-width: 0;
  border-radius: 16px;
  background: #fff;
  padding: 24px 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  text-align: center;
}

.gf-impact-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(13,181,131,.094);
}

.gf-impact-icon-wrap img {
  width: 24px;
  height: 24px;
}

.gf-impact-card strong {
  display: block;
  margin-top: 16px;
  color: #f5b800;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}

.gf-impact-card span {
  display: block;
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
}

.gf-center-row {
  margin-top: 40px;
}

.gf-install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.gf-step-block h3 {
  margin-top: 12px;
  color: var(--gf-text);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.gf-step-block p {
  margin-top: 12px;
  color: var(--gf-muted);
  font-size: 16px;
  line-height: 1.75;
}

.gf-step-number {
  color: var(--gf-brand);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.gf-step-image,
.gf-screen-card img {
  width: 100%;
  display: block;
}

.gf-step-image {
  max-width: 464px;
  margin-top: 40px;
}

.gf-step-image-shadow,
.gf-screen-card {
  box-shadow: 0 6px 32px rgba(0,0,0,.08);
  border-radius: 16px;
}

.gf-screen-card {
  overflow: hidden;
}

.gf-step-block-bottom,
.gf-step-block-middle,
.gf-screen-card + .gf-step-block,
.gf-step-block + .gf-screen-card {
  margin-top: 40px;
}

.gf-video-shell {
  text-align: center;
}

.gf-video-card {
  position: relative;
  width: 100%;
  max-width: 800px;
  min-height: 260px;
  margin: 40px auto 0;
  overflow: hidden;
  border-radius: 16px;
}

.gf-video-card img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gf-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--gf-brand);
  border: 4px solid rgba(255,255,255,.3);
}

.gf-video-play img {
  width: 32px;
  height: 32px;
}

.gf-feature-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.gf-feature-card {
  background: rgba(7,59,58,.024);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 32px 36px;
  text-align: center;
}

.gf-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(13,181,131,.08);
}

.gf-feature-icon img {
  width: 28px;
  height: 28px;
}

.gf-feature-card h3 {
  margin-top: 20px;
  color: var(--gf-text);
  font-size: 18px;
  font-weight: 700;
}

.gf-feature-card p {
  margin-top: 8px;
  color: var(--gf-muted);
  font-size: 15px;
  line-height: 1.75;
}

.gf-faq-shell {
  text-align: center;
}

.gf-faq-list {
  margin: 40px auto 0;
  max-width: 720px;
  text-align: left;
}

.gf-faq-item {
  margin-top: 12px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  background: var(--gf-bg-section);
  overflow: hidden;
}

.gf-faq-item:first-child {
  margin-top: 0;
}

.gf-faq-question {
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.gf-faq-question span {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.gf-faq-arrow {
  width: 20px;
  height: 20px;
  transition: transform .2s ease;
}

.gf-faq-question[aria-expanded="true"] .gf-faq-arrow {
  transform: rotate(180deg);
}

.gf-faq-answer {
  padding: 0 20px 20px;
}

.gf-faq-answer p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.gf-cta-section {
  background: linear-gradient(135deg, rgba(13,181,131,1) 0%, rgba(7,120,85,1) 100%);
}

.gf-cta-shell {
  max-width: 760px;
  text-align: center;
}

.gf-cta-logo {
  width: 70px;
  margin: 0 auto;
}

.gf-cta-shell h2,
.gf-cta-shell p,
.gf-cta-shell small {
  color: #fff;
}

.gf-cta-shell h2 {
  margin-top: 32px;
}

.gf-cta-shell .gf-button {
  margin-top: 40px;
}

.gf-cta-shell small {
  display: block;
  margin-top: 18px;
  font-size: 12px;
}

.gf-blogs-page {
  min-height: 100vh;
  background: #fff;
}

.gf-blog-breadcrumb-bar {
  border-bottom: 1px solid var(--gf-line);
  background: #fff;
}

.gf-blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 12px;
}

.gf-blog-breadcrumbs a {
  color: #9ca3af;
}

.gf-blog-breadcrumbs span:nth-child(2) {
  color: #d1d5db;
  font-family: var(--gf-cousine);
  font-size: 9px;
}

.gf-blog-breadcrumbs span:last-child {
  color: #374151;
}

.gf-blog-hero {
  background: var(--gf-brand-light);
  padding: 40px 0;
}

.gf-blog-hero-copy {
  max-width: 700px;
}

.gf-blog-kicker,
.gf-blog-section-label {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: var(--gf-brand);
  padding: 4px 10px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .88px;
}

.gf-blog-kicker {
  font-family: var(--gf-cousine);
}

.gf-blog-hero-copy h1 {
  margin-top: 16px;
  letter-spacing: -.02em;
}

.gf-blog-hero-copy p {
  max-width: 540px;
}

.gf-blog-sections {
  padding: 64px 0;
}

.gf-blog-sections-shell {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.gf-blog-section-label-wrap {
  display: inline-flex;
}

.gf-blog-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gf-blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .18s ease;
}

.gf-blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.gf-blog-card-image-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.gf-blog-card-image-wrap img,
.gf-blog-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #edf2f7;
}

.gf-blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.gf-blog-card-meta-row,
.gf-blog-card-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gf-blog-card-meta-row {
  justify-content: space-between;
  gap: 12px;
}

.gf-blog-card-tag {
  border-radius: 4px;
  background: #dcdeda;
  padding: 2px 8px;
  color: #4a5565;
  font-size: 10px;
  letter-spacing: .6px;
}

.gf-blog-card-meta {
  color: #99a1af;
  font-size: 10px;
}

.gf-blog-card-title a {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.gf-blog-card-title a:hover {
  color: var(--gf-brand);
}

.gf-blog-card-excerpt {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-blog-empty {
  margin-top: 20px;
  color: #6b7280;
}

/* Category-grouped blog section styles */
.gf-category-posts-wrapper {
  margin-top: 24px;
}

.gf-blog-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.gf-blog-row--hidden {
  display: none;
}

/* Responsive grid: 3 columns on desktop, 2 on tablet, 1 on mobile */
@media (max-width: 1024px) {
  .gf-blog-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .gf-blog-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .gf-blog-card-image-wrap {
    height: 160px;
  }
  
  .gf-blog-card-body {
    padding: 16px;
    gap: 10px;
  }
  
  .gf-blog-card-title a {
    font-size: 14px;
  }
  
  .gf-blog-card-excerpt {
    font-size: 13px;
  }
}

.gf-blog-load-more-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.gf-blog-load-more-btn {
  padding: 12px 32px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gf-blog-load-more-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.landing-footer {
  background: var(--gf-deep);
  padding-top: 64px;
}

.landing-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  color: #fff;
}

.landing-footer-brand {
  min-width: 240px;
  flex: 1 1 240px;
}

.landing-footer-brand p {
  margin-top: 12px;
  color: rgba(255,255,255,.84);
  line-height: 1.6;
}

.landing-footer-links {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-left: auto;
}

.landing-footer-links a,
.landing-footer-bottom p {
  color: #fff;
}

.landing-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}

@media (max-width: 1024px) {
  .gf-impact-grid,
  .gf-feature-grid,
  .gf-blog-grid,
  .gf-blog-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gf-install-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .landing-header-inner,
  .gf-shell,
  .landing-footer-inner,
  .landing-footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .landing-menu-toggle {
    display: inline-flex;
  }

  .landing-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px 16px;
    background: var(--gf-bg-soft);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }

  .landing-nav.is-open {
    display: flex;
  }

  .gf-hero-section {
    padding-top: 40px;
  }

  .gf-hero-actions,
  .gf-members-row {
    flex-direction: column;
  }

  .gf-members-meta {
    text-align: center;
  }

  .gf-section {
    padding: 60px 0;
  }

  .gf-impact-grid,
  .gf-feature-grid,
  .gf-blog-grid,
  .gf-blog-row {
    grid-template-columns: 1fr;
  }

  .gf-step-number {
    font-size: 42px;
  }

  .gf-step-block h3 {
    font-size: 24px;
  }

  .gf-video-play {
    width: 68px;
    height: 68px;
  }

  .landing-footer-inner {
    flex-direction: column;
  }

  .landing-footer-links {
    margin-left: 0;
  }
}
