:root {
  --primary: #b18a1f;
  --primary-dark: #101f35;
  --dark: #101827;
  --bg-light: #f4f7fb;
  --white: #ffffff;
  --gold: #d4a72c;
  --border: #dce5ef;
  --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; }

/* 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; }
.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; }

.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--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, #fff0f3, #fce4ec 50%, #d89aa5);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  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, .cpill-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.cpill-icon svg { width: 18px; height: 18px; }
.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: #fff0f3; 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: #fdf0f3; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sc-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.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: #fff8f9; 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; }
.cf { display: flex; gap: 14px; background: #fff; padding: 12px; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--border); }
.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; }
#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: #fce4ec; 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; }
.chat-body { height: 270px; }
.chat-quick-replies { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 10px; }
.chat-quick-replies button { border: 1px solid var(--border); background: #fff; color: var(--primary-dark); border-radius: 16px; padding: 5px 9px; font-size: 12px; cursor: pointer; }

/* অ্যাডমিন মোডাল ও এডিটর */
.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: #fff8f9; 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: #fff5f7; border: 1px solid var(--border); padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; }

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

.mobile-header-controls, .mobile-menu-drawer { display: none; }

@media(max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  nav { padding: 8px 12px; }
  .nav-inner { min-width: 0; }
  .logo { min-width: 0; font-size: 16px; gap: 5px; }
  .logo-mark { display: inline-flex; align-items: center; }
  .mobile-header-controls { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
  .mobile-wa-btn, .mobile-menu-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; }
  .mobile-wa-btn { background: #25d366; color: #fff; font-size: 20px; }
  .mobile-order-btn { height: 38px; padding: 0 9px; border: none; border-radius: 19px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .mobile-menu-btn { border: 1px solid var(--border); background: #fff; color: var(--primary-dark); font-size: 21px; line-height: 1; cursor: pointer; }
  .mobile-menu-drawer { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% - 1px); background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 24px rgba(16,31,53,0.16); padding: 8px; z-index: 101; }
  .mobile-menu-drawer.open { display: block; }
  .mobile-menu-drawer a { display: block; padding: 10px 12px; color: var(--primary-dark); border-radius: 7px; font-size: 14px; }
  .mobile-menu-drawer a:hover, .mobile-menu-drawer a:focus { background: #f4f7fb; }
  .clinic-grid, .appt-inn { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; }
}
