/*
Theme Name: Gramin Utthan Abhiyan Theme
Theme URI: https://gua.org.np
Author: Lakhindra
Description: A professional, high-performance bilingual theme customized for NGOs and community development organizations in Nepal.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gramin-utthan
*/

/* ==========================================================================
   1. CORE BRAND DESIGN SYSTEM & GLOBAL VARIABLES (From gua-style.css)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
  --navy:          #2E308E;
  --navy-dark:     #1e2070;
  --navy-light:    #eef0fa;
  --green:         #00A651;
  --green-dark:    #007a3d;
  --green-light:   #e6f7ef;
  --red:           #ED1C24;
  --red-dark:      #c41019;
  --red-light:     #fdf0f0;
  --white:         #FFFFFF;
  --bg:            #f7f8fc;
  --text-dark:     #1a1c4b;
  --text-body:     #4a4a6a;
  --text-light:    #7a7a9a;
  --border:        #dde1f0;
  --shadow-sm:     0 2px 8px rgba(46,48,142,0.08);
  --shadow-md:     0 6px 24px rgba(46,48,142,0.13);
  --shadow-lg:     0 16px 48px rgba(46,48,142,0.17);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --transition:    all 0.3s ease;
  --font-en:       'Poppins', 'Hind', sans-serif;
  --font-np:       'Noto Sans Devanagari', sans-serif;
  --container:     1200px;
}

/* ---- Global Resets & Elements ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-en);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}
.np-font { font-family: var(--font-np); }

/* ---- Bilingual Body Rule Overrides ---- */
body.lang-np { font-family: var(--font-np); line-height: 1.85; }
body.lang-np h1, body.lang-np h2, body.lang-np h3,
body.lang-np h4, body.lang-np h5, body.lang-np h6 { font-family: var(--font-np); line-height: 1.4; }
body.lang-np p, body.lang-np li, body.lang-np span,
body.lang-np a, body.lang-np button, body.lang-np label { font-family: var(--font-np); }

#lang-toggle {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 10px;
  white-space: nowrap;
}
#lang-toggle:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
}

/* ---- UI Structural Layout Classes ---- */
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-green { color: var(--green); }
.bg-navy { background: var(--navy); }
.bg-light { background: var(--bg); }
.section-pad { padding: 80px 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.section-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  border: 1.5px solid var(--green);
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1rem; color: var(--text-light); max-width: 640px; margin: 0 auto; line-height: 1.8; }
.section-line { width: 60px; height: 4px; background: linear-gradient(90deg, var(--green) 0%, var(--navy) 100%); border-radius: 99px; margin: 1rem auto 1.5rem; }

/* ==========================================================================
   2. COMPONENT DESIGN INTERFACES (Header, Hero, Cards, Ticker, Buttons)
   ========================================================================== */
.gov-banner { background: var(--navy); color: #fff; padding: 6px 0; font-size: 0.78rem; border-bottom: 3px solid var(--green); }
.gov-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gov-banner-left { display: flex; align-items: center; gap: 1rem; }
.gov-banner-right { display: flex; align-items: center; gap: 1.5rem; }
.gov-banner-right a { color: rgba(255,255,255,0.75); }

.site-header { background: var(--white); box-shadow: 0 2px 16px rgba(46,48,142,0.1); position: sticky; top: 0; z-index: 999; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(46,48,142,0.18); }
.header-top { padding: 14px 0; border-bottom: 1px solid var(--border); }
.header-top .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-logo { display: flex; align-items: center; gap: 1rem; }
.header-logo img { height: 70px; width: auto; object-fit: contain; }
.header-logo-np { font-family: var(--font-np); font-size: 1.3rem; font-weight: 700; color: var(--navy); display: block; }
.header-logo-en { font-size: 0.95rem; font-weight: 600; color: var(--green); display: block; }
.header-logo-tagline { font-size: 0.72rem; color: var(--text-light); font-style: italic; display: block; }
.header-contact-strip { display: flex; align-items: center; gap: 2rem; font-size: 0.82rem; }
.hcs-item { display: flex; align-items: center; gap: 0.5rem; }
.hcs-item i { color: var(--green); }

.navbar { background: var(--navy); padding: 0; }
.navbar .container { display: flex; align-items: stretch; position: relative; }
.nav-menu { display: flex; align-items: stretch; flex: 1; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 0 1rem; height: 48px; color: rgba(255,255,255,0.88); font-size: 0.82rem; font-weight: 500; border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-menu .current-menu-item > a, .nav-link.active { color: #fff; background: rgba(255,255,255,0.1); border-bottom-color: var(--green); }

/* Dropdowns Framework */
.sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); box-shadow: var(--shadow-lg); padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 1000; border-top: 3px solid var(--green); }
.nav-item:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 0.55rem 1.25rem; font-size: 0.84rem; color: var(--text-body); }
.sub-menu a:hover { background: var(--navy-light); color: var(--navy); padding-left: 1.6rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 12px; margin-left: auto; }
.hamburger span { width: 24px; height: 2px; background: var(--white); display: block; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero Panel Rules */
.hero { position: relative; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1a5c30 100%); min-height: 85vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; padding: 60px 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(0,166,81,0.2); border: 1.5px solid rgba(0,166,81,0.5); color: #4dff98; font-size: 0.78rem; font-weight: 600; padding: 0.4rem 1rem; border-radius: 99px; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem; }
.hero h1 .accent { color: var(--green); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.hero-intro { font-size: 0.95rem; color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; max-width: 540px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.hero-stat-box { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-md); padding: 1.1rem 1rem; text-align: center; }
.hero-stat-box .stat-num { font-size: 1.8rem; font-weight: 800; color: var(--green); display: block; }
.hero-stat-box .stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-logo-glow { width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(0,166,81,0.2) 0%, transparent 70%); display: flex; align-items: center; justify-content: center; position: relative; }
.hero-logo-glow img { width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 0 30px rgba(0,166,81,0.4)); }

/* Interactive Blocks Elements */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,166,81,0.3); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #white; transform: translateY(-2px); }

.ticker-bar { background: var(--green); padding: 8px 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; }
.ticker-label { background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 3px; margin-right: 1rem; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-items { display: flex; gap: 3rem; animation: ticker-scroll 30s linear infinite; white-space: nowrap; }
.ticker-items span { font-size: 0.82rem; color: #fff; font-weight: 500; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.welcome-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: center; }
.welcome-logo-box { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.welcome-logo-box img { width: 200px; height: auto; }
.est-badge { background: var(--navy); color: #fff; padding: 0.5rem 1.25rem; border-radius: 99px; font-size: 0.82rem; font-weight: 600; }
.welcome-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.5rem; }
.pillar-item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.75rem; background: var(--bg); border-radius: var(--radius-sm); border-left: 3px solid var(--green); font-size: 0.85rem; color: var(--text-dark); font-weight: 500; }

.focus-section { background: var(--bg); }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.focus-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: var(--transition); }
.focus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green); }
.focus-icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--green); margin-bottom: 1.1rem; transition: var(--transition); }
.focus-card:hover .focus-icon { background: var(--green); color: var(--white); }
.focus-card h4 { font-size: 0.97rem; color: var(--navy); margin-bottom: 0.5rem; }
.focus-card p { font-size: 0.83rem; color: var(--text-light); line-height: 1.7; }
.focus-num { position: absolute; top: 1.25rem; right: 1.25rem; font-size: 2.5rem; font-weight: 900; color: var(--border); line-height: 1; user-select: none; }

/* ==========================================================================
   3. RESPONSIVE MEDIA SYSTEM ADAPTATIONS (From responsive.css)
   ========================================================================== */
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .approach-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .welcome-grid { grid-template-columns: 1fr; }
  .header-contact-strip { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--navy-dark); flex-direction: column; padding: 80px 0 2rem; overflow-y: auto; transition: right 0.35s ease; z-index: 1000; box-shadow: -4px 0 24px rgba(0,0,0,0.3); }
  .nav-menu.open { right: 0; }
  .nav-item { width: 100%; }
  .nav-link { height: auto; padding: 0.85rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); width: 100%; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.05); display: none; border-top: none; }
  .nav-item.open .sub-menu { display: block; }
  .sub-menu a { padding-left: 2rem; color: rgba(255,255,255,0.7); }
  .gov-banner { display: none; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* Back to top & animations */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 46px; height: 46px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 998; border: 2px solid var(--green); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green); border-color: var(--navy); }

.site-footer { background: #12143a; color: rgba(255,255,255,0.55); padding: 60px 0 20px; font-size: 0.85rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; text-transform: uppercase; margin-bottom: 1.25rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--green); font-size: 0.88rem; }
.footer-bottom { background: #0c0e2c; padding: 18px 0; margin-top: 40px; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.4); }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* WordPress Core Elements Support */
.aligncenter { display: block; margin: 2rem auto; }
.alignleft { float: left; margin: 0 2rem 2rem 0; }
.alignright { float: right; margin: 0 0 2rem 2rem; }
.wp-block-button__link { display: inline-block; background: var(--green); color: #fff; padding: 0.75rem 2rem; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; }