/* ==========================================================================
   1. CORE VARIABLES & TOKEN DEFINITIONS
   ========================================================================== */
:root {
  --core-navy: #1c1f42;
  --deep-indigo: #33326f;
  --bright-blue: #416bc2;
  --gentle-sky: #8daac4;
  --warm-sand: #d9c8af;
  --soft-light: #f9f2e9;
  --clean-white: #fbfaf7;
  --text-dark: #222222;
  --text-muted: #555555;
}

/* ==========================================================================
   2. GLOBAL RESET & BASELINE BOX MODEL
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--clean-white);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 70px !important;
  transition: padding 0.3s ease;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Bitter', serif;
  font-weight: 700;
  color: var(--core-navy);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-tag {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--bright-blue);
  margin-bottom: 10px;
  display: block;
}

/* ==========================================================================
   3. UNIFIED ACCENT BUTTON COMPONENT ARCHITECTURE
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--deep-indigo);
  color: white;
}

.btn-primary:hover {
  background-color: var(--core-navy);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--core-navy);
}

.btn-accent {
  background-color: var(--warm-sand);
  color: var(--core-navy);
}

.btn-accent:hover {
  background-color: #cbbba2;
}

.btn-outline-indigo {
  background: transparent;
  border: 2px solid var(--deep-indigo);
  color: var(--deep-indigo);
}

.btn-outline-indigo:hover {
  background: var(--deep-indigo);
  color: white;
}

/* ==========================================================================
   4. FIXED COMPACT HEADER & DROPDOWN MAPPING
   ========================================================================== */
header#mainHeader {
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000 !important;
  transition: all 0.3s ease-in-out;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.3s ease-in-out;
}

header.scrolled .nav-container {
  height: 56px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link h1 {
  font-size: 1.1rem !important; 
  margin: 0 !important;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease-in-out;
}

header.scrolled .logo-img {
  height: 30px;
}

.btn-navbar-donate {
  background-color: var(--deep-indigo);
  color: white;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-navbar-donate:hover {
  background-color: var(--bright-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(65, 107, 194, 0.3);
  color: white !important;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

nav ul li {
  position: relative;
  display: flex;
  align-items: center;
}

nav ul li a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--core-navy);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: all 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--bright-blue);
  transition: width 0.3s ease;
}

nav ul li a:hover::after, 
nav ul li.active > a::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--bright-blue);
}

nav ul li .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 230px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 4px;
  display: block;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 1010;
  border: 1px solid rgba(0,0,0,0.08);
  margin: 0 !important;
}

nav ul li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
}

nav ul li .dropdown li {
  width: 100%;
  display: block;
  position: relative;
}

nav ul li .dropdown li a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

nav ul li .dropdown li a::after {
  display: none !important;
}

nav ul li .dropdown li a:hover {
  background-color: var(--soft-light);
  color: var(--deep-indigo);
}

nav ul li .dropdown .has-nested {
  position: relative;
}

nav ul li .dropdown .nested-dropdown {
  position: absolute;
  top: -5px;
  left: 100%;
  background-color: white;
  min-width: 210px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 4px;
  display: block;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  border: 1px solid rgba(0,0,0,0.08);
  margin: 0 !important;
}

nav ul li .dropdown .has-nested:hover .nested-dropdown {
  opacity: 1;
  visibility: visible;
}

nav ul li .dropdown .nested-dropdown li a {
  padding: 8px 16px;
}

nav ul li .dropdown .nested-dropdown .has-deep-nested {
  position: relative;
}

nav ul li .dropdown .nested-dropdown .deep-nested-dropdown {
  position: absolute;
  top: -5px;
  left: 100%;
  background-color: white;
  min-width: 210px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 4px;
  display: block;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  border: 1px solid rgba(0,0,0,0.08);
  margin: 0 !important;
  z-index: 1020;
}

nav ul li .dropdown .nested-dropdown .has-deep-nested:hover .deep-nested-dropdown {
  opacity: 1;
  visibility: visible;
}

nav ul li .dropdown .nested-dropdown .deep-nested-dropdown li a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ==========================================================================
   5. SITEWIDE FOOTER DESIGN BLOCK (CENTERED SOCIALS & EQUAL LAYOUT)
   ========================================================================== */
footer,
footer.custom-root-footer {
  background-color: var(--core-navy) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 60px 0 25px 0 !important;
  font-family: 'Lato', sans-serif !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

footer .container,
footer.custom-root-footer .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  width: 100% !important;
}

.footer-grid,
footer.custom-root-footer .footer-grid {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  text-align: left !important;
}

.footer-grid .footer-col {
  flex: 0 0 auto !important;
}

/* Column 1: Center-aligned Brand & Social Icons */
.footer-grid .footer-col:nth-child(1),
.footer-about {
  max-width: 280px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.footer-about .footer-logo-container {
  margin-bottom: 12px !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.footer-about .footer-logo {
  max-width: 200px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.footer-divider-line {
  width: 35px;
  height: 2px;
  background-color: var(--bright-blue);
  margin: 0 auto 15px auto !important;
}

.footer-mission-text {
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

.follow-us-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--bright-blue);
  margin-bottom: 12px;
  text-align: center !important;
  width: 100% !important;
}

/* Ginawang gitna ang social icons row */
.social-icons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.social-icons a {
  width: 34px !important;
  height: 34px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.social-icons a:hover {
  background: var(--bright-blue) !important;
  transform: translateY(-2px);
}

/* Other Columns Sizing */
.footer-grid .footer-col:nth-child(2) {
  min-width: 150px !important;
}

.footer-grid .footer-col:nth-child(3) {
  min-width: 220px !important;
}

.footer-grid .footer-col:nth-child(4) {
  max-width: 280px !important;
}

/* Section Header Badges (Circular Icons) */
.footer-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.header-icon-circle {
  width: 36px;
  height: 36px;
  background-color: var(--bright-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.footer-col h4 {
  color: #ffffff !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  margin: 0 !important;
  font-family: 'Lato', sans-serif !important;
  line-height: 1.3 !important;
}

/* Section Lists & Dividers */
.footer-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.footer-nav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.footer-nav-list li a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 0 !important;
  font-size: 0.82rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.footer-nav-list li a .arrow-icon {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.footer-nav-list li a:hover {
  color: #ffffff !important;
  padding-left: 4px !important;
}

.footer-nav-list li a:hover .arrow-icon {
  opacity: 1;
  transform: translateX(3px);
}

/* Contact / Address Block */
.footer-contact-info p {
  display: flex !important;
  gap: 12px !important;
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.contact-icon {
  width: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Footer Bottom Bar */
.footer-bottom,
footer.custom-root-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 20px !important;
  margin-top: 40px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  width: 100% !important;
}

.footer-bottom p {
  margin: 0 !important;
}

.footer-bottom-links {
  display: flex !important;
  gap: 20px !important;
  margin: 0 !important;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   6. RESPONSIVE LAYER ADAPTATIONS
   ========================================================================== */
@media (max-width: 992px) {
  .grid-two-col, .centers-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid,
  footer.custom-root-footer .footer-grid {
    flex-wrap: wrap !important;
    gap: 30px !important;
  }
  .footer-grid .footer-col {
    flex: 1 1 40% !important;
  }
  .impact-grid, .activities-grid, .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  nav {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 60px !important;
  }
  .nav-container {
    height: 60px;
  }
  header.scrolled .nav-container {
    height: 50px;
  }
  .footer-grid,
  footer.custom-root-footer .footer-grid {
    flex-direction: column !important;
  }
  .footer-grid .footer-col {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  .impact-grid, .activities-grid, .testimonial-grid {
    grid-template-columns: 1fr;
  }
}