/*
Theme Name:   Blocksy Child — BabyGuide.ie
Theme URI:    https://www.babyguide.ie
Description:  Blocksy child theme for BabyGuide.ie with built-in SEO
Author:       BabyGuide.ie
Template:     blocksy
Version:      1.3.1
License:      GNU General Public License v2 or later
Text Domain:  blocksy-child
*/

/* ── Brand Colours ─────────────────────────────────────── */
:root {
    --bg-primary:       #0d9488;
    --bg-primary-light: #f0fdf9;
    --bg-primary-dark:  #0f766e;
    --bg-rose:          #f43f5e;
    --bg-rose-light:    #fff1f2;
    --bg-text:          #111827;
    --bg-muted:         #6b7280;
    --bg-border:        #e5e7eb;
    --bg-surface:       #f9fafb;
}

/* ── Affiliate Disclosure Box ──────────────────────────── */
.bg-affiliate-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.6;
}

/* ── Product Card ──────────────────────────────────────── */
.bg-product-card {
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.bg-product-card .bg-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.bg-product-card h3 {
    font-size: 1.2rem;
    margin: 8px 0;
    color: var(--bg-text);
}

.bg-stars { color: #f59e0b; letter-spacing: 2px; }

.bg-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
    font-size: 0.875rem;
}

.bg-pros-cons .bg-pro::before { content: "✓ "; color: #059669; }
.bg-pros-cons .bg-con::before { content: "✗ "; color: #dc2626; }

.bg-buy-btn {
    display: inline-block;
    background: var(--bg-primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s;
}
.bg-buy-btn:hover { background: var(--bg-primary-dark); }

/* ── Star Rating ───────────────────────────────────────── */
.bg-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

/* ── Table of Contents ─────────────────────────────────── */
.bg-toc {
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 28px 0;
    font-size: 0.9rem;
}

.bg-toc-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--bg-text);
}

.bg-toc ol { margin: 0; padding-left: 20px; }
.bg-toc li { margin: 6px 0; }
.bg-toc a { color: var(--bg-primary); text-decoration: none; }
.bg-toc a:hover { text-decoration: underline; }

/* ── FAQ Block ─────────────────────────────────────────── */
.bg-faq-item {
    border-bottom: 1px solid var(--bg-border);
    padding: 16px 0;
}
.bg-faq-item:last-child { border-bottom: none; }
.bg-faq-q { font-weight: 700; color: var(--bg-text); margin-bottom: 8px; }
.bg-faq-a { color: var(--bg-muted); line-height: 1.7; font-size: 0.95rem; }

/* ── Summary Box ───────────────────────────────────────── */
.bg-summary-box {
    background: var(--bg-primary-light);
    border: 1px solid #99f6e0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.bg-summary-box h4 {
    color: var(--bg-primary-dark);
    margin-bottom: 12px;
    font-size: 1rem;
}

/* ══════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════ */
.bg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-section         { padding: 64px 0; }
.bg-section--grey   { background: var(--bg-surface); }
.bg-section--white  { background: #fff; }

.bg-section-header {
    text-align: center;
    margin-bottom: 40px;
}
.bg-section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.bg-section-header p  { color: var(--bg-muted); font-size: 1.05rem; }

.bg-section-header--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
    gap: 12px;
}
.bg-section-header--row h2 { margin-bottom: 4px; }

.bg-link-more {
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
}
.bg-link-more:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.bg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-primary);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: 2px solid var(--bg-primary);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.bg-btn:hover { background: var(--bg-primary-dark); border-color: var(--bg-primary-dark); }

.bg-btn--outline {
    background: transparent;
    color: var(--bg-primary) !important;
}
.bg-btn--outline:hover { background: var(--bg-primary-light); }

.bg-btn--white {
    background: #fff;
    color: var(--bg-primary) !important;
    border-color: #fff;
}
.bg-btn--white:hover { background: var(--bg-primary-light); }

.bg-btn--full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════ */
.bg-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
}

/* ══════════════════════════════════════════════
   POST GRID
══════════════════════════════════════════════ */
.bg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ══════════════════════════════════════════════
   ARTICLE CARD
══════════════════════════════════════════════ */
.bg-card {
    background: #fff;
    border: 1px solid var(--bg-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    text-decoration: none;
    color: inherit;
}
.bg-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }

.bg-card-img { display: block; overflow: hidden; height: 200px; }
.bg-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bg-card:hover .bg-card-img img { transform: scale(1.03); }

.bg-card-img--placeholder {
    background: linear-gradient(135deg, var(--bg-primary-light), #fff1f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.bg-card-body   { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.bg-card-meta   { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bg-read-time   { font-size: 0.8rem; color: var(--bg-muted); }

.bg-card-title  { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0; }
.bg-card-title a { color: var(--bg-text); text-decoration: none; }
.bg-card:hover .bg-card-title a { color: var(--bg-primary); }

.bg-card-excerpt { font-size: 0.875rem; color: var(--bg-muted); line-height: 1.6; margin: 0; }

.bg-card-rating  { font-size: 0.9rem; }

.bg-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--bg-border);
    font-size: 0.8rem;
    color: var(--bg-muted);
}
.bg-card-link { color: var(--bg-primary); font-weight: 600; text-decoration: none; }

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.bg-pagination { margin-top: 48px; }
.bg-pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; justify-content: center; flex-wrap: wrap; }
.bg-pagination a, .bg-pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    border: 1px solid var(--bg-border); font-size: 0.9rem;
    text-decoration: none; color: var(--bg-text); transition: all .2s;
}
.bg-pagination .current { background: var(--bg-primary); color: #fff; border-color: var(--bg-primary); }
.bg-pagination a:hover  { border-color: var(--bg-primary); color: var(--bg-primary); }

/* ══════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════ */
.bg-empty { text-align: center; padding: 60px 20px; }
.bg-empty span { font-size: 4rem; display: block; margin-bottom: 16px; }
.bg-empty h3 { margin-bottom: 8px; }
.bg-empty p  { color: var(--bg-muted); margin-bottom: 24px; }

/* ══════════════════════════════════════════════
   BREADCRUMBS
══════════════════════════════════════════════ */
.bg-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--bg-muted);
    margin-bottom: 24px;
}
.bg-breadcrumbs a { color: var(--bg-muted); text-decoration: none; }
.bg-breadcrumbs a:hover { color: var(--bg-primary); }
.bg-breadcrumbs span:last-child { color: var(--bg-text); font-weight: 500; }

/* ══════════════════════════════════════════════
   HOMEPAGE — HERO
══════════════════════════════════════════════ */
.bg-hero {
    background: linear-gradient(135deg, var(--bg-primary-light) 0%, #fff1f2 100%);
    padding: 80px 0 64px;
    text-align: center;
}
.bg-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 16px 0 20px;
    color: var(--bg-text);
}
.bg-text-gradient {
    background: linear-gradient(90deg, var(--bg-primary), var(--bg-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-hero-sub {
    font-size: 1.15rem;
    color: var(--bg-muted);
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.bg-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.bg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
}
.bg-stat {
    background: #fff;
    border-radius: 14px;
    padding: 18px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.bg-stat strong { display: block; font-size: 1.8rem; color: var(--bg-primary); font-weight: 800; }
.bg-stat span   { font-size: 0.78rem; color: var(--bg-muted); margin-top: 4px; display: block; }

@media (max-width: 600px) {
    .bg-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════
   HOMEPAGE — TRUST BAR
══════════════════════════════════════════════ */
.bg-trust-bar { background: #fff; border-bottom: 1px solid var(--bg-border); padding: 20px 0; }
.bg-trust-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.bg-trust-item { display: flex; align-items: center; gap: 12px; }
.bg-trust-item > span { font-size: 1.8rem; flex-shrink: 0; }
.bg-trust-item strong { display: block; font-size: 0.9rem; color: var(--bg-text); }
.bg-trust-item small  { color: var(--bg-muted); font-size: 0.8rem; }

@media (max-width: 768px) {
    .bg-trust-bar__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════
   HOMEPAGE — CATEGORIES
══════════════════════════════════════════════ */
/* 4 cards per row, last row centred automatically */
.bg-cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.bg-cat-card {
    /* 4-per-row: (100% – 3 × 16px gap) / 4 */
    flex: 0 0 calc(25% - 12px);
    background: #fff;
    border: 1px solid var(--bg-border);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--bg-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}
.bg-cat-card:hover { border-color: var(--bg-primary); box-shadow: 0 4px 12px rgba(13,148,136,.12); }
.bg-cat-icon  { font-size: 2.4rem; }
.bg-cat-card strong { font-size: 0.9rem; font-weight: 700; }
.bg-cat-card small  { font-size: 0.78rem; color: var(--bg-primary); font-weight: 600; }

/* ══════════════════════════════════════════════
   HOMEPAGE — CTA BANNER
══════════════════════════════════════════════ */
.bg-cta-banner { background: var(--bg-rose-light); border-top: 1px solid #fecdd3; border-bottom: 1px solid #fecdd3; padding: 40px 0; }
.bg-cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.bg-cta-banner h2 { font-size: 1.3rem; margin-bottom: 6px; }
.bg-cta-banner p  { color: var(--bg-muted); font-size: 0.95rem; margin: 0; max-width: 520px; }

/* ══════════════════════════════════════════════
   HOMEPAGE — WHY TRUST US
══════════════════════════════════════════════ */
.bg-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.bg-why-card {
    background: #fff;
    border: 1px solid var(--bg-border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}
.bg-why-card > span { font-size: 2.8rem; display: block; margin-bottom: 12px; }
.bg-why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.bg-why-card p  { font-size: 0.875rem; color: var(--bg-muted); line-height: 1.7; margin: 0; }

@media (max-width: 768px) {
    .bg-why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════
   HOMEPAGE — NEWSLETTER
══════════════════════════════════════════════ */
.bg-newsletter { background: linear-gradient(135deg, var(--bg-primary), var(--bg-primary-dark)); padding: 64px 0; }
.bg-newsletter__inner { text-align: center; }
.bg-newsletter > .bg-container > span { font-size: 3rem; display: block; margin-bottom: 16px; }
.bg-newsletter h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.bg-newsletter p  { color: rgba(255,255,255,.85); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.bg-newsletter small { color: rgba(255,255,255,.6); font-size: 0.8rem; margin-top: 12px; display: block; }

.bg-newsletter__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 440px; margin: 0 auto; }
.bg-newsletter__form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    font-size: 0.95rem;
    outline: none;
}
.bg-newsletter__form button {
    background: #fff;
    color: var(--bg-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background .2s;
}
.bg-newsletter__form button:hover { background: var(--bg-primary-light); }

/* ══════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════ */
.bg-single-wrap { padding: 40px 0 64px; background: #fff; }

.bg-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 960px) {
    .bg-single-layout { grid-template-columns: 1fr; }
}

/* Post header */
.bg-post-header { margin-bottom: 28px; }
.bg-post-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--bg-muted);
}
.bg-post-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.25; margin-bottom: 16px; }
.bg-post-header__excerpt { font-size: 1.1rem; color: var(--bg-muted); line-height: 1.7; border-left: 4px solid var(--bg-primary); padding-left: 16px; }

/* Featured image */
.bg-post-thumbnail { border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.bg-post-thumbnail__img { width: 100%; height: auto; display: block; }

/* Post content */
.bg-post-content { font-size: 1rem; line-height: 1.8; color: #374151; }
.bg-post-content h2 { font-size: 1.5rem; margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--bg-border); }
.bg-post-content h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.bg-post-content p  { margin-bottom: 20px; }
.bg-post-content ul, .bg-post-content ol { margin: 0 0 20px 24px; }
.bg-post-content li { margin-bottom: 8px; }
.bg-post-content a  { color: var(--bg-primary); text-decoration: underline; text-underline-offset: 3px; }
.bg-post-content blockquote {
    border-left: 4px solid var(--bg-primary);
    background: var(--bg-primary-light);
    padding: 14px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    color: #374151;
    font-style: italic;
}
.bg-post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.bg-post-content th, .bg-post-content td {
    padding: 10px 14px;
    border: 1px solid var(--bg-border);
    text-align: left;
    font-size: 0.9rem;
}
.bg-post-content th { background: var(--bg-surface); font-weight: 700; }
.bg-post-content tr:nth-child(even) td { background: var(--bg-surface); }

/* FAQ within post */
.bg-faq-section { margin-top: 40px; border-top: 2px solid var(--bg-border); padding-top: 32px; }
.bg-faq-section h2 { margin-bottom: 20px; }

/* Post footer */
.bg-post-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--bg-border); }
.bg-post-footer__author { font-size: 0.875rem; color: var(--bg-muted); }

/* Sidebar */
.bg-single-sidebar { position: sticky; top: 90px; }

.bg-sidebar-box {
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}
.bg-sidebar-box h4 { font-size: 0.95rem; margin-bottom: 12px; }

.bg-sidebar-box--teal {
    background: var(--bg-primary-light);
    border-color: #99f6e0;
}

.bg-sidebar-meta { list-style: none; padding: 0; margin: 0 0 12px; font-size: 0.85rem; color: var(--bg-muted); }
.bg-sidebar-meta li { margin-bottom: 6px; }
.bg-sidebar-disclaimer { font-size: 0.75rem; color: var(--bg-muted); border-top: 1px solid var(--bg-border); padding-top: 10px; margin: 0; }

/* ══════════════════════════════════════════════
   ARCHIVE PAGE
══════════════════════════════════════════════ */
.bg-archive-header { text-align: center; margin-bottom: 48px; }
.bg-archive-icon   { font-size: 3.5rem; display: block; margin-bottom: 12px; }
.bg-archive-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 8px; }
.bg-archive-desc  { color: var(--bg-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 8px; }
.bg-archive-count { font-size: 0.875rem; color: var(--bg-primary); font-weight: 600; }

/* ══════════════════════════════════════════════
   STATIC PAGE
══════════════════════════════════════════════ */
.bg-page-wrap    { padding: 40px 0 80px; }
.bg-page-content header { margin-bottom: 24px; }
.bg-page-content h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.bg-page-intro   { font-size: 1.15rem; color: var(--bg-muted); }
.bg-page-thumbnail { margin: 24px 0; border-radius: 14px; overflow: hidden; }

.bg-prose { font-size: 1rem; line-height: 1.8; color: #374151; }
.bg-prose h2 { font-size: 1.4rem; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--bg-border); }
.bg-prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.bg-prose p  { margin-bottom: 18px; }
.bg-prose ul, .bg-prose ol { margin: 0 0 18px 24px; }
.bg-prose li { margin-bottom: 8px; }
.bg-prose a  { color: var(--bg-primary); text-decoration: underline; text-underline-offset: 3px; }

/* ══════════════════════════════════════════════
   SITE HEADER
══════════════════════════════════════════════ */
.bg-site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--bg-border);
    transition: box-shadow .2s;
}
.bg-site-header.is-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.09);
}

.bg-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 68px;
}

/* ── Logo ── */
.bg-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.bg-logo img     { height: 44px; width: auto; display: block; }
.bg-logo-mark    { font-size: 1.65rem; line-height: 1; }
.bg-logo-name    { font-size: 1.22rem; font-weight: 800; color: var(--bg-text); letter-spacing: -.025em; }
.bg-logo-name em { color: var(--bg-primary); font-style: normal; }

/* ── Desktop Navigation ── */
.bg-nav { margin-left: auto; }

.bg-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bg-nav__list > li { position: relative; }

.bg-nav__list > li > a {
    display: flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 8px;
    color: var(--bg-text);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.bg-nav__list > li > a:hover,
.bg-nav__list > li:hover > a          { background: var(--bg-primary-light); color: var(--bg-primary); }
.bg-nav__list > li.current-menu-item > a,
.bg-nav__list > li.current-menu-ancestor > a { color: var(--bg-primary); font-weight: 600; }

/* Sub-menus (dropdown) */
.bg-nav__list .sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 6px;
    list-style: none;
    margin: 0;
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 50;
}
.bg-nav__list li:hover > .sub-menu,
.bg-nav__list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.bg-nav__list .sub-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--bg-text);
    font-size: 0.875rem;
    text-decoration: none;
    transition: background .12s;
}
.bg-nav__list .sub-menu a:hover { background: var(--bg-surface); color: var(--bg-primary); }

/* ── Header action area ── */
.bg-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

.bg-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--bg-text);
    transition: background .15s, color .15s;
    padding: 0;
}
.bg-icon-btn:hover { background: var(--bg-surface); color: var(--bg-primary); }

/* ── Hamburger ── */
.bg-hamburger {
    display: none; /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background .15s;
}
.bg-hamburger:hover { background: var(--bg-surface); }
.bg-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--bg-text);
    border-radius: 2px;
    transition: transform .22s cubic-bezier(.4,0,.2,1), opacity .22s;
    transform-origin: center;
}
/* Animated ✕ when menu is open */
.bg-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bg-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bg-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Search drawer ── */
.bg-search-drawer {
    background: var(--bg-surface);
    border-top: 1px solid var(--bg-border);
    padding: 14px 0;
    animation: bg-reveal .15s ease;
}
@keyframes bg-reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bg-search-drawer .search-form,
.bg-search-drawer form { display: flex; gap: 8px; align-items: center; }

.bg-search-drawer input[type="search"],
.bg-search-drawer input[type="text"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--bg-border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.bg-search-drawer input:focus { border-color: var(--bg-primary); }

.bg-search-drawer button[type="submit"],
.bg-search-drawer input[type="submit"] {
    background: var(--bg-primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background .15s;
}
.bg-search-drawer button[type="submit"]:hover,
.bg-search-drawer input[type="submit"]:hover { background: var(--bg-primary-dark); }

/* ── Mobile navigation panel ── */
.bg-mobile-nav {
    background: #fff;
    border-top: 1px solid var(--bg-border);
    padding: 8px 0 16px;
    animation: bg-reveal .15s ease;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
}
.bg-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bg-mobile-nav__list li { border-bottom: 1px solid var(--bg-border); }
.bg-mobile-nav__list li:last-child { border-bottom: none; }
.bg-mobile-nav__list a {
    display: block;
    padding: 13px 20px;
    color: var(--bg-text);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .1s, color .1s;
}
.bg-mobile-nav__list a:hover { background: var(--bg-surface); color: var(--bg-primary); }
.bg-mobile-nav__list .sub-menu { list-style: none; margin: 0; padding: 0; background: var(--bg-surface); }
.bg-mobile-nav__list .sub-menu a {
    padding: 10px 20px 10px 36px;
    font-size: 0.875rem;
    color: var(--bg-muted);
    font-weight: 400;
}
.bg-mobile-nav__list .current-menu-item > a { color: var(--bg-primary); font-weight: 600; }

/* Show hamburger + hide desktop nav on mobile */
@media (max-width: 900px) {
    .bg-nav       { display: none; }
    .bg-hamburger { display: flex; }
}


/* ══════════════════════════════════════════════
   SITE FOOTER
══════════════════════════════════════════════ */
.bg-site-footer {
    background: #111827;
    color: rgba(255,255,255,.72);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Main footer grid */
.bg-footer-main { padding: 64px 0; }

.bg-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

/* Brand column */
.bg-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 14px;
}
.bg-footer-brand strong { font-weight: 800; letter-spacing: -.02em; }
.bg-footer-brand em     { color: var(--bg-primary); font-style: normal; }

.bg-footer-col--about p { margin-bottom: 20px; }

/* Social row */
.bg-footer-social     { display: flex; gap: 10px; }
.bg-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: background .2s, color .2s;
}
.bg-footer-social a:hover { background: var(--bg-primary); color: #fff; }

/* Column headings */
.bg-footer-heading {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 18px;
}

/* Link lists */
.bg-footer-links { list-style: none; margin: 0; padding: 0; }
.bg-footer-links li { margin-bottom: 10px; }
.bg-footer-links a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .15s;
}
.bg-footer-links a:hover { color: #fff; }
.bg-footer-links small { color: rgba(255,255,255,.3); font-size: 0.75rem; }

/* Newsletter column */
.bg-footer-newsletter-sub { margin-bottom: 16px; font-size: 0.875rem; }
.bg-footer-form { display: flex; flex-direction: column; gap: 8px; }

.bg-footer-form input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 0.875rem;
    outline: none;
    transition: border-color .15s;
}
.bg-footer-form input::placeholder { color: rgba(255,255,255,.35); }
.bg-footer-form input:focus        { border-color: var(--bg-primary); }

.bg-footer-form button {
    background: var(--bg-primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background .2s;
}
.bg-footer-form button:hover { background: var(--bg-primary-dark); }
.bg-footer-form-small { font-size: 0.75rem; color: rgba(255,255,255,.35); margin: 4px 0 0; }

/* Bottom bar */
.bg-footer-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0 24px; }

.bg-footer-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.bg-footer-copyright { margin: 0; color: rgba(255,255,255,.4); font-size: 0.8rem; }

.bg-footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.bg-footer-legal a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color .15s;
}
.bg-footer-legal a:hover { color: #fff; }

.bg-footer-affiliate-notice {
    font-size: 0.72rem;
    color: rgba(255,255,255,.28);
    line-height: 1.75;
    max-width: 920px;
}
.bg-footer-affiliate-notice a { color: rgba(255,255,255,.4); text-decoration: none; }
.bg-footer-affiliate-notice a:hover { color: rgba(255,255,255,.7); }

/* Footer responsive */
@media (max-width: 960px) {
    .bg-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .bg-footer-main { padding: 48px 0; }
}
@media (max-width: 560px) {
    .bg-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .bg-footer-main { padding: 36px 0; }
    .bg-footer-bar__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* ══════════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════════ */

/* Skip to main content — shown on keyboard focus */
.bg-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    background: var(--bg-primary);
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: top .15s;
}
.bg-skip-link:focus { top: 0; }

/* Keyboard focus rings — consistent brand colour */
:focus-visible {
    outline: 3px solid var(--bg-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Minimum touch target size — WCAG 2.5.5 */
.bg-btn { min-height: 44px; }

/* Tables scroll horizontally on narrow screens */
.bg-post-content table,
.bg-prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}
.bg-post-content table th,
.bg-post-content table td,
.bg-prose table th,
.bg-prose table td { white-space: normal; }


/* ══════════════════════════════════════════════
   RESPONSIVE — Large tablet  (≤ 960px)
══════════════════════════════════════════════ */
@media (max-width: 960px) {
    .bg-single-layout  { grid-template-columns: 1fr; }
    .bg-single-sidebar { position: static; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Tablet  (≤ 768px)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .bg-section             { padding: 40px 0; }
    .bg-hero                { padding: 48px 0 36px; }
    .bg-cta-banner__inner   { flex-direction: column; text-align: center; }
    .bg-section-header--row { flex-direction: column; align-items: flex-start; }
    /* Category grid: 2 per row on tablet */
    .bg-cat-card            { flex: 0 0 calc(50% - 8px); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Mobile  (≤ 480px)
══════════════════════════════════════════════ */
@media (max-width: 480px) {
    /* Force 1-column article grid on phones */
    .bg-grid              { grid-template-columns: 1fr; }
    /* Pros/cons side-by-side becomes stacked */
    .bg-pros-cons         { grid-template-columns: 1fr; }
    /* Why-grid: 2-col at tablet (set above) → 1-col on phone */
    .bg-why-grid          { grid-template-columns: 1fr; }
    /* Trust bar: 2-col at tablet → 1-col on phone */
    .bg-trust-bar__inner  { grid-template-columns: 1fr; }
    /* Newsletter form stacks input + button */
    .bg-newsletter__form  { flex-direction: column; align-items: stretch; }
    .bg-newsletter__form input { min-width: unset; }
    /* Reduce vertical padding on smallest screens */
    .bg-section           { padding: 28px 0; }
    .bg-hero              { padding: 36px 0 28px; }
    .bg-page-wrap         { padding: 20px 0 40px; }
    /* Container breathing room */
    .bg-container         { padding: 0 14px; }
}



/* =======================================================================
   v1.3.0 additions
   • Table of Contents  (buying-guide posts)
   • Verdict box        (review posts)
   • Author box         (blog posts)
   • page.php / page-about.php styles
======================================================================= */


/* -- TABLE OF CONTENTS ------------------------------------------------- */
.bg-toc {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-left: 4px solid var(--bg-primary);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.bg-toc__head {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #0f766e;
    margin-bottom: .75rem;
}
.bg-toc__list {
    margin: 0;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.bg-toc__list li { margin: 0; }
.bg-toc__list a {
    color: var(--bg-primary);
    text-decoration: none;
    font-size: .95rem;
}
.bg-toc__list a:hover { text-decoration: underline; }


/* -- VERDICT BOX ------------------------------------------------------- */
.bg-verdict {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 60%);
    border: 1px solid #fecdd3;
    border-left: 4px solid var(--bg-rose);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.bg-verdict__score {
    text-align: center;
    min-width: 84px;
    background: var(--bg-rose);
    border-radius: 10px;
    padding: 1rem .75rem;
    color: #fff;
    flex-shrink: 0;
}
.bg-verdict__num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.bg-verdict__den { font-size: .9rem; opacity: .85; }
.bg-verdict__body { flex: 1; }
.bg-verdict__label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9f1239;
    margin: 0 0 .3rem;
}
.bg-verdict__stars { margin-bottom: .5rem; }
.bg-star { font-size: 1.4rem; color: #d1d5db; }
.bg-star--on { color: #f59e0b; }
.bg-verdict__product {
    font-weight: 600;
    font-size: .95rem;
    color: #374151;
    margin: .25rem 0 .75rem;
}
.bg-verdict__btns {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}


/* -- AUTHOR BOX -------------------------------------------------------- */
.bg-author-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2.5rem 0;
}
.bg-author-box__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.bg-author-box__name {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 .35rem;
    color: #111827;
}
.bg-author-box__bio {
    font-size: .9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.55;
}


/* -- STATIC PAGE (page.php) -------------------------------------------- */
.bg-page-wrap { padding: 2.5rem 0 4rem; background: #fff; }
.bg-page-content { max-width: 780px; margin: 0 auto; }
.bg-page-header { margin-bottom: 2rem; }
.bg-page-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: .75rem; }
.bg-page-intro { font-size: 1.125rem; color: #6b7280; line-height: 1.75; margin: 0; }
.bg-page-thumbnail { margin: 2rem 0; border-radius: 12px; overflow: hidden; }
.bg-page-thumbnail__img { width: 100%; height: auto; display: block; }

.bg-prose h2 { font-size: 1.5rem;  margin-top: 2.5rem; }
.bg-prose h3 { font-size: 1.2rem;  margin-top: 2rem; }
.bg-prose p  { margin-bottom: 1.25rem; line-height: 1.8; }
.bg-prose ul, .bg-prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.bg-prose li { margin-bottom: .5rem; line-height: 1.7; }
.bg-prose a  { color: var(--bg-primary); }
.bg-prose a:hover { text-decoration: underline; }
.bg-prose strong { color: #111827; }

.bg-page-footer { border-top: 1px solid #e5e7eb; margin-top: 3rem; padding-top: 1rem; }
.bg-page-footer p { font-size: .85rem; color: #9ca3af; margin: 0; }


/* -- ABOUT PAGE (page-about.php) --------------------------------------- */
.bg-about-hero {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    text-align: center;
}
.bg-about-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    padding: .35rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1.5rem;
}
.bg-about-hero h1 { font-size: clamp(2rem,5vw,3.25rem); margin-bottom: 1.25rem; color: #fff; }
.bg-about-hero p  { font-size: 1.2rem; opacity: .9; max-width: 640px; margin: 0 auto; line-height: 1.7; }

.bg-about-stats { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 2.5rem 0; }
.bg-about-stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
.bg-about-stats__num  { display: block; font-size: 2.5rem; font-weight: 800; color: var(--bg-primary); line-height: 1; }
.bg-about-stats__label { display: block; font-size: .85rem; color: #6b7280; margin-top: .4rem; }

.bg-about-section { padding: 4rem 0; }
.bg-about-section--grey { background: #f9fafb; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }

.bg-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.bg-about-grid h2 { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 1rem; }
.bg-about-grid p  { color: #4b5563; line-height: 1.8; margin-bottom: 1rem; }

.bg-about-visual-card {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}
.bg-about-visual-card--teal {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
    text-align: left;
}
.bg-about-visual-card--teal .bg-about-visual-card__list-head {
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.bg-about-visual-card--teal .bg-about-visual-card__list { padding-left: 1.25rem; margin: 0; }
.bg-about-visual-card--teal .bg-about-visual-card__list li { font-size: .95rem; margin-bottom: .4rem; opacity: .9; }
.bg-about-visual-card__icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.bg-about-visual-card__quote { font-size: 1.1rem; font-style: italic; color: #0f766e; margin: 0 0 .75rem; line-height: 1.6; }
.bg-about-visual-card__cite { font-size: .875rem; color: #6b7280; font-style: normal; }

.bg-trust-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2rem; }
.bg-trust-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: box-shadow .2s;
}
.bg-trust-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.bg-trust-card__icon { font-size: 2rem; display: block; margin-bottom: .75rem; }
.bg-trust-card h3 { font-size: 1rem; margin: 0 0 .5rem; color: #111827; }
.bg-trust-card p  { font-size: .875rem; color: #6b7280; margin: 0; line-height: 1.6; }

.bg-about-cta { text-align: center; padding: 4rem 0; background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); color: #fff; }
.bg-about-cta h2 { font-size: clamp(1.5rem,3vw,2.25rem); color: #fff; margin-bottom: 1rem; }
.bg-about-cta p  { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.1rem; }
.bg-about-cta .bg-btn { background: #fff; color: var(--bg-primary); font-weight: 700; }
.bg-about-cta .bg-btn:hover { background: #f0fdfa; }


/* -- RESPONSIVE (v1.3.0) ----------------------------------------------- */
@media (max-width: 960px) {
    .bg-about-grid        { grid-template-columns: 1fr; gap: 2rem; }
    .bg-trust-cards       { grid-template-columns: repeat(2,1fr); }
    .bg-about-stats__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
    .bg-trust-cards    { grid-template-columns: 1fr; }
    .bg-verdict        { flex-direction: column; }
    .bg-verdict__score { width: 100%; min-width: unset; border-radius: 8px; }
    .bg-author-box     { flex-direction: column; }
}
