/*
    Theme Name:   Twenty Twenty-Five Child
    Template:     twentytwentyfive
    Description:  BoltSEO blog child theme
    Version:      1.0
    */

    :root {
      --bs-primary:  #0A1628;
      --bs-accent:   #00D4AA;
      --bs-surface:  #F4F5F7;
      --bs-text:     #1A1A2E;
      --bs-muted:    #6B7280;
    }

    .boltseo-blog-hero,
    .boltseo-posts-section,
    .boltseo-post-header,
    .boltseo-post-image-wrapper,
    .boltseo-post-content-section,
    .boltseo-cta-banner,
    .boltseo-navbar,
    .boltseo-footer {
      font-family: 'DM Sans', sans-serif;
      box-sizing: border-box;
    }

    /* ==============================================
       NAVBAR
       ============================================== */

    .boltseo-navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      transition: background 0.3s, box-shadow 0.3s;
      background: transparent;
    }
    .boltseo-navbar.scrolled {
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    }
    .boltseo-nav-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .boltseo-nav-logo {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-weight: 800;
      font-size: 1.15rem;
      color: #fff;
      text-decoration: none;
      white-space: nowrap;
      flex-shrink: 0;
      transition: color 0.2s;
    }
    .boltseo-navbar.scrolled .boltseo-nav-logo { color: var(--bs-primary); }

    .boltseo-nav-links {
      display: none;
      align-items: center;
      gap: 2px;
      flex: 1;
      justify-content: center;
    }
    @media (min-width: 768px) {
      .boltseo-nav-links { display: flex; }
    }
    .boltseo-nav-links a {
      font-size: 0.875rem;
      font-weight: 500;
      color: rgba(255,255,255,0.75);
      text-decoration: none;
      padding: 7px 13px;
      border-radius: 8px;
      transition: color 0.2s, background 0.2s;
    }
    .boltseo-nav-links a:hover {
      color: #fff;
      background: rgba(255,255,255,0.08);
    }
    .boltseo-nav-links a.boltseo-nav-current {
      color: #fff;
      font-weight: 600;
    }
    .boltseo-navbar.scrolled .boltseo-nav-links a { color: var(--bs-muted); }
    .boltseo-navbar.scrolled .boltseo-nav-links a:hover { color: var(--bs-text); background: var(--bs-surface); }
    .boltseo-navbar.scrolled .boltseo-nav-links a.boltseo-nav-current { color: var(--bs-text); }

    .boltseo-nav-ctas {
      display: none;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
    @media (min-width: 768px) {
      .boltseo-nav-ctas { display: flex; }
    }
    .boltseo-nav-login {
      font-size: 0.875rem;
      font-weight: 500;
      color: rgba(255,255,255,0.75);
      text-decoration: none;
      padding: 7px 14px;
      border-radius: 8px;
      transition: color 0.2s;
    }
    .boltseo-nav-login:hover { color: #fff; }
    .boltseo-navbar.scrolled .boltseo-nav-login { color: var(--bs-muted); }
    .boltseo-navbar.scrolled .boltseo-nav-login:hover { color: var(--bs-text); }

    .boltseo-nav-signup {
      font-size: 0.875rem;
      font-weight: 700;
      color: var(--bs-primary);
      background: var(--bs-accent);
      text-decoration: none;
      padding: 8px 18px;
      border-radius: 10px;
      transition: background 0.2s, transform 0.15s;
    }
    .boltseo-nav-signup:hover { background: #00bfa0; transform: translateY(-1px); }

    .boltseo-hamburger {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 36px;
      height: 36px;
      padding: 6px;
      background: rgba(255,255,255,0.08);
      border: none;
      border-radius: 8px;
      cursor: pointer;
      flex-shrink: 0;
    }
    @media (min-width: 768px) {
      .boltseo-hamburger { display: none; }
    }
    .boltseo-hamburger span {
      display: block;
      height: 2px;
      background: #fff;
      border-radius: 2px;
      transition: transform 0.25s, opacity 0.25s;
    }
    .boltseo-navbar.scrolled .boltseo-hamburger { background: var(--bs-surface); }
    .boltseo-navbar.scrolled .boltseo-hamburger span { background: var(--bs-text); }
    .boltseo-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .boltseo-hamburger.open span:nth-child(2) { opacity: 0; }
    .boltseo-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .boltseo-mobile-menu {
      display: none;
      flex-direction: column;
      background: var(--bs-primary);
      border-top: 1px solid rgba(255,255,255,0.08);
      padding: 12px 20px 20px;
      gap: 2px;
    }
    .boltseo-mobile-menu.open { display: flex; }
    .boltseo-navbar.scrolled .boltseo-mobile-menu {
      background: rgba(255,255,255,0.97);
      border-top-color: #e5e7eb;
    }
    @media (min-width: 768px) {
      .boltseo-mobile-menu { display: none !important; }
    }
    .boltseo-mobile-menu a {
      font-size: 0.95rem;
      font-weight: 500;
      color: rgba(255,255,255,0.8);
      text-decoration: none;
      padding: 10px 12px;
      border-radius: 8px;
      transition: background 0.15s, color 0.15s;
    }
    .boltseo-mobile-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
    .boltseo-navbar.scrolled .boltseo-mobile-menu a { color: var(--bs-muted); }
    .boltseo-navbar.scrolled .boltseo-mobile-menu a:hover { background: var(--bs-surface); color: var(--bs-text); }

    .boltseo-mobile-ctas {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }
    .boltseo-navbar.scrolled .boltseo-mobile-ctas { border-top-color: #e5e7eb; }

    .boltseo-mobile-login {
      font-size: 0.9rem;
      font-weight: 500;
      color: rgba(255,255,255,0.75) !important;
      text-decoration: none;
      padding: 10px 12px !important;
      text-align: center;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.15);
    }
    .boltseo-navbar.scrolled .boltseo-mobile-login {
      color: var(--bs-muted) !important;
      border-color: #e5e7eb;
    }
    .boltseo-mobile-signup {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--bs-primary) !important;
      background: var(--bs-accent);
      text-decoration: none;
      padding: 10px 12px !important;
      border-radius: 10px;
      text-align: center;
    }
    .boltseo-mobile-signup:hover { background: #00bfa0; }

    /* ==============================================
       BLOG HERO
       ============================================== */

    .boltseo-blog-hero {
      position: relative;
      background: var(--bs-primary);
      padding: 128px 20px 80px;
      overflow: hidden;
      text-align: center;
    }
    .boltseo-blob {
      position: absolute;
      border-radius: 9999px;
      filter: blur(80px);
      pointer-events: none;
    }
    .boltseo-blob-left {
      top: 33%; left: -160px;
      width: 384px; height: 384px;
      background: rgba(0,212,170,0.10);
    }
    .boltseo-blob-right {
      bottom: 0; right: 0;
      width: 320px; height: 320px;
      background: rgba(0,212,170,0.08);
    }
    .boltseo-hero-grid {
      position: absolute;
      inset: 0;
      opacity: 0.6;
      background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
      background-size: 36px 36px;
    }
    .boltseo-hero-content {
      position: relative;
      max-width: 800px;
      margin: 0 auto;
    }
    .boltseo-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(0,212,170,0.10);
      border: 1px solid rgba(0,212,170,0.20);
      border-radius: 9999px;
      padding: 6px 16px;
      margin-bottom: 24px;
      color: var(--bs-accent);
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }
    .boltseo-hero-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: clamp(2.2rem, 5vw, 3.2rem);
      font-weight: 800;
      color: #fff;
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin: 0 0 20px;
    }
    .boltseo-hero-sub {
      font-size: 1.125rem;
      color: #94a3b8;
      line-height: 1.75;
      max-width: 640px;
      margin: 0 auto;
    }

    /* ==============================================
       BLOG LISTING GRID
       ============================================== */

    .boltseo-posts-section {
      background: var(--bs-surface);
      padding: 64px 20px;
    }
    .boltseo-container {
      max-width: 1280px;
      margin: 0 auto;
    }
    .boltseo-posts-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }
    @media (min-width: 640px) {
      .boltseo-posts-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width: 1024px) {
      .boltseo-posts-grid { grid-template-columns: repeat(4, 1fr); }
    }

    /* ==============================================
       BLOG CARD
       ============================================== */

    .boltseo-card {
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      overflow: hidden;
      transition: box-shadow 0.2s;
    }
    .boltseo-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.10); }

    .boltseo-card-image-link {
      display: block;
      overflow: hidden;
    }
    .boltseo-card-image-link img {
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      display: block;
      transition: transform 0.5s;
    }
    .boltseo-card:hover .boltseo-card-image-link img { transform: scale(1.02); }

    .boltseo-card-body { padding: 16px; }

    .boltseo-card-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }
    .boltseo-badge-category {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--bs-accent);
      background: rgba(0,212,170,0.10);
      padding: 4px 10px;
      border-radius: 9999px;
    }
    .boltseo-meta-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.75rem;
      color: var(--bs-muted);
    }
    .boltseo-card-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.1rem;
      font-weight: 700;
      line-height: 1.3;
      margin: 0 0 8px;
    }
    .boltseo-card-title a {
      color: var(--bs-text);
      text-decoration: none;
      transition: color 0.2s;
    }
    .boltseo-card-title a:hover { color: var(--bs-accent); }

    .boltseo-card-excerpt {
      color: var(--bs-muted);
      font-size: 0.75rem;
      line-height: 1.5;
      margin: 0 0 12px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .boltseo-read-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--bs-accent);
      text-decoration: none;
      transition: gap 0.2s;
    }
    .boltseo-read-link:hover { gap: 10px; }

    /* ==============================================
       PAGINATION
       ============================================== */

    .boltseo-pagination { margin-top: 48px; text-align: center; }
    .boltseo-pagination .nav-links a,
    .boltseo-pagination .nav-links span {
      display: inline-block;
      padding: 8px 14px;
      margin: 0 4px;
      border-radius: 8px;
      font-size: 0.875rem;
      text-decoration: none;
      color: var(--bs-text);
      border: 1px solid #e5e7eb;
    }
    .boltseo-pagination .nav-links .current {
      background: var(--bs-accent);
      color: var(--bs-primary);
      border-color: var(--bs-accent);
      font-weight: 700;
    }

    /* ==============================================
       SINGLE POST — HEADER
       ============================================== */

    .boltseo-post-header {
      background: var(--bs-primary);
      padding: 112px 20px 48px;
    }
    .boltseo-post-container {
      max-width: 768px;
      margin: 0 auto;
    }
    .boltseo-back-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.875rem;
      color: #94a3b8;
      text-decoration: none;
      margin-bottom: 32px;
      transition: color 0.2s;
    }
    .boltseo-back-link:hover { color: #fff; }

    .boltseo-post-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }
    .boltseo-meta-light { color: #94a3b8; }

    .boltseo-post-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: clamp(1.875rem, 4vw, 3rem);
      font-weight: 800;
      color: #fff;
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin: 0 0 20px;
    }
    .boltseo-post-description {
      font-size: 1.125rem;
      color: #94a3b8;
      line-height: 1.75;
      margin: 0 0 32px;
    }
    .boltseo-author {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .boltseo-author-avatar {
      width: 36px; height: 36px;
      border-radius: 50%;
      background: var(--bs-accent);
      color: var(--bs-primary);
      font-weight: 700;
      font-size: 0.875rem;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .boltseo-author-name { font-size: 0.875rem; font-weight: 600; color: #fff; margin: 0; }
    .boltseo-author-role { font-size: 0.75rem; color: #64748b; margin: 0; }

    /* ==============================================
       SINGLE POST — FEATURED IMAGE
       ============================================== */

    .boltseo-post-image-wrapper { background: var(--bs-primary); padding-bottom: 0; }
    .boltseo-post-featured-image {
      width: 100%;
      aspect-ratio: 16/9;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.10);
    }
    .boltseo-post-featured-image img {
      width: 100%; height: 100%;
      object-fit: cover; display: block;
    }

    /* ==============================================
       SINGLE POST — CONTENT
       ============================================== */

    .boltseo-post-content-section {
      background: #fff;
      padding: 56px 20px;
    }
    .boltseo-prose {
      max-width: 768px;
      margin: 0 auto;
      font-size: 1.125rem;
      line-height: 1.75;
      color: #374151;
    }
    .boltseo-prose h2 {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--bs-text);
      letter-spacing: -0.02em;
      margin: 40px 0 16px;
    }
    .boltseo-prose h3 {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.375rem;
      font-weight: 700;
      color: var(--bs-text);
      margin: 28px 0 12px;
    }
    .boltseo-prose h4 {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--bs-text);
      margin: 20px 0 10px;
    }
    .boltseo-prose p { margin: 0 0 20px; }
    .boltseo-prose a { color: var(--bs-accent); text-decoration: none; }
    .boltseo-prose a:hover { text-decoration: underline; }
    .boltseo-prose strong { color: var(--bs-text); font-weight: 700; }
    .boltseo-prose ul,
    .boltseo-prose ol { padding-left: 24px; margin: 0 0 20px; color: #374151; }
    .boltseo-prose li { margin-bottom: 8px; }
    .boltseo-prose ul li::marker { color: var(--bs-accent); }
    .boltseo-prose ol li::marker { color: var(--bs-accent); font-weight: 700; }
    .boltseo-prose blockquote {
      border-left: 4px solid rgba(0,212,170,0.5);
      background: rgba(0,212,170,0.05);
      border-radius: 0 12px 12px 0;
      padding: 12px 20px;
      margin: 24px 0;
      color: #4b5563;
      font-style: normal;
    }
    .boltseo-prose blockquote p { margin: 0; }
    .boltseo-prose code {
      color: var(--bs-accent);
      background: rgba(0,212,170,0.08);
      border-radius: 4px;
      padding: 2px 6px;
      font-size: 0.875em;
    }
    .boltseo-prose pre {
      background: var(--bs-primary);
      border-radius: 12px;
      padding: 20px;
      overflow-x: auto;
      margin: 24px 0;
    }
    .boltseo-prose pre code {
      background: none;
      color: #e2e8f0;
      padding: 0;
      font-size: 0.875rem;
    }
    .boltseo-prose img {
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.10);
      border: 1px solid #f3f4f6;
      max-width: 100%;
      height: auto;
      margin: 24px 0;
    }
    .boltseo-prose hr {
      border: none;
      border-top: 1px solid #f3f4f6;
      margin: 32px 0;
    }

    /* ==============================================
       TAGS
       ============================================== */

    .boltseo-tags {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-top: 48px;
      padding-top: 32px;
      border-top: 1px solid #f3f4f6;
      color: var(--bs-muted);
    }
    .boltseo-tag {
      font-size: 0.75rem;
      color: var(--bs-muted);
      background: var(--bs-surface);
      border: 1px solid #e5e7eb;
      padding: 4px 10px;
      border-radius: 9999px;
    }
    .boltseo-back-bottom { margin-top: 40px; }
    .boltseo-back-link-bottom {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--bs-muted);
      text-decoration: none;
      transition: color 0.2s;
    }
    .boltseo-back-link-bottom:hover { color: var(--bs-text); }

    /* ==============================================
       CTA BANNER
       ============================================== */

    .boltseo-cta-banner {
      position: relative;
      background: var(--bs-primary);
      padding: 80px 20px;
      overflow: hidden;
      text-align: center;
    }
    .boltseo-cta-blob-left {
      position: absolute; top: 0; left: 25%;
      width: 320px; height: 320px;
      background: rgba(0,212,170,0.10);
      border-radius: 50%;
      filter: blur(80px);
      pointer-events: none;
    }
    .boltseo-cta-blob-right {
      position: absolute; bottom: 0; right: 25%;
      width: 320px; height: 320px;
      background: rgba(0,212,170,0.08);
      border-radius: 50%;
      filter: blur(80px);
      pointer-events: none;
    }
    .boltseo-cta-content {
      position: relative;
      max-width: 768px;
      margin: 0 auto;
    }
    .boltseo-cta-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: clamp(1.875rem, 4vw, 3rem);
      font-weight: 800;
      color: #fff;
      line-height: 1.2;
      margin: 0 0 20px;
    }
    .boltseo-cta-sub {
      font-size: 1.125rem;
      color: #94a3b8;
      line-height: 1.75;
      margin: 0 0 32px;
    }
    .boltseo-cta-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
      justify-content: center;
      align-items: center;
    }
    @media (min-width: 640px) { .boltseo-cta-buttons { flex-direction: row; } }
    .boltseo-btn-primary {
      display: inline-flex;
      align-items: center;
      background: var(--bs-accent);
      color: var(--bs-primary);
      font-weight: 700;
      padding: 14px 28px;
      border-radius: 12px;
      text-decoration: none;
      font-size: 1rem;
      transition: background 0.2s, transform 0.2s;
    }
    .boltseo-btn-primary:hover { background: #00bfa0; transform: translateY(-1px); }
    .boltseo-btn-secondary {
      display: inline-flex;
      align-items: center;
      background: rgba(255,255,255,0.08);
      color: #fff;
      font-weight: 600;
      padding: 14px 28px;
      border-radius: 12px;
      text-decoration: none;
      font-size: 1rem;
      border: 1px solid rgba(255,255,255,0.15);
      transition: background 0.2s;
    }
    .boltseo-btn-secondary:hover { background: rgba(255,255,255,0.12); }

    /* ==============================================
       FOOTER
       ============================================== */

    .boltseo-footer {
      background: var(--bs-primary);
      border-top: 1px solid rgba(255,255,255,0.08);
    }
    .boltseo-footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 56px 20px 40px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
    }
    @media (min-width: 640px) {
      .boltseo-footer-inner { grid-template-columns: 1fr 1fr; }
    }
    @media (min-width: 960px) {
      .boltseo-footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
    }

    .boltseo-footer-logo {
      display: inline-flex;
      align-items: center;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-weight: 800;
      font-size: 1.15rem;
      color: #fff;
      text-decoration: none;
      margin-bottom: 12px;
    }
    .boltseo-footer-tagline {
      font-size: 0.875rem;
      color: #64748b;
      line-height: 1.75;
      margin: 0 0 20px;
      max-width: 260px;
    }
    .boltseo-footer-social {
      display: flex;
      gap: 8px;
    }
    .boltseo-footer-social a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 34px; height: 34px;
      border-radius: 8px;
      background: rgba(255,255,255,0.08);
      color: #94a3b8;
      text-decoration: none;
      transition: background 0.2s, color 0.2s;
    }
    .boltseo-footer-social a:hover {
      background: rgba(255,255,255,0.15);
      color: #fff;
    }

    .boltseo-footer-col h4 {
      font-size: 0.8125rem;
      font-weight: 700;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin: 0 0 16px;
    }
    .boltseo-footer-col ul {
      list-style: none;
      padding: 0; margin: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .boltseo-footer-col ul li a {
      font-size: 0.875rem;
      color: #64748b;
      text-decoration: none;
      transition: color 0.2s;
    }
    .boltseo-footer-col ul li a:hover { color: #94a3b8; }

    .boltseo-footer-bottom {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px 20px 32px;
      border-top: 1px solid rgba(255,255,255,0.06);
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 0.8125rem;
      color: #475569;
    }
    @media (min-width: 640px) {
      .boltseo-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }
    }

    /* ==============================================
       SCROLL REVEAL
       ============================================== */

    .bs-sr {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
                  transform 0.65s cubic-bezier(0.16,1,0.3,1);
    }
    .bs-sr.bs-visible { opacity: 1; transform: none; }