:root {
  /* ── Brand Colors ── */
  --baywatch-red: #D20000;
  --baywatch-red-hover: #B00000;
  --dusk: #231F20;
  --dusk-light: #2d2a2b;
  --dark-bg: #212529;
  --sandstone: #786E64;
  --sandy-beach: #A6988A;
  --coin-gold: #C4A24E;
  --coin-gold-light: #D4B76A;
  --success-green: #4A8B5C;

  /* ── Neutrals & Backgrounds ── */
  --white: #FFFFFF;
  --off-white: #F4FAFF;
  --sandstone-light: #F0ECE8;
  --light-gray: #E8E4E0;
  --border-light: #E0DCD8;
  --input-border: #CBCBCB;
  --text-primary: #212529;

  /* ── Coin Gradient ── */
  --coin-gradient: linear-gradient(135deg, #E8D48B 0%, #D4B76A 35%, #C4A24E 70%, #A8883A 100%);

  /* ── Typography ── */
  --font-body: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* ── Spacing ── */
  --nav-height: 85px;
  --container-max: 1200px;       /* blog layout max */
  --container-narrow: 820px;     /* matches existing pages */
  --card-padding: 24px;
  --section-gap: 48px;

  /* ── Radii ── */
  --radius-container: 6px;
  --radius-button: 0px;          /* ALWAYS square */
  --radius-input: 0px;           /* ALWAYS square */
}

/* Typography Base */
.blog-post-page {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--white);
}

.blog-post-page h1 {
    font-family: 'Avenir Next';
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 20px;
}

.blog-post-page h2.display-header,
.blog-post-page h3.display-header {
    font-family: 'Playfair Display';
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    text-transform: lowercase;
    margin-top: 40px;
    margin-bottom: 20px;
}
.you-might-like-section__flex {
    gap: 24px;
}

.rabbit-hole {
    background: var(--sandstone-light);
    padding: 32px;
}
.rabbit-hole h4 {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--sandstone);
    margin-bottom: 16px;
}
.rabbit-links {
    gap: 10px;
}

.blog-post-page .rabbit-link {
    gap: 10px;
    padding: 8.4px 17px;
    background: var(--white);
    border: 1px solid var(--border-light);
    font-size: 14px;
    font-weight: 600;
    color: var(--dusk);
    transition: all 0.2s;
    cursor: pointer;
}

.rabbit-link:hover {
    border-color: var(--baywatch-red);
    color: var(--baywatch-red);
}
.rabbit-link:hover .arrow {
    color: var(--baywatch-red);
}
.rabbit-link .arrow {
    font-size: 16px;
    color: var(--sandy-beach);
    transition: color 0.2s;
}

.you-might-like-section__badge {
    background: var(--baywatch-red);
    top: 12px;
    left: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.5px 8px;
    color: white;
}

.you-might-like-section__time {
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 0px 8px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.7);
}


.you-might-like-section__flex__item {
    flex-basis: calc((100% - 24px) / 2);
}

.blog-post-page .post-body h1 {
    font-size: 30px;
}

colgroup {
    display: none;
}

.post-body a {
    color: var(--baywatch-red);
}

.post-body table {
    margin-bottom: 24px;
}

.post-body table,
.post-body table tr,
.post-body table td,
.post-body table th {
    border: 0 !important;
    border-style: none !important;
    border-width: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    box-shadow: none !important;
}

.post-body table tr {
    display: flex;
    gap: 10px;
}

.post-body table tr td:has(img),
.post-body table tr:has(img),
.post-body table tbody:has(img),
.post-body table:has(img) {
    max-height: fit-content!important;
    height: fit-content!important;
}

.post-body img {
    margin-left: auto;
    margin-right: auto;
    width: 100%!important;
    height: 100%!important;
    object-fit: cover;
    max-width: 500px;
}

.blog-post-page .post-body h2 {
    font-family: 'Avenir Next';
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post-page h4.label {
    font-family: 'Avenir Next';
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}


.blog-post-page .post-body {
    font-size: 17px;
    font-weight: 400;
}

.blog-post-page .meta-text {
    font-size: 12px;
    color: var(--sandstone);
}

/* Layout */
.blog-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

.blog-main-content {
    display: flex;
    gap: 50px;
    width: 100%;
}

.article-column {
    flex-basis: 720px;
    min-width: 0;
    flex-grow: 1;
}

.sidebar-column {
  flex-basis: 320px;
    padding-top: 0!important;
    padding-bottom: 0!important;
}


/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: hidden;
    scrollbar-gutter: stable;
}

.sidebar:hover {
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--sandy-beach);
    border-radius: 2px;
}

.sidebar-widget {
    margin-bottom: 32px;
}

.sidebar-widget:has(.newsletter-box) {
    margin-bottom: 0;
}

.sidebar-widget-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sandstone);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

/* Sidebar: Search */
.sidebar-search {
    display: flex;
    margin-bottom: 32px;
    position: relative;
}

.sidebar-search input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #CBCBCB;
    border-right: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
}

.sidebar-search input:focus {
    border-color: var(--baywatch-red);
}

.sidebar-search button {
    width: 44px;
    height: 44px;
    background: var(--baywatch-red);
    border: none;
    border-radius: 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-search button:hover {
    background: var(--baywatch-red-hover);
}

/* Sidebar: Category list (used for More from Author etc) */
.sidebar-cats {
    list-style: none;
    padding-left: 0;
}

.sidebar-cats li {
    border-bottom: 1px solid var(--sandstone-light);
}

.sidebar-cats li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--dusk);
    transition: color 0.2s;
    text-decoration: none;
}

.sidebar-cats li a:hover {
    color: var(--baywatch-red);
}

.sidebar-cats li a .count {
    font-size: 12px;
    color: var(--sandy-beach);
    font-weight: 600;
}

/* Sidebar: Popular posts */
.sidebar-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sandstone-light);
    cursor: pointer;
    transition: opacity 0.2s;
}

.sidebar-post:hover {
    opacity: 0.8;
}

.sidebar-post:last-child {
    border-bottom: none;
}

.sidebar-post-img {
    width: 72px;
    height: 54px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2523, #1a1817);
}

.sidebar-post-info {
    flex: 1;
}

.sidebar-post-info .sp-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dusk);
    margin-bottom: 4px;
}

.sidebar-post-info .sp-meta {
    font-size: 11px;
    color: var(--sandy-beach);
}

.sidebar-post-rank {
    width: 24px;
    flex-shrink: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--sandstone-light);
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

/* Sidebar: VIP Upsell */
.vip-upsell {
    background: var(--dusk);
    padding: 28px 24px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.vip-upsell::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #E8D48B, #C4A24E);
    border-radius: 50%;
    opacity: 0.1;
}

.vip-upsell .vip-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--coin-gold);
    margin-bottom: 12px;
}

.vip-upsell h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.vip-upsell p {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.65);
    margin-bottom: 18px;
}

.vip-upsell .vip-perks {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.vip-upsell .vip-perks li {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    padding: 5px 0 5px 20px;
    position: relative;
}

.vip-upsell .vip-perks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--coin-gold);
    font-weight: 700;
}

.vip-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: var(--baywatch-red);
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s;
}

body a.vip-btn {
    color: #FFF;
}

.vip-btn:hover {
    background: var(--baywatch-red-hover);
}

/* Sidebar: Tags cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag-cloud a {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--sandstone-light);
    color: var(--sandstone);
    transition: all 0.2s;
    text-decoration: none;
    text-transform: uppercase;
}

.tag-cloud a:hover {
    background: var(--baywatch-red);
    color: white;
}

/* Sidebar: Newsletter */
.newsletter-box {
    background: var(--sandstone-light);
    padding: 24px;
}

.newsletter-box h4 {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--sandstone);
    margin-bottom: 6px;
}

.newsletter-box h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 22px;
    color: var(--dusk);
    margin-bottom: 10px;
}

.newsletter-box p {
    font-size: 13px;
    color: var(--sandstone);
    line-height: 1.5;
    margin-bottom: 14px;
}

.newsletter-box input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #CBCBCB;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 13px;
    margin-bottom: 10px;
    outline: none;
}

.newsletter-box button {
    width: 100%;
    height: 44px;
    background: var(--dusk);
    color: white;
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.newsletter-box button:hover {
    background: var(--baywatch-red);
}

/* Layout overrides */
.sidebar-column {
    flex-basis: 320px;
    padding-top: 0!important;
    padding-bottom: 0!important;
}

/* Breadcrumbs */
.blog-breadcrumbs {
    font-size: 13px;
    margin: 20px 0;
    color: var(--sandstone);
}

.blog-breadcrumbs a {
    color: var(--sandstone);
    text-decoration: none;
}

.blog-breadcrumbs span {
    margin: 0 8px;
}

/* Hero */
.article-hero-banner {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.article-hero-banner .hero-img-placeholder {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ccc;
}

.article-hero-banner .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 48px 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.88));
}

.article-hero-banner .hero-overlay h1 {
    font-size: 38px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    margin-bottom: 12px;
    max-width: 700px;
}

.article-hero-banner .article-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.article-hero-banner .article-meta-row .author-name {
    color: white;
    font-weight: 600;
}

.cat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--baywatch-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Layout */
.article-body-layout {
    display: flex;
    margin-top: 40px;
}

.article-body p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 24px;
    font-weight: 400;
}

p.author-bio {
    font-size: 13px;
    line-height: 1.55;
    color: var(--sandstone);
    margin-bottom: 0;
}

.article-body h2 {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 24px;
    font-weight: 600;
    color: var(--dusk);
    margin: 40px 0 16px;
    line-height: 1.3;
}

.article-body blockquote {
    border-left: 3px solid var(--baywatch-red);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--sandstone-light);
}

.article-body blockquote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    color: var(--sandstone);
    margin-bottom: 0;
}

/* TOC */
.article-toc {
    background: var(--sandstone-light);
    padding: 24px;
    margin-bottom: 32px;
}

.article-toc h4 {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--sandstone);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.article-toc ol {
    list-style: none;
    counter-reset: toc;
    padding-left: 0;
}

.article-toc ol li {
    counter-increment: toc;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.article-toc ol li:last-child {
    border-bottom: none;
}

.article-toc ol li a {
    font-size: 14px;
    color: var(--dusk);
    font-weight: 500;
    display: flex;
    gap: 8px;
    transition: color 0.2s;
    text-decoration: none;
    line-height: 1.14;
}

.article-toc ol li a::before {
    content: counter(toc) '.';
    color: var(--baywatch-red);
    font-weight: 700;
}

.article-toc ol li a:hover {
    color: var(--baywatch-red);
}

/* Share Bar */
.share-bar {
    display: flex;
    gap: 10px;
    margin: 32px 0;
}

.vip-inline-banner {
    background: var(--dusk); padding: 40px; margin-bottom: 48px; position: relative;
    display: flex; align-items: center; gap: 32px; overflow: hidden;
}
.vip-inline-banner::before {
    content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 100%;
    background: linear-gradient(135deg, rgba(232,212,139,0.08), rgba(196,162,78,0.04));
}
.vip-inline-banner .vip-icon {
    width: 64px; height: 64px; flex-shrink: 0;
    background: linear-gradient(135deg, #E8D48B, #C4A24E);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; color: var(--dusk);
}
.vip-inline-content { flex: 1; position: relative; z-index: 1; }
.vip-inline-content h3 {
    font-family: var(--font-display); font-style: italic; font-size: 24px; color: white; margin-bottom: 6px;
}
.vip-inline-content p { font-size: 14px; color: rgba(255,255,255,0.6); }
.vip-inline-banner .vip-btn { width: auto; padding: 14px 32px; flex-shrink: 0; }

/* VIP Gate */
.vip-gate-container {
    background: var(--off-white);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-light);
    margin-top: 30px;
}

.vip-icon {
    font-size: 48px;
    color: var(--coin-gold);
    margin-bottom: 15px;
}

/* Sidebar Widgets */
/* Moved to Sidebar section above */

/* Article: Author bio */
.author-info-box {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--sandstone-light);
    margin: 40px 0;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

/* Author Block */
.author-info-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--sandstone-light);
    margin: 40px 0;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

/* Cards */
/* Small cards style replaced by .sidebar-cats or .sidebar-post */

/* Table of Contents */
.toc-container {
    background: var(--off-white);
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid var(--coin-gold);
}

.toc-container ul {
    list-style: decimal;
    padding-left: 20px;
}

.toc-container li {
    margin-bottom: 8px;
}

.toc-container a {
    color: var(--text-primary);
    text-decoration: none;
}

.toc-container a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-section {
    margin: 48px 0;
    padding: 32px;
    background: var(--sandstone-light);
    border-left: 4px solid var(--baywatch-red);
}

h2.faq-title {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 24px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--dusk);
}

.faq-answer {
    font-size: 15px;
    color: var(--sandstone);
    line-height: 1.6;
}

/* Search results popup */
#blog-search-results {
    position: absolute;
    background: white;
    width: 100%;
    z-index: 1000;
    top: 44px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-light);
    display: block;
    text-decoration: none;
    color: var(--text-primary);
}

.search-result-item:hover {
    background: var(--off-white);
}

/* Newsletter in sidebar */
/* Moved to Sidebar section above */

/* Tags cloud */
/* Moved to Sidebar section above */

/* Footer banner */
.footer-cta {
    background: var(--dark-bg);
    padding: 80px 40px;
}

.footer-cta h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 42px;
    margin-bottom: 12px;
}

.footer-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 2000px) {
    .article-hero-banner {
        height: 520px;
    }
}

@media (max-width: 991px) {
    .blog-main-content {
        flex-direction: column;
    }
    .sidebar-column {
        width: 100%;
    }

    .blog-post-page tr {
        display: flex;
        flex-direction: column;
        height: fit-content!important;
    }

    .blog-post-page td:empty {
        display: none;
    }

    .post-body table,
    .article-body p {
        margin-bottom: 10px;
    }

    .article-hero-banner .hero-overlay h1 {
        font-size: 32px;
    }

    .article-hero-banner .hero-overlay {
        padding: 30px 40px;
        justify-content: flex-start;
    }

    .article-hero-banner .article-meta-row {
        margin-top: auto;
        flex-wrap: wrap;
        gap: 10px;
    }

    .article-hero-banner .article-meta-row > span {
        flex-basis: calc((100% - 10px) / 2);
    }

    .vip-inline-banner {
        flex-direction: column;
    }

    .vip-inline-banner::before {
        display: none;
    }
}
