/* ============================================================
   The Charity for Children – style.css
   Author: Manus AI (30-year design experience simulation)
   Colors:
     Primary Green  : #28a745
     Primary Blue   : #007bff
     White          : #ffffff
     Light Gray     : #f8f9fa
     Accent Orange  : #fd7e14
   Fonts: Poppins (headings) + Open Sans (body)
   ============================================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --green:   #28a745;
  --blue:    #007bff;
  --orange:  #fd7e14;
  --white:   #ffffff;
  --light:   #f8f9fa;
  --dark:    #1a1a2e;
  --gray:    #6c757d;
  --shadow:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.18);
  --radius:  12px;
  --transition: all 0.3s ease;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #333;
  background-color: var(--white);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

a { text-decoration: none; color: var(--blue); }
a:hover { color: var(--green); }

img { max-width: 100%; height: auto; }

/* ---------- Utility Classes ---------- */
.text-green  { color: var(--green) !important; }
.text-orange { color: var(--orange) !important; }
.text-blue   { color: var(--blue) !important; }
.bg-green    { background-color: var(--green) !important; }
.bg-light-green { background-color: #e8f5e9 !important; }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 2px;
  margin: 0.75rem auto 1.5rem;
}

/* ---------- Buttons ---------- */
.btn-cta {
  background-color: var(--orange);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-cta:hover {
  background-color: #e8680a;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253,126,20,0.4);
}

.btn-outline-green {
  border: 2px solid var(--green);
  color: var(--green);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  background: transparent;
  transition: var(--transition);
}
.btn-outline-green:hover {
  background-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  background: transparent;
  transition: var(--transition);
}
.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--green);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar-brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white) !important;
  line-height: 1.2;
}
.navbar-brand-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.5px;
}
.navbar-custom {
  background: linear-gradient(135deg, #1a5c2a 0%, #0d4a7a 100%);
  padding: 0.75rem 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.navbar-custom .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: var(--transition);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--white) !important;
  background-color: rgba(255,255,255,0.15);
}
.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.heart-icon { color: #ff6b6b; font-size: 1.3rem; margin-right: 6px; }

/* ---------- Hero Sections ---------- */
.hero-main {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  overflow: hidden;
}
.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,92,42,0.82) 0%, rgba(13,74,122,0.75) 100%);
  z-index: 1;
}
.hero-main .hero-content {
  position: relative;
  z-index: 2;
}
.hero-main h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  line-height: 1.2;
}
.hero-main .hero-tagline {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 1rem 0 2rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Small hero for inner pages */
.hero-small {
  position: relative;
  padding: 6rem 0 4rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-small::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,92,42,0.88) 0%, rgba(13,74,122,0.82) 100%);
  z-index: 1;
}
.hero-small .hero-content {
  position: relative;
  z-index: 2;
}
.hero-small h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.hero-small p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}
.breadcrumb-custom .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.breadcrumb-custom .breadcrumb-item.active { color: rgba(255,255,255,0.95); }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---------- Cards ---------- */
.card-custom {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}
.card-custom:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-custom .card-img-top {
  height: 200px;
  object-fit: cover;
}
.card-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}
.icon-green  { background-color: #e8f5e9; color: var(--green); }
.icon-blue   { background-color: #e3f2fd; color: var(--blue); }
.icon-orange { background-color: #fff3e0; color: var(--orange); }
.icon-purple { background-color: #f3e5f5; color: #9c27b0; }

/* Mission columns */
.mission-col {
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.mission-col:hover { transform: translateY(-4px); }

/* Charity cards */
.charity-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  border-top: 4px solid var(--green);
}
.charity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--orange);
}
.charity-card .state-badge {
  display: inline-block;
  background-color: #e8f5e9;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

/* Member cards */
.member-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-left: 4px solid var(--green);
}
.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.member-card .org-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  line-height: 1.3;
}
.member-card .address-text {
  font-size: 0.85rem;
  color: var(--gray);
}
.member-card .state-tag {
  display: inline-block;
  background: #e8f5e9;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-hover); }
.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--green);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green);
}

/* ---------- Event Cards ---------- */
.event-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.event-date-badge {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 0.75rem 1rem;
  min-width: 70px;
}
.event-date-badge .day { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }

/* ---------- Activity Timeline ---------- */
.activity-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.activity-card .card-img-top {
  height: 220px;
  object-fit: cover;
}
.activity-card .raised-badge {
  background: linear-gradient(135deg, var(--green), #1a8a3a);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  display: inline-block;
}

/* ---------- Stats Section ---------- */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #1a5c2a 0%, #0d4a7a 100%);
  padding: 5rem 0;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}
.cta-banner p { color: rgba(255,255,255,0.85); }

/* ---------- Filter Bar ---------- */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

/* ---------- Contact Form ---------- */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.2rem rgba(40,167,69,0.25);
}
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}

/* ---------- Principal Card ---------- */
.principal-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--white);
}
.principal-card .principal-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green);
}

/* ---------- How It Works Steps ---------- */
.step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(40,167,69,0.35);
}

/* ---------- Footer ---------- */
.footer-main {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2e1a 100%);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}
.footer-main h5 {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.footer-main a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-main a:hover { color: var(--green); padding-left: 4px; }
.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2.5rem 0 1.5rem;
}
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white) !important;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--green); transform: translateY(-2px); }

/* ---------- Sections Spacing ---------- */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 991.98px) {
  .hero-main { min-height: 70vh; background-attachment: scroll; }
  .navbar-custom .nav-link { padding: 0.5rem 0.75rem !important; }
}
@media (max-width: 767.98px) {
  .section-pad { padding: 3.5rem 0; }
  .hero-main { min-height: 80vh; }
  .hero-main h1 { font-size: 1.9rem; }
  .stat-number { font-size: 2rem; }
}
@media (max-width: 575.98px) {
  .hero-main h1 { font-size: 1.6rem; }
  .section-title { font-size: 1.6rem; }
}

/* ---------- Misc ---------- */
.bg-stats {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
}
.rounded-img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}
.tag-pill {
  display: inline-block;
  background: #e8f5e9;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin: 0.2rem;
}
.info-icon-row i {
  font-size: 1.2rem;
  color: var(--green);
  margin-right: 0.5rem;
}
/* Scroll to top */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(40,167,69,0.4);
  display: none;
  z-index: 999;
  transition: var(--transition);
}
#scrollTop:hover { background: var(--blue); transform: translateY(-2px); }
