/* -------------------- BASE CONTAINERS -------------------- */
.container,
.blog-wide-section {
  max-width: 1700px !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

/* -------------------- BLOG BOX -------------------- */
.blog-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  min-height: 550px;
  width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.blog-image {
  width: 100%;
  height: 50%;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.blog-box:hover .blog-image img {
  transform: scale(1.05);
}

/* -------------------- SMALL BOX -------------------- */
.blog-small-box {
  position: absolute;
  top: 40%;
  left: 10%;
  width: 80%;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.blog-small-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.blog-small-box p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* -------------------- READ MORE BUTTON -------------------- */
.blog-readmore {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
  margin-left: auto;
  margin-top: 12px;
}

.blog-readmore:hover {
  background: #c0392b;
}

/* -------------------- CATEGORIES BOX -------------------- */
.blog-categories-box {
  background: #fff !important;
  border: 1px solid #e9e9e9 !important;
  border-radius: 14px;
  padding: 26px 22px;
  width: 100%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: .3s;
}

.blog-categories-box:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.blog-categories-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  border-bottom: 3px solid #e74c3c;
  padding-bottom: 6px;
  text-transform: uppercase;
}

.blog-categories-box ul {
  list-style: none;
  padding: 0;
}

.blog-categories-box ul li {
  margin: 12px 0;
}

.blog-categories-box ul li a {
  font-size: 15px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  position: relative;
  transition: .25s;
}

.blog-categories-box ul li a:hover {
  color: #e74c3c;
  transform: translateX(5px);
}

.blog-categories-box ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0;
  background: #e74c3c;
  transition: .25s;
}

.blog-categories-box ul li a:hover::after {
  width: 100%;
}

/* -------------------- FORM SECTION -------------------- */
.EnquiryHT {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.EnquiryT {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

.blog-form-section input,
.blog-form-section textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.blog-form-section button,
.blog-form-section input[type="submit"] {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 14px 25px;
  border-radius: 10px;
  transition: .3s;
}

.blog-form-section button:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* -------------------- GRID & LAYOUT -------------------- */
.col-xl-6.col-lg-7.col-md-12,
.col-xl-3.col-lg-4.col-md-12,
.col-xl-4.col-lg-4.col-md-6.col-sm-12 {
  display: flex;
  justify-content: center;
}

.col-xl-6.col-lg-7.col-md-12 {
  align-items: center;
  flex-direction: column;
}

.right-form-column {
  align-items: flex-start;
  margin-top: 8% !important;
}

/* -------------------- HEADINGS -------------------- */
.pbmit-heading-subheading.style-3.head-marg-bot.text-center {
  width: 100%;
  max-width: 700px;
  margin: 120px auto 50px auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.pbmit-heading-subheading .pbmit-title {
  font-size: 36px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.pbmit-heading-subheading .inn-head {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   💻 DESKTOP (≥1201px)
   ============================================================ */
@media (min-width: 1201px) {
  .col-xl-4.col-lg-4.col-md-6.col-sm-12 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* ============================================================
   📲 TABLETS (744px – 1200px) — iPad Mini, Air, Pro
   ============================================================ */
@media only screen and (min-width: 744px) and (max-width: 1200px) {
  .col-xl-4.col-lg-4.col-md-6.col-sm-12 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 24px !important;
  }

  .col-xl-6.col-lg-7.col-md-12 { order: 1 !important; width: 100% !important; }
  .col-xl-3.col-lg-4.col-md-12 { order: 2 !important; margin-top: 40px !important; width: 100% !important; }
  .right-form-column { order: 3 !important; margin-top: 40px !important; width: 100% !important; }

  .blog-box {
    min-height: 480px !important;
    margin-bottom: 30px !important;
  }

  .blog-small-box {
    position: relative !important;
    width: 100% !important;
    margin-top: 14px !important;
    box-shadow: none !important;
  }

  .blog-readmore {
    display: inline-block !important;
    width: auto !important;
    text-align: left !important;
    margin-top: 12px !important;
    padding: 8px 16px !important;
  }

  .pbmit-heading-subheading .pbmit-title {
    font-size: 32px;
  }

  .pbmit-heading-subheading .inn-head {
    font-size: 17px;
  }
}

/* ============================================================
   📱 MOBILES (<744px)
   ============================================================ */
@media (max-width: 744px) {
  .col-xl-4.col-lg-4.col-md-6.col-sm-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .row {
    display: flex !important;
    flex-direction: column !important;
  }

  .col-xl-6.col-lg-7.col-md-12 { order: 1 !important; }
  .col-xl-3.col-lg-4.col-md-12 { order: 2 !important; margin-top: 25px !important; }
  .right-form-column { order: 3 !important; margin-top: 25px !important; }

  .blog-box {
    min-height: auto;
    margin-bottom: 30px;
  }

  .blog-image {
    height: 250px;
  }

  .blog-small-box {
    position: relative !important;
    width: 100% !important;
    margin-top: 12px !important;
    box-shadow: none !important;
  }

  .blog-readmore {
    display: inline-block !important;
    width: auto !important;
    text-align: left !important;
    margin-left: auto !important;
    margin-top: 12px !important;
    padding: 8px 16px !important;
  }

  .pbmit-heading-subheading .pbmit-title {
    font-size: 28px;
  }

  .pbmit-heading-subheading .inn-head {
    font-size: 16px;
  }
}

/* ============================================================
   📞 EXTRA SMALL PHONES (<576px)
   ============================================================ */
@media (max-width: 576px) {
  .blog-small-box h3 { font-size: 18px; }
  .blog-small-box p { font-size: 13px; }

  .blog-readmore {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  .pbmit-heading-subheading {
    padding: 0 10px;
  }
}

/* ============================================================
   🧭 FIX: Prevent heading overlap when hamburger menu opens
   ============================================================ */
@media (max-width: 1024px) {
  /* Make sure the open menu overlays everything */
  .mobile-menu,
  .navbar-collapse,
  .nav-menu,
  .offcanvas,
  .menu-wrapper {
    position: relative;
    z-index: 9999 !important;
  }

  /* Keep header below menu layer */
  header,
  .site-header,
  .navbar {
    position: relative;
    z-index: 99 !important;
  }

  /* Push content (headings, banners, etc.) below nav height */
  .pbmit-heading-subheading.style-3.head-marg-bot.text-center,
  .header-section,
  .blog-wide-section {
    margin-top: 100px !important; /* adjust if still overlapping */
    position: relative;
    z-index: 1;
  }

  /* Prevent text visibility through overlay background */
  body.menu-open .pbmit-heading-subheading,
  body.menu-open .header-section {
    opacity: 0.3; /* optional subtle fade effect under menu */
    pointer-events: none;
  }
}
/* ============================
   🧾 ALIGN CATEGORY & READ MORE
   ============================ */
.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ✅ same vertical level */
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

.blog-category {
  position: relative;
  display: inline-block;
  padding-bottom: 6px; /* space between text & underline */
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.blog-category::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e74c3c;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.blog-category:hover::after {
  width: 100%;
}

.blog-readmore {
  background: #e74c3c;
  color: #fff;
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap;
}

.blog-readmore:hover {
  background: #c0392b;
}

/* ============================================================
   💻 DESKTOP (≥1025px)
   ============================================================ */
@media (min-width: 1025px) {
  .blog-footer {
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
  }

  .blog-category {
    font-size: 15px;
  }
}

/* ============================================================
   📲 TABLETS (744px – 1024px)
   ============================================================ */
@media (min-width: 744px) and (max-width: 1024px) {
  .blog-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .blog-category {
    font-size: 14px;
  }

  .blog-readmore {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* ============================================================
   📱 MOBILES (<744px)
   ============================================================ */
@media (max-width: 743px) {
  .blog-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .blog-category {
    font-size: 13px;
    padding-bottom: 4px;
  }

  .blog-readmore {
    font-size: 13px;
    padding: 6px 14px;
  }
}

/* ============================================================
   📞 EXTRA SMALL PHONES (<480px)
   ============================================================ */
@media (max-width: 480px) {
  .blog-footer {
    flex-direction: column; /* stack neatly */
    align-items: flex-start;
    gap: 8px;
  }

  .blog-readmore {
    align-self: flex-end;
  }
}

/* ============================================================
   🩵 FIX: Blog title & content visibility on small screens
   ============================================================ */

@media only screen and (max-width: 991px) {
  .blog-small-box {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    width: 100% !important;
    margin-top: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 18px !important;
  }

  .blog-box {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }

  .blog-image {
    width: 100% !important;
    height: auto !important;
    max-height: 240px !important;
  }

  .blog-image img {
    object-fit: cover !important;
    height: 100% !important;
    width: 100% !important;
  }

  .blog-small-box h3 {
    font-size: 18px !important;
    line-height: 1.4 !important;
  }

  .blog-small-box p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #555 !important;
  }
}

/* ============================================================
   💻 TABLET LANDSCAPE (1024px–1366px)
   ============================================================ */
@media only screen and (min-width: 1024px) and (max-width: 1366px) {
  /* Fix overall layout */
  .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  /* Make blog boxes appear 2 per row */
  .col-xl-4.col-lg-4.col-md-6.col-sm-12 {
    flex: 0 0 45% !important;
    max-width: 45% !important;
  }

  /* Adjust blog card proportions */
  .blog-box {
    min-height: 500px !important;
    width: 100% !important;
  }

  .blog-image {
    height: 260px !important;
  }

  .blog-small-box {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    margin-top: 15px !important;
  }

  .blog-small-box h3 {
    font-size: 20px !important;
  }

  .blog-small-box p {
    font-size: 15px !important;
  }

  /* Adjust footer for balance */
  .blog-footer {
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Reduce title and subtitle spacing */
  .pbmit-heading-subheading .pbmit-title {
    font-size: 32px !important;
  }

  .pbmit-heading-subheading .inn-head {
    font-size: 17px !important;
  }

  /* Sidebar or form column */
  .right-form-column,
  .col-xl-3.col-lg-4.col-md-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-top: 40px !important;
  }
}
/* ============================================================
   📱 MOBILE FIX — Align category & Read More perfectly
   ============================================================ */
@media (max-width: 744px) {
  .blog-footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding-top: 8px !important;
  }

  .blog-category {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding-bottom: 4px !important;
    color: #333 !important;
    flex: 1 !important;
  }

  .blog-category::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px !important;
    height: 2px !important;
    background-color: #e74c3c !important;
    border-radius: 2px !important;
  }

  .blog-readmore {
    font-size: 13px !important;
    padding: 7px 14px !important;
    border-radius: 6px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
}
