@import './variables.scss';

.current-members-section {
  padding-block: 8rem;
  padding-inline: 2.81rem;
  width: 100%; 
  max-width: 1800px; 
  margin: 0 auto;
  min-height: 100vh;

  h1 {
    text-align: center;
    color: $primary;
    font-size: 3rem; /* REDUCED: Much more balanced for desktop */
    font-weight: 900;
    margin-bottom: 2.5rem; 
  }

  /* Centered President Block */
  .executive-top {
    text-align: center;
    margin-bottom: 2rem; 
    padding-bottom: 1.5rem; 
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);

    h2 {
      font-size: 1rem; 
      color: $primary; 
      margin-bottom: 0.25rem;
      text-transform: uppercase;
      letter-spacing: 0.05rem;
    }

    h3 {
      font-size: 1.5rem; 
      font-weight: 700;
      color: $dark;
    }
  }

  /* 7-Column Layout */
  .committees-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem; 
    align-items: start;

    .committee-column {
      background-color: $background-accent;
      padding: 1.5rem 1rem;
      border-radius: 1rem;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      min-height: 100%; 

      .committee-head {
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);

        h4 {
          font-size: 0.9rem; 
          color: $primary;
          margin-bottom: 0.5rem;
          text-transform: uppercase;
        }

        strong {
          display: block; 
          font-size: 1.25rem; 
          color: $dark;
          line-height: 1.2;
        }
      }

      .member-list {
        list-style-type: none;
        padding: 0;
        margin: 0;
        text-align: center;

        li {
          font-size: 1rem;
          margin-bottom: 0.75rem;
          color: #4a4a4a;
        }
      }
    }
  }
}

/* --- Responsive Adjustments --- */

@media screen and (max-width: 1400px) {
  .current-members-section {
    padding-inline: 1.5rem; 
  }
}

@media screen and (max-width: 1200px) {
  .current-members-section {
    .committees-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
    }
  }
}

@media screen and (max-width: 900px) {
  .current-members-section {
    .committees-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

@media screen and (max-width: 768px) {
  .current-members-section {
    padding-top: 7rem; 
    padding-bottom: 4rem;
    padding-inline: 1rem;

    h1 {
      font-size: 2rem; /* REDUCED: Scaled down cleanly for mobile screens */
      margin-bottom: 2rem;
    }

    .executive-top {
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      h2 { font-size: 0.9rem; } 
      h3 { font-size: 1.25rem; } 
    }

    .committees-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}

@media screen and (max-width: 480px) {
  .current-members-section {
    .committees-grid {
      grid-template-columns: repeat(1, 1fr);
    }
  }
}