.subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title p,
.section-title h2 {
    display: block;
    margin: 0;
}

.section-title p {
    margin-top: 0.5rem;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper .main-image {
    width: 100%;
    height: auto;
    display: block;
}

.main-image {
    bottom: 100px;
}

.image-wrapper .overlay-image {
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 60%;
}

.blogsubtitle {
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 3px;
  color: #222;
}

/* ============================
   MOBILE RESPONSIVE STYLES
   ============================ */
@media (max-width: 768px) {

  .hero p.lead {
    font-size: 16px;
    text-align: center;
    padding: 0 15px;
  }

  .section-title h2 {
    font-size: 18px;
    text-align: center;
    margin: 20px 0;
  }

  section.about {
    margin-top: 0 !important;
    padding: 20px 10px;
  }

  .row.align-items-center {
    flex-direction: column !important;
  }

  .col-lg-6 {
    width: 100% !important;
    margin: 15px 0 !important;
  }

  .image-wrapper img {
    width: 100% !important;
    height: auto !important;
    margin: 10px 0;
  }

  .overlay-image {
    display: none; 
  }

  img[src*="logo"] {
    display: block;
    margin: 0 auto 15px auto;
    height: 60px !important;
  }
  .content p {
    font-size: 14px;
    margin: 10px 0;
    text-align: justify;
    padding: 0 10px;
  }

  #footer {
    text-align: center;
    padding: 30px 10px;
  }

  #footer .footer-top .row {
    flex-direction: column;
    gap: 25px;
  }

  #footer .col-lg-2,
  #footer .col-lg-3,
  #footer .col-lg-4 {
    width: 100%;
    text-align: center;
  }

  #footer img {
    margin: 0 auto;
  }

  #footer ul {
    padding-left: 0;
    list-style: none;
  }

  #footer ul li {
    margin-bottom: 8px;
  }

  .navmenu ul {
    text-align: center;
  }

  .navmenu ul li {
    margin: 10px 0;
  }

  #hero {
    text-align: center;
    padding-top: 100px !important;
  }

  .cert-images img {
    height: 60px !important;
    margin: 10px;
  }

  .blogsubtitle {
    font-size: 16px;
    text-align: center;
  }
}

@media (max-width: 768px) {

  img[src*="ffplogo.png"] {
    display: block;
    height: 88px !important;
    margin: 12px auto !important;
  }

  img[src*="QVlogo.png"] {
    display: block;
    height: 110px !important;
    margin: 8px auto !important;
    margin-top: -70px !important;
  }

  img[src*="AVSdashboard.png"] {
    width: 100% !important;
    height: auto !important;
    margin: 12px 0 !important;
  }

  img[src*="seqlogo.png"] {
    display: block;
    height: 92px !important;
    margin: 10px auto !important;
  }

  section.about {
    display: block;
    width: 100%;
  }

  .section-title { margin-left: 0 !important; padding: 0 10px; }
}

@media (max-width: 768px) {
  /* Make rows stack naturally */
  .row.align-items-center {
    flex-direction: column !important;
  }

  /* Move ffplogo above images */
  .col-lg-6:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .col-lg-6:last-child img[src*="ffplogo.png"] {
    order: -2; /* push it to the top */
    display: block;
    height: 85px !important;
    margin: 0 auto 15px auto !important;
  }

  /* Optional: add spacing for images */
  .image-wrapper {
    order: -1;
    margin-top: 10px;
  }

  .image-wrapper img {
    width: 100% !important;
    height: auto !important;
    margin: 10px 0;
  }

  .overlay-image {
    display: none; /* optional if it clutters mobile */
  }
}

@media (max-width: 768px) {
  .pads {
    padding: 40px !important;
  }
}