:root {
  --primary-blue: #263489;
  --accent-red: #ec1d25;
  --text-black: #000000;
  --bg-light: #f4f6f9;
}

/* =========================
   SECTION
========================= */
.facilities-section {
  background: var(--bg-light);
  padding: 60px 0;
}

/* =========================
   HEADER
========================= */
.section-header h2 {
  color: var(--primary-blue);
  font-weight: 700;
}

.divider {
  width: 70px;
  height: 3px;
  background: var(--accent-red);
  margin: 10px auto 30px;
}

/* =========================
   CARD
========================= */
.facility-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
   BLOCK
========================= */
.facility-block {
  margin-bottom: 40px;
}

.facility-block h3 {
  color: var(--primary-blue);
  font-size: 20px;
  margin-bottom: 10px;
}

.facility-block h3::after {
  content: "";
  width: 50px;
  height: 3px;
  background: var(--accent-red);
  display: block;
  margin-top: 6px;
}

.facility-block p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* =========================
   GALLERY GRID (FIXED)
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  justify-content: center;   /* 🔥 CENTER ITEMS */
  gap: 20px;
}

/* =========================
   IMAGE FIX SIZE
========================= */
.gallery-grid img {
  width: 100%;
  height: 316px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #eee;
  transition: 0.3s;
  aspect-ratio: 100 / 79;
}

/* =========================
   HOVER
========================= */
.gallery-grid img:hover {
  border-color: var(--primary-blue);
}

/* =========================
   TWO COLUMN SECTION
========================= */
.gallery-grid.two-col {
  grid-template-columns: repeat(2, 400px);
  justify-content: center; /* center both images */
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px) {

  .facility-card {
    padding: 20px;
  }

  .facility-block h3 {
    font-size: 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 220px;
  }

  .gallery-grid.two-col {
    grid-template-columns: 1fr;
  }
}



/* SPECIAL HOSPITAL LAYOUT */
.hospital-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* left big, right small */
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}

/* FIRST IMAGE (BIG LEFT) */
.hospital-layout img:nth-child(1) {
  grid-row: 1 / span 2; /* takes full height */
  height: 100%;
}

/* RIGHT SIDE IMAGES */
.hospital-layout img:nth-child(2),
.hospital-layout img:nth-child(3) {
  height: 100%;
}

/* IMAGE COMMON */
.hospital-layout img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .hospital-layout {
    grid-template-columns: 1fr;
  }

  .hospital-layout img:nth-child(1) {
    grid-row: auto;
  }
}