/* links-page.css - Custom CSS for the links page only */
/* Add this as a second stylesheet to your links page HTML */

/* Override the 100vh height for the links section */
.section-e {
  height: auto !important;
  min-height: auto !important; /* Changed from 100vh to auto */
  padding: 30px 0 50px 0; /* Reduced top padding from 50px to 30px */
}

/* Aggressively reduce spacing between link sections */
.features-main h1 {
  font-weight: 700;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem; /* Much tighter - was 1.5rem */
}

/* Remove top margin from first heading */
.features-main h1:first-of-type {
  margin-top: 0;
}

/* Reduce the intro paragraph spacing */
.features-main p {
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 1rem auto; /* Reduced from 2rem to 1rem */
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: center;
}

/* Tighter spacing between link groups */
.features-main__columns-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem; /* Very tight - was 1.5rem */
}

/* Optional: Reduce padding inside the columns themselves */
.features-main__column {
  flex: 1 1 300px;
  max-width: 350px;
  border-radius: 8px;
  padding: 0.5rem; /* Reduced from 1rem */
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.7);
}

/* Reduce space between individual link buttons */
.features-main__feature-card {
  display: block;
  width: 100%;
  background-color: #002244;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 0.25rem 0; /* Reduced from 0.5rem to 0.25rem */
  font-weight: 600;
  text-align: center;
  box-shadow: 0 3px 7px rgba(0, 123, 255, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  /* Smaller buttons on mobile */
  .features-main__feature-card {
    padding: 0.6rem 1rem; /* Reduced from 1rem 1.2rem */
    margin: 0.2rem 0; /* Tighter vertical spacing */
    font-size: 0.9rem; /* Slightly smaller text */
  }
  
  /* Tighter section spacing on mobile */
  .section-e {
    padding: 20px 0 30px 0;
  }
  
  /* Tighter heading spacing on mobile */
  .features-main h1 {
    font-size: 2rem; /* Slightly smaller */
    margin-top: 0.75rem;
    margin-bottom: 0.4rem;
  }
  
  /* Reduce column padding on mobile */
  .features-main__column {
    padding: 0.3rem;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  .features-main__feature-card {
    padding: 0.5rem 0.8rem; /* Even smaller */
    font-size: 0.85rem;
  }
}
