.members-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

body.dark-mode .members-section {
  background-color: #1a1a1a;
}

.members-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.members-section h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

body.dark-mode .members-section h2 {
  color: #f8f9fa;
}

.members-section p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
}

body.dark-mode .members-section p {
  color: #ccc;
}

/* Bootstrap Carousel Styling */
.members-section .carousel {
  max-width: 60%;
  margin: 0 auto;
}

.members-section .carousel-inner {
  border-radius: 10px;
  overflow: hidden;
}

.members-section .carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.members-section .carousel-caption {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  padding: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

body.dark-mode .members-section .carousel-caption {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.members-section .carousel-control-prev,
.members-section .carousel-control-next {
  width: 5%;
}

.members-section .carousel-control-prev-icon,
.members-section .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

body.dark-mode .members-section .carousel-control-prev-icon,
body.dark-mode .members-section .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.3);
}

.members-section .carousel-indicators {
  margin-bottom: 1rem;
}

.members-section .carousel-indicators button {
  background-color: #555;
}

.members-section .carousel-indicators .active {
  background-color: #e67e22;
}

/* Social Media Embeds */
.social-embeds {
  margin: 40px 0;
}

.social-embeds p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
}

body.dark-mode .social-embeds p {
  color: #ccc;
}

.embed-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.embed-container iframe,
.embed-container .instagram-media {
  width: 700px !important;
  height: 600px !important;
  max-width: 100%;
  border: none;
  border-radius: 3px;
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5), 0 1px 10px 0 rgba(0, 0, 0, 0.15);
}

body.dark-mode .embed-container iframe,
body.dark-mode .embed-container .instagram-media {
  background: #fff;
}

/* Call to Action */
.cta {
  margin-top: 20px;
}

.cta-button {
  padding: 12px 24px;
  background-color: #e67e22;
  color: #fff;
  border-radius: 5px;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #d35400;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .members-section .carousel {
    max-width: 100%;
  }

  .members-section .carousel-item img {
    height: 300px;
  }

  .members-section h2 {
    font-size: 2rem;
  }

  .members-section p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .embed-container {
    flex-direction: column;
    align-items: center;
  }

  .embed-container iframe,
  .embed-container .instagram-media {
    width: 100% !important;
    max-width: 326px !important;
    height: auto !important;
  }
}