/* Section styles */
.about-section,
.staff-section {
  background-color: #f5f5f5;
  color: black;
  padding: 20px;
  margin: 20px auto; /* Center the sections horizontally */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%; /* Set the width to 100% of the viewport */
}

.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.specialist,
.delegate,
.governance {
    margin: 20px;
    text-align: center;
    max-width: 300px;
}
.member img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
}
@media (min-width: 1024px) {
    .team {
        justify-content: space-around;
    }
    .member {
        flex: 1 1 calc(25% - 40px);
        max-width: 250px;
    }
}

.header {
  background-color: rgb(134, 118, 118);
  color: rgb(15, 14, 14);
  display: flex;
  justify-content: center;  /* Centers the content horizontally */
  align-items: center;      /* Centers the content vertically */
  gap: 20px;                /* Adds space between items */
  padding: 20px;            /* Optional: adds some padding around the header */
}

.footer {
  background-color: rgb(134, 118, 118);
  color: rgb(15, 14, 14);
  display: flex;
  justify-content: center; 
  align-items: center;      
  gap: 20px;                
  padding: 20px;           
}

.footer a {
  color: white;
}

.upcoming-comps-section,
.past-comps-section,
.faq-section,
.contact-section,
.error-section,
.social-section {
  background-color: #f5f5f5;
  color: black;
  text-align: left;
  padding: 20px;
  margin: 20px auto; /* Center the sections horizontally */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%; /* Set the width to 100% of the viewport */
}

/* Contact container to align form and social sections */
.contact-container {
  display: flex;
  flex-direction: column; /* Stack on mobile */
  gap: 20px;
}

.form-section,
.news-section {
  max-width: 600px;
  margin: 0; /* Remove auto centering */
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  flex: 2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.form-section,
.news-section h1 {
  text-align: left;
  margin-bottom: 20px;
}

.social-section {
  flex: 1;
  text-align: left;
  padding: 20px;
  margin: 0; /* Ensure no extra margin */
}

/* Responsive design: Align side by side on larger screens */
@media (min-width: 768px) {
  .contact-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Ensures both sections align at the top */
    gap: 20px;
  }

  .form-section, 
  .social-section,
  .news-section {
    margin: 0; /* Remove extra margin */
  }

  .social-section {
    text-align: left;
    padding-left: 20px;
  }
}

/* Collapsible FAQ Sections */
.collapsible {
  background-color: black;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

.active, .collapsible:hover {
  background-color: #3498db;
}

.collapsible:after {
  content: '\002B'; /* Plus sign */
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212"; /* Minus sign */
}

.content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f1f1f1;
  text-align: left;
}

.content.expanded {
  max-height: 200px; /* Adjust this value to control the max expansion */
  overflow-y: auto;  /* Adds scrolling if content exceeds max height */
}

.collapsible::after {
  content: attr(data-icon);
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

