/* ====================================================================
                           ROOT COLORS 
 ======================================================================*/
:root {
  --color-primary-blue: #034885;
  --color-light-blue: #049DD9;
  --color-dark-green: #488C03;
  --color-lime-green: #97BF04;
  --color-light-gray: #F2F2F2;
}

/* ====================================================================
                     GENERAL STYLES & TYPOGRAPHY 
 ======================================================================*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-light-gray);
  color: var(--color-primary-blue);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* ====================================================================
                            HEADER STYLES 
 ======================================================================*/
.ongheader-topbar {
  background-color: var(--color-primary-blue);
  color: var(--color-light-gray);
  font-size: 13px;
  padding: 10px 20px;
  border-bottom: 3px solid var(--color-lime-green);
  position: relative;
  z-index: 101;
}

.ongheader-topbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ongheader-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ongheader-topbar-icon {
  color: var(--color-lime-green);
  flex-shrink: 0;
  animation: ongheader-pulse 2s infinite;
}

.ongheader-topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ongheader-topbar-social-label {
  font-weight: 500;
  color: var(--color-light-gray);
  opacity: 0.9;
}

.ongheader-topbar-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ongheader-topbar-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(242, 242, 242, 0.3);
  border-radius: 50%;
  color: var(--color-light-gray);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ongheader-topbar-social-link:hover {
  background-color: var(--color-lime-green);
  border-color: var(--color-lime-green);
  color: var(--color-light-gray);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 8px rgba(151, 191, 4, 0.4);
}

/* Main Navbar */
.ongheader-navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(2, 62, 115, 0.08);
  position: relative;
  z-index: 100;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

/* Animated bottom border in dark green */
.ongheader-navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-dark-green), var(--color-lime-green), var(--color-dark-green));
  background-size: 200% 100%;
  animation: ongheader-border-flow 3s linear infinite;
}

@keyframes ongheader-border-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.ongheader-navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.ongheader-logo-link {
  display: inline-block;
  justify-self: start;
}

.ongheader-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ongheader-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Logo only scales slightly on hover, NO rotation */
.ongheader-logo-wrapper:hover .ongheader-logo-img {
  transform: scale(1.03);
}

.ongheader-logo-text {
  display: flex;
  flex-direction: column;
}

.ongheader-logo-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary-blue);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.ongheader-logo-highlight {
  color: var(--color-lime-green);
}

.ongheader-logo-subtitle {
  font-size: 11px;
  color: var(--color-light-blue);
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* Navigation Menu - Absolute center layout */
.ongheader-nav-menu-wrapper {
  justify-self: center;
  display: flex;
  align-items: center;
}

.ongheader-nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.ongheader-nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-blue);
  padding: 8px 0;
  position: relative;
}

.ongheader-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-lime-green);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ongheader-nav-link:hover {
  color: var(--color-lime-green);
}

.ongheader-nav-link:hover::after {
  width: 100%;
}

.ongheader-nav-link.active {
  color: var(--color-primary-blue);
}

.ongheader-nav-link.active::after {
  width: 100%;
  background-color: var(--color-lime-green);
}

/* Donate Button on Desktop (Aligned right) */
.ongheader-nav-actions-desktop {
  justify-self: end;
  display: block;
}

.ongheader-nav-actions-mobile {
  display: none;
}

/* Donate Button Styling - Professional and clean */
.ongheader-btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-lime-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(151, 191, 4, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ongheader-btn-donate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.6s ease;
}

.ongheader-btn-donate:hover::before {
  left: 100%;
}

.ongheader-btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(151, 191, 4, 0.5);
  background-color: var(--color-dark-green);
}

.ongheader-btn-icon {
  animation: ongheader-heartbeat 1.5s infinite;
}

/* Mobile Hamburger Menu */
.ongheader-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0;
  justify-self: end;
}

.ongheader-hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary-blue);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================================================
                            FOOTER STYLES 
 ======================================================================*/
.ongfooter {
  /* Darken the primary blue base using CSS linear-gradients */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.7) 100%), var(--color-primary-blue);
  color: var(--color-light-gray);
  padding: 80px 0 0 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* Background Leaves Overlay */
.ongfooter-leaf-left,
.ongfooter-leaf-right {
  position: absolute;
  width: 320px;
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.5s ease;
}

.ongfooter-leaf-left {
  bottom: 10%;
  left: -80px;
  transform: rotate(35deg);
  color: var(--color-light-gray);
}

.ongfooter-leaf-right {
  top: 10%;
  right: -80px;
  transform: rotate(-145deg) scaleX(-1);
  color: var(--color-light-gray);
}

.ongfooter:hover .ongfooter-leaf-left {
  transform: rotate(40deg) scale(1.05);
}

.ongfooter:hover .ongfooter-leaf-right {
  transform: rotate(-140deg) scaleX(-1) scale(1.05);
}

.ongfooter-main {
  position: relative;
  z-index: 2;
  padding-bottom: 50px;
}

.ongfooter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.ongfooter-col {
  display: flex;
  flex-direction: column;
}

.ongfooter-brand-col {
  gap: 20px;
}

.ongfooter-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ongfooter-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.ongfooter-logo-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-light-gray);
  letter-spacing: -0.5px;
}

.ongfooter-logo-highlight {
  color: var(--color-lime-green);
}

/* Thicker typography for description */
.ongfooter-description {
  color: var(--color-light-gray);
  opacity: 0.9;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.ongfooter-socials {
  display: flex;
  gap: 12px;
}

.ongfooter-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(242, 242, 242, 0.4);
  color: var(--color-light-gray);
  background-color: rgba(242, 242, 242, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ongfooter-social-btn:hover {
  background-color: var(--color-lime-green);
  border-color: var(--color-lime-green);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 5px 15px rgba(151, 191, 4, 0.5);
}

/* Cradle hands card styling */
.ongfooter-support-card {
  margin-top: 10px;
  border: 1.5px solid rgba(242, 242, 242, 0.15);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(2, 62, 115, 0.25);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.ongfooter-support-card:hover {
  border-color: var(--color-lime-green);
  background: rgba(2, 62, 115, 0.4);
  transform: translateY(-2px);
}

.ongfooter-support-icon-wrapper {
  color: var(--color-lime-green);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ongfooter-support-card-svg {
  color: var(--color-lime-green);
  transition: transform 0.3s ease;
}

.ongfooter-support-card:hover .ongfooter-support-card-svg {
  transform: scale(1.1);
}

.ongfooter-support-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ongfooter-support-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-light-gray);
}

.ongfooter-support-subtitle {
  font-size: 12px;
  color: var(--color-light-gray);
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.4;
}

/* Links Columns styling */
.ongfooter-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-light-gray);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.ongfooter-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background-color: var(--color-lime-green);
  border-radius: 2px;
}

.ongfooter-links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ongfooter-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-light-gray);
  opacity: 0.9;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2px 0;
}

.ongfooter-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Circular icons improved - thicker lines & solid color border */
.ongfooter-link-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-lime-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-lime-green);
  background-color: rgba(2, 62, 115, 0.3);
  transition: all 0.3s ease;
}

.ongfooter-link-icon-circle svg {
  flex-shrink: 0;
}

.ongfooter-link-caret {
  opacity: 0.6;
  color: var(--color-lime-green);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ongfooter-link-item:hover {
  color: #ffffff;
  opacity: 1;
  transform: translateX(6px);
}

.ongfooter-link-item:hover .ongfooter-link-icon-circle {
  background-color: var(--color-lime-green);
  color: #ffffff;
  border-color: var(--color-lime-green);
  box-shadow: 0 0 10px rgba(151, 191, 4, 0.4);
}

.ongfooter-link-item:hover .ongfooter-link-caret {
  opacity: 1;
  transform: translateX(3px);
  color: var(--color-lime-green);
}

/* Subscribe column styling */
.ongfooter-subscribe-text {
  font-size: 14px;
  color: var(--color-light-gray);
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ongfooter-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ongfooter-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.ongfooter-input-icon {
  position: absolute;
  left: 14px;
  color: rgba(242, 242, 242, 0.5);
  pointer-events: none;
  transition: color 0.3s ease;
}

.ongfooter-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background-color: rgba(2, 62, 115, 0.3);
  border: 1.5px solid rgba(242, 242, 242, 0.15);
  border-radius: 8px;
  color: var(--color-light-gray);
  font-size: 14px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ongfooter-input::placeholder {
  color: rgba(242, 242, 242, 0.5);
}

.ongfooter-input:focus {
  border-color: var(--color-lime-green);
  background-color: rgba(2, 62, 115, 0.45);
  box-shadow: 0 0 0 3px rgba(151, 191, 4, 0.25);
}

.ongfooter-input:focus + .ongfooter-input-icon,
.ongfooter-input-group:focus-within .ongfooter-input-icon {
  color: var(--color-lime-green);
}

.ongfooter-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-lime-green);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(151, 191, 4, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ongfooter-btn-submit:hover {
  background-color: var(--color-dark-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(151, 191, 4, 0.4);
}

.ongfooter-btn-submit svg {
  transition: transform 0.3s ease;
}

.ongfooter-btn-submit:hover svg {
  transform: translate(3px, -2px) scale(1.1);
}

/* Footer Bottom Bar - Restructured layout */
.ongfooter-bottom {
  background-color: rgba(1, 25, 48, 0.85);
  border-top: 3px solid var(--color-lime-green); /* Intense green border top */
  padding: 30px 0;
  position: relative;
  z-index: 2;
}

.ongfooter-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ongfooter-bottom-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
}

.ongfooter-transparency {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  max-width: 450px;
  flex: 1 1 auto;
}

.ongfooter-transparency-icon {
  color: var(--color-lime-green);
  flex-shrink: 0;
}

.ongfooter-transparency-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.4;
}

.ongfooter-transparency-text strong {
  color: var(--color-light-gray);
  font-weight: 700;
}

.ongfooter-transparency-text span {
  color: var(--color-light-gray);
  opacity: 0.8;
  font-weight: 500;
}

.ongfooter-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-light-gray);
  opacity: 0.8;
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 650px;
  flex: 1 1 auto;
}

.ongfooter-legal-links a:hover {
  color: var(--color-lime-green);
  opacity: 1;
}

.ongfooter-divider {
  color: rgba(242, 242, 242, 0.3);
  font-size: 11px;
}

/* Centered Copyright row at the very bottom */
.ongfooter-bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.ongfooter-copyright {
  font-size: 11px;
  color: var(--color-light-gray);
  opacity: 0.7;
  font-weight: 400;
}

.ongfooter-copyright .ongfooter-highlight {
  color: var(--color-lime-green);
  font-weight: 700;
}

/* Overlay default: always hidden & never blocks interaction */
.ongheader-nav-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ====================================================================
                            ANIMATIONS 
 ======================================================================*/
@keyframes ongheader-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ongheader-heartbeat {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  40% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* ====================================================================
                     RESPONSIVE MEDIA QUERIES 
 ======================================================================*/
@media (max-width: 1024px) {
  .ongfooter-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation Toggle styling */
  .ongheader-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ongheader-menu-toggle {
    display: flex;
  }

  .ongheader-nav-actions-desktop {
    display: block;
    margin-right: 12px;
  }
  .ongheader-nav-actions-desktop .ongheader-btn-donate {
    padding: 8px 16px;
    font-size: 12px;
  }

  .ongheader-nav-actions-mobile {
    display: block;
    margin-top: 10px;
    width: 100%;
  }

  .ongheader-nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(2, 62, 115, 0.15);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 24px 40px 24px;
    gap: 30px;
    z-index: 105;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .ongheader-nav-menu-wrapper.active {
    right: 0;
  }

  /* Hamburger transformation to X */
  .ongheader-menu-toggle.active .ongheader-hamburger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .ongheader-menu-toggle.active .ongheader-hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .ongheader-menu-toggle.active .ongheader-hamburger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .ongheader-nav-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
  }

  .ongheader-nav-item {
    width: 100%;
  }

  .ongheader-nav-link {
    display: block;
    width: 100%;
    font-size: 18px;
    border-bottom: 1px solid var(--color-light-gray);
    padding: 10px 0;
  }

  .ongheader-nav-link::after {
    display: none;
  }

  .ongheader-btn-donate {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* On mobile: show logo image and text brand, hide tagline */
  .ongheader-logo-img {
    display: block;
    width: 38px;
    height: 38px;
  }
  .ongheader-logo-title {
    font-size: 20px;
  }
  .ongheader-logo-subtitle {
    display: none;
  }

  /* Overlay: hidden by default, only appears when .active is toggled by JS */
  .ongheader-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(2, 62, 115, 0.5);
    backdrop-filter: blur(3px);
    z-index: 104;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Never blocks clicks when not active */
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .ongheader-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Only intercepts clicks when menu is open */
  }

  /* Topbar wraps differently */
  .ongheader-topbar-container {
    justify-content: center;
    text-align: center;
  }

  /* Bottom bar mobile: stack items vertically */
  .ongfooter-bottom-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .ongfooter-transparency {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .ongfooter-legal-links {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .ongheader-topbar {
    display: none; /* Hide topbar on small mobile screens to improve layout */
  }

  .ongfooter-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}
