/* ============================================================
   ACHIEVEMENT.CSS
   All styles scoped to #achievements to avoid conflicts
   with global section-tag / section-title in index.css
   ============================================================ */

/* ── 1. SECTION WRAPPER ────────────────────────────────────── */
#achievements {
  padding: 4rem 1rem;
  background: #ffffff;
}

/* ── 2. SECTION HEADER ─────────────────────────────────────── */
#achievements .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

#achievements .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(30, 91, 198, 0.3);
  color: #1e5bc6;
  background: rgba(30, 91, 198, 0.07);
  margin-bottom: 0.75rem;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
}

#achievements .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0d1b4b;
  margin: 0.4rem 0;
}

#achievements .section-divider {
  width: 52px;
  height: 3px;
  background: #1e5bc6;
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ── 3. TWO-COLUMN GRID ────────────────────────────────────── */
#achievements .ach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ── 4. COLUMN HEADER ──────────────────────────────────────── */
#achievements .col-head {
  margin-bottom: 1.1rem;
}

#achievements .col-head .section-tag {
  margin-bottom: 0.5rem;
}

#achievements .col-head h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0d1b4b;
}

/* ── 5. CAROUSEL SLIDES ────────────────────────────────────── */
#achievements .slide {
  display: none;
}

/* Normal slide: photo + info, fixed 2-col */
#achievements .slide.active {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Full-image slide: single col, same height as normal slide */
#achievements .slide.active.full-image-slide {
  grid-template-columns: 1fr;
  height: 300px;
}

#achievements .slide.active.blue-top {
  border-top: 3px solid #1e5bc6;
}
#achievements .slide.active.gold-top {
  border-top: 3px solid #c97b0a;
}

/* ── 6. PHOTO COLUMN ───────────────────────────────────────── */
#achievements .photo-col {
  width: 220px;
  height: 300px; /* matches slide height */
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: #e8eef8;
}

#achievements .photo-col img {
  position: absolute;
  inset: 0;
  width: 220px;
  height: 300px; /* matches slide height */
  object-fit: cover;
  object-position: top center;
  display: block;
}

#achievements .photo-initials {
  width: 220px;
  height: 300px; /* matches slide height */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
}

#achievements .fi-blue {
  background: #dde8fb;
  color: #1e5bc6;
}
#achievements .fi-gold {
  background: #fef3dc;
  color: #c97b0a;
}

/* ── 7. INFO COLUMN ────────────────────────────────────────── */
#achievements .info-col {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#achievements .slide-name {
  font-size: 17px;
  font-weight: 700;
  color: #0d1b4b;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#achievements .slide-role {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 0.55rem;
  line-height: 1.4;
}

/* ── 8. BADGES ─────────────────────────────────────────────── */
#achievements .badge {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  margin-bottom: 0.55rem;
  width: fit-content;
  background-color: unset;
  color: unset;
}

#achievements .badge-blue {
  background: #dde8fb !important;
  color: #1a4aaa !important;
}
#achievements .badge-gold {
  background: #fef3dc !important;
  color: #a06008 !important;
}
#achievements .badge-green {
  background: #e0f5e9 !important;
  color: #1a6b3a !important;
}

/* ── 9. SLIDE DESCRIPTION ──────────────────────────────────── */
#achievements .slide-desc {
  font-size: 13.5px;
  color: #121518;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 10. PROGRESS BAR ──────────────────────────────────────── */
#achievements .progress {
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 0.6rem;
  overflow: hidden;
  min-height: unset;
}

#achievements .progress-bar {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.05s linear;
  animation: none;
}

#achievements .pb-blue {
  background: #1e5bc6;
}
#achievements .pb-gold {
  background: #c97b0a;
}

/* ── 11. CAROUSEL CONTROLS ─────────────────────────────────── */
#achievements .ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

#achievements .dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

#achievements .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s;
}

#achievements .dot.on {
  background: #1e5bc6;
}
#achievements .dot.on-gold {
  background: #c97b0a;
}

#achievements .btns {
  display: flex;
  gap: 6px;
}

#achievements .cbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0d1b4b;
  cursor: pointer;
  font-size: 15px;
  transition:
    background 0.15s,
    border-color 0.15s;
}

#achievements .cbtn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* ── 12. FULL-IMAGE CARD ───────────────────────────────────── */
#achievements .full-image-card {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

#achievements .full-image-card img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

/* ── 13. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 640px) {
  #achievements .ach-grid {
    grid-template-columns: 1fr;
  }
  #achievements .section-title {
    font-size: 1.5rem;
  }
}
