.awards-header {
  background-size: cover;
  background-color: #6a38d3;
  position: relative;
  height: 22rem;
  color: white;
  display: flex;
  align-items: center;
}

.awards-select-mobile {
  display: none;
}

.awards-sidebar-wrapper {
  display: flex;
  flex-direction: row;
}

.awards-select-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;

  li {
    border-bottom: 2px solid #eaeaea;
    padding-block: 20px;
    cursor: pointer;
  }
}

.awards-select-desktop {
  flex: 0 0 25%;
  margin-right: 80px;
}

.awards-sidebar-navigation {
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  width: 100%;
  display: block;
}
a.awards-sidebar-navigation.awards-lists.active {
  color: #6936d3;
}

/* Grid layout for post content */
.post-content {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 20px;
}

.modal-content {
  margin: 4rem 0;
  width: 600px;
}

.modal-dialog {
  display: flex;
  justify-content: center;
}

.modal-body {
  padding: 0;
}

.award-modal-close-button {
  position: absolute;
  display: flex;
  right: 0;
  color: white;
  font-size: 32px;
  padding: 15px;
}

.award-image-title {
  font-size: 14px;
  text-align: center;
  padding: 32px 24px;
}

a#prevBtn.disabled {
  color: #abadb9;
  cursor: not-allowed;
}
a#nextBtn.disabled {
  color: #abadb9;
  cursor: not-allowed;
}
.pagination {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  a {
    font-size: 18px;
  }
}

/* Award card styling */
.award-cards {
  display: block;
  height: 100%;
  width: 100%; /* Ensure full width */
}

.award-card-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: solid 1px #f0ebfb;
  border-radius: 8px;
  padding-bottom: 20px;
  width: 100%; /* Ensure full width */
}

.award-card-wrapper img {
  width: 100%;
  height: 200px; /* Fixed height */
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.award-card-title {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.award-card-date {
  color: #abadb9;
  font-size: 12px;
}

.award-card-title2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Changed to 3 lines */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0;
  max-width: 70ch; /* Limits to approximately 70 characters */
  word-wrap: break-word;
}

#pageInfo {
  display: flex;
  gap: 20px;
}

.page-info-number {
  width: 40px;
  display: flex;
  justify-content: center;
  padding: 2px;
}

a.page-info-number.active {
  background-color: #f0ebfb;
  color: #6936d3;
  border-radius: 8px;
}

/* Responsive layout */
@media screen and (width < 992px) {
  .awards-select-mobile {
    display: flex;
  }

  .awards-select-desktop {
    display: none;
  }

  .awards-sidebar-wrapper {
    display: flex;
    flex-direction: column;
  }

  .post-content {
    grid-template-columns: repeat(2, 300px);
  }

  .pagination {
    justify-content: center;
  }

  .award-card-wrapper img {
    height: 180px; /* Slightly smaller for tablets */
  }
}

@media (max-width: 576px) {
  .post-content {
    grid-template-columns: 1fr;
  }

  .award-card-wrapper img {
    height: 160px; /* Even smaller for mobile */
  }
}
