/* achievements.css */

/* PAGE HERO */
.page-hero {
  text-align: center;
  padding: 80px 24px 24px;
  animation: fadeSlideUp 0.6s ease both;
}

.page-hero .tag { margin-inline: auto; }
.page-hero h1   { font-size: 2.8rem; margin-bottom: 10px; }
.page-hero p    { color: #666; font-size: 1rem; max-width: 520px; margin-inline: auto; }

/* FILTER */
.filter-wrapper {
  max-width: 1000px;
  margin-inline: auto;
  padding: 24px 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-main);
  border: 1px solid var(--clr-primary-border);
  border-radius: 999px;
  background: transparent;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-light);
}

.filter-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

/* WRAPPER */
.achievements-wrapper {
  max-width: 1000px;
  margin-inline: auto;
  padding: 28px 24px 100px;
}

/* LOADING & EMPTY */
.page-loading,
.page-empty {
  text-align: center;
  padding: 80px 24px;
  color: #999;
  font-size: 1rem;
}

/* GRID */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* CARD */
.achievement-card {
  background: var(--clr-glass-bg);
  border: 1px solid var(--clr-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fadeSlideUp 0.5s ease both;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(232, 98, 26, 0.13);
  border-color: rgba(232, 98, 26, 0.35);
}

/* IMAGE */
.ac-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--clr-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ac-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
}

.ac-img-placeholder {
  font-size: 3rem;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.ac-image.no-img img {
  display: none;
}

.ac-image.no-img .ac-img-placeholder {
  opacity: 1;
}

/* BODY */
.ac-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* TAGS */
.ac-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.ac-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--clr-primary-border);
  color: var(--clr-primary);
  background: var(--clr-primary-light);
}

.cat-tag {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

/* TITLE */
.ac-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

/* ORG */
.ac-org {
  font-size: 0.82rem;
  color: #888;
  font-weight: 500;
}

/* YEAR */
.ac-year {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
  margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .page-hero h1        { font-size: 2rem; }
  .achievements-grid   { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .filter-buttons      { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .filter-wrapper      { padding-inline: 16px; }
}

@media (max-width: 480px) {
  .achievements-grid { grid-template-columns: 1fr; }
  .ac-body           { padding: 14px 16px 18px; }
}