/* Minimal grid + utility CSS — replaces Bootstrap */

/* ── Container ──────────────────────────────────────── */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ── Row ────────────────────────────────────────────── */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}
.row > * {
  box-sizing: border-box;
  padding-right: 12px;
  padding-left: 12px;
}

/* ── Columns ────────────────────────────────────────── */
.col-12 { flex: 0 0 100%;    max-width: 100%; }
.col-6  { flex: 0 0 50%;     max-width: 50%;  }

@media (min-width: 576px) {
  .col-sm-6  { flex: 0 0 50%;     max-width: 50%;  }
  .col-sm-12 { flex: 0 0 100%;    max-width: 100%; }
}
@media (min-width: 768px) {
  .col-md-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6  { flex: 0 0 50%;     max-width: 50%;  }
  .col-md-8  { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-12 { flex: 0 0 100%;    max-width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6  { flex: 0 0 50%;     max-width: 50%;  }
  .col-lg-8  { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-12 { flex: 0 0 100%;    max-width: 100%; }
}

/* ── Gap utilities (used with .row) ─────────────────── */
.g-4 {
  gap: 1.5rem;
  margin-right: 0;
  margin-left: 0;
}
.g-4 > * {
  padding-right: 0;
  padding-left: 0;
}

/* ── Flex utilities ─────────────────────────────────── */
.d-flex              { display: flex; }
.flex-wrap           { flex-wrap: wrap; }
.align-items-center  { align-items: center; }
.justify-content-center  { justify-content: center; }
.justify-content-between { justify-content: space-between; }

/* ── Display ────────────────────────────────────────── */
.h-100          { height: 100%; }
.overflow-hidden { overflow: hidden; }

/* ── Heading resets (matches Bootstrap v3 defaults) ─── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.1;
  margin-top: 20px;
  margin-bottom: 10px;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
p  { margin: 0 0 10px; }

/* ── Typography utilities ───────────────────────────── */
.text-decoration-none { text-decoration: none; }
.text-uppercase       { text-transform: uppercase; }
.fw-normal            { font-weight: 400; }
.text-muted           { color: #6c757d; }
.text-center          { text-align: center; }

/* ── Spacing utilities ──────────────────────────────── */
.my-3 { margin-top: 1rem !important;    margin-bottom: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* ── Card ───────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 0.375rem;
  border: 1px solid rgba(0, 0, 0, 0.125);
  box-sizing: border-box;
}
.border-0       { border: 0 !important; }
.shadow-sm      { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }
.card-img-top   { width: 100%; display: block; border-radius: 0.375rem 0.375rem 0 0; }
.card-body      { padding: 1rem; }
.card-text      { color: #6c757d; }

/* ── Button ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  background: transparent;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: #0d6efd;
}
