/* =============================================================
   awards-certifications.css — Awards & Certifications listing page
   Base: 19px → scaled via global.css media queries
   Extends: life-at-tis.css (.lat-*) with a 3-column scaled grid
   ============================================================= */

/* ── 1. 3-Column Scaled Grid ─────────────────────────────── */

.ac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.579rem;       /* ~30px / 19 — balanced spacing for 3 columns */
  row-gap: 3.1758rem;
  margin-top: 5.5rem;
  margin-bottom: 4.211rem;
}

/* ── 2. Scaled Card Item ─────────────────────────────────── */

.ac-item {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.ac-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0.526rem;
}

/* Proportionally scaled image wrapper to fit 3-column width cleanly */
.ac-img-wrapper {
  width: 100%;
  height: auto;
  aspect-ratio: 334 / 391;    /* Matches Life @ TIS card aspect ratio scaled to 1/3 container width */
  max-height: 27.5rem;
  overflow: hidden;
  background-color: #d9d9d9;
  position: relative;
}

.ac-caption {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1.053rem;        /* ~20px / 19 — scaled slightly for larger 3-col cards */
  color: var(--base-dark);
  text-align: center;
  line-height: 1.4;
  margin-top: 0.5rem;
  max-width: 100%;
}

.ac-grid .empty-state-msg {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-sub);
  padding: 3rem 0;
}

/* ── 3. Dark Mode Support ────────────────────────────────── */

body.dark-theme .ac-img-wrapper,
body.dark-theme .ac-img-wrapper.lat-img-placeholder,
body.dark-theme .ac-img-wrapper .lat-img-placeholder {
  background-color: var(--bg-light);
}

body.dark-theme .ac-title,
body.dark-theme .ac-caption {
  color: var(--base-dark);
}

body.dark-theme .ac-pagination {
  border-top-color: var(--border-gray);
}

body.dark-theme .ac-pagination .cs-page-btn {
  color: var(--text-sub);
}

body.dark-theme .ac-pagination .cs-page-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--base-dark);
}

body.dark-theme .ac-pagination .cs-page-btn.active {
  background-color: var(--primary-blue);
  color: #ffffff;
}

/* ── 4. Responsive Breakpoints ───────────────────────────── */

@media (max-width: 1200px) {
  .ac-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.263rem;
  }
}

@media (max-width: 900px) {
  .ac-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
    row-gap: 2.5rem;
    margin-top: 3.5rem;
  }
}

@media (max-width: 575px) {
  .ac-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 2.5rem;
  }

  .ac-img-wrapper {
    width: 100%;
    max-width: 24.565rem;
    height: auto;
    aspect-ratio: 334 / 391;
    margin-left: auto;
    margin-right: auto;
  }
}

