/* ===========================
   Women's Literacy Program
   =========================== */
body { margin:0; font-family: Arial, sans-serif; background:#fff; color:#000; }

.container-narrow { max-width: 1150px; margin: 0 auto; padding: 0 2rem; }

/* Title */
.lit-head { display:flex; align-items:center; }
.lit-title { margin:0; padding:2.25rem 0 1.25rem; font-size:2rem; font-weight:800; text-transform:uppercase; }
.blue-dot { width:1.8rem; height:1.8rem; border-radius:50%; background:#0C8DB0; display:inline-block; margin-left:.6rem; }

/* Divider under title */
.lit-rule { border:none; border-top:1px solid #cfcfcf; margin:0 0 1.5rem; }

/* Intro split */
.lit-intro-grid {
  display:grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items:start; margin-bottom: 1.25rem;
}
.lit-intro-text p { line-height:1.7; color:#222; margin:.25rem 0 0; }
.lit-intro-figure { margin:0; }
.lit-intro-figure img { width:100%; height:auto; display:block; border:1px solid #e5e5e5; }

/* ===========================
   Quotes band (two lines + 4 cols)
   =========================== */
.lit-quotes-band { padding: 0 0 18px; }
.lit-quotes-inner {
  position: relative;
  border-top: 1px solid #cfcfcf;
  border-bottom: 1px solid #cfcfcf;
  padding: 18px 0;             /* space between the lines */
}

/* 4-column grid: 3 quotes + bottle */
.lit-quotes-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr) 160px;  /* last col = bottle */
  gap: 1.75rem;
  align-items: stretch;
}

/* Quote blocks */
.lit-quote {
  position: relative;
  padding: 12px 16px 16px;
  color: #000;                 /* black text as requested */
  line-height: 1.55;
  font-size: .95rem;
}

/* Opening colored quote at top */
.lit-quote::before {
  content: "“";
  position: absolute;
  top: -28px; left: 0;
  font-size: 2.4rem; font-weight: 800; line-height: 1;
}

/* Closing colored quote at bottom, aligned right */
.lit-quote::after {
  content: "”";
  position: absolute;
  bottom: -47px; right: 0;
  font-size: 2.4rem; font-weight: 800; line-height: 1;
}

/* Per-quote colors (to match your mock) */
.q1::before, .q1::after { color:#0BAFC0; } /* teal */
.q2::before, .q2::after { color:#E0564E; } /* coral */
.q3::before, .q3::after { color:#0D7AA7; } /* blue */

/* Bottle column — stretches to touch top/bottom rules */
.lit-bottle{
  position: relative;
  width: 100%;
  background: url('../images/literacy/bottle.svg') no-repeat right center;
  background-size: 100% 100%;  /* fill full height and width */
  /* ensure it touches the lines by matching inner padding space */
  margin-top: -18px;   /* overlap top border space */
  margin-bottom: -18px;/* overlap bottom border space */
}

/* ===========================
   Gallery
   =========================== */
.lit-gallery {
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 22px 0 48px;
}
.lit-card { margin:0; }
.lit-card img {
  width: 100%;
  height: 260px;       /* pick a consistent height */
  object-fit: cover;   /* crop to fit while keeping aspect ratio */
  display: block;
  border: 1px solid #e5e5e5;
}.lit-card figcaption { margin-top:.45rem; font-size:.82rem; color:#555; line-height:1.45; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 980px) {
  .container-narrow { padding: 0 1.25rem; }
  .lit-intro-grid { grid-template-columns: 1fr; }
  .lit-quotes-grid { grid-template-columns: 1fr; }
  .lit-bottle { display:none; }          /* hide bottle on small screens */
  .lit-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .lit-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .lit-card img { height: 220px; }
}
@media (max-width: 640px) {
  .lit-card img { height: 180px; }
}