/* Global Styles */
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f8f9fa;
  color: #333;
  padding-top: 80px; /* Increased to ensure enough space for the navbar */
  transition: padding-top 0.3s ease; /* Smooth transition */
}

/* Title Section */
.title-section {
  text-align: center;
  /*padding: 50px 20px;*/
  background-color: #f8f9fa;
  color: #004d99;
  /*margin-bottom: 20px;  Space below the title */
}

/* Navbar Styles */
.navbar {
  background-color: #004d99;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  overflow: hidden;
  flex-wrap: wrap; /* Allow navbar items to wrap onto the next line if needed */
  min-width: 100%; /* Prevent navbar from growing too wide */
}

.navbar .logo {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.navbar .logo img {
  height: 50px;
  margin-right: 10px;
}

.navbar .logo span {
  color: white;
  font-size: 20px;
  font-weight: bold;
}

/* Reposition the nav-toggle button to the right of the logo */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
  position: absolute; /* Change to absolute positioning */
  right: 20px; /* Align it to the right */
}

.nav-toggle span {
  display: block;
  width: 90%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s ease-in-out;
}

.navbar.sticky {
  position: fixed;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.3s ease; /* Optional sliding animation */
}

/* Optional: Sliding animation for sticky navbar */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Navbar Links */
.nav-links {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  display: block;
  color: #fff;
  text-align: center;
  padding: 14px 0px;
  padding-right: 25px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  white-space: normal; /* Allows text to wrap to the next line */
  word-wrap: break-word; /* Ensures long words wrap properly */
  line-height: 1.2; /* Adjust line spacing for better readability */
  max-width: 90px; /* Optional: limit the width of each link */
}

.nav-links a:hover {
  background-color: #ddd;
  color: #333;
}
/* Image Gallery Styles */
.image-gallery {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px; /* Adjust gap between images */
  margin: 20px auto;
  max-width: 1000px; /* Max width of the gallery */
  padding: 10px;
}

.image-gallery img {
  width: 100%;
  height: auto;
  max-width: 300px; /* Ensure images don't get too big */
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover; /* Ensure images maintain aspect ratio and cover the area */
  transition: transform 0.3s ease-in-out;
}

.image-gallery img:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

.president-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.president-photo {
  width: 200px; /* Adjust size as needed */
  height: auto;
  border-radius: 10px;
  padding-left: 25px;
}

.president-message {
  flex: 1; /* Allows text to take up remaining space */
}

.committee-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 10px;
}

.row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* Ensures everything is centered */
  justify-content: center; /* Centers vertically */
  width: 120px;
}

.card img {
  width: 80px;
  height: 80px;
  border-radius: 20%;
  object-fit: cover;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.1em;
  margin-bottom: 5px;
}

.card p {
  font-size: 1em;
  color: #555;
}

.card h3,
.card p {
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limits to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Mobile Styles */
@media screen and (max-width: 600px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between; /* Ensure space between the logo and toggle */
  }

  .navbar .logo {
    text-align: center;
    margin-bottom: 10px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    text-align: center;
    background-color: #004d99;
    padding: 10px 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    padding: 5px;
  }
  .image-gallery {
    flex-direction: column;
    align-items: center;
  }

  .image-gallery img {
    max-width: 90%; /* Ensure images are smaller and fit on mobile screens */
  }

  .president-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .president-photo {
    width: 120px;
  }
}

/* Typography */
h1, h2, h3 {
  text-align: center;
  color: #004d99;
}

h1 {
  font-size: 32px;
  margin-top: 20px;
}

h2 {
  font-size: 26px;
  margin-top: 15px;
}

h4, p {
  padding: 5px 25px;
  text-align: justify;
}

.responsive-img {
  max-width: 600px;
  width: 100%;
  max-height: 400px; /* Limits the height */
  height: auto; /* Preserves aspect ratio */
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain; /* Ensures the image is fully visible */
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background-color: #004d99;
  color: white;
  margin-top: 20px;
}

footer a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}
