/* ==========================================================================
   HOMEPAGE REDESIGN — scoped to frontend/home/index.blade.php only.
   Ported from the "homepage & Astrologer page design" reference mockup,
   remapped onto the site's existing --nk-* design tokens (see
   home-assets/css/style.css :root) instead of the mockup's own palette, so
   colors/fonts stay consistent with the header/footer and every other page.
   See approved plan, 2026-10-08.
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.nkHero2 {
  position: relative;
  padding: var(--nk-space-xl) var(--nk-space-lg) var(--nk-space-2xl);
  overflow: hidden;
}

.nkHero2Container {
  max-width: var(--nk-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--nk-space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.nkHero2ChartBg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.nkOnlineBadge {
  display: inline-flex;
  align-items: center;
  gap: var(--nk-space-xs);
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-pill);
  padding: 6px 14px 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nk-ink-soft);
  box-shadow: var(--nk-shadow-sm);
  margin-bottom: var(--nk-space-lg);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nkOnlineBadge .nkStatusDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nk-success);
  box-shadow: 0 0 0 3px rgba(63, 122, 79, 0.18);
}

.nkOnlineBadge .nkStatusCount {
  color: var(--nk-ink);
  font-weight: 800;
}

.nkHero2Title {
  font-family: var(--nk-font-display);
  font-weight: 700;
  font-size: var(--nk-fs-h1);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--nk-ink);
  margin: 0 0 var(--nk-space-md);
}

.nkHero2Title .nkHighlight {
  color: var(--nk-marigold-deep);
}

.nkHero2Features {
  list-style: none;
  margin: 0 0 var(--nk-space-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--nk-space-xs);
}

.nkHero2Features li {
  display: flex;
  align-items: center;
  gap: var(--nk-space-xs);
  font-size: var(--nk-fs-body);
  color: var(--nk-ink-soft);
}

.nkHero2Features .nkCheckIcon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(63, 122, 79, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nkHero2Cta {
  margin-bottom: var(--nk-space-lg);
}

.nkHero2StatsRow {
  display: flex;
  align-items: center;
  gap: var(--nk-space-md);
  flex-wrap: wrap;
}

.nkHero2StatItem .nkStatNum {
  font-family: var(--nk-font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--nk-ink);
  line-height: 1.1;
}

.nkHero2StatItem .nkStatLbl {
  font-size: 0.78rem;
  color: var(--nk-ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nkHero2StatDivider {
  width: 1px;
  height: 32px;
  background: var(--nk-border);
}

/* Right-side rotating showcase */
.nkHero2Showcase {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nkShuffleContainer {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 420px;
}

.nkShuffleCard {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 340px;
  border-radius: var(--nk-radius-lg);
  overflow: hidden;
  box-shadow: var(--nk-shadow-md);
  border: 3px solid var(--nk-surface);
  transition: transform var(--nk-transition-slow), opacity var(--nk-transition-base), filter var(--nk-transition-base);
  cursor: pointer;
}

.nkShuffleCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nkShuffleCard.posLeft {
  transform: translate(-150%, -50%) scale(0.85) rotate(-6deg);
  z-index: 2;
  opacity: 0.85;
  filter: brightness(0.92);
}

.nkShuffleCard.posCenter {
  transform: translate(-50%, -50%) scale(1.08) rotate(0deg);
  z-index: 10;
  opacity: 1;
}

.nkShuffleCard.posRight {
  transform: translate(-50%, -50%) translateX(150%) scale(0.85) rotate(6deg);
  z-index: 2;
  opacity: 0.85;
  filter: brightness(0.92);
}

/* ── Live ticker ──────────────────────────────────────────────────────── */
.nkLiveTicker {
  border-top: 1px solid var(--nk-border);
  border-bottom: 1px solid var(--nk-border);
  background: var(--nk-surface);
  overflow: hidden;
  padding: 10px 0;
}

.nkTickerTrack {
  display: flex;
  gap: var(--nk-space-xl);
  width: max-content;
  animation: nkTickerScroll 32s linear infinite;
}

.nkTickerTrack:hover {
  animation-play-state: paused;
}

@keyframes nkTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.nkTickerItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--nk-ink-soft);
  white-space: nowrap;
}

.nkTickerItem strong {
  color: var(--nk-ink);
}

.nkTickerItem .nkTickerDot {
  color: var(--nk-marigold-deep);
}

/* ── Shared "section" header row pattern (Top Astrologers / Category / etc) */
.nkSection2 {
  padding: var(--nk-space-2xl) var(--nk-space-lg);
}

.nkSection2Inner {
  max-width: var(--nk-container);
  margin: 0 auto;
}

.nkSection2HeadRow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--nk-space-md);
  margin-bottom: var(--nk-space-lg);
  flex-wrap: wrap;
}

.nkSection2Eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--nk-marigold-deep);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nkSection2Title {
  font-family: var(--nk-font-display);
  font-weight: 700;
  font-size: var(--nk-fs-h2);
  color: var(--nk-ink);
  line-height: 1.15;
  margin: 0;
}

.nkSection2Title .nkHighlight {
  color: var(--nk-marigold-deep);
}

.nkSection2Sub {
  color: var(--nk-ink-soft);
  font-size: 0.95rem;
  margin-top: 8px;
  max-width: 520px;
}

.nkViewAllBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-pill);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--nk-ink);
  transition: all var(--nk-transition-fast);
  white-space: nowrap;
}

.nkViewAllBtn:hover {
  background: var(--nk-marigold-pale);
  border-color: var(--nk-marigold-deep);
  color: var(--nk-ink);
}

/* ── Top Astrologers grid (cards themselves styled in astrologers_cards.blade.php) */
.nkTopAstroGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--nk-space-md);
}

/* ── Browse by Category ───────────────────────────────────────────────── */
.nkCategoryGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--nk-space-md);
}

.nkCategoryCard {
  position: relative;
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-md);
  padding: var(--nk-space-md);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all var(--nk-transition-base);
  color: inherit;
}

.nkCategoryCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--nk-shadow-md);
  border-color: var(--nk-marigold-deep);
}

.nkCategoryIcon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--nk-space-sm);
}

.nkCategoryName {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--nk-ink);
  margin: 0 0 4px;
}

.nkCategoryBottomRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.nkCategoryCount {
  font-size: 0.8rem;
  color: var(--nk-ink-faint);
}

.nkCategoryArrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.04);
  color: var(--nk-ink);
  flex-shrink: 0;
}

/* Icon/arrow color variants (cycled by index in Blade) */
.nkCategoryCard[data-tone="pink"] .nkCategoryIcon   { background: rgba(233,30,99,0.12); color: #e91e63; }
.nkCategoryCard[data-tone="gold"] .nkCategoryIcon   { background: rgba(217,119,6,0.12); color: #d97706; }
.nkCategoryCard[data-tone="green"] .nkCategoryIcon  { background: rgba(22,163,74,0.12); color: #16a34a; }
.nkCategoryCard[data-tone="purple"] .nkCategoryIcon { background: rgba(147,51,234,0.12); color: #9333ea; }
.nkCategoryCard[data-tone="cyan"] .nkCategoryIcon   { background: rgba(8,145,178,0.12); color: #0891b2; }
.nkCategoryCard[data-tone="rose"] .nkCategoryIcon   { background: rgba(225,29,72,0.12); color: #e11d48; }

/* ── Daily Horoscope ──────────────────────────────────────────────────── */
.nkHoroSection {
  padding: var(--nk-space-2xl) var(--nk-space-lg);
  background: var(--nk-cream-deep);
}

.nkHoroSub {
  margin-top: 6px;
  color: var(--nk-ink-faint);
  font-size: 0.92rem;
}

.nkHoroPickerRow {
  display: flex;
  gap: var(--nk-space-sm);
  overflow-x: auto;
  padding: 6px 2px 18px;
  margin-top: var(--nk-space-lg);
  scrollbar-width: thin;
}

.nkHoroPickerItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 84px;
  padding: 10px 6px;
  border: 1.5px solid var(--nk-border);
  border-radius: 16px;
  background: var(--nk-surface);
  cursor: pointer;
  transition: border-color var(--nk-transition-fast), transform var(--nk-transition-fast), box-shadow var(--nk-transition-fast);
}

.nkHoroPickerItem:hover {
  border-color: var(--nk-marigold-deep);
  transform: translateY(-2px);
}

.nkHoroPickerItem.isActive {
  border-color: var(--nk-marigold-deep);
  background: var(--nk-marigold-pale);
  box-shadow: var(--nk-shadow-sm);
}

.nkHoroPickerAvatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nk-cream);
  border: 1px solid var(--nk-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nkHoroPickerAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nkHoroGlyph {
  font-size: 1.4rem;
  color: var(--nk-marigold-deep);
  line-height: 1;
}

.nkHoroGlyphLg {
  font-size: 2.1rem;
}

.nkHoroPickerName {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nk-ink);
  white-space: nowrap;
}

.nkHoroPickerHindi {
  font-size: 0.68rem;
  color: var(--nk-ink-faint);
  white-space: nowrap;
}

.nkHoroPanel {
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: 20px;
  padding: var(--nk-space-lg) calc(var(--nk-space-lg) + 4px);
  box-shadow: var(--nk-shadow-sm);
}

.nkHoroPanelContent {
  display: none;
}

.nkHoroPanelContent.isActive {
  display: block;
  animation: nkHoroFadeIn 0.25s ease;
}

@keyframes nkHoroFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nkHoroPanelTop {
  display: flex;
  align-items: center;
  gap: var(--nk-space-md);
  margin-bottom: var(--nk-space-md);
  flex-wrap: wrap;
}

.nkHoroPanelAvatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--nk-marigold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nkHoroPanelAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nkHoroPanelName {
  font-family: var(--nk-font-display);
  font-size: 1.2rem;
  margin: 0;
  color: var(--nk-ink);
}

.nkHoroPanelHindi {
  font-size: 0.85rem;
  color: var(--nk-ink-faint);
  font-weight: 400;
}

.nkHoroPanelRange {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--nk-ink-faint);
}

.nkHoroPanelDate {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--nk-ink-faint);
  background: var(--nk-cream-deep);
  padding: 5px 12px;
  border-radius: var(--nk-radius-pill);
}

.nkHoroPanelText {
  color: var(--nk-ink-soft);
  line-height: 1.65;
  margin-bottom: var(--nk-space-md);
}

.nkHoroPlaceholder {
  color: var(--nk-ink-faint);
  font-style: italic;
}

.nkHoroMetaRow {
  display: flex;
  gap: var(--nk-space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--nk-space-md);
}

.nkHoroMetaChip {
  font-size: 0.82rem;
  color: var(--nk-ink-soft);
  background: var(--nk-cream-deep);
  padding: 6px 14px;
  border-radius: var(--nk-radius-pill);
}

.nkHoroRatings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nkHoroRatingRow {
  display: grid;
  grid-template-columns: 64px 1fr 56px;
  align-items: center;
  gap: var(--nk-space-sm);
}

.nkHoroRatingLabel {
  font-size: 0.8rem;
  color: var(--nk-ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nkHoroRatingBarTrack {
  height: 7px;
  border-radius: var(--nk-radius-pill);
  background: var(--nk-cream-deep);
  overflow: hidden;
  display: block;
}

.nkHoroRatingBarFill {
  display: block;
  height: 100%;
  border-radius: var(--nk-radius-pill);
  background: linear-gradient(90deg, var(--nk-marigold), var(--nk-marigold-deep));
}

.nkHoroRatingValue {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nk-ink);
  text-align: right;
}

@media (max-width: 640px) {
  .nkHoroPanelTop { gap: var(--nk-space-sm); }
  .nkHoroPanelDate { margin-left: 0; }
  .nkHoroRatingRow { grid-template-columns: 56px 1fr 50px; }
}

/* ── Services carousel ────────────────────────────────────────────────── */
.nkServicesCarouselWrap {
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.nkServicesTrack {
  display: flex;
  gap: var(--nk-space-md);
  width: max-content;
}

.nkServiceSlideCard {
  flex: 0 0 220px;
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-md);
  padding: var(--nk-space-md);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--nk-transition-base);
  color: inherit;
}

.nkServiceSlideCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--nk-shadow-md);
  border-color: var(--nk-marigold-deep);
}

.nkServiceIconBadge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--nk-marigold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--nk-space-sm);
  color: var(--nk-marigold-deep);
}

.nkServiceSlideCard h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nk-ink);
  margin: 0 0 4px;
}

.nkServiceSlideCard p {
  font-size: 0.85rem;
  color: var(--nk-ink-soft);
  margin: 0;
}

/* ── Blog ─────────────────────────────────────────────────────────────── */
.nkBlogGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--nk-space-md);
}

.nkBlogCard2 {
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-md);
  overflow: hidden;
  transition: all var(--nk-transition-base);
  display: flex;
  flex-direction: column;
  color: inherit;
}

.nkBlogCard2:hover {
  transform: translateY(-4px);
  box-shadow: var(--nk-shadow-md);
  border-color: var(--nk-marigold-deep);
}

.nkBlogCard2 .nkBlogThumbWrap {
  height: 150px;
  overflow: hidden;
}

.nkBlogCard2 .nkBlogThumbWrap img,
.nkBlogCard2 .nkBlogThumbWrap .nkBlogThumbFallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nkBlogCard2Body {
  padding: var(--nk-space-sm) var(--nk-space-md) var(--nk-space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nkBlogAuthorTag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--nk-marigold-deep);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nkBlogCard2Title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--nk-ink);
  line-height: 1.35;
  margin: 0 0 auto;
}

.nkBlogFooterMeta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--nk-ink-faint);
  margin-top: var(--nk-space-sm);
  padding-top: var(--nk-space-sm);
  border-top: 1px solid var(--nk-border);
}

/* ── Testimonials (single-card slider) ───────────────────────────────── */
.nkTestiContainer {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--nk-space-xl);
  align-items: center;
}

.nkTestiRatingBox {
  display: flex;
  align-items: center;
  gap: var(--nk-space-sm);
  margin: var(--nk-space-sm) 0;
}

.nkTestiBigNum {
  font-family: var(--nk-font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--nk-ink);
}

.nkTestiStarsGold {
  /* Match the astrologer listing page's rating-star color (#f2a93b),
     not the --nk-marigold-deep token, which is a visibly darker shade.
     See approved plan, 2026-10-09. */
  color: #f2a93b;
  letter-spacing: 2px;
}

.nkTestiCountText {
  display: block;
  font-size: 0.8rem;
  color: var(--nk-ink-faint);
}

.nkTestiDesc {
  color: var(--nk-ink-soft);
  font-size: 0.92rem;
  margin: var(--nk-space-sm) 0 var(--nk-space-md);
  max-width: 400px;
}

.nkTestiNavControls {
  display: flex;
  align-items: center;
  gap: var(--nk-space-sm);
}

.nkNavArrowBtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--nk-border);
  background: var(--nk-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--nk-ink);
  cursor: pointer;
  transition: all var(--nk-transition-fast);
}

.nkNavArrowBtn:hover:not(:disabled) {
  background: var(--nk-marigold-pale);
  border-color: var(--nk-marigold-deep);
}

.nkNavArrowBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nkSlideCounterText {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nk-ink-faint);
  min-width: 42px;
  text-align: center;
}

.nkTestiCard2 {
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: var(--nk-radius-lg);
  padding: var(--nk-space-lg);
  box-shadow: var(--nk-shadow-sm);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nkTestiCard2 .nkTestiStarsRow {
  /* Match the astrologer listing page's rating-star color — see the
     .nkTestiStarsGold rule above for why this isn't --nk-marigold-deep.
     See approved plan, 2026-10-09. */
  color: #f2a93b;
  letter-spacing: 2px;
  margin-bottom: var(--nk-space-sm);
}

.nkTestiQuoteIcon {
  font-size: 1.8rem;
  color: var(--nk-marigold-pale);
  line-height: 1;
}

.nkTestiQuoteText {
  font-size: 1rem;
  color: var(--nk-ink);
  line-height: 1.6;
  margin: var(--nk-space-xs) 0 var(--nk-space-md);
}

.nkTestiDivider2 {
  border: none;
  border-top: 1px solid var(--nk-border);
  margin-bottom: var(--nk-space-md);
}

.nkTestiUserRow {
  display: flex;
  align-items: center;
  gap: var(--nk-space-sm);
}

.nkTestiAvatarCircle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.nkTestiAvatarCircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nkTestiUserName {
  font-weight: 700;
  color: var(--nk-ink);
  margin: 0;
  font-size: 0.95rem;
}

.nkTestiUserLocation {
  font-size: 0.8rem;
  color: var(--nk-ink-faint);
}

/* ── FAQ accordion ────────────────────────────────────────────────────── */
.nkFaqSection2 .nkSection2Inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--nk-space-xl);
}

.nkFaqAccordionList {
  display: flex;
  flex-direction: column;
}

.nkFaqAccordionItem {
  border-bottom: 1px solid var(--nk-border);
  padding: var(--nk-space-md) 0;
}

.nkFaqAccordionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--nk-space-md);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--nk-ink);
  padding: 0;
}

.nkFaqToggleIcon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nk-marigold-pale);
  color: var(--nk-marigold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: all var(--nk-transition-fast);
}

.nkFaqAccordionItem[data-open="true"] .nkFaqToggleIcon {
  background: var(--nk-marigold-deep);
  color: #fff;
}

/* Height-animated via JS (scrollHeight), not capped — see approved plan,
   2026-10-08: the old implementation hardcoded max-height:200px inline on
   the first item, clipping any answer longer than 200px. */
.nkFaqAccordionAnswer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.nkFaqAccordionItem[data-open="true"] .nkFaqAccordionAnswer {
  opacity: 1;
  margin-top: var(--nk-space-sm);
}

.nkFaqAccordionAnswer p {
  color: var(--nk-ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Blog cards — author tag + views/date footer (new, matches mockup) ── */
.nkReadAuthorTag {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nk-marigold-deep);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nkReadFooterMeta {
  display: flex;
  justify-content: space-between;
  gap: var(--nk-space-sm);
  margin-top: var(--nk-space-xs);
  padding-top: var(--nk-space-xs);
  border-top: 1px solid #f0ead8;
  font-size: 0.72rem;
  color: var(--nk-ink-faint);
}

.nkReadFooterMeta .nkReadViews {
  margin-top: 0;
}

/* ── Top Astrologers carousel → static grid, restyled card ──────────────
   Overrides home-assets/css/style.css's .nkAstroCard* rules (loaded earlier
   in <head>, so these win by source order) — the Blade/JS logic that
   renders these cards (astrologers_cards.blade.php, astrologers.blade.php)
   is untouched; this is a pure visual layer. See approved plan, 2026-10-08. */
#nakshatraCarousel.nkCarouselWrap {
  overflow-x: visible;
}

#nakshatraCarouselTrack.nkCarouselTrack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--nk-space-md);
  width: 100%;
  animation: none;
}

.nkAstroCard {
  width: 100%;
  border-radius: var(--nk-radius-md);
  border-color: var(--nk-border);
}

.nkAstroAvatar {
  width: 60px;
  height: 60px;
  border: 2.5px solid var(--nk-success);
}

/* Homepage carousel's astrologer-card rating stars had no color rule of
   their own (only the listing page's chat.css styled .nkAstroRatingStars)
   — match the listing page's star color only, no size/position override,
   so the stars render at their natural inherited size instead of the
   over-shrunk 0.7rem from an earlier pass. See approved plan, 2026-10-09.*/
.nkAstroRatingStars {
  display: flex;
  gap: 1px;
  justify-content: flex-start;
  margin-top: 4px;
}

.nkAstroRatingStars span {
  color: #f2a93b;
}

.nkAstroCardBtns .nkChatConnectBtn,
.nkAstroChatBtn {
  border-radius: var(--nk-radius-pill);
}

/* Price above, Chat/Call as two equal-width pill buttons below — matches
   the mockup's all-astrologers.html / index.html card (see approved plan,
   2026-10-08), replacing style.css's single price+buttons row. */
.nkAstroCardBottom {
  flex-direction: column;
  align-items: stretch;
  gap: var(--nk-space-sm);
}

.nkAstroCardBtns {
  display: flex;
  gap: 8px;
  width: 100%;
}

.nkAstroCardBtns .nkChatConnectBtn {
  flex: 1 1 0;
  justify-content: center;
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE — breakpoints match the site's existing convention in
   home-assets/css/responsive.css (1024 / 992 / 768 / 576 / 480), so these
   new sections shift in step with the rest of the page instead of using
   their own arbitrary breakpoints. Typography (hero/section titles) already
   shrinks automatically at 768px/480px via that file's --nk-fs-h1/h2
   variable overrides, since these sections reuse those same tokens — no
   font-size overrides needed here. See approved plan, 2026-10-08.
   ========================================================================== */
@media (max-width: 1024px) {
  .nkHero2Container { grid-template-columns: 1fr; gap: var(--nk-space-lg); }
  .nkHero2Showcase { height: 360px; order: -1; }
  .nkShuffleContainer { height: 360px; }

  .nkTestiContainer { grid-template-columns: 1fr; }
  .nkFaqSection2 .nkSection2Inner { grid-template-columns: 1fr; gap: var(--nk-space-lg); }
}

@media (max-width: 992px) {
  .nkTopAstroGrid,
  #nakshatraCarouselTrack.nkCarouselTrack,
  .nkCategoryGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nkServiceSlideCard { flex-basis: 200px; }
}

@media (max-width: 768px) {
  .nkSection2 { padding: var(--nk-space-xl) var(--nk-space-lg); }
  .nkSection2HeadRow { flex-direction: column; align-items: flex-start; gap: var(--nk-space-sm); }

  .nkHero2 { padding: var(--nk-space-lg) var(--nk-space-md) var(--nk-space-xl); }
  .nkHero2StatsRow { gap: var(--nk-space-sm); flex-wrap: wrap; }
  .nkHero2StatDivider { display: none; }
  .nkHero2Showcase { height: 300px; }
  .nkShuffleContainer { height: 300px; max-width: 300px; }
  .nkShuffleCard { width: 150px; height: 250px; }
  .nkShuffleCard.posLeft  { transform: translate(-140%, -50%) scale(0.85) rotate(-6deg); }
  .nkShuffleCard.posRight { transform: translate(-50%, -50%) translateX(140%) scale(0.85) rotate(6deg); }

  .nkOnlineBadge { font-size: 0.76rem; flex-wrap: wrap; }

  .nkTestiCard2 { padding: var(--nk-space-md); }
  .nkTestiQuoteText { font-size: 0.92rem; }
}

@media (max-width: 576px) {
  .nkTopAstroGrid,
  #nakshatraCarouselTrack.nkCarouselTrack,
  .nkCategoryGrid {
    grid-template-columns: 1fr;
  }

  .nkSection2 { padding: var(--nk-space-lg) var(--nk-space-md); }
  .nkViewAllBtn { width: 100%; justify-content: center; }

  .nkTestiNavControls { justify-content: center; }
  .nkTestiRatingBox { justify-content: center; }
  .nkTestiDesc { margin-inline: auto; }

  .nkFaqAccordionHeader { font-size: 0.92rem; }
}

@media (max-width: 480px) {
  .nkOnlineBadge { font-size: 0.7rem; padding: 5px 12px 5px 8px; }

  .nkHero2StatItem .nkStatNum { font-size: 1.25rem; }
  .nkHero2StatItem .nkStatLbl { font-size: 0.7rem; }

  .nkShuffleContainer { max-width: 260px; height: 260px; }
  .nkShuffleCard { width: 130px; height: 210px; }
  .nkShuffleCard.posLeft  { transform: translate(-130%, -50%) scale(0.85) rotate(-6deg); }
  .nkShuffleCard.posRight { transform: translate(-50%, -50%) translateX(130%) scale(0.85) rotate(6deg); }

  .nkCategoryCard { padding: var(--nk-space-sm); min-height: 130px; }
  .nkServiceSlideCard { flex-basis: 180px; }
}
