* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: black;
}

.about {
  justify-content: center;
}

h1,
h2,
h4,
h5,
h6,
p {
  color: white;
}
.header-area {
  background-color: #000000;
  padding: 1rem 0;
  position: relative;
  top: 0;
  z-index: 100;
  height: 300px;
  margin-bottom: 5%;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  position: relative;
  padding: 0 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff0eb6;
}

.hero {
  background: linear-gradient(135deg, #00fff2 0%, #ff0eb6 100%);
  color: black;
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.member-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.member-info {
  background-color: white;
  padding: 1.5rem;
}

.member-info .role {
  color: #ff0eb6;
  font-weight: bold;
}

.member-info .bio {
  color: black;
  font-size: 0.9rem;
}

.view-profile {
  display: inline-block;
  margin-top: 1rem;
  color: #00c7bd;
  text-decoration: none;
  font-weight: bold;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.event-map {
  align-items: center;
}

.event-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
  .event-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .event-date {
    justify-self: center;
  }

  .event-map {
    justify-self: left;
  }

  .a {
    font-size: 14px;
  }
}

/* Tablet: keep horizontal layout but adjust spacing */
@media (min-width: 641px) and (max-width: 1024px) {
  .event-card {
    gap: 1rem;
  }
}

.event-date {
  background: #667eea;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  min-width: 80px;
}

.event-date .day {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.event-info h3 {
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.event-info .location {
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .event-info .location {
    font-size: 0.7rem;
  }
}

.event-card a {
  background: #ff0eb6;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.event-card a:hover {
  background: #720757;
}

@media (max-width: 768px) {
  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 1199px) {
  .event-map {
    display: none;
  }
}

/* The following is the button styling */

#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ff0eb6;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  font-family: inherit;
  z-index: 9999;
  display: none; /* hidden by default */
}
#backToTopBtn .arrow {
  font-size: 18px;
  line-height: 1;
}
#backToTopBtn .label {
  font-size: 10px;
  line-height: 1;
}
#backToTopBtn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

@media (max-width: 539px) {
  #backToTopBtn {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
}

.fa-facebook {
  background: #3b5998;
  color: white;
}

.fa-youtube {
  background: #bb0000;
  color: white;
}

.fa-instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
}

.fa:hover {
  opacity: 0.7;
}

.social-icon {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  width: 3%;
}

.social-media-icons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
}
