/* ==========================================================================
   blog.css — Blog list page + blog details (single post) page
   Uses the same tokens as home.css / nav.css: #14140f ink, #f4f1ea cream,
   #7fc4e8 / #4fb0e4 accent, container-xl, section-pad, reveal-up, eyebrow.
   ========================================================================== */

/* -------------------------------------------------------- Page title bar -- */
.page-title-bar {
    background-color: #14140f;
    padding: 200px 0 90px;
    text-align: center;
}

.page-title-bar .eyebrow {
    color: rgba(255, 255, 255, 0.55);
}

.page-title-bar h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4.6vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 auto;
    max-width: 780px;
}

@media (max-width: 767.98px) {
    .page-title-bar {
        padding: 140px 0 60px;
    }
}

/* ---------------------------------------------------------- Filter pills -- */
.blog-filter-section {
    padding: 0 0 40px;
}

.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.blog-filter-pill {
    background-color: #fff;
    border: 1px solid #e4e0d4;
    color: #6b6b63;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.blog-filter-pill:hover {
    border-color: #14140f;
    color: #14140f;
}

.blog-filter-pill.active {
    background-color: #14140f;
    border-color: #14140f;
    color: #fff;
}

.blog-filter-pill:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* -------------------------------------------------------------- Blog grid -- */
#blogGrid {
    min-height: 240px;
    transition: opacity 0.25s ease;
}

#blogGrid.is-loading {
    opacity: 0.35;
    pointer-events: none;
}

.blog-card {
    display: block;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
}

.blog-card-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.06);
}

.blog-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: rgba(20, 20, 15, 0.65);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 20px;
}

.blog-card-body {
    padding: 24px 24px 28px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #9a9488;
    margin-bottom: 12px;
}

.blog-card-meta .dot {
    font-size: 0.6rem;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #14140f;
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: #6b6b63;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #14140f;
}

.blog-card-readmore i {
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-readmore i {
    transform: translateX(4px);
}

/* ---------------------------------------------------------- Pagination -- */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}

.blog-pagination .page-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 50%;
    border: 1px solid #e4e0d4;
    background-color: #fff;
    color: #6b6b63;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-pagination .page-btn:hover {
    border-color: #14140f;
    color: #14140f;
}

.blog-pagination .page-btn.active {
    background-color: #14140f;
    border-color: #14140f;
    color: #fff;
}

.blog-pagination .page-btn.nav-btn {
    border-radius: 30px;
    padding: 0 18px;
}

.blog-pagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.blog-pagination .page-dots {
    color: #9a9488;
    padding: 0 4px;
}

/* ===================================================== POST DETAIL PAGE == */

.post-title-bar .post-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 18px;
}

.post-category-badge {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}

.post-title-bar .post-byline {
    margin-top: 18px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.post-feature-media {
    border-radius: 22px;
    overflow: hidden;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.post-feature-media img {
    width: 100%;
    display: block;
}

/* Post body typography */
.post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333029;
}

.post-content p {
    margin-bottom: 1.4em;
}

.post-content h2 {
    font-size: 1.6rem;
    margin: 2em 0 0.7em;
    font-weight: 500;
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 1.8em 0 0.6em;
    font-weight: 500;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.4em;
    padding-left: 1.3em;
    color: #333029;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content a {
    color: #14140f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content blockquote {
    border-left: 3px solid #14140f;
    margin: 1.8em 0;
    padding: 0.4em 0 0.4em 1.4em;
    font-style: italic;
    color: #4a4a44;
    font-size: 1.1rem;
}

.post-content img {
    border-radius: 16px;
    margin: 1.6em 0;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 42px;
    padding-top: 32px;
    border-top: 1px solid #eee9dc;
}

.tag-pill {
    background-color: #f4f1ea;
    color: #6b6b63;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-pill:hover {
    background-color: #14140f;
    color: #fff;
}

/* Share row */
.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.post-share-label {
    font-size: 0.85rem;
    color: #9a9488;
    margin-right: 4px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f4f1ea;
    color: #14140f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
    background-color: #14140f;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------------------------------------------------- Related slider -- */
.related-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.related-slider {
    flex: 1;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.related-slider::-webkit-scrollbar {
    display: none;
}

.related-track {
    display: flex;
    gap: 24px;
}

.related-slide {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}

.related-card {
    display: block;
    background-color: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.related-card-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.related-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-card-body {
    padding: 18px 20px 22px;
}

.related-card-date {
    font-size: 0.78rem;
    color: #9a9488;
}

.related-card-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: #14140f;
    line-height: 1.4;
    margin-top: 6px;
}

.related-nav {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e4e0d4;
    color: #14140f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.related-nav:hover {
    background-color: #14140f;
    color: #fff;
}

@media (max-width: 767.98px) {
    .post-feature-media {
        margin-top: -30px;
    }

    .related-slide {
        width: 250px;
    }

    .related-nav {
        display: none;
    }
}