/* ============================================================
       RESET & SHARED BASE
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-size: 16px; line-height: 1.7; transition: background 0.25s, color 0.25s; }
    img  { max-width: 100%; display: block; }
    a    { text-decoration: none; }
    ul   { list-style: none; }
    button, input { outline: none; }

    .container       { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
    .container--narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

    /* ── Header ── */
    .site-header {
      position: sticky; top: 0; z-index: 200; height: 62px;
      display: flex; align-items: center;
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    }
    .header-inner { display: flex; align-items: center; width: 100%; gap: 20px; }
    .header-logo  { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.4px; flex: 0 0 auto; }
    .header-tagline { font-size: 0.72rem; opacity: 0.55; margin-top: 2px; }
    .site-nav  { margin-left: auto; }
    .site-nav ul { display: flex; gap: 4px; }
    .site-nav a  { font-size: 0.88rem; font-weight: 500; padding: 6px 12px; border-radius: 20px; transition: background 0.2s, color 0.2s; }
    .nav-toggle  { display: none; background: transparent; border: none; padding: 6px; cursor: pointer; margin-left: auto; }
    .nav-toggle svg line { transition: stroke 0.2s; }

    /* ── Progress bar ── */
    .progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 9999; transition: width 0.1s linear; }

    /* ── Article Hero ── */
    .article-hero { padding: 48px 0 0; }
    .hero-image-wrap { margin-bottom: 40px; }
    .hero-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: 16px; }
    .hero-image-placeholder { width: 100%; height: 400px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; opacity: 0.6; }
    .article-category { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 18px; }
    .article-title    { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.8px; margin-bottom: 16px; }
    .article-subtitle { font-size: 1.2rem; line-height: 1.55; margin-bottom: 28px; opacity: 0.7; }
    .article-meta     { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid; border-bottom: 1px solid; margin-bottom: 48px; }
    .meta-avatar      { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
    .meta-avatar-ph   { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
    .meta-info        { flex: 1; }
    .meta-author      { font-weight: 700; font-size: 0.92rem; }
    .meta-date        { font-size: 0.8rem; opacity: 0.6; margin-top: 2px; }
    .meta-read        { font-size: 0.82rem; font-weight: 600; opacity: 0.55; margin-left: auto; }

    /* Share bar */
    .share-bar { display: flex; align-items: center; gap: 10px; }
    .share-btn { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; border: none; cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
    .share-btn:hover { opacity: 0.8; transform: scale(1.1); }

    /* ── Article Body ── */
    .article-body { font-size: 1.1rem; line-height: 1.9; margin-bottom: 64px; }
    .article-body p  { margin-bottom: 22px; }
    .article-body h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.4px; margin: 48px 0 18px; }
    .article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 36px 0 14px; }
    .article-body ul, .article-body ol { padding-left: 28px; margin-bottom: 22px; }
    .article-body li { margin-bottom: 8px; }
    .article-body blockquote {
      padding: 22px 28px; margin: 36px 0;
      font-size: 1.25rem; font-style: italic; line-height: 1.65;
      border-radius: 8px;
    }
    .article-intro-p { font-size: 1.2rem; line-height: 1.85; }

    /* ── Author Bio ── */
    .author-bio { display: flex; gap: 24px; align-items: flex-start; padding: 32px; border-radius: 16px; margin-bottom: 64px; }
    .bio-avatar  { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
    .bio-avatar-ph { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; flex-shrink: 0; }
    .bio-text h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
    .bio-text .bio-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; display: block; opacity: 0.55; }
    .bio-text p  { font-size: 0.92rem; line-height: 1.7; opacity: 0.75; }

    /* ── Related articles ── */
    .related-section { margin-bottom: 64px; }
    .section-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; opacity: 0.55; }
    .related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
    .related-card { border-radius: 12px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
    .related-card:hover { transform: translateY(-4px); }
    .related-img  { width: 100%; height: 160px; object-fit: cover; display: block; }
    .related-img-ph { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; opacity: 0.5; }
    .related-body { padding: 16px 18px 20px; }
    .related-cat  { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; display: block; }
    .related-title { font-size: 0.98rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
    .related-title a { }
    .related-exc  { font-size: 0.85rem; line-height: 1.55; opacity: 0.65; }

    /* ── Comments ── */
    .comments-section { margin-bottom: 64px; }
    .comment-list { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
    .comment { display: flex; gap: 16px; }
    .comment-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; flex-shrink: 0; }
    .comment-body { flex: 1; }
    .comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
    .comment-name   { font-weight: 700; font-size: 0.9rem; }
    .comment-date   { font-size: 0.78rem; opacity: 0.5; }
    .comment-text   { font-size: 0.92rem; line-height: 1.65; opacity: 0.8; }

    /* ── Newsletter ── */
    .newsletter-section { padding: 48px 36px; border-radius: 20px; margin-bottom: 64px; text-align: center; }
    .newsletter-section h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.3px; }
    .newsletter-section p  { font-size: 0.95rem; opacity: 0.7; margin-bottom: 24px; }
    .newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
    .newsletter-form input { flex: 1; min-width: 200px; padding: 12px 18px; border-radius: 30px; font-size: 0.9rem; border: none; }
    .newsletter-form button { padding: 12px 26px; border-radius: 30px; font-size: 0.9rem; font-weight: 700; border: none; cursor: pointer; transition: opacity 0.2s, transform 0.15s; white-space: nowrap; }
    .newsletter-form button:hover { opacity: 0.88; transform: scale(1.02); }

    /* ── Footer ── */
    .site-footer { padding: 36px 0; }
    .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; }
    .footer-brand { font-weight: 700; font-size: 1rem; }
    .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
    .footer-links a { opacity: 0.6; transition: opacity 0.2s; }
    .footer-links a:hover { opacity: 1; }
    .footer-copy { opacity: 0.45; font-size: 0.82rem; }

    /* ============================================================
       THEME 1 — Clean White + Blue  (News)
    ============================================================ */
    body.theme1 {
      --p:       #0077CC;
      --pd:      #005fa3;
      --pl:      #e6f2fa;
      --text:    #0f172a;
      --text2:   #64748b;
      --bg:      #ffffff;
      --bgalt:   #f1f5f9;
      --surf:    #f8fafc;
      --border:  #e2e8f0;
      background: var(--bg); color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    .theme1 .site-header { background: rgba(255,255,255,0.88); border-bottom: 1px solid var(--border); }
    .theme1 .header-logo { color: var(--p); }
    .theme1 .site-nav a  { color: var(--text2); }
    .theme1 .site-nav a:hover { background: var(--pl); color: var(--p); }
    .theme1 .nav-toggle svg line { stroke: var(--text); }
    .theme1 .progress-bar { background: var(--p); }

    .theme1 .hero-image-placeholder { background: linear-gradient(135deg, var(--pl), #d0e9f7); color: var(--p); }
    .theme1 .article-category { background: var(--pl); color: var(--p); }
    .theme1 .article-title    { color: var(--text); }
    .theme1 .article-meta     { border-color: var(--border); }
    .theme1 .meta-avatar-ph   { background: var(--pl); color: var(--p); }
    .theme1 .share-btn.s-tw   { background: #000; color: #fff; }
    .theme1 .share-btn.s-fb   { background: #1877F2; color: #fff; }
    .theme1 .share-btn.s-li   { background: #0A66C2; color: #fff; }
    .theme1 .article-body blockquote { background: var(--pl); border-left: 4px solid var(--p); color: var(--pd); }
    .theme1 .article-body h2  { color: var(--text); }

    .theme1 .author-bio  { background: var(--surf); border: 1px solid var(--border); }
    .theme1 .bio-avatar-ph { background: var(--pl); color: var(--p); }

    .theme1 .related-card { background: var(--surf); border: 1px solid var(--border); }
    .theme1 .related-card:hover { box-shadow: 0 12px 30px rgba(0,119,204,0.12); }
    .theme1 .related-img-ph { background: var(--pl); }
    .theme1 .related-cat  { color: var(--p); }
    .theme1 .related-title a { color: var(--text); }
    .theme1 .related-title a:hover { color: var(--p); }

    .theme1 .comment-avatar { background: var(--pl); color: var(--p); }
    .theme1 .comment { border-bottom: 1px solid var(--border); padding-bottom: 28px; }

    .theme1 .newsletter-section { background: var(--p); }
    .theme1 .newsletter-section h3, .theme1 .newsletter-section p { color: #fff; }
    .theme1 .newsletter-form input  { border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.15); color: #fff; }
    .theme1 .newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
    .theme1 .newsletter-form button { background: #fff; color: var(--p); }

    .theme1 .site-footer { background: #0f172a; border-top: none; }
    .theme1 .footer-brand, .theme1 .footer-links a, .theme1 .footer-copy { color: rgba(255,255,255,0.75); }

    /* ============================================================
       THEME 2 — Dark + Cyan  (Tech Blog)
    ============================================================ */







    /* ============================================================
       THEME 3 — White + Red  (Magazine)
    ============================================================ */







    /* ============================================================
       THEME 4 — Minimal White + Black  (Medium style)
    ============================================================ */







    /* ============================================================
       THEME 5 — Cream + Green  (Lifestyle Blog)
    ============================================================ */







    /* ============================================================
       RESPONSIVE
    ============================================================ */
    @media (max-width: 768px) {
      .related-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 560px) {
      .article-title { font-size: 1.8rem; }
      .related-grid  { grid-template-columns: 1fr; }
      .author-bio    { flex-direction: column; }
      .site-nav { display: none; }
      .site-nav.is-open { display: block; position: fixed; inset: 62px 0 0; padding: 24px; z-index: 199; }
      .site-nav.is-open ul { flex-direction: column; gap: 6px; }
      .site-nav.is-open a  { font-size: 1.1rem; padding: 12px 16px; display: block; border-radius: 10px; }
      .nav-toggle { display: flex; }
      .footer-inner { flex-direction: column; text-align: center; }
      .footer-links { justify-content: center; }
      .newsletter-section { padding: 36px 20px; }
      .comment { flex-direction: column; }
    }
  
    /* ── In-page nav anchors (offset for sticky header) ─── */
    #related, #about { scroll-margin-top: 80px; }
    /* ── Privacy/Terms/Contact modals ──────────────────── */
    .vv-modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.55); align-items: center; justify-content: center; padding: 24px; }
    .vv-modal-overlay.is-open { display: flex; }
    .vv-modal-box { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 16px; max-width: 640px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 36px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
    .vv-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--surf); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
    .vv-modal-close:hover { background: var(--border); }
    .vv-modal-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; color: var(--text); }
    .vv-modal-body { font-size: 1rem; line-height: 1.8; color: var(--text2); }
    .vv-modal-body p { margin-bottom: 16px; }
    .vv-modal-body h2 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 12px; color: var(--text); }
    .vv-modal-body ul, .vv-modal-body ol { padding-left: 24px; margin-bottom: 16px; }
    .vv-modal-body li { margin-bottom: 6px; }
    .vv-modal-body a { color: var(--p); text-decoration: underline; }

    /* ── Layout pack (theme 1) ─────────────────── */
    .article-body table { width:100%; border-collapse:collapse; margin:28px 0; font-size:0.96rem; }
    .article-body th, .article-body td { padding:12px 14px; text-align:left; }
    .wp-block { margin:56px 0; }
    .wp-block-img { width:100%; height:auto; display:block; }
    .wp-points { list-style:none; padding:0; margin:24px 0; }
    .wp-points li { padding:14px 0 14px 34px; position:relative; }
    .wp-points li:before { content:''; position:absolute; left:6px; top:20px; width:10px; height:10px; border-radius:50%; background:var(--p); }
    .wp-steps { counter-reset:wpstep; list-style:none; padding:0; margin:24px 0; }
    .wp-steps li { counter-increment:wpstep; padding:16px 0 16px 52px; position:relative; }
    .wp-steps li:before { content:counter(wpstep); position:absolute; left:0; top:14px; width:32px; height:32px; border-radius:50%; background:var(--p); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; font-size:0.9rem; }
    .wp-faq-q { font-weight:700; margin:22px 0 6px; }
    .wp-faq-a { color:var(--text2); margin-bottom:4px; }
    .wp-disclosure { border-top:1px solid var(--border); margin-top:40px; padding:22px 0 0; font-size:0.8rem; line-height:1.7; color:var(--text2); }
    .wp-disclosure strong { color:var(--text); }
    .wp-advertorial { background:var(--surf); border-left:3px solid var(--p); padding:14px 18px; margin:0 0 18px; font-size:0.8rem; color:var(--text2); border-radius:4px; }
    .related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
    .related-card { border:1px solid var(--border); border-radius:6px; overflow:hidden; background:var(--bg); }
    .article-body th { background:var(--pl); color:var(--p); border-bottom:2px solid var(--p); }
    .article-body td { border-bottom:1px solid var(--border); }
    .wp-block { border-top:3px solid var(--p); padding-top:28px; }
    @media (max-width:860px){ .related-grid { grid-template-columns:1fr 1fr; } }
    @media (max-width:560px){ .related-grid { grid-template-columns:1fr; } }
