/* =============================================
   SaudiJabo — হোমপেজ (index.php) — ভিডিও হিরো, সেবার সারি, ফ্রি টুল
   ============================================= */

/* ---------- হিরো ---------- */
.hv { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column;
      min-height: min(88vh, 780px); background: #10291f; }
.hv-media { position: absolute; inset: 0; }
.hv-poster, .hv-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-vid { opacity: 0; transition: opacity 1.1s ease; }
.hv-vid.on { opacity: 1; }
.hv-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(16,41,31,.92) 0%, rgba(16,41,31,.72) 42%, rgba(16,41,31,.25) 78%, rgba(16,41,31,.15) 100%),
    linear-gradient(to top, rgba(10,25,19,.85) 0%, rgba(10,25,19,0) 32%);
}
@media (max-width: 767px) {
  .hv-shade { background: linear-gradient(to top, rgba(10,25,19,.94) 0%, rgba(16,41,31,.78) 55%, rgba(16,41,31,.45) 100%); }
}
.hv-body { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.hv-text { max-width: 640px; min-width: 0; }
.hv-text .hero-h1 { text-shadow: 0 2px 18px rgba(0,0,0,.35); }

.hv-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hv-btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; font-weight: 700;
  padding: 13px 22px 11px; font-size: 16px; line-height: 1.2; transition: transform .15s, box-shadow .15s, background .15s;
}
.hv-btn:hover { transform: translateY(-1px); }
.hv-btn-wa { background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.hv-btn-ghost { border: 2px solid rgba(255,255,255,.8); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.hv-btn-ghost:hover { background: #fff; color: #1B4332; }

/* নিচের ক্যাপশন ও বিন্দু */
.hv-foot { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between;
           gap: 14px; padding-bottom: 86px; }
.hv-cap { position: relative; min-height: 24px; flex: 1; min-width: 0; font-size: 14px; color: rgba(255,255,255,.88); }
.hv-cap-i { position: absolute; left: 0; bottom: 0; opacity: 0; transition: opacity .6s; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis; max-width: 100%; pointer-events: none; }
.hv-cap-i.on { opacity: 1; pointer-events: auto; }
.hv-cap-i b { color: #fff; }
.hv-cap-i a { color: #D4AF37; font-weight: 700; margin-left: 8px; }
.hv-ctrl { display: flex; align-items: center; gap: 10px; flex: none; }
.hv-dots { display: flex; gap: 6px; }
.hv-dot { width: 34px; height: 18px; display: flex; align-items: center; cursor: pointer; background: none; border: 0; padding: 0; }
.hv-dot i { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hv-dot i::after { content: ''; position: absolute; inset: 0; width: 0; background: #D4AF37; }
.hv-dot.on i::after { width: var(--p, 0%); }
.hv-dot.done i::after { width: 100%; }
.hv-pause { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); color: #fff;
            background: rgba(0,0,0,.25); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hv-pause .hv-i-play, .hv-pause.is-paused .hv-i-pause { display: none; }
.hv-pause.is-paused .hv-i-play { display: block; }
@media (max-width: 767px) {
  .hv { min-height: 92svh; }
  .hv-body { align-items: flex-end; padding-top: 90px; padding-bottom: 18px; }
  .hv-foot { flex-direction: column; align-items: flex-start; padding-bottom: 74px; }
  .hv-cap { width: 100%; font-size: 13px; }
  .hv-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- সেবার সারি (হিরোর উপরে খানিক উঠে থাকে) ---------- */
.hs { position: relative; z-index: 3; margin-top: -58px; }
.hs-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 640px)  { .hs-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .hs-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; } }
.hs-card {
  display: flex; flex-direction: column; gap: 3px; background: #fff; border-radius: 16px; padding: 14px 14px 12px;
  box-shadow: 0 10px 30px rgba(16,41,31,.14); border: 1px solid #eef2ef; min-width: 0; transition: transform .15s, box-shadow .15s;
}
.hs-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16,41,31,.2); }
.hs-ic { font-size: 26px; line-height: 1.1; }
.hs-t { font-weight: 700; color: #1B4332; font-size: 15.5px; line-height: 1.35; }
.hs-s { font-size: 12.5px; color: #6b7280; line-height: 1.4; }

/* ---------- ফ্রি টুল ---------- */
.ht { padding: 64px 0; background: linear-gradient(180deg, #f8fafc, #fff); }
.ht-wrap { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .ht-wrap { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: stretch; } }
.ht-map { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #10291f; color: #fff;
          box-shadow: 0 14px 34px rgba(16,41,31,.18); transition: transform .15s; }
.ht-map:hover { transform: translateY(-2px); }
.ht-map img { width: 100%; height: auto; display: block; background: #f0f9ff; }
.ht-map-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.ht-map-b strong { font-size: 19px; line-height: 1.35; }
.ht-map-b span { color: rgba(255,255,255,.8); font-size: 14.5px; line-height: 1.55; }
.ht-map-b em { font-style: normal; color: #D4AF37; font-weight: 700; }
.ht-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-content: start; }
.ht-card { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
           padding: 13px 12px 11px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.ht-card:hover { border-color: #16a34a; box-shadow: 0 6px 18px rgba(22,163,74,.12); }
.ht-ic { font-size: 24px; line-height: 1.1; flex: none; }
.ht-card strong { display: block; color: #111827; font-size: 15px; line-height: 1.35; }
.ht-card small { display: block; color: #6b7280; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.ht-all { color: #1B4332; font-weight: 700; }

/* ---------- ব্লগের বিষয় ---------- */
.hb-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hb-chips a { border: 1px solid #d1d5db; border-radius: 999px; padding: 6px 14px 4px; font-size: 14px; color: #374151; background: #fff; }
.hb-chips a:hover { border-color: #1B4332; color: #1B4332; }

@media (prefers-reduced-motion: reduce) {
  .hv-vid, .hv-cap-i { transition: none; }
}
