/*
Theme Name: NGO Growth Hub
Theme URI: https://onlinegrowthhub.org
Author: NGO Growth Hub Team
Author URI: https://onlinegrowthhub.org
Description: A professional, warm, and community-focused WordPress theme for NGO and non-profit organizations. Features an orange and white color scheme, hero banner, programs section, gallery, testimonials, and full footer. Fully customizable via the WordPress Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngo-growth-hub
Tags: custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready, blog, news, charity
*/

/* =====================================================
   RESET & BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; font-size: 15px; color: #333; background: #fff; line-height: 1.7; }
a { color: var(--ngo-primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--ngo-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =====================================================
   CSS VARIABLES
===================================================== */
:root {
  --ngo-primary:      #FF6600;
  --ngo-primary-dark: #e05500;
  --ngo-primary-light:#ff8533;
  --ngo-dark:         #1a1a1a;
  --ngo-text:         #444;
  --ngo-light-bg:     #f8f8f8;
  --ngo-border:       #e0e0e0;
  --ngo-white:        #ffffff;
  --ngo-shadow:       0 4px 20px rgba(0,0,0,0.10);
  --ngo-radius:       8px;
  --ngo-transition:   all 0.3s ease;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; color: #1a1a1a; line-height: 1.3; font-weight: 700; }
p { margin-bottom: 1rem; }
.section-title { font-size: 2rem; color: var(--ngo-dark); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--ngo-primary); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; font-family: 'Poppins', sans-serif; }
.section-divider { width: 50px; height: 3px; background: var(--ngo-primary); margin: 1rem 0 1.5rem; }
.section-divider.center { margin: 1rem auto 1.5rem; }
.text-center { text-align: center; }
.text-white { color: #fff; }

/* =====================================================
   LAYOUT
===================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 70px 0; }
.section-pad-sm { padding: 50px 0; }
.row { display: flex; flex-wrap: wrap; gap: 30px; }
.col-3 { flex: 0 0 calc(33.333% - 20px); }
.col-4 { flex: 0 0 calc(25% - 22.5px); }
.col-2 { flex: 0 0 calc(50% - 15px); }

/* =====================================================
   BUTTONS
===================================================== */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: var(--ngo-transition); text-align: center; font-family: 'Poppins', sans-serif; }
.btn-primary { background: var(--ngo-primary); color: #fff; }
.btn-primary:hover { background: var(--ngo-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,102,0,0.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--ngo-primary); }
.btn-outline-orange { background: transparent; color: var(--ngo-primary); border: 2px solid var(--ngo-primary); }
.btn-outline-orange:hover { background: var(--ngo-primary); color: #fff; }

/* =====================================================
   TOP BAR
===================================================== */
.ngo-topbar { background: var(--ngo-primary); color: #fff; padding: 8px 0; font-size: 13px; }
.ngo-topbar .topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ngo-topbar .topbar-left { display: flex; align-items: center; gap: 20px; }
.ngo-topbar .topbar-left a, .ngo-topbar .topbar-right a { color: #fff; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.ngo-topbar .topbar-left a:hover, .ngo-topbar .topbar-right a:hover { opacity: 0.8; }
.ngo-topbar .topbar-right { display: flex; align-items: center; gap: 10px; }
.ngo-topbar .social-link { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ngo-topbar .social-link:hover { background: rgba(255,255,255,0.4); }

/* =====================================================
   HEADER
===================================================== */
.ngo-header { background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.ngo-header .header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 55px; width: auto; }
.site-logo .logo-text .site-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--ngo-dark); line-height: 1.2; }
.site-logo .logo-text .site-tagline { font-size: 11px; color: var(--ngo-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.main-nav ul { display: flex; align-items: center; gap: 5px; }
.main-nav ul li a { padding: 8px 14px; font-weight: 500; font-size: 14px; color: var(--ngo-dark); border-radius: var(--ngo-radius); transition: var(--ngo-transition); }
.main-nav ul li a:hover, .main-nav ul li.current-menu-item > a { color: var(--ngo-primary); }
.main-nav .donate-btn a { background: var(--ngo-primary); color: #fff !important; border-radius: 50px; padding: 10px 24px !important; }
.main-nav .donate-btn a:hover { background: var(--ngo-primary-dark) !important; color: #fff !important; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ngo-dark); margin: 5px 0; transition: var(--ngo-transition); }

/* =====================================================
   HERO SECTION
===================================================== */
.hero-section { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,26,0.75) 0%, rgba(0,0,0,0.45) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 680px; }
.hero-badge { display: inline-block; background: var(--ngo-primary); color: #fff; padding: 6px 18px; border-radius: 50px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.hero-content h1 { font-size: 3.2rem; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; margin-bottom: 35px; opacity: 0.9; max-width: 540px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats { margin-top: 50px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat .num { font-size: 2rem; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--ngo-primary); }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 1px; }

/* =====================================================
   ABOUT SECTION
===================================================== */
.about-section { background: #fff; }
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--ngo-radius); width: 100%; height: 400px; object-fit: cover; }
.about-img-badge { position: absolute; bottom: -20px; right: -20px; background: var(--ngo-primary); color: #fff; padding: 20px; border-radius: var(--ngo-radius); text-align: center; }
.about-img-badge .num { font-size: 2rem; font-weight: 700; display: block; font-family: 'Playfair Display', serif; }
.about-img-badge .text { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.about-content { display: flex; flex-direction: column; justify-content: center; }
.about-list { margin: 1.5rem 0; }
.about-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--ngo-text); }
.about-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ngo-primary); flex-shrink: 0; }

/* =====================================================
   CHAIRMAN MESSAGE
===================================================== */
.chairman-section { background: var(--ngo-light-bg); }
.chairman-card { background: #fff; border-radius: var(--ngo-radius); padding: 40px; display: flex; gap: 40px; align-items: flex-start; box-shadow: var(--ngo-shadow); }
.chairman-photo { flex-shrink: 0; }
.chairman-photo img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 5px solid var(--ngo-primary); }
.chairman-name { font-size: 1.2rem; color: var(--ngo-dark); margin-bottom: 4px; }
.chairman-role { color: var(--ngo-primary); font-size: 13px; font-weight: 500; margin-bottom: 15px; }
.chairman-quote { font-size: 1.1rem; font-style: italic; color: var(--ngo-text); line-height: 1.8; border-left: 4px solid var(--ngo-primary); padding-left: 20px; }

/* =====================================================
   PROGRAMS SECTION
===================================================== */
.programs-section { background: #fff; }
.program-card { text-align: center; padding: 10px; }
.program-img-wrap { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; border: 5px solid var(--ngo-primary); }
.program-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.program-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--ngo-dark); }
.program-card p { font-size: 14px; color: var(--ngo-text); }
.program-card .program-cat { display: inline-block; background: #fff3eb; color: var(--ngo-primary); padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }

/* =====================================================
   NEWS SECTION
===================================================== */
.news-section { background: var(--ngo-light-bg); }
.news-card { background: #fff; border-radius: var(--ngo-radius); overflow: hidden; box-shadow: var(--ngo-shadow); transition: var(--ngo-transition); }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.13); }
.news-card .news-img { height: 210px; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .news-body { padding: 20px; }
.news-meta { display: flex; gap: 12px; font-size: 12px; color: #888; margin-bottom: 10px; }
.news-meta span { display: flex; align-items: center; gap: 4px; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.5; }
.news-card h3 a { color: var(--ngo-dark); }
.news-card h3 a:hover { color: var(--ngo-primary); }
.news-card p { font-size: 13.5px; color: var(--ngo-text); }
.read-more { color: var(--ngo-primary); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; }

/* =====================================================
   GALLERY SECTION
===================================================== */
.gallery-section { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--ngo-radius); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(255,102,0,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--ngo-transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-size: 2rem; }

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonials-section { background: var(--ngo-light-bg); }
.testimonial-card { background: #fff; border-radius: var(--ngo-radius); padding: 30px; box-shadow: var(--ngo-shadow); position: relative; }
.testimonial-card::before { content: '\201C'; font-size: 5rem; color: var(--ngo-primary); opacity: 0.15; position: absolute; top: 10px; left: 20px; font-family: serif; line-height: 1; }
.testimonial-text { font-style: italic; color: var(--ngo-text); margin-bottom: 20px; line-height: 1.8; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ngo-primary); }
.testimonial-author .name { font-weight: 600; color: var(--ngo-dark); font-size: 15px; }
.testimonial-author .role { font-size: 12px; color: #888; }
.stars { color: var(--ngo-primary); font-size: 14px; margin-bottom: 4px; }

/* =====================================================
   SOCIAL FOLLOW / CTA
===================================================== */
.cta-section { background: var(--ngo-primary); color: #fff; text-align: center; padding: 60px 0; }
.cta-section h2 { color: #fff; font-size: 2rem; margin-bottom: 15px; }
.cta-section p { opacity: 0.9; font-size: 1rem; margin-bottom: 30px; max-width: 550px; margin-left: auto; margin-right: auto; }
.social-icons-large { display: flex; justify-content: center; gap: 15px; margin-top: 25px; }
.social-icons-large a { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; transition: var(--ngo-transition); }
.social-icons-large a:hover { background: #fff; color: var(--ngo-primary); }

/* =====================================================
   FOOTER
===================================================== */
.ngo-footer { background: #1a1a1a; color: #aaa; padding: 60px 0 0; }
.footer-widgets { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-widget h4 { color: #fff; font-size: 1rem; font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ngo-primary); display: inline-block; }
.footer-about-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-about-logo .logo-text .site-name { color: #fff; font-size: 1.1rem; }
.footer-widget p { font-size: 13.5px; line-height: 1.8; }
.footer-widget ul li { margin-bottom: 8px; }
.footer-widget ul li a { color: #aaa; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.footer-widget ul li a:hover { color: var(--ngo-primary); padding-left: 5px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13.5px; }
.footer-contact-item .icon { color: var(--ngo-primary); margin-top: 3px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 15px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 14px; transition: var(--ngo-transition); }
.footer-social a:hover { background: var(--ngo-primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: var(--ngo-primary); }

/* =====================================================
   INNER PAGE HERO
===================================================== */
.page-banner { background: linear-gradient(135deg, var(--ngo-dark) 0%, #2c2c2c 100%); padding: 60px 0; text-align: center; color: #fff; }
.page-banner h1 { color: #fff; font-size: 2.2rem; margin-bottom: 12px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: var(--ngo-primary); }
.breadcrumb span.sep { color: rgba(255,255,255,0.4); }

/* =====================================================
   SINGLE POST / PAGE
===================================================== */
.entry-content { max-width: 800px; margin: 0 auto; padding: 50px 20px; }
.entry-content h1 { font-size: 2rem; margin-bottom: 20px; }
.entry-content .entry-meta { color: #888; font-size: 13px; margin-bottom: 25px; display: flex; gap: 15px; }
.entry-content .featured-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--ngo-radius); margin-bottom: 30px; }
.entry-content p, .entry-content li { color: var(--ngo-text); line-height: 1.85; }

/* =====================================================
   SIDEBAR
===================================================== */
.sidebar .widget { background: #fff; border-radius: var(--ngo-radius); padding: 25px; margin-bottom: 30px; box-shadow: var(--ngo-shadow); }
.sidebar .widget-title { font-size: 1rem; font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--ngo-dark); padding-bottom: 12px; border-bottom: 2px solid var(--ngo-primary); margin-bottom: 18px; }

/* =====================================================
   SECTION HEADER
===================================================== */
.section-header { margin-bottom: 45px; }
.section-header.center { text-align: center; }
.section-header.center .section-divider { margin: 1rem auto 1.5rem; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 2.5rem; }
  .col-3 { flex: 0 0 calc(50% - 15px); }
}

@media (max-width: 768px) {
  .ngo-topbar .topbar-left { display: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); padding: 20px; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li a { display: block; padding: 12px 15px; border-bottom: 1px solid var(--ngo-border); }
  .menu-toggle { display: block; }
  .ngo-header .header-inner { position: relative; }
  .hero-content h1 { font-size: 2rem; }
  .hero-section { min-height: 60vh; }
  .hero-stats { gap: 20px; }
  .col-3, .col-2 { flex: 0 0 100%; }
  .col-4 { flex: 0 0 calc(50% - 15px); }
  .chairman-card { flex-direction: column; align-items: center; text-align: center; padding: 30px 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: 1fr; }
  .about-img-badge { right: 10px; bottom: 10px; }
  .section-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .col-4 { flex: 0 0 100%; }
  .hero-content h1 { font-size: 1.7rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
