main {
    margin: 5vw;

}

.year-filter{
  display: flex;
  flex-direction: row; /* Use 'row' instead of 'horizontal' */
  width: 100%;
  color: Black;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  height: 8vh;
  align-items: center;
  position: sticky;
  top: 0; /* Make the element stick to the top */
  z-index: 1000; /* Ensure it appears above other content */
  background-color: #fff;
  padding: 0 5vw;
  gap: 20px;
}

.year-filter > select{
  border: none;
  font-size: 1rem;
  color: #999;

}

.acc {
  padding: 20px 0;
  border-radius: 8px;
  text-align: left;
  font-weight: 500;
}


.year-filter button {
  background-color: #aed97e;
  box-shadow: 0 0 4px rgba(163, 206, 115, 0.5);
  outline: none;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  color: #2f3e1d;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.year-filter button:hover {
  background-color: #a3ce73;
  transform: scale(1.03);
}

.year-filter button:active {
  transform: scale(0.98);
}


.achievements {
    width: 100%;
    font-family: Arial, sans-serif;
}

.achievements h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.achievements ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 15px;
    border-left: 2px dashed #ccc;
}

.achievements li {
    padding: 10px;
    width: 100%;
}

.achievements li:nth-child(even) {
    background-color: #f7f7f7; /* very light gray */
}

.achievements strong {
    font-weight: bold;
}


.read-more-btn {
  position: relative;
  overflow: hidden;
  margin: 0.5vh 0;
  padding: 0.4rem 1rem;
  border: 2px solid #fa9c33;
  border-radius: 20px;
  background-color: #fff;
  z-index: 1;
  transition: color 0.3s ease;
  cursor: pointer;
}

.read-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #fa9c33;
  z-index: -1;
  transition: width 0.3s ease;
}

.read-more-btn:hover::before {
  width: 100%;
}

.read-more-btn:hover {
  color: white;
}

.go-back a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #000; /* Adjust the text color as needed */
    padding: 10px 20px;
    overflow: hidden;
    transition: color 0.4s ease-in-out;
}

.go-back a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #FF9914;
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.45, 0, 0.55, 1); /* Smooth animation */
}

.go-back a:hover {
    color: #fff; /* Text color change on hover */
}

.go-back a:hover::before {
    transform: translateX(0);
    animation: bounce 0.5s ease-out;
}

/* 📱 Responsiveness for mobile phones */
@media (max-width: 768px) {

  main {
    margin: 5vw;
  }

  .year-filter {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
    padding: 10px 5vw;
    gap: 10px;
  }

  .year-filter > select {
    width: 100%;
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 10px 0;
    gap: 15px;
  }

  .acc {
    padding: 10px 0;
    text-align: left;
  }

  #acc-pagination {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  #acc-pagination button.page-btn {
    width: 100%;
    max-width: 200px;
  }

  .read-more-btn {
    width: 100%;
    text-align: center;
  }

  .go-back a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}
