:root {
  /* Base Colors */
  --navy: #000080;
  --navy-rgb: 0, 0, 128;
  --white: #ffffff;
  --red: #FF0000;
  --red-dark: #CC0000;
  --text: #333333;
      --facebook: #3b5998;
    --twitter: #000000;
    --linkedin: #0077b5;


  /* Z-index */
  --z-loader: 9999;
  --z-navbar: 1000;
  --z-default: 1;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}



/* Add new social sharing styles */
.social-sharing {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.btn-facebook {
    background-color: var(--facebook);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-twitter {
    background-color: var(--twitter);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-linkedin {
    background-color: var(--linkedin);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}


/* ===== Loading Animation ===== */
.loader-wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  /* Navy blue */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s;
  z-index: var(--z-loader);
  background: var(--navy);
}

.loader {
  text-align: center;
  color: white;
}

.wheel {
  width: 50px;
  height: 50px;
  border: 5px solid #fff;
  border-radius: 50%;
  border-top-color: #FF0000;
  /* Red */
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Base Styles ===== */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  font-weight: 400;
  /* Regular weight */
}

/* ===== Navbar ===== */
.navbar {
  padding: 15px 0;
  z-index: var(--z-navbar);
  background: rgba(var(--navy-rgb), 0.9) !important;
  transition: var(--transition-medium);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(0, 0, 128, 0.95) !important;
  /* Consistent navy color */
  padding: 10px 0;
}

.logo {
  height: 45px;
  width: auto;
  /* Better for maintaining aspect ratio */
  margin-right: 15px;
  /* Increased spacing */
}

.brand-text {
  color: white;
  font-weight: 500;
  font-size: 1.2rem;
}

.nav-link {
  color: white !important;
  margin: 0 15px;

  transition: all 0.3s !important;
}

.nav-link:hover,
.nav-link.active {
  color: #FF0000 !important;
  /* Red */
}

.dropdown-menu {
  background: var(--navy);
}

.dropdown-item {
  color: var(--white) !important;
}

.dropdown-item:hover {
  background: var(--red) !important;
}

/* ===== Hero Section ===== */
.hero {
  height: 80vh;
  background: linear-gradient(rgba(0, 0, 128, 0.326), rgba(0, 0, 128, 0.34)),
    url('../images/hero-bg.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
  /* Offset for fixed navbar */
}

.programs-hero {
  height: 60vh;
  background: linear-gradient(rgba(0, 0, 128, 0.242), rgba(0, 0, 128, 0.388)),
    url('/images/programs-hero.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}



.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-hero {
  background: var(--red-dark);
  color: var(--white);
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-hero:hover {
  transform: scale(1.05);
  background: #CC0000;
}

/* ===== Programs Section ===== */
.programs-section {
  padding: 80px 0;
  scroll-margin-top: 80px;
  /* Match navbar height */
  background: rgba(248, 249, 250, 0.95);
  /* Removed invalid texture URL */
}

.section-title {
  color: var(--navy);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 400;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);

}

.program-card {
  padding: 25px;
  min-height: 350px;
  text-align: center;
  transition: var(--transition-medium);
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  height: auto;
  color: var(--text);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 128, 0.15);
}

.program-card:hover .card-icon img {
  transform: scale(1.1);
}

.program-card h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.program-card p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 20px;
}

.card-icon {
  width: 100%;
  /* Full width */
  height: 250px;
  border-radius: 15px;
  /* Match card radius */
  background: transparent !important;
  /* Remove red background */
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.card-icon i {
  color: var(--white);
  font-size: 1.8rem;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 128, 0.4), rgba(255, 0, 0, 0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.program-card:hover .image-overlay {
  opacity: 1;
}

.program-card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
  position: relative;
  z-index: 1;
}

.btn-program {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  position: relative;
  font-weight: 600;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-program:hover {
  transform: scale(1.05);
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.hover-effect {
  position: absolute;
  background: var(--navy);
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-program:hover {
  color: white;
  border-color: var(--red);
  /* More logical hover state */
}

.btn-program:hover .hover-effect {
  transform: translateX(0);
}


.navbar-toggler {
  border-color: var(--white) !important;
}

.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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .brand-text {
    font-size: 1.2rem;
  }



  .card-icon {
    height: 180px;
    /* Better proportions */
  }
}

/* ===== Statistics Section ===== */
.statistics-section {
  background: #ebebeb;
  padding: 100px 0;

}

.highlight {
  color: var(--red);
  display: inline-block;
  position: relative;
}

[id] {
  scroll-margin-top: 80px;
  /* Match navbar height */
}

.number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  transition: all 0.5s ease;
  opacity: 1;

}

.number.animate {
  opacity: 1;
  transform: translateY(0);
}

.number.visible {
  opacity: 1;
}

.highlight::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--navy);
  bottom: -10px;
  left: 0;
}

.stat-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  transition: var(--transition-fast);
  border: 3px solid var(--navy);
  background: rgba(var(--navy-rgb), 0.8);
}

.stat-circle:hover {
  transform: scale(1.05);
  border-color: var(--red);
}

.circle-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.icon {
  font-size: 1rem;
  color: var(--red);
  margin-bottom: 10px;
}

.number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  margin: 5px 0;
}

.label {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  /* Better consistency */
  letter-spacing: 1px;
}

/* Animation for number counting */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.number {
  animation: countUp 1s ease-out;
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .card-icon {
    height: 200px;
  }

  .card-content {
    padding: 20px;
  }
}

/* ===== Image Overlay Fix ===== */
.image-overlay {
  background: linear-gradient(45deg, rgba(0, 0, 128, 0.5), rgba(255, 0, 0, 0.4));
}

/* ===== Animation Consistency ===== */
.navbar-toggler {
  transition: all 0.3s ease;
  /* Added hover transition */
}

.navbar-toggler:hover {
  transform: scale(1.1);
}

.presidential-statement {
  background: rgba(248, 249, 250, 0.95);
}

.statement-card {
  border-left: 4px solid var(--navy);
  padding-left: 2rem;
  position: relative;
}

.statement-card p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
  position: relative;
  quotes: "“" "”" "‘" "’";
}

.statement-card p::before {
  content: open-quote;
  font-size: 4rem;
  color: var(--red);
  position: absolute;
  left: -2.5rem;
  top: -1.5rem;
}

.president-photo img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 1px solid var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.president-photo:hover img {
  transform: scale(1.02);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 12px 35px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-navy:hover {
  transform: scale(1.05);
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

@media (max-width: 768px) {
  .statement-card {
    padding-left: 1rem;
    margin-top: 2rem;
  }

  .statement-card p::before {
    left: -1.5rem;
    top: -1rem;
    font-size: 3rem;
  }
}

.site-footer {
  background-color: var(--navy);
  color: var(--white);
  position: relative;
}

.footer-logo {
  max-width: 180px;
  height: auto;
}

.footer-heading {
  color: var(--red);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links .footer-link {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links .footer-link:hover {
  color: var(--red);
}

.footer-contact i {
  color: var(--red);
  width: 20px;
  text-align: center;
}

.social-links {
  color: var(--white);
  display: flex;
  gap: 1rem;

}

.social-icon {
  color: var(--white) !important;
  /* Force white color */
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--red) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 30px 0 0 30px;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1;
}

.newsletter-form .btn-newsletter {
  background: var(--red);
  color: var(--white) !important;
  border: none;
  padding: 6px 10px;
  border-radius: 0 30px 30px 0;
  transition: all 0.3s ease;
  font-weight: 500;
}

.newsletter-form .btn-newsletter:hover {
  background: #cc0000;
  transform: translateX(5px);
}

@media (max-width: 768px) {

  .footer-links,
  .footer-contact {
    margin-bottom: 2rem;
  }

  .footer-bottom {
    text-align: center;
  }
}

.news-events {
  position: relative;
  overflow: hidden;
}

.news-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  position: relative;
}

.news-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card.loading::after {
  opacity: 1;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 128, 0.15);
}

.news-image {
  position: relative;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-date {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: var(--red);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 600;
}

.news-content {
  padding: 25px;
}

.news-content h3 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.btn-read-more,
.btn-register {
  background: var(--navy);
  color: white;
  padding: 8px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  z-index: 10;
  /* Adjust as needed */
  position: relative;
  /* Ensure the z-index works */
}

.btn-read-more:hover {
  transform: scale(1.05);
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-load-more:hover:hover {
  transform: scale(1.05);
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-register:hover {
  background: var(--red);
  transform: translateX(5px);
}


.social-comments {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 100px;
}

.comments-title {
  color: var(--navy);
  font-size: 1.3rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: 10px;
}

.fb-comments-container {
  max-height: 600px;
  overflow-y: auto;
}

@media (max-width: 992px) {
  .social-comments {
    margin-top: 40px;
    position: static;
  }

  .fb-comments-container {
    max-height: 400px;
  }
}

/* Join Page Specific Styles */
.join-hero {
  background: linear-gradient(rgba(0, 0, 128, 0.47), rgba(0, 0, 128, 0.34)),
    url('../images/join-hero.jpg') center/cover;
  padding: 120px 0 80px;
  color: white;
}

.participation-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.participation-card:hover {
  transform: translateY(-5px);
}

.option-icon {
  width: 80px;
  height: 80px;
  background: var(--red);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-icon i {
  color: white;
  font-size: 2rem;
}

.btn-join {
  background: var(--navy);
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
}

.btn-join:hover {
  background: var(--red);
  color: white;
  transform: scale(1.05);
}

.donation-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: white;
}

.program-card {
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-hero {
  background: linear-gradient(rgba(0, 0, 128, 0.8), rgba(0, 0, 128, 0.8)),
    url('../images/contact-bg.jpg') center/cover;
  padding: 120px 0;
  color: white;
  text-align: center;
}

.team-hero {
  background: linear-gradient(rgba(0, 0, 128, 0.8), rgba(0, 0, 128, 0.8)),
    url('../images/contact-bg.jpg') center/cover;
  padding: 120px 0;
  color: white;
  text-align: center;
}

/* Events Page */
.events-hero {
  background: linear-gradient(rgba(0, 0, 128, 0.8), rgba(0, 0, 128, 0.8)),
    url('../images/contact-bg.jpg') center/cover;
  padding: 120px 0;
  color: white;
  text-align: center;
}

.event-card {
  position: relative;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--red);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
}

/* Contact Page */
.contact-hero {
  background: linear-gradient(rgba(0, 0, 128, 0.8), rgba(0, 0, 128, 0.8)),
    url('../images/contact-bg.jpg') center/cover;
  padding: 120px 0;
  color: white;
  text-align: center;
}

.contact-list li {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 0, 128, 0.05);
  border-radius: 5px;
}