@use '../../styles/variables.scss' as *;

.contact-section {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  place-items: center;
  align-content: center;

  /* FIX 1: Reduced padding-top to bring the header up */
  padding-top: 5rem; 
  padding-bottom: 6rem; 

  h1 {
    font-size: 4rem; 
    text-align: center;
    margin-bottom: 0.5rem; /* Keeps it snug to the first list */
    
    @media (max-width: 768px) {
      font-size: 2.5rem;
    }
  }
  
  strong {
    font-size: 3rem;
  }

  .contact-details, .committee-contacts {
    margin-top: 1rem;
    width: 100%;

    h2 {
      font-size: 2.5rem;
      margin-top: 3.5rem; /* Pulled up slightly */
      margin-bottom: 1.5rem;
      text-align: center;
      color: $dark;

      @media (max-width: 768px) {
        font-size: 2rem;
      }
    }

    ul {
      /* FIX 2: Switched to standard gap for perfectly even spacing */
      gap: 0.75rem; 
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: fit-content;
      margin: 0 auto;
      list-style: none;
      padding: 0;

      li {
        margin: 0; /* Resets any default browser margins */
        padding: 0;

        a {
          display: flex;
          align-items: center;
          gap: 0.75rem;
          text-decoration: none;
          color: $dark;
          font-size: 1.5rem;
          
          @media (max-width: 768px) {
            font-size: 1.15rem;
          }
          
          svg {
            color: $dark;
            width: 24px;
            /* FIX 3: Force exact height so FB/IG icons match the Mail icon */
            height: 24px; 
            flex-shrink: 0; 
            display: block; /* Removes weird invisible text baselines */
          }
          
          &:hover {
            border-bottom: 2px solid $dark;
          }
        }
      }
    }
  }
}