/* Blog listing + detail styles */
:root {
    --blog-accent: var(--color-primary);
    --blog-card-radius: 14px;
}

.blog-hero {
    position: relative;
    overflow: hidden;
}

.blog-hero .title-page {
    position: relative;
}

.blog-hero::after {
    background-color: rgba(0, 0, 0, 0.55);
}

.blog-hero .title-page::after {
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
}

.blog-list .blog-card {
    border: 0;
    border-radius: var(--blog-card-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-list .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-media {
    position: relative;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.blog-list .card-body {
    padding: 1.25rem;
}

.blog-list .card-title {
    color: #2f2f2f;
    font-size: 25px;
}

.blog-list .card-text {
    color: #6c757d;
    font-size: 15px;
}

.blog-link {
    color: var(--blog-accent);
    font-weight: 600;
    text-decoration: none;
}

.blog-link:hover {
    color: #915f34;
    text-decoration: underline;
}

.blog-pagination .pagination {
    gap: 0.5rem;
}

.blog-pagination .text-muted {
    display: none;
}

.blog-pagination .page-link {
    border-radius: 999px;
    color: var(--blog-accent);
    border: 1px solid transparent;
}

.blog-pagination .page-item.active .page-link {
    background-color: var(--blog-accent);
    border-color: var(--blog-accent);
    color: #ffffff;
}

.blog-pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #9aa0a6;
}

.blog-pagination .page-link:hover {
    border-color: var(--blog-accent);
    background-color: rgba(172, 119, 71, 0.12);
}

.blog-pagination .align-items-sm-center {
    justify-content: center !important;
}

.blog-detail .blog-content {
    background-color: #ffffff;
}

.blog-detail .blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.blog-meta {
    font-size: 0.95rem;
}

.blog-back-link {
    border: 1px solid var(--blog-accent);
    color: var(--blog-accent);
    background-color: transparent;
}

.blog-back-link:hover {
    background-color: var(--blog-accent);
    color: #ffffff;
}

@media (max-width: 576px) {
    .blog-card-image {
        height: 200px;
    }
}
