/* MOBILE VIEW ONLY */
@media (max-width: 767px) {

  .fancybox-layout5 {
    padding: 20px 0 !important;
  }

  .fancybox-item {
    margin-bottom: 20px;
  }

  .fancybox-body {
    padding: 20px 18px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    text-align: center;
    position: relative;
  }

  .fancybox-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .fancybox-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
  }

  .fancybox-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto;
    border-radius: 50%;
    background: #17a35b;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fancybox-icon i {
    font-size: 22px;
    color: #fff;
  }

  /* Bottom paragraph */
  .fancybox-layout5 .row:last-child p {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px !important;
    margin-top: 10px;
  }

}


@media (max-width: 767px) {
  .service-item .service-desc {
    display: block;
    width: fit-content;
    margin: 10px auto 14px;
    text-align: center;
  }
}


/* ===== MOBILE FIX FOR BANNER ===== */
@media (max-width: 767px) {

  .banner-layout3 {
    padding: 40px 0 50px !important;
  }

  /* LEFT CONTENT */
  .banner-layout3 .pt-130 {
    padding-top: 0 !important;
  }

  .heading-layout2 {
    margin-bottom: 25px !important;
    text-align: center;
     padding: 0 10px;
  }

  .heading-subtitle {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .heading-title {
    font-size: 22px;
    line-height: 1.3;
  }

  /* FORM */
  .contact-panel-form {
    padding: 18px;
    border-radius: 16px;
    background: #0d317f;
    backdrop-filter: blur(8px);
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .form-control {
    height: 42px;
    font-size: 14px;
    border-radius: 10px;
    padding: 8px 12px;
  }

  select.form-control {
    height: 42px;
  }

  /* BUTTON */
  .btn-xhight {
    height: 48px;
    font-size: 14px;
    border-radius: 12px;
  }

  .btn span {
    font-size: 14px;
  }

  /* RIGHT SIDE */
  .banner-layout3 .col-lg-5 {
    margin-top: 30px;
    text-align: center;
  }

  .banner-img img {
    width: 100%;
    border-radius: 16px;
  }

  .banner-layout3 p {
    font-size: 14px;
    line-height: 1.6;
    margin: 15px auto 20px;
    padding: 0 10px;
  }

  /* HIDE ICON (NOT NEEDED ON MOBILE) */
  .banner-icon {
    display: none !important;
  }

}

/* ===== MOBILE CLEAN FIX (SPACING FIRST) ===== */
@media (max-width: 767px) {

  /* SECTION SPACING */
  .about-layout2 {
    padding: 40px 0 !important;
  }

  .about-layout2 .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ROW STACK */
  .about-layout2 .row {
    margin: 0;
  }

  /* IMAGE BLOCK */
  .about-img {
    margin-bottom: 20px;
  }

  .about-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* FEATURE BOXES (TOP) */
  .features-list-layout4 {
    margin: 0 0 20px 0;
    padding: 0;
  }

  .features-list-layout4 .feature-item {
    margin-bottom: 10px;
  }

  .feature-item-inner {
    padding: 12px 14px;
  }

  /* RIGHT CONTENT SPACING */
  .about-text {
    margin-top: 40px;
    padding: 0;
  }

  /* HEADING */
  .heading-layout2 {
    margin-bottom: 15px;
  }

  .heading-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 10px !important;
  }

  .heading-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px !important;
  }

  /* CHECK LIST */
  .features-list-layout2 {
    margin-bottom: 20px;
  }

  .features-list-layout2 .feature-item {
    margin-bottom: 8px;
  }

  .features-list-layout2 .feature-title {
    font-size: 14px;
  }

  /* NOTE BOX */
  .note {
    margin-top: 10px;
    gap: 8px;
  }

  .note-text {
    font-size: 14px;
    line-height: 1.6;
  }

  /* IMPORTANT: PREVENT SIDE CUT */
  .heading-title,
  .heading-desc,
  .note-text {
    padding-left: 2px;
    padding-right: 2px;
    word-break: break-word;
  }

}


/* ===== MOBILE CLEAN FIX ===== */
@media (max-width: 767px) {

  /* SECTION SPACING */
  section.pt-80.pb-80 {
    padding: 40px 0 !important;
  }

  /* CONTAINER SAFE PADDING */
  section.pt-80.pb-80 .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* HEADING */
  section.pt-80.pb-80 h2 {
    font-size: 30px;
    margin-bottom: 8px;
  }

  section.pt-80.pb-80 p.text-muted {
    font-size: 14px;
    line-height: 1.5;
    padding: 0 5px;
  }

  /* REMOVE EXTRA GAP */
  .row.mb-50 {
    margin-bottom: 25px !important;
  }

  /* FORCE FULL WIDTH CARDS */
  section.pt-80.pb-80 [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* CARD SPACING */
  section.pt-80.pb-80 .mb-30 {
    margin-bottom: 15px !important;
  }

  /* CARD DESIGN ALIGNMENT */
  section.pt-80.pb-80 .p-4 {
    padding: 18px !important;
    text-align: center;
  }

  /* ICON */
  .promise-icon img {
    max-width: 100px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* CARD TITLE */
  section.pt-80.pb-80 h5 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  /* CARD TEXT */
  section.pt-80.pb-80 .text-muted {
    font-size: 13px;
    line-height: 1.6;
  }

}