
/* ===== Mobile-first patch — appended for maximum mobile users (safe overrides only) ===== */
html, body { overflow-x: hidden; }
img, iframe, video, table { max-width: 100%; }
.shop-grid > *, .problem-grid > *, .treat-grid > *, .blog-grid > *,
.foot-grid > *, .pd-grid > *, .contact-grid > *, .co-grid > * { min-width: 0; }

@media (max-width: 980px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
}

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; }
  .treat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section { padding: 44px 0; }
  .nav { padding: 12px 16px; }
  .brand-text .name { font-size: 16px; }
  .hero { padding: 36px 0 0; }
  .hero h1 { font-size: 27px; line-height: 1.35; }
  .hero p.desc { font-size: 15px; margin-top: 14px; }
  .trust-row { gap: 12px; margin-top: 20px; }
  .hero-cta { margin-top: 22px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .photo-card { aspect-ratio: 4/4.4; max-height: 480px; }
  .sec-head { margin-bottom: 26px; }
  .sec-head h2 { font-size: 22px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .problem-card { padding: 16px 13px; }
  .problem-card h3 { font-size: 13.5px; }
  .problem-card p.problem-desc { font-size: 12px; }
  .pd-page { padding: 36px 0 12px; }
  .pd-cta .btn { flex: 1 1 100%; justify-content: center; }
  .contact-grid { gap: 20px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .band { padding: 30px 20px; }
  .foot-grid { gap: 26px; padding-bottom: 28px; }
  /* ebook.php inline-style sections — compact on phones */
  .tpp-ebook section { padding-left: 16px !important; padding-right: 16px !important; }
  .tpp-ebook header { padding-left: 16px !important; padding-right: 16px !important; }
}

@media (max-width: 380px) {
  .brand-text .tag { display: none; }
  .brand-text .name { font-size: 15px; }
  .problem-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 13px 20px; font-size: 15px; }
}

/* ===== Blog image full-visible fix — image katbe na (contain) ===== */
.blog-photo { display: flex; align-items: center; justify-content: center; }
.blog-photo img { object-fit: contain !important; }
.article-cover { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.article-cover img { object-fit: contain !important; }


/* ===== Problems section ("সমস্যার সমাধান") bigger on mobile ===== */
@media (max-width: 560px) {
  #services .sec-head h2 { font-size: 24px; }
  .problem-grid { grid-template-columns: 1fr; gap: 14px; }
  .problem-card { padding: 20px 18px; }
  .problem-card .ic { width: 46px; height: 46px; font-size: 21px; margin-bottom: 12px; }
  .problem-card h3 { font-size: 16px; margin-bottom: 8px; }
  .problem-card p.problem-desc { font-size: 13.5px; -webkit-line-clamp: 4; }
  .problem-card .more { font-size: 13px; }
}


/* ===== Problems section back to 2-per-row on mobile (as before) ===== */
@media (max-width: 560px) {
  #services .sec-head h2 { font-size: 22px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .problem-card { padding: 16px 13px; }
  .problem-card .ic { width: 42px; height: 42px; font-size: 19px; margin-bottom: 14px; }
  .problem-card h3 { font-size: 13.5px; margin-bottom: 8px; }
  .problem-card p.problem-desc { font-size: 12px; -webkit-line-clamp: 3; }
  .problem-card .more { font-size: 12px; }
}

