.page-container {
  text-align: center;
  padding: 50px 0;
}

/* Bootstrap “container” basics */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 992px) {
  .container {
    max-width: 1200px;
  }
}

/* Typography & spacing */
.title {
  font-size: calc(20px + (30 - 20) * ((100vw - 300px) / (1300 - 300)));
}

.mb-4,
.my-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5,
.my-5 {
  margin-bottom: 3rem !important;
}

/* Row & columns (Bootstrap grid) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
.col-md-4,
.col-md-10,
.col-lg-8 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
}
@media (min-width: 992px) {
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

/* Centering utility */
.m-auto {
  margin: auto !important;
}

/* Image overlay cards */
.overlay-img {
  display: block;
  background: transparent;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
  border-radius: 0.25rem;
}

.overlay-img img {
  width: 100%;
  border-radius: 0.25rem;
}

.overlay-img .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(52, 58, 64, 0.5);
  transition: all 1s;
}

.overlay-img .des {
  position: absolute;
  top: 80%; left: 0;
  width: 100%; height: 100%;
  transition: all 0.8s;
}

.overlay-img .des .title {
  font-weight: bold;
  font-size: 24px;
  color: white;
}

.overlay-img .des .subtitle {
  opacity: .7;
  color: white;
}

.overlay-img .des p {
  margin-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 1.2s;
  color: white;
}

.overlay-img:hover .overlay {
  background: rgba(33, 37, 41, 0.8);
}

.overlay-img:hover .des {
  top: 40%;
}

.overlay-img:hover .des p {
  margin-top: 0;
  opacity: 1;
  visibility: visible;
}

/* ===== New: One-line, equal-height & larger cards ===== */
.row.mb-4 {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.row.mb-4 .col-md-4 {
  display: flex;
  flex: 1;
  min-width: 0;
}

.overlay-img {
  flex: 1;
  height: 500px;    /* adjust to make cards bigger/smaller */
  overflow: hidden;
}

.overlay-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Responsive: stack on small screens ===== */
@media (max-width: 767.98px) {
  .row.mb-4 {
    flex-direction: column;
    gap: 1rem;
  }
  .row.mb-4 .col-md-4 {
    max-width: 100%;
    flex: none;
  }
}