/* Blog Page Styles */
.blog-page {
    min-height: 60vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #007bff);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Blog Filters */
.blog-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.blog-filters form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.blog-filters .form-control,
.blog-filters .form-select {
    height: 42px;
}

@media (max-width: 767px) {
    .blog-filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-filters form > div {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .blog-filters .d-flex.gap-2 {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Blog List */
.blog-list {
    margin-bottom: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.blog-image {
    overflow: hidden;
    position: relative;
    height: 250px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    font-size: 0.9rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--primary-color, #007bff);
}

.blog-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-read-more {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 10px;
    color: var(--primary-color, #007bff);
}

/* Blog Detail Page */
.blog-detail-page {
    min-height: 60vh;
}

.blog-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-detail-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #6c757d;
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-detail-image {
    margin: 30px 0;
}

.blog-detail-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.blog-detail-excerpt {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color, #007bff);
    border-radius: 4px;
}

.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-detail-content p {
    margin-bottom: 20px;
}

.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-detail-content li {
    margin-bottom: 10px;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--primary-color, #007bff);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

/* Share Buttons */
.blog-share {
    margin-top: 40px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Related Blogs */
.related-blogs {
    margin-top: 50px;
}

.related-blogs .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sidebar Categories & Filters - Fashion Style */
.col-left.sidebar {
    background: transparent;
}

.danh-muc-blog {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.danh-muc-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.color-blog {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 18px 20px;
    position: relative;
}

.color-blog::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
}

.title-blog-2 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.index-column-blog {
    padding: 20px;
}

.index-column-blog .links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.index-column-blog .links li {
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.index-column-blog .links li:hover {
    transform: translateX(5px);
}

.index-column-blog .links li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    background: #f8f9fa;
    border-left: 3px solid transparent;
}

.index-column-blog .links li a:hover {
    background: linear-gradient(90deg, #f0f4ff 0%, #fff 100%);
    border-left-color: #667eea;
    color: #667eea;
    padding-left: 20px;
}

.index-column-blog .links li a.active {
    background: linear-gradient(90deg, #f0f4ff 0%, #fff 100%);
    border-left-color: #667eea;
    color: #667eea;
    padding-left: 20px;
}

/* Filter Container */
.filter-container {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.filter-cate {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.filter-cate .title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-cate .close_filter {
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.filter-cate .close_filter:hover {
    opacity: 1;
}

.filter-group {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.filter-group-title--green {
    color: #667eea;
    border-bottom-color: #667eea;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    margin-bottom: 10px;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    margin: 0;
    font-weight: 500;
    color: #555;
}

.filter-item label:hover {
    background: #f8f9fa;
    color: #667eea;
}

.filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.filter-item input[type="checkbox"]:checked + i {
    background: #667eea !important;
    border-color: #667eea;
}

.filter-item i.bi {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #ddd;
    display: inline-block;
    transition: all 0.3s;
}

.filter-item.color i.bi {
    border-radius: 50%;
    border-width: 2px;
}

.filter-item a {
    text-decoration: none !important;
    display: block;
}

.filter-item span {
    display: block;
}

/* Hot Products */
.danh-muc-blog .row-service {
    padding: 20px;
}

.list-item-home {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.list-item-home:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.list-item-home:last-child {
    margin-bottom: 0;
}

.list-item-home .product-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.list-item-home .product-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.list-item-home .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.list-item-home:hover .product-image img {
    transform: scale(1.1);
}

.list-item-home .product-shop {
    flex-grow: 1;
    min-width: 0;
}

.list-item-home .product-name {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.list-item-home .product-name a {
    color: #333;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item-home .product-name a:hover {
    color: #667eea;
}

.list-item-home .price-box {
    margin-bottom: 8px;
}

.list-item-home .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f5576c;
}

.list-item-home .desc.std {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.list-item-home .desc.std p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item-home .desc.std .link-learn {
    color: #667eea;
    text-decoration: none !important;
    font-weight: 500;
    margin-left: 5px;
}

.list-item-home .desc.std .link-learn:hover {
    text-decoration: underline !important;
}

.list-item-home .actions {
    margin-top: auto;
}

.list-item-home .button.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    white-space: nowrap;
}

.list-item-home .button.btn-cart span {
    white-space: nowrap;
}

.list-item-home .button.btn-cart i {
    font-size: 1rem;
    flex-shrink: 0;
}

.list-item-home .button.btn-cart:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Remove all underlines */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.latest-blog-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.latest-blog-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-blog-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
}

.latest-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.latest-blog-image:hover img {
    transform: scale(1.1);
}

.latest-blog-content {
    flex-grow: 1;
}

.latest-blog-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.latest-blog-content h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.latest-blog-content h5 a:hover {
    color: var(--primary-color, #007bff);
}

.latest-blog-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Empty State */
.empty-blog {
    padding: 60px 20px;
    text-align: center;
}

.empty-blog i {
    opacity: 0.5;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }

    .blog-detail-title {
        font-size: 2rem;
    }

    .blog-detail-content {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .blog-detail-title {
        font-size: 1.5rem;
    }

    .blog-detail {
        padding: 20px 15px;
    }

    .blog-card {
        margin-bottom: 20px;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 15px;
    }

    .blog-title {
        font-size: 1.1rem;
    }

    .blog-excerpt {
        font-size: 0.875rem;
    }

    .blog-meta {
        font-size: 0.8rem;
        gap: 10px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-buttons .btn {
        width: 100%;
    }

    .blog-detail-content {
        font-size: 1rem;
    }

    .blog-detail-content h2 {
        font-size: 1.3rem;
    }

    .blog-detail-content h3 {
        font-size: 1.15rem;
    }

    .blog-detail-content h4 {
        font-size: 1.05rem;
    }

    .blog-filters {
        padding: 15px;
    }

    .sidebar-widget {
        padding: 15px;
    }

    .widget-title {
        font-size: 1rem;
    }

    .list-item-home {
        padding: 12px;
    }

    .list-item-home .product-image {
        width: 80px;
        height: 80px;
    }

    .list-item-home .product-name {
        font-size: 0.9rem;
    }

    .list-item-home .price {
        font-size: 1rem;
    }

    .list-item-home .button.btn-cart {
        font-size: 0.85rem;
        padding: 6px 15px;
    }
}

