﻿/* --- Global & Layout --- */
:root {
    --primary: #ff477e;
    --soft-pink: #fff0f3;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 12px 30px rgba(255, 71, 126, 0.15);
}
a {
    text-decoration: none;
}

.blog-master-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.fw-800 { font-weight: 800; }
.hover-pink:hover {
    color: var(--primary) !important;
    transition: 0.3s;
}
.hover-pink:hover { color: var(--primary) !important; transition: 0.3s; }

/* --- Hot Section --- */
.hot-badge {
    background: var(--primary);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.hot-card {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    height: 350px;
}

.hot-card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.hot-card:hover .hot-card-img img { transform: scale(1.08); }

.hot-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
}

.hot-tag {
    background: #ffeb3b;
    color: #000;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hot-title { font-size: 1.6rem; font-weight: 800; margin-top: 12px; line-height: 1.2; }

/* Mini Hot Cards */
.hot-card-mini {
    display: flex;
    gap: 15px;
    background: white;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.3s;
    height: 115px;
}

.hot-card-mini:hover {
    transform: translateX(8px);
    background: var(--soft-pink);
    border-color: var(--soft-pink);
}

.hot-card-mini img { width: 90px; height: 90px; border-radius: 18px; object-fit: cover; }
.mini-title { font-size: 1rem; font-weight: 700; margin-bottom: 5px; color: #333; }
.mini-date { font-size: 11px; color: #999; }

/* --- Filter Bar --- */
.blog-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }

.filter-pill {
    padding: 8px 22px;
    background: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #eee;
    cursor: pointer;
    transition: 0.3s;
}
.filter-pill.active { background: var(--primary); color: white; border-color: var(--primary); }

.search-box-compact {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    border: 1px solid #eee;
}
.search-box-compact input { border: none; background: transparent; outline: none; font-size: 14px; width: 120px; transition: 0.4s; }
.search-box-compact input:focus { width: 200px; }
.search-box-compact i { color: #aaa; margin-left: 10px; }

/* --- Blog Cards --- */
.cute-blog-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.cute-blog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.card-thumb { position: relative; height: 180px; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.cute-blog-card:hover .card-thumb img { transform: scale(1.1); }

.card-category {
    position: absolute; bottom: 12px; left: 12px;
    background: rgba(255,255,255,0.95);
    padding: 4px 15px; border-radius: 50px;
    font-size: 11px; font-weight: 800; color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 11px; color: #bbb; margin-bottom: 10px; }
.card-title a{
    font-size: 1.2rem;
    font-weight: 700;
    color: #333 !important;
    line-height: 1.4;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}
.card-excerpt { font-size: 0.9rem; color: #666; line-height: 1.6; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Pagination --- */
.page-link { color: #666; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.page-item.active .page-link { background: var(--primary) !important; color: white !important; }

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .hot-card { height: 250px; }
    .hot-title { font-size: 1.2rem; }
    .blog-filter-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .search-box-compact input { width: 100% !important; }
    .card-thumb { height: 140px; }
    .card-body { padding: 15px; }
    .card-title { font-size: 1rem; }
}