:root {
  --kf-ink: #1a1a1a;
  --kf-deep: #123524;
  --kf-mid: #123524;
  --kf-maroon: #6B1F1F;
  --kf-gold: #D4AF37;
  --kf-gold-soft: #F6E7B0;
  --kf-sand: #FFFDF7;
  --kf-mist: #F6E7B0;
  --kf-cream: #FFFDF7;
  --kf-white: #ffffff;
  --kf-muted: #5d6b64;
  --kf-radius: 18px;
  --kf-shadow: 0 18px 40px rgba(18, 53, 36, .12);
  --font-display: "Poppins", "Noto Sans Devanagari", "Tiro Devanagari Marathi", sans-serif;
  --font-ui: "Inter", "Noto Sans Devanagari", "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.kf-body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--kf-ink);
  background: var(--kf-cream);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .kf-display {
  font-family: var(--font-display);
  letter-spacing: .01em;
}

a { color: var(--kf-mid); transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--kf-gold); text-decoration: none; }

.kf-topbar {
  background: linear-gradient(90deg, #0f2a22, #1a4636 55%, #12342a);
  color: var(--kf-gold-soft);
  font-size: .85rem;
  padding: .45rem 0;
}

.kf-topbar a { color: #fff; opacity: .92; }
.kf-top-mantra { font-family: var(--font-display); }

.kf-nav {
  background: #0f2a22;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  padding: 0;
  min-height: 72px;
}

.kf-nav > .container {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.kf-nav .navbar-brand {
  margin-right: 1rem;
  padding: .55rem 0;
}

.kf-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.kf-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff8e7;
  border: 2px solid #c41e1e;
  flex-shrink: 0;
}

.kf-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  justify-content: center;
}

.kf-brand-text strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #fff;
  font-weight: 600;
}

.kf-brand-text small {
  color: var(--kf-gold-soft);
  font-size: .66rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.kf-nav .navbar-collapse { align-items: center; }
.kf-nav .navbar-nav { align-items: center; }
.kf-nav .nav-item { display: flex; align-items: center; }

.kf-nav .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 500;
  font-size: .92rem;
  line-height: 1;
  padding: .55rem .9rem !important;
  border-radius: 999px;
  margin: 0 .08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.kf-nav .nav-item.active > .nav-link,
.kf-nav .nav-link:hover,
.kf-nav .nav-link:focus {
  color: #fff !important;
  background: rgba(212, 160, 23, .2);
}

.kf-nav .navbar-toggler {
  border-color: rgba(255,255,255,.35);
  padding: .35rem .55rem;
}

.kf-drop {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--kf-shadow);
  margin-top: .45rem;
  padding: .4rem;
}

.kf-drop .dropdown-item {
  border-radius: 10px;
  font-size: .92rem;
  padding: .55rem .85rem;
}

.kf-drop .dropdown-item:hover {
  background: var(--kf-mist);
  color: var(--kf-deep);
}

.kf-main { min-height: 65vh; }

/* Home intro: slider + actions + stats as one composition */
.kf-home-intro {
  margin-bottom: .5rem;
}

.kf-home-banner {
  padding: 2.4rem 0 1.2rem;
}

.kf-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #10241c;
}

.kf-hero-slider {
  position: relative;
  width: 100%;
  height: 420px;
  line-height: 0;
  overflow: hidden;
  background: #10241c;
}

.kf-hero-slide {
  display: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}

.kf-hero-slide.is-active {
  display: block;
  opacity: 1;
  z-index: 1;
  position: relative;
}

.kf-hero-img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center center;
  background: #10241c;
}

.kf-hero-slide::after,
.kf-hero-banners .kf-hero-slide::after,
.kf-hero-content-banner,
.kf-banner-cta { display: none !important; }

/* Legacy home panel CTA hide — do NOT hide premium hero content */
.kf-home-intro > .kf-hero-content { display: none !important; }

.kf-home-panel {
  position: relative;
  z-index: 2;
  margin-top: -1.75rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid rgba(22, 53, 43, .08);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(20, 32, 27, .1);
  padding: 1.25rem 1.35rem 1.4rem;
}

.kf-home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(22, 53, 43, .08);
}

.kf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin: 1.15rem auto 1.35rem;
  text-align: center;
}

.kf-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.kf-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(15,42,34,.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}

.kf-slider-btn:hover {
  background: rgba(212,160,23,.9);
  color: #1a1404;
  transform: translateY(-50%) scale(1.05);
}

.kf-slider-prev { left: 14px; }
.kf-slider-next { right: 14px; }

.kf-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
}

.kf-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.kf-dot.is-active {
  width: 22px;
  background: var(--kf-gold);
}

.kf-about-visual {
  background: #fff;
  border-radius: var(--kf-radius);
  padding: 2rem;
  box-shadow: var(--kf-shadow);
  text-align: center;
  border: 1px solid rgba(22,53,43,.07);
}

.kf-about-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #c41e1e;
  background: #fff8e7;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(196,30,30,.2);
}

.kf-about-badge {
  display: inline-block;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--kf-mist);
  color: var(--kf-deep);
  font-family: var(--font-display);
}

.kf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .72rem 1.35rem;
  font-weight: 600;
  border: 0;
  line-height: 1.2;
  margin: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.kf-btn:hover { transform: translateY(-2px); text-decoration: none; }

.kf-btn-gold {
  background: linear-gradient(135deg, #e0b23a, #c48f0c);
  color: #1a1404 !important;
  box-shadow: 0 10px 24px rgba(196,143,12,.28);
}

.kf-btn-outline {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.45);
}

.kf-btn-outline-dark {
  background: #fff;
  color: var(--kf-deep) !important;
  border: 1px solid rgba(22, 53, 43, .16);
  box-shadow: 0 6px 16px rgba(20,32,27,.06);
}

.kf-btn-outline-dark:hover {
  background: var(--kf-mist);
  color: var(--kf-deep) !important;
}

.kf-btn-maroon {
  background: var(--kf-deep);
  color: #fff !important;
  border-radius: 6px;
  padding: .55rem 1.1rem;
  font-size: .88rem;
  box-shadow: 0 6px 14px rgba(22, 53, 43, .22);
}

.kf-btn-maroon:hover {
  background: var(--kf-mid);
  color: #fff !important;
}

/* Panchakrushna section */
.kf-pk-section {
  background: #fff;
  padding-top: 2.6rem;
  padding-bottom: 2.8rem;
}

.kf-pk-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.kf-pk-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--kf-ink);
  white-space: nowrap;
}

.kf-pk-line {
  flex: 1;
  height: 0;
  border-top: 2px dotted rgba(22, 53, 43, .28);
  max-width: 220px;
}

.kf-pk-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem;
}

.kf-pk-card {
  background: transparent;
  text-align: left;
}

.kf-pk-img-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: .4rem;
  margin-bottom: .85rem;
  box-shadow: 0 4px 14px rgba(20, 32, 27, .06);
}

.kf-pk-img-wrap img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
}

.kf-pk-card h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .45rem;
  color: #1f2937;
  line-height: 1.35;
}

.kf-pk-card p {
  color: #4b5563;
  font-size: .88rem;
  line-height: 1.55;
  margin: 0 0 .85rem;
  min-height: 4.6em;
}

.kf-pk-detail-title {
  position: relative;
  padding-left: .85rem;
  margin: 0 0 1.1rem;
  color: #1e4f91;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.45rem;
}

.kf-pk-detail-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  bottom: .15em;
  width: 5px;
  border-radius: 3px;
  background: #6b2438;
}

.kf-pk-detail-body {
  color: #334155;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.85;
  text-align: justify;
}

.kf-pk-sidebar {
  position: sticky;
  top: 92px;
}

.kf-pk-side-photo {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: .5rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 8px 22px rgba(20, 32, 27, .08);
}

.kf-pk-side-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: top center;
}

.kf-pk-related {
  background: #fff;
  border: 1px solid rgba(22, 53, 43, .08);
  border-radius: 12px;
  padding: 1rem 1rem .6rem;
}

.kf-pk-related h4 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .85rem;
  color: #1f2937;
}

.kf-pk-related li {
  margin-bottom: .65rem;
}

.kf-pk-related a {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #1f2937;
  text-decoration: none;
  padding: .35rem .4rem;
  border-radius: 10px;
  transition: background .2s ease;
}

.kf-pk-related a:hover,
.kf-pk-related li.is-active a {
  background: rgba(107, 36, 56, .08);
  color: #6b2438;
}

.kf-pk-related img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  flex-shrink: 0;
}

.kf-pk-related span {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
}

.kf-section { padding: 3.4rem 0; }
.kf-section-alt { background: rgba(255,255,255,.45); }

.kf-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.kf-section-head .eyebrow {
  color: var(--kf-mid);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .75rem;
}

.kf-section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: .35rem 0 .5rem;
}

.kf-section-head p { color: var(--kf-muted); max-width: 560px; margin: 0 auto; }

.kf-stats-row {
  margin-left: -8px;
  margin-right: -8px;
}

.kf-stats-row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.kf-stat {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  border-radius: 14px;
  padding: 1.1rem .85rem;
  box-shadow: none;
  text-align: center;
  border: 1px solid rgba(22,53,43,.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.kf-stat:hover {
  border-color: rgba(212, 160, 23, .45);
  box-shadow: 0 8px 20px rgba(20, 32, 27, .06);
}

.kf-stat .num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--kf-deep);
  line-height: 1;
  margin-bottom: .35rem;
}

.kf-stat .lbl {
  color: var(--kf-muted);
  font-size: .86rem;
  line-height: 1.3;
}

.kf-card {
  background: #fff;
  border: 1px solid rgba(22,53,43,.07);
  border-radius: var(--kf-radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20,32,27,.07);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.kf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20,32,27,.14);
}
.kf-card-img {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.kf-card-img::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(10,20,16,.55));
}
.kf-card-body { padding: 1.1rem 1.15rem 1.25rem; }
.kf-card-body h5 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: .35rem;
}
.kf-meta {
  color: var(--kf-muted);
  font-size: .82rem;
  margin-bottom: .55rem;
}
.kf-chip {
  display: inline-block;
  background: var(--kf-mist);
  color: var(--kf-deep);
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .72rem;
  font-weight: 600;
  margin-right: .25rem;
}

.kf-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.kf-widget {
  display: block;
  border-radius: var(--kf-radius);
  padding: 1.4rem 1.2rem;
  color: #fff !important;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--kf-shadow);
}
.kf-widget::before {
  content: attr(data-letter);
  position: absolute;
  right: .4rem;
  bottom: -.4rem;
  font-size: 5rem;
  font-family: var(--font-display);
  opacity: .18;
  line-height: 1;
}
.kf-widget h5 { margin-bottom: .3rem; font-size: 1.2rem; }
.kf-widget p { margin: 0; opacity: .9; font-size: .9rem; }
.kf-w1 { background: linear-gradient(135deg, #1f5a45, #0f2a22); }
.kf-w2 { background: linear-gradient(135deg, #8a6a12, #5d4305); }
.kf-w3 { background: linear-gradient(135deg, #2b4c63, #16352b); }
.kf-w4 { background: linear-gradient(135deg, #5b2c2c, #2a1313); }

.kf-page-banner {
  background:
    linear-gradient(120deg, rgba(15,42,34,.94), rgba(31,90,69,.82)),
    url('../img/pattern.svg') center/cover;
  color: #fff;
  padding: 2.8rem 0 3.4rem;
}

.kf-page-banner-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.kf-page-eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kf-gold-soft);
  margin-bottom: .45rem;
  font-weight: 600;
}

.kf-page-banner h1 {
  margin: 0 0 .45rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.kf-page-banner p {
  margin: 0;
  opacity: .9;
  max-width: 520px;
}

.kf-page-banner-actions {
  gap: .6rem;
  flex-shrink: 0;
}

.kf-filter-bar {
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: 0 14px 34px rgba(20,32,27,.09);
  margin-top: -2rem;
  position: relative;
  z-index: 3;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(22,53,43,.07);
}

.kf-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .35rem;
}

.kf-input {
  border-radius: 12px !important;
  min-height: 46px;
  border-color: #d7e0db !important;
  box-shadow: none !important;
}

.kf-input:focus {
  border-color: #1f5a45 !important;
  box-shadow: 0 0 0 .15rem rgba(31,90,69,.15) !important;
}

.kf-sthan-page { max-width: 1140px; }

.kf-sthan-filter .kf-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: .95rem;
  border-bottom: 1px solid #eef2f0;
}

.kf-sthan-filter .kf-filter-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 .2rem;
  color: var(--kf-deep);
}

.kf-sthan-filter .kf-filter-head p {
  margin: 0;
  color: var(--kf-muted);
  font-size: .9rem;
}

.kf-filter-count {
  background: var(--kf-mist);
  color: var(--kf-deep);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .86rem;
  white-space: nowrap;
  font-weight: 500;
}

.kf-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  margin-top: .2rem;
}

.kf-sthan-grid > [class*="col-"] {
  display: flex;
}

.kf-sthan-card {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(22,53,43,.08);
  box-shadow: 0 10px 26px rgba(20,32,27,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.kf-sthan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(20,32,27,.12);
}

.kf-sthan-card-link {
  color: inherit !important;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.kf-sthan-card-media {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #16352b;
}

.kf-sthan-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35));
}

.kf-sthan-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  max-width: 75%;
}

.kf-sthan-badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: #1a1404;
  background: rgba(224, 178, 58, .95);
}

.kf-sthan-badge-soft {
  background: rgba(255,255,255,.92);
  color: var(--kf-deep);
}

.kf-sthan-loc-flag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: .7rem;
  font-weight: 700;
  padding: .28rem .65rem;
  border-radius: 999px;
}

.kf-sthan-loc-flag.is-ok {
  background: rgba(25,135,84,.92);
  color: #fff;
}

.kf-sthan-loc-flag.is-no {
  background: rgba(220,53,69,.9);
  color: #fff;
}

.kf-sthan-card-body {
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kf-sthan-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin: 0 0 .45rem;
  color: #111827;
  line-height: 1.35;
}

.kf-sthan-loc {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  color: var(--kf-muted);
  font-size: .84rem;
  margin-bottom: .65rem;
  line-height: 1.4;
}

.kf-sthan-loc i {
  color: var(--kf-mid);
  margin-top: .15rem;
}

.kf-sthan-card-body p {
  color: #5b6770;
  font-size: .9rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}

.kf-sthan-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .8rem;
  border-top: 1px solid #eef2f0;
  color: var(--kf-mid);
  font-weight: 600;
  font-size: .88rem;
}

.kf-sthan-empty {
  background: #fff;
  border: 1px dashed rgba(22,53,43,.18);
  padding: 3.2rem 1.2rem;
}

.kf-sthan-empty h4 {
  font-family: var(--font-display);
  margin-bottom: .4rem;
  color: var(--kf-deep);
}

.kf-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--kf-muted);
  background: rgba(255,255,255,.7);
  border-radius: var(--kf-radius);
}

/* Sthan Darshan — theme-aligned layout */
.kf-sd-banner {
  padding-bottom: 3.2rem;
}

.kf-sd-page {
  max-width: 1140px;
  margin-top: -1.8rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.kf-sd-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.kf-sd-panel,
.kf-sd-results {
  background: #fff;
  border: 1px solid rgba(22, 53, 43, .08);
  border-radius: var(--kf-radius);
  box-shadow: 0 12px 30px rgba(20, 32, 27, .07);
}

.kf-sd-panel {
  padding: 1.15rem 1.15rem 1.2rem;
  position: sticky;
  top: 88px;
}

.kf-sd-panel-head {
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--kf-mist);
}

.kf-sd-panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 .2rem;
  color: var(--kf-deep);
}

.kf-sd-panel-head p {
  margin: 0;
  color: var(--kf-muted);
  font-size: .86rem;
}

.kf-sd-field {
  margin-bottom: .85rem;
}

.kf-sd-label {
  display: block;
  font-weight: 600;
  color: var(--kf-deep);
  font-size: .82rem;
  margin: 0 0 .35rem;
}

.kf-sd-input {
  border: 1px solid rgba(22, 53, 43, .14) !important;
  border-radius: 12px !important;
  min-height: 44px;
  margin-bottom: 0 !important;
  box-shadow: none !important;
  font-size: .92rem;
  background: #fbfcfb !important;
  color: var(--kf-ink);
}

.kf-sd-input:focus {
  border-color: var(--kf-mid) !important;
  background: #fff !important;
  box-shadow: 0 0 0 .15rem rgba(31, 90, 69, .14) !important;
}

.kf-sd-actions {
  display: grid;
  gap: .55rem;
  margin-top: .25rem;
}

.kf-sd-actions .kf-btn {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
}

.kf-sd-results {
  padding: 1.2rem 1.25rem 1.35rem;
}

.kf-sd-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: 1.05rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--kf-mist);
}

.kf-sd-eyebrow {
  color: var(--kf-mid);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: .2rem;
}

.kf-sd-results-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  color: var(--kf-deep);
}

.kf-sd-count {
  background: var(--kf-mist);
  color: var(--kf-deep);
  border: 1px solid rgba(31, 90, 69, .12);
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  margin-top: .15rem;
}

.kf-sd-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .9rem;
}

.kf-sd-group {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  border: 1px solid rgba(22, 53, 43, .08);
  border-radius: 14px;
  padding: .85rem .8rem .7rem;
  min-height: 100%;
}

.kf-sd-group h3 {
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 700;
  color: var(--kf-deep);
  margin: 0 0 .55rem;
  padding-bottom: .5rem;
  border-bottom: 1px dashed rgba(31, 90, 69, .2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.kf-sd-group h3 small {
  font-size: .72rem;
  font-weight: 700;
  color: var(--kf-deep);
  background: var(--kf-mist);
  border-radius: 999px;
  padding: .12rem .45rem;
}

.kf-sd-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kf-sd-group li {
  margin: 0;
}

.kf-sd-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: var(--kf-mid);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  padding: .42rem .45rem;
  border-radius: 9px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.kf-sd-group a i {
  font-size: .68rem;
  color: var(--kf-gold);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity .15s ease, transform .15s ease;
}

.kf-sd-group a:hover {
  background: rgba(31, 90, 69, .07);
  color: var(--kf-deep);
  text-decoration: none;
}

.kf-sd-group a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.kf-sd-empty {
  text-align: center;
  padding: 2.6rem 1rem;
  color: var(--kf-muted);
}

.kf-sd-empty i {
  font-size: 1.7rem;
  color: var(--kf-mid);
  opacity: .45;
  margin-bottom: .7rem;
}

.kf-sd-empty h3 {
  font-size: 1.15rem;
  margin: 0 0 .35rem;
  color: var(--kf-deep);
  font-family: var(--font-display);
}

.kf-sd-empty p {
  margin: 0;
  font-size: .92rem;
}

.kf-sd-detail {
  max-width: 980px;
  margin-top: -1.4rem;
  position: relative;
  z-index: 2;
}

.kf-sd-detail .kf-sd-block {
  background: #fff;
  border: 1px solid rgba(22, 53, 43, .08);
  border-radius: var(--kf-radius);
  padding: 1.2rem 1.3rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px rgba(20, 32, 27, .05);
}

.kf-sd-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--kf-deep);
  margin: 0 0 1rem;
  padding-left: .9rem;
}

.kf-sd-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--kf-gold), var(--kf-mid));
}

.kf-sd-heading::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1px dashed rgba(31, 90, 69, .22);
  min-width: 40px;
}

.kf-sd-body {
  color: var(--kf-ink);
  font-size: 1.02rem;
  line-height: 1.75;
}

.kf-sd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.kf-sd-images {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.kf-sd-thumb {
  display: block;
  border: 1px solid rgba(22, 53, 43, .12);
  padding: 4px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(20, 32, 27, .05);
  overflow: hidden;
}

.kf-sd-thumb img {
  display: block;
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
}

.kf-sd-map-wrap {
  border: 1px solid rgba(22, 53, 43, .12);
  overflow: hidden;
  background: var(--kf-mist);
  border-radius: 12px;
}

.kf-sd-map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.kf-sd-map-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.kf-sd-lila-list {
  margin-bottom: 1rem;
}

.kf-sd-lila-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--kf-mist);
  border: 1px solid rgba(22, 53, 43, .08);
  border-radius: 12px;
  padding: .85rem 1rem;
  color: var(--kf-ink);
  text-decoration: none;
}

.kf-sd-lila-item:hover {
  background: #e0ebe4;
  color: var(--kf-deep);
}

.kf-sd-lila-item i {
  color: var(--kf-gold);
  font-size: .85rem;
}

.kf-sd-lila-box {
  border: 1px solid rgba(22, 53, 43, .1);
  border-top: 3px solid var(--kf-mid);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  background: #fff;
}

.kf-sd-lila-meta {
  margin-bottom: .85rem;
  font-size: .95rem;
  color: var(--kf-muted);
}

.kf-sd-related {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
}

.kf-sd-related a {
  color: var(--kf-mid);
  font-weight: 500;
}

.kf-sd-related a:hover {
  color: var(--kf-gold);
}

.kf-detail-hero {
  border-radius: 22px;
  overflow: hidden;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--kf-shadow);
}
.kf-detail-panel {
  background: #fff;
  border-radius: var(--kf-radius);
  padding: 1.4rem;
  box-shadow: var(--kf-shadow);
}
.kf-detail-panel h3 {
  margin: 1.35rem 0 .45rem;
  font-size: 1.08rem;
  color: var(--kf-deep);
}
.kf-detail-panel h3:first-of-type { margin-top: 0; }
.kf-detail-panel p.kf-legal-updated {
  font-size: .86rem;
  color: var(--kf-muted);
  margin-bottom: 1rem;
}
.kf-soft-list li { margin-bottom: .45rem; }

.kf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.kf-gallery-item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  height: 210px;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
}
.kf-gallery-item span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .7rem .8rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  font-size: .86rem;
}

.kf-form .form-control {
  border-radius: 12px;
  min-height: 46px;
  border-color: #d7e0db;
}
.kf-form textarea.form-control { min-height: 130px; }

.kf-footer {
  position: relative;
  margin-top: 3rem;
  background: linear-gradient(180deg, #0f2a22, #0a1b16);
  color: rgba(255,255,255,.86);
  padding: 3.5rem 0 1.5rem;
}
.kf-footer-brand { color: var(--kf-gold-soft); }
.kf-footer-title { color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1rem; }
.kf-footer-text, .kf-footer-links a, .kf-footer-contact li { color: rgba(255,255,255,.78); font-size: .92rem; }
.kf-footer-links li, .kf-footer-contact li { margin-bottom: .4rem; }
.kf-footer-links a:hover { color: var(--kf-gold-soft); }
.kf-footer-contact i { width: 18px; color: var(--kf-gold); }
.kf-mantra { color: var(--kf-gold-soft); font-family: var(--font-display); }
.kf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.kf-legal-inline a { color: rgba(255,255,255,.75); }
.kf-legal-inline span { margin: 0 .35rem; opacity: .5; }
.kf-copy { opacity: .7; }

.kf-tabs .nav-link {
  border-radius: 999px !important;
  border: 0 !important;
  color: var(--kf-deep);
  margin-right: .35rem;
  background: #fff;
}
.kf-tabs .nav-link.active {
  background: var(--kf-deep) !important;
  color: #fff !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .kf-widgets { grid-template-columns: 1fr 1fr; }
  .kf-nav > .container { min-height: 64px; }
  .kf-nav .navbar-nav {
    align-items: stretch;
    padding: .75rem 0 1rem;
  }
  .kf-nav .nav-link {
    justify-content: flex-start;
    width: 100%;
    margin: .15rem 0;
  }
  .kf-page-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .kf-hero-slider,
  .kf-hero-img {
    height: 320px;
  }
  .kf-home-panel {
    margin-top: -1.25rem;
    padding: 1.1rem 1rem 1.2rem;
  }
  .kf-pk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kf-sd-shell {
    grid-template-columns: 1fr;
  }
  .kf-sd-panel {
    position: static;
  }
  .kf-sd-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .kf-widgets { grid-template-columns: 1fr; }
  .kf-hero-actions { gap: .55rem; }
  .kf-home-actions .kf-btn,
  .kf-btn { width: auto; max-width: none; }
  .kf-home-actions {
    gap: .5rem;
  }
  .kf-home-actions .kf-btn {
    flex: 1 1 auto;
    min-width: 42%;
    padding: .65rem 1rem;
    font-size: .9rem;
  }
  .kf-stats-grid {
    grid-template-columns: 1fr;
    gap: .65rem;
  }
  .kf-sthan-filter .kf-filter-head {
    flex-direction: column;
  }
  .kf-filter-actions .kf-btn { max-width: none; width: 100%; }
  .kf-footer-bottom { flex-direction: column; text-align: center; }
  .kf-hero-slider,
  .kf-hero-img {
    height: 230px;
  }
  .kf-slider-btn {
    width: 34px;
    height: 34px;
  }
  .kf-home-panel {
    margin-top: -1rem;
    border-radius: 14px;
  }
  .kf-pk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
  }
  .kf-pk-img-wrap img {
    height: 180px;
  }
  .kf-pk-card p {
    min-height: 0;
  }
  .kf-pk-heading {
    gap: .55rem;
  }
  .kf-pk-line { max-width: 60px; }
  .kf-sd-directory {
    grid-template-columns: 1fr;
  }
  .kf-sd-map-wrap iframe {
    height: 260px;
  }
  .kf-sd-thumb img {
    width: 130px;
    height: 95px;
  }
  .kf-sd-panel,
  .kf-sd-results,
  .kf-sd-detail .kf-sd-block {
    border-radius: 14px;
  }
  .kf-sd-actions {
    grid-template-columns: 1fr;
  }
}
