/* Original Code (Unchanged) */
body {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  margin: 0;
  padding: 10PX;
  background-color: #fefefe;
  color: #2c3e50;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: center; 
  align-items: center;
}
h1, h2, h3 {
  margin: 0 0 10px;
  color: #34495e;
}

a {
  color: hwb(292 9% 9%);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #e74c3c;
}
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling on small screens */
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6; /* Improved text spacing for readability */
}
/* Header Styles */
/* Header Styles */
header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribute items evenly */
  background-color: #f4f4f4;
  padding: 10px 15px;
  position: sticky;
  top: 0; /* Stick to the top of the viewport */
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Logo Link */
#logo-link {
  display: flex;
  align-items: center;
  margin: 0; /* Remove any additional margin */
}

/* Logo Image */
.logo {
  width: 50px;
  height: auto;
  margin: 0; /* Ensure no extra space around the logo */
}

/* Header Title */
header h1 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  flex-grow: 1; /* Push the title to the center */
  margin: 0; /* Ensure no extra space affects centering */
  white-space: nowrap; /* Prevent text wrapping */
}

/* Mobile-Specific Adjustments */
@media (max-width: 768px) {
  header {
    justify-content: flex-start; /* Align items to the start of the header */
  }

  #logo-link {
    margin-right: auto; /* Push the logo to the left corner */
  }

  header h1 {
    font-size: 1.4rem; /* Slightly smaller font size for mobile */
    margin-left: auto; /* Center-align the title by pushing it to the middle */
    margin-right: auto;
  }
}

/* Adjust for Mobile and Smaller Screens */
@media (max-width: 768px) {
  header {
    flex-direction: row; /* Ensure horizontal alignment for mobile */
    justify-content: space-between;
    padding: 10px 15px; /* Adjust padding for small screens */
  }

  #logo-link {
    margin-bottom: 0; /* Remove any additional margin */
  }

  header h1 {
    font-size: 1.4rem; /* Adjust font size for mobile */
    margin: 0 auto; /* Center-align the title horizontally */
  }

  .logo {
    width: 40px; /* Adjust logo size for smaller screens */
  }
}


/* Fine-tune for iOS */
@media screen and (min-device-width: 320px) and (max-device-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  body {
    -webkit-text-size-adjust: 100%; /* Prevent font scaling issues on iOS */
  }

  header {
    padding: 12px 16px; /* Adjust padding specifically for iOS */
  }

  header h1 {
    font-size: 1.7rem; /* Slight adjustment for iOS readability */
  }
}


/* General Reset */
body, ul, li, a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navbar Styles */
.navbar {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  padding: 10px 20px;
}

.navbar a {
  color: #3ea6c6;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.navbar a:hover {
  color: #1abc9c;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown .dropbtn::after {
  content: "\f078"; /* Font Awesome down arrow */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-left: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f4f4f4;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
  min-width: 200px;
}

.dropdown-content a {
  color: #333;
  padding: 0.75rem 1rem;
  display: block;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #1abc9c;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column; /* Stack links vertically */
    align-items: flex-start; /* Align links to the left */
    gap: 1rem;
  }

  .navbar a {
    font-size: 1.2rem; /* Slightly larger font for touch devices */
  }

  .dropdown-content {
    position: static; /* Allow dropdown to stay in flow */
    width: 100%; /* Full width for dropdown items */
  }

  .dropdown-content a {
    padding: 1rem; /* More padding for touch-friendly design */
  }
}


/* Search Bar Styles */
.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  left: 20px;
  top: 20px;
  background: rgb(134, 94, 146);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  width: 100%;
}

.search-container input {
  border: none;
  outline: none;
  flex: 1;
  padding: 0.5rem;
  font-size: 1rem;
  color: #333;
  border-radius: 20px;
}

.search-container button {
  background: linear-gradient(135deg, #3498db, #1abc9c);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

.search-container button:hover {
  background: linear-gradient(135deg, #1abc9c, #16a085);
  transform: scale(1.1);
}

.search-container button i {
  font-size: 1.2rem;
}

/* Carousel */
.carousel-container {
  overflow: hidden;
  position: relative;
  margin: 2rem auto;
  width: 100%;
  max-width: 1200px;
  box-shadow: 2 6px 8px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  background: #0e0d0d;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}

/* Section Styles */
section {
  padding: 50px 20px;
  margin: 20px auto;
  max-width: 1100px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

#introduction, #donation, #volunteership {
  text-align: center;
}

#introduction {
  background: linear-gradient(135deg, #f0f9ff, #ccefff);
}

#donation {
  background: linear-gradient(135deg, #ffe1e1, #f8d7d7);
}

#volunteership {
  background: linear-gradient(135deg, #d5e5e2, #a6d0d3);
}

#introduction h2, #donation h2, #volunteership h2 {
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 20px;
}

#introduction p, #donation p, #volunteership p {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #555;
}

.read-more-link, .btn {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 12px 24px;
  margin: 10px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
}

.read-more-link:hover, .btn:hover {
  background: #1abc9c;
  transform: scale(1.05);
}
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}
  
footer {
  background-color: #34495e;
  color: white;
  padding: 40px 20px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.footer-link {
  text-decoration: none;
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.footer-link:hover {
  color: #ff6f61;
}

.footer-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Statistics Section */
#statistics {
  background: linear-gradient(135deg, #e3fcec, #d6eaf8);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #1abc9c;
}

.stat-title {
  font-size: 1.5em;
  color: #34495e;
}

.stat-description {
  color: #7f8c8d;
  font-size: 1.1em;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  background: url('hero-image.jpg') no-repeat center center/cover;
  color: rgb(255, 109, 109);
  padding: 100px 20px;
  text-align: center;
  width: 100%;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.6rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
}

section, header {
  animation: fadeIn 1s ease-in-out;
}

/* Additional Image Section */
.additional-images {
  margin: 80px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.image-wrapper {
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.image-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.text-overlay {
  color: #2980b9;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 0;
}

/* Mission & Belief Section */
section {
  text-align: center;
  padding: 60px 20px;
  width: 100%;
  background-color: #ecf0f1;
  margin-bottom: 50px;
}

section h2 {
  font-size: 3rem;
  color: #2980b9;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

section p {
  font-size: 1.4rem;
  color: #7f8c8d;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

/* Charity Content Section */
.charity-content {
  background-color: white;
  text-align: center;
  padding: 60px 20px;
  width: 100%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 80px;
  transition: all 0.3s ease;
}

.charity-content:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.charity-content h3 {
  color: #2980b9;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.charity-content p {
  font-size: 1.4rem;
  color: #7f8c8d;
  margin-bottom: 40px;
  line-height: 1.8;
}

.charity-content .hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

.charity-content h4 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.charity-content ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.charity-content ul li {
  font-size: 1.3rem;
  color: #34495e;
  margin-bottom: 15px;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
  }

  header {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  #logo-link {
    margin-left: 0;
  }

  .search-container {
    margin-top: 1rem;
    width: 100%;
  }

  .carousel-track img {
    height: 250px;
  }

  #statistics {
    flex-direction: column;
  }

  h1, h2, h3 {
    font-size: 1.5em; /* Adjust based on screen size */
  }

  .image-wrapper {
    max-width: 100%;
  }

  section {
    padding: 20px;
    width: 100%;
  }
}
/* Responsive Design Features */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 10px 20px;
    text-align: center;
  }

  #logo-link {
    position: relative;
    margin: 0 auto 10px;
  }

  .navbar {
    flex-direction: column;
    gap: 1rem;
    margin-top: 10px;
  }

  .search-container {
    flex-direction: column;
    margin: 10px 0;
    max-width: 100%;
  }

  .carousel-track img {
    height: 200px;
    object-fit: cover;
  }

  #statistics {
    flex-direction: column;
    gap: 15px;
  }

  .stat-card {
    margin: 0 auto;
    width: 90%;
  }

  section {
    padding: 20px;
    margin: 20px 0;
  }

  h1, h2, h3 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .image-wrapper {
    width: 90%;
    margin: 0 auto;
  }

  footer {
    text-align: center;
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}
