:root {
    --primary-color: #FFC107; /* Golden Yellow */
    --primary-hover: #E0A800;
    --secondary-color: #111827; /* Rich Dark */
    --secondary-light: #1F2937;
    --text-color: #374151;
    --text-light: #F9FAFB;
    --bg-color: #FFFFFF;
    --bg-light: #F3F4F6;
    --border-color: #E5E7EB;
    --max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}
a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Site header — class-scoped so nested <header> in cards/articles won't inherit the dark band */
.site-header {
    display: block;
    width: 100%;
    margin: 0;
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    box-sizing: border-box;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}
.logo span {
    color: var(--text-light);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--primary-color);
}
.site-nav__cta {
    color: var(--secondary-color);
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Outline Buttons */
.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.05), transparent);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 52px;
    color: var(--secondary-color);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 24px;
    color: var(--secondary-light);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.hero p {
    font-size: 18px;
    color: var(--secondary-light);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 500px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    line-height: 1.3;
    font-weight: 800;
}

p {
    margin-bottom: 15px;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-dark {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.section-dark h2, .section-dark h3, .section-dark p {
    color: var(--text-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-dark .section-title::after {
    background-color: var(--primary-color);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cards */
.feature-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* When .feature-card is combined with .section-dark (e.g. VIP card on the
   Bonus page), the later-declared .feature-card background was overriding
   the dark band, leaving white text on a near-white card. Re-assert dark. */
.feature-card.section-dark {
    background-color: var(--secondary-color);
    color: var(--text-light);
}
.feature-card.section-dark h2,
.feature-card.section-dark h3,
.feature-card.section-dark h4 { color: var(--text-light); }
.feature-card.section-dark .text-primary,
.feature-card.section-dark h2.text-primary,
.feature-card.section-dark h3.text-primary,
.feature-card.section-dark h4.text-primary { color: var(--primary-color); }

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: var(--border-radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-color);
    min-width: 600px;
}

th, td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-light);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.faq-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* Content Wrapper */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 32px;
    margin: 40px 0 20px;
}

.content-wrapper h3 {
    font-size: 18px;
    margin: 30px 0 15px;
}

.content-wrapper ul {
    padding-left: 20px;
    margin-bottom: 20px;
    list-style-type: disc;
}

.content-wrapper li {
    margin-bottom: 10px;
}

/* Site footer — class-scoped so nested <footer> in cards/articles won't inherit the dark band */
.site-footer {
    display: block;
    width: 100%;
    margin: 0;
    background-color: var(--secondary-color);
    color: #9CA3AF;
    padding: 80px 0 30px;
    text-align: center;
    border-top: 5px solid var(--primary-color);
    box-sizing: border-box;
}

.site-footer h2 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 28px;
}

.site-footer p {
    font-size: 15px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.site-footer strong {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #374151;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.footer-bottom a {
    color: #9CA3AF;
    margin: 0 15px;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Footer menu (wp_nav_menu output) */
.footer-nav {
    margin-bottom: 20px;
}
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
}
.footer-nav li { margin: 0; }
.footer-nav a {
    color: #9CA3AF;
    margin: 0 15px;
    font-size: 14px;
}
.footer-nav a:hover { color: var(--primary-color); }

/* Page Specific Additions */

/* Review Page */
.rating-box {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.3);
}
.rating-score {
    font-size: 72px;
    display: block;
    margin: 15px 0;
    line-height: 1;
}
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}
.pros, .cons {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid;
}
.pros { border-top-color: #10B981; }
.cons { border-top-color: #EF4444; }
.pros ul, .cons ul { list-style: none; padding-left: 0; }
.pros li, .cons li { position: relative; padding-left: 30px; margin-bottom: 15px; }
.pros li::before { content: '✓'; color: #10B981; position: absolute; left: 0; font-weight: bold; font-size: 18px; }
.cons li::before { content: '✗'; color: #EF4444; position: absolute; left: 0; font-weight: bold; font-size: 18px; }

/* Legal Page Sidebar */
.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}
.legal-nav {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}
.legal-nav a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 5px;
}
.legal-nav a:hover, .legal-nav a.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}
.legal-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}
.legal-section:last-child {
    border-bottom: none;
}

/* Bonus Page */
.bonus-tier {
    background: var(--bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 6px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.vip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.vip-card {
    background-color: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 40px; }
    .grid-2, .grid-3, .legal-layout {
        grid-template-columns: 1fr;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .btn-group {
        justify-content: center;
    }
    .legal-nav {
        position: static;
        margin-bottom: 40px;
    }
}

/* Tighten header at intermediate widths so logo + 6 nav items + CTA can fit */
@media (max-width: 1100px) {
    .site-header .container { gap: 16px; }
    .site-nav { gap: 16px; }
    .site-nav ul { gap: 18px; }
    .site-nav a { font-size: 14px; letter-spacing: 0.3px; }
    .btn { padding: 10px 20px; font-size: 14px; }
    .logo a { font-size: 22px; }
}

/* Mobile: collapse nav into a drawer that opens with the hamburger */
@media (max-width: 860px) {
    .site-header .container {
        flex-wrap: wrap;
        gap: 12px;
    }
    .nav-toggle { display: flex; }

    .site-nav {
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        background-color: rgba(0,0,0,0.2);
        border-radius: 10px;
    }
    .site-nav.is-open {
        max-height: 600px;
        margin-top: 6px;
    }
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }
    .site-nav li { border-bottom: 1px solid rgba(255,255,255,0.06); }
    .site-nav li:last-child { border-bottom: 0; }
    .site-nav a {
        display: block;
        padding: 14px 18px;
        font-size: 14px;
    }
    .site-nav__cta {
        margin: 12px 16px 14px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    .hero {
        padding: 50px 0;
    }
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------------
   Blog / Archive / Single / Default page fallbacks
   ----------------------------------------------------------------
   Used by home.php, archive.php, single.php, search.php, 404.php
   and the default page.php template (when no page-template is chosen).
*/
.site-main { padding: 60px 0; min-height: 50vh; }

.page-header {
    text-align: center;
    margin: 0 auto 36px;
    padding: 0 0 18px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    max-width: 800px;
}
.page-header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-color);
}
.page-title {
    font-size: 32px;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}
.archive-description {
    margin-top: 10px;
    color: var(--text-color);
    font-size: 15px;
}

/* ----------------------------------------------------------------
   News list — one article per row (used by home / archive / author / search)
   ---------------------------------------------------------------- */
.post-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.post-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}
.post-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.post-card > header,
.post-card > footer,
.post-card__body > header,
.post-card__body > footer {
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
    position: static;
    color: inherit;
}
.post-card__thumb {
    flex: 0 0 200px;
    overflow: hidden;
    background: var(--bg-light);
    display: block;
}
.post-card__thumb img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    max-height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body {
    flex: 1;
    min-width: 0;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-card__header { display: flex; flex-direction: column; gap: 6px; }
.post-card__title {
    font-size: 19px;
    line-height: 1.4;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 700;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--primary-hover); }
.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.post-card__excerpt {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__excerpt p { margin: 0; }
.post-card__footer { margin-top: 4px; }
.post-card__readmore {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.post-card__readmore:hover { color: var(--secondary-color); }

/* ----------------------------------------------------------------
   Author archive header (favicon as avatar)
   ---------------------------------------------------------------- */
.author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.author-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-light);
    padding: 8px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.author-description {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* ----------------------------------------------------------------
   Single post (news detail) — flat layout, no white card.
   ---------------------------------------------------------------- */
.single-title {
    font-size: 26px;
    line-height: 1.35;
    margin: 0 0 10px;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: -0.3px;
}
.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6B7280;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}
.single-meta a { color: var(--primary-color); }

.single-featured { margin: 0 0 22px; }
.single-featured img { width: 100%; border-radius: var(--border-radius); display: block; }

.single-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}
.single-content > * + * { margin-top: 14px; }
.single-content h2 { font-size: 22px; margin: 26px 0 10px; color: var(--secondary-color); }
.single-content h3 { font-size: 18px; margin: 22px 0 8px; color: var(--secondary-color); }
.single-content ul,
.single-content ol { padding-left: 22px; }
.single-content a { color: var(--primary-color); text-decoration: underline; }
.single-content img { border-radius: 8px; margin: 14px 0; max-width: 100%; height: auto; }
.single-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding: 4px 0 4px 16px;
    color: #4B5563;
    font-style: italic;
    margin: 14px 0;
}

.single-tags {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: #6B7280;
}
.single-tags a { color: var(--primary-color); margin-right: 8px; }

@media (max-width: 768px) {
    .single-title { font-size: 22px; }
    .single-content { font-size: 15px; }
}

/* Author block under article */
.author-box {
    margin: 28px 0 0;
    padding: 22px 26px;
    display: flex;
    gap: 18px;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}
.author-box .author-avatar {
    width: 64px;
    height: 64px;
    padding: 4px;
    border-width: 2px;
    flex: 0 0 64px;
    margin: 0;
}
.author-box .author-info { min-width: 0; flex: 1; }
.author-box .author-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6B7280;
    margin-bottom: 2px;
}
.author-box .author-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 4px;
}
.author-box .author-name a { color: inherit; }
.author-box .author-name a:hover { color: var(--primary-hover); }
.author-box .author-bio {
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

/* Related / recent posts under single article
   Selectors are bumped in specificity so global `.content-wrapper h2` rules
   from About / Legal pages cannot blow the title up to 32px / 40px margin. */
.content-wrapper .related-posts {
    margin: 0;
}
.content-wrapper .related-posts__title,
.related-posts .related-posts__title {
    font-size: 18px;
    color: var(--secondary-color);
    margin: 0 0 14px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    font-weight: 800;
}
.related-posts__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-post {
    display: block;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}
.related-post:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.related-post__thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
    background: var(--bg-light);
    display: block;
}
.related-post__body { padding: 12px 14px 14px; }
.related-post__title {
    font-size: 14px;
    line-height: 1.4;
    color: var(--secondary-color);
    margin: 0 0 6px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-post:hover .related-post__title { color: var(--primary-hover); }
.related-post__date {
    font-size: 11px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.post-navigation {
    margin: 24px 0 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
}
.post-navigation a { color: var(--secondary-color); font-weight: 600; }
.post-navigation a:hover { color: var(--primary-color); }

@media (max-width: 768px) {
    .related-posts__list { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; text-align: center; padding: 18px; }
    .author-box .author-avatar { flex: 0 0 auto; }
    .post-navigation { flex-direction: column; gap: 8px; text-align: center; }
}

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */
.pagination,
.navigation.pagination {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: center;
}
.pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-weight: 700;
    transition: var(--transition);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* ----------------------------------------------------------------
   Default page wrapper (template-parts/content-page.php)
   ---------------------------------------------------------------- */
.wp-page-content {
    background: var(--bg-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}
.wp-page-content .entry-content { font-size: 17px; line-height: 1.8; }
.wp-page-content .entry-content h2,
.wp-page-content .entry-content h3 { margin: 30px 0 15px; }
.wp-page-content .entry-content ul,
.wp-page-content .entry-content ol { padding-left: 25px; margin-bottom: 20px; }

/* ----------------------------------------------------------------
   Search results — non-post content types (content-search-item.php)
   ---------------------------------------------------------------- */
.search-result {
    max-width: 800px;
    margin: 0 auto 14px;
    padding: 18px 22px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.search-result:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.search-result__title {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.35;
}
.search-result__title a { color: inherit; }
.search-result__title a:hover { color: var(--primary-hover); }
.search-result__excerpt {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.search-result__excerpt p { margin: 0; }

/* ----------------------------------------------------------------
   Empty state / 404
   ---------------------------------------------------------------- */
.no-results {
    max-width: 700px;
    margin: 60px auto;
    padding: 50px;
    text-align: center;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.no-results h2 { margin-bottom: 20px; }

.error-404 {
    max-width: 600px;
    margin: 80px auto;
    padding: 60px 30px;
    text-align: center;
}
.error-404__code {
    font-size: clamp(96px, 18vw, 160px);
    font-weight: 900;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: -2px;
    margin-bottom: 10px;
}
.error-404__title {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 14px;
}
.error-404__text {
    color: #6B7280;
    font-size: 16px;
    margin-bottom: 30px;
}

/* ----------------------------------------------------------------
   Mobile / responsive overrides for blog templates
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
    .related-posts__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .site-main { padding: 28px 0; }

    .page-header { margin-bottom: 20px; padding-bottom: 12px; }
    .page-title { font-size: 22px; }
    .archive-description { font-size: 13px; }

    /* News list on phones: top image, bottom text (full-width card) */
    .post-list { gap: 16px; }
    .post-card {
        flex-direction: column;
        gap: 0;
    }
    .post-card__thumb {
        flex: 0 0 auto;
        width: 100%;
    }
    .post-card__thumb img {
        width: 100%;
        height: 180px;
        min-height: 0;
        max-height: none;
    }
    .post-card__body {
        padding: 12px 14px 14px;
        gap: 6px;
    }
    .post-card__title { font-size: 15px; line-height: 1.35; }
    .post-card__meta { font-size: 11px; gap: 8px; letter-spacing: 0.3px; }
    .post-card__excerpt { font-size: 12px; line-height: 1.55; -webkit-line-clamp: 2; }
    .post-card__readmore { font-size: 11px; }

    /* Single post — flat layout (no white card) */
    .single-title { font-size: 20px; line-height: 1.35; }
    .single-meta { font-size: 11px; gap: 8px; margin-bottom: 14px; }
    .single-content { font-size: 14px; line-height: 1.7; }
    .single-content h2 { font-size: 18px; margin: 20px 0 8px; }
    .single-content h3 { font-size: 16px; margin: 18px 0 6px; }
    .single-content blockquote { padding-left: 12px; }
    .single-tags { font-size: 12px; }

    /* Author block under single */
    .author-box { padding: 16px; gap: 12px; }
    .author-box .author-avatar { width: 52px; height: 52px; flex-basis: 52px; }
    .author-box .author-name { font-size: 15px; }
    .author-box .author-bio { font-size: 12px; }

    /* Related posts: single column on phones */
    .related-posts { margin-top: 0; }
    .content-wrapper .related-posts__title,
    .related-posts .related-posts__title { font-size: 16px; margin-bottom: 12px; }
    .related-posts__list { grid-template-columns: 1fr; gap: 12px; }
    .related-post__thumb { height: 160px; }
    .related-post__title { font-size: 13px; }
    .related-post__date { font-size: 10px; }

    .post-navigation { font-size: 13px; }

    /* Pagination on small screens */
    .pagination .page-numbers { padding: 8px 12px; margin: 2px; font-size: 13px; }

    /* Page content (default page template) */
    .wp-page-content { padding: 24px 18px; }

    /* Author header */
    .author-avatar { width: 80px; height: 80px; }

    /* 404 */
    .error-404 { margin: 40px auto; padding: 40px 20px; }
    .error-404__title { font-size: 22px; }
}

/* No-image cards on mobile: keep tidy padding */
.post-card:not(:has(.post-card__thumb)) .post-card__body { padding: 18px 22px; }

/* Active state for the fallback nav menu */
.site-nav a.active { color: var(--primary-color); }