/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
/* Header Section */
header .inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: center;
  position: relative;
}
header .logo {
  display: block;
  width: 76px;
  height: 90px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #07224f;
  text-align: center;
}
header .logo img {
  width: 45px;
  margin-top: 10px;
}
header nav {
  display: none;
}
header nav a {
  font-family: "Arial", serif;
  font-size: 12px;
  color: #07224f;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  margin: 0 18px;
}
header nav a.active, header nav a:hover {
  color: white;
}
@media screen and (min-width: 800px) {
  header nav {
    display: block;
  }
}
header .burger {
  display: block;
  position: relative;
  top: -6px;
  padding-left: 30px;
}
header .burger:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 2px;
  background: white;
  box-shadow: 0 12px 0 0 white, 0 6px 0 0 white;
}
@media screen and (min-width: 800px) {
  header .burger {
    display: none;
  }
}
header .donate-link {
  width: 72px;
  text-align: center;
  position: absolute;
  right: 10px;
  top: 27px;
  font-family: "Arial", sans-serif;
  font-size: 12px;
  color: rgb(240, 247, 240);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

main {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow-y: auto; /* Add this line for vertical scrolling  it has help the footer tobe visible*/
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: url('photos/1.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    animation: slideBackground 20s infinite;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .content {
    position: relative;
    z-index: 2;
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.hero .title {
    font-size: 3em;
    line-height: 1.3;
    margin: 0.5em 0;
}

.hero .subtitle {
    font-size: 1.5em;
    line-height: 1.5;
    margin: 0.5em 0;
}

.hero .donate-button {
    background-color: #07224f;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    margin: 1em 0;
    border-radius: 28px;
    animation: slide 2s infinite;
}

.hero .donate-button:hover {
    background-color: #07224f;
}

.hero .stars {
    font-size: 1.5em;
    margin: 0.5em 0;
}

.hero .description {
    font-size: 1.2em;
    line-height: 1.5;
}

@keyframes slideBackground {
    0%, 100% { background-image: url('photos/1.jpg'); }
    50% { background-image: url('photos/2.jpg'); }
}

/* Media Queries */
@media (max-width: 768px) 
    .hero .title {
     font-size: 2em;
    }
    .hero .subtitle {
        font-size: 1.2em;
    }
    .hero .donate-button {
        padding: 10px 20px;
        font-size: 1em;
    }
  /* Stats Section */
    .stats {
      display: flex;
      justify-content: center; /* Center the stats section */
      padding: 50px 20px;
      background-color: #f8f9fa;
      text-align: left;
  }
  
  .stats-container {
      display: flex;
      flex-wrap: wrap; /* Allow wrapping on smaller screens */
      justify-content: space-between;
      max-width: 1200px;
      width: 100%;
  }
  
  .stats .left {
      flex: 1;
      padding-right: 20px;
  }
  
  .stats .right {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      padding-left: 20px; /* Add space between the photo and content */
  }
  
  .impact-image-box {
      padding: 20px;
      border: 0; /* Remove border */
      border-radius: 20px;
      transition: transform 0.3s ease-in-out;
  }
  
  .impact-image-box:hover {
      transform: scale(1.05);
  }
  
  .impact-image {
      width: 100%;
      max-width: 600px;
      border-radius: 20px;
  }
  
  .section-title {
      font-size: 3.5em;
      margin-bottom: 0.5em;
  }
  

  .section-description {
      font-size: 1.2em;
      line-height: 1.5;
      margin-bottom: 1.5em;
  }
  
  .stats-numbers {
      display: flex;
      justify-content: space-between; /* Ensures space between the two columns */
      align-items: center;
      width: 100%;
      margin: 20px 0; /* Adds margin for spacing */
  }
  
  .stat-left, .stat-right {
      width: 45%;
      display: flex;
      align-items: center;
  }
  
  .stat-left {
      justify-content: flex-start;
      text-align: left;
  }
  
  .stat-right {
      justify-content: flex-end;
      text-align: right;
  }
  
  .count {
      font-size: 3.5em;
      color: #07224f;
      font-weight: bold;
  }
  
  @media screen and (max-width: 768px) {
      .stats {
          flex-direction: column;
          text-align: center;
      }
  
      .stats .left, .stats .right {
          padding: 20px 0;
      }
  
      .stats-numbers {
          flex-direction: column;
      }
  
      .stat-left, .stat-right {
          width: 100%;
          justify-content: center;
          text-align: center;
      }
  
      .impact-image-box {
          padding: 20px 0;
      }
  }
.count {
  font-size: 3.5em;
  color: #07224f;
  font-weight: bold;
}
/* Section 2 */
.section-2 {
  display: flex;
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
  text-align: center; /* Center the text */
  padding: 50px 20px;
  background-color: #68cbf0; /* Background color to differentiate the section */
}

.section-2 .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto; /* Center the container */
}

.section-2 .section-title {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #07224f; /* Ensures consistent color with other titles */
}

.section-2 .section-paragraph {
  font-size: 1.2em;
  line-height: 1.5;
  color: #333; /* Ensures readability */
}

@media screen and (max-width: 768px) {
  .section-2 .section-title {
      font-size: 2em; /* Adjust font size for smaller screens */
  }
  .section-2 .section-paragraph {
      font-size: 1em; /* Adjust font size for smaller screens */
  }
}
/* Section 3 */

.section-3 {
  display: flex;
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
  text-align: center; /* Center the text */
  padding: 50px 20px;
  background-color: #68cbf0; /* Background color to differentiate the section */
}

.section-3 .container {
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap; /* Ensures responsiveness */
  justify-content: space-between; /* Space between the photo boxes */
}

.photo-box {
  position: relative;
  width: 48%; /* Adjusts width to take 48% of the container */
  margin-bottom: 20px; /* Adds margin for spacing */
  
}

.photo-container {
  position: relative;
  width: 100%;
  height: 300px; /* Set a fixed height for the images */
  overflow: hidden;
  border-radius: 20px;
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container without distortion */
  display: block;
}

.caption {
  position: absolute;
  bottom: 50px; /* Position the caption towards the bottom */
  left: 50%; /* Center the caption horizontally */
  transform: translateX(-50%);
  background-color: rgba(223, 223, 230, 0.8); /* White background for the caption with 80% opacity */
  padding: 10px 50px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adds subtle shadow */
  animation: fadeInUp 1s ease-in-out; /* Adds animation */
  width: 80%; /* Set the width of the caption */
  max-width: 300px; /* Ensure it does not get too wide */
  border-radius: 0; /* Remove any border radius for a rectangular shape */
  
}

.caption-title {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: #07224f; /* Ensures consistent color with other titles */
}

.caption-paragraph {
  font-size: 1em;
  line-height: 1.5;
  color: #333; /* Ensures readability */
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .photo-box {
      width: 100%; /* Adjust width to 100% for smaller screens */
  }
  .caption-title {
      font-size: 1.2em; /* Adjust font size for smaller screens */
  }
  .caption-paragraph {
      font-size: 0.9em; /* Adjust font size for smaller screens */
  }
}
/* Section 4 */
.section-4 {
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: flex-start; /* Align text to the left */
  text-align: left; /* Left align text */
  padding: 50px 20px;
  background-color: #f8f9fa; /* Background color to differentiate the section */
}

.section-4-container {
  max-width: 1200px;
  margin: 0 auto; /* Center horizontally */
  width: 100%;
}

.section-4 .section-title {
  font-size: 2.5em; /* Adjust size as needed */
  color: #07224f; /* Consistent color with other titles */
  margin-bottom: 20px;
}

.section-4 .section-paragraph {
  font-size: 1.2em;
  line-height: 1.6;
  color: #333; /* Ensures readability */
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .section-4 .section-title {
      font-size: 2em; /* Adjust font size for smaller screens */
  }
  .section-4 .section-paragraph {
      font-size: 1em; /* Adjust font size for smaller screens */
  }
}

/* Section 5 */
.section-5 {
  padding: 50px 20px;
  background-color: #f8f9fa;
}

.section-5-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section-5-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.section-5-photo {
  flex: 1;
  max-width: 45%;
  text-align: center;
}

.section-5-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.section-5-text {
  flex: 1;
  max-width: 45%;
  margin-left: 20px;
}

.section-5 .section-title {
  font-size: 2.5em;
  color: #07224f;
  margin-bottom: 20px;
  text-align: left;
}

.section-5 .section-paragraph {
  font-size: 1.2em;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .section-5-content {
      flex-direction: column;
  }

  .section-5-photo {
      max-width: 100%;
      margin-bottom: 20px;
  }

  .section-5-text {
      max-width: 100%;
      margin-left: 0;
  }

  .section-5 .section-title,
  .section-5 .section-paragraph {
      text-align: center;
  }
}
/* Section 6: Reviews */
.section-6 {
  padding: 50px 20px;
  background-color: #31abd9;
}

.section-6-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.section-6 .section-title {
  font-size: 2.5em;
  color: #07224f;
  margin-bottom: 40px;
}

.reviews {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px; /* Adjust height as needed */
}

.review {
  position: absolute;
  top: 0;
  left: 100%; /* Start off-screen */
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: left 0.5s ease-in-out;
}

.review-photo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 20px;
}

.review-text {
  text-align: left;
}

.review-name {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 5px;
}

.review-stars {
  color: #ffcc00;
  margin-bottom: 10px;
}

.review-paragraph {
  font-size: 1.1em;
  line-height: 1.6;
  color: #666;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #07224f;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #31abd9;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .review {
      flex-direction: column;
      align-items: flex-start;
  }

  .review-photo {
      margin-bottom: 10px;
  }
}

/* Footer */
footer {
  background-color: #07224f;
  color: #fff;
  padding: 20px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10 20px;
  position: relative; /* Add this line to position the copyright text */
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
  font-size: 14px;
}

.footer-nav a.active,
.footer-nav a:hover {
  text-decoration: underline;
}

.donate-link {
  color: #fff;
  text-decoration: none;
  background-color: #31abd9;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-right: 20px; /* Add margin-right for spacing */
}

.donate-link:hover {
  background-color: #1e88e5;
}

.address p {
  margin: 5px 0;
  font-size: 14px;
}
.copyright {
  position: absolute;
  bottom: 10px; /* Adjust this value as needed */
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
}
/* Blog Posts Section */

section#posts, section#news {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.post-preview {
  display: flex;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.cover-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-right: 10px;
}

.post-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-info h2 {
  margin: 0;
  font-size: 18px;
}

.post-info p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #555;
}

.news-item {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
}
/* CSS for the Gallery Grid */

/* Center the gallery section and add padding */
section#gallery {
  text-align: center; /* Center the title text */
  padding: 20px; /* Add padding around the section */
}

/* Style the gallery title */
section#gallery h2 {
  font-size: 24px; /* Set the font size of the title */
  margin-bottom: 20px; /* Add space below the title */
}

/* Set up the grid layout for the gallery */
.gallery-grid {
  display: grid; /* Use CSS grid layout */
  grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
  gap: 20px; /* Add space between grid items */
  margin: 0 auto; /* Center the grid container */
  max-width: 1200px; /* Set the maximum width of the grid */
}

/* Style each gallery item */
.gallery-item {
  border: 1px solid #ddd; /* Add a light gray border */
  padding: 10px; /* Add padding inside the item */
  text-align: center; /* Center the text inside each item */
}

/* Ensure all images have the same size */
.gallery-item img {
  width: 100%; /* Make the image take up 100% of its container's width */
  height: 200px; /* Set a fixed height for the images */
  object-fit: cover; /* Ensure images cover the space without distortion */
}

/* Style the caption text */
.gallery-item p {
  margin-top: 10px; /* Add space above the caption */
  font-size: 14px; /* Set the font size of the caption */
  color: #555; /* Set the caption color to a dark gray */
}
