/* About Page Specific Styles */

/* Override main-content styles (defined in style.css) only on about page */
.main-content {
  max-width: 85%;
  margin: 0 auto;
}

.about-section {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 4vw;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Ensure the paragraph takes up available space */
.about-text {
  flex: 1;
  text-align: left;
}

.video-container {
  flex-basis: 45%; /* Adjusts the video container's width */
  max-width: 600px;
  background-color: #f4f4f4; /* Light background to differentiate */
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

/* Make the video responsive */
.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9; /* Ensures video maintains correct proportions */
  border-radius: 8px;
}

.funding {
  margin-top: 20px;
  padding: 20px;
}

/* Primary Funder */
.funder-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 100px;
  gap: 20px;
}

.funder-primary img {
  max-width: 260px;
  width: 100%;
}

.funder-primary.nih img {
  max-width: 380px;
}

/* Partner Logos Grid */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Ensures 5 logos per row */
  gap: 45px;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 80%;
  margin: 0 auto;
}

.partner-logos img {
  max-width: 100%; /* Ensures images never overflow */
  width: auto; /* Keeps natural aspect ratio */
  height: auto;
  object-fit: contain;
}

/* Scale down specific logos */
.partner-logos img[alt*="Washington University"],
.partner-logos img[alt*="Penn Nursing"] {
  transform: scale(0.7);
  margin-top: 10px;
}

.partner-logos img[alt*="Brigham"],
.partner-logos img[alt*="University of Colorado Anschutz Medical Campus"] {
  transform: scale(1.1);
}

/* General Responsive Styling */
@media screen and (max-width: 1280px) {
  .about-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text {
    flex: none; /* Reset flex */
    width: 100%;
  }

  .video-container {
    flex-basis: auto;
    width: 100%;
  }

  .partner-logos {
    grid-template-columns: repeat(3, 1fr); /* Switch to 3 columns */
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  .partner-logos {
    grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns */
    gap: 20px;
  }

  .partner-logos img {
    max-width: 140px; /* Reduce logo size */
    max-height: 60px;
  }
}

@media screen and (max-width: 480px) {
  .partner-logos {
    grid-template-columns: repeat(1, 1fr); /* Stack logos in a single column */
    justify-items: center;
  }

  .partner-logos img {
    max-width: 120px; /* Further reduce logo size */
    max-height: 50px;
  }
}
