/* Base Styles */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  --text-color: #374151;
  --text-light: #6b7280;
  --white: #ffffff;
  --red: red;
  --black: #000000;
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Montserrat", sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-primary);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}
.btn-hero {
  background-color: #06402b;
  color: var(--white);
  font-size: 1.5rem;
}

.btn-primary:hover {
  background-color: #172554;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--black);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-color);
}

.logo img {
  height: 120px;
  margin-right: 0.75rem;
  border-radius: 50%;
}

.nav-list {
  display: flex;
}

.nav-list li {
  margin-left: 2rem;
}

.nav-list a {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  color: var(--black);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-list a:hover::after {
  width: 100%;
}
/* CTA Button */
.header-cta {
  margin-left: 30px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 15px;
}

.cta-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}
/* Active Page Indicator */
.nav-list a[href*="current-page"] {
  color: var(--secondary-color);
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: url("../images/hero.jpeg") no-repeat center center/cover;
  color: var(--white);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease;
}

.hero-title span {
  color: #41dc8e;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-btns .btn {
  min-width: 180px;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-align: center;
  line-height: 40px;
  font-size: 1.2rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature h4 {
  font-size: 1.1rem;
  color: var(--black);
}

.about-image {
  position: relative;
}

.about-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* Programs Section */
.programs {
  background-color: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.program-card {
  background-color: var(--light-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.program-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.program-card h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.program-card ul {
  text-align: left;
  margin-top: 1.5rem;
}

.program-card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.program-card ul li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Gallery Section */
.gallery {
  background-color: var(--light-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  aspect-ratio: 1/1;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-loader {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s linear infinite;
}

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  display: block;
  margin: 5% auto;
  max-width: 80%;
  max-height: 80%;
  border-radius: var(--radius-md);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--accent-color);
}

.modal-caption {
  color: var(--white);
  text-align: center;
  padding: 1rem;
  font-size: 1.2rem;
}

/* Events Section */
.events-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--light-color);
  color: var(--text-color);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.tab-btn:hover {
  background-color: #e5e7eb;
}

.tab-btn.active {
  background-color: var(--accent-color);
  color: var(--white);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.event-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  text-align: center;
}

.event-date .day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
}

.event-details h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.event-details p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.event-details i {
  color: var(--accent-color);
}

.event-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-color);
  font-weight: 500;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-family: var(--font-accent);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: #06402b;
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-col p {
  color: #d1d5db;
}

.footer-logo img {
  height: 60px;
  margin-top: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
}

.footer-col address {
  font-style: normal;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  color: var(--white);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--secondary-color);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.2rem; /* Reduce the font size of the logo text */
  }

  .logo img {
    height: 80px; /* Reduce the logo image size */
    margin-right: 0.5rem; /* Adjust spacing */
  }

  .header .container {
    padding: 0.5rem 1rem; /* Reduce header padding */
  }
  .nav-list {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    transition: var(--transition);
  }

  .nav-list.active {
    left: 0;
  }

  .nav-list li {
    margin: 1rem 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 1rem; /* Further reduce on very small screens */
  }

  .logo img {
    height: 60px; /* Further reduce logo image */
  }

  .header-cta {
    margin-left: 15px; /* Adjust CTA button spacing */
  }

  .cta-btn {
    padding: 8px 15px; /* Make donate button smaller */
    font-size: 13px;
  }
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.5rem 1rem;
  }

  .event-date .day {
    font-size: 1.5rem;
  }
}

/* For screens up to 480px (small mobile devices) */
@media (max-width: 480px) {
  .logo {
    font-size: 0.9rem; /* Even smaller text */
  }

  .logo img {
    height: 50px; /* Smaller logo image */
    margin-right: 0.3rem; /* Tighter spacing */
  }

  .header .container {
    padding: 0.3rem 0.8rem; /* Compact header padding */
  }

  .header-cta {
    margin-left: 10px; /* Reduced spacing */
  }

  .cta-btn {
    padding: 6px 12px; /* More compact button */
    font-size: 12px;
  }
}

/* For screens up to 320px (very small mobile devices) */
@media (max-width: 320px) {
  .logo {
    font-size: 0.8rem; /* Minimal readable size */
    flex-direction: column; /* Stack logo and text */
    align-items: center;
  }

  .logo img {
    height: 40px; /* Very small logo */
    margin-right: 0; /* Remove right margin */
    margin-bottom: 2px; /* Add bottom margin */
  }

  .header .container {
    padding: 0.2rem 0.5rem; /* Minimal padding */
    flex-wrap: wrap; /* Allow header items to wrap */
  }

  .header-cta {
    margin-left: 5px;
    order: 1; /* Move donate button below if needed */
  }

  .cta-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* Optional: Adjust mobile menu button */
  .mobile-menu-btn {
    width: 25px;
    height: 18px;
  }
}
/* whatsapp float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 90px;
  right: 30px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 2s ease-in-out infinite;
  text-decoration: none;
}
