/* तिवारी प्रज्ञा केंद्र – सरकारी पोर्टल जैसा रूप */
:root {
  --navy: #0a3278;
  --navy-dark: #061f4d;
  --saffron: #ff9933;
  --green: #138808;
  --green-deep: #0d6b06;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: #d5dbe3;
  --paper: #f3f5f8;
  --notice: #fff8e8;
}
html { scroll-padding-top: 52px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: "Mukta", "Hind Siliguri", "Noto Sans Devanagari", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  background: var(--paper);
  color: var(--ink);
}
a { color: var(--navy); }
h1, h2, h3, h4, h5 { font-weight: 700; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
img { max-width: 100%; }

.tricolor {
  height: 6px;
  background: linear-gradient(90deg, var(--saffron) 0 33.33%, #fff 33.33% 66.66%, var(--green) 66.66%);
  border-bottom: 1px solid #e4e7ee;
}

.utility-bar {
  background: var(--navy-dark);
  color: #e7eefb;
  font-size: .86rem;
  padding: .35rem 0;
}
.utility-bar a { color: #fff; text-decoration: none; }
.u-meta, .u-call { display: inline-flex; align-items: center; gap: .4rem; }
.u-call { font-weight: 700; }
.u-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--saffron); display: inline-block; }
.u-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.35); }
.lang-switch a { padding: 0 .55rem; font-weight: 700; line-height: 1.7; border-right: 1px solid rgba(255,255,255,.25); }
.lang-switch a:last-child { border-right: 0; }
.lang-switch a.active { background: #fff; color: var(--navy-dark); }

.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem 0;
}
.emblem-state { height: 78px; width: auto; }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}
.emblem-pk { height: 72px; width: auto; }
.kicker {
  display: block;
  color: var(--green-deep);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.shop-name {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  margin: 0;
  line-height: 1.15;
}
.shop-en { display: block; color: var(--muted); font-size: .92rem; font-weight: 600; }
.emblems-right {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.emblems-right img { height: 64px; width: auto; }
@media (max-width: 767.98px) {
  .emblem-state, .emblems-right { display: none; }
  .emblem-pk { height: 58px; }
}

.navbar-csc { background: var(--navy); padding: 0; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.navbar-csc .navbar-brand { color: #fff; font-weight: 700; font-size: 1rem; }
.navbar-csc .nav-link {
  color: #fff;
  font-weight: 650;
  padding: .7rem .95rem;
  border-bottom: 3px solid transparent;
}
.navbar-csc .nav-link:hover,
.navbar-csc .nav-link:focus {
  color: #fff;
  background: var(--navy-dark);
  border-bottom-color: var(--saffron);
}
.navbar-csc .navbar-toggler { border-color: rgba(255,255,255,.55); margin: .4rem 0; }
.nav-phone {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.55);
  padding: .28rem .7rem;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--navy-dark); background: #fff; }

.ticker {
  background: var(--notice);
  border-bottom: 1px solid #f0ddb0;
  font-size: .92rem;
  padding: .4rem 0;
}
.ticker .tag {
  background: var(--saffron);
  color: #1c1408;
  font-weight: 800;
  padding: .05rem .55rem;
  white-space: nowrap;
  font-size: .78rem;
}
.ticker .roll { overflow: hidden; white-space: nowrap; min-width: 0; flex: 1; }
.ticker .roll span { display: inline-block; padding-left: 100%; animation: ticker-roll 42s linear infinite; }
.ticker .roll:hover span { animation-play-state: paused; }
@keyframes ticker-roll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker .roll { white-space: normal; }
  .ticker .roll span { animation: none; padding-left: 0; }
}

.banner-frame {
  background: #e8eef8;
  border-bottom: 1px solid var(--line);
}
.banner-frame img {
  width: 100%;
  height: clamp(150px, 26vw, 250px);
  object-fit: contain;
  object-position: center;
  background: #f7f9fd;
}
.banner-frame .carousel-control-prev,
.banner-frame .carousel-control-next { width: 7%; }
.banner-frame .carousel-indicators [data-bs-target] { background-color: var(--navy); }

.intro {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hero-title {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.3;
  margin: .2rem 0 .6rem;
}
.hero-title em { font-style: normal; color: var(--green-deep); }
.find-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--saffron);
  padding: 1rem 1.05rem 1.1rem;
}
.find-card h2 { font-size: 1.15rem; color: var(--navy); margin-bottom: .25rem; }
.find-card .form-control { border-radius: 0; border-color: #b7c2d4; }
.find-card .form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 .15rem rgba(10,50,120,.15); }
.btn-gov, .btn-gov-green, .btn-gov-line {
  font-weight: 700;
  border-radius: 0;
  padding: .5rem 1rem;
  border: 2px solid var(--navy);
}
.btn-gov { background: var(--navy); color: #fff; }
.btn-gov:hover { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); }
.btn-gov-line { background: #fff; color: var(--navy); }
.btn-gov-line:hover { background: #eef3fb; color: var(--navy); }
.btn-gov-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-gov-green:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.chip {
  font-size: .84rem;
  font-weight: 650;
  padding: .15rem .6rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy-dark);
  text-decoration: none;
  display: inline-block;
}
.chip:hover { border-color: var(--navy); background: #e7eefb; }

.sec-title { display: flex; align-items: center; gap: .75rem; margin-bottom: .35rem; }
.sec-title::before {
  content: "";
  width: 6px;
  height: 32px;
  flex: none;
  background: linear-gradient(var(--saffron) 0 33%, #fff 33% 66%, var(--green) 66%);
  border: 1px solid var(--line);
}
.sec-title h2 { margin: 0; font-weight: 800; color: var(--navy-dark); font-size: clamp(1.35rem, 2.5vw, 1.75rem); }

.svc-card { border-color: var(--line); border-radius: 0; background: #fff; }
.svc-card:hover { border-color: #9aafd0; }
.svc-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: #e7eefb; color: var(--navy); }
.svc-icon.green { background: #e5f6e4; color: var(--green-deep); }
.svc-icon.saffron { background: #fff1df; color: #c56a00; }
.svc-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-en { color: var(--muted); font-size: .86rem; }
.svc-list { padding-left: 1.15rem; margin-bottom: .45rem; font-size: .95rem; }
.svc-card details { border-top: 1px dashed var(--line); padding-top: .45rem; font-size: .92rem; }
.svc-card summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.svc-card .card-footer { background: #f7f9fc; font-size: .88rem; border-radius: 0; }

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 1.15rem 1.1rem 1.2rem;
  height: 100%;
}
.step-no {
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: .65rem;
}
.step-card h3 { color: var(--navy); font-size: 1.05rem; }

.about-photo {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border: 4px solid #fff;
  outline: 1px solid var(--line);
}
.owner-role {
  display: inline-block;
  background: #e7eefb;
  color: var(--navy);
  font-weight: 700;
  font-size: .8rem;
  padding: .15rem .6rem;
}
.why-item {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  padding: .4rem .6rem;
  font-size: .92rem;
}
.why-item i { color: var(--green-deep); margin-top: .2rem; }
.partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}
.partner-row img {
  height: 54px;
  width: auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  height: auto;
}
.panel-h {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: .55rem .9rem;
  font-size: 1.02rem;
}
.panel .table td { vertical-align: top; }
.hours-table td { padding: .45rem .7rem; }
.map-frame { height: 210px; border-top: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.gov-notice {
  background: var(--notice);
  border-top: 3px solid var(--saffron);
  border-bottom: 1px solid #f0ddb0;
}
.gov-notice p { margin: 0; padding: .75rem 0; font-size: .86rem; color: #3d3424; line-height: 1.55; }

.site-footer {
  background: var(--navy-dark);
  color: #d5def0;
  font-size: .94rem;
  padding: 2.2rem 0 0;
}
.site-footer a { color: #fff; }
.site-footer img { background: #fff; padding: 3px; }
.footer-kicker { color: #ffd7a8; font-size: .82rem; font-weight: 700; }
.footer-about { color: #c5d0e6; font-size: .9rem; }
.footer-title {
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .03em;
  border-bottom: 2px solid var(--saffron);
  display: inline-block;
  padding-bottom: .15rem;
  margin-bottom: .7rem;
}
.footer-links, .footer-facts, .portal-list { list-style: none; padding: 0; margin: 0; }
.footer-links li, .portal-list li { margin: .28rem 0; }
.footer-links a, .portal-list a { text-decoration: none; }
.footer-links a:hover, .portal-list a:hover { text-decoration: underline; }
.footer-facts li { display: flex; gap: .5rem; margin: .4rem 0; }
.footer-facts i { color: var(--saffron); margin-top: .25rem; width: 1rem; flex: none; }
.footer-bottom {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.18);
  padding: .75rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem;
  font-size: .84rem;
  color: #b7c4de;
}

.wa-float, .top-float {
  position: fixed;
  bottom: 16px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  z-index: 1040;
  text-decoration: none;
  font-size: 1.35rem;
}
.wa-float { left: 16px; background: #128c7e; }
.top-float { right: 16px; background: var(--navy); opacity: 0; visibility: hidden; }
.top-float.is-on { opacity: 1; visibility: visible; }
.wa-float:hover, .top-float:hover { color: #fff; }

.welcome-modal { border-radius: 0; border: 0; }
.welcome-modal .tricolor { height: 7px; }
.welcome-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 3px solid var(--line);
}
.welcome-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  text-align: left;
  padding: .75rem .9rem;
  font-size: .92rem;
}

/* =====================================================================
   Banner: slides fill the frame with a blurred copy of themselves
   ===================================================================== */
.banner-frame { background: #dce8f8; }
.banner-frame .carousel-item { position: relative; overflow: hidden; }
.banner-frame .carousel-item::before {
  content: ""; position: absolute; inset: -30px;
  background: var(--bg) center / cover no-repeat;
  filter: blur(24px) saturate(1.15); transform: scale(1.08);
}
.banner-frame .carousel-item img {
  position: relative; display: block; margin-inline: auto;
  width: auto; max-width: 100%;
  height: clamp(150px, 31vw, 380px);
  object-fit: contain; background: transparent;
}
.banner-frame .carousel-indicators { margin-bottom: .5rem; }
.banner-frame .carousel-indicators [data-bs-target] { width: 26px; height: 4px; border: 0; opacity: .55; }
.banner-frame .carousel-indicators .active { opacity: 1; background-color: var(--saffron); }
.banner-frame .carousel-control-prev-icon, .banner-frame .carousel-control-next-icon {
  background-color: rgba(10,50,120,.65); background-size: 55%; width: 2.4rem; height: 2.4rem; border-radius: 50%;
}

/* Skip link */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 2000; background: #fff; color: var(--navy); padding: .5rem .9rem; font-weight: 700; border: 2px solid var(--navy); }
.skip-link:focus { top: 8px; }

/* Owner photo with rotating tricolour ring */
.photo-ring { position: relative; width: 184px; height: 184px; margin-inline: auto; border-radius: 50%; padding: 5px; background: conic-gradient(var(--saffron), #fff, var(--green), var(--saffron)); }
.photo-ring-sm { width: 106px; height: 106px; padding: 4px; }
.photo-ring img { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; outline: 0; object-fit: cover; object-position: center 22%; background: #fff; display: block; }
.photo-ring-sm img { border-width: 3px; }

/* Card & control polish (works without animation too) */
.svc-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(6,31,77,.14); border-color: var(--navy); }
.svc-icon { transition: transform .3s ease, background-color .3s ease, color .3s ease; }
.svc-card:hover .svc-icon { transform: rotate(-6deg) scale(1.1); background: var(--navy); color: #fff; }
.step-card { transition: transform .25s ease, box-shadow .25s ease; }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(6,31,77,.12); }
.why-item { transition: border-color .2s ease, transform .2s ease; }
.why-item:hover { border-color: var(--green); transform: translateX(3px); }
.partner-row img { transition: transform .25s ease, box-shadow .25s ease; }
.partner-row img:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(6,31,77,.15); }
.chip { transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.chip:hover { transform: translateY(-2px); }
.panel { transition: box-shadow .25s ease; }
.panel:hover { box-shadow: 0 8px 22px rgba(6,31,77,.1); }

/* Buttons: light sweep on hover */
.btn-gov, .btn-gov-green, .btn-gov-line { position: relative; overflow: hidden; transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.btn-gov::after, .btn-gov-green::after, .btn-gov-line::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); pointer-events: none;
}
.btn-gov:hover, .btn-gov-green:hover, .btn-gov-line:hover { transform: translateY(-2px); }
.btn-gov:active, .btn-gov-green:active, .btn-gov-line:active { transform: translateY(0); }

/* Navigation underline */
.navbar-csc .nav-link { position: relative; border-bottom: 0; }
.navbar-csc .nav-link::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: 0; height: 3px; background: var(--saffron); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.navbar-csc .nav-link:hover::after, .navbar-csc .nav-link.active::after { transform: scaleX(1); }
.navbar-csc .nav-link:hover, .navbar-csc .nav-link.active { background: var(--navy-dark); border-bottom-color: transparent; }

/* Floating buttons */
.wa-float, .top-float { border-radius: 50%; box-shadow: 0 6px 16px rgba(0,0,0,.28); transition: transform .2s ease, opacity .3s ease, visibility .3s ease; }
.wa-float:hover, .top-float:hover { transform: translateY(-3px) scale(1.06); }
.top-float { transform: translateY(12px); }
.top-float.is-on { transform: none; }

/* =====================================================================
   Animations (all switched off for people who prefer reduced motion)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* page load */
  .tricolor { animation: wipe 1s ease-out both; transform-origin: left; }
  @keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .masthead .emblem, .emblems-right img { animation: pop .7s cubic-bezier(.2,.9,.3,1.3) both; }
  .emblem-pk { animation-delay: .1s !important; }
  .emblems-right img:nth-child(2) { animation-delay: .15s; }
  .shop-name { animation: fadeUp .7s .1s ease-out both; }
  .masthead .kicker, .masthead .shop-en { animation: fadeUp .7s .2s ease-out both; }
  @keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fadeRight { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
  .anim-up { animation: fadeUp .7s var(--d, 0s) ease-out both; }
  .anim-in-right { animation: fadeRight .8s .3s ease-out both; }

  /* green underline drawn under the highlighted words */
  .hero-title em { position: relative; display: inline-block; }
  .hero-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: linear-gradient(90deg, var(--saffron), var(--green)); transform: scaleX(0); transform-origin: left; animation: draw .9s 1s ease-out forwards; }
  @keyframes draw { to { transform: scaleX(1); } }

  /* banner slow zoom */
  .banner-frame .carousel-item.active img { animation: kenburns 9s ease-out both; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.05); } }

  /* button sweep */
  .btn-gov:hover::after, .btn-gov-green:hover::after, .btn-gov-line:hover::after { left: 130%; transition: left .6s ease; }

  /* scroll reveal (needs the small script in assets/js/site.js) */
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .sec-title[data-reveal]::before { transform: scaleY(0); transform-origin: top; transition: transform .6s .2s ease; }
  .js .sec-title[data-reveal].in::before { transform: scaleY(1); }
  .step-card .step-no { transition: transform .3s ease; }
  [data-reveal].in .step-no { animation: popNo .6s calc(var(--i, 0) * 90ms + .3s) cubic-bezier(.2,.9,.3,1.4) both; }
  @keyframes popNo { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }

  /* rotating ring around the owner photo */
  .photo-ring { animation: spin 14s linear infinite; }
  .photo-ring img { animation: spin 14s linear infinite reverse; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* WhatsApp button pulse */
  .wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #128c7e; z-index: -1; animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }

  /* welcome pop-up */
  .welcome-modal { animation: modalIn .5s ease-out both; }
  @keyframes modalIn { from { transform: translateY(24px) scale(.96); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card:hover, .step-card:hover, .chip:hover, .btn-gov:hover, .btn-gov-green:hover, .btn-gov-line:hover { transform: none; }
}
@media (max-width: 575.98px) {
  .photo-ring { width: 164px; height: 164px; }
  .wa-float { bottom: 14px; left: 14px; }
}

/* =====================================================================
   v3: पूरे पेज पर झारखण्ड सरकार का लोगो (पृष्ठभूमि), header की खोज, dropdown मेनू
   ===================================================================== */
body { background-color: var(--paper); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../images/logos/jharkhand-sarkar.png") center 58% / min(80vmin, 680px) no-repeat;
  opacity: .085;
}
.masthead { background: rgba(255,255,255,.92); }
.intro { background: rgba(255,255,255,.84); }
.bg-white { --bs-bg-opacity: .88; }
.svc-icon i { font-size: 1.3rem; }

/* header: नाम बाईं ओर, खोज दाईं ओर */
.header-search { display: flex; flex: 0 1 340px; min-width: 210px; border: 2px solid var(--navy); background: #fff; transition: box-shadow .2s ease; }
.header-search:focus-within { box-shadow: 0 0 0 .22rem rgba(10,50,120,.18); }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: .5rem .8rem; font: inherit; background: transparent; }
.header-search button { border: 0; background: var(--navy); color: #fff; width: 48px; font-size: 1rem; transition: background-color .2s ease; }
.header-search button:hover { background: var(--green-deep); }
@media (max-width: 767.98px) {
  .masthead-row { flex-wrap: wrap; }
  .header-search { flex: 1 1 100%; order: 3; }
}

/* मेनू: icon, dropdown, login / register */
.navbar-csc .nav-link i { margin-right: .3rem; color: var(--saffron); transition: transform .2s ease; }
.navbar-csc .nav-link:hover i { transform: translateY(-1px) scale(1.15); }
.navbar-csc .dropdown-menu {
  border: 0; border-top: 3px solid var(--saffron); border-radius: 0; padding: .3rem 0; min-width: 250px;
  box-shadow: 0 12px 26px rgba(6,31,77,.28);
}
.navbar-csc .dropdown-item { display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem; font-weight: 600; color: var(--ink); }
.navbar-csc .dropdown-item i { width: 1.2rem; text-align: center; color: var(--navy); }
.navbar-csc .dropdown-item:hover, .navbar-csc .dropdown-item:focus { background: #e7eefb; color: var(--navy-dark); }
.navbar-csc .dropdown-item:active { background: var(--navy); color: #fff; }
.navbar-csc .dropdown-toggle::after { margin-left: .4rem; }

@media (min-width: 992px) and (hover: hover) {
  .navbar-csc .dropdown:hover > .dropdown-menu { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .navbar-csc .dropdown-menu.show, .navbar-csc .dropdown:hover > .dropdown-menu { animation: ddIn .2s ease-out; }
  @keyframes ddIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* भीतरी पेजों का शीर्षक */
.page-head { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 1.3rem 0 1.5rem; border-bottom: 4px solid var(--saffron); }
.page-head::after { content: ""; position: absolute; right: -50px; top: -70px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,153,51,.28), transparent 70%); pointer-events: none; }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; margin: .35rem 0 0; }
.page-head h1 i { color: var(--saffron); margin-right: .4rem; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; padding: 0; margin: 0; font-size: .88rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .55; }
.crumbs a { color: #cfe0ff; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .page-head h1 { animation: fadeUp .6s ease-out both; }
  .crumbs { animation: fadeUp .5s ease-out both; }
}

/* पैनल, सूचियाँ, फ़ॉर्म */
.panel-h i { margin-right: .45rem; color: var(--saffron); }
.svc-link { color: inherit; text-decoration: none; }
.svc-link:hover { color: var(--navy); text-decoration: underline; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 1.7rem; margin: .45rem 0; }
.tick-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 0; color: var(--green-deep); }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; gap: .65rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list i { color: var(--green-deep); margin-top: .28rem; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; gap: .6rem; align-items: center; padding: .55rem 1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: background-color .2s ease, padding-left .2s ease; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { background: #eef3fb; padding-left: 1.3rem; color: var(--navy); }
.side-links i { width: 1.2rem; text-align: center; color: var(--navy); }
.policy h2 { font-size: 1.12rem; color: var(--navy); margin: 1.3rem 0 .4rem; display: flex; gap: .6rem; align-items: center; }
.policy h2:first-child { margin-top: 0; }
.pol-no { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; background: var(--navy); color: #fff; font-size: .85rem; }
.faq .accordion-item { border-radius: 0; border-color: var(--line); }
.faq .accordion-button { font-weight: 700; color: var(--navy); border-radius: 0 !important; }
.faq .accordion-button:not(.collapsed) { background: #eef3fb; color: var(--navy-dark); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(10,50,120,.18); }
.faq .accordion-button i { color: var(--saffron); }
.panel .form-control, .panel .form-select, .page-search .form-control, .page-search .input-group-text { border-radius: 0; border-color: #b7c2d4; }
.panel .form-control:focus, .panel .form-select:focus, .page-search .form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 .18rem rgba(10,50,120,.15); }

.page-search { max-width: 640px; }
.page-search .btn { border-radius: 0; }
.alert { border-radius: 0; }
.avatar { width: 84px; height: 84px; margin: 0 auto .8rem; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--green)); color: #fff; font-size: 2rem; font-weight: 800; display: grid; place-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nf-code { background: linear-gradient(90deg, var(--saffron), var(--navy), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.btn i { margin-right: .35rem; }

/* never allow sideways scroll */
html,body{overflow-x:clip;max-width:100%}
.footer-csc img,.partner-row img{max-width:100%}

.gal-item{border:1px solid var(--line);background:#fff;padding:4px;transition:transform .25s ease,box-shadow .25s ease}
.gal-item img{aspect-ratio:4/3;object-fit:cover;display:block}
.gal-item:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(6,31,77,.15)}

.stats-band{background:linear-gradient(135deg,var(--navy),#14407f);color:#fff}
.stat i{color:var(--saffron);font-size:1.4rem}
.stat-n{font-size:2.2rem;font-weight:800;line-height:1.1}
.stat-l{font-size:.9rem;opacity:.9}

/* =====================================================================
   v14: responsive guards – har screen par बिना खिसकाए फिट
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
p, li, td, th, h1, h2, h3, h4, h5, a, .navbar-brand { overflow-wrap: break-word; }
.map-frame { max-width: 100%; }
@media (min-width: 1600px) { .container { max-width: 1380px; } }
@media (max-width: 991.98px) {
  .site-footer .row > [class*="col-"] { text-align: left; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  h1 { font-size: calc(1.3rem + 1.2vw); }
  h2 { font-size: calc(1.15rem + .9vw); }
  .container { padding-left: 14px; padding-right: 14px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .25rem; }
  .top-float, .wa-float { transform: scale(.9); }
  .navbar-csc .dropdown-menu { min-width: 0; width: 100%; }
}
@media (max-width: 359.98px) { .navbar-csc .navbar-brand { font-size: .85rem; } .header-search { min-width: 0; } }

.visit-counter { display: inline-flex; align-items: center; gap: .4rem; color: #dbe5f7; }
.visit-counter i { color: var(--saffron); }
.visit-counter strong { color: #fff; font-variant-numeric: tabular-nums; }

/* v17: अभी खुला/बंद बैज, सेवा पर WhatsApp बटन, कॉलबैक फ़ॉर्म */
.shop-status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; white-space: nowrap; }
.ss-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa3b2; display: inline-block; flex: none; }
.shop-status.is-open .ss-dot { background: #2ecc40; box-shadow: 0 0 0 0 rgba(46,204,64,.6); animation: ssPulse 1.8s infinite; }
.shop-status.is-closed .ss-dot { background: #ff5a4d; }
.shop-status.is-open { color: #b8f5bf; }
.shop-status.is-closed { color: #ffd0cb; }
.shop-status.on-light.is-open { color: #0d6b06; }
.shop-status.on-light.is-closed { color: #b3261e; }
.shop-status.on-light { font-size: .9rem; }
@keyframes ssPulse { 70% { box-shadow: 0 0 0 7px rgba(46,204,64,0); } 100% { box-shadow: 0 0 0 0 rgba(46,204,64,0); } }
@media (prefers-reduced-motion: reduce) { .shop-status.is-open .ss-dot { animation: none; } }
.svc-card .card-footer .svc-wa { flex: 1 0 100%; }
.cb-kind { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cb-opt { cursor: pointer; margin: 0; }
.cb-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cb-opt span { display: flex; align-items: center; gap: .55rem; height: 100%; padding: .65rem .85rem; border: 1.5px solid var(--line); background: #fff; font-weight: 600; transition: border-color .15s, background-color .15s; }
.cb-opt input:checked + span { border-color: var(--navy); background: #eef3fb; color: var(--navy-dark); }
.cb-opt input:focus-visible + span { outline: 3px solid rgba(10,50,120,.35); outline-offset: 2px; }
@media (max-width: 575.98px) { .cb-kind { grid-template-columns: 1fr; } .utility-bar .shop-status { white-space: normal; } }

/* नेव में "मुझे कॉल करें" बटन + पॉप-अप */
.navbar-csc .nav-link.nav-callme { background: var(--saffron); color: var(--navy-dark); font-weight: 800; margin: .35rem 0 .35rem .5rem; padding: .45rem 1rem; border-radius: 4px; }
.navbar-csc .nav-link.nav-callme i { color: var(--navy-dark); }
.navbar-csc .nav-link.nav-callme:hover { background: #ffad55; color: var(--navy-dark); }
@media (max-width: 991.98px) { .navbar-csc .nav-link.nav-callme { margin: .4rem 0 .6rem; display: inline-block; } }
.cb-modal { border: 0; border-radius: 0; overflow: hidden; }
.cb-modal .modal-header { align-items: flex-start; border-bottom: 1px solid var(--line); background: #f7f9fd; }
.cb-modal .modal-title { color: var(--navy-dark); font-weight: 800; }

.navbar-csc .nav-link.nav-login { border: 1px solid rgba(255,255,255,.55); color: #fff; font-weight: 700; margin: .35rem 0 .35rem .5rem; padding: .4rem .9rem; border-radius: 4px; }
.navbar-csc .nav-link.nav-login:hover { background: #fff; color: var(--navy-dark); }
.navbar-csc .nav-link.nav-login:hover i { color: var(--navy-dark); }
@media (max-width: 991.98px) { .navbar-csc .nav-link.nav-login { margin: 0 0 .6rem; display: inline-block; } }

/* ===== v27: offers + fee calculator ===== */
.offer-card { position: relative; display: flex; flex-direction: column; gap: .7rem; background: #fff; border: 1px solid #dfe5ee; border-top: 4px solid var(--saffron, #ff9933); border-radius: 6px; padding: 1.2rem 1.25rem; box-shadow: 0 2px 8px rgba(10,50,120,.06); }
.offer-tag { align-self: flex-start; background: #fff3e3; color: #9a5200; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.offer-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy-dark); margin: 0; }
.offer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; flex: 1; font-size: .92rem; }
.offer-list li { display: flex; gap: .5rem; } .offer-list i { color: #138808; margin-top: .25rem; flex: none; }
.offer-price { display: flex; align-items: baseline; gap: .6rem; }
.offer-price strong { font-size: 1.7rem; color: var(--navy); font-weight: 800; line-height: 1; }
.offer-price s { color: #7b8794; font-size: 1rem; }
.offer-till { font-size: .82rem; color: #9a5200; }
.offer-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.calc-list { max-height: 480px; overflow-y: auto; }
.calc-group { background: #f3f5f8; font-weight: 700; font-size: .85rem; color: var(--navy-dark); padding: .45rem 1rem; position: sticky; top: 0; z-index: 1; }
.calc-row { display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem; border-bottom: 1px solid #eef1f5; margin: 0; cursor: pointer; }
.calc-row:hover { background: #f8fafd; }
.calc-row input { width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.calc-name { flex: 1; min-width: 0; font-size: .93rem; } .calc-name small { display: block; color: #6b7785; font-size: .78rem; }
.calc-price { font-weight: 700; white-space: nowrap; color: var(--navy-dark); } .calc-price em { font-weight: 400; color: #6b7785; font-size: .82rem; }
.calc-sum { position: sticky; top: 90px; }
.calc-total { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.15; margin: .25rem 0; }
.calc-ask { color: #9a5200; } .calc-gov { color: #6b7785; margin-top: .3rem; }
@media (max-width: 991.98px) { .calc-sum { position: static; } .calc-list { max-height: 380px; } }
