/*
Theme Name: GeneratePress Child
Theme URI: https://naamhinaam.com/
Description: Modern redesign child theme for GeneratePress based on Naam Hi Naam brand guidelines and custom mockup layout.
Author: Antigravity
Author URI: https://naamhinaam.com/
Template: generatepress
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, responsive-layout, custom-colors, translation-ready
*/

/* ==========================================================================
   1. Brand Design System Variables (Imported from Central brand-tokens.css)
   ========================================================================== */
@import url('./brand-tokens.css');


/* ==========================================================================
   2. Global Typographic & Accessibility Resets
   ========================================================================== */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Font Overrides for GeneratePress Elements */
body,
button,
input,
select,
textarea {
  font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title,
.display {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.mono,
.pron,
.data-card .k,
.eyebrow,
footer.site h4 {
  font-family: 'IBM Plex Mono', monospace;
}

/* Accessible focus outline */
:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link styling */
.skip-link {
  position: absolute;
  top: 12px;
  left: 24px;
  transform: translateY(-200%);
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px !important;
  z-index: 9999999 !important;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.skip-link:focus,
.skip-link:focus-visible,
.skip-link:active {
  transform: translateY(0) !important;
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  outline: 3px solid #fff !important;
  outline-offset: 2px !important;
}

#main:focus {
  outline: none;
}

#main {
  scroll-margin-top: 90px;
}

/* Header & Navigation */
header.site-header {
  background: rgba(250, 250, 252, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border) !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* 1. Top Header Bar */
.site-top-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.top-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.top-bar-fav:hover {
  color: var(--brand);
}

.top-bar-fav svg {
  color: var(--rose);
  fill: var(--rose-soft);
}

.bnm-header-fav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--rose);
  border-radius: 100px;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.top-bar-fav:hover .bnm-header-fav-count {
  transform: scale(1.1);
}

.top-bar-label {
  font-size: 11.5px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink-faint);
}

.top-bar-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--canvas);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-bar-right a:hover {
  transform: translateY(-2px);
  border-color: transparent;
  color: #fff !important;
}

.top-bar-right a[title="Facebook"]:hover {
  background: #1877F2 !important;
}

.top-bar-right a[title="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.top-bar-right a[title="Pinterest"]:hover {
  background: #E60023 !important;
}

.top-bar-right a[title="YouTube"]:hover {
  background: #FF0000 !important;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-header .custom-logo {
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-logo .custom-logo {
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

/* Main Navigation and WordPress Submenu Dropdowns */
nav.main-nav {
  display: flex;
  align-items: center;
}

.nav-drawer-header {
  display: none;
}

.main-nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav-list > li {
  position: relative;
  margin: 0;
}

.main-nav-list > li > a {
  padding: 8px 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.main-nav-list > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 11px;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
}

.main-nav-list > li:hover > a,
.main-nav-list > li.is-expanded > a,
.main-nav-list > li.current-menu-item > a {
  color: var(--ink);
  border-color: var(--brand);
}

.main-nav-list > li:hover > a::after,
.main-nav-list > li.is-expanded > a::after {
  transform: rotate(180deg);
  color: var(--brand);
}

/* Desktop Submenu Dropdowns */
.main-nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  list-style: none;
  margin: 8px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.main-nav-list > li:hover > .sub-menu,
.main-nav-list > li.is-expanded > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav-list .sub-menu li {
  margin: 0;
  padding: 0;
}

.main-nav-list .sub-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s ease;
}

.main-nav-list .sub-menu a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 16px;
  min-width: 230px;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}

.header-search input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-family: inherit !important;
  font-size: 14px !important;
  width: 100% !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

/* Mobile Toggles & Drawers (hidden by default on desktop) */
.mobile-search-toggle,
.mobile-menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  padding: 0;
}

.mobile-search-toggle:hover,
.mobile-menu-toggle:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand);
}

.mobile-menu-toggle {
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-search-bar-wrap {
  display: none;
  padding: 10px 20px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.mobile-search-bar-wrap.is-open {
  display: block;
}

.mobile-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 16px;
}

.mobile-search-bar input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  font-size: 14.5px !important;
  outline: none !important;
  padding: 0 !important;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21, 20, 38, 0.45);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

body.mobile-menu-locked {
  overflow: hidden;
}

/* Auto-Suggestion Dropdowns */
.search-pill-container {
  position: relative;
}

.mobile-search-bar {
  position: relative;
}

.bnm-suggestions-dropdown {
  position: absolute;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-height: 350px;
  overflow-y: auto;
  z-index: 99999 !important;
  text-align: left;
}

/* Header search specific dropdown layout */
.header-search .bnm-suggestions-dropdown {
  left: auto;
  right: 0;
  width: 340px;
  border-radius: 16px;
  margin-top: 12px;
}

/* Mobile search bar dropdown layout */
.mobile-search-bar .bnm-suggestions-dropdown {
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 16px;
  margin-top: 8px;
}

/* Homepage banner search specific dropdown layout */
.search-pill-container .bnm-suggestions-dropdown {
  left: 0;
  right: 0;
  width: 100%;
  border-radius: var(--radius);
  margin-top: 8px;
}

.bnm-suggestion-item {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.bnm-suggestion-item:last-child {
  border-bottom: none;
}

.bnm-suggestion-item:hover {
  background: var(--canvas);
}

.bnm-suggestion-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bnm-suggestion-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--brand);
}

.bnm-suggestion-meta {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink-soft);
}

.bnm-suggestion-meaning {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Base Components styling */
.btn-grad,
.wp-block-button__link {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b)) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 26px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 10px 24px -10px rgba(214, 51, 108, 0.55) !important;
  min-height: 44px !important;
  text-decoration: none !important;
  transition: filter 0.15s ease, transform 0.15s ease !important;
}

.btn-grad:hover,
.wp-block-button__link:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

/* Reusable Capsule Chips */
.capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  text-decoration: none;
}

.capsule .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.capsule.c-religion {
  background: var(--c-religion-bg);
  color: var(--c-religion);
}

.capsule.c-rashi {
  background: var(--c-rashi-bg);
  color: var(--c-rashi);
}

.capsule.c-nakshatra {
  background: var(--c-nakshatra-bg);
  color: var(--c-nakshatra);
}

.capsule.c-numerology {
  background: var(--c-numerology-bg);
  color: var(--c-numerology);
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   3. Homepage Specific Styles (front-page.php)
   ========================================================================== */
.home .site-content,
.home #page,
.home .inside-article,
.home .separate-containers .site-main {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.home .site-content {
  display: block;
}

.home #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.home-section {
  padding: 64px 0;
}

.home-section .wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
}

.section-head h2 {
  font-size: 26px;
}

.slider-nav-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.slider-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  padding: 0;
}

.slider-btn:hover:not(:disabled) {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.section-head a.view-all {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  margin-left: 6px;
}

/* HERO Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-grid h1 {
  font-size: 46px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-grid p.sub {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin: 18px 0 28px;
  max-width: 460px;
  line-height: 1.6;
}

/* Search bar on home */
.search-pill-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
}

.search-pill-container input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  padding: 10px 0;
}

.trust-row {
  display: flex;
  gap: 22px;
  margin-top: 26px;
}

.trust-item {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.trust-item b {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 19px;
  color: var(--ink);
  font-weight: 700;
}

/* Name of the Day card */
.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.18), rgba(214, 51, 108, 0.08) 70%, transparent);
}

.hero-card .name {
  font-size: 32px;
  position: relative;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
}

.hero-card .meaning {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 6px 0 18px;
  position: relative;
}

.hero-card .name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-card .name a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.hero-card-action {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft, #f1f3f5);
  position: relative;
}

.btn-know-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gradient);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(217, 0, 107, 0.22);
}

.btn-know-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 0, 107, 0.32);
  color: #ffffff !important;
  text-decoration: none;
}

.btn-know-more svg {
  transition: transform 0.2s ease;
}

.btn-know-more:hover svg {
  transform: translateX(3px);
}

.btn-know-more:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}


/* Trending Names Row Slider */
.trend-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px 12px;
}

.trend-container::-webkit-scrollbar {
  height: 6px;
}

.trend-container::-webkit-scrollbar-track {
  background: transparent;
}

.trend-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.trend-container::-webkit-scrollbar-thumb:hover {
  background: var(--ink-faint);
}

.trend-row {
  display: flex;
  gap: 14px;
  overflow: visible;
  padding-bottom: 8px;
  padding-top: 10px;
}

.trend-chip {
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  min-width: 130px;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.trend-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.trend-chip .n {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.trend-chip .m {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 3px;
}

.trend-chip .tag {
  position: absolute;
  top: -9px;
  right: 10px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: #fff;
  font-size: 9px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 600;
}

/* Browse by tradition category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
  text-decoration: none;
}

.cat-card:hover {
  transform: translateY(-3px);
}

.cat-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

.cat-card .title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.cat-card .count {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
}

/* FAQ Accordions on Home */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-q {
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  color: var(--ink);
  min-height: 44px;
}

.faq-q .plus {
  color: var(--brand);
  font-size: 18px;
  transition: transform .15s ease;
}

.faq-q[aria-expanded="true"] .plus {
  transform: rotate(45deg);
}

.faq-a {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.65;
  max-width: 760px;
}

/* ==========================================================================
   4. Search & Listing Layout Style Overrides
   ========================================================================== */
.bnm-search-page {
  padding: 0 0;
  background: var(--canvas);
}

.bnm-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.bnm-page-header {
  margin-bottom: 30px;
}

.bnm-page-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.bnm-page-subtitle {
  color: var(--ink-soft);
  font-size: 15px;
}

.bnm-search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Mobile Filter Bar (hidden on desktop) */
.bnm-mobile-filter-bar {
  display: none;
  margin-bottom: 20px;
}

.bnm-mobile-filter-btn {
  width: 100%;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
}

.bnm-mobile-filter-btn:hover {
  border-color: var(--brand);
}

/* Sidebar Filters styling */
.bnm-filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.bnm-sidebar-header {
  display: none;
  /* Only visible on mobile drawer */
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.bnm-sidebar-header h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.bnm-close-filters-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 8px;
}

.bnm-filter-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bnm-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bnm-filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bnm-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.bnm-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  color: var(--ink-soft);
}

.bnm-input-wrapper input {
  width: 100%;
  padding: 10px 14px 10px 38px !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  color: var(--ink) !important;
  background: var(--canvas) !important;
  outline: none !important;
  height: auto !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

.bnm-filter-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--canvas);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%236B6878' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
}

.bnm-input-wrapper input:focus,
.bnm-filter-group select:focus {
  border-color: var(--brand) !important;
  background: var(--surface) !important;
}

.bnm-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.bnm-submit-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bnm-submit-btn:hover {
  filter: brightness(1.05);
  box-shadow: var(--shadow);
}

.bnm-reset-btn {
  display: block;
  text-align: center;
  padding: 11px 18px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.bnm-reset-btn:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
}

/* Circular Button Pagination */
.bnm-pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 10px 0;
}

.bnm-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bnm-page-num-btn,
.bnm-page-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.bnm-page-num-btn:hover,
.bnm-page-nav-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.bnm-page-num-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.bnm-page-dots {
  color: var(--ink-soft);
  font-size: 16px;
  padding: 0 4px;
}

.bnm-results-section.full-width {
  width: 100%;
}

.bnm-filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.bnm-filter-sidebar-title {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bnm-filter-group {
  margin-bottom: 18px;
}

.bnm-filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bnm-input,
.bnm-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.bnm-input:focus,
.bnm-select:focus {
  border-color: var(--brand);
}

.bnm-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.bnm-btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}

.bnm-btn-primary {
  background: var(--brand);
  color: #fff;
}

.bnm-btn-secondary {
  background: var(--canvas);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  text-decoration: none;
}

/* Results Grid */
.bnm-results-section {
  display: flex;
  flex-direction: column;
}

.bnm-results-header {
  margin-bottom: 20px;
}

.bnm-results-title {
  font-size: 18px;
  font-weight: 600;
}

.bnm-results-title .bnm-count {
  color: var(--brand);
}

.bnm-names-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Listing Name Card matching mockup */
.bnm-name-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.bnm-name-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.bnm-name-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.bnm-name-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  color: var(--ink);
}

.bnm-name-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}

.bnm-badge-boy {
  background: #e0f2fe;
  color: #0369a1;
}

.bnm-badge-girl {
  background: #fce7f3;
  color: #be185d;
}

.bnm-badge-unisex {
  background: #f3e8ff;
  color: #6b21a8;
}

.bnm-name-meaning {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 10px 0 14px;
  line-height: 1.55;
  flex: 1;
}

.bnm-name-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bnm-meta-item {
  font-size: 11.5px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bnm-name-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bnm-card-actions {
  display: none;
  gap: 12px;
  align-items: center;
}

.bnm-action {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  transition: color 0.15s ease;
}

.bnm-action:hover,
.bnm-action.active {
  color: var(--rose);
}

.bnm-action-static {
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.bnm-view-details {
  background: var(--btn-view-details-bg, var(--brand-gradient));
  color: var(--btn-view-details-color, #FFFFFF);
  padding: 8px 18px;
  border-radius: var(--radius-pill, 50px);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 8px rgba(var(--brand-primary-rgb, 217, 0, 107), 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, gap 0.15s ease;
}

.bnm-view-details:hover {
  background: var(--btn-view-details-hover-bg, var(--brand-gradient-hover));
  color: var(--btn-view-details-hover-color, #FFFFFF);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb, 217, 0, 107), 0.35);
  gap: 9px;
}

/* Listing pagination matching mockup */
.bnm-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.bnm-pagination-link,
.bnm-pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.bnm-pagination-link {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

.bnm-pagination-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.bnm-pagination-current {
  background: var(--ink);
  color: #fff;
}

/* ==========================================================================
   5. Single Name View Overrides (single-name-page.php)
   ========================================================================== */
.bnm-single-page-wrapper {
  padding: 40px 0;
}

.bnm-single-page-wrapper .page-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumbs */
.bnm-single-page-wrapper .breadcrumb {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bnm-single-page-wrapper .breadcrumb a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}

.bnm-single-page-wrapper .breadcrumb span {
  color: var(--ink-faint);
}

/* Name page hero split layout */
.bnm-single-page-wrapper .hero-wrapper {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.bnm-single-page-wrapper .name-heading {
  font-size: 48px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.bnm-single-page-wrapper .name-heading .pron {
  font-size: 14px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink-soft);
  font-weight: 400;
}

.bnm-single-page-wrapper .short-meaning {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* Hero Badge Tags */
.bnm-single-page-wrapper .hero-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--brand-soft);
  color: var(--brand);
}

/* Pronounce Audio Button */
.bnm-single-page-wrapper .pronounce-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  margin: 15px 0;
}

.bnm-single-page-wrapper .pronounce-btn:hover {
  transform: translateY(-1px);
}

.bnm-single-page-wrapper .pronounce-btn .play-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bnm-single-page-wrapper .pronounce-btn .play-icon {
  width: 12px;
  height: 12px;
  fill: var(--brand);
}

/* Engagement Row buttons */
.bnm-single-page-wrapper .engagement-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.bnm-single-page-wrapper .bnm-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all .15s ease;
}

.bnm-single-page-wrapper .bnm-action-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.bnm-single-page-wrapper .bnm-action-btn.active,
.bnm-single-page-wrapper .bnm-favorite-btn:hover {
  background: var(--rose-soft);
  color: var(--rose);
  border-color: var(--rose);
}

.bnm-single-page-wrapper .bnm-like-btn:hover {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: var(--teal);
}

.bnm-single-page-wrapper .heart-icon {
  width: 16px;
  height: 16px;
}

/* Stats mini */
.bnm-single-page-wrapper .stats-mini {
  display: flex;
  gap: 16px;
  margin-top: 15px;
}

.bnm-single-page-wrapper .stat-tag {
  font-size: 12.5px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Quick Answer Container box style */
.bnm-single-page-wrapper .answer-box {
  margin-top: 24px;
  border-radius: var(--radius);
  padding: 20px 22px;
  background: linear-gradient(180deg, var(--brand-soft), rgba(239, 235, 250, 0.4));
  border: 1px solid #DCD4F2;
  font-size: 15px;
  line-height: 1.6;
}

.bnm-single-page-wrapper .answer-box .lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Floating info card (Right) */
.bnm-single-page-wrapper .hero-card-col .info-card-new {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.bnm-single-page-wrapper .hero-card-col .card-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bnm-single-page-wrapper .hero-card-col .card-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 0;
}

.bnm-single-page-wrapper .hero-card-col .card-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bnm-single-page-wrapper .hero-card-col .detail-label {
  font-weight: 600;
  color: var(--ink-soft);
}

/* Data Grid showing Rashi, Nakshatra, Numerology */
.bnm-single-page-wrapper .data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.bnm-single-page-wrapper .data-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand);
}

.bnm-single-page-wrapper .data-card.rashi {
  border-top-color: var(--marigold);
}

.bnm-single-page-wrapper .data-card.nakshatra {
  border-top-color: var(--teal);
}

.bnm-single-page-wrapper .data-card.numerology {
  border-top-color: var(--rose);
}

.bnm-single-page-wrapper .data-card .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  font-weight: 600;
  display: block;
}

.bnm-single-page-wrapper .data-card .v {
  font-family: 'Sora', sans-serif;
  font-size: 21px;
  margin: 8px 0 10px;
  font-weight: 700;
}

.bnm-single-page-wrapper .data-card .d {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Popularity Trend Bars */
.bnm-single-page-wrapper .trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin-top: 10px;
}

.bnm-single-page-wrapper .trend-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  display: block;
  background: var(--brand-soft);
}

.bnm-single-page-wrapper .trend-bars i:last-child {
  background: linear-gradient(180deg, var(--grad-a), var(--grad-b));
}

/* Similar Names Chips */
.bnm-single-page-wrapper .similar-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.bnm-single-page-wrapper .similar-chip {
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 13.5px;
  background: var(--surface);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s ease;
}

.bnm-single-page-wrapper .similar-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

/* ==========================================================================
   6. Footer Styles
   ========================================================================== */
footer.site-footer {
  background: #151426 !important;
  color: rgba(255, 255, 255, 0.68) !important;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 52px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

footer.site-footer h4 {
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #B8A9F0;
  margin-bottom: 16px;
  font-weight: 600;
}

footer.site-footer a {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.68) !important;
  margin-bottom: 10px;
  text-decoration: none;
}

footer.site-footer a:hover {
  color: #fff !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-stat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #fff;
  margin-top: 12px;
}

/* Footer Social Icons */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.footer-socials a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-socials a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border-color: transparent;
}

/* Individual Brand Colors on Hover */
.footer-socials a[title="Facebook"]:hover {
  background: #1877F2 !important;
  color: #fff !important;
}

.footer-socials a[title="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #fff !important;
}

.footer-socials a[title="Pinterest"]:hover {
  background: #E60023 !important;
  color: #fff !important;
}

.footer-socials a[title="YouTube"]:hover {
  background: #FF0000 !important;
  color: #fff !important;
}

/* Drawer Socials */
.drawer-socials {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.drawer-socials-label {
  display: block;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.drawer-socials-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-socials-links a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  transition: all 0.2s ease;
}

.drawer-socials-links a:hover {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   7. Responsive Adaptability
   ========================================================================== */
@media (max-width: 991px) {
  /* Hide 'Follow us:' label in top header on mobile */
  .top-bar-label {
    display: none;
  }

  .top-bar-inner {
    padding: 0 16px;
  }

  .header-inner {
    padding: 10px 18px;
  }

  .site-header .custom-logo {
    max-height: 34px;
  }

  .logo {
    font-size: 17px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  /* Hide regular inline search on mobile header */
  .header-actions .header-search {
    display: none;
  }

  /* Show toggle buttons */
  .mobile-search-toggle,
  .mobile-menu-toggle {
    display: inline-flex;
  }

  /* Transform main-nav into a modern slide-out drawer */
  nav.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    max-width: 82vw;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    padding: 16px 18px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--border);
  }

  nav.main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  .nav-drawer-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
  }

  .nav-drawer-close {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    padding: 0;
    transition: all 0.15s ease;
  }

  .nav-drawer-close:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
  }

  .main-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .main-nav-list > li {
    width: 100%;
  }

  .main-nav-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 14px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
  }

  .main-nav-list > li > a:hover,
  .main-nav-list > li > a:active {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: var(--border);
  }

  /* Mobile nested sub-menu inside drawer: collapsed by default */
  .main-nav-list .sub-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--canvas);
    border-radius: 8px;
    padding: 6px 0 6px 12px;
    margin: 4px 0 8px;
    transition: all 0.2s ease;
  }

  /* Show sub-menu only when parent is expanded */
  .main-nav-list > li.is-expanded > .sub-menu {
    display: block;
    animation: fadeInMenu 0.2s ease;
  }

  /* Rotate chevron when expanded in mobile */
  .main-nav-list > li.menu-item-has-children > a::after {
    transition: transform 0.2s ease;
  }

  .main-nav-list > li.is-expanded > a::after {
    transform: rotate(180deg);
  }

  @keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .main-nav-list .sub-menu a {
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-soft);
    border-radius: 6px;
    border-bottom: none;
  }

  .main-nav-list .sub-menu a:hover {
    background: var(--surface);
    color: var(--brand);
  }

  /* Trending Slider controls layout for mobile */
  .section-head {
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
  }

  .section-head .slider-nav-wrap {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
  }

  .slider-nav-wrap .slider-arrows {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 860px) {

  .hero-grid,
  .bnm-single-page-wrapper .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bnm-search-layout {
    grid-template-columns: 1fr;
  }

  /* Responsive Slide-out Mobile Filters Drawer */
  .bnm-mobile-filter-bar {
    display: block;
  }

  .bnm-filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: var(--surface);
    z-index: 999999;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    border-radius: 0;
    border: none;
    padding: 24px;
  }

  .bnm-filter-sidebar.open {
    left: 0;
  }

  .bnm-sidebar-header {
    display: flex;
  }

  body.bnm-lock-scroll {
    overflow: hidden;
  }

  .cat-grid,
  .bnm-names-grid,
  .bnm-single-page-wrapper .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid h1 {
    font-size: 36px;
  }

  /* Compact 'Find name' button for mobile */
  .search-pill-container .btn-grad,
  .search-pill-container button[type="submit"] {
    padding: 4px 4px !important;
  }
}

@media (max-width: 480px) {

  .cat-grid,
  .bnm-names-grid,
  .bnm-single-page-wrapper .data-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Online Tools Hub Page Styling
   ========================================================================== */
/* Page layout resets for tools hub page */
.page-template-page-online-tools #page,
.page-template-page-online-tools .inside-article,
.page-template-page-online-tools .separate-containers .site-main,
.tools-hub-page {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.page-template-page-online-tools .site-content {
  display: block;
}

.page-template-page-online-tools #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.tools-hero-section {
  padding-top: 52px;
  padding-bottom: 24px;
  background: transparent;
  border-bottom: none;
  position: relative;
}

.tools-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.tools-hero-left h1 {
  font-size: 46px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.tools-hero-left p.sub {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin: 18px 0 28px;
  max-width: 480px;
  line-height: 1.6;
}

.tools-featured-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  box-sizing: border-box;
}

.tools-featured-name {
  font-size: 26px;
  margin: 4px 0 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

.tools-featured-chips {
  margin-top: 16px;
  margin-bottom: 20px;
}

.tools-featured-cta {
  width: 100% !important;
  justify-content: center !important;
}

.tools-featured-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-primary-rgb), 0.18), rgba(var(--brand-secondary-rgb), 0.08) 70%, transparent);
}

.tools-breadcrumbs {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tools-breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.tools-breadcrumbs a:hover {
  color: var(--brand);
}

.tools-breadcrumbs .sep {
  opacity: 0.4;
}

.tools-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-tint);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tools-page-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 860px;
}

.tools-page-subtitle {
  font-size: clamp(15.5px, 1.8vw, 17.5px);
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: 740px;
  margin: 0 0 28px;
}

.tools-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(28, 27, 41, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 42px;
}

.filter-pill:hover {
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.15);
}

.filter-pill.active {
  background: var(--brand-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(var(--brand-primary-rgb), 0.35);
  transform: translateY(-2px);
}

.filter-pill.active i,
.filter-pill.active span {
  color: #FFFFFF;
}

/* Tools Grid Section */
.tools-grid-section {
  padding-top: 36px;
  padding-bottom: 48px;
}

.tools-empty-state {
  display: none;
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-soft);
}

.tools-empty-state i {
  font-size: 38px;
  opacity: 0.35;
  margin-bottom: 14px;
  display: block;
}

.tools-empty-state p {
  font-size: 16px;
  margin: 0;
}

/* Tools Benefits Section */
.tools-benefits-section {
  padding-top: 40px;
  padding-bottom: 52px;
  background: var(--canvas);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tools-benefits-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.tools-benefits-head .eyebrow {
  color: var(--brand-primary);
  font-weight: 600;
}

.tools-benefits-head h2 {
  font-size: 28px;
  margin-top: 6px;
}

.tools-benefits-head p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* Search CTA Section */
.tools-search-cta {
  padding-top: 48px;
  padding-bottom: 48px;
}

.tools-search-cta .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

/* FAQ Section */
.tools-faq-section {
  padding-top: 24px;
  padding-bottom: 64px;
}

.tools-faq-wrap {
  max-width: 840px;
}

.tools-faq-head {
  margin-bottom: 28px;
}

.tools-faq-head .eyebrow {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 16px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(var(--brand-primary-rgb), 0.12);
  border-color: var(--brand-primary-tint);
}

.tool-card:hover::before {
  background: var(--brand-gradient);
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tool-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
}

.tool-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-hot {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary-tint);
}

.badge-trending {
  background: var(--brand-secondary-soft);
  color: var(--brand-secondary);
  border: 1px solid var(--brand-secondary-tint);
}

.badge-astro {
  background: var(--c-nakshatra-bg);
  color: var(--c-nakshatra);
  border: 1px solid #CFFAFE;
}

.badge-utility {
  background: var(--marigold-soft);
  color: var(--marigold);
  border: 1px solid #FDE68A;
}

.badge-finance {
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid #A7F3D0;
}

.tool-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 600;
}

.tool-title {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.tool-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tool-title a:hover {
  color: var(--brand-primary);
}

.tool-tagline {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 0 0 10px;
}

.tool-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 18px;
  flex: 1;
}

.tool-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tool-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.tool-feature-tag i {
  color: #10B981;
  font-size: 11px;
}

.tool-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.tool-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 46px;
}

.tool-action-btn:hover {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px -4px rgba(var(--brand-primary-rgb), 0.45);
}

.tool-action-btn i {
  transition: transform 0.2s ease;
}

.tool-action-btn:hover i {
  transform: translateX(4px);
}

/* Benefits Section */
.tools-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* Tools CTA Box */
.tools-cta-box {
  background: var(--brand-gradient);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-lg);
}

.tools-cta-text h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  margin: 8px 0 12px;
  line-height: 1.25;
}

.tools-cta-text p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  margin: 0;
  max-width: 580px;
  line-height: 1.6;
}

.btn-grad-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 26px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-grad-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color: var(--brand-primary-hover);
}

@media (max-width: 991px) {
  .tools-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tools-hero-left h1 {
    font-size: clamp(32px, 5vw, 42px);
    line-height: 1.15;
  }

  .tools-hero-left p.sub {
    max-width: 100%;
    margin: 14px 0 22px;
  }

  .tools-hero-right {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .tools-featured-card {
    padding: 26px 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .tools-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  
  .tools-cta-text p {
    margin: 0 auto;
  }
  
  .btn-grad-white {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .tools-hero-section {
    padding: 28px 0 20px;
  }

  .tools-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tools-hero-left h1 {
    font-size: clamp(26px, 6vw, 34px);
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .tools-hero-left p.sub {
    font-size: 15px;
    line-height: 1.55;
    margin: 12px 0 20px;
  }

  .tools-filter-pills {
    gap: 8px;
  }

  .filter-pill {
    padding: 8px 14px;
    font-size: 12.5px;
    min-height: 38px;
  }

  .tools-hero-right {
    width: 100%;
    max-width: 100%;
  }

  .tools-featured-card {
    padding: 22px 18px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .tools-featured-card .name,
  .tools-featured-name {
    font-size: clamp(20px, 4.5vw, 24px) !important;
    line-height: 1.3;
  }

  .tools-featured-card .meaning {
    font-size: 14px;
    line-height: 1.55;
    margin: 6px 0 14px;
  }

  .tools-featured-card .chip-row,
  .tools-featured-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px !important;
    margin-bottom: 18px !important;
  }

  .tools-featured-card .chip-row .capsule {
    font-size: 11.5px;
    padding: 4px 10px;
  }

  .tools-featured-card .btn-grad,
  .tools-featured-cta {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    min-height: 44px !important;
    box-sizing: border-box;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-card {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .tools-hero-left h1 {
    font-size: 25px;
  }

  .tools-featured-card {
    padding: 18px 14px;
  }

  .tools-featured-card .name,
  .tools-featured-name {
    font-size: 21px !important;
  }
}

/* ==========================================================================
   Baby Names Directory Editorial & SEO Guide Styles
   Matches .bnm-container body content width (1160px) and prevents edge bleeding
   ========================================================================== */
.page-template-page-baby-names .entry-content > :not(.bnm-search-page):not(script):not(style),
.page-id-6 .entry-content > :not(.bnm-search-page):not(script):not(style) {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Headings & Text Rhythm */
.page-id-6 .entry-content > h2.wp-block-heading,
.page-template-page-baby-names .entry-content > h2.wp-block-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--ink, #111827);
  margin-top: 24px;
  margin-bottom: 16px;
  line-height: 1.35;
}

.page-id-6 .entry-content > h3.wp-block-heading,
.page-template-page-baby-names .entry-content > h3.wp-block-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--ink, #1f2937);
  margin-top: 36px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.page-id-6 .entry-content > p,
.page-template-page-baby-names .entry-content > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft, #4b5563);
  margin-bottom: 20px;
}

/* Featured / Guide Image */
.page-id-6 .entry-content > .wp-block-image,
.page-template-page-baby-names .entry-content > .wp-block-image {
  margin-top: 64px !important;
  margin-bottom: 28px !important;
}

.page-id-6 .entry-content > .wp-block-image img,
.page-template-page-baby-names .entry-content > .wp-block-image img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.page-id-6 .entry-content > .wp-block-image figcaption,
.page-template-page-baby-names .entry-content > .wp-block-image figcaption {
  font-size: 14px;
  color: var(--ink-soft, #6b7280);
  margin-top: 10px;
  text-align: center;
}

/* Lists */
.page-id-6 .entry-content > ul,
.page-template-page-baby-names .entry-content > ul,
.page-id-6 .entry-content > ol,
.page-template-page-baby-names .entry-content > ol {
  padding-left: 48px;
  margin-bottom: 28px;
}

.page-id-6 .entry-content > ul li,
.page-template-page-baby-names .entry-content > ul li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft, #374151);
  margin-bottom: 12px;
}

/* Table of Contents (Rank Math) */
.page-id-6 .entry-content > .wp-block-rank-math-toc-block,
.page-template-page-baby-names .entry-content > .wp-block-rank-math-toc-block {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 28px !important;
  margin-bottom: 36px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.page-id-6 .entry-content .wp-block-rank-math-toc-block h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, #111827);
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-primary-soft, #fdf2f8);
}

.page-id-6 .entry-content .wp-block-rank-math-toc-block ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-id-6 .entry-content .wp-block-rank-math-toc-block li a {
  color: var(--brand-primary, #D9006B);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-id-6 .entry-content .wp-block-rank-math-toc-block li a:hover {
  color: var(--brand-primary-hover, #B30058);
  text-decoration: underline;
  transform: translateX(3px);
}

/* Comparison Table */
.page-id-6 .entry-content > .wp-block-table,
.page-template-page-baby-names .entry-content > .wp-block-table {
  margin-top: 24px !important;
  margin-bottom: 36px !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-id-6 .entry-content .wp-block-table table,
.page-template-page-baby-names .entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
}

.page-id-6 .entry-content .wp-block-table th,
.page-template-page-baby-names .entry-content .wp-block-table th {
  background: var(--surface-soft, #f8fafc);
  color: var(--ink, #0f172a);
  font-weight: 700;
  padding: 14px 18px;
  border: 1px solid var(--border, #e2e8f0);
  text-align: left;
}

.page-id-6 .entry-content .wp-block-table td,
.page-template-page-baby-names .entry-content .wp-block-table td {
  padding: 14px 18px;
  border: 1px solid var(--border, #e2e8f0);
  color: var(--ink-soft, #334155);
  line-height: 1.6;
}

.page-id-6 .entry-content .wp-block-table tbody tr:hover td,
.page-template-page-baby-names .entry-content .wp-block-table tbody tr:hover td {
  background: #fdf2f8;
}

/* FAQ Accordions */
.page-id-6 .entry-content > .bnm-faq-accordion,
.page-template-page-baby-names .entry-content > .bnm-faq-accordion {
  margin-top: 20px !important;
  margin-bottom: 60px !important;
}

.bnm-faq-accordion details {
  transition: all 0.2s ease;
  background: var(--surface, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 16px 20px;
}

.bnm-faq-accordion details[open] {
  border-color: var(--brand-primary, #D9006B) !important;
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgba(217, 0, 107, 0.06);
}

.bnm-faq-accordion summary {
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink, #111827);
  cursor: pointer;
  outline: none;
}

.bnm-faq-accordion summary:focus-visible {
  outline: 2px solid var(--brand-primary, #D9006B);
  outline-offset: 2px;
}

.bnm-faq-accordion details p {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft, #4b5563);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-template-page-baby-names .entry-content > :not(.bnm-search-page):not(script):not(style),
  .page-id-6 .entry-content > :not(.bnm-search-page):not(script):not(style) {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-id-6 .entry-content > ul,
  .page-template-page-baby-names .entry-content > ul,
  .page-id-6 .entry-content > ol,
  .page-template-page-baby-names .entry-content > ol {
    padding-left: 36px;
    padding-right: 16px;
  }

  .page-id-6 .entry-content > .wp-block-rank-math-toc-block,
  .page-template-page-baby-names .entry-content > .wp-block-rank-math-toc-block {
    padding: 18px 20px;
    margin-top: 20px !important;
    margin-bottom: 28px !important;
  }

  .page-id-6 .entry-content > .wp-block-image,
  .page-template-page-baby-names .entry-content > .wp-block-image {
    margin-top: 40px !important;
  }
}

/* ==========================================================================
   Homepage Editorial & SEO / AEO / GEO Guide Styles
   100% WP-Admin Gutenberg Editable & Brand Tokens Compliant
   ========================================================================== */
.home-editorial-section {
  border-top: 1px solid var(--border, #f1f2f6);
  background: var(--surface, #ffffff);
}

.home-editorial-section .wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-editorial-section .entry-content > h2.wp-block-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--ink, #111827);
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.35;
}

.home-editorial-section .entry-content > h3.wp-block-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--ink, #1f2937);
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.home-editorial-section .entry-content > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft, #4b5563);
  margin-bottom: 20px;
}

.home-editorial-section .entry-content a {
  color: var(--brand-primary, #D9006B);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.home-editorial-section .entry-content a:hover {
  color: var(--brand-primary-hover, #B30058);
}

.home-editorial-section .entry-content > ul,
.home-editorial-section .entry-content > ol {
  padding-left: 36px;
  margin-bottom: 26px;
}

.home-editorial-section .entry-content > ul li,
.home-editorial-section .entry-content > ol li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft, #374151);
  margin-bottom: 10px;
}

/* Callout Card (AEO Quick Takeaway / Summary) */
.home-editorial-section .home-callout-box {
  background: var(--brand-primary-soft, #fdf2f8);
  border-left: 4px solid var(--brand-primary, #D9006B);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
}

.home-editorial-section .home-callout-box h3,
.home-editorial-section .home-callout-box h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--ink, #111827);
  font-size: 18px;
  font-weight: 700;
}

.home-editorial-section .home-callout-box p {
  margin-bottom: 0;
  color: var(--ink-soft, #374151);
}

/* Rank Math Table of Contents on Home */
.home-editorial-section .entry-content > .wp-block-rank-math-toc-block {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 28px !important;
  margin-bottom: 36px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.home-editorial-section .entry-content .wp-block-rank-math-toc-block h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, #111827);
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-primary-soft, #fdf2f8);
}

.home-editorial-section .entry-content .wp-block-rank-math-toc-block ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-editorial-section .entry-content .wp-block-rank-math-toc-block li a {
  color: var(--brand-primary, #D9006B);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-editorial-section .entry-content .wp-block-rank-math-toc-block li a:hover {
  color: var(--brand-primary-hover, #B30058);
  text-decoration: underline;
  transform: translateX(3px);
}

/* Comparison Table (GEO Regional & Cultural Traditions Matrix) */
.home-editorial-section .entry-content > .wp-block-table {
  margin-top: 24px !important;
  margin-bottom: 36px !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.home-editorial-section .entry-content .wp-block-table table {
  width: 100%;
  min-width: 720px;
  table-layout: auto !important;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
}

.home-editorial-section .entry-content .wp-block-table th {
  background: var(--surface-soft, #f8fafc);
  color: var(--ink, #0f172a);
  font-weight: 700;
  padding: 14px 18px;
  border: 1px solid var(--border, #e2e8f0);
  text-align: left;
}

.home-editorial-section .entry-content .wp-block-table td {
  padding: 14px 18px;
  border: 1px solid var(--border, #e2e8f0);
  color: var(--ink-soft, #334155);
  line-height: 1.6;
}

.home-editorial-section .entry-content .wp-block-table tbody tr:hover td {
  background: var(--brand-primary-soft, #fdf2f8);
}

/* Home Featured Illustration */
.home-editorial-section .entry-content > .wp-block-image {
  margin-top: 36px !important;
  margin-bottom: 28px !important;
}

.home-editorial-section .entry-content > .wp-block-image img {
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.home-editorial-section .entry-content > .wp-block-image figcaption {
  font-size: 14px;
  color: var(--ink-soft, #6b7280);
  margin-top: 10px;
  text-align: center;
}

/* Mobile Responsiveness & Card Transformation */
@media (max-width: 768px) {
  /* Mobile compact 'Find name' button */
  .search-pill-container .btn-grad,
  .search-pill-container button[type="submit"] {
    padding: 4px 4px !important;
  }

  .home-editorial-section .wrap {
    padding: 0 16px;
  }
  
  .home-editorial-section .entry-content > ul,
  .home-editorial-section .entry-content > ol {
    padding-left: 24px;
  }

  .home-editorial-section .entry-content > .wp-block-rank-math-toc-block {
    padding: 18px 20px;
  }

  /* Transform table into mobile cards */
  .home-editorial-section .entry-content > .wp-block-table {
    overflow: visible;
    margin-top: 20px !important;
    margin-bottom: 28px !important;
  }

  .home-editorial-section .entry-content .wp-block-table table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .home-editorial-section .entry-content .wp-block-table thead {
    display: none;
  }

  .home-editorial-section .entry-content .wp-block-table tbody {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }

  .home-editorial-section .entry-content .wp-block-table tr {
    display: block;
    background: var(--surface, #ffffff);
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .home-editorial-section .entry-content .wp-block-table tr:hover {
    box-shadow: 0 6px 20px rgba(217, 0, 107, 0.08);
  }

  .home-editorial-section .entry-content .wp-block-table td {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border: none !important;
    border-bottom: 1px dashed var(--border, #f1f2f6) !important;
    background: transparent !important;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft, #374151);
  }

  .home-editorial-section .entry-content .wp-block-table td:last-child {
    border-bottom: none !important;
    padding-bottom: 2px;
  }

  /* Tradition Header Cell */
  .home-editorial-section .entry-content .wp-block-table td:first-child {
    font-family: 'Sora', sans-serif;
    font-size: 17.5px;
    font-weight: 700;
    color: var(--brand-primary, #D9006B);
    padding-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-primary-soft, #fdf2f8) !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  /* Field Labels */
  .home-editorial-section .entry-content .wp-block-table td:nth-child(2)::before {
    content: "Root Language";
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary, #D9006B);
    margin-bottom: 3px;
    display: block;
  }

  .home-editorial-section .entry-content .wp-block-table td:nth-child(3)::before {
    content: "Spiritual Philosophy";
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary, #D9006B);
    margin-bottom: 3px;
    display: block;
  }

  .home-editorial-section .entry-content .wp-block-table td:nth-child(4)::before {
    content: "Sacred Naming Rite";
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary, #D9006B);
    margin-bottom: 3px;
    display: block;
  }

  .home-editorial-section .entry-content .wp-block-table td:nth-child(5)::before {
    content: "Classic & Modern Examples";
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary, #D9006B);
    margin-bottom: 3px;
    display: block;
  }
}

/* ==========================================================================
   BLOG HUB ARCHIVE & SINGLE POST STYLES (Brand Tokens Compliant & WCAG AA)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Shared Blog Containers & Breadcrumbs
   -------------------------------------------------------------------------- */
.blog-hub-page,
.single-blog-post-page {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 80vh;
  padding-bottom: 60px;
}

.blog-hub-container,
.single-blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.blog-hub-breadcrumbs,
.single-blog-breadcrumbs {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}

.blog-hub-breadcrumbs ol,
.single-blog-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.blog-hub-breadcrumbs a,
.single-blog-breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-hub-breadcrumbs a:hover,
.single-blog-breadcrumbs a:hover {
  color: var(--brand-primary);
}

.breadcrumb-separator {
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   2. Blog Hub: Hero Section
   -------------------------------------------------------------------------- */
.blog-hub-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--brand-primary-soft) 100%);
  padding: 44px 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.blog-hub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 18px;
}

.blog-hub-hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  max-width: 850px;
  margin: 0 auto 16px;
  letter-spacing: -0.02em;
}

.blog-hub-hero-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 24px;
}

.blog-hub-trust-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.trust-item strong {
  color: var(--ink);
}

.trust-divider {
  color: var(--ink-faint);
}

/* Instant Search Input */
.blog-hub-search-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.blog-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 4px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 20px rgba(var(--brand-primary-rgb), 0.15);
}

.search-icon {
  font-size: 16px;
  margin-right: 10px;
  color: var(--ink-faint);
}

.blog-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  min-height: 44px;
}

.blog-search-input::placeholder {
  color: var(--ink-faint);
}

.blog-search-clear {
  background: var(--canvas);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0;
  transition: all 0.2s ease;
}

.blog-search-clear:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* --------------------------------------------------------------------------
   3. Blog Hub: Category Filter Nav
   -------------------------------------------------------------------------- */
.blog-hub-filter-nav {
  padding: 20px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.blog-filter-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.blog-filter-pills::-webkit-scrollbar {
  height: 4px;
}

.blog-filter-pills::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.filter-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill .pill-count {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}

.filter-pill:hover {
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.filter-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.25);
}

.filter-pill.active .pill-count {
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   4. Blog Hub: Main Content & Featured Post
   -------------------------------------------------------------------------- */
.blog-hub-main-content {
  padding-top: 36px;
}

.blog-featured-section {
  margin-bottom: 48px;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.featured-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--canvas);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-featured-card:hover .featured-media img {
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.featured-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.post-cat-pill {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.meta-dot {
  color: var(--ink-faint);
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 14px;
}

.featured-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-title a:hover {
  color: var(--brand-primary);
}

.featured-excerpt {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.btn-read-featured {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  background: var(--brand-gradient);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-read-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(var(--brand-primary-rgb), 0.35);
}

.btn-read-featured .btn-arrow {
  transition: transform 0.2s ease;
}

.btn-read-featured:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Blog Hub: Articles Grid
   -------------------------------------------------------------------------- */
.blog-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.blog-grid-header .section-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.articles-count {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--canvas);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card:hover .card-media img {
  transform: scale(1.05);
}

.card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--brand-primary);
}

.card-excerpt {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
}

.author-tag {
  color: var(--ink-faint);
  font-size: 12px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s ease;
  min-height: 44px;
}

.card-link:hover {
  gap: 10px;
}

/* Empty Search State */
.blog-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
  margin-bottom: 48px;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.blog-empty-state h3 {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}

.blog-empty-state p {
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 20px;
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  min-height: 44px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Blog Hub: Cross-Promo Banner
   -------------------------------------------------------------------------- */
.blog-cross-promo-banner {
  background: linear-gradient(135deg, var(--surface) 0%, var(--brand-secondary-soft) 100%);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand-secondary);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  margin-top: 12px;
}

.promo-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-secondary-soft);
  color: var(--brand-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  margin-bottom: 12px;
}

.promo-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.promo-desc {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 680px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.promo-btn-primary {
  background: var(--brand-primary);
  color: #fff !important;
}

.promo-btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
}

.promo-btn-secondary {
  background: var(--brand-secondary);
  color: #fff !important;
}

.promo-btn-secondary:hover {
  background: var(--brand-secondary-hover);
  transform: translateY(-2px);
}

.promo-btn-accent {
  background: var(--surface);
  color: var(--ink) !important;
  border: 1px solid var(--border);
}

.promo-btn-accent:hover {
  background: var(--canvas);
  transform: translateY(-2px);
}

/* ==========================================================================
   SINGLE BLOG POST STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header & Hero Media
   -------------------------------------------------------------------------- */
.single-blog-header {
  padding: 36px 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.single-blog-header-badge {
  margin-bottom: 14px;
}

.badge-cat-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  min-height: 36px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.badge-cat-link:hover {
  background: var(--brand-primary);
  color: #fff;
}

.single-blog-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.28;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.single-blog-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.single-blog-hero-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 520px;
  background: var(--canvas);
}

.single-blog-hero-media img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   2. Single Blog: 2-Column Responsive Layout
   -------------------------------------------------------------------------- */
.single-blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-top: 40px;
}

.single-blog-main-column {
  min-width: 0; /* Prevents flex/grid blowouts */
}

/* --------------------------------------------------------------------------
   3. AEO Quick Takeaways / TL;DR Box
   -------------------------------------------------------------------------- */
.single-blog-aeo-box {
  background: linear-gradient(135deg, var(--surface) 0%, var(--brand-primary-soft) 100%);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand-primary);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.aeo-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.aeo-icon {
  font-size: 20px;
}

.aeo-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.aeo-summary {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 14px;
}

.aeo-points {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.aeo-points li {
  margin-bottom: 6px;
}

.aeo-points strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   4. Dynamic Table of Contents (TOC)
   -------------------------------------------------------------------------- */
.single-blog-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 36px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 0;
}

.toc-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
}

.toc-chevron {
  font-size: 12px;
  color: var(--ink-soft);
}

.toc-list {
  margin: 16px 0 4px;
  padding-left: 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.toc-item {
  margin-bottom: 8px;
  font-size: 14px;
}

.toc-level-3 {
  margin-left: 16px;
  list-style-type: circle;
}

.toc-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* Target scroll offset for headers */
.blog-anchor-heading {
  scroll-margin-top: 90px;
}

/* --------------------------------------------------------------------------
   5. Core Article Content Typography & Media
   -------------------------------------------------------------------------- */
.single-blog-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 40px;
}

.single-blog-content p {
  margin-bottom: 22px;
}

.single-blog-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 18px;
  line-height: 1.35;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.single-blog-content h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 14px;
  line-height: 1.4;
}

.single-blog-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
}

.single-blog-content ul,
.single-blog-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.single-blog-content li {
  margin-bottom: 8px;
}

.single-blog-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: var(--brand-primary-soft);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--ink);
}

.single-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px auto;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.single-blog-content figure {
  margin: 28px 0;
}

.single-blog-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* In-Content Tables */
.single-blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.single-blog-content th,
.single-blog-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.single-blog-content th {
  background: var(--canvas);
  font-weight: 700;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   6. In-Article Tool Callout Box
   -------------------------------------------------------------------------- */
.single-blog-tool-callout {
  display: flex;
  gap: 20px;
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--brand-secondary-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 40px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tool-callout-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.tool-callout-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.tool-callout-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}

.tool-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-tool-callout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  min-height: 44px;
  background: var(--brand-primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-tool-callout:hover {
  background: var(--brand-primary-hover);
}

.btn-tool-callout-alt {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  min-height: 44px;
  background: var(--surface);
  color: var(--brand-secondary) !important;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}

.btn-tool-callout-alt:hover {
  background: var(--canvas);
}

/* --------------------------------------------------------------------------
   7. Single Blog: Tags & Share Dock
   -------------------------------------------------------------------------- */
.single-blog-tags-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.tags-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
}

.single-blog-share-dock {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 36px;
}

.share-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.share-whatsapp {
  background: #25D366;
  color: #FFFFFF !important;
}

.share-facebook {
  background: #1877F2;
  color: #FFFFFF !important;
}

.share-twitter {
  background: #000000;
  color: #FFFFFF !important;
}

.share-pinterest {
  background: #E60023;
  color: #FFFFFF !important;
}

.share-copy {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--border);
}

.share-copy:hover {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.copy-toast {
  position: absolute;
  bottom: -32px;
  right: 20px;
  background: var(--ink);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   8. Author Bio Card & Post Navigation
   -------------------------------------------------------------------------- */
.single-blog-author-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 36px;
}

.author-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.author-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.author-card-bio {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 12px;
}

.author-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink-soft);
}

.single-blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.nav-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.nav-dir {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. Related Articles Grid
   -------------------------------------------------------------------------- */
.single-blog-related-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid var(--border);
}

.related-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 24px;
}

.related-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
}

.related-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--canvas);
}

.related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
}

.related-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
  flex: 1;
}

.related-title a {
  color: var(--ink);
  text-decoration: none;
}

.related-title a:hover {
  color: var(--brand-primary);
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   10. Single Blog: Sticky Sidebar Widgets
   -------------------------------------------------------------------------- */
.single-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sidebar-widget .widget-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.sidebar-widget .widget-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 16px;
}

/* Search widget */
.sidebar-search-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-search-form input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  min-height: 44px;
  outline: none;
}

.sidebar-search-form input:focus {
  border-color: var(--brand-primary);
}

.btn-sidebar-search {
  padding: 10px 16px;
  min-height: 44px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-sidebar-search:hover {
  background: var(--brand-primary-hover);
}

/* Tools widget */
.widget-tools-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.widget-tool-item:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  transform: translateX(3px);
}

.tool-emoji {
  font-size: 22px;
}

.tool-info {
  display: flex;
  flex-direction: column;
}

.tool-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.tool-sub {
  font-size: 11px;
  color: var(--ink-soft);
}

/* Browse all guides widget */
.btn-all-guides {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  min-height: 44px;
  background: var(--brand-gradient);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-all-guides:hover {
  opacity: 0.95;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile-First Compliance)
   ========================================================================== */

/* Tablet & Mobile (max-width: 991px) */
@media (max-width: 991px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 240px;
  }

  .featured-body {
    padding: 24px;
  }

  .blog-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .single-blog-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .single-blog-sidebar {
    margin-top: 16px;
  }
}

/* Mobile Devices (max-width: 640px) */
@media (max-width: 640px) {
  .blog-hub-hero {
    padding: 28px 0 24px;
  }

  .blog-hub-trust-bar {
    border-radius: 14px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .trust-divider {
    display: none;
  }

  .blog-cards-grid {
    grid-template-columns: 1fr;
  }

  .single-blog-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .single-blog-meta-bar .meta-divider {
    display: none;
  }

  .single-blog-post-nav {
    grid-template-columns: 1fr;
  }

  .related-cards-grid {
    grid-template-columns: 1fr;
  }

  .single-blog-tool-callout {
    flex-direction: column;
    gap: 12px;
  }

  .single-blog-share-dock {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-buttons {
    width: 100%;
  }

  .share-btn {
    flex: 1;
    min-width: 44%;
  }
}

/* Ultra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .blog-hub-container,
  .single-blog-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .featured-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-read-featured {
    width: 100%;
    justify-content: center;
  }

  .share-btn {
    width: 100%;
    min-width: 100%;
  }
}

/* ==========================================================================
   Policy & Legal Pages (Disclaimer, Privacy Policy)
   ========================================================================== */

.policy-page-container {
  background: var(--canvas);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 80px;
}

.policy-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumbs */
.policy-breadcrumbs,
.faq-breadcrumbs {
  padding: 16px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.policy-breadcrumbs ol,
.faq-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.policy-breadcrumbs a,
.faq-breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.policy-breadcrumbs a:hover,
.faq-breadcrumbs a:hover {
  color: var(--brand-primary);
}

.policy-breadcrumbs .separator,
.faq-breadcrumbs .separator {
  color: var(--ink-muted);
  opacity: 0.6;
}

.policy-breadcrumbs [aria-current="page"],
.faq-breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Hero Header */
.policy-hero {
  background: var(--brand-gradient-subtle);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
  text-align: center;
}

.policy-badge,
.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary-tint);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(217, 0, 107, 0.08);
}

.policy-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}

.policy-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.policy-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.policy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.policy-meta-dot {
  color: var(--border);
}

/* Policy Layout: 2-Column Desktop, 1-Column Mobile */
.policy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

/* Quick Navigation Sidebar */
.policy-nav-sidebar {
  position: sticky;
  top: 96px;
}

.policy-nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.policy-nav-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.policy-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.15s ease;
}

.policy-nav-link:hover,
.policy-nav-link:focus-visible {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-weight: 600;
  padding-left: 16px;
}

/* Article Body & Sections */
.policy-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.policy-callout-box {
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-tint);
  border-left: 5px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.policy-callout-box .callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-primary);
  font-size: 16px;
  margin-bottom: 10px;
}

.policy-callout-box p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.policy-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.policy-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}

.policy-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 10px;
}

.policy-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: 0 0 20px 20px;
  padding: 0;
  color: var(--ink-soft);
}

.policy-section li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.policy-notice-card {
  background: var(--brand-secondary-soft);
  border: 1px solid var(--brand-secondary-tint);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px 0;
}

.policy-notice-card p {
  color: var(--ink);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
}

/* Policy Table */
.policy-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.policy-table th {
  background: var(--canvas);
  color: var(--ink);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.policy-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  vertical-align: top;
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table tr:hover td {
  background: rgba(217, 0, 107, 0.02);
}

/* GDPR Rights Grid */
.policy-rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.policy-right-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.policy-right-card:hover {
  border-color: var(--brand-secondary);
  transform: translateY(-2px);
}

.policy-right-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-secondary);
  margin: 0 0 8px;
}

.policy-right-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* Policy Contact Card */
.policy-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
}

.policy-contact-card .contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-contact-card .contact-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.policy-contact-card .contact-content p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.5;
}

.policy-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gradient);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  min-height: 44px;
}

.policy-btn-primary:hover,
.policy-btn-primary:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ==========================================================================
   FAQ Page Styles
   ========================================================================== */

.faq-page-container {
  background: var(--canvas);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 80px;
}

.faq-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-hero {
  background: var(--brand-gradient-subtle);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
  text-align: center;
}

.faq-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}

.faq-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Live Search Box */
.faq-search-box {
  max-width: 620px;
  margin: 0 auto;
}

.faq-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.faq-search-input-wrapper .search-icon {
  position: absolute;
  left: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}

#faq-search-input {
  width: 100%;
  padding: 16px 48px 16px 52px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
  min-height: 52px;
}

#faq-search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 8px 24px rgba(217, 0, 107, 0.14);
}

.faq-search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.faq-search-clear:hover {
  color: var(--ink);
}

/* Category Filter Navigation */
.faq-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 36px 0 44px;
}

.faq-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.faq-cat-pill:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.faq-cat-pill.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(217, 0, 107, 0.25);
}

.faq-cat-pill .cat-pill-icon {
  display: flex;
  align-items: center;
}

/* FAQ Group & Items */
.faq-group-section {
  margin-bottom: 40px;
}

.faq-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.faq-group-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-group-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.faq-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Accordion Component */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--brand-primary-tint);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.faq-item[open] {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(217, 0, 107, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  list-style: none;
  min-height: 48px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: -2px;
}

.faq-chevron {
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  border-top: 1px solid var(--brand-primary-soft);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.faq-answer p {
  margin: 14px 0 0;
}

.faq-answer a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: var(--brand-primary-hover);
}

/* No Results State */
.faq-no-results {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  text-align: center;
}

.faq-no-results .no-results-icon {
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.faq-no-results h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.faq-no-results p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

/* FAQ Support CTA Card */
.faq-support-cta {
  margin-top: 64px;
  background: var(--brand-gradient);
  border-radius: 24px;
  padding: 48px 36px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 12px 36px rgba(26, 71, 231, 0.16);
}

.faq-support-cta .cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.faq-support-cta h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
}

.faq-support-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.faq-support-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--brand-primary) !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease;
  min-height: 48px;
}

.faq-cta-btn:hover {
  transform: translateY(-2px);
}

.faq-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease;
  min-height: 48px;
}

.faq-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Footer Bottom Updates */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.footer-bottom-copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom-sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Responsive Adaptations for Policy and FAQ Pages
   ========================================================================== */

@media (max-width: 991px) {
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .policy-nav-sidebar {
    position: relative;
    top: 0;
  }

  .policy-nav-card {
    padding: 16px 20px;
  }

  .policy-nav-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 8px;
    scrollbar-width: thin;
  }

  .policy-nav-link {
    white-space: nowrap;
    background: var(--canvas);
    border: 1px solid var(--border);
    padding: 6px 14px;
  }

  .policy-article {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .policy-hero,
  .faq-hero {
    padding: 36px 0 32px;
  }

  .policy-meta-bar {
    flex-direction: column;
    gap: 6px;
  }

  .policy-meta-dot {
    display: none;
  }

  .policy-contact-card {
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }

  .faq-support-cta {
    padding: 36px 20px;
    border-radius: 18px;
  }

  .faq-support-cta .cta-actions {
    flex-direction: column;
  }

  .faq-cta-btn,
  .faq-cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* ==========================================================================
   Naam Hi Naam — Master 404 Error Page Experience
   ========================================================================== */
.nhn-404-main {
  background: radial-gradient(circle at 50% 8%, var(--brand-primary-soft, #FDF0F6) 0%, #FAFAFC 55%, #FFFFFF 100%);
  min-height: calc(85vh - 80px);
  padding: 56px 20px 88px;
  box-sizing: border-box;
}

.nhn-404-container {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

/* 404 Hero Section */
.nhn-404-hero {
  margin-bottom: 36px;
  position: relative;
}

.nhn-404-visual {
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
}

.nhn-404-number {
  font-family: 'Sora', sans-serif;
  font-size: clamp(84px, 17vw, 156px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--brand-gradient, linear-gradient(135deg, #D9006B 0%, #1A47E7 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  user-select: none;
  filter: drop-shadow(0 14px 28px rgba(217, 0, 107, 0.18));
}

.nhn-404-decor-sparkle {
  position: absolute;
  color: var(--brand-primary, #D9006B);
  font-weight: bold;
  pointer-events: none;
  animation: nhnSparkleFloat 3s ease-in-out infinite alternate;
}

.nhn-sparkle-1 {
  top: 10%;
  left: -20px;
  font-size: 28px;
  animation-delay: 0s;
  color: var(--brand-primary, #D9006B);
}

.nhn-sparkle-2 {
  top: 4%;
  right: -15px;
  font-size: 24px;
  animation-delay: 0.8s;
  color: var(--brand-secondary, #1A47E7);
}

.nhn-sparkle-3 {
  bottom: 12%;
  right: 15%;
  font-size: 20px;
  animation-delay: 1.6s;
  color: #F59E0B;
}

@keyframes nhnSparkleFloat {
  0% {
    transform: translateY(0) scale(0.9) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-10px) scale(1.15) rotate(18deg);
    opacity: 1;
  }
}

.nhn-404-badge-wrap {
  margin-bottom: 16px;
}

.nhn-404-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--brand-primary-soft, #FDF0F6);
  color: var(--brand-primary, #D9006B);
  border: 1.5px solid var(--brand-primary-tint, #FCE7F1);
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nhn-404-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  color: var(--ink, #111827);
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.nhn-404-desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15.5px, 2.2vw, 17.5px);
  color: var(--ink-soft, #4B5563);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.65;
}

.nhn-404-desc strong {
  color: var(--brand-primary, #D9006B);
  font-weight: 600;
}

/* Search Box & Alphabet Section */
.nhn-404-search-section {
  background: #FFFFFF;
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 24px;
  padding: 32px 28px;
  margin-bottom: 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nhn-404-search-section:focus-within {
  border-color: var(--brand-primary, #D9006B);
  box-shadow: 0 20px 52px rgba(217, 0, 107, 0.12);
}

.nhn-404-input-group {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-alt, #F9FAFB);
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 18px;
  padding: 6px 8px 6px 16px;
  transition: all 0.25s ease;
}

.nhn-404-input-group:focus-within {
  background: #FFFFFF;
  border-color: var(--brand-primary, #D9006B);
  box-shadow: 0 0 0 4px var(--brand-primary-soft, #FDF0F6);
}

.nhn-404-search-icon {
  display: flex;
  align-items: center;
  color: var(--brand-primary, #D9006B);
  margin-right: 12px;
  flex-shrink: 0;
}

.nhn-404-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink, #111827);
  padding: 10px 4px;
  outline: none !important;
  box-shadow: none !important;
  min-width: 0;
}

.nhn-404-input::placeholder {
  color: #9CA3AF;
  font-size: 15px;
}

.nhn-404-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-gradient, linear-gradient(135deg, #D9006B 0%, #1A47E7 100%));
  color: #FFFFFF;
  border: none;
  border-radius: 13px;
  padding: 12px 24px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(217, 0, 107, 0.25);
  min-height: 46px;
}

.nhn-404-search-btn:hover {
  background: var(--brand-gradient-hover, linear-gradient(135deg, #BA005A 0%, #1138C4 100%));
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(217, 0, 107, 0.35);
  color: #FFFFFF;
}

.nhn-404-search-btn:focus-visible {
  outline: 3px solid var(--brand-secondary, #1A47E7);
  outline-offset: 2px;
}

/* Alphabet Browse Bar */
.nhn-404-alphabet-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border, #E5E7EB);
  text-align: center;
}

.nhn-404-alphabet-label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft, #6B7280);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.nhn-404-alphabet-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nhn-404-alpha-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-alt, #F3F4F6);
  color: var(--ink, #374151);
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border, #E5E7EB);
  transition: all 0.18s ease;
}

.nhn-404-alpha-chip:hover {
  background: var(--brand-primary, #D9006B);
  color: #FFFFFF !important;
  border-color: var(--brand-primary, #D9006B);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(217, 0, 107, 0.25);
}

.nhn-404-alpha-chip:focus-visible {
  outline: 2px solid var(--brand-secondary, #1A47E7);
  outline-offset: 2px;
}

/* Primary Action Buttons */
.nhn-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.nhn-404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  min-height: 48px;
  box-sizing: border-box;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nhn-404-btn-primary {
  background: var(--brand-gradient, linear-gradient(135deg, #D9006B 0%, #1A47E7 100%));
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(217, 0, 107, 0.25);
}

.nhn-404-btn-primary:hover {
  background: var(--brand-gradient-hover, linear-gradient(135deg, #BA005A 0%, #1138C4 100%));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(217, 0, 107, 0.35);
  color: #FFFFFF !important;
}

.nhn-404-btn-secondary {
  background: var(--brand-secondary-soft, #EEF2FE);
  color: var(--brand-secondary, #1A47E7) !important;
  border: 1.5px solid var(--brand-secondary-tint, #E0E7FD);
}

.nhn-404-btn-secondary:hover {
  background: var(--brand-secondary, #1A47E7);
  color: #FFFFFF !important;
  border-color: var(--brand-secondary, #1A47E7);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 71, 231, 0.25);
}

.nhn-404-btn-ghost {
  background: #FFFFFF;
  color: var(--ink, #374151) !important;
  border: 1.5px solid var(--border, #E5E7EB);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nhn-404-btn-ghost:hover {
  border-color: var(--brand-primary, #D9006B);
  color: var(--brand-primary, #D9006B) !important;
  background: var(--brand-primary-soft, #FDF0F6);
  transform: translateY(-2px);
}

.nhn-404-btn:focus-visible {
  outline: 3px solid var(--brand-secondary, #1A47E7);
  outline-offset: 2px;
}

/* Feature Grid Cards */
.nhn-404-cards-section {
  margin-bottom: 44px;
}

.nhn-404-section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(20px, 3.2vw, 25px);
  font-weight: 800;
  color: var(--ink, #111827);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.nhn-404-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.nhn-404-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: #FFFFFF;
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 20px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.nhn-404-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.25s ease;
}

.nhn-404-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: #D1D5DB;
}

.nhn-404-card:focus-visible {
  outline: 3px solid var(--brand-secondary, #1A47E7);
  outline-offset: 2px;
}

/* Card Accent Variations */
.nhn-card-pink .nhn-404-card-icon {
  background: var(--brand-primary-soft, #FDF0F6);
  color: var(--brand-primary, #D9006B);
  border: 1px solid var(--brand-primary-tint, #FCE7F1);
}
.nhn-card-pink:hover::before {
  background: var(--brand-primary, #D9006B);
}

.nhn-card-blue .nhn-404-card-icon {
  background: var(--brand-secondary-soft, #EEF2FE);
  color: var(--brand-secondary, #1A47E7);
  border: 1px solid var(--brand-secondary-tint, #E0E7FD);
}
.nhn-card-blue:hover::before {
  background: var(--brand-secondary, #1A47E7);
}

.nhn-card-purple .nhn-404-card-icon {
  background: #FAF5FF;
  color: #8B5CF6;
  border: 1px solid #F3E8FF;
}
.nhn-card-purple:hover::before {
  background: #8B5CF6;
}

.nhn-card-indigo .nhn-404-card-icon {
  background: #F0FDF4;
  color: #10B981;
  border: 1px solid #DCFCE7;
}
.nhn-card-indigo:hover::before {
  background: #10B981;
}

.nhn-404-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.nhn-404-card:hover .nhn-404-card-icon {
  transform: scale(1.08);
}

.nhn-404-card-content {
  flex: 1;
}

.nhn-404-card-heading {
  font-family: 'Sora', sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink, #111827);
  margin: 0 0 6px;
  line-height: 1.3;
}

.nhn-404-card-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-soft, #6B7280);
  line-height: 1.5;
  margin: 0 0 10px;
}

.nhn-404-card-link {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-primary, #D9006B);
  transition: transform 0.2s ease;
}

.nhn-404-card:hover .nhn-404-card-link {
  transform: translateX(4px);
}

/* Trending Baby Names Inspiration Chips */
.nhn-404-trending {
  background: var(--surface, #FFFFFF);
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
}

.nhn-404-trending-title {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #111827);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nhn-404-trending-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nhn-trending-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-alt, #F9FAFB);
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #374151);
  text-decoration: none !important;
  transition: all 0.2s ease;
  min-height: 38px;
}

.nhn-trending-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.nhn-dot-boy {
  background: var(--brand-secondary, #1A47E7);
  box-shadow: 0 0 6px rgba(26, 71, 231, 0.4);
}

.nhn-dot-girl {
  background: var(--brand-primary, #D9006B);
  box-shadow: 0 0 6px rgba(217, 0, 107, 0.4);
}

.nhn-trending-pill:hover {
  background: #FFFFFF;
  border-color: var(--brand-primary, #D9006B);
  color: var(--brand-primary, #D9006B) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 0, 107, 0.15);
}

.nhn-trending-pill:focus-visible {
  outline: 2px solid var(--brand-secondary, #1A47E7);
  outline-offset: 2px;
}

/* Footer Help Note */
.nhn-404-footer-note {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--ink-soft, #6B7280);
}

.nhn-404-footer-note a {
  color: var(--brand-secondary, #1A47E7);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.nhn-404-footer-note a:hover {
  color: var(--brand-primary, #D9006B);
}

/* ==========================================================================
   Responsive Adaptations (Mobile-First)
   ========================================================================== */
@media (max-width: 768px) {
  .nhn-404-main {
    padding: 36px 16px 64px;
  }

  .nhn-404-search-section {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .nhn-404-input-group {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    border-radius: 16px;
  }

  .nhn-404-search-icon {
    display: none;
  }

  .nhn-404-input {
    width: 100%;
    padding: 8px 4px;
    text-align: center;
  }

  .nhn-404-search-btn {
    width: 100%;
    border-radius: 12px;
  }

  .nhn-404-alphabet-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .nhn-404-alpha-chip {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
  }

  .nhn-404-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .nhn-404-btn {
    width: 100%;
  }

  .nhn-404-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nhn-404-card {
    padding: 18px;
  }

  .nhn-404-trending {
    padding: 18px 14px;
  }

  .nhn-404-trending-chips {
    gap: 8px;
  }

  .nhn-trending-pill {
    font-size: 13px;
    padding: 6px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nhn-404-decor-sparkle,
  .nhn-404-card,
  .nhn-404-btn,
  .nhn-trending-pill,
  .nhn-404-alpha-chip {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   AdSense Display Safeguards (Collapse Empty / Unfilled Units)
   ========================================================================== */
ins.adsbygoogle[data-ad-status="unfilled"],
ins.adsbygoogle:empty {
  display: none !important;
}

.meta-author-link,
.post-author {
  text-decoration: none !important;
  color: inherit;
  transition: color 0.18s ease;
}

.meta-author-link:hover,
.post-author:hover {
  color: var(--brand-primary, #D9006B) !important;
}

.author-card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.author-card-header-row .author-card-name {
  margin: 0;
}

.author-card-header-row .author-card-name a {
  color: var(--ink, #111827);
  text-decoration: none !important;
  transition: color 0.18s ease;
}

.author-card-header-row .author-card-name a:hover {
  color: var(--brand-primary, #D9006B) !important;
}

.author-verified-badge {
  display: inline-flex;
  align-items: center;
  background: var(--brand-primary-soft, #FDF0F6);
  color: var(--brand-primary, #D9006B);
  border: 1px solid var(--brand-primary-tint, #FCE7F1);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-more-link {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary, #D9006B) !important;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.auth-more-link:hover {
  transform: translateX(3px);
  text-decoration: underline !important;
}

/* ==========================================================================
   Naam Hi Naam — Master Professional Author Profile Hub
   ========================================================================== */
.nhn-author-main {
  background: #FAFAFC;
  min-height: calc(100vh - 120px);
}

.nhn-author-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Breadcrumbs */
.nhn-author-breadcrumb-wrap {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border, #E5E7EB);
  padding: 14px 0;
}

.nhn-author-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
}

.nhn-author-breadcrumb a {
  color: var(--ink-soft, #6B7280);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nhn-author-breadcrumb a:hover {
  color: var(--brand-primary, #D9006B);
}

.nhn-author-breadcrumb .breadcrumb-sep {
  color: #D1D5DB;
  font-size: 12px;
}

.nhn-author-breadcrumb [aria-current="page"] {
  color: var(--ink, #111827);
  font-weight: 600;
}

/* Hero Section */
.nhn-author-hero-section {
  background: radial-gradient(circle at 50% 0%, var(--brand-primary-soft, #FDF0F6) 0%, #FFFFFF 85%);
  border-bottom: 1.5px solid var(--border, #E5E7EB);
  padding: 48px 0 54px;
}

.nhn-author-card-hero {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  background: #FFFFFF;
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.04);
}

.nhn-author-avatar-wrap {
  flex-shrink: 0;
}

.nhn-author-avatar-frame {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: var(--brand-gradient, linear-gradient(135deg, #D9006B 0%, #1A47E7 100%));
  box-shadow: 0 12px 32px rgba(217, 0, 107, 0.22);
}

.nhn-author-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFFFF;
  display: block;
}

.nhn-author-verified-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  background: #10B981;
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.nhn-author-info {
  flex: 1;
}

.nhn-author-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.nhn-author-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--brand-primary-soft, #FDF0F6);
  color: var(--brand-primary, #D9006B);
  border: 1px solid var(--brand-primary-tint, #FCE7F1);
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
}

.nhn-author-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: var(--brand-secondary-soft, #EEF2FE);
  color: var(--brand-secondary, #1A47E7);
  border: 1px solid var(--brand-secondary-tint, #E0E7FD);
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
}

.nhn-author-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3.8vw, 36px);
  font-weight: 800;
  color: var(--ink, #111827);
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.nhn-author-bio-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft, #4B5563);
  margin: 0 0 20px;
  max-width: 820px;
}

.nhn-author-expertise-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.nhn-exp-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--bg-alt, #F9FAFB);
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #374151);
}

.nhn-author-stats-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-alt, #F9FAFB);
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 16px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.author-stat-item {
  display: flex;
  flex-direction: column;
}

.author-stat-item .stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-primary, #D9006B);
  line-height: 1.2;
}

.author-stat-item .stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-soft, #6B7280);
  font-weight: 500;
}

.author-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border, #E5E7EB);
}

/* Author Published Articles Feed */
.nhn-author-feed-section {
  padding: 52px 0 68px;
}

.nhn-author-feed-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border, #E5E7EB);
}

.nhn-feed-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 800;
  color: var(--ink, #111827);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.nhn-feed-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--ink-soft, #6B7280);
  margin: 0;
}

.nhn-feed-count {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--surface, #FFFFFF);
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-primary, #D9006B);
  flex-shrink: 0;
}

/* Articles 3-Column Grid */
.nhn-author-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 48px;
}

.nhn-author-article-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.nhn-author-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: #D1D5DB;
}

.nhn-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt, #F3F4F6);
  overflow: hidden;
}

.nhn-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nhn-author-article-card:hover .nhn-card-thumb {
  transform: scale(1.05);
}

.nhn-card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.85);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.nhn-card-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nhn-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--ink-soft, #6B7280);
  margin-bottom: 10px;
}

.nhn-meta-dot {
  color: #D1D5DB;
}

.nhn-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.nhn-card-title a {
  color: var(--ink, #111827);
  text-decoration: none !important;
  transition: color 0.18s ease;
}

.nhn-card-title a:hover {
  color: var(--brand-primary, #D9006B);
}

.nhn-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft, #4B5563);
  margin: 0 0 18px;
  flex: 1;
}

.nhn-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border, #F3F4F6);
}

.nhn-card-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-primary, #D9006B) !important;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.nhn-card-read-btn:hover {
  transform: translateX(3px);
}

/* Pagination */
.nhn-author-pagination {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.nhn-author-pagination .pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nhn-author-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--border, #E5E7EB);
  color: var(--ink, #374151);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.nhn-author-pagination .page-numbers.current {
  background: var(--brand-gradient, linear-gradient(135deg, #D9006B 0%, #1A47E7 100%));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(217, 0, 107, 0.25);
}

.nhn-author-pagination .page-numbers:hover:not(.current) {
  background: var(--brand-primary-soft, #FDF0F6);
  border-color: var(--brand-primary, #D9006B);
  color: var(--brand-primary, #D9006B);
}

/* Discovery CTA Banner */
.nhn-author-cta-section {
  padding-bottom: 80px;
}

.nhn-author-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--brand-gradient, linear-gradient(135deg, #D9006B 0%, #1A47E7 100%));
  border-radius: 28px;
  padding: 44px 48px;
  color: #FFFFFF;
  box-shadow: 0 20px 48px rgba(217, 0, 107, 0.22);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.cta-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px;
  line-height: 1.25;
}

.cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 580px;
}

.cta-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--brand-primary, #D9006B) !important;
  border-radius: 14px;
  padding: 13px 26px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF !important;
  border-radius: 14px;
  padding: 12px 24px;
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
  min-height: 46px;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

/* ==========================================================================
   Author Page Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .nhn-author-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .nhn-author-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }

  .cta-desc {
    margin: 0 auto;
  }

  .cta-card-actions {
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nhn-author-card-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 24px;
  }

  .nhn-author-badge-row,
  .nhn-author-expertise-list,
  .nhn-author-stats-bar {
    justify-content: center;
  }

  .author-stat-divider {
    display: none;
  }

  .nhn-author-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
  }

  .nhn-author-feed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nhn-author-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cta-card-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100%;
  }
}