.index--section {
  width: 100%;
  position: relative;
  z-index: 1;
}





/* ===============================
   Header Row (Back + Title + Year)
   =============================== */

.news-header-row {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 10px;
  gap: 15px;
  background: #ffffff;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Back link */
.back-link {
  font-size: 1rem;
  font-weight: 600;
  color: #0a2a66;
  text-decoration: none;
  transition: 0.3s;
}

.back-link:hover {
  color: #0056b3;
  transform: translateX(-3px);
}


/* Container Alignment */
.year-dropdown-container {
  display: flex;
  justify-content: flex-end;
}

.year-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

/* Label */
.year-label {
    font-size: 14px;
    font-weight: 600;
    color: #0a2a66; /* School green theme */
    letter-spacing: 0.5px;
}

/* Select Styling */
.year-select {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

/* Hover Effect */
.year-select:hover {
    border-color: #0a2a66;
    background-color: #ffffff;
}

/* Focus Effect */
.year-select:focus {
    border-color: #0a2a66;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a2a66;
  margin: 0;
  text-align: center;
}


/* Optional underline effect */
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #007bff;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Container for cards */
 .container {
  max-width: 1200px;
  margin: 175px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  /* background-color: red; */
}

/* Card */
.achievement-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  overflow: hidden;
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* ✅ Fixed image size */
.achievement-image {
  width: 100%;
  height: 200px;   /* fixed height for all images */
  overflow: hidden;
  flex-shrink: 0;  /* don’t let it shrink */
}

.achievement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps aspect ratio, fills box */
  transition: transform 0.4s ease;
}

.achievement-card:hover .achievement-image img {
  transform: scale(1.05);
}

/* Text expands naturally */
.achievement-text {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Title */
.achievement-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a2a66;
  margin-bottom: 8px;
  border-left: 5px solid #007bff;
  padding-left: 8px;
  word-break: break-word; /* prevents overflow if very long word */
}

/* Description */
.achievement-description {
  flex-grow: 1;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Date + Venue */
.achievement-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 5px;
}

.achievement-venue {
  font-size: 0.9rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 10px;
}

/* Button always at bottom */
.btn-view {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  background: #007bff;
  color: white;
  padding: 10px 0;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-view:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* ✅ Responsive Breakpoints */
@media (max-width: 992px) {
  .achievements-section .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .achievements-section .container {
    grid-template-columns: 1fr;
  }
}



/* video */
/* MEDIA WRAPPER */
.media-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
}

/* IMAGE */
.achievement-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

/* VIDEO */
.news-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* Hover zoom effect */
.media-wrapper:hover .news-video,
.achievement-image img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .media-wrapper,
    .achievement-image img,
    .news-video {
        height: 200px;
    }
}