body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #00796b;
  color: #fff;
  padding: 20px 10px;
  text-align: center;
}

header a {
  text-decoration: none;
  color: #ffffff;
}

header nav ul {
  list-style: none;
  padding: 0;
}

header nav ul li {
  display: inline;
  margin-right: 10px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

header nav ul li a:link {
  color: #ffffff;
}

header nav ul li a:hover {
  text-decoration: underline;
  color: #90c7e3;
}

.logo img {
  height: 100px;
  vertical-align: middle;
}

.foundation-name {
  font-size: 24px; /* Sets the size of the foundation name, adjust as needed */
  font-weight: bold; /* Makes the foundation name bold */
  color: #ffffff; /* Sets the color, adjust to match your branding */
}

main {
  padding: 20px;
  text-align: center;
}

section {
  padding: 40px 20px;
  background-color: #ffffff;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#home p {
  text-align: left;
  font-family: "Arial", sans-serif;
}

#charity-hadith {
  background-color: #f9f9f9;
  padding: 20px;
  margin: 20px auto;
  border-left: 5px solid #00796b;
}

#charity-hadith h2 {
  color: #00796b;
}

#charity-hadith p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.faq-item {
  margin-bottom: 20px; /* Adds space between FAQ items */
}

.faq-item h3 {
  background-color: #00796b;
  color: white;
  padding: 10px;
  width: auto;
  margin-bottom: 5px; /* Space between the question and the answer */
  text-align: left;
  font-size: 15px;
}

.faq-item p {
  padding-left: 20px; /* Indents the answer for better readability */
  text-align: left;
}

#about p {
  text-align: left;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th,
td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f4f4f4;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

.team-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 20px;
}

.team-member {
  flex: 1 1 30%;
  max-width: 300px;
  text-align: center;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 10%;
  margin-bottom: 10px;
}

.team-member h3 {
  margin-top: 10px;
  color: #00796b;
}

.team-member p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  text-align: left;
}

.work-item {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.work-item h2 {
  color: #00796b;
}

.work-item img {
  width: 100%; /* Responsive image */
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
}

.work-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  text-align: left;
}

form {
  display: flex;
  flex-direction: column;
}

form label,
form input,
form textarea {
  margin: 10px 0;
}

form input,
form textarea {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: 5px;
}

select,
input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  box-sizing: border-box;
}

#submit {
  padding: 10px;
  background-color: #00796b;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

#submit:hover {
  background-color: #004d40;
}

.video-container {
  max-width: 800px; /* Limits the maximum width of the video container */
  margin: 20px auto; /* Centers the video container horizontally and adds vertical spacing */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a shadow for better visual separation */
}

.video-container video {
  width: 100%; /* Ensures the video fills the container width */
  height: auto; /* Ensures the video height adjusts to maintain aspect ratio */
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Adjusts the minimum size of columns */
  grid-gap: 15px;
  padding: 20px;
}

.photo-grid img {
  width: 100%; /* Ensures images scale to the width of the column */
  height: auto; /* Maintains the aspect ratio */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover; /* Ensures images cover the area without stretching, cropping as needed */
  max-height: 360px; /* Limits the height of images to avoid overly large display */
}

footer {
  background-color: #00796b;
  color: white;
  text-align: center;
  padding: 10px 0;
  bottom: 0;
  width: 100%;
}
