/* ==========================================
   BLOG PAGE
========================================== */

.blog-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 0;
    background-color: #26140d;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.blog-hero-content {
    width: min(620px, 90%);
    margin-right: 8%;
    margin-left: auto;
    text-align: right;
}

.blog-hero-eyebrow {
    margin-bottom: 12px;
    color: var(--maya-yellow);
    font-size: 1.2rem;
    font-weight: 900;
}

.blog-hero h1 {
    margin: 0 0 20px;
    color: var(--maya-white);
    font-size: clamp(4rem, 7vw, 6.7rem);
    font-weight: 900;
}

.blog-hero-description {
    max-width: 660px;
    margin: 0;
    color: var(--maya-white);
    font-size: 1.12rem;
    text-align: right;
}


/* INTRO */


.blog-intro-section {
    padding: 42px 0 18px;
    background: var(--maya-white);
}

.blog-intro-box {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
    padding: 48px 54px;
    background:
        linear-gradient(
            135deg,
            var(--maya-yellow-soft),
            var(--maya-white)
        );

    border: 1px solid var(--maya-yellow-border);
}

.blog-intro-content {
    text-align: right;
}

.blog-intro-content > span {
    display: block;
    margin-bottom: 8px;
    color: var(--maya-red);
    font-weight: 900;
}

.blog-intro-content h2 {
    margin-bottom: 16px;
    color: var(--maya-black);
    font-size: clamp(1.6rem, 2.6vw, 3rem);
    line-height: 1.45;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.blog-intro-content p {
    max-width: 620px;
    color: var(--maya-text-muted);
    font-size: 1.03rem;
    line-height: 2.05;
}


/* SEARCH */

.blog-search-form {
    width: 100%;
}

.blog-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 8px;
    background: var(--maya-white);
    border: 1px solid var(--maya-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.blog-search-field:focus-within {
    border-color: var(--maya-red);
    box-shadow: 0 0 0 5px var(--maya-red-focus);
}

.blog-search-field i {
    margin-right: 8px;
    color: var(--maya-red);
    font-size: 1.1rem;
}

.blog-search-field input {
    min-width: 0;
    flex: 1;
    padding: 11px 4px;
    color: var(--maya-black);
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
}

.blog-search-field input::placeholder {
    color: var(--maya-placeholder);
}

.blog-search-field button {
    flex: 0 0 auto;
    padding: 12px 24px;
    color: var(--maya-white);
    background: var(--maya-red);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 900;
    transition:
        transform var(--transition-fast),
        background var(--transition-fast);
}

.blog-search-field button:hover {
    background: var(--maya-orange);
    transform: translateY(-2px);
}


/* CATEGORY NAV */

.blog-category-nav {
    position: sticky;
    top: 82px;
    z-index: 700;
    padding: 16px 0 20px;
    background: var(--maya-white-96);
    border-bottom: 1px solid var(--maya-border);
    backdrop-filter: blur(12px);
}

.blog-category-links {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-category-icon-image {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
    border-radius: 4px;
}

.blog-category-links::-webkit-scrollbar {
    display: none;
}

.blog-category-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 17px;
    color: var(--maya-black);
    background: var(--maya-white);
    border: 1px solid var(--maya-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    font-weight: 800;
    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}

.blog-category-links a i {
    width: 14px;
    color: var(--maya-red);
    font-size: 0.78rem;
    text-align: center;
}

.blog-category-links a:hover,
.blog-category-links a.is-active {
    color: var(--maya-white);
    background: var(--maya-red);
    border-color: var(--maya-red);
    transform: translateY(-2px);
}

.blog-category-links a:hover i,
.blog-category-links a.is-active i {
    color: var(--maya-white);
}


/* SECTION HEADING */

.blog-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.blog-section-heading span {
    display: block;
    margin-bottom: 6px;
    color: var(--maya-red);
    font-weight: 900;
}

.blog-section-heading h2 {
    color: var(--maya-black);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 900;
}


/* FEATURED */

.blog-featured-section {
    padding: 56px 0 64px;
    background: var(--maya-white);
}

.blog-featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 390px;
    overflow: hidden;
    background: var(--maya-yellow-soft);
    border: 1px solid var(--maya-yellow-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.blog-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-featured-image {
    position: relative;
    overflow: hidden;
    min-height: 390px;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.blog-featured-label {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    color: var(--maya-black);
    background: var(--maya-yellow);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: var(--shadow-sm);
}

.blog-featured-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px;
    text-align: right;
}

.blog-featured-content h3 {
    margin: 14px 0 16px;
    color: var(--maya-black);
    font-size: clamp(2rem, 3.7vw, 3.2rem);
    line-height: 1.5;
    font-weight: 900;
}

.blog-featured-content p {
    margin-bottom: 20px;
    color: var(--maya-text-muted);
    font-size: 1.02rem;
    line-height: 2;
}

.blog-featured-button {
    gap: 9px;
}


/* CARDS */

.blog-posts-section {
    padding: 64px 0;
    background: var(--maya-surface);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--maya-white);
    border: 1px solid var(--maya-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.blog-post-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

.blog-post-image {
    display: block;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.blog-post-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    text-align: right;
}


.blog-post-content h3 {
    margin: 14px 0 12px;
    color: var(--maya-black);
    font-size: 1.55rem;
    line-height: 1.55;
    font-weight: 900;
}

.blog-post-content p {
    margin-bottom: 18px;
    color: var(--maya-text-muted);
    line-height: 1.95;
}


/* META */

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    margin-bottom: 18px;
    color: var(--maya-text-muted);
    font-size: 0.82rem;
}

.blog-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-post-meta i {
    color: var(--maya-red);
}


/* READ MORE */

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--maya-red);
    font-weight: 900;
    transition:
        gap var(--transition-fast),
        color var(--transition-fast);
}

.blog-read-more:hover {
    gap: 13px;
    color: var(--maya-orange);
}


/* POPULAR */

.blog-popular-section {
    padding: 60px 0 68px;
    background: var(--maya-white);
}

.blog-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.blog-popular-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: stretch;
    min-height: 150px;
    overflow: hidden;
    background: var(--maya-white);
    border: 1px solid var(--maya-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.blog-popular-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-popular-card > a {
    display: block;
    overflow: hidden;
}

.blog-popular-card img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}

.blog-popular-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 150px;
    color: var(--maya-red);
    background: var(--maya-yellow-soft);
    font-size: 2rem;
}

.blog-popular-card > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 16px 16px 0;
    text-align: right;
}

.blog-popular-card span {
    margin-bottom: 6px;
    color: var(--maya-red);
    font-size: 0.76rem;
    font-weight: 900;
}

.blog-popular-card h3 {
    margin-bottom: 10px;
    font-size: 1.04rem;
    line-height: 1.65;
}

.blog-popular-card small {
    color: var(--maya-text-muted);
}


/* FILTER SUMMARY */

.blog-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    margin-bottom: 25px;
    background: var(--maya-white);
    border: 1px solid var(--maya-border);
    border-radius: var(--radius-md);
}

.blog-filter-summary p {
    color: var(--maya-text-muted);
}

.blog-filter-summary strong {
    color: var(--maya-black);
}

.blog-filter-summary a {
    flex: 0 0 auto;
    color: var(--maya-red);
    font-weight: 900;
}


/* PLACEHOLDERS */

.blog-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 240px;
    color: var(--maya-red);
    background: var(--maya-yellow-soft);
    font-size: 3.7rem;
}

.blog-featured-image .blog-image-placeholder {
    height: 100%;
    min-height: 390px;
}


/* EMPTY */

.blog-empty-state {
    padding: 54px 28px;
    color: var(--maya-text-muted);
    background: var(--maya-white);
    border: 2px dashed var(--maya-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.blog-empty-state i {
    display: block;
    margin-bottom: 16px;
    color: var(--maya-red);
    font-size: 3.5rem;
}

.blog-empty-state p {
    font-size: 1.08rem;
}


/* CTA */

.blog-cta-section {
    padding: 58px 0 72px;
    background: var(--maya-white);
}

.blog-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 46px 54px;
    color: var(--maya-white);
    background:
        linear-gradient(
            135deg,
            var(--maya-red),
            var(--maya-orange)
        );
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.blog-cta-box span {
    display: block;
    margin-bottom: 7px;
    color: var(--maya-yellow);
    font-weight: 900;
}

.blog-cta-box h2 {
    color: var(--maya-white);
    font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.blog-cta-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}



/* ==========================================
   BLOG DETAIL PAGE
========================================== */

.blog-detail-page {
    background: var(--maya-white);
}

.blog-detail-hero {
    position: relative;
    padding: 105px 0 72px;
    color: var(--maya-white);
    background:
        radial-gradient(
            circle at 50% 10%,
            var(--maya-black-95),
            var(--maya-black-98) 62%,
            var(--maya-overlay-heavy) 100%
        );
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--maya-white-72);
    font-size: 0.9rem;
}

.blog-breadcrumb a:hover {
    color: var(--maya-yellow);
}

.blog-breadcrumb i {
    color: var(--maya-red);
    font-size: 0.75rem;
}

.blog-detail-heading {
    width: min(1080px, 100%);
    margin-inline: auto;
    text-align: center;
}

.blog-detail-heading {
    margin-bottom: 14px;
}

.blog-detail-heading h1 {
    max-width: 1040px;
    margin: 0 auto 18px;
    color: var(--maya-white);
    font-size: clamp(2.35rem, 3.75vw, 3.8rem);
    line-height: 1.3;
    font-weight: 900;
    text-wrap: balance;
}

.blog-detail-heading h1::after {
    content: "";
    display: block;
    width: 76px;
    height: 4px;
    margin: 18px auto 0;
    background: var(--maya-red);
    border-radius: var(--radius-pill);
}

.blog-detail-lead {
    max-width: 820px;
    margin: 0 auto 20px;
    color: var(--maya-white-82);
    font-size: 1rem;
    line-height: 1.9;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--maya-white-72);
    font-size: 0.85rem;
}

.blog-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-meta i {
    color: var(--maya-yellow);
}

.blog-detail-main {
    padding: 0 0 var(--space-xl);
    background: var(--maya-surface);
}

.blog-detail-cover {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 0 18px;
    transform: translateY(-38px);
    overflow: hidden;
    border: 10px solid var(--maya-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
}

.blog-detail-cover img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
    align-items: start;
}

.blog-article-card {
    overflow: hidden;
    background: var(--maya-white);
    border: 1px solid var(--maya-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.blog-article-content {
    padding: 56px 62px;
    color: var(--maya-article-text);
    font-size: 1.08rem;
    line-height: 2.25;
    text-align: justify;
}

.blog-article-content p {
    margin-bottom: 24px;
    font-size: inherit;
    line-height: inherit;
}

.blog-article-content p:last-child {
    margin-bottom: 0;
}

.blog-article-content h2 {
    margin: 48px 0 20px;
    color: var(--maya-black);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.5;
}

.blog-article-content h3 {
    margin: 36px 0 16px;
    color: var(--maya-black);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.55;
}

.blog-article-content ul,
.blog-article-content ol {
    padding-right: 24px;
    margin: 0 0 26px;
}

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

.blog-article-content blockquote {
    padding: 24px 28px;
    margin: 34px 0;
    color: var(--maya-black);
    background: var(--maya-yellow-soft);
    border-right: 5px solid var(--maya-yellow);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.blog-article-content img {
    width: 100%;
    margin: 34px 0;
    border-radius: var(--radius-md);
}

.blog-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 32px;
    background: var(--maya-yellow-soft);
    border-top: 1px solid var(--maya-yellow-border);
}

.blog-article-category {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--maya-text-muted);
}

.blog-article-category a {
    color: var(--maya-red);
    font-weight: 900;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--maya-red);
    font-weight: 900;
}

.blog-detail-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 24px;
}

.blog-sidebar-box {
    padding: 28px;
    background: var(--maya-white);
    border: 1px solid var(--maya-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.blog-sidebar-label {
    display: block;
    margin-bottom: 20px;
    color: var(--maya-red);
    font-weight: 900;
}

.blog-author-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.blog-author-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    color: var(--maya-red);
    background: var(--maya-red-soft);
    border-radius: 50%;
    font-size: 1.25rem;
}

.blog-author-box strong {
    display: block;
    margin-bottom: 7px;
    color: var(--maya-black);
    font-size: 1.05rem;
}

.blog-author-box p {
    color: var(--maya-text-muted);
    font-size: 0.9rem;
    line-height: 1.9;
}

.blog-sidebar-cta {
    color: var(--maya-white);
    background:
        linear-gradient(
            145deg,
            var(--maya-red),
            var(--maya-orange)
        );
    border: none;
}

.blog-sidebar-cta span {
    display: block;
    margin-bottom: 8px;
    color: var(--maya-yellow);
    font-weight: 900;
}

.blog-sidebar-cta h2 {
    margin-bottom: 22px;
    color: var(--maya-white);
    font-size: 2rem;
    line-height: 1.45;
}

.blog-sidebar-cta .btn {
    width: 100%;
    box-sizing: border-box;
}

.blog-related-section {
    padding: var(--space-xl) 0;
    background: var(--maya-white);
}

/* ==========================================
   MOBILE BLOG
========================================== */

@media (max-width: 991px) {

    .blog-hero {
        min-height: 360px;
    }

    .blog-hero {
        min-height: 360px;
        width: 100%;
    }

    .blog-hero-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0 20px;
    }
    
    .blog-hero h1 {
        font-size: 2.8rem;
    }

    .blog-intro-box {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 30px 20px;
    }

    .blog-intro-box img {
        width: 100%;
        height: auto;
    }

    .blog-intro-box > * {
        min-width: 0;
    }

    .blog-intro-content {
        width: 100%;
        max-width: none;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        min-height: 260px;
    }

    .blog-featured-image img {
        min-height: 260px;
    }

    .blog-featured-content {
        padding: 30px 20px;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .blog-popular-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-popular-card {
        grid-template-columns: 120px 1fr;
        min-height: 140px;
    }

    .blog-popular-card img {
        min-height: 140px;
        height: 100%;
        object-fit: cover;
    }

    .blog-cta-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 24px;
        padding: 36px 24px;
    }

    .blog-cta-box h2 {
        font-size: 2.4rem;
        text-align: center;
    }

    .blog-cta-actions {
        justify-content: center;
    }

    .blog-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .blog-cta-section {
        padding: 0px 0 35px;
    }

    .blog-cta-box {
        margin: 0;
    }


    .blog-detail-hero {
        min-height: 300px;
        padding-bottom: 35px;
    }

    .blog-detail-heading h1 {
        font-size: 2.2rem;
        line-height: 1.4;
    }

    .blog-detail-main {
        padding-top: 30px;
    }
    .blog-detail-cover {
        margin: -10px 15px 25px;
        transform: none;
    }
    .blog-detail-layout{
        display:block;
    }

    .blog-detail-sidebar{
        position:static;
        margin-top:30px;
    }

    .blog-article-content{
        padding:30px 20px;
    }

    .blog-category-links {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .blog-category-links::-webkit-scrollbar {
        display: none;
    }

    .blog-category-links > * {
        flex: 0 0 auto;
    }
}