/*
Theme Name: Vantage9
Theme URI: https://vantage9.com
Author: Vantage9
Author URI: https://vantage9.com
Description: Custom theme for Vantage9 — web development, SEO, Amazon marketplace growth and digital marketing agency. Built for speed, SEO (Rank Math compatible) and lead conversion.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: vantage9
*/

/* ==========================================================================
   1. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id]{ scroll-margin-top: 96px; } /* keeps anchor links (e.g. /services/#pricing) clear of the sticky header */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */
:root{
  /* brand palette, sampled from the Vantage9 logo */
  --v9-accent: #C026D3;        /* fuchsia — top of the "9" gradient */
  --v9-primary: #7C3AED;       /* violet — core brand color */
  --v9-primary-dark: #4C1D95;  /* deep violet — bottom of the "9" gradient */
  --v9-ink: #1E1333;           /* near-black violet — headings, wordmark */
  --v9-body: #52496A;          /* muted violet-gray — body copy */
  --v9-muted: #8880A0;         /* placeholder / secondary text */
  --v9-bg: #FFFFFF;
  --v9-bg-soft: #F8F6FC;
  --v9-bg-deep: #1B1030;       /* dark section background */
  --v9-border: #E8E3F5;
  --v9-white: #FFFFFF;
  --v9-success: #16A34A;
  --v9-warning: #D97706;

  --v9-gradient: linear-gradient(135deg, var(--v9-accent) 0%, var(--v9-primary) 55%, var(--v9-primary-dark) 100%);
  --v9-gradient-soft: linear-gradient(135deg, rgba(192,38,212,.10) 0%, rgba(124,58,237,.10) 100%);
  --v9-gradient-text: linear-gradient(135deg, var(--v9-accent) 0%, var(--v9-primary) 100%);

  --v9-font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --v9-font-body: 'Inter', 'Segoe UI', sans-serif;

  --v9-radius-sm: 10px;
  --v9-radius: 16px;
  --v9-radius-lg: 28px;
  --v9-shadow: 0 6px 24px rgba(30, 19, 51, .08);
  --v9-shadow-lg: 0 24px 60px rgba(30, 19, 51, .16);
  --v9-container: 1200px;
}

/* ==========================================================================
   3. BASE
   ========================================================================== */
body{
  font-family: var(--v9-font-body);
  color: var(--v9-body);
  background: var(--v9-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6{
  font-family: var(--v9-font-heading);
  color: var(--v9-ink);
  font-weight: 700;
  line-height: 1.2;
}
h1{ font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; }
h3{ font-size: 1.3rem; }
p{ margin-bottom: 1em; }
a{ transition: color .2s ease, opacity .2s ease; }
::selection{ background: var(--v9-primary); color: #fff; }

.container{ max-width: var(--v9-container); margin: 0 auto; padding: 0 24px; }
.section{ padding: 88px 0; }
.section-sm{ padding: 56px 0; }
.section-soft{ background: var(--v9-bg-soft); }
.section-deep{ background: var(--v9-bg-deep); color: #DCD5EE; }
.section-deep h2, .section-deep h3{ color: #fff; }

.gradient-text{
  background: var(--v9-gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--v9-font-heading); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--v9-primary);
  background: var(--v9-gradient-soft); border: 1px solid rgba(124,58,237,.18);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 18px;
}
.section-head{ max-width: 680px; margin: 0 0 52px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head p{ color: var(--v9-body); font-size: 1.05rem; }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--v9-font-heading); font-weight: 600; font-size: .95rem;
  padding: 15px 30px; border-radius: 100px; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary{ background: var(--v9-gradient); color: #fff; box-shadow: 0 10px 30px rgba(124,58,237,.30); }
.btn-primary:hover{ opacity: .92; transform: translateY(-1px); }
.btn-outline{ background: transparent; border-color: var(--v9-border); color: var(--v9-ink); }
.btn-outline:hover{ border-color: var(--v9-primary); color: var(--v9-primary); }
.btn-light{ background: #fff; color: var(--v9-primary); }
.btn-light:hover{ opacity: .9; }
.btn-ghost-on-dark{ background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-block{ width: 100%; }
.btn-sm{ padding: 10px 20px; font-size: .85rem; }

/* ==========================================================================
   5. HEADER / NAV
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 999;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--v9-border);
}
.header-inner{ display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; }
.site-logo img{ height: 38px; width: auto; }
.site-logo{ display: flex; align-items: center; flex-shrink: 0; }

.primary-nav{ display: flex; align-items: center; gap: 4px; }
.primary-nav ul{ display: flex; align-items: center; gap: 2px; }
.primary-nav > ul > li{ position: relative; }
.primary-nav a{
  display: flex; align-items: center; gap: 6px; padding: 10px 16px;
  font-family: var(--v9-font-heading); font-weight: 600; font-size: .93rem; color: var(--v9-ink);
  border-radius: 100px;
}
.primary-nav > ul > li > a:hover{ background: var(--v9-bg-soft); color: var(--v9-primary); }
.primary-nav .sub-menu{
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--v9-border); border-radius: var(--v9-radius);
  box-shadow: var(--v9-shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; max-height: 70vh; overflow-y: auto;
}
.primary-nav li:hover > .sub-menu{ opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a{ padding: 10px 14px; border-radius: 10px; font-weight: 500; }
.primary-nav .sub-menu a:hover{ background: var(--v9-bg-soft); color: var(--v9-primary); }
.primary-nav .menu-item-has-children > a::after{ content:"▾"; font-size:.7em; opacity:.6; margin-left:2px; }

/* Mega-menu — the Services dropdown, wide enough for grouped columns
   instead of one long scrolling list. */
.primary-nav .mega-menu{
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(880px, 92vw);
  background: #fff; border: 1px solid var(--v9-border); border-radius: var(--v9-radius);
  box-shadow: var(--v9-shadow-lg); padding: 28px; opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.primary-nav li.has-mega:hover > .mega-menu{ opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-col h4{ font-family: var(--v9-font-heading); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--v9-primary); margin-bottom: 10px; }
.mega-col ul{ display: block; }
.mega-col li{ margin-bottom: 2px; }
.mega-col a{ display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; font-weight: 500; font-size: .88rem; color: var(--v9-body); }
.mega-col a:hover{ background: var(--v9-bg-soft); color: var(--v9-primary); }

.header-actions{ display: flex; align-items: center; gap: 14px; }
.menu-toggle{ display: none; background: none; border: 1px solid var(--v9-border); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{
  content:""; display:block; width: 20px; height: 2px; background: var(--v9-ink); position: relative; transition: all .2s;
}
.menu-toggle span::before{ position:absolute; top:-6px; }
.menu-toggle span::after{ position:absolute; top:6px; }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero{ position: relative; padding: 76px 0 60px; overflow: hidden; }
.hero::before{
  content:""; position: absolute; top: -180px; right: -160px; width: 560px; height: 560px;
  background: var(--v9-gradient); opacity: .16; filter: blur(80px); border-radius: 50%;
}
.hero-grid{ position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1{ margin-bottom: 20px; }
.hero-lede{ font-size: 1.15rem; max-width: 540px; margin-bottom: 32px; }
.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust{ display: flex; gap: 34px; flex-wrap: wrap; }
.hero-trust .stat-num{ font-family: var(--v9-font-heading); font-weight: 800; font-size: 1.5rem; color: var(--v9-ink); }
.hero-trust .stat-label{ font-size: .82rem; color: var(--v9-muted); }

.hero-visual{ position: relative; }
.hero-card{
  background: #fff; border: 1px solid var(--v9-border); border-radius: var(--v9-radius-lg);
  box-shadow: var(--v9-shadow-lg); padding: 32px; position: relative; z-index: 2;
}
.hero-card img{ border-radius: var(--v9-radius); }
.hero-chip{
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--v9-border);
  border-radius: var(--v9-radius); box-shadow: var(--v9-shadow); padding: 14px 18px;
  font-family: var(--v9-font-heading); font-weight: 700; font-size: .85rem; display:flex; align-items:center; gap:10px;
}
.hero-chip .dot{ width: 10px; height: 10px; border-radius: 50%; background: var(--v9-success); }
.hero-chip.chip-a{ top: -18px; left: -24px; }
.hero-chip.chip-b{ bottom: -18px; right: -18px; }

/* ==========================================================================
   7. STATS BAR
   ========================================================================== */
.stats-bar{ background: var(--v9-bg-deep); padding: 40px 0; }
.stats-grid{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
.stats-grid .num{ font-family: var(--v9-font-heading); font-weight: 800; font-size: clamp(1.6rem,3vw,2.2rem); color: #fff; }
.stats-grid .num .gradient-text{ background: linear-gradient(135deg,#E9A6FF,#C4B5FD); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stats-grid .label{ font-size: .82rem; color: #B8AFD1; margin-top: 4px; }

/* ==========================================================================
   8. CARDS — services / projects / team / blog
   ========================================================================== */
.grid{ display: grid; gap: 28px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background: #fff; border: 1px solid var(--v9-border); border-radius: var(--v9-radius);
  padding: 32px; box-shadow: var(--v9-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--v9-shadow-lg); }

.service-card .icon{
  width: 56px; height: 56px; border-radius: 16px; background: var(--v9-gradient);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  font-size: 1.5rem;
}
.service-card h3{ margin-bottom: 10px; font-size: 1.15rem; }
.service-card p{ font-size: .95rem; margin-bottom: 16px; }
.service-card .card-link{ font-family: var(--v9-font-heading); font-weight: 700; font-size: .88rem; color: var(--v9-primary); display:inline-flex; align-items:center; gap:6px; }
.service-card .card-link:hover{ gap: 10px; }

.project-card{ overflow: hidden; padding: 0; }
.project-card .thumb{ aspect-ratio: 16/10; background: var(--v9-gradient-soft); position: relative; overflow: hidden; }
.project-card .thumb .badge{ position: absolute; top: 16px; left: 16px; }
.project-card .body{ padding: 26px 28px 28px; }
.project-card .meta{ font-size: .8rem; color: var(--v9-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.project-card .result{ margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--v9-border); font-weight: 700; color: var(--v9-primary-dark); font-size: .92rem; }

.badge{
  display: inline-block; background: var(--v9-gradient-soft); color: var(--v9-primary);
  font-family: var(--v9-font-heading); font-weight: 700; font-size: .72rem; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 100px; text-transform: uppercase;
}
.badge-light{ background: rgba(255,255,255,.92); }

.team-card{ text-align: center; padding: 26px 20px; }
.team-card .avatar{
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; background: var(--v9-gradient);
  display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--v9-font-heading);
  font-weight: 800; font-size: 1.4rem;
}
.team-card h3{ font-size: 1.02rem; margin-bottom: 2px; }
.team-card .role{ font-size: .85rem; color: var(--v9-primary); font-weight: 600; }

/* ==========================================================================
   9. WHY CHOOSE / FEATURE LIST
   ========================================================================== */
.feature-item{ display: flex; gap: 18px; }
.feature-item .num{
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--v9-bg-soft);
  color: var(--v9-primary); font-family: var(--v9-font-heading); font-weight: 800; display: flex;
  align-items: center; justify-content: center;
}
.feature-item h3{ font-size: 1.08rem; margin-bottom: 6px; }
.feature-item p{ font-size: .94rem; margin-bottom: 0; }

.country-grid{ display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.country-chip{
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--v9-border);
  border-radius: 100px; padding: 12px 20px; font-family: var(--v9-font-heading); font-weight: 700; font-size: .92rem;
  box-shadow: var(--v9-shadow);
}
.country-chip span{ font-size: 1.15rem; }
.country-chip:first-child{ background: var(--v9-gradient); color: #fff; border-color: transparent; }

/* ==========================================================================
   10. TESTIMONIALS
   ========================================================================== */
.testimonial-card{ display: flex; flex-direction: column; height: 100%; }
.testimonial-card .stars{ color: #F59E0B; letter-spacing: 2px; margin-bottom: 14px; font-size: .95rem; }
.testimonial-card p{ font-size: .98rem; flex-grow: 1; }
.testimonial-card .author{ display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-card .avatar-sm{
  width: 42px; height: 42px; border-radius: 50%; background: var(--v9-gradient); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family: var(--v9-font-heading); font-weight: 700; font-size:.85rem;
}
.testimonial-card .author strong{ display:block; font-size: .92rem; color: var(--v9-ink); }
.testimonial-card .author span{ font-size: .8rem; color: var(--v9-muted); }

/* ==========================================================================
   11. FAQ ACCORDION
   ========================================================================== */
.faq-item{ border-bottom: 1px solid var(--v9-border); }
.faq-q{
  width: 100%; text-align: left; background: none; border: none; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--v9-font-heading); font-weight: 700; font-size: 1.02rem; color: var(--v9-ink);
}
.faq-q .icon{ flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--v9-bg-soft); display:flex; align-items:center; justify-content:center; transition: transform .2s ease; }
.faq-item.open .faq-q .icon{ transform: rotate(45deg); background: var(--v9-gradient); color: #fff; }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a{ max-height: 400px; }
.faq-a-inner{ padding: 0 0 22px; font-size: .96rem; }

/* ==========================================================================
   12. PRICING
   ========================================================================== */
.price-card{ text-align: center; }
.price-card .amount{ font-family: var(--v9-font-heading); font-weight: 800; font-size: 2.1rem; color: var(--v9-ink); margin: 14px 0 4px; }
.price-card .amount span{ font-size: .95rem; color: var(--v9-muted); font-weight: 500; }
.price-card ul{ text-align: left; margin: 20px 0; }
.price-card li{ padding: 8px 0; font-size: .92rem; display: flex; gap: 10px; border-top: 1px solid var(--v9-border); }
.price-card li:first-child{ border-top: none; }

/* ==========================================================================
   13. CTA BANNER
   ========================================================================== */
.cta-banner{
  background: var(--v9-gradient); border-radius: var(--v9-radius-lg); padding: 64px; text-align: center;
  color: #fff; position: relative; overflow: hidden;
}
.cta-banner h2{ color: #fff; margin-bottom: 14px; }
.cta-banner p{ color: rgba(255,255,255,.86); max-width: 560px; margin: 0 auto 30px; }
.cta-banner .cta-actions{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer{ background: var(--v9-bg-deep); color: #B8AFD1; padding-top: 72px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo img{ height: 34px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer h4{ color: #fff; font-size: .95rem; margin-bottom: 18px; }
.site-footer li{ margin-bottom: 10px; }
.site-footer a{ color: #B8AFD1; font-size: .92rem; }
.site-footer a:hover{ color: #fff; }
.footer-social{ display: flex; gap: 10px; margin-top: 20px; }
.footer-social a{ width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover{ background: var(--v9-gradient); }
.newsletter-form{ display: flex; gap: 8px; margin-top: 6px; }
.newsletter-form input{ flex: 1; min-width: 0; padding: 12px 16px; border-radius: 100px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; }
.newsletter-form input::placeholder{ color: #8C82AC; }
.newsletter-form button{ flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--v9-gradient); color: #fff; border: none; }
.footer-bottom{ display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: .82rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a{ color: #B8AFD1; }
.footer-bottom-links{ display: flex; gap: 18px; }

/* ==========================================================================
   15. INNER PAGE HEADER
   ========================================================================== */
.page-hero{ padding: 56px 0 64px; background: var(--v9-bg-soft); position: relative; overflow: hidden; }
.page-hero::before{ content:""; position:absolute; top:-120px; left:-120px; width:340px; height:340px; background: var(--v9-gradient); opacity:.12; filter: blur(70px); border-radius: 50%; }
.breadcrumb{ font-size: .85rem; color: var(--v9-muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a{ color: var(--v9-primary); font-weight: 600; }
.page-hero h1{ margin-bottom: 14px; }
.page-hero .lede{ max-width: 640px; font-size: 1.05rem; }

/* ==========================================================================
   16. BLOG
   ========================================================================== */
.blog-layout{ display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.post-card{ padding: 0; overflow: hidden; }
.post-card .thumb{ aspect-ratio: 16/10; background: var(--v9-gradient-soft); overflow: hidden; }
.post-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.post-card .body{ padding: 24px 26px 28px; }
.post-card .meta{ font-size: .8rem; color: var(--v9-muted); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-card h2, .post-card h3{ font-size: 1.15rem; margin-bottom: 10px; }
.post-card h2 a, .post-card h3 a{ color: var(--v9-ink); }
.post-card h2 a:hover, .post-card h3 a:hover{ color: var(--v9-primary); }
.post-card .excerpt{ font-size: .92rem; }
.post-list{ display: grid; gap: 28px; }
.post-grid{ margin-top: 24px; }
.post-grid-head{ font-family: var(--v9-font-heading); font-weight: 700; font-size: 1rem; color: var(--v9-ink); margin: 8px 0 20px; }

/* Category filter pills, above the blog listing */
.cat-pills{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cat-pill{
  display: inline-flex; align-items: center; font-family: var(--v9-font-heading); font-weight: 600; font-size: .86rem;
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--v9-border); color: var(--v9-body); background: #fff;
}
.cat-pill:hover{ border-color: var(--v9-primary); color: var(--v9-primary); }
.cat-pill.active{ background: var(--v9-gradient); border-color: transparent; color: #fff; }

/* Large featured-post card at the top of the main blog listing */
.featured-post{
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--v9-border);
  border-radius: var(--v9-radius-lg); overflow: hidden; box-shadow: var(--v9-shadow); margin-bottom: 12px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.featured-post:hover{ box-shadow: var(--v9-shadow-lg); transform: translateY(-3px); }
.featured-post .thumb{ background: var(--v9-gradient-soft); min-height: 260px; overflow: hidden; }
.featured-post .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.featured-post .body{ padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-post .meta{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--v9-muted); margin-bottom: 14px; }
.featured-post h2{ font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 12px; }
.featured-post p{ font-size: .96rem; color: var(--v9-body); margin-bottom: 18px; }
.featured-post .read-more{ font-family: var(--v9-font-heading); font-weight: 700; color: var(--v9-primary); font-size: .92rem; }

.sidebar-box{ background: #fff; border: 1px solid var(--v9-border); border-radius: var(--v9-radius); padding: 26px; margin-bottom: 24px; }
.sidebar-box h4{ font-size: 1rem; margin-bottom: 16px; }
.sidebar-list li{ display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.sidebar-list .thumb-sm{ width: 56px; height: 56px; border-radius: 10px; background: var(--v9-gradient-soft); flex-shrink: 0; overflow: hidden; }
.sidebar-list .thumb-sm img{ width:100%; height:100%; object-fit:cover; }
.sidebar-list a{ font-size: .88rem; font-weight: 600; color: var(--v9-ink); line-height: 1.4; }
.sidebar-list a:hover{ color: var(--v9-primary); }
.sidebar-cat-list li{ margin-bottom: 4px; }
.sidebar-cat-list a{ display: flex; justify-content: space-between; padding: 9px 4px; font-size: .9rem; font-weight: 500; color: var(--v9-body); border-bottom: 1px solid var(--v9-border); }
.sidebar-cat-list li:last-child a{ border-bottom: none; }
.sidebar-cat-list a:hover{ color: var(--v9-primary); }
.sidebar-cat-list .count{ color: var(--v9-muted); font-size: .82rem; }
.tag-cloud a{ display: inline-block; background: var(--v9-bg-soft); padding: 6px 14px; border-radius: 100px; font-size: .82rem; margin: 0 6px 8px 0; }

.pagination{ display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span{
  min-width: 42px; height: 42px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--v9-border);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem;
}
.pagination .current{ background: var(--v9-gradient); color: #fff; border-color: transparent; }
.pagination a:hover{ border-color: var(--v9-primary); color: var(--v9-primary); }

/* single post */
.single-post-header{ margin-bottom: 32px; }
.single-post-header .meta{ font-size: .88rem; color: var(--v9-muted); margin-bottom: 16px; display:flex; gap:14px; flex-wrap:wrap; }
.single-post-thumb{ border-radius: var(--v9-radius); overflow: hidden; margin-bottom: 40px; aspect-ratio: 21/9; }
.single-post-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.entry-content{ font-size: 1.05rem; max-width: 760px; }
.entry-content h2{ margin: 2em 0 .6em; font-size: 1.5rem; }
.entry-content h3{ margin: 1.6em 0 .5em; }
.entry-content p{ margin-bottom: 1.3em; }
.entry-content img{ border-radius: var(--v9-radius); margin: 1.5em 0; }
.entry-content ul, .entry-content ol{ margin: 0 0 1.3em 1.4em; list-style: revert; }
.entry-content blockquote{ border-left: 4px solid var(--v9-primary); padding: 4px 0 4px 22px; font-style: italic; color: var(--v9-ink); margin: 1.6em 0; }
.entry-content a{ color: var(--v9-primary); text-decoration: underline; }
.post-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 32px; }
.post-share{ display: flex; gap: 10px; align-items: center; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--v9-border); }

/* ==========================================================================
   17. CONTACT PAGE
   ========================================================================== */
.contact-layout{ display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.contact-info-card{ background: var(--v9-bg-deep); color: #fff; border-radius: var(--v9-radius-lg); padding: 40px; }
.contact-info-card h3{ color: #fff; }
.contact-info-item{ display: flex; gap: 16px; margin-top: 26px; }
.contact-info-item .icon{ width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-info-item strong{ display: block; color: #fff; font-size: .95rem; }
.contact-info-item span{ font-size: .88rem; color: #B8AFD1; }

.contact-form{ background: #fff; border: 1px solid var(--v9-border); border-radius: var(--v9-radius-lg); padding: 40px; box-shadow: var(--v9-shadow); }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group{ margin-bottom: 18px; }
.form-group label{ display: block; font-size: .85rem; font-weight: 600; color: var(--v9-ink); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select{
  width: 100%; padding: 13px 16px; border: 1px solid var(--v9-border); border-radius: 12px; background: var(--v9-bg-soft);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{ outline: none; border-color: var(--v9-primary); background: #fff; }
.form-note{ font-size: .82rem; color: var(--v9-muted); margin-top: 10px; }
.form-success{ background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; padding: 16px 20px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; font-size: .92rem; }
.form-error{ background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; padding: 16px 20px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; font-size: .92rem; }
.hp-field{ position: absolute; left: -9999px; }

/* ==========================================================================
   18. 404 / SEARCH / MISC
   ========================================================================== */
.error-404{ text-align: center; padding: 120px 0; }
.error-404 .code{ font-family: var(--v9-font-heading); font-weight: 800; font-size: 6rem; line-height: 1; background: var(--v9-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search-form-block{ display: flex; gap: 10px; max-width: 480px; margin: 28px auto 0; }
.search-form-block input{ flex: 1; padding: 14px 18px; border: 1px solid var(--v9-border); border-radius: 100px; }
.search-form-block button{ padding: 14px 24px; border-radius: 100px; background: var(--v9-gradient); color: #fff; border: none; font-weight: 700; }

.skip-link{ position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px 20px; z-index: 10000; }
.skip-link:focus{ left: 10px; top: 10px; }

/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .stats-grid{ grid-template-columns: repeat(3, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 460px; margin: 0 auto 20px; }
  .blog-layout{ grid-template-columns: 1fr; }
  .featured-post{ grid-template-columns: 1fr; }
  .featured-post .thumb{ min-height: 200px; }
  .featured-post .body{ padding: 26px; }
  .contact-layout{ grid-template-columns: 1fr; }
}
@media (max-width: 782px){
  .primary-nav{ position: fixed; inset: 0 0 0 30%; top: 70px; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px; overflow-y: auto; box-shadow: var(--v9-shadow-lg); transform: translateX(100%); transition: transform .25s ease; }
  .primary-nav.open{ transform: translateX(0); }
  .primary-nav ul{ flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav .sub-menu{ position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; display:none; margin-left: 12px; }
  .primary-nav li.open > .sub-menu{ display: block; }
  .primary-nav .mega-menu{
    position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none;
    display: none; grid-template-columns: 1fr; width:auto; padding: 4px 0 4px 12px; gap: 18px;
  }
  .primary-nav li.open > .mega-menu{ display: grid; }
  .menu-toggle{ display: flex; }
  .header-actions .btn-primary{ display: none; }
  .hero-ctas .btn{ width: 100%; }
  .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .cta-banner{ padding: 44px 24px; }
  .section{ padding: 60px 0; }
}
