/* Blog listing page (/blog) — builds on blog.css homepage section styles */
.blog-index {
    padding-top: clamp(1.75rem, 4vw, 3rem);
}

.blog-index-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem 1.25rem;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.blog-index-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-index-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(26, 61, 50, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #1a3d32;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-index-chip em {
    font-style: normal;
    font-size: 0.72rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: rgba(26, 61, 50, 0.08);
}

.blog-index-chip:hover {
    border-color: #c9a227;
    color: #1a3d32;
}

.blog-index-chip.is-active {
    background: #1a3d32;
    border-color: #1a3d32;
    color: #fff;
}

.blog-index-chip.is-active em {
    background: rgba(255, 255, 255, 0.18);
}

.blog-index-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 1 340px;
    padding: 0.3rem 0.3rem 0.3rem 0.85rem;
    border: 1px solid rgba(26, 61, 50, 0.18);
    border-radius: 999px;
    background: #fff;
}

.blog-index-search svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: #6b5d4a;
    stroke-width: 2;
}

.blog-index-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.86rem;
    color: #222;
}

.blog-index-search button {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    background: linear-gradient(135deg, #c9a227, #e0b84a);
    color: #1a3d32;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.blog-index-feature-title {
    font-family: "Cinzel", serif;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    line-height: 1.3;
    margin: 0.6rem 0 0.5rem;
    color: #1a3d32;
}

.blog-index-feature-title a {
    color: inherit;
    text-decoration: none;
}

.blog-index-result {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #6b5d4a;
}

.blog-index-result a {
    color: #1a3d32;
    font-weight: 600;
}

.blog-index-grid {
    margin-top: clamp(1.25rem, 3vw, 2rem);
}

.blog-card-excerpt {
    margin: 0.35rem 0 0.15rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #5b5146;
}

.blog-index-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6b5d4a;
}

.blog-index-empty .blog-feature-btn {
    margin-top: 1rem;
    display: inline-flex;
}

.blog-index-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.5rem 0 clamp(1.5rem, 3vw, 2.25rem);
}

.blog-index-pagination a,
.blog-index-pagination span {
    min-width: 2.25rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(26, 61, 50, 0.15);
    background: #fff;
    color: #1a3d32;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
}

.blog-index-pagination a:hover {
    border-color: #c9a227;
}

.blog-index-pagination .is-current {
    background: #1a3d32;
    border-color: #1a3d32;
    color: #fff;
    font-weight: 600;
}

.blog-index-pagination .is-disabled {
    opacity: 0.45;
}

/* Featured block sits clearly below filters on all breakpoints */
.blog-index .blog-feature-card {
    position: relative;
    z-index: 0;
}

.blog-index-toolbar {
    position: relative;
    z-index: 2;
}

@media (max-width: 960px) {
    .blog-index .blog-feature-card .blog-feature-media.tour-pkg-media {
        position: relative;
        overflow: hidden;
        border-radius: 14px 14px 0 0;
    }
}

@media (max-width: 720px) {
    .blog-index-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-index-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .blog-index-filters::-webkit-scrollbar {
        display: none;
    }

    .blog-index-chip {
        flex-shrink: 0;
    }

    .blog-index-search {
        flex-basis: auto;
    }
}
