* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #008080;
  --secondary: #f8c300;
  --dark: #333;
  --light: #f9f9f9;
  --gray: #777;
  --white: #ffffff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
  color: var(--dark);
  line-height: 1.6;
  background-color: #f5f5f5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #006666;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--dark);
}

.btn-secondary:hover {
  background: #e6b400;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

/* Header Styles */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Reduced header padding to make navbar smaller */
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
   text-decoration: none !important;
}

.logo h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
   text-decoration: none !important;
}

.logo img {
  /* Reduced logo image height */
  height: 60px;
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav ul li {
  margin-left: 30px;
}

.nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav ul li a:hover,
.nav ul li a.active {
  color: var(--primary);
}

/* Mobile Menu Hamburger */
.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1003;
  position: relative;
  padding: 8px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

.mobile-menu span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
  display: block;
}

/* Hamburger Animation */
.mobile-menu span.active:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu span.active:nth-child(2) {
  opacity: 0;
}

.mobile-menu span.active:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  padding: 120px 0 100px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("R14.jpg") no-repeat center center / cover;
  color: var(--white);
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-buttons .btn {
  width: 200px;
  text-align: center;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.vm-card {
  background: var(--light);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.vm-card h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.values {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-icon {
  background: var(--primary);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* About Programs Section */
.about-programs {
  margin-top: 30px;
  display: grid;
  gap: 20px;
}

.about-program-card {
  background: var(--light);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.about-program-card h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.about-program-card p {
  margin-bottom: 15px;
  color: var(--gray);
}

.btn-learn-more {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-learn-more:hover {
  background: #006666;
  transform: translateY(-2px);
}

/* Popup Modal Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.popup-content {
  background: var(--white);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
  background: var(--light);
  border-radius: 12px 12px 0 0;
}

.popup-header h3 {
  color: var(--primary);
  margin: 0;
  font-size: 1.5rem;
}

.popup-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: var(--primary);
  color: var(--white);
}

.popup-body {
  padding: 30px;
}

.popup-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--dark);
}

.popup-body h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.popup-activities {
  list-style: none;
  padding: 0;
}

.popup-activities li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 0;
}

.popup-activities li i {
  color: var(--primary);
  margin-top: 4px;
  font-size: 0.9rem;
}

/* Programs Section */
.programs-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.program-tabs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.program-tab {
  padding: 20px;
  background: var(--light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.program-tab.active,
.program-tab:hover {
  background: var(--white);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.program-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.program-details {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.program-details h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.program-details ul {
  margin-top: 15px;
  padding-left: 0;
  list-style: none;
}

.program-details li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.program-details li i {
  color: var(--primary);
  margin-top: 4px;
}

/* Enhanced Program Styles */
.program-image {
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--light);
  padding: 12px 15px;
  border-radius: 4px;
  margin: 15px 0;
  color: var(--primary);
  font-weight: 600;
}

.program-stats i {
  font-size: 1.2rem;
}

.program-btn {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

/* Achievements Section */
.year-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.year-filter button {
  padding: 10px 20px;
  background: var(--light);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.year-filter button.active,
.year-filter button:hover {
  background: var(--primary);
  color: var(--white);
}

.achievements-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.achievement-card {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--secondary);
}

.achievement-date {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.impact {
  background: var(--light);
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Donation Section Styles */
.donate-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.donate-info h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.impact-list {
  list-style: none;
  margin: 25px 0;
}

.impact-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.impact-list li i {
  color: var(--primary);
  width: 24px;
  text-align: center;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.impact-stat {
  background: var(--light);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.impact-stat h4 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.impact-stat p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Payment Methods */
.payment-methods {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0;
}

.method-tab {
  padding: 15px;
  background: var(--light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.method-tab.active,
.method-tab:hover {
  background: var(--primary);
  color: var(--white);
}

.method-details {
  margin-top: 20px;
}

.method-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.method-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.momo-icon {
  background: rgba(255, 102, 0, 0.1);
  color: #ff6600;
}

.bank-icon {
  background: rgba(0, 128, 128, 0.1);
  color: var(--primary);
}

.method-info {
  background: var(--light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* Added flex-wrap for better mobile display */
  flex-wrap: wrap;
  gap: 10px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--dark);
  /* Added min-width for consistent layout */
  min-width: 120px;
}

.info-value {
  color: var(--primary);
  font-weight: 500;
  /* Added word-break for long text */
  word-break: break-word;
}

.donation-steps {
  margin-bottom: 25px;
}

.donation-steps h5 {
  margin-bottom: 15px;
  color: var(--dark);
}

.donation-steps ol {
  padding-left: 20px;
}

.donation-steps li {
  margin-bottom: 10px;
  color: var(--gray);
}

.donation-note {
  background: rgba(0, 128, 128, 0.1);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  margin-top: 20px;
}

.donation-note p {
  margin: 0;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.donation-note i {
  color: var(--primary);
  margin-top: 3px;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.map iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  border: none;
}

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links h3,
.footer-newsletter h3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-newsletter h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--white);
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  color: var(--white);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  /* Mobile / tablet nav behavior */
@media (max-width: 1200px) {
  /* show the button */
  .mobile-menu { display: flex; border: 0; background: transparent; }

  /* hide desktop nav by default on small screens */
  .nav {
    display: none;                 /* <-- start hidden */
    position: fixed;               /* float over content, not pushing layout */
    top: var(--header-h);
    right: 12px;
    left: auto;
    width: min(88vw, 320px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
    z-index: 1002;                 /* above header */
    overflow: hidden;
  }
  .nav.active { display: block; }  /* <-- show when state is true */

  .nav ul {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px; margin: 0; list-style: none;
  }
  .nav ul li { margin: 0; }
  .nav ul li a {
    display: block; width: 100%;
    padding: 12px 12px; border-radius: 8px;
    color: var(--dark); text-decoration: none; font-weight: 500;
  }
  .nav ul li a:hover { background: rgba(0,0,0,.04); }
}

}

/* Tablet Styles */
@media (max-width: 992px) {
  /* Added comprehensive responsive grid layouts */
  .about-content,
  .programs-content,
  .donate-content,
  .contact-content,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .vision-mission,
  .achievements-list,
  .stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .nav {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .program-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .method-tabs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .header-content {
    padding: 12px 0;
  }

  .logo h2 {
    font-size: 1.4rem;
  }

  .logo img {
    height: 50px;
  }
}

