/* =============================================
   Achievements Page Styles
   ============================================= */

/* Hero Section Adjustments */
.hero-section.hero-compact {
  min-height: auto;
  padding: 80px 40px 40px;
}

/* Grid Layout */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.ach-card-wrapper {
  display: flex;
}

.ach-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.ach-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), #ffd700);
  opacity: 0;
  transition: opacity 0.3s;
}

.ach-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(247, 148, 29, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ach-card:hover::before {
  opacity: 1;
}

/* ── Cover image ── */
.ach-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.ach-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ach-card:hover .ach-cover img {
  transform: scale(1.06);
}

/* Placeholder when no image */
.ach-cover-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    135deg,
    rgba(247, 148, 29, 0.12) 0%,
    rgba(255, 215, 0, 0.06) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ach-cover-placeholder svg {
  color: var(--accent-orange, #f7941d);
  opacity: 0.35;
}

/* ── Body ── */
.ach-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ach-date {
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.ach-title {
  color: white;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.ach-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.ach-desc {
  flex: 1;
}

.ach-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange, #f7941d);
  margin-top: 16px;
}

.ach-link-row svg {
  transition: transform 0.3s;
}

.ach-card:hover .ach-link-row svg {
  transform: translateX(5px);
}

/* Load More Button */
.btn-load-more {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 40px;
  border-radius: 15px;
  color: white;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-load-more:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 10px 20px rgba(247, 148, 29, 0.3);
  transform: translateY(-3px);
}

.btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.load-more-container {
  margin-top: 50px;
  margin-bottom: 50px;
  padding-bottom: 60px;
}

/* Footer spacing */
.container-fluid {
  padding-bottom: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section.hero-compact {
    padding: 70px 20px 30px;
  }

  .ach-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 20px;
  }

  .ach-body {
    padding: 18px 18px 20px;
  }

  .ach-title {
    font-size: 1.15rem;
  }

  .ach-desc {
    font-size: 0.95rem;
  }

  .container-fluid {
    padding-bottom: 40px;
  }
}
