/**
 * GFLF Elementor Template — Premium NGO frontend styles
 * Visual quality & UX enhancements. Structure unchanged.
 * Spacing 100–140px, border-radius 12–16px, typography, shadows, animations.
 */

/* ========== CSS Variables ========== */
:root {
  --gflf-radius: 14px;
  --gflf-radius-lg: 16px;
  --gflf-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --gflf-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
  --gflf-primary: #1a5f4a;
  --gflf-primary-dark: #0f3d32;
  --gflf-accent: #c9a227;
  --gflf-section-padding: 120px;
  --gflf-section-padding-lg: 140px;
}

/* ========== Global: Section spacing (100–140px desktop) ========== */
.gflf-section.elementor-section {
  padding-top: 100px;
  padding-bottom: 100px;
}
@media (min-width: 768px) {
  .gflf-section.elementor-section {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}
@media (min-width: 1024px) {
  .gflf-section.elementor-section {
    padding-top: var(--gflf-section-padding);
    padding-bottom: var(--gflf-section-padding);
  }
}
@media (min-width: 1200px) {
  .gflf-section.elementor-section {
    padding-top: var(--gflf-section-padding-lg);
    padding-bottom: var(--gflf-section-padding-lg);
  }
}

/* Alternating section backgrounds & subtle depth */
.gflf-section-light {
  background-color: #ffffff !important;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.04);
}
.gflf-section-alt {
  background-color: #f5f7f9 !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

/* Typography scale — larger headings, better line spacing */
.gflf-section .elementor-heading-title {
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.gflf-section .elementor-widget-text-editor p,
.gflf-section .elementor-widget-text-editor {
  line-height: 1.7;
  max-width: 72ch;
}
.gflf-section .elementor-widget-heading .elementor-heading-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* Consistent border-radius on cards and images */
.gflf-card-rounded,
.gflf-program-card .elementor-widget-image,
.gflf-project-card .elementor-widget-image {
  border-radius: var(--gflf-radius);
  overflow: hidden;
}
.gflf-card-rounded .elementor-widget-image img,
.gflf-program-card .elementor-widget-image img {
  border-radius: var(--gflf-radius);
}

/* ========== Sticky header ========== */
.elementor-location-header .elementor-section.elementor-sticky--effects {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}
body.elementor-editor-active .elementor-location-header .elementor-section.elementor-sticky--effects {
  box-shadow: none;
}

/* ========== HERO: Full viewport, large heading, dark overlay, 2 buttons, animation ========== */
.gflf-hero-section.elementor-section {
  min-height: 90vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gflf-hero-fullheight .elementor-slides-wrapper,
.gflf-hero-fullheight .elementor-slide {
  min-height: 90vh !important;
}
@media (min-width: 1024px) {
  .gflf-hero-section.elementor-section,
  .gflf-hero-fullheight .elementor-slides-wrapper,
  .gflf-hero-fullheight .elementor-slide {
    min-height: 92vh !important;
  }
}

/* Dark gradient overlay (0.5–0.6) */
.gflf-hero-section .elementor-slides-wrapper .elementor-slide-overlay,
.gflf-hero-section .elementor-slide-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
}
.gflf-hero-section .elementor-slide-heading {
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem !important;
}
.gflf-hero-section .elementor-slide-description {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
  line-height: 1.6 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.75rem !important;
}

/* Limit to 2 buttons: primary + secondary; hide third if present */
.gflf-hero-section .elementor-slide-buttons .elementor-button-wrapper:nth-child(n+3) {
  display: none !important;
}
.gflf-hero-section .elementor-slide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.gflf-hero-section .elementor-slide-content .elementor-button {
  min-height: 52px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--gflf-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gflf-hero-section .elementor-slide-content .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Smooth fade/slide animation for slide content */
.gflf-hero-section .elementor-slide-content {
  animation: gflfHeroFadeIn 1s ease-out forwards;
}
@keyframes gflfHeroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== IMPACT: Very large numbers, counter animation, icons, spacing ========== */
#impact-section .elementor-column,
.gflf-impact-section .elementor-column {
  padding: 24px 16px !important;
  position: relative;
}
/* Subtle icon above each stat (decorative dot) */
#impact-section .elementor-widget-counter::before,
.gflf-impact-section .elementor-widget-counter::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--gflf-primary), var(--gflf-accent));
  border-radius: 2px;
  margin: 0 auto 20px;
}
#impact-section .elementor-widget-counter .elementor-counter-number-wrapper,
.gflf-impact-section .elementor-widget-counter .elementor-counter-number-wrapper {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  color: var(--gflf-primary) !important;
  letter-spacing: -0.03em;
  animation: gflfCountReveal 0.8s ease-out forwards;
}
@keyframes gflfCountReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#impact-section .elementor-widget-counter .elementor-counter-title,
.gflf-impact-section .elementor-widget-counter .elementor-counter-title {
  font-size: 1rem !important;
  color: #2c2c2c !important;
  margin-top: 12px !important;
  line-height: 1.4 !important;
  font-weight: 500;
}
@media (min-width: 768px) {
  #impact-section .elementor-widget-counter .elementor-counter-number-wrapper,
  .gflf-impact-section .elementor-widget-counter .elementor-counter-number-wrapper {
    font-size: clamp(3rem, 5vw, 4rem) !important;
  }
}

/* ========== PROGRAMS: Hover (zoom, lift, shadow), rounded corners, card spacing ========== */
.gflf-programs-section .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 0 12px !important;
}
.gflf-program-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-radius: var(--gflf-radius-lg) !important;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--gflf-shadow);
  padding: 0 !important;
}
.gflf-program-card .elementor-element-populated {
  padding: 0 !important;
}
.gflf-program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--gflf-shadow-hover);
}
.gflf-program-card .elementor-widget-image {
  overflow: hidden;
  border-radius: var(--gflf-radius-lg) var(--gflf-radius-lg) 0 0;
}
.gflf-program-card .elementor-widget-image img {
  transition: transform 0.5s ease;
  border-radius: 0;
}
.gflf-program-card:hover .elementor-widget-image img {
  transform: scale(1.08);
}
.gflf-program-card .elementor-widget-heading,
.gflf-program-card .elementor-widget-text-editor {
  padding: 24px 24px 0 !important;
}
.gflf-program-card .elementor-widget-text-editor {
  padding-bottom: 24px !important;
}
.gflf-program-card .elementor-heading-title {
  font-size: 1.35rem !important;
  margin-bottom: 0.5rem !important;
}

/* ========== ABOUT: Image overlay/shape, alignment, readability ========== */
.gflf-about-image-wrap .elementor-widget-image {
  position: relative;
  border-radius: var(--gflf-radius-lg);
  overflow: hidden;
  box-shadow: var(--gflf-shadow);
}
.gflf-about-image-wrap .elementor-widget-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
  pointer-events: none;
}
.gflf-about-section .elementor-widget-text-editor p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.gflf-about-section .elementor-widget-button .elementor-button {
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--gflf-radius);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gflf-about-section .elementor-widget-button .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 95, 74, 0.3);
}

/* ========== PROJECTS & NEWS: Hover overlay on images, scroll animation, card spacing ========== */
.gflf-project-card {
  border-radius: var(--gflf-radius) !important;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.gflf-project-card:hover {
  transform: translateY(-4px);
}
.gflf-project-card .elementor-widget-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--gflf-radius);
}
.gflf-project-card .elementor-widget-image img {
  transition: transform 0.4s ease;
  border-radius: var(--gflf-radius);
}
.gflf-project-card .elementor-widget-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 61, 50, 0.5), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--gflf-radius);
}
.gflf-project-card:hover .elementor-widget-image::after {
  opacity: 1;
}
.gflf-project-card:hover .elementor-widget-image img {
  transform: scale(1.05);
}
.gflf-project-card .elementor-widget-heading {
  padding-top: 1rem !important;
}
.gflf-project-card .elementor-heading-title {
  font-size: 1.125rem !important;
  transition: color 0.2s ease;
}
.gflf-project-card:hover .elementor-heading-title {
  color: var(--gflf-primary) !important;
}

/* News posts: same overlay + spacing */
.gflf-news-section .elementor-posts-container .elementor-post {
  border-radius: var(--gflf-radius);
  overflow: hidden;
  box-shadow: var(--gflf-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gflf-news-section .elementor-posts-container .elementor-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--gflf-shadow-hover);
}
.gflf-news-section .elementor-post__thumbnail {
  overflow: hidden;
  border-radius: var(--gflf-radius) var(--gflf-radius) 0 0;
}
.gflf-news-section .elementor-post__thumbnail img {
  transition: transform 0.4s ease;
}
.gflf-news-section .elementor-post:hover .elementor-post__thumbnail img {
  transform: scale(1.05);
}
.gflf-news-section .elementor-post__thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gflf-news-section .elementor-post:hover .elementor-post__thumbnail::after {
  opacity: 1;
}
.gflf-news-section .elementor-posts-container .elementor-post__text {
  padding: 20px !important;
}

/* Subtle animation on scroll (fade-in when in viewport — works with Elementor motion) */
.gflf-projects-section .elementor-column,
.gflf-news-section .elementor-posts-container .elementor-post {
  animation: gflfFadeInUp 0.7s ease-out forwards;
}
.gflf-projects-section .elementor-column:nth-child(2) { animation-delay: 0.1s; }
.gflf-projects-section .elementor-column:nth-child(3) { animation-delay: 0.2s; }
.gflf-projects-section .elementor-column:nth-child(4) { animation-delay: 0.3s; }
@keyframes gflfFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== DONATION CTA: Visually dominant, gradient, large button, centered ========== */
#donation-cta.gflf-donation-cta,
.gflf-donation-cta.elementor-section {
  position: relative;
  background: linear-gradient(135deg, #1a5f4a 0%, #0f3d32 50%, #0d3529 100%) !important;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
  overflow: hidden;
}
.gflf-donation-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.gflf-donation-cta .elementor-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.gflf-donation-cta .elementor-heading-title {
  color: #fff !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}
.gflf-donation-cta .elementor-button {
  min-height: 58px !important;
  padding: 18px 40px !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  border-radius: var(--gflf-radius-lg) !important;
  background-color: var(--gflf-accent) !important;
  color: #1a1a1a !important;
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gflf-donation-cta .elementor-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201, 162, 39, 0.45);
}

/* ========== FOOTER: Darker background, padding, hierarchy, donate CTA, column spacing ========== */
.gflf-footer-cta.elementor-section {
  background-color: #0f3d32 !important;
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}
.gflf-footer-cta .elementor-button {
  min-height: 52px;
  padding: 14px 32px;
  border-radius: var(--gflf-radius);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}
.gflf-footer-cta .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.4);
}

.gflf-footer-main.elementor-section {
  background-color: #0d3529 !important;
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}
.gflf-footer-main .elementor-column {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.gflf-footer-main .elementor-heading-title {
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem !important;
}
.gflf-footer-main .elementor-widget-text-editor,
.gflf-footer-main .elementor-widget-text-editor p,
.gflf-footer-main a {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
}
.gflf-footer-main a:hover {
  color: var(--gflf-accent) !important;
}

.gflf-footer-bottom.elementor-section {
  background-color: #0a2c22 !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
.gflf-footer-bottom .elementor-widget-text-editor p {
  font-size: 0.8125rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ========== MOBILE: Larger buttons, spacing, clean stack, hierarchy ========== */
@media (max-width: 767px) {
  .gflf-section.elementor-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
  .gflf-hero-section .elementor-slide-heading {
    font-size: 1.75rem !important;
  }
  .gflf-hero-section .elementor-slide-content .elementor-button {
    min-height: 52px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .gflf-hero-section .elementor-slide-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  #impact-section .elementor-column,
  .gflf-impact-section .elementor-column {
    width: 50% !important;
    margin-bottom: 32px;
    padding: 16px 8px !important;
  }
  #impact-section .elementor-widget-counter .elementor-counter-number-wrapper,
  .gflf-impact-section .elementor-widget-counter .elementor-counter-number-wrapper {
    font-size: 2.25rem !important;
  }
  .gflf-program-card,
  .gflf-project-card {
    margin-bottom: 24px;
  }
  .gflf-donation-cta .elementor-button {
    min-height: 54px !important;
    padding: 16px 24px !important;
    width: 100%;
    max-width: 320px;
  }
  .gflf-footer-cta .elementor-button {
    width: 100%;
    max-width: 280px;
  }
  .gflf-footer-main .elementor-column {
    width: 100% !important;
    margin-bottom: 32px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .elementor-location-header .elementor-section .elementor-column {
    width: 100% !important;
  }
  .elementor-location-header .elementor-widget-nav-menu ul {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 479px) {
  #impact-section .elementor-column,
  .gflf-impact-section .elementor-column {
    width: 100% !important;
  }
  #impact-section .elementor-widget-counter .elementor-counter-number-wrapper,
  .gflf-impact-section .elementor-widget-counter .elementor-counter-number-wrapper {
    font-size: 2.5rem !important;
  }
}

/* ========== Testimonials — trust, real voices ========== */
.gflf-testimonials-section .gflf-testimonial-card {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--gflf-radius);
  box-shadow: var(--gflf-shadow);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.gflf-testimonials-section .gflf-testimonial-card:hover {
  box-shadow: var(--gflf-shadow-hover);
}
.gflf-testimonials-section blockquote {
  font-style: normal;
  line-height: 1.65;
}

/* ========== Partners — logo area ========== */
.gflf-partners-section .elementor-widget-text-editor p {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Leadership — credibility ========== */
.gflf-leadership-section .elementor-widget-image {
  border-radius: var(--gflf-radius-lg);
  overflow: hidden;
  box-shadow: var(--gflf-shadow);
}
.gflf-leadership-section .elementor-widget-text-editor p {
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Donation CTA — urgency/trust/currency hierarchy */
.gflf-donation-cta .elementor-widget-text-editor p {
  margin-bottom: 0.25rem;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .gflf-hero-section .elementor-slide-content,
  #impact-section .elementor-widget-counter .elementor-counter-number-wrapper,
  .gflf-program-card,
  .gflf-program-card .elementor-widget-image img,
  .gflf-project-card,
  .gflf-news-section .elementor-post,
  .gflf-donation-cta .elementor-button,
  .gflf-footer-cta .elementor-button {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
