/* =========================================================
   Blog – shared styles (used across all Yatuk projects)
   ========================================================= */

/* ---- List page ---- */
.blog-list-header {
    margin-bottom: 1.5rem;
}

.blog-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.blog-category-filters .btn {
    border-radius: 20px;
    font-size: .85rem;
}

.blog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.blog-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
    transform: translateY(-3px);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.1rem 1.25rem 1.4rem;
}

.blog-card .card-title a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.blog-card .card-title a:hover {
    text-decoration: underline;
}

.blog-card .card-text {
    font-size: .9rem;
    color: #666;
}

/* ---- Detail page ---- */
.blog-cover {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.dark .blog-card{
    background: transparent;
    color: whitesmoke;
    box-shadow: 0 2px 8px rgba(255, 255, 255, .08);
}
.dark .blog-card .card-text{
    color: whitesmoke;
}
.dark .blog-post-detail{
    color: whitesmoke;
}
.dark .blog-product-card{
    background: transparent;
    color: whitesmoke;
    box-shadow: 0 4px 12px rgba(255, 255, 255, .12);
}
.dark .blog-product-category{
    color: whitesmoke;
}
.blog-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.blog-body p {
    margin-bottom: 1.2rem;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.blog-tag {
    background: #f0f0f0;
    color: #444;
    border-radius: 20px;
    padding: .25rem .75rem;
    font-size: .8rem;
}

/* ---- Back link ---- */
.blog-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: .9rem;
    color: #888;
    text-decoration: none;
}

.blog-back-link:hover {
    color: #333;
}

/* ---- Pagination ---- */
.blog-pagination .page-link {
    border-radius: 6px;
}

/* ---- Detail products carousel (Swiper) ---- */
.blog-product-swiper {
    padding-bottom: 2rem;
}

.blog-product-card {
    width: 220px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.blog-product-image-wrap {
    height: 220px;
    background: #f2f3f5;
}

.blog-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.blog-product-content {
    padding: .75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-product-category {
    font-size: .75rem;
    color: #7a7a7a;
}

.blog-product-title {
    margin-top: .2rem;
    font-size: .95rem;
    line-height: 1.3;
}

.blog-product-content .buy-now-btn {
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: .2rem .7rem;
    font-size: .72rem;
}
.blog-cover-container{
    position: relative;
}
.blog-cover-container .eye-icon{
    position: absolute;
    bottom: 40px;
    right: 15px;
    background: white;
    padding: 5px 7px;
    border-radius: 15px;
}
.dark .blog-cover-container .eye-icon{
    background: #333;
    color: whitesmoke;
}
.dark .blog-post-detail .blog-body{
    color: whitesmoke;
}