/*
Theme Name:   GurgaonFirst Child
Theme URI:    https://gurgaonfirst.org
Description:  GurgaonFirst child theme for Astra Free. Forest green civic engagement platform for Gurugram.
Author:       GurgaonFirst
Author URI:   https://gurgaonfirst.org
Template:     astra
Version:      5.0.0
Text Domain:  gurgaonfirst-child
Tags:         civic, community, sustainability, gurugram
*/

/* ===================================================================
   DESIGN TOKENS
   =================================================================== */
:root {
  --gf-green:        #1B5E35;
  --gf-green-dark:   #0D3321;
  --gf-green-mid:    #2E7D52;
  --gf-green-light:  #E8F5ED;
  --gf-amber:        #E8830A;
  --gf-amber-light:  #FEF3DC;
  --gf-cream:        #FAF8F3;
  --gf-warm-grey:    #F0EBE0;
  --gf-text:         #1A2E22;
  --gf-text-mid:     #4A6B57;
  --gf-text-muted:   #6B7B70;
  --gf-border:       #DDE8E1;
  --gf-white:        #FFFFFF;
  --gf-shadow-sm:    0 2px 8px rgba(27,94,53,.08);
  --gf-shadow-md:    0 6px 24px rgba(27,94,53,.12);
  --gf-shadow-lg:    0 16px 48px rgba(27,94,53,.16);
  --gf-radius:       12px;
  --gf-radius-sm:    6px;
  --gf-radius-pill:  50px;
}

/* ===================================================================
   TYPOGRAPHY
   =================================================================== */
body,
.ast-body-font-family {
  font-family: 'Nunito', sans-serif;
  color: var(--gf-text);
  background-color: var(--gf-cream);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.ast-header-html-1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gf-green);
  line-height: 1.15;
}

/* ===================================================================
   ASTRA HEADER
   =================================================================== */
.site-header,
#masthead {
  background: var(--gf-green-dark) !important;
  border-bottom: none !important;
}

.ast-primary-header-bar {
  background: var(--gf-green-dark) !important;
}

/* Logo */
.site-title a,
.ast-site-name {
  font-family: 'Playfair Display', serif !important;
  color: var(--gf-white) !important;
  font-size: 1.4rem !important;
}

/* Nav links */
.main-navigation .menu-item > a,
.ast-header-break-point .main-navigation .menu-item > a {
  color: rgba(255,255,255,.85) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 600 !important;
  font-size: .9rem !important;
  transition: color .2s !important;
}

.main-navigation .menu-item > a:hover,
.main-navigation .current-menu-item > a {
  color: var(--gf-amber) !important;
}

/* ── NAVIGATION FIX ─────────────────────────── */
.main-header-bar .main-navigation ul li a {
    color: #ffffff !important;
}
.main-header-bar .main-navigation ul li:hover > a {
    color: #E8830A !important;
}
/* Dropdown submenu */
.main-header-bar .main-navigation ul ul {
    background: #1B5E35 !important;
    border-top: 3px solid #E8830A !important;
    display: none;
}
.main-header-bar .main-navigation ul li:hover > ul {
    display: block !important;
}
.main-header-bar .main-navigation ul ul li a {
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
}
.main-header-bar .main-navigation ul ul li a:hover {
    background: #2E7D52 !important;
    color: #E8830A !important;
}

/* Get Involved CTA in nav */
.menu-item.gf-nav-cta > a {
  background: var(--gf-amber) !important;
  color: var(--gf-green-dark) !important;
  border-radius: var(--gf-radius-pill) !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
}

.menu-item.gf-nav-cta > a:hover {
  background: #d07609 !important;
  color: var(--gf-white) !important;
}

/* Dropdown */
.main-navigation .sub-menu {
  background: var(--gf-green-dark) !important;
  border-top: 2px solid var(--gf-amber) !important;
  box-shadow: var(--gf-shadow-lg) !important;
}

.main-navigation .sub-menu .menu-item > a {
  color: rgba(255,255,255,.8) !important;
  font-size: .85rem !important;
}

/* ===================================================================
   ASTRA BODY / CONTENT AREA
   =================================================================== */
.ast-container,
.site-content .ast-container {
  max-width: 1200px;
}

/* ===================================================================
   GLOBAL BUTTONS
   =================================================================== */
.gf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--gf-radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
  line-height: 1;
}

.gf-btn-primary {
  background: var(--gf-green);
  color: var(--gf-white);
}
.gf-btn-primary:hover {
  background: var(--gf-green-mid);
  color: var(--gf-white);
  transform: translateY(-2px);
  box-shadow: var(--gf-shadow-md);
}

.gf-btn-amber {
  background: var(--gf-amber);
  color: var(--gf-green-dark);
}
.gf-btn-amber:hover {
  background: #d07609;
  color: var(--gf-white);
  transform: translateY(-2px);
}

.gf-btn-outline {
  background: transparent;
  color: var(--gf-green);
  border-color: var(--gf-green);
}
.gf-btn-outline:hover {
  background: var(--gf-green);
  color: var(--gf-white);
}

.gf-btn-white-outline {
  background: transparent;
  color: var(--gf-white);
  border-color: rgba(255,255,255,.5);
}
.gf-btn-white-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--gf-white);
}

/* ===================================================================
   TICKER BAR
   =================================================================== */
#gf-ticker-bar {
  background: var(--gf-green-dark);
  color: rgba(255,255,255,.85);
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  padding: 9px 0;
  overflow: hidden;
  position: relative;
  z-index: 9999;
}

.gf-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: gf-ticker-scroll 45s linear infinite;
}

.gf-ticker-track:hover {
  animation-play-state: paused;
}

.gf-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px;
}

.gf-ticker-sep {
  color: var(--gf-amber);
  font-weight: 900;
}

@keyframes gf-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================================================
   SECTION HELPERS (used by Elementor sections via CSS class)
   =================================================================== */
.gf-section-cream   { background-color: var(--gf-cream) !important; }
.gf-section-white   { background-color: var(--gf-white) !important; }
.gf-section-green   { background-color: var(--gf-green) !important; }
.gf-section-dark    { background-color: var(--gf-green-dark) !important; }
.gf-section-warm    { background-color: var(--gf-warm-grey) !important; }
.gf-section-light   { background-color: var(--gf-green-light) !important; }

/* Section heading underline accent */
.gf-section-title {
  font-family: 'Playfair Display', serif;
  color: var(--gf-green);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
}

.gf-section-title-white {
  color: var(--gf-white) !important;
}

.gf-accent-bar {
  width: 52px;
  height: 4px;
  background: var(--gf-amber);
  border-radius: 2px;
  margin-bottom: 16px;
}

.gf-section-sub {
  font-family: 'Nunito', sans-serif;
  color: var(--gf-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
}

/* ===================================================================
   CARD GRID SYSTEM
   =================================================================== */
.gf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .gf-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gf-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gf-grid-4,
  .gf-grid-3,
  .gf-grid-2 { grid-template-columns: 1fr; }
}

/* ===================================================================
   CPT CARD — BASE
   =================================================================== */
.gf-card {
  background: var(--gf-white);
  border-radius: var(--gf-radius);
  border: 1px solid var(--gf-border);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.gf-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gf-shadow-lg);
  text-decoration: none;
}

.gf-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--gf-green-light);
  display: block;
}

.gf-card-thumb-square {
  aspect-ratio: 1;
}

.gf-card-thumb-portrait {
  aspect-ratio: 3/4;
}

.gf-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gf-card-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gf-amber);
  margin-bottom: 8px;
}

.gf-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gf-green);
  line-height: 1.3;
  margin-bottom: 8px;
}

.gf-card-excerpt {
  font-size: .88rem;
  color: var(--gf-text-muted);
  line-height: 1.65;
  flex: 1;
}

.gf-card-meta {
  font-size: .78rem;
  color: var(--gf-text-mid);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gf-card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--gf-border);
  background: var(--gf-cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gf-card-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gf-green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}

.gf-card-link:hover {
  gap: 8px;
  color: var(--gf-amber);
}

/* ===================================================================
   HANDBOOK CARD
   =================================================================== */
.gf-handbook-card {
  background: var(--gf-white);
  border-radius: var(--gf-radius);
  border: 1px solid var(--gf-border);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.gf-handbook-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gf-shadow-lg);
}

.gf-handbook-cover-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gf-green-light);
}

.gf-handbook-cover-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.gf-handbook-card:hover .gf-handbook-cover-wrap img {
  transform: scale(1.04);
}

.gf-handbook-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13,51,33,.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gf-handbook-overlay-text {
  color: var(--gf-white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gf-handbook-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--gf-green) 0%, var(--gf-green-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--gf-white);
}

.gf-handbook-placeholder-icon {
  font-size: 3rem;
  opacity: .7;
}

.gf-handbook-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gf-handbook-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gf-green);
  line-height: 1.3;
  margin-bottom: 6px;
}

.gf-handbook-meta {
  font-size: .78rem;
  color: var(--gf-text-muted);
  margin-top: 4px;
}

.gf-handbook-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gf-border);
  background: var(--gf-cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* No-cover placeholder for handbook grid */
.gf-handbook-no-cover {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--gf-green) 0%, var(--gf-green-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.gf-handbook-no-cover span {
  font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ===================================================================
   MUSIC CPT CARD
   =================================================================== */
.gf-music-card {
  background: var(--gf-white);
  border-radius: var(--gf-radius);
  border: 1px solid var(--gf-border);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.gf-music-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gf-shadow-lg);
}

.gf-music-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gf-green-dark);
}

.gf-music-thumb-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  opacity: .85;
  transition: opacity .25s;
}

.gf-music-card:hover .gf-music-thumb-wrap img {
  opacity: 1;
}

.gf-music-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gf-music-play-btn-inner {
  width: 52px;
  height: 52px;
  background: rgba(232,131,10,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform .2s;
}

.gf-music-card:hover .gf-music-play-btn-inner {
  transform: scale(1.1);
}

.gf-music-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 18px;
  border-color: transparent transparent transparent var(--gf-white);
  margin-left: 3px;
}

.gf-music-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gf-music-cause-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--gf-green-light);
  color: var(--gf-green);
  border-radius: 30px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.gf-music-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gf-green);
  line-height: 1.3;
  margin-bottom: 8px;
}

.gf-music-excerpt {
  font-size: .83rem;
  color: var(--gf-text-muted);
  line-height: 1.6;
  flex: 1;
  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gf-music-meta {
  font-size: .75rem;
  color: var(--gf-text-mid);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gf-music-year-badge {
  background: var(--gf-warm-grey);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gf-text-mid);
}

/* ===================================================================
   CHANGE MAKER CARD
   =================================================================== */
.gf-cm-card {
  background: var(--gf-white);
  border-radius: var(--gf-radius);
  border: 1px solid var(--gf-border);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  text-align: center;
  padding-bottom: 20px;
}

.gf-cm-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gf-shadow-lg);
}

.gf-cm-photo-wrap {
  width: 100%;
  background: var(--gf-green-light);
  padding: 28px 28px 0;
}

.gf-cm-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gf-white);
  box-shadow: var(--gf-shadow-md);
  margin: 0 auto;
  display: block;
}

.gf-cm-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--gf-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gf-white);
  margin: 0 auto;
  border: 4px solid var(--gf-white);
  box-shadow: var(--gf-shadow-md);
}

.gf-cm-body {
  padding: 16px 20px 0;
}

.gf-cm-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gf-green);
  margin-bottom: 4px;
}

.gf-cm-role {
  font-size: .82rem;
  color: var(--gf-amber);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.gf-cm-bio {
  font-size: .85rem;
  color: var(--gf-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gf-cm-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gf-cm-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gf-green);
  text-decoration: none;
  border: 1.5px solid var(--gf-border);
  border-radius: var(--gf-radius-pill);
  padding: 5px 14px;
  transition: all .2s;
}

.gf-cm-link-btn:hover {
  background: var(--gf-green);
  color: var(--gf-white);
  border-color: var(--gf-green);
}

/* ===================================================================
   ORG / RWA CARD
   =================================================================== */
.gf-org-card {
  background: var(--gf-white);
  border-radius: var(--gf-radius);
  border: 1px solid var(--gf-border);
  padding: 24px;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gf-org-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gf-shadow-md);
}

.gf-org-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--gf-radius-sm);
  border: 1px solid var(--gf-border);
  padding: 4px;
  background: var(--gf-cream);
}

.gf-org-logo-placeholder {
  width: 64px;
  height: 64px;
  background: var(--gf-green-light);
  border-radius: var(--gf-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gf-green);
}

.gf-org-type-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--gf-green-light);
  color: var(--gf-green);
  border-radius: 20px;
  padding: 3px 10px;
}

.gf-org-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gf-green);
  line-height: 1.3;
}

.gf-org-area {
  font-size: .82rem;
  color: var(--gf-text-muted);
}

.gf-org-website {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gf-amber);
  text-decoration: none;
}
.gf-org-website:hover {
  text-decoration: underline;
}

/* ===================================================================
   EVENT CARD
   =================================================================== */
.gf-event-card {
  background: var(--gf-white);
  border-radius: var(--gf-radius);
  border: 1px solid var(--gf-border);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.gf-event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gf-shadow-lg);
}

.gf-event-header {
  padding: 20px 20px 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.gf-event-date-badge {
  min-width: 60px;
  background: var(--gf-green);
  border-radius: var(--gf-radius-sm);
  text-align: center;
  padding: 12px 8px;
  flex-shrink: 0;
}

.gf-event-day {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gf-white);
  line-height: 1;
}

.gf-event-month {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 3px;
}

.gf-event-info {
  flex: 1;
}

.gf-event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gf-green);
  line-height: 1.3;
  margin-bottom: 6px;
  text-decoration: none;
  display: block;
}

.gf-event-title:hover {
  color: var(--gf-amber);
}

.gf-event-meta {
  font-size: .78rem;
  color: var(--gf-text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gf-event-footer {
  padding: 12px 20px;
  background: var(--gf-cream);
  border-top: 1px solid var(--gf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gf-event-seats {
  font-size: .75rem;
  font-family: 'Nunito', sans-serif;
  color: var(--gf-text-muted);
}

.gf-event-price {
  font-weight: 700;
  font-size: .9rem;
  color: var(--gf-green);
}

.gf-event-free-badge {
  background: var(--gf-green-light);
  color: var(--gf-green);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
}

/* ===================================================================
   SINGLE CPT PAGE LAYOUT
   =================================================================== */
/* Applied via Elementor canvas; these style the non-canvas single templates */
.gf-single-wrap {
  max-width: 900px;
  margin: 48px auto;
  padding: 0 24px;
}

.gf-single-hero {
  background: var(--gf-green);
  color: var(--gf-white);
  padding: 56px 0 40px;
}

.gf-single-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.gf-single-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gf-amber);
  margin-bottom: 12px;
  display: block;
}

.gf-single-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gf-white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.gf-single-meta-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.gf-single-meta-item {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: 5px;
}

.gf-breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gf-breadcrumb a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
}

.gf-breadcrumb a:hover {
  color: var(--gf-amber);
}

.gf-breadcrumb-sep {
  color: rgba(255,255,255,.35);
}

/* Handbook single — PDF embed area */
.gf-pdf-embed-wrap {
  background: var(--gf-warm-grey);
  border-radius: var(--gf-radius);
  padding: 8px;
  margin: 32px 0;
  min-height: 600px;
}

.gf-pdf-embed-wrap iframe,
.gf-pdf-embed-wrap .embedpress-embed-wrapper {
  width: 100%;
  min-height: 600px;
  border-radius: var(--gf-radius-sm);
}

/* Music single — YouTube embed */
.gf-music-embed-wrap {
  border-radius: var(--gf-radius);
  overflow: hidden;
  margin: 32px 0;
  background: var(--gf-green-dark);
  aspect-ratio: 16/9;
}

.gf-music-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Change maker single */
.gf-cm-single-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: flex-start;
  padding: 48px 0;
}

@media (max-width: 768px) {
  .gf-cm-single-grid {
    grid-template-columns: 1fr;
  }
}

.gf-cm-single-photo {
  width: 100%;
  border-radius: var(--gf-radius);
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--gf-shadow-md);
}

/* ===================================================================
   CIVIC PRIORITIES SECTION (homepage)
   =================================================================== */
.gf-priorities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gf-priority-card {
  background: var(--gf-white);
  border-radius: var(--gf-radius);
  border: 1px solid var(--gf-border);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform .25s, box-shadow .25s;
}

.gf-priority-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gf-shadow-lg);
}

.gf-priority-icon {
  font-size: 2.2rem;
  display: block;
}

.gf-priority-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gf-green);
  margin: 0;
}

.gf-priority-stat {
  font-size: .75rem;
  color: var(--gf-text-muted);
  font-family: 'Nunito', sans-serif;
}

/* ===================================================================
   THREE STREAMS SECTION
   =================================================================== */
.gf-streams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .gf-streams-grid { grid-template-columns: 1fr; }
}

.gf-stream-card {
  border-radius: var(--gf-radius);
  overflow: hidden;
  border: 1px solid var(--gf-border);
  background: var(--gf-white);
  transition: transform .25s, box-shadow .25s;
}

.gf-stream-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gf-shadow-lg);
}

.gf-stream-head {
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
}

.gf-stream-head.stream-gf    { background: var(--gf-green); }
.gf-stream-head.stream-gff   { background: #1a3a8f; }
.gf-stream-head.stream-music { background: #5c1068; }

.gf-stream-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.gf-stream-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gf-white);
  margin-bottom: 4px;
}

.gf-stream-tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}

.gf-stream-body {
  padding: 24px;
}

.gf-stream-desc {
  font-size: .88rem;
  color: var(--gf-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.gf-stream-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gf-stream-items li {
  font-size: .84rem;
  color: var(--gf-text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.gf-stream-items li::before {
  content: '›';
  font-weight: 900;
  color: var(--gf-amber);
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ===================================================================
   MISSION SECTION
   =================================================================== */
.gf-mission-section {
  background: var(--gf-green);
  padding: 80px 0;
  text-align: center;
}

.gf-mission-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.gf-mission-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gf-white);
  line-height: 1.35;
  margin-bottom: 24px;
}

.gf-mission-quote em {
  color: var(--gf-amber);
  font-style: italic;
}

.gf-mission-sub {
  font-size: 1rem;
  color: rgba(200,230,212,.85);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ===================================================================
   STATS BAR
   =================================================================== */
.gf-stats-bar {
  background: var(--gf-green-dark);
  padding: 36px 0;
}

.gf-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .gf-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.gf-stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.gf-stat-item:last-child {
  border-right: none;
}

.gf-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gf-amber);
  line-height: 1;
  display: block;
}

.gf-stat-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
  display: block;
}

/* ===================================================================
   SECTION HEADER ROW (title left + link right)
   =================================================================== */
.gf-section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===================================================================
   PAGINATION
   =================================================================== */
.gf-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.gf-page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gf-radius-sm);
  border: 1.5px solid var(--gf-border);
  background: var(--gf-white);
  color: var(--gf-text);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s;
}

.gf-page-btn:hover,
.gf-page-btn.current {
  background: var(--gf-green);
  color: var(--gf-white);
  border-color: var(--gf-green);
}

/* ===================================================================
   ARCHIVE PAGE HERO BANNER
   =================================================================== */
.gf-archive-hero {
  background: var(--gf-green);
  padding: 48px 0 40px;
}

.gf-archive-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gf-archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gf-white);
  margin-bottom: 8px;
}

.gf-archive-sub {
  font-size: 1rem;
  color: rgba(200,230,212,.85);
  max-width: 560px;
  line-height: 1.65;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.gf-footer {
  background: var(--gf-green-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}

.gf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

@media (max-width: 1024px) {
  .gf-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .gf-footer-grid { grid-template-columns: 1fr; }
}

.gf-footer-desc {
  font-size: .85rem;
  line-height: 1.75;
  color: rgba(255,255,255,.5);
  margin-top: 16px;
}

.gf-footer-heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 18px;
}

.gf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gf-footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}

.gf-footer-links a:hover {
  color: var(--gf-white);
}

.gf-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.gf-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--gf-radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  transition: all .2s;
}

.gf-social-btn:hover {
  background: rgba(255,255,255,.1);
  color: var(--gf-white);
  border-color: rgba(255,255,255,.35);
}

.gf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===================================================================
   ELEMENTOR OVERRIDES — ensure GF styles work inside Elementor
   =================================================================== */
.elementor-section .gf-grid-3,
.elementor-section .gf-grid-4,
.elementor-section .gf-handbook-card,
.elementor-section .gf-music-card {
  /* allow grid to work inside Elementor columns */
  box-sizing: border-box;
}

/* Ensure Playfair headings override Elementor defaults */
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title,
.elementor-widget-heading h3.elementor-heading-title {
  font-family: 'Playfair Display', Georgia, serif !important;
}

/* Remove Astra's default entry padding on CPT singles */
.single-gf_handbook .site-content .ast-article-single,
.single-gf_music .site-content .ast-article-single,
.single-gf_changemaker .site-content .ast-article-single,
.single-gf_org .site-content .ast-article-single,
.single-tribe_events .site-content .ast-article-single {
  padding: 0 !important;
  margin: 0 !important;
}

/* ===================================================================
   RESPONSIVE UTILITIES
   =================================================================== */
@media (max-width: 768px) {
  .gf-priorities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gf-section-title { font-size: 1.8rem; }
  .gf-archive-title { font-size: 1.8rem; }
  .gf-single-title  { font-size: 1.6rem; }

  .gf-section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .gf-stats-grid .gf-stat-item { border-right: none; }
}

/* ── SECTION BACKGROUND ALTERNATION ────────── */

/* Civic Priorities — light cream */
.gf-civic-priorities-section,
section.elementor-section:has(.gf-priorities-grid) {
    background-color: #FAF8F3 !important;
}

/* Three Streams — white */
.gf-streams-section,
section.elementor-section:has(.gf-streams-grid) {
    background-color: #ffffff !important;
}

/* Upcoming Events — light warm grey */
.gf-events-section {
    background-color: #F5F2EC !important;
}

/* Civic Handbooks — white */
.gf-handbooks-section {
    background-color: #ffffff !important;
}

/* Our Mission quote block — keep green but lighter */
.gf-mission-section {
    background-color: #2E7D52 !important;
}

/* Stats bar — dark charcoal instead of green */
.gf-stats-bar {
    background-color: #2D2D2D !important;
}