/* ---------- Base / Layout ---------- */
:root {
  --maxw: 1000px;
  --pad: 16px;
  --gap: 18px;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  overflow-x: hidden;
  background: #fafafa;
  color: #1b1b1b;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

.container {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: calc(var(--pad) + 4px) var(--pad) 40px;
}

/* ---------- Certificates Grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: start;
}

@media (min-width: 992px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- Summary Section (text smaller) ---------- */
.summary {
  margin-top: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  font-size: 0.9rem;        /* reduced from 1rem */
  line-height: 1.4;         /* tighter spacing */
}

.summary h3 {
  margin: 0 0 8px;
  font-size: 1rem;          /* smaller heading */
}

.points {
  margin: 0;
  padding-left: 18px;
}

.points li {
  margin: 6px 0;            /* smaller gaps */
}

.container, .summary{
    padding: calc(var(--pad) + 4px) var(--pad) 12px;
}
.summary{
    margin-top: 1%;
}
/* ---------- Print Mode ---------- */
@media print {
  html, body {
    overflow-x: visible;
    background: #fff;
  }
  .container {
    padding: 0;
  }
  .card, .summary {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
