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

body, html {
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'PlayfairDisplay', Georgia, serif;
  background-color: #0a0a0a;
  color: white;
}

.about-section {
  background-color: #f7f3f3;
  padding: 60px 20px;

  text-align: center;
}

.about-section h1 {
  font-size: 3.5rem;
  color: #420000;
  margin-bottom: 20px;
}

.about-section .intro {
  font-size: 1.25rem;
  color: #420000;
  max-width: 800px;
  margin: 0 auto 60px auto;
  line-height: 1.7;
}

/* Member Cards */
.member {
  background: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 900px;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  gap: 30px;
  margin: 60px auto;
}



.member:nth-child(odd) {
  margin-left: 10%;
  margin-right: auto;
  flex-direction: row;
}

.member:nth-child(even) {
  margin-left: auto;
  margin-right: 10%;
  flex-direction: row-reverse;
}

.member img {
  width: 100%;
  height: 100%;
  max-width: 280px;
  max-height: 280px;
  aspect-ratio: 1 / 1; /* Ensures square shape */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-left: 20px;
  margin-right: 20px;
}


.member-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.member h3 {
  font-size: 2rem;
  margin: 0;
  color: #420000;
}

.member .role {
  font-size: 1.2rem;
  color: #7a3b3b;
  margin-top: 8px;
  margin-bottom: 8px;
}

.member .meta {
  font-size: 1rem;
  color: #5a2d2d;
  font-style: italic;
  margin-bottom: 12px;
}

.member .description {
  font-size: 1.1rem;
  color: #420000;
  line-height: 1.6;
  max-width: 600px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .member {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    padding: 30px;
    margin: 40px auto;
  }

  .member img {
    margin-bottom: 20px;
    order: -1;
  }

  .member-content {
    order: 0; /* text below */
  }
}

.scroll-container {
  height: calc(100vh - 5rem);
  overflow-y: auto;
}


/* Custom scrollbar styling */
.scroll-container::-webkit-scrollbar {
  width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #420000;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #f7f3f3;
  border-radius: 4px;
}




#mahir-member {
  position: relative;
}

.about-handler {
  position: absolute;
  top: 63%;   
  left: 78.5%;
  width: 6px;
  height: 6px;
  cursor: default;
  z-index: 5;
  border-radius: 50%;
  opacity: 0.8;
}