/* ===== Medium Content Boxes Styling ===== */
.row.content-boxes-v2 {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 1.5em; /* space below boxes */
  margin-left: -0.75em; /* reduce horizontal spacing between boxes */
  margin-right: -0.75em;
}

.row.content-boxes-v2 > .col-sm-4,
.row.content-boxes-v2 > .col-12,
.row.content-boxes-v2 > .col-sm-8,
.row.content-boxes-v2 > .col-md-6,
.row.content-boxes-v2 > .col-lg-4 {
  padding-left: 0.75em; /* reduce padding inside each column */
  padding-right: 0.75em;
}

/* ===== Container Fix for Videos & Content ===== */
.container.content-sm,
.container.video-container {
    max-width: 1200px; /* constrain width for desktop */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== Video Section Adjustment ===== */
.video-container {
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;
}

.video-container iframe,
.video-container video {
    max-width: 100%;
    height: auto;
}

/* ===== Consultation Box Styling ===== */
.content-box.consultation-centered {
  max-width: 450px; /* limit width for smaller box */
  margin: 0 auto; /* center on page */
  text-align: left; /* keep text left-aligned */
}

/* Box general styles */
.content-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  padding: 1.2em 1.5em;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.content-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  filter: brightness(1.03);
}

/* Headings inside boxes */
.content-box h2.heading-sm {
  display: flex;
  align-items: center;
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0.6em;
  position: relative;
  padding-bottom: 0.3em;
}

.content-box h2.heading-sm::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Animate underline on box hover (expand + brighten) */
.box-consultation:hover h2.heading-sm::after {
  width: 70px;
  background-color: #e63946;
}

/* Icon inside heading */
.content-box h2 i {
  margin-right: 0.6em;
  font-size: 2rem;
  color: inherit;
  display: inline-block;
  vertical-align: middle;
}

/* Paragraph text */
.content-box p {
  font-size: 1.28rem;
  line-height: 1.5;
  margin-bottom: 1em;
}

/* CTA Buttons */
.btn-more {
  display: inline-block;
  margin-top: 0.8em;
  padding: 0.65em 1.4em;
  font-weight: 600;
  font-size: 1.28rem;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-more:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Unique Styles per Box */
.box-consultation {
  background-color: #fdf6f6;
  color: #d62828;
}
.box-consultation h2.heading-sm::after {
  background-color: #d62828;
}
.box-consultation .btn-more {
  background-color: #d62828;
}
.box-consultation .btn-more:hover {
  background-color: #e63946;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .col-sm-4.sm-margin-bottom-20,
  .col-12.sm-margin-bottom-20 {
    width: 50%;
    margin-bottom: 1.8em;
  }
}

@media (max-width: 576px) {
  .col-sm-4.sm-margin-bottom-20,
  .col-12.sm-margin-bottom-20 {
    width: 100%;
    margin-bottom: 1.5em;
  }

  .content-box h2.heading-sm {
    font-size: 1.55rem;
  }

  .content-box p {
    font-size: 1.18rem;
  }

  .btn-more {
    font-size: 1.18rem;
  }

  .content-box h2 i {
    font-size: 1.8rem;
  }
}
