/* === GLOBAL RESETS & BASE === */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body > main, body > article {
  flex: 1;
}



body {
  font-family: "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  color: #111;
  line-height: 1.6;
}

h1, h2 {
  font-weight: bold;
  margin-top: 0;
}

p {
  margin-bottom: 1.25rem;
}

/* === HERO BANNER === */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Shift content to the left */
  color: white;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.4); /* darker overlay for readability */
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  max-width: 500px;
  margin-left: 15%;
}

.containing-element {
  display: flex;
  flex-direction: column;

}

.page-content {
  flex-grow: 1;
  overflow-y: auto;
}

footer {
  margin-top: auto;
  /* Makes it so footer is always at bottom, even if page is blank */
}

@media (max-width: 768px) {
  .hero-banner {
    height: 250px;
    padding-left: 2rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }
}

/* === VIDEO BLOCK === */
.video-block {
  margin: 2rem auto;
  text-align: center;
}

.video-block h2 {
  font-size: 1.5rem;
}

.video-block .embed, .video-block .upload {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.video-block .embed iframe, .video-block .upload video {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .video-block .embed, .video-block .upload {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* === HOMEPAGE VIDEO WRAPPER === */
.homepage-video-wrapper, .alumni-video-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Match your .video_item class inside */
.homepage-video-wrapper .video_item, .alumni-video-wrapper .video_item {
  flex: 1 1 400px;
  max-width: 600px;
  background: white;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Change this one to change the size of the intro video on the homepage */
.homepage-video-wrapper .embed iframe, .homepage-video-wrapper .upload video,
.alumni-video-wrapper .embed iframe, .alumni-video-wrapper .upload video {
  width: 350px;
  height: 200px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
}

/* === CONTENT SECTION === */
.content-section {
  max-width: 1000px;
  margin-top: 3rem;
  margin: 0 auto;
  padding: 2rem;
}

.content-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.content-section .body {
  font-style: italic;
  font-family: Georgia, serif;
  color: #444;
}

/* === PROFILE SECTION === */

/* container for all profile cards */
.alumni-profile-wrapper {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  padding-bottom: 2rem;
  clear: both;
}

/* grid: up to 3 columns on wide screens */
.alumni-profile-wrapper .alumni-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr)); /* 3 columns */
  gap: 1.25rem;
  align-items: start;
}

/* each profile card should be a column: info first, then video */
.alumni-profile-wrapper .contact-card {
  display: flex;
  flex-direction: column; /* stack info then video */
  gap: 0.75rem;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  min-height: 100%;
}

/* inside the profile info: photo + details horizontally on wide screens */
.alumni-profile-wrapper .alumni-info {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* photo sizing: keep fixed box so cards align nicely */
.alumni-profile-wrapper .contact-photo {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f4f4;
}
.alumni-profile-wrapper .contact-photo img,
.alumni-profile-wrapper .contact-photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* details take remaining width */
.alumni-profile-wrapper .contact-details {
  flex: 1 1 auto;
}

/* video area sits under the info, full width of the card */
.alumni-profile-wrapper .alumni-video {
  margin-top: 0.5rem;
  width: 90%;
  box-sizing: border-box;
}

/* uploaded/embedded video sizing within the card */
.alumni-profile-wrapper .alumni-video .upload video,
.alumni-profile-wrapper .alumni-video .embed iframe,
.alumni-profile-wrapper .alumni-video .embed video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 6px;
  display: block;
}

/* Title styling */
.alumni-profile-wrapper .alumni-video-title {
  margin: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

/* Responsive breakpoints: 2 columns under 1000px, 1 column under 640px */
@media (max-width: 1000px) {
  .alumni-profile-wrapper .alumni-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .alumni-profile-wrapper .alumni-grid {
    grid-template-columns: 1fr;
  }

  /* stack photo above details on small screens for better readability */
  .alumni-profile-wrapper .alumni-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .alumni-profile-wrapper .contact-photo {
    width: 160px;
    height: 160px;
  }

  .alumni-profile-wrapper .contact-details {
    width: 100%;
  }
}

/* === INTERNSHIP PAGE === */
.internships-section {
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.internships-section h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.internships-search {
  background-color: #724F4F;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size:1.3em;
  color: rgb(255, 255, 255);
  border-radius: 4px;
  max-width: 600px;
  height:70px;
  margin-left: auto;
  margin-right: auto;
}

.internships-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.internships-table th,
.internships-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 0.95rem;
}

.internships-table th {
  background-color: #e4e4e4;
  font-size: large;
  font-weight: bold;
  height: 2em;
}

.scrollable {
  height: 30em;
  width: 100%;
  overflow-y: auto;
  border: 1px solid #7c7c7c;
  border-radius: 5px;
}

.scrollable th {
  position: sticky;
  top: 0;
  z-index: 2;
}

#noResultsMessage {
  margin-top: 1rem;
  font-style: italic;
  color: #555;
}

/* === TRACKS PAGES === */
.track-page .hero-banner {
  height: 250px;
}

.year-content {
  display: none;
}

.year-content.active {
  display: block;
}

/* === TRACK PAGE LAYOUT === */
.track-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 1rem auto;
  max-width: 1000px;
  padding-bottom: 2rem;
}

.track-document {
  max-width: 1000px;
  margin-left: 1%;
  padding-top: 1rem;
  padding-left: 1rem;
}

.track-sidebar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.year-tab {
  padding: 1rem 1.25rem;
  font-size: 1.2rem;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-align: left;
  transition: background-color 0.3s ease;
}

.year-tab:nth-child(1) {
  background-color: #c0cfdf;
}

.year-tab:nth-child(2) {
  background-color: #6385aa;
}

.year-tab:nth-child(3) {
  background-color: #1e4874;
}

.year-tab:nth-child(4) {
  background-color: #002e5c;
}

.year-tab:hover {
  opacity: 0.85;
}

.year-tab.active {
  background: #ccc;
  color: #002E5D;
}

.track-content {
  flex: 1 1 60%;
  min-width: 300px;
  border-left: 1px solid #ccc;
  padding-left: 2rem;
}

.year-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.year-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .track-layout {
    flex-direction: column;
  }

  .track-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .track-content {
    border-left: none;
    padding-left: 0;
  }

  .year-tab {
    flex: 1 1 40%;
    text-align: center;
  }
}

/* === CONTACT PAGE === */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 2rem;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-photo img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}

.contact-details {
  text-align: left;
}

.contact-details h3 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-details {
    text-align: center;
  }
}

/* ===ACCESIBILITY HELPS=== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* === DROPDOWN MENU === */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 10;
}
.dropdown-btn {
  border: none;
  padding: 11px 22px;
  border-bottom: 3px solid transparent;
  color: #002E5D;
  background-color: white;
  font-family: 'HCo Ringside Narrow SSm', Arial, sans-serif;
  font-size: 16px;
}
.dropdown-btn:hover {
  background-color: #e6e6e6;
}
.dropdown-child {
  display: none;
  min-width: 200px;
  position: absolute;
  background-color: white;
  box-shadow: 0 4px 8px #c5c5c5;
}
.dropdown-child a {
  color: #002e5d;
  font-size: 16px;
  padding: 12px;
  text-decoration: none;
  display: block;
}
.dropdown-child a:hover {
  background-color: #e6e6e6;
}
.dropdown:hover .dropdown-child {
  display: block;
  background-color: white;
}



/* New styles for click functionality */
.dropdown:hover .dropdown-child,
.dropdown.active .dropdown-child {
  display: block;
}

@media (max-width:49.9375rem) {
  /* make the dropdown “inline” in the vertical menu flow */
  .dropdown {
    width: 100%;
  }
  .dropdown-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 22px;
    background: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
  }
  /* override absolute positioning so it isn’t clipped */
  .dropdown .dropdown-child {
    position: static !important;
    box-shadow: none !important;
    display: none;          /* hide by default */
    background: transparent;/* let the menu’s bg show through */
  }
  .dropdown.active .dropdown-child {
    display: block;         /* show when .active */
  }
  /* indent the links so they read like a submenu */
  .dropdown .dropdown-child a {
  font-size: 16px;
  padding: 12px;
  }
}