/* News & Blogs — homepage + listing + detail */

.wc-news-blog-section {
    background: #f8f9fb;
    padding-top: 56px;
    padding-bottom: 56px;
}

.wc-news-blog-section .section-header {
    margin-bottom: 32px;
}

.wc-news-blog-section .section-header h2 {
    margin-bottom: 8px;
    font-weight: 700;
    color: #111827;
}

.wc-news-blog-section .section-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

.wc-blog-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wc-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.wc-blog-card .featured-image,
.wc-blog-card__image {
    position: relative;
    display: block;
    margin: 0;
    background: #f3f4f6;
}

.wc-blog-card__image > a {
    display: block;
    width: 100%;
    max-height: 240px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.wc-blog-card__image img,
.wc-blog-card__image .wc-blog-no-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.wc-blog-card__image .wc-blog-no-image {
    min-height: 0;
}

.wc-blog-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

.wc-blog-card__type {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wc-blog-card__body {
    padding: 18px 18px 20px;
}

.wc-blog-home-more {
    margin-top: 28px;
}

.wc-blog-page {
    padding: 40px 0 56px;
}

.wc-blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.wc-blog-filter a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.wc-blog-filter a.is-active,
.wc-blog-filter a:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.wc-blog-detail-hero {
    position: relative;
    margin-bottom: 24px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
}

.wc-blog-detail-hero::before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 48%;
}

.wc-blog-detail-hero img,
.wc-blog-detail-hero .wc-blog-no-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-blog-detail-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

.wc-blog-detail-content img {
    max-width: 100%;
    height: auto;
}

.wc-blog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.wc-blog-gallery-grid a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.wc-blog-gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.wc-blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.wc-blog-pagination a,
.wc-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
}

.wc-blog-pagination a.is-active,
.wc-blog-pagination a:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #fff;
}

@media (max-width: 767px) {
    .wc-news-blog-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .wc-blog-card__image > a {
        max-height: 160px;
    }

    .wc-blog-card__body {
        padding: 12px 12px 14px;
    }

    .wc-blog-card__body h2.h3 {
        font-size: 0.95rem;
        margin-bottom: 8px !important;
    }

    .wc-blog-card__body .content {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .wc-blog-detail-hero::before {
        padding-top: 68%;
    }
}
