/* Ensure html and body take full height and remove default margins */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Make the body a flex container in column direction and center its children horizontally */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #ccc8aa, #3e3e3e);
  color: #1a1a1a;
}

/* Force header and footer to span the full width */
.header,
footer {
  width: 100%;
}

/* Header styling */
.header {
  background: #e0e0c8;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  padding-left: 40px;
}

.header .logo span {
  font-size: 20px;
  font-weight: bold;
}

.nav-icons .icon {
  width: 30px;
  height: 30px;
  margin-left: 10px;
  background: gray;
  border-radius: 50%;
}

/* Main container with spacing (gap) between left menu and content */
.main-container {
  display: flex;
  flex: 1;
  margin: 20px 0;
  width: 80%;
  gap: 20px;
}

/* Left menu styling */
.left-menu {
  width: 20%;
}

.left-menu h2 {
  color: white;
  font-size: 18px;
  margin-bottom: 10px;
}

.left-menu ul {
  list-style: none;
  padding: 0;
}

.left-menu ul li {
  margin-bottom: 10px;
}

.left-menu ul li a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

/* Content styling */
.content {
  width: 60%;
  text-align: center;
}

/* Photo Collage Styles */
.photo-collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 2px;  /* Reduced gap from 10px to 5px */
  margin-top: 20px;
}

.photo-collage img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
  cursor: pointer;
}

/* Footer styling */
footer {
  background: #1a1a1a;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}

footer .footer-links a {
  color: #aaa;
  text-decoration: none;
}

footer .footer-links a:hover {
  text-decoration: underline;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  text-align: center;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

/* Navigation Buttons for Modal */
.modal-nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-nav button {
  padding: 10px 20px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-nav button:hover {
  background: #666;
}

/* About the Team: Shrink team member boxes and images */
.team-members {
  display: flex;
  gap: 10px;  /* Reduced gap for tighter spacing */
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;  /* Reduced bottom margin */
}

.team-member {
  flex: 1 1 180px;   /* Adjusted base width */
  background: #ffffff;
  padding: 8px;       /* Slightly reduced padding */
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 180px;   /* Reduced max width */
  transition: transform 0.2s ease;
  margin: 5px;        /* Add a small margin for spacing */
}

.team-member:hover {
  transform: scale(1.03);
}

.team-member img {
  width: 60%;         /* Reduced image size from 70% */
  height: auto;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: block;
}

.member-info h3 {
  margin: 5px 0 0;
  font-size: 16px;    /* Adjust font size if needed */
}

.member-info h4 {
  margin: 0;
  font-size: 13px;    /* Adjust font size for a friendlier look */
  color: #555;
}

.member-info p {
  font-size: 12px;    /* Adjust font size for a compact look */
}

/* FAQ Items Layout */
.faq-item {
  margin-bottom: 20px;
  color:#fff;
  text-align: left;
}

.faq-item h3 {
  margin-bottom: 5px;
  color:#fff;
}

.faq-item p {
  margin: 0;
  color:#fff;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    width: 90%;
  }
  
  .left-menu,
  .content {
    width: 100%;
  }
  
  .left-menu {
    margin-bottom: 20px;
    text-align: center;
  }
}
