 
:root {
  --ink: #0e1a26;            /* primary text */
  --brand: #0f6bb0;          /* accent blue */
  --brand-dark: #0b5490;     /* accent hover */
  --navy: #0a2540;           /* dark sections */
  --paper: #eef3f8;          /* media / soft background */
  --surface: #fff;           /* card background */
  --line: #d9e1e8;           /* borders */
  --muted: #56677a;          /* secondary text */
  --radius: 2px;

  
}

  
/* ---- Layout ---- */

.wrap {
}

.section {
  position: relative;
  padding: clamp(30px, 4.6875vw, 90px) 0;
  box-sizing: border-box;
}

/* ---- Section header ---- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  max-width: 42rem;
  font-size: clamp(20px, 2.40vw, 46px);
  line-height: 1.3;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
}

.section-head p {
  margin-top: 16px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 17px;
}

@media (min-width: 768px) {
  .section-head h2 {
  }
}

/* ---- Button ---- */

.section-head .btn {
     margin: clamp(10px, 1.5625vw, 30px) 0 0;
    background: var(--color-primary);
    display: inline-block;
    text-align: center;
    font-size: clamp(13px, 0.78vw, 15px);
    color: #fff;
    border-radius: var(--button-radius);
    transition: 0.3s;
    padding: 10px 50px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--outline {
  /* border-color: var(--ink); */
  /* color: var(--ink); */
}

.section-head .btn--outline:hover {
  background:#000;
  color: #fff;
}

/* ---- Card grid (irregular sizes) ----
   2 columns on small screens;
   3 columns on lg with one 2x2 feature card and one 2-wide card. */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card--feature {
    /* grid-column: span 2; */
    /* grid-row: span 2; */
  }

  .card--wide {
    grid-column: span 2;
  }
}

/* ---- Card ---- */

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s;
}
.card:nth-child(1){
        grid-column: span 2;
        grid-row: span 2;
    }
.card:nth-child(5) {
        grid-column: span 2;
    }
.card:hover {
  border-color: var(--ink);
}

.card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper);
  overflow: hidden;
}

.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__body {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.card__body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.card__body p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Feature card: media grows to fill the tall cell */
@media (min-width: 1024px) {
  .card--feature .card__media {
    aspect-ratio: auto;
    flex: 1;
    min-height: 320px;
  }
}
