/* =========================================================
   STUDENT ACHIEVEMENTS STYLESHEET (css/student-achievements.css)
   GNIPST Life Sciences: Co-Curricular, National Qualifiers & Extracurricular
   ========================================================= */

/* ---- Hero Banner ---- */
.achieve-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-deep, #062b18) 0%, #0c3e26 50%, #15663f 100%);
  color: #ffffff;
  padding: 58px 0 68px;
  overflow: hidden;
  isolation: isolate;
}
.achieve-hero-art {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  pointer-events: none;
  opacity: 0.16;
  z-index: 1;
}
.achieve-hero .wrap {
  position: relative;
  z-index: 2;
}
.achieve-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.achieve-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}
.achieve-hero-breadcrumb a:hover {
  color: var(--accent, #f0a800);
}
.achieve-hero-breadcrumb svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  stroke: currentColor;
}
.achieve-hero-breadcrumb .current {
  color: var(--accent, #f0a800);
  font-weight: 600;
}
.achieve-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(240, 168, 0, 0.18);
  border: 1px solid rgba(240, 168, 0, 0.38);
  color: #ffe082;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.achieve-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 860px;
}
.achieve-hero p {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 780px;
  margin: 0 0 26px;
}
.achieve-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.achieve-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.achieve-hero-btn-primary {
  background: var(--accent, #f0a800);
  color: #062b18;
}
.achieve-hero-btn-primary:hover {
  background: #ffb71b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 168, 0, 0.35);
}
.achieve-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.achieve-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ---- Quick Stats Metric Strip ---- */
.achieve-stat-strip {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
}
.achieve-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.achieve-stat-box {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid #edf2f7;
  transition: background 0.18s ease;
}
.achieve-stat-box:last-child {
  border-right: none;
}
.achieve-stat-box:hover {
  background: #f8fafc;
}
.achieve-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e8f5e9;
  color: #1b8354;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.achieve-stat-icon.gold {
  background: #fff8e1;
  color: #d97706;
}
.achieve-stat-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}
.achieve-stat-icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}
.achieve-stat-val {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 2px;
}
.achieve-stat-lbl {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.35;
}

/* ---- Main Section Container ---- */
.achieve-section {
  padding: 54px 0 72px;
  background: #f8fafc;
}

/* ---- Filter Controls Header ---- */
.achieve-controls {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 34px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.achieve-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.achieve-tab-btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.achieve-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.achieve-tab-btn.active {
  background: #0c3e26;
  color: #ffffff;
  border-color: #0c3e26;
  box-shadow: 0 4px 12px rgba(12, 62, 38, 0.22);
}
.achieve-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
}
.achieve-tab-btn.active .achieve-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.achieve-search-box {
  position: relative;
  min-width: 280px;
  flex-grow: 0.4;
}
.achieve-search-box input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.88rem;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.18s ease;
}
.achieve-search-box input:focus {
  border-color: #1b8354;
  box-shadow: 0 0 0 3px rgba(27, 131, 84, 0.14);
}
.achieve-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
  pointer-events: none;
}

/* ---- Hall of Fame / Spotlight Cards ---- */
.spotlight-section {
  margin-bottom: 42px;
}
.section-heading-sm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-heading-sm h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading-sm h2 svg {
  color: #f0a800;
}
.section-heading-sm p {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.spotlight-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1b8354, #f0a800);
}
.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}
.spotlight-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spotlight-badge.gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.spotlight-badge.emerald {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.spotlight-badge.blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.spotlight-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}
.spotlight-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 8px;
}
.spotlight-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}
.spotlight-footer {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
}
.spotlight-tag {
  font-weight: 600;
  color: #0c3e26;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---- Data Table Card Containers ---- */
.achieve-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  margin-bottom: 36px;
}
.achieve-card-header {
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.achieve-card-header h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.achieve-card-header h3 svg {
  color: #1b8354;
}
.achieve-card-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

/* ---- Modern Table Layout ---- */
.achieve-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.achieve-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.achieve-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.achieve-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
  line-height: 1.5;
}
.achieve-table tbody tr {
  transition: background 0.15s ease;
}
.achieve-table tbody tr:hover {
  background: #f8fafc;
}
.achieve-table tbody tr:last-child td {
  border-bottom: none;
}

/* Rank / Distinction Badges */
.rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.rank-pill.winner {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.rank-pill.first {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.rank-pill.second {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.rank-pill.third {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.rank-pill.runners {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.rank-pill.qualified {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.student-name-strong {
  font-weight: 700;
  color: #0f172a;
  display: block;
}
.student-sub-program {
  font-size: 0.78rem;
  color: #64748b;
  display: block;
  margin-top: 2px;
}
.event-topic {
  font-weight: 600;
  color: #1e293b;
}
.org-by {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #475569;
}
.org-by svg {
  width: 14px;
  height: 14px;
  stroke: #94a3b8;
  flex-shrink: 0;
}
.badge-year {
  display: inline-block;
  font-weight: 600;
  color: #475569;
  font-size: 0.82rem;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Empty Search State */
.achieve-empty-state {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  margin-top: 18px;
}
.achieve-empty-state svg {
  width: 48px;
  height: 48px;
  stroke: #94a3b8;
  margin-bottom: 12px;
}
.achieve-empty-state h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.achieve-empty-state p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

/* ---- Clubs & Student Life Center Section ---- */
.clubs-section {
  padding: 60px 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.clubs-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.clubs-heading .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1b8354;
  margin-bottom: 8px;
}
.clubs-heading h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.clubs-heading p {
  font-size: 0.94rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.club-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.club-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.club-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8f5e9;
  color: #1b8354;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.club-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}
.club-icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}
.club-icon.amber {
  background: #fef3c7;
  color: #d97706;
}
.club-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.club-card p {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

/* ---- Campus Photo Showcase Grid ---- */
.achieve-gallery {
  padding: 60px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 43, 24, 0.88) 0%, rgba(6, 43, 24, 0.1) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #ffffff;
}
.gallery-overlay span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffe082;
  margin-bottom: 2px;
}
.gallery-overlay h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  line-height: 1.25;
}

/* ---- Bottom Institutional CTA ---- */
.achieve-cta {
  background: linear-gradient(135deg, #062b18 0%, #0c3e26 100%);
  color: #ffffff;
  padding: 56px 0;
  text-align: center;
  position: relative;
}
.achieve-cta h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
}
.achieve-cta p {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 26px;
  line-height: 1.6;
}
.achieve-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Responsive Breakpoints ---- */
@media (max-width: 1024px) {
  .achieve-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .achieve-stat-box:nth-child(2) {
    border-right: none;
  }
  .achieve-stat-box:nth-child(1),
  .achieve-stat-box:nth-child(2) {
    border-bottom: 1px solid #edf2f7;
  }
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clubs-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .achieve-hero {
    padding: 42px 0 48px;
  }
  .achieve-hero-art {
    display: none;
  }
  .achieve-stat-grid {
    grid-template-columns: 1fr;
  }
  .achieve-stat-box {
    border-right: none;
    border-bottom: 1px solid #edf2f7;
  }
  .achieve-stat-box:last-child {
    border-bottom: none;
  }
  .achieve-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .achieve-tabs-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .achieve-search-box {
    width: 100%;
    min-width: unset;
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .clubs-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
