/* ===========================
   BASE
   =========================== */
:root {
    --brand: #d8ba39;
    --brand-dark: #b89e28;
    --text-main: #1a1a1a;
    --text-muted: #6b7280;
    --bg-light: #f9f7f2;
    --radius: 16px;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 28px rgba(0,0,0,.14);
}



body {
    font-family: 'Public Sans', 'Inter', sans-serif;
    color: var(--text-main);
    background: #fff;
}

@media (max-width: 991px) {
    html, body { overflow-x: hidden; }
}

h1, .h1 { font-size: 70px; line-height: 106%; letter-spacing: -0.03em; font-weight: 400; }
h2, .h2 { font-size: 48px; line-height: 106%; letter-spacing: -0.02em; font-weight: 500; }
h3, .h3 { font-size: 38px; letter-spacing: -0.02em; font-weight: 600; }
h4, .h4 { font-size: 30px; line-height: 106%; letter-spacing: -0.02em; font-weight: 500; }
h5, .h5 { font-size: 22px; font-weight: 300; }
h6, .h6 { font-size: 18px; line-height: 130%; letter-spacing: -0.02em; font-weight: 600; }
p, .p { font-size: 16px; font-weight: 300; }

@media (max-width: 1024px) {
    h1, .h1 { font-size: 55px; }
    h2, .h2 { font-size: 32px; }
    h6, .h6 { font-size: 16px; }
}

@media (max-width: 768px) {
    h1, .h1 { font-size: 48px; }
    h3, .h3 { font-size: 30px; 
              font-weight: 500; }
    h4, .h4 { font-size: 26px; }
    h5, .h5 { font-size: 20px; }
    p, .p { font-size: 14px; }
}

/* ===========================
   HEADER
   =========================== */
.blog-header {
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.blog-pill-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


.blog-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    flex-shrink: 0;
}

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

@media (max-width: 575px) {
    .blog-logo-img { max-width: 130px; }
    .blog-header { padding: 12px 0; }
}

.blog-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.blog-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: background .15s, color .15s;
}

.blog-nav-link:hover {
    background: var(--bg-light);
    color: var(--brand) !important;
}

.blog-nav-link.active {
    background: var(--brand);
    color: #fff !important;
}

/* Mobile toggler */
.blog-nav-toggler {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: var(--bg-light);
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
}

.blog-nav-toggler span {
    display: block;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Mobile menu */
.blog-mobile-menu { padding: 12px 0 8px; }

.blog-mobile-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-mobile-links a {
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: background .15s;
}

.blog-mobile-links a:hover,
.blog-mobile-links a.active {
    background: var(--bg-light);
    color: var(--brand) !important;
}

/* ===========================
   FOOTER
   =========================== */
.blog-footer {
    background: var(--text-main);
    color: rgba(255,255,255,.6);
    padding: 28px 0;
    font-size: .83rem;
    margin-top: 80px;
}
.blog-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   BLOG LIST PAGE
   =========================== */
@media (max-width: 575px) {
    .blog-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Categories button & dropdown items */
.blog-cat-btn {
    background-color: var(--brand);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    letter-spacing: .05em;
    box-shadow: 1px 1px 4px rgba(0,0,0,.15) !important;
    gap: 10px;
}

.blog-cat-btn:hover,
.blog-cat-btn:focus,
.blog-cat-btn.show {
    background-color: var(--brand-dark);
    color: #fff;
    box-shadow: 1px 1px 4px rgba(0,0,0,.15) !important;
}

.blog-cat-item {
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
}

.blog-cat-item.active {
    background-color: var(--brand);
    color: #fff;
}

/* Active category indicator */
.blog-active-category {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.blog-clear-filter {
    font-size: .8rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color .15s;
}

.blog-clear-filter:hover { color: var(--text-main); }

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .blog-grid { grid-template-columns: 1fr; } }

/* Card */
.blog-card {
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
    border: 1px solid #f0f0f0;
}

.blog-card {
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
}

.blog-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,.16);
    transform: translateY(-4px);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-image-placeholder {
    font-size: 2.5rem;
    color: #ccc;
}

.blog-card-badge {
    font-size: .7rem;
    font-weight: 600;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none !important;
    display: inline-block;
}

.blog-card-title {
    font-size: .97rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.45;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title:hover { color: var(--brand); }

.blog-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* btn-glass — same as bullion project */
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    height: 44px;
    padding: 10px 19px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: #1a1a1a !important;
    font-size: 16px;
    font-weight: 500;
    border: none;
    text-decoration: none !important;
    transition: background .2s, transform .15s;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a !important;
    transform: translateY(-2px);
}

/* Empty */
.blog-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    grid-column: 1/-1;
}

.blog-empty i { font-size: 3rem; display: block; margin-bottom: 12px; }

/* Pagination */
.blog-pagination { margin-top: 48px; display: flex; justify-content: center; }
.blog-pagination p.small { display: none; }

/* ===========================
   SINGLE POST
   =========================== */
.blog-post-page { padding-bottom: 80px; }

.blog-post-hero {
    background: var(--bg-light);
    padding: 18px 0 36px;
    margin-bottom: 0;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 20px;
    text-decoration: none;
}

.blog-breadcrumb a {
    color: var(--text-main);
    text-decoration: none;
}

.blog-breadcrumb a:hover { color: var(--brand); }
.blog-breadcrumb .separator { color: var(--text-main); font-size: .7rem; margin: 0 4px; align-self: flex-end; }
.blog-breadcrumb .current { color: var(--text-muted); font-weight: 500; }

.blog-post-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.blog-post-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 14px;
    max-width: 820px;
}

@media (max-width: 767px) { .blog-post-title { font-size: 1.5rem; } }

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-size: .85rem;
}

/* Cover image */
.blog-post-cover {
    margin: 32px 0;
}

.blog-post-cover-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.blog-post-cover-caption {
    font-size: .78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Layout */
.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    margin-top: 32px;
}

@media (max-width: 991px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }
    .blog-post-sidebar { order: -1; }
}

/* Content */
.blog-post-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #2a2a2a;
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: .6em;
    color: var(--text-main);
}

.blog-post-body h2 { font-size: 1.5rem; }
.blog-post-body h3 { font-size: 1.25rem; }

.blog-post-body p { margin-bottom: 1.2em; }

.blog-post-body a { color: var(--brand); text-decoration: underline; }
.blog-post-body a:hover { color: var(--brand-dark); }

.blog-post-body ul,
.blog-post-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.blog-post-body li { margin-bottom: .4em; }

.blog-post-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1em 0;
}

.blog-post-body blockquote {
    border-left: 4px solid var(--brand);
    margin: 1.5em 0;
    padding: .8em 1.2em;
    background: var(--bg-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.blog-post-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: .9rem;
}

.blog-post-body table th,
.blog-post-body table td {
    border: 1px solid #e5e7eb;
    padding: .6em .9em;
    text-align: left;
}

.blog-post-body table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Share */
.blog-post-share {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #000;
    font-size: .85rem;
    color: #000;
    font-weight: 500;
}

.blog-post-share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main) !important;
    font-size: 1rem;
    text-decoration: none !important;
    transition: background .15s, color .15s;
}

.blog-post-share a:hover { background: var(--brand); color: #fff !important; }

/* Sidebar */
.blog-post-sidebar { position: sticky; top: 80px; align-self: start; }

.blog-sidebar-widget {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
}

.blog-sidebar-title {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #000;
    margin-bottom: 14px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

.blog-sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-categories li { border-bottom: none; }


.blog-sidebar-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    color: #000;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: color .15s;
}

.blog-sidebar-categories a:hover { color: var(--brand); }

/* Prev/Next navigation */
.blog-post-nav-wrap {
    background: var(--bg-light);
    margin-top: 64px;
    padding: 56px 0;
}

.blog-post-nav {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.blog-post-nav-col {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-post-nav-col .blog-card {
    flex: 1;
    overflow: hidden;
}

.blog-post-nav-col .blog-card-image {
    aspect-ratio: unset;
    height: 160px;
    flex-shrink: 0;
}

.blog-post-nav-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-nav-col-next .blog-post-nav-label {
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .blog-post-nav {
        flex-direction: column;
        align-items: center;
    }
    .blog-post-nav-col {
        width: 100%;
        max-width: 340px;
    }
}

.blog-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) { .blog-grid-3 { grid-template-columns: 1fr; } }


/* ===========================
   FOOTER – font override
   =========================== */


.footer h5,
.footer .h5 {
    font-weight: 400;
}

.footer h6,
.footer .h6 {
    font-weight: 300;
}

/* ===========================
   COOKIE MODAL
   =========================== */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.cookie-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 85%;
    height: 80%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
}
.cookie-modal-content button.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #555 !important;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
}
.cookie-modal-content button.close-modal:hover {
    background: #000 !important;
}
.cookie-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}
