/* Go to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #c38254fb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: background-color 0.5s, transform 0.5s;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top:hover {
  background-color: #f09b5efb;
  transform: scale(1.1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ============= Patron =========== */
.patron-section {
  margin-top: 2%; /* Space between navbar and patron section */
}

/* ============ Committees ============= */
.committee-section {
  background: linear-gradient(to right, #f5eed4, #f8dada);
  border-radius: 15px;
  padding: 40px 20px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(3, 3, 3, 0.981); /* Subtle shadow for depth */
}

.committee-section h2 {
  font-size: 2.2 rem;
  color: #2c3e50;
  text-transform: uppercase;
  margin: 2rem 0; /* Combined top and bottom margins */
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}
.committee-img {
  width: 150px; /* Increase size */
  height: 150px;
  border-radius: 50%; /* Keeps the image circular */
  object-fit: cover; /* Ensures the image fills the area */
  margin-bottom: 15px;
  border: 4px solid #c35454;
}
/* Grid layout for the name boxes */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-items: center;
}

/* Styling for each name box */
.name-box {
  background-color: #ffffff;
  border: 2px solid #c35454;
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.name-box:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

.name-box h4 {
  font-size: 1.2rem;
  color: #090808;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
  /* text-transform: uppercase; */
}

.name-box p {
  font-size: 1.1rem;
  color: #777;
  margin-bottom: 10px;
}

/* Responsive adjustments for Committee Section */
@media (max-width: 768px) {
  .committee-section h2 {
    font-size: 1.8rem;
  }

  .name-box h4 {
    font-size: 1.4rem;
  }

  .name-box p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .committee-section h2 {
    font-size: 1.6rem;
  }
  .patron-section {
    margin-top: 20%;
  }
  .name-box h4 {
    font-size: 1.3rem;
  }

  .name-box p {
    font-size: 0.9rem;
  }

  .committee-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);

    justify-items: center;
  }
}

/* ============= Organizing Secretary ============== */
.joint-organizing-section {
  background: linear-gradient(to right, #f1cdcd, #f9f3dc);
  border-radius: 15px;
  padding: 40px 20px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(3, 3, 3, 0.981); /* Subtle shadow for depth */
}

.joint-organizing-section h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  text-transform: uppercase;
  margin-bottom: 2rem;
  margin-top: 2rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

/* Grid layout for the joint name boxes */
.joint-committee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns for the first grid */
  gap: 30px; /* Space between the boxes */
  justify-items: center; /* Center items in the grid */
  margin-bottom: 40px; /* Space below the first grid */
}

/* Styling for each joint name box */
.joint-name-box {
  background-color: #fdfdfd; /* Background color */
  border: 2px solid #c35454; /* Border color */
  border-radius: 15px; /* Rounded corners */
  padding: 20px; /* Padding inside the box */
  width: 100%; /* Full width of the column */
  max-width: 300px; /* Maximum width for each box */
  text-align: center; /* Center text */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

.joint-name-box:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for Joint Organizing Secretary Section */
@media (max-width: 768px) {
  .joint-organizing-section h2 {
    font-size: 1.8rem;
  }

  .joint-name-box h4 {
    font-size: 1.4rem;
  }

  .joint-name-box p {
    font-size: 1rem;
  }

  .joint-committee-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }
}

@media (max-width: 576px) {
  .joint-organizing-section h2 {
    font-size: 1.6rem;
  }

  .joint-name-box h4 {
    font-size: 1.3rem;
  }

  .joint-name-box p {
    font-size: 0.9rem;
  }

  .joint-committee-grid {
    grid-template-columns: 1fr; /* 1 column on small screens */
  }
}

/* ============Treasurer================== */

/* Treasurer Box */
.treasurer-box {
  font-size: 2.2rem;
  font-weight: bold;
  color: #a81818;
  padding: 15px;
  border-radius: 10px;
  background: white;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  width: 35%;
  border: 2px solid #c35454; /* Border color */
}

.treasurer-box p {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-top: 2%;
}

/* Members Heading */
.members-heading {
  font-size: 24px;
  font-weight: bold;
  color: #444;
  margin: 20px 0 10px;
  text-transform: uppercase;
}

/* Members Grid - 4 Columns in a Row */
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 10px;
  justify-content: center;
}

/* Individual Member Boxes */
.member-box {
  background: white;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.3s ease-in-out;
}
.member-box p {
  font-size: 16px;
  font-weight: bold;
  color: #864040;
}

/* Hover Effect */
.member-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 900px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 Columns for Tablets */
  }
}

@media (max-width: 600px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Columns for Mobile */
  }
}

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: repeat(1, 1fr); /* 1 Column for Small Mobile */
  }
  .treasurer-box {
    width: 80%;
  }
}
/* ============== International and National Advisory Section =============== */
.international-advisory-section {
  background-color: #f9f9f9; /* Light background color */
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(3, 3, 3, 0.981); /* Subtle shadow for depth */
}

.international-advisory-section h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  margin-top: 30px;
}

.international-advisory-section h3 {
  font-size: 2rem;
  text-align: center;
  color: rgb(143, 55, 55);
  font-weight: 700;
  margin: 30px 0px;
}

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px; /* Space between boxes */
}

.advisory-box {
  background-color: #ffffff;
  border: 2px solid #c35454;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advisory-box h4 {
  font-weight: 600;
}

.advisory-box:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .advisory-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
  }
}

@media (max-width: 576px) {
  .advisory-grid {
    grid-template-columns: 1fr; /* 1 column for small screens */
  }
}
