/*
Theme Name: NameGen Pro
Theme URI: https://yoursite.com
Author: NameGen Pro Team
Author URI: https://yoursite.com
Description: A premium, modern WordPress theme for Name Generator platforms. Features glassmorphism UI, purple color theme, full Elementor compatibility, advanced SEO, and API-powered name generation tools. Built for performance and scalability.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: namegen-pro
Tags: elementor, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, left-sidebar, right-sidebar, blog, education, entertainment

*/

/* ============================================
   NAMEGEN PRO - MASTER STYLESHEET
   ============================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Purple Brand Palette */
  --ng-primary:        #7C3AED;
  --ng-primary-light:  #A78BFA;
  --ng-primary-dark:   #5B21B6;
  --ng-accent:         #C084FC;
  --ng-accent-glow:    rgba(124,58,237,0.45);

  /* Background layers */
  --ng-bg-deep:        #0D0D1A;
  --ng-bg-mid:         #13132B;
  --ng-bg-card:        rgba(255,255,255,0.05);
  --ng-bg-glass:       rgba(124,58,237,0.12);

  /* Text */
  --ng-text-white:     #FFFFFF;
  --ng-text-muted:     rgba(255,255,255,0.65);
  --ng-text-faint:     rgba(255,255,255,0.35);

  /* Borders */
  --ng-border:         rgba(167,139,250,0.20);
  --ng-border-hover:   rgba(167,139,250,0.50);

  /* Gradients */
  --ng-grad-hero:      linear-gradient(135deg, #0D0D1A 0%, #1E0A3C 50%, #0D0D1A 100%);
  --ng-grad-card:      linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(192,132,252,0.08) 100%);
  --ng-grad-btn:       linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --ng-grad-text:      linear-gradient(90deg, #A78BFA, #C084FC, #F9A8D4);

  /* Shadows */
  --ng-shadow-sm:      0 4px 15px rgba(124,58,237,0.15);
  --ng-shadow-md:      0 8px 32px rgba(124,58,237,0.25);
  --ng-shadow-lg:      0 20px 60px rgba(124,58,237,0.35);
  --ng-shadow-glow:    0 0 40px rgba(124,58,237,0.40);

  /* Typography */
  --ng-font-display:   'Cinzel', 'Playfair Display', Georgia, serif;
  --ng-font-body:      'DM Sans', 'Inter', system-ui, sans-serif;
  --ng-font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --ng-radius-sm:      8px;
  --ng-radius-md:      16px;
  --ng-radius-lg:      24px;
  --ng-radius-xl:      32px;
  --ng-radius-full:    9999px;

  /* Transitions */
  --ng-ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ng-ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ng-duration:       0.3s;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ng-font-body);
  background-color: var(--ng-bg-deep);
  color: var(--ng-text-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ng-font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ng-text-white);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { color: var(--ng-text-muted); margin-bottom: 1rem; }
a { color: var(--ng-primary-light); text-decoration: none; transition: color var(--ng-duration) var(--ng-ease); }
a:hover { color: var(--ng-accent); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ── Gradient Text Utility ── */
.ng-gradient-text {
  background: var(--ng-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-sm { padding: clamp(2rem, 5vw, 3.5rem) 0; }

/* ── Grid System ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ── Glassmorphism Cards ── */
.ng-card {
  background: var(--ng-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-lg);
  padding: 2rem;
  transition: all var(--ng-duration) var(--ng-ease);
  position: relative;
  overflow: hidden;
}

.ng-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ng-grad-card);
  opacity: 0;
  transition: opacity var(--ng-duration) var(--ng-ease);
  pointer-events: none;
}

.ng-card:hover {
  border-color: var(--ng-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--ng-shadow-md);
}

.ng-card:hover::before { opacity: 1; }

/* ── Buttons ── */
.ng-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--ng-radius-full);
  font-family: var(--ng-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--ng-duration) var(--ng-ease-spring);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.ng-btn-primary {
  background: var(--ng-grad-btn);
  color: #fff;
  box-shadow: var(--ng-shadow-sm);
}

.ng-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--ng-shadow-glow);
  color: #fff;
}

.ng-btn-outline {
  background: transparent;
  color: var(--ng-primary-light);
  border: 1.5px solid var(--ng-border);
}

.ng-btn-outline:hover {
  background: var(--ng-bg-glass);
  border-color: var(--ng-primary-light);
  color: var(--ng-text-white);
  transform: translateY(-2px);
}

.ng-btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.ng-btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ── Form Elements ── */
.ng-input, .ng-textarea, .ng-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--ng-border);
  border-radius: var(--ng-radius-md);
  padding: 0.9rem 1.2rem;
  color: var(--ng-text-white);
  font-family: var(--ng-font-body);
  font-size: 1rem;
  transition: all var(--ng-duration) var(--ng-ease);
  outline: none;
}

.ng-input::placeholder { color: var(--ng-text-faint); }

.ng-input:focus, .ng-textarea:focus {
  border-color: var(--ng-primary);
  background: rgba(124,58,237,0.1);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}

.ng-textarea { resize: vertical; min-height: 140px; }

/* ── Badges ── */
.ng-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--ng-radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ng-badge-primary { background: rgba(124,58,237,0.2); color: var(--ng-accent); border: 1px solid rgba(124,58,237,0.3); }
.ng-badge-success { background: rgba(16,185,129,0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }

/* ── ===== HEADER ===== ── */
#ng-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ng-ease);
}

#ng-header.scrolled {
  background: rgba(13,13,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ng-border);
  padding: 0.6rem 0;
  box-shadow: var(--ng-shadow-md);
}

.ng-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ng-logo {
  font-family: var(--ng-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--ng-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  flex-shrink: 0;
}

/* Primary Nav */
.ng-nav { display: flex; align-items: center; gap: 0.25rem; }

.ng-nav a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--ng-radius-sm);
  color: var(--ng-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--ng-duration) var(--ng-ease);
  text-decoration: none;
}

.ng-nav a:hover, .ng-nav a.current {
  color: var(--ng-text-white);
  background: var(--ng-bg-glass);
}

/* Dropdown */
.ng-dropdown { position: relative; }

.ng-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--ng-radius-sm);
  color: var(--ng-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ng-duration) var(--ng-ease);
  background: none;
  border: none;
  font-family: var(--ng-font-body);
}

.ng-dropdown-toggle:hover { color: var(--ng-text-white); background: var(--ng-bg-glass); }

.ng-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(13,13,26,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-md);
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ng-duration) var(--ng-ease);
  box-shadow: var(--ng-shadow-lg);
}

.ng-dropdown:hover .ng-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ng-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: var(--ng-radius-sm);
  color: var(--ng-text-muted);
  font-size: 0.875rem;
  transition: all var(--ng-duration) var(--ng-ease);
}

.ng-dropdown-menu a:hover { color: var(--ng-text-white); background: var(--ng-bg-glass); }
.ng-dropdown-menu a .flag { font-size: 1.1rem; }

/* Hamburger */
.ng-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.ng-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ng-text-white);
  border-radius: 2px;
  transition: all var(--ng-duration) var(--ng-ease);
}

/* Mobile Nav */
.ng-mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(13,13,26,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ng-ease);
}

.ng-mobile-nav.active { opacity: 1; visibility: visible; }

.ng-mobile-nav a {
  font-family: var(--ng-font-display);
  font-size: 1.8rem;
  color: var(--ng-text-white);
  text-decoration: none;
  transition: color var(--ng-duration);
}

.ng-mobile-nav a:hover { color: var(--ng-accent); }

/* ── ===== HERO ===== ── */
.ng-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ng-grad-hero);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.ng-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Animated orbs */
.ng-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.ng-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation-delay: 0s;
}

.ng-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(192,132,252,0.20) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -3s;
}

.ng-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(167,139,250,0.15) 0%, transparent 70%);
  top: 40%; left: 60%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Particle grid */
.ng-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.ng-hero-content { position: relative; z-index: 2; text-align: center; }

.ng-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--ng-radius-full);
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ng-accent);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ng-ease) both;
}

.ng-hero h1 {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ng-ease) 0.15s both;
}

.ng-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ng-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s var(--ng-ease) 0.3s both;
}

.ng-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s var(--ng-ease) 0.45s both;
}

/* Search box on hero */
.ng-hero-search {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-xl);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s var(--ng-ease) 0.45s both;
  backdrop-filter: blur(10px);
}

.ng-hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--ng-text-white);
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.ng-hero-search input::placeholder { color: var(--ng-text-faint); }

/* Stats row */
.ng-hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
  margin-top: 3rem;
  animation: fadeInUp 0.8s var(--ng-ease) 0.6s both;
}

.ng-stat { text-align: center; }

.ng-stat-num {
  display: block;
  font-family: var(--ng-font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--ng-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ng-stat-label {
  font-size: 0.8rem;
  color: var(--ng-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── ===== NAME GENERATOR TOOL ===== ── */
.ng-tool-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.ng-tool-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ng-grad-btn);
}

.ng-tool-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ng-tool-icon {
  width: 52px; height: 52px;
  background: var(--ng-grad-btn);
  border-radius: var(--ng-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ng-tool-input-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ng-tool-input-row .ng-input { flex: 1; font-size: 1.05rem; }

/* Results Grid */
.ng-results {
  display: none;
  animation: fadeInUp 0.5s var(--ng-ease) both;
}

.ng-results.visible { display: block; }

.ng-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.ng-result-card {
  background: rgba(124,58,237,0.08);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-md);
  padding: 1.2rem;
  transition: all var(--ng-duration) var(--ng-ease);
}

.ng-result-card:hover {
  background: rgba(124,58,237,0.15);
  border-color: var(--ng-border-hover);
  transform: translateY(-2px);
}

.ng-result-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ng-accent);
  margin-bottom: 0.4rem;
}

.ng-result-value {
  font-size: 1rem;
  color: var(--ng-text-white);
  font-weight: 500;
}

.ng-result-main {
  grid-column: 1 / -1;
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.4);
  padding: 1.5rem;
}

.ng-result-meaning {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Loading state */
.ng-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--ng-text-muted);
}

.ng-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(124,58,237,0.2);
  border-top-color: var(--ng-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Similar names */
.ng-similar-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.ng-name-chip {
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  color: var(--ng-primary-light);
  cursor: pointer;
  transition: all var(--ng-duration) var(--ng-ease);
}

.ng-name-chip:hover {
  background: rgba(124,58,237,0.3);
  border-color: var(--ng-primary);
  color: var(--ng-text-white);
}

/* Lucky number display */
.ng-lucky-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  background: var(--ng-grad-btn);
  border-radius: 50%;
  font-family: var(--ng-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: var(--ng-shadow-sm);
}

/* Traits */
.ng-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.ng-trait {
  background: rgba(192,132,252,0.12);
  border: 1px solid rgba(192,132,252,0.25);
  border-radius: var(--ng-radius-full);
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  color: var(--ng-accent);
}

/* ── ===== LANGUAGE CARDS (HOME) ===== ── */
.ng-lang-card {
  display: block;
  background: var(--ng-bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-lg);
  padding: 1.8rem;
  text-decoration: none;
  transition: all var(--ng-duration) var(--ng-ease);
  position: relative;
  overflow: hidden;
}

.ng-lang-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ng-grad-card);
  opacity: 0;
  transition: opacity var(--ng-duration);
}

.ng-lang-card:hover {
  transform: translateY(-6px);
  border-color: var(--ng-border-hover);
  box-shadow: var(--ng-shadow-md);
}

.ng-lang-card:hover::after { opacity: 1; }

.ng-lang-flag {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  position: relative;
  z-index: 1;
}

.ng-lang-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.ng-lang-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.ng-lang-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--ng-duration) var(--ng-ease);
  color: var(--ng-accent);
  font-size: 1.2rem;
  z-index: 1;
}

.ng-lang-card:hover .ng-lang-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── ===== BLOG ===== ── */
.ng-blog-card {
  background: var(--ng-bg-card);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-lg);
  overflow: hidden;
  transition: all var(--ng-duration) var(--ng-ease);
  display: flex;
  flex-direction: column;
}

.ng-blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--ng-border-hover);
  box-shadow: var(--ng-shadow-md);
}

.ng-blog-thumb {
  aspect-ratio: 16/9;
  background: var(--ng-bg-mid);
  overflow: hidden;
  position: relative;
}

.ng-blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ng-ease); }
.ng-blog-card:hover .ng-blog-thumb img { transform: scale(1.05); }

.ng-blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.ng-blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ng-text-faint);
  margin-bottom: 0.75rem;
}

.ng-blog-cat {
  color: var(--ng-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ng-blog-body h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.ng-blog-body h3 a { color: var(--ng-text-white); text-decoration: none; }
.ng-blog-body h3 a:hover { color: var(--ng-accent); }

.ng-blog-excerpt { font-size: 0.875rem; color: var(--ng-text-muted); flex: 1; }

.ng-blog-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ng-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ng-text-faint);
}

/* ── ===== FOOTER ===== ── */
.ng-footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--ng-border);
  padding: 4rem 0 0;
}

.ng-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}

.ng-footer-brand .ng-logo { font-size: 1.8rem; display: inline-block; margin-bottom: 1rem; }
.ng-footer-brand p { font-size: 0.875rem; color: var(--ng-text-faint); max-width: 280px; }

.ng-footer-col h4 {
  font-family: var(--ng-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ng-text-faint);
  margin-bottom: 1.2rem;
}

.ng-footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.ng-footer-col ul a {
  color: var(--ng-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--ng-duration);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ng-footer-col ul a:hover { color: var(--ng-text-white); }

.ng-footer-bottom {
  border-top: 1px solid var(--ng-border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ng-footer-bottom p { font-size: 0.8rem; color: var(--ng-text-faint); margin: 0; }

.ng-social {
  display: flex;
  gap: 0.75rem;
}

.ng-social a {
  width: 36px; height: 36px;
  background: var(--ng-bg-card);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ng-text-muted);
  text-decoration: none;
  transition: all var(--ng-duration) var(--ng-ease);
  font-size: 0.9rem;
}

.ng-social a:hover {
  background: var(--ng-bg-glass);
  border-color: var(--ng-primary);
  color: var(--ng-text-white);
  transform: translateY(-2px);
}

/* ── ===== PAGE HERO ===== ── */
.ng-page-hero {
  padding: 8rem 0 4rem;
  background: var(--ng-grad-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ng-page-hero .ng-grid-pattern { opacity: 0.5; }

.ng-page-hero h1 { margin-bottom: 1rem; position: relative; z-index: 1; }
.ng-page-hero p { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* Breadcrumbs */
.ng-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ng-text-faint);
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ng-breadcrumbs a { color: var(--ng-text-faint); text-decoration: none; }
.ng-breadcrumbs a:hover { color: var(--ng-accent); }
.ng-breadcrumbs span { color: var(--ng-text-faint); }

/* ── ===== ABOUT ===== ── */
.ng-team-card {
  text-align: center;
}

.ng-team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--ng-grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid var(--ng-border);
}

/* ── ===== CONTACT ===== ── */
.ng-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--ng-bg-card);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-md);
}

.ng-contact-icon {
  width: 44px; height: 44px;
  background: var(--ng-bg-glass);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── ===== FEATURES SECTION ===== ── */
.ng-feature-icon {
  width: 56px; height: 56px;
  background: var(--ng-bg-glass);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  transition: all var(--ng-duration) var(--ng-ease);
}

.ng-card:hover .ng-feature-icon {
  background: rgba(124,58,237,0.25);
  border-color: var(--ng-primary);
}

/* ── ===== TESTIMONIALS ===== ── */
.ng-testimonial {
  position: relative;
}

.ng-testimonial::before {
  content: '"';
  font-family: var(--ng-font-display);
  font-size: 5rem;
  color: var(--ng-primary);
  opacity: 0.3;
  position: absolute;
  top: -1rem;
  left: 1rem;
  line-height: 1;
}

.ng-stars { color: #F59E0B; letter-spacing: 0.1em; font-size: 0.9rem; margin-bottom: 0.75rem; }

/* ── ===== FAQ ===== ── */
.ng-faq-item {
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-md);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color var(--ng-duration);
}

.ng-faq-item.open { border-color: var(--ng-border-hover); }

.ng-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  background: var(--ng-bg-card);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--ng-duration);
}

.ng-faq-q:hover { background: rgba(124,58,237,0.08); }

.ng-faq-arrow {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ng-bg-glass);
  transition: transform var(--ng-duration), background var(--ng-duration);
  font-size: 0.75rem;
}

.ng-faq-item.open .ng-faq-arrow {
  transform: rotate(180deg);
  background: rgba(124,58,237,0.25);
}

.ng-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ng-ease), padding var(--ng-duration);
  padding: 0 1.5rem;
  color: var(--ng-text-muted);
  font-size: 0.9rem;
}

.ng-faq-item.open .ng-faq-a {
  max-height: 300px;
  padding: 1rem 1.5rem 1.2rem;
}

/* ── ===== HOW IT WORKS ===== ── */
.ng-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.ng-step-num {
  width: 52px; height: 52px;
  background: var(--ng-grad-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ng-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--ng-shadow-sm);
}

/* ── ===== SIDEBAR ===== ── */
.ng-sidebar-widget {
  background: var(--ng-bg-card);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ng-sidebar-widget h4 {
  font-size: 0.85rem;
  font-family: var(--ng-font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ng-text-faint);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ng-border);
}

.ng-sidebar-search { display: flex; gap: 0.5rem; }
.ng-sidebar-search .ng-input { font-size: 0.875rem; }

.ng-recent-post {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ng-border);
}

.ng-recent-post:last-child { border-bottom: none; padding-bottom: 0; }

.ng-recent-thumb {
  width: 64px; height: 64px;
  border-radius: var(--ng-radius-sm);
  background: var(--ng-bg-mid);
  overflow: hidden;
  flex-shrink: 0;
}

.ng-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ng-recent-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; color: var(--ng-text-white); }
.ng-recent-date { font-size: 0.75rem; color: var(--ng-text-faint); margin-top: 0.25rem; }

.ng-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ng-tag { background: var(--ng-bg-glass); border: 1px solid var(--ng-border); border-radius: var(--ng-radius-full); padding: 0.25rem 0.7rem; font-size: 0.78rem; color: var(--ng-text-muted); text-decoration: none; transition: all var(--ng-duration); }
.ng-tag:hover { background: rgba(124,58,237,0.25); border-color: var(--ng-primary); color: var(--ng-text-white); }

/* ── ===== SINGLE POST ===== ── */
.ng-post-content { font-size: 1.05rem; line-height: 1.85; }
.ng-post-content h2, .ng-post-content h3 { margin: 2rem 0 1rem; }
.ng-post-content p { margin-bottom: 1.25rem; color: var(--ng-text-muted); }
.ng-post-content ul, .ng-post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; color: var(--ng-text-muted); }
.ng-post-content li { margin-bottom: 0.5rem; list-style: disc; }
.ng-post-content blockquote {
  border-left: 3px solid var(--ng-primary);
  background: var(--ng-bg-glass);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--ng-radius-md) var(--ng-radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ng-text-muted);
}

/* Author box */
.ng-author-box {
  background: var(--ng-bg-card);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin: 3rem 0;
}

.ng-author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ng-grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* ── ===== NEWSLETTER ===== ── */
.ng-newsletter {
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.2) 0%, transparent 70%);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-xl);
  padding: 4rem 2rem;
  text-align: center;
}

.ng-newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
}

/* ── ===== SECTION HEADER ===== ── */
.ng-section-header { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.ng-section-header .ng-badge { margin-bottom: 1rem; }
.ng-section-header h2 { margin-bottom: 0.75rem; }
.ng-section-header p { max-width: 580px; margin: 0 auto; }

/* ── ===== DIVIDER ===== ── */
.ng-divider { height: 1px; background: var(--ng-border); margin: 0; }

/* ── ===== PROGRESS BAR ===== ── */
.ng-progress { background: rgba(255,255,255,0.08); border-radius: var(--ng-radius-full); height: 6px; overflow: hidden; margin-top: 0.5rem; }
.ng-progress-fill { height: 100%; background: var(--ng-grad-btn); border-radius: var(--ng-radius-full); transition: width 1s var(--ng-ease); }

/* ── ===== ANIMATIONS ===== ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ng-animate { animation: fadeInUp 0.7s var(--ng-ease) both; }
.ng-animate-delay-1 { animation-delay: 0.1s; }
.ng-animate-delay-2 { animation-delay: 0.2s; }
.ng-animate-delay-3 { animation-delay: 0.3s; }

/* Scroll reveal */
.ng-reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s var(--ng-ease); }
.ng-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── ===== UTILITY CLASSES ===== ── */
.text-center { text-align: center; }
.text-muted { color: var(--ng-text-muted); }
.text-accent { color: var(--ng-accent); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; } .align-center { align-items: center; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.w-full { width: 100%; }

/* ── ===== WORDPRESS SPECIFIC ===== ── */
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption { background: var(--ng-bg-card); border: 1px solid var(--ng-border); border-radius: var(--ng-radius-sm); padding: 0.5rem; }
.wp-caption-text { font-size: 0.8rem; color: var(--ng-text-faint); text-align: center; margin-top: 0.4rem; }

.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }

/* Pagination */
.ng-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.ng-pagination a, .ng-pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--ng-radius-sm);
  background: var(--ng-bg-card);
  border: 1px solid var(--ng-border);
  color: var(--ng-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--ng-duration);
}
.ng-pagination a:hover, .ng-pagination .current {
  background: var(--ng-primary);
  border-color: var(--ng-primary);
  color: #fff;
}

/* Comments */
.ng-comment { padding: 1.5rem 0; border-bottom: 1px solid var(--ng-border); }
.ng-comment-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.ng-comment-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ng-bg-mid); }

/* ── ===== RESPONSIVE ===== ── */
@media (max-width: 1024px) {
  .ng-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .ng-nav, .ng-header-cta { display: none; }
  .ng-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ng-footer-grid { grid-template-columns: 1fr; }
  .ng-tool-input-row { flex-direction: column; }
  .ng-newsletter-form { flex-direction: column; }
  .ng-hero-stats { gap: 2rem; }
  .ng-author-box { flex-direction: column; }
  .ng-step { flex-direction: column; }
  .ng-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .ng-results-grid { grid-template-columns: 1fr; }
  .ng-hero-actions { flex-direction: column; align-items: center; }
}

/* ── ===== ELEMENTOR OVERRIDES ===== ── */
.elementor-widget-text-editor p { color: var(--ng-text-muted); }
.elementor-button { border-radius: var(--ng-radius-full) !important; }

/* Woo/CF7 compatibility */
.wpcf7-form-control { width: 100%; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--ng-border);
  border-radius: var(--ng-radius-md);
  color: var(--ng-text-white);
  padding: 0.9rem 1.2rem;
  width: 100%;
  font-family: var(--ng-font-body);
  outline: none;
  transition: border-color var(--ng-duration);
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--ng-primary);
}
.wpcf7 input[type="submit"] {
  background: var(--ng-grad-btn);
  color: #fff;
  border: none;
  border-radius: var(--ng-radius-full);
  padding: 0.8rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ng-duration) var(--ng-ease-spring);
}
.wpcf7 input[type="submit"]:hover { transform: translateY(-2px); box-shadow: var(--ng-shadow-glow); }

/* Print */
@media print { #ng-header, .ng-footer, .ng-sidebar { display: none; } }
