:root {
  --primary: #805633;
  --primary-dark: #57391f;
  --dark: #121316;
  --bg-light: #fffaf3;
  --white: #ffffff;
  --gold: #ffd700;
  --border: #e8dccb;
  --font: 'Hind Siliguri', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font); }
body { background: var(--bg-light); color: var(--dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }
#pixel-container { display: none !important; }

/* Topbar & Nav */
.topbar { background: var(--primary-dark); color: #fff; padding: 7px 16px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--gold); font-weight: bold; }
nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; padding: 12px 24px; }
.nav-inner { max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 700; color: var(--primary-dark); display: flex; gap: 8px; align-items: center; }
.logo-mark img { width: 30px; height: 30px; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name-primary { font-size: 19px; font-weight: 700; letter-spacing: 0.01em; }
.brand-name-secondary { align-self: flex-end; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 18px; list-style: none; align-items: center; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-right { display: flex; gap: 12px; align-items: center; }
.mobile-header-actions { display: none; }

.admin-hidden-btn { display: none; background: #27ae60; color: #fff; border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer; align-items: center; justify-content: center; }
.btn-wa { background: #25d366; color: #fff; padding: 8px 16px; border-radius: 20px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.btn-appt { background: var(--primary); color: #fff; padding: 8px 18px; border-radius: 20px; font-weight: 600; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }

/* ========================================================
   ইউটিউব ১৬:৯ সাইজ অটো-ফিট মাল্টি-ব্যানার (ক্রপ ছাড়া)
   ======================================================== */
.yt-banner-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .yt-banner-container {
    aspect-ratio: 16 / 9; /* মোবাইলে একদম পারফেক্ট ইউটিউব মাপ */
  }
}

.banner-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5ead8, #d9c09e 50%, #9b7047);
}
.banner-copy { position: absolute; z-index: 5; left: 10%; top: 50%; transform: translateY(-50%); color: #382516; }
.banner-copy h1 { font-size: clamp(24px, 4vw, 48px); line-height: 1.2; margin-bottom: 8px; }
.banner-copy p { font-size: clamp(15px, 2vw, 22px); }

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.banner-arrow:hover { background: rgba(0,0,0,0.8); }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.bdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.3s;
}
.bdot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 10px;
}

/* Category Pills */
.cats-row { display: flex; align-items: center; gap: 10px; padding: 18px 24px; max-width: 1200px; margin: auto; }
.cats-all-button { flex: 0 0 auto; }
.cats-marquee { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.cats-marquee::-webkit-scrollbar { display: none; }
.cats-marquee { scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cats-marquee-track { display: flex; width: max-content; animation: categories-marquee 38s linear infinite; }
.cats-marquee-group { display: flex; flex: 0 0 auto; gap: 10px; padding-right: 10px; }
.cats-marquee:hover .cats-marquee-track,
.cats-marquee:focus-within .cats-marquee-track { animation-play-state: paused; }
@keyframes categories-marquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.cpill { background: #fff; border: 1px solid var(--border); padding: 8px 18px; border-radius: 25px; cursor: pointer; font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.cats-row button.cpill { font-family: var(--font); font-size: 14px; }
.cpill img { width: 18px; height: 18px; object-fit: contain; }
.cpill.active, .cpill:hover { background: var(--primary); color: #fff; }

/* Services Grid & Photos */
section { padding: 48px 24px; max-width: 1200px; margin: auto; }
.sec-top { text-align: center; margin-bottom: 32px; }
.sec-tag { display: inline-block; background: #f3eadc; color: var(--primary); padding: 4px 14px; border-radius: 14px; font-size: 13px; font-weight: bold; margin-bottom: 8px; }

.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.sc { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 12px rgba(0,0,0,0.03); transition: transform 0.2s; }
.sc:hover { transform: translateY(-3px); }
.sc-img-wrap { width: 100%; height: 180px; background: #f3eadc; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sc-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.sc-img-wrap img.product-icon { width: 74px; height: 74px; object-fit: contain; }
.sc-img-placeholder { font-size: 40px; color: var(--primary); }
.sc-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.sc h3 { font-size: 17px; margin-bottom: 6px; color: var(--primary-dark); }
.sc-desc { font-size: 13px; color: #555; margin-bottom: 12px; }
.sc-price { background: #f8f2e9; padding: 10px; border-radius: 8px; font-size: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.sc-price strong { color: var(--primary-dark); font-size: 15px; display: block; }
.sc-order-note { display: block; line-height: 1.55; }
.services-empty { grid-column: 1 / -1; text-align: center; padding: 20px; color: #555; }

.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal-ready.reveal-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .cats-marquee { overflow-x: auto; }
  .cats-marquee-track { animation: none; }
  .reveal-ready { opacity: 1; transform: none; transition: none; }
}

/* Clinic, Video, Reviews, Map */
.clinic-grid, .appt-inn { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; }
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.intro-highlights { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px; color: var(--dark); background: linear-gradient(140deg, #f8f1e7, #ead7ba); border-radius: 12px; }
.intro-highlights h3 { color: var(--primary-dark); font-size: 20px; }
.intro-highlights p { color: #554632; font-size: 14px; }
.intro-highlights ul { list-style: none; display: grid; gap: 7px; margin-top: 3px; font-size: 13px; }
.intro-highlights li { display: flex; align-items: center; gap: 9px; }
.intro-highlights li i { width: 18px; color: var(--primary); }
.cf { display: flex; gap: 14px; background: #fff; padding: 12px; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--border); }
.feature-icon { width: 30px; height: 30px; object-fit: contain; flex: 0 0 30px; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rc { background: #fff; border: 1px solid var(--border); padding: 18px; border-radius: 12px; font-size: 14px; }
.map-card { background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--border); }
.map-card iframe { width: 100%; height: 260px; border-radius: 8px; border: none; }
.map-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.appt-form input, .appt-form select, .appt-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }

/* Footer */
footer { background: #121316; color: #aaa; padding: 30px 20px; font-size: 13px; margin-top: 40px; }
.foot-inn { max-width: 1200px; margin: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.fbot { text-align: center; border-top: 1px solid #222; margin-top: 20px; padding-top: 16px; }
.footer-logo-mark { width: 24px; height: 24px; vertical-align: middle; }
#footerAdminTrigger { cursor: pointer; user-select: none; transition: color 0.2s; }
#footerAdminTrigger:hover { color: #fff; }

/* 5-Second Chat */
#chat-launcher-btn { position: fixed; bottom: 20px; right: 20px; background: var(--primary); color: #fff; border: none; border-radius: 30px; padding: 12px 20px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 1000; display: flex; align-items: center; gap: 8px; }
.chat-window { position: fixed; bottom: 75px; right: 20px; width: 330px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; z-index: 1001; border: 1px solid var(--border); }
.chat-header { background: var(--primary); color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.chat-status-dot { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; display: inline-block; margin-right: 4px; }
.chat-top-links { display: flex; gap: 10px; align-items: center; }
.chat-top-links a { color: #fff; background: rgba(255,255,255,0.2); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; }
.chat-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
.chat-body { padding: 12px; height: 200px; overflow-y: auto; font-size: 13px; }
.cmsg { background: #f3eadc; padding: 8px 12px; border-radius: 10px; margin-bottom: 6px; }
.cmsg.user { background: #eee; text-align: right; }
.chat-footer { display: flex; padding: 8px; border-top: 1px solid #eee; }
.chat-footer input { flex: 1; border: none; outline: none; padding: 6px; font-size: 13px; }
.chat-footer button { border: none; background: none; color: var(--primary); cursor: pointer; font-size: 16px; padding: 0 8px; }

/* অ্যাডমিন মোডাল ও এডিটর */
.admin-top-bar { position: fixed; top: 0; left: 0; right: 0; background: #121316; color: #fff; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; z-index: 10000; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.admin-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); display: flex; align-items: center; justify-content: center; z-index: 10001; padding: 15px; }
.admin-modal-box { background: #fff; width: 100%; max-width: 720px; max-height: 85vh; border-radius: 16px; overflow-y: auto; padding: 24px; }
.admin-row { display: grid; grid-template-columns: 1.5fr 2fr auto; gap: 10px; align-items: center; background: #f8f2e9; border: 1px solid var(--border); padding: 8px; border-radius: 8px; margin-bottom: 8px; }
.admin-row input, .admin-row textarea { padding: 6px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; }
.admin-btn { background: var(--primary); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: bold; }
.sec-toggle-row { display: flex; justify-content: space-between; align-items: center; background: #f8f2e9; border: 1px solid var(--border); padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; }

/* সরাসরি টেক্সট এডিট মোড আউটলাইন */
.admin-editable-active { outline: 2px dashed #e67e22 !important; cursor: text; }

@media(max-width: 768px) {
  nav { padding: 9px 12px; }
  .nav-inner { flex-wrap: wrap; gap: 10px; }
  .logo { min-width: 0; flex: 0 1 auto; gap: 6px; }
  .logo-mark img { width: 26px; height: 26px; }
  .brand-name { min-width: 0; }
  .brand-name-primary { font-size: clamp(11px, 3.2vw, 14px); }
  .brand-name-secondary { font-size: 11px; }
  .nav-links, .nav-right { display: none; }
  .mobile-header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }
  .mobile-wa-button, .mobile-menu-button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #fff; cursor: pointer; }
  .mobile-wa-button { background: #25d366; font-size: 19px; }
  .mobile-order-button { padding: 7px 8px; font-size: 12px; white-space: nowrap; }
  .mobile-menu-button { background: var(--primary-dark); font-size: 19px; line-height: 1; }
  .nav-links { order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 10px 4px; }
  nav.mobile-menu-open .nav-links { display: flex; }
  .intro-highlights { padding: 14px; gap: 4px; }
  .intro-highlights h3 { font-size: 17px; }
  .intro-highlights p, .intro-highlights ul { font-size: 12px; }
  .intro-highlights ul { gap: 4px; }
  .clinic-grid, .appt-inn { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; }
}