/* =====================================================================
   MOBILE VIEW FIXES  (phones only: max-width 767px)
   Source: "Mobile View – Changes required" document.
   Loaded AFTER app.min.css and the per-page <style> blocks, so desktop
   and tablet layouts are not affected.
   ===================================================================== */
@media (max-width: 767px) {

  /* ------------------------------------------------------------------
     1. LOGO + HEADER  — target header height ≈ 76px
     ------------------------------------------------------------------ */
  .main-menu__logo { padding: 10px 0 !important; }
  .main-menu__logo img {
    height: 56px !important;
    width: auto !important;
    max-width: 100% !important;
  }

   /* ------------------------------------------------------------------
     2. HERO BANNER - image + arrows + dots unchanged,
        text row below: title left, button right
        image 260px -> dots strip 34px -> text row 100px
     ------------------------------------------------------------------ */
  .hero-carousel { background: #fff !important; }

  .carousel-container {
    aspect-ratio: auto !important;
    height: 394px !important;               /* 260 + 34 + 100 */
    min-height: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .slides-track { height: 394px !important; }

  .slide {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    height: 394px !important;
    padding: 0 !important;
  }

  .slide-overlay { display: none !important; }

  /* ---------- image (same look as before) ---------- */
  .slide .slide-bg {
    order: 1;
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: 260px !important;
    flex: 0 0 260px;
    opacity: 1 !important;
  }
  .slide .slide-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 100% center !important;
  }

  /* ---------- arrows (centred on the image) ---------- */
  .carousel-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: .6rem !important;
    top: 130px !important;
    transform: translateY(-50%) !important;
  }

  /* ---------- dots directly under the image ---------- */
  .carousel-dots {
    top: 272px !important;
    bottom: auto !important;
  }

  /* ---------- text row below the dots ---------- */
  .slide > .container {
    order: 2;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 134px !important;
    padding: 34px 16px 0 !important;        /* 34px = dots strip */
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .slide-content {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    transform: none !important;
    text-align: left !important;
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title btn"
      "sub   btn";
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
  }

  .slide-content .slide-title {
    grid-area: title;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #12306b !important;
    margin: 0 !important;
  }
  .slide-content .slide-title br { display: none !important; }
  .slide-content .slide-title::after,
  .slide-content::before,
  .slide-content::after { display: none !important; }

  .slide-content .slide-subtitle {
    grid-area: sub;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #5a6577 !important;
    margin: 0 !important;
  }

  .slide-content .btn-quote {
    grid-area: btn;
    align-self: center;
    white-space: nowrap;
    font-size: 12px !important;
    padding: 10px 16px !important;
    gap: 6px !important;
    border: 1px solid rgba(16, 52, 116, .18) !important;
    box-shadow: 0 3px 10px rgba(16, 52, 116, .15) !important;
  }
}
