/* ==========================================================================
   Theme Style — bingo ruby / toprankthailand.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #55acee;
    --color-dark: #1d4a7b;
    --color-text: #282828;
    --color-heading: #282828;
    --color-bg: #f9f9f9;
    --color-card-bg: #fff;
    --color-footer-bg: #282828;
    --color-border: #eee;
    --color-meta: #999;
    --color-light: #fff;
    --font-body: 'Lato', 'Prompt', sans-serif;
    --font-heading: 'Montserrat', 'Prompt', sans-serif;
    --container-max: 1200px;
    --transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

ul, ol {
    list-style: none;
}

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

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

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

button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.site-outer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-wrap {
    flex: 1;
}

.site-inner {
    padding-top: 0;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

[class*="col-"] {
    padding: 0 10px;
}

.col-sm-3  { width: 25%; }
.col-sm-4  { width: 33.3333%; }
.col-sm-6  { width: 50%; }
.col-sm-8  { width: 66.6667%; }
.col-xs-12 { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header / Navbar
   -------------------------------------------------------------------------- */
.header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-light);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.header-wrap.is-sticky {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar-outer { padding: 0; }

.navbar-wrap { padding: 0; }

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; }

.logo-link {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.logo-link:hover { color: var(--color-primary); }

.logo-img {
    display: block;
    max-height: 41px;
    width: auto;
    height: auto;
}

/* Main menu */
.main-menu-wrap { display: flex; }

.main-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.menu-item a {
    display: block;
    padding: 8px 12px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.menu-item a:hover {
    color: var(--color-primary);
}

/* Search button */
.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-text);
    transition: color var(--transition);
}

.header-search-btn:hover { color: var(--color-primary); }

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* --------------------------------------------------------------------------
   6. Off-canvas Mobile Nav
   -------------------------------------------------------------------------- */
.off-canvas-wrap {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    z-index: 2000;
    background-color: #1a1a1a;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.off-canvas-wrap.is-open {
    transform: translateX(0);
}

.off-canvas-inner {
    padding: 20px;
}

.off-canvas-close {
    display: flex;
    justify-content: flex-end;
    color: var(--color-light);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.off-canvas-menu, .off-canvas-support-menu {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
    margin-bottom: 20px;
}

.off-canvas-menu-item a,
.off-canvas-support-menu li a {
    display: block;
    padding: 10px 0;
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.off-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1999;
    background: rgba(0,0,0,0.5);
    display: none;
}

.off-canvas-overlay.is-visible {
    display: block;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 30px 0 0;
}

.hero-inner {
    display: flex;
    gap: 20px;
}

.hero-main-post {
    width: 50%;
}

.hero-side-posts {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.post-wrap-featured .post-thumb-featured {
    overflow: hidden;
    margin-bottom: 16px;
}

.post-wrap-featured .post-thumb-featured img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: opacity var(--transition);
}

.post-wrap-featured .post-thumb-featured:hover img {
    opacity: 0.88;
}

.post-wrap-side {
    display: flex;
    gap: 12px;
    flex: 1;
}

.post-thumb-side {
    flex-shrink: 0;
    width: 140px;
    overflow: hidden;
    align-self: stretch;
}

.post-thumb-side img {
    width: 100%;
    height: 100%;
    min-height: 90px;
    object-fit: cover;
    transition: opacity var(--transition);
}

.post-thumb-side:hover img { opacity: 0.88; }

.post-header-side { flex: 1; }

/* --------------------------------------------------------------------------
   8. Post Cards (generic)
   -------------------------------------------------------------------------- */
.post-wrap-card {
    background: var(--color-card-bg);
    margin-bottom: 20px;
}

.post-thumb-card {
    overflow: hidden;
    margin-bottom: 12px;
}

.post-thumb-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: opacity var(--transition);
}

.post-thumb-card:hover img { opacity: 0.88; }

.post-header-card { padding: 0 0 8px; }

/* Generic post title */
.post-title { margin-bottom: 6px; }

.post-title a {
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.4;
    transition: color var(--transition);
}

.post-title a:hover { color: var(--color-dark); }

.post-title-featured {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.post-title-featured a { color: var(--color-text); }
.post-title-featured a:hover { color: var(--color-dark); }

.post-title-side {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.post-title-card {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Category badge */
.cat-info { margin-bottom: 8px; }

.cat-badge {
    display: inline-block;
    padding: 3px 9px;
    background-color: var(--color-primary);
    color: var(--color-light) !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    line-height: 1.5;
}

.cat-badge:hover {
    background-color: var(--color-dark);
    color: var(--color-light) !important;
}

/* Post meta */
.post-meta {
    font-size: 0.78rem;
    color: var(--color-meta);
    margin-bottom: 8px;
    display: block;
}

.post-date {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-meta);
}

/* Post excerpt */
.post-excerpt {
    font-size: 0.88rem;
    color: var(--color-meta);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Read more btn */
.btn-read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--color-primary);
    color: var(--color-light) !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 3px;
    transition: background-color var(--transition);
}

.btn-read-more:hover {
    background-color: var(--color-dark);
    color: var(--color-light) !important;
}

/* --------------------------------------------------------------------------
   9. Block Headers
   -------------------------------------------------------------------------- */
.block-section {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}

.block-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.block-header-dark {
    background-color: var(--color-text);
    border-bottom: none;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 0;
}

.block-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

.block-title a { color: inherit; }
.block-title a:hover { color: var(--color-primary); }

.block-header-dark .block-title {
    color: var(--color-light);
}

/* --------------------------------------------------------------------------
   10. Post Grid
   -------------------------------------------------------------------------- */
.post-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.post-grid-item {
    padding: 0 10px;
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   11. Category Sections
   -------------------------------------------------------------------------- */
.category-sections { padding: 30px 0; }

.category-sections-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 -10px;
}

.category-col { padding: 0 10px; }

.post-wrap-list {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.post-thumb-list {
    flex-shrink: 0;
    width: 80px;
    height: 64px;
    overflow: hidden;
}

.post-thumb-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition);
}

.post-thumb-list:hover img { opacity: 0.88; }

.post-header-list { flex: 1; }

.post-title-list {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   12. Archive / Category Page
   -------------------------------------------------------------------------- */
.archive-outer { padding: 30px 0; }

.archive-page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

.archive-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.archive-desc {
    color: var(--color-meta);
    font-size: 0.95rem;
}

/* Featured strip */
.feat-wrap { margin-bottom: 30px; }

.feat-posts-inner {
    display: flex;
    gap: 16px;
}

.feat-post-item {
    flex: 1;
    min-width: 0;
}

.post-thumb-feat {
    overflow: hidden;
    margin-bottom: 10px;
}

.post-thumb-feat img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: opacity var(--transition);
}

.post-thumb-feat:hover img { opacity: 0.88; }

/* Ruby page wrap */
.ruby-page-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 -10px;
    align-items: flex-start;
}

/* Category page main content section spacing */
.archive-page-wrap {
    padding-top: 0;
}

.ruby-content-wrap { padding: 0 10px; }

.ruby-sidebar-wrap { padding: 0 10px; }

/* Horizontal article cards (article list) */
.post-wrap-horizontal {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.post-thumb-horizontal {
    flex-shrink: 0;
    width: 160px;
    height: 120px;
    overflow: hidden;
}

.post-thumb-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition);
}

.post-thumb-horizontal:hover img { opacity: 0.88; }

.post-header-horizontal { flex: 1; }

.post-title-horizontal {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   13. Article / Single Page
   -------------------------------------------------------------------------- */
.single-post-outer { padding: 30px 0; }

.single-wrap { align-items: flex-start; }

.single-post-content-outer {
    background: var(--color-card-bg);
    padding: 30px;
    margin-bottom: 24px;
}

.single-post-header { margin-bottom: 20px; }

.single-post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.single-post-meta {
    font-size: 0.82rem;
    color: var(--color-meta);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.post-meta-sep { color: var(--color-border); }

/* Share bar */
.single-post-action {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.share-bar { display: flex; gap: 8px; }

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 3px;
    color: var(--color-light);
    transition: opacity var(--transition);
}

.share-btn:hover { opacity: 0.85; color: var(--color-light); }

.share-facebook { background-color: #3b5998; }
.share-twitter  { background-color: #1da1f2; }

/* Table of contents / summary */
.single-toc-wrap {
    background: #f1f6fb;
    border-left: 4px solid var(--color-primary);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.single-toc-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: var(--color-dark);
}

/* Entry (article body) */
.entry {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.entry h2 {
    font-size: 1.4rem;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.entry h3 {
    font-size: 1.15rem;
    margin: 22px 0 10px;
}

.single-content-faq > h1:first-child,
.single-content-faq > h2:first-child {
    margin-bottom: 28px;
}

.entry p { margin-bottom: 1.1rem; }

.entry ul, .entry ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }

.entry li { margin-bottom: 0.4rem; }

.entry a {
    color: var(--color-primary);
    text-decoration: underline;
}

.entry a:hover { color: var(--color-dark); }

.entry img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}

.entry blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 12px 20px;
    margin: 20px 0;
    background: #f9f9f9;
    font-style: italic;
}

.entry table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.entry th, .entry td {
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    font-size: 0.9rem;
}

.entry th {
    background: #f5f5f5;
    font-weight: 700;
}

/* FAQ section */
.single-faq-wrap { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--color-border); }

.single-faq-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.faq-answer { font-size: 0.95rem; line-height: 1.7; }

/* Author box */
.single-post-author {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-meta);
}

.author-label { margin-right: 6px; }

.author-name { font-weight: 600; color: var(--color-text); }

/* --------------------------------------------------------------------------
   14. Sidebar / Widgets
   -------------------------------------------------------------------------- */
.sidebar-wrap { padding-left: 10px; }

.widget-block { margin-bottom: 24px; }

.widget-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-light);
    background-color: var(--color-text);
    padding: 10px 14px;
    margin-bottom: 0;
}

.sidebar-post-list {
    border: 1px solid var(--color-border);
    border-top: none;
}

.sidebar-post-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
}

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

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 110px;
    height: 85px;
    overflow: hidden;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition);
}

.sidebar-post-thumb:hover img { opacity: 0.88; }

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

.sidebar-post-title {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.sidebar-post-title a { color: var(--color-text); }
.sidebar-post-title a:hover { color: var(--color-dark); }

.sidebar-post-date {
    font-size: 0.75rem;
    color: var(--color-meta);
}

/* --------------------------------------------------------------------------
   15. Pagination
   -------------------------------------------------------------------------- */
.pagination-wrap {
    margin: 30px 0;
}

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--color-card-bg);
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.pagination-link:hover,
.pagination-item.active .pagination-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-light);
}

.pagination-link.current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-light);
    cursor: default;
}

.pagination-ellipsis span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--color-meta);
}

/* --------------------------------------------------------------------------
   16. Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb-wrap {
    margin: 16px 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 0.8rem;
    color: var(--color-meta);
}

.breadcrumb-item { display: flex; align-items: center; }

.breadcrumb-item a {
    color: var(--color-meta);
    transition: color var(--transition);
}

.breadcrumb-item a:hover { color: var(--color-primary); }

.breadcrumb-sep {
    margin: 0 6px;
    color: var(--color-border);
}

.breadcrumb-current span { color: var(--color-text); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer-wrap {
    background-color: var(--color-footer-bg);
    margin-top: 40px;
}

.footer-inner { color: var(--color-light); }

.column-footer-wrap {
    padding: 40px 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.column-footer-inner {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.sidebar-footer {
    padding: 0 10px 24px;
}

.sidebar-footer .widget-title {
    background: transparent;
    padding: 0 0 10px;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.footer-contact-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.footer-contact-link {
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.footer-contact-link:hover { color: var(--color-light); }

.footer-post-list { }

.footer-post-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-post-item a {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-post-item a:hover { color: var(--color-light); }

.footer-cat-list { }

.footer-cat-item {
    display: inline-block;
    margin: 0 4px 6px 0;
}

.footer-cat-item a {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    border-radius: 3px;
    transition: border-color var(--transition), color var(--transition);
}

.footer-cat-item a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Bottom footer */
.bottom-footer-wrap {
    padding: 20px 0;
}

.bottom-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
}

.footer-logo-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-light);
}

.footer-logo-link:hover { color: var(--color-primary); }

.footer-menu { display: flex; flex-wrap: wrap; gap: 4px; }

.footer-menu li a {
    padding: 4px 10px;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
}

.footer-menu li a:hover { color: var(--color-light); }

.footer-copyright-wrap {
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copyright-wrap p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   18. Static Pages
   -------------------------------------------------------------------------- */
.page-outer { padding: 40px 0; }

.page-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--color-border); }

.page-title { font-size: 1.8rem; }

.page-content { max-width: 800px; }

/* --------------------------------------------------------------------------
   19. 404 Page
   -------------------------------------------------------------------------- */
.error-404-outer { padding: 60px 0; text-align: center; }

.error-404-inner { max-width: 600px; margin: 0 auto; }

.error-404-code {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 16px;
}

.error-404-title { font-size: 1.8rem; margin-bottom: 16px; }

.error-404-desc { color: var(--color-meta); margin-bottom: 10px; }

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 3px;
    margin: 20px 0;
    transition: background-color var(--transition);
}

.btn-primary:hover { background-color: var(--color-dark); color: var(--color-light); }

.error-404-cats { margin-top: 32px; }

.error-404-cats-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--color-meta);
}

.error-404-cats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.error-404-cat-item { }

/* --------------------------------------------------------------------------
   20. Related Posts
   -------------------------------------------------------------------------- */
.related-posts-wrap {
    background: var(--color-card-bg);
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 10px;
}

.related-posts-inner {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.related-post-item {
    padding: 0 10px;
    margin-bottom: 20px;
}

.post-thumb-related {
    overflow: hidden;
    margin-bottom: 10px;
}

.post-thumb-related img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: opacity var(--transition);
}

.post-thumb-related:hover img { opacity: 0.88; }

.post-title-related {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   21. Search Overlay
   -------------------------------------------------------------------------- */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.search-overlay[hidden] { display: none; }

.search-overlay-inner {
    position: relative;
    width: 100%;
    max-width: 680px;
    padding: 20px 16px;
}

.search-overlay-close {
    position: absolute;
    top: -10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.search-overlay-close:hover { opacity: 1; }

.search-overlay-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #fff;
    padding-bottom: 8px;
}

.search-overlay-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.4rem;
    font-family: inherit;
    padding: 8px 0;
}

.search-overlay-input::placeholder { color: rgba(255, 255, 255, 0.5); }

.search-overlay-submit {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.search-overlay-submit:hover { opacity: 1; }
