.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 3rem;
  row-gap: 3rem;
  padding: 2rem 1.75rem 4rem 1.75rem;
  margin: 0 auto;
  max-width: 1280px;
}

.grid-column {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.grid-column:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pathway-1:hover,
.pathway-1:hover .pathway-badge {
  background: #fef5f0;
}

.pathway-2:hover,
.pathway-2:hover .pathway-badge {
  background: #f0f9f4;
}

.pathway-3:hover,
.pathway-3:hover .pathway-badge {
  background: #f7f5f2;
}

.pathway-4:hover,
.pathway-4:hover .pathway-badge {
  background: #fef9f0;
}

.grid-item-top {
  position: relative;
  aspect-ratio: 6 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-item-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pathway badge in top left */
.pathway-badge {
  position: absolute;
  bottom: -20px;
  left: 12px;
  background: white;
  padding: 6px 14px 20px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 2;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.pathway-1 .pathway-badge {
  color: #e67e22;
}

.pathway-2 .pathway-badge {
  color: #27ae60;
}

.pathway-3 .pathway-badge {
  color: #8b6f47;
}

.pathway-4 .pathway-badge {
  color: #f39c12;
}

.path-heading {
  text-align: left;
  font-size: 1.5rem;
  color: #2c3e50;
  padding: 0.8rem 1rem 0.4rem 1rem;
  font-weight: 400;
  line-height: 1.3;
}

.grid-item-bottom {
  padding: 0 1rem 1rem 1rem;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.grid-item-bottom p {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.grid-item-bottom ul {
  margin: 0 0 1rem 0;
  padding-left: 0;
  list-style: none;
}

.grid-item-bottom ul li {
  padding: 4px 0 4px 22px;
  position: relative;
  line-height: 1.4;
}

.grid-item-bottom ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.1em;
}

.pathway-1 ul li:before {
  color: #e67e22;
}

.pathway-2 ul li:before {
  color: #27ae60;
}

.pathway-3 ul li:before {
  color: #8b6f47;
}

.pathway-4 ul li:before {
  color: #f39c12;
}

.more-details {
  display: inline-block;
  text-align: center;
  padding: 12px 24px;
  background: #666;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  margin-top: auto;
  transition: background 0.3s ease;
}

.grid-column:hover .more-details {
  background: #333;
  color: white;
}

/* Mobile: Single column */
@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Tablet: 2x2 grid */
@media (min-width: 601px) and (max-width: 1120px) {
  .grid-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}


.steps {
  display: grid;
  grid-template-columns: 20fr 80fr;
  column-gap: 1rem;
  row-gap: 1rem;
  margin: 0 4rem 0 4rem;
}

.steps img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.steps>h2 {
  grid-column: 1 / -1;
}

.steps ul {
  padding-left: 1rem;
}


@media (max-width: 600px) {
  .steps {
    margin: 0;
    font-size: 0.9rem;
  }
}




.video-container {
  background-color: white;
}

.video-padding-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.video-aspect-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}


.transcript {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
}

.transcript summary {
  cursor: pointer;
  font-weight: 500;
  color: #999;
  text-align: right;
  font-size: 0.9rem;
  padding-top: 0.5rem;
  padding-right: 1rem;
}

.transcript summary:hover {
  color: #333;
}

.transcript-content {
  margin-top: 1rem;
  line-height: 1.6;
  color: #555;
  background-color: #EEEEEE99;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem 1.75rem 0 1.75rem;
}

.mid-callout {
  max-width: 700px;
  margin: 1rem auto 3rem auto;
}

@media (orientation: landscape) {
  .video-container {
    background-color: #333;
  }

  .video-padding-wrapper {
    padding: 0 1.75rem;
  }

  .transcript summary {
    padding-right: 3rem;
  }
}