/* ==========================================
   Global / Header Fixes
============================================= */
body {
  padding-top: 0 !important;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

.invisible-header {
  display: none;
}

#header {
  position: static;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

h1.mb-4 {
  text-align: center;
  width: 100%;
  margin: 1rem auto 2rem auto;
  padding-bottom: 1rem;
  border-bottom: 2px solid #335370;
  color: #335370;
}

/* =========================================
   Banner
============================================ */
#banner {
  background: linear-gradient(100deg, #6FA0CC, #3A6FA5);
  color: #ffffff;
  padding: 6vh 2rem 5vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

#banner h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: none;
}

.banner-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-top: 0.75rem;
}

/* ===========================================
   Banner – Responsive Enhancements
============================================== */

/* Base improvements (mobile-first) */
#banner {
  padding: 4vh 1.25rem 4vh;
}

#banner h2 {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  line-height: 1.2;
  flex-wrap: wrap;
}

.banner-subtitle {
  font-size: 1rem;
  line-height: 1.5;
}

/* Large laptops (≤ 1280px) */
@media (max-width: 1280px) {
  #banner {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* Tablets / small laptops (≤ 1024px) */
@media (max-width: 1024px) {
  #banner {
    padding: 6vh 2.5rem 5vh;
  }

  #banner h2 {
    font-size: clamp(2.25rem, 4vw, 2.75rem);
  }

  .banner-subtitle {
    font-size: 1.1rem;
  }
}

/* Tablets (≤ 768px) */
@media (max-width: 768px) {
  #banner {
    padding: 5vh 2rem 5vh;
    height: fit-content;
  }

  #banner h2 {
    font-size: clamp(2rem, 5vw, 2.4rem);
    flex-wrap: wrap;
  }

  .banner-subtitle {
    font-size: 1.05rem;
  }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  #banner {
    padding: 4vh 1.25rem 4vh;
  }

  #banner h2 {
    font-size: 1.75rem;
  }

  .banner-subtitle {
    font-size: 1rem;
    max-width: none;
  }
}

/* =========================================================
   Content
========================================================= */
.row {
  margin-bottom: 3rem;
}

.card {
  border: 1px solid #5f9dd2;
  border-radius: 1rem;
  transition: transform 0.2s ease-in-out, border-color 0.2s, color 0.2s;
  background-color: #f9f9f9;
  width: 100%;
  height: 100%;
  margin: 0;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.card:hover {
  transform: translateY(-9px);
  box-shadow: 4px 4px 15px rgba(0,0,0,0.7);
}

.card img {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  object-fit: cover;
  height: 180px;
  width: 100%;  
  display: block; 
  padding: 0;
  margin: 0;
}

.card .card-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #335370;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.75rem;
}

.car .card-title-div {
  background-color: #192936;
}

.card address,
.card phone {
  display: block;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.card li {
    border-bottom: 1px solid #5f9dd2;
}

.card .card-body a {
  display: inline-block;
  text-decoration: underline;
  color: #335370;
  font-weight: 700;
  transition: color 0.2s;
}

.card .card-body a:hover {
    color: #192936;
    text-decoration: underline;
}

.list-group {
  list-style-type: none;
  font-weight: 500;
}

.list-group .list-group-item {
  width: 100%;
}

.card-img-top {
  width: 100%;
  aspect-ratio: 16 / 9; 
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}


/* Adjust the card size and layout based on screen size */
@media (max-width: 1200px) {
  /* For large screens, show 3 cards per row */
  .col-md-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}

@media (max-width: 992px) {
  /* For medium screens (tablets), show 2 cards per row */
  .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  /* For smaller screens (phones), show 1 card per row */
  .col-1 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card {
    width: 90%;
    margin: auto;
  }

  .card img {
    height: auto;
    max-height: 200px;
  }

  .card .card-title {
    font-size: 1.1rem;
  }

  .card .list-group-item {
    font-size: 0.85rem;
  }
}