/* ============ BLOG PAGES CSS ============ */

/* ---- Hero Section ---- */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
}
.blog-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: #fff;
    border-radius: 60px 60px 0 0;
}
.blog-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
}
.blog-hero h1 {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 12px;
    font-family: 'Poppins', sans-serif;
}
.blog-hero h1 span {
    color: #FFD54F;
}
.blog-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Category Filter ---- */
.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px auto 10px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.blog-cat-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: 1.5px solid #e0e0e0;
    color: #555;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-family: 'Poppins', sans-serif;
}
.blog-cat-btn:hover,
.blog-cat-btn.active {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(233,30,99,0.25);
}

/* ---- Blog Grid ---- */
.blog-section {
    padding: 0 0 80px;
    background: #fff;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* ---- Blog Card ---- */
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.blog-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}
.blog-card-img .blog-cat-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.blog-card-img .blog-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 40px;
    background: linear-gradient(135deg, #f8f8f8, #efefef);
}
.blog-card-body {
    padding: 22px 22px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}
.blog-card-meta i {
    color: #e91e63;
    margin-right: 3px;
}
.blog-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2e2e45;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}
.blog-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card-body h3 a:hover {
    color: #e91e63;
}
.blog-card-excerpt {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.blog-read-more {
    color: #e91e63;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.blog-read-more:hover {
    gap: 10px;
}
.blog-card-views {
    font-size: 11px;
    color: #bbb;
}

/* ---- Pagination ---- */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
    padding: 0 20px;
}
.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid #e0e0e0;
    color: #555;
    background: #fff;
}
.blog-pagination a:hover {
    background: #fce4ec;
    border-color: #e91e63;
    color: #e91e63;
}
.blog-pagination .active {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: #fff;
    border-color: transparent;
}

/* ---- Empty State ---- */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    grid-column: 1 / -1;
}
.blog-empty i {
    font-size: 50px;
    display: block;
    margin-bottom: 16px;
    color: #ddd;
}

/* ---- Blog Detail Page ---- */
.blog-detail-hero {
    position: relative;
    background: #fff;
    padding: 50px 0 30px;
    text-align: center;
}
.blog-detail-hero .breadcrumb {
    font-size: 13px;
    margin-bottom: 14px;
    color: #777;
	gap: 10px;
}
.blog-detail-hero .breadcrumb a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-detail-hero .breadcrumb a:hover {
    color: #e91e63;
}
.blog-detail-hero h1 {
    color: #1e1e2f;
    font-size: 38px;
    font-weight: 700;
    max-width: 850px;
    margin: 0 auto 18px;
    line-height: 1.35;
    font-family: 'Poppins', sans-serif;
}
.blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 13px;
    flex-wrap: wrap;
}
.blog-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-detail-meta i {
    color: #e91e63;
}

/* ---- Detail Content ---- */
.blog-detail-section {
    background: #fff;
    padding: 0 0 80px;
}
.blog-detail-wrapper {
    /* max-width: 850px; */
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.blog-detail-content {
    background: #fff;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.blog-detail-featured {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.blog-detail-body {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}
.blog-detail-body h2 {
    font-size: 24px;
    color: #1e1e2f;
    margin: 32px 0 14px;
    font-family: 'Poppins', sans-serif;
}
.blog-detail-body h3 {
    font-size: 20px;
    color: #222;
    margin: 26px 0 12px;
}
.blog-detail-body p {
    margin: 0 0 18px;
}
.blog-detail-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}
.blog-detail-body ul,
.blog-detail-body ol {
    margin: 0 0 18px 24px;
}
.blog-detail-body li {
    margin-bottom: 8px;
}
.blog-detail-body blockquote {
    margin: 24px 0;
    padding: 18px 24px;
    border-left: 4px solid #e91e63;
    background: #fdf2f5;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #444;
}

/* ---- Tags ---- */
.blog-detail-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.blog-detail-tags .tag-label {
    font-size: 13px;
    color: #888;
    font-weight: 600;
}
.blog-detail-tags a {
    display: inline-block;
    padding: 4px 14px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.blog-detail-tags a:hover {
    background: #e91e63;
    color: #fff;
}

/* ---- Share ---- */
.blog-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-share span {
    font-size: 13px;
    color: #888;
    font-weight: 600;
}
.blog-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s;
}
.blog-share a:hover {
    transform: scale(1.1);
}
.blog-share .fb { background: #1877f2; }
.blog-share .tw { background: #1da1f2; }
.blog-share .wa { background: #25d366; }
.blog-share .li { background: #0a66c2; }

/* ---- Related Posts ---- */
.blog-related {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
}
.blog-related h2 {
    font-size: 22px;
    color: #2e2e45;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 28px;
    }
    .blog-detail-hero h1 {
        font-size: 24px;
    }
    .blog-detail-content {
        padding: 28px 22px;
    }
    .blog-card-img {
        height: 170px;
    }
}
@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
    .blog-hero {
        padding: 80px 0 50px;
    }
    .blog-hero h1 {
        font-size: 24px;
    }
}
