/* ============================================================
   Staff Achievements & Rewards Stylesheet
   FPCI Chapter Diponegoro University
   Aligned with style.css, aboutus.css, history.php & publications.css
   ============================================================ */

/* ── ACTIVE NAV LINK ──────────────────────────────────────── */
.nav-links a.active {
  color: #3c0572;
  font-weight: 600;
  border-bottom: 2px solid #3c0572;
  padding-bottom: 2px;
}

/* ── PAGE HERO (Matches about.php, history.php, publications.php) ── */
.achieve-hero {
  background: #1a1a2e url("img/header-background.png") center/cover no-repeat;
  height: 320px;
  position: relative;
}

.achieve-hero-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(75, 0, 130, 0.88), rgba(0, 0, 0, 0.25));
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.achieve-hero-text {
  padding-bottom: 52px;
  color: #fff;
}

.achieve-hero-sub {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.achieve-hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
}

/* ── SECTION 1: NEWLY AWARDED STAFF SHOWCASE HEADER ───────── */
.spotlight-section {
  background: #fff;
  padding: 64px 0 60px;
  border-bottom: 1px solid #e8e0f0;
}

.spotlight-section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.achieve-section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #922f16;
  display: inline-block;
  border-left: 3px solid #922f16;
  padding-left: 12px;
  margin-bottom: 10px;
}

.achieve-section-title {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
  margin-bottom: 8px;
}

.achieve-section-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  max-width: 640px;
}

.spotlight-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.spotlight-stat-pill {
  background: #f8f5ff;
  border: 1px solid #e8e0f0;
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 130px;
}

.spotlight-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #3c0572;
  line-height: 1.1;
  margin-bottom: 2px;
}

.spotlight-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Spotlight Featured Cards Grid */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.spotlight-grid.single-item {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.spotlight-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e4dcf2;
  box-shadow: 0 6px 24px rgba(60, 5, 114, 0.09);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(18px);
  animation: cardIn 0.45s ease forwards;
}

.spotlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(60, 5, 114, 0.16);
}

/* Top Royal Purple & Gold Banner inside Spotlight Card */
.spotlight-card-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #3c0572 58%, #4b0082 100%);
  padding: 22px 26px 24px;
  color: #fff;
  position: relative;
}

.spotlight-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.spotlight-award-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(240, 208, 128, 0.18);
  color: #f0d080;
  border: 1px solid rgba(240, 208, 128, 0.45);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spotlight-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.spotlight-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.spotlight-avatar-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #f0d080;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.spotlight-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.spotlight-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #f0d080;
  background: rgba(26, 26, 46, 0.6);
}

.spotlight-person {
  flex: 1;
  min-width: 0;
}

.spotlight-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.spotlight-role {
  font-size: 13px;
  font-weight: 500;
  color: #f0d080;
  letter-spacing: 0.02em;
}

/* Bottom Body inside Spotlight Card */
.spotlight-card-body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #fff;
}

.spotlight-citation-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #922f16;
  margin-bottom: 6px;
}

.spotlight-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 12px;
}

.spotlight-desc-box {
  background: #f8f5ff;
  border-left: 3px solid #4b0082;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #444;
  line-height: 1.7;
  margin-top: auto;
}

/* ── STICKY CONTROLS BAR (Matches publications.css) ───────── */
.achieve-controls-wrap {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 64px;
  z-index: 900;
  padding: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.achieve-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 9px 14px;
  min-width: 260px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: #3c0572;
  background: #fff;
}

.search-box svg {
  color: #888;
  flex-shrink: 0;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  color: #333;
}

.search-box input::placeholder {
  color: #aaa;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  border: 1.5px solid #ddd;
  background: transparent;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #3c0572;
  color: #3c0572;
}

.filter-btn.active {
  background: #3c0572;
  border-color: #3c0572;
  color: #fff;
}

/* ── SECTION 2: MONTHLY ACHIEVEMENTS ARCHIVE (#f2f2f2) ────── */
.achieve-main {
  padding: 52px 0 80px;
  background: #f2f2f2;
  min-height: 55vh;
}

.monthly-header-block {
  margin-bottom: 36px;
}

.month-group {
  margin-bottom: 48px;
}

.month-group:last-child {
  margin-bottom: 0;
}

.month-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  padding: 16px 22px;
  border-radius: 10px;
  border-left: 4px solid #3c0572;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.month-heading-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-heading h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

.month-badge {
  font-size: 12px;
  font-weight: 600;
  color: #3c0572;
  background: #f3effb;
  border: 1px solid #e2d6f5;
  padding: 4px 12px;
  border-radius: 20px;
}

/* 3-Column Achievers Grid (Matches publications.css .articles-grid) */
.achievers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Structured 2-Part Achiever Card */
.achiever-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.45s ease forwards;
}

.achiever-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Card Top Profile Header */
.achiever-card-head {
  background: #f8f5ff;
  border-bottom: 1px solid #ece4f8;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.achiever-avatar-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2.5px solid #4b0082;
  overflow: hidden;
  flex-shrink: 0;
  background: #ede9fe;
}

.achiever-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.achiever-avatar-fallback {
  width: 100%;
  height: 100%;
  background: #3c0572;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.achiever-meta {
  flex: 1;
  min-width: 0;
}

.achiever-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 3px;
}

.achiever-role {
  font-size: 12.5px;
  font-weight: 600;
  color: #4b0082;
  line-height: 1.35;
}

/* Card Body */
.achiever-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.achiever-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: #3c0572;
  color: #fff;
  margin-bottom: 10px;
}

.achiever-tag.tag-crimson {
  background: #922f16;
}

.achiever-tag.tag-gold {
  background: #b45309;
}

.achiever-title {
  font-size: 15.5px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.45;
  margin-bottom: 8px;
}

.achiever-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.achiever-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: auto;
  font-size: 12px;
  color: #888;
}

.achiever-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.achiever-spotlight-pill {
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 11px;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Empty & No Results States */
.achieve-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.achieve-empty h4 {
  font-size: 18px;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.achieve-empty p {
  font-size: 14px;
  color: #777;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .achievers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .achieve-hero-text h1 {
    font-size: 34px;
  }

  .spotlight-section {
    padding: 44px 0 40px;
  }

  .achieve-section-title {
    font-size: 24px;
  }

  .achieve-controls-wrap {
    top: 60px;
  }

  .achieve-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: unset;
    width: 100%;
  }

  .achievers-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
