/* Blog Styles */
:root {
    --primary-color: #c9a74d; /* Màu vàng gold chủ đạo từ trang index */
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --bg-color: #fff;
    --border-color: #eee;
    --hover-bg: #f5f5f5;
}

.blog-header {
    padding: 40px 0;
    text-align: center;
    margin-bottom: 20px;
    clear: both;
    position: relative;
    z-index: 1;
}

.blog-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    text-transform: uppercase;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.back-to-blog {
    color: var(--light-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-to-blog:hover {
    color: var(--primary-color);
    text-decoration: none;
}

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

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

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

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

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

.blog-meta {
    display: flex;
    justify-content: space-between;
    padding: 15px 15px 5px;
    font-size: 13px;
    color: #666;
}

.blog-category a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-category a:hover {
    text-decoration: underline;
}

.blog-title {
    padding: 0 15px;
    margin-bottom: 10px;
}

.blog-title a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-summary {
    padding: 0 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    padding: 0 15px 15px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.read-more:hover {
    color: #333;
    text-decoration: none;
}

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

.pagination {
    margin: 0;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: #333;
}

.pagination .page-link:hover {
    color: var(--primary-color);
}

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

.sidebar-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Categories */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

.category-list li a:hover {
    color: #e83e8c;
}

.category-list .count {
    color: #999;
}

/* Featured Posts */
.featured-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.featured-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.featured-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

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

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

.featured-content {
    flex-grow: 1;
}

.featured-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.featured-category a {
    color: var(--primary-color);
    text-decoration: none;
}

.featured-date {
    margin-left: 10px;
}

.featured-title a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s;
}

.featured-title a:hover {
    color: var(--primary-color);
}

/* Search Form */
.search-form .input-group {
    border-radius: 4px;
    overflow: hidden;
}

.search-form .form-control {
    border-right: none;
}

.search-form .btn-outline-secondary {
    background-color: #fff;
    border-left: none;
    color: #666;
}

.search-form .btn-outline-secondary:hover {
    color: var(--primary-color);
}

/* No Posts */
.no-posts {
    padding: 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-posts p {
    color: #666;
    font-size: 16px;
}

/* Blog Detail Page */
.blog-detail-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.blog-detail-header {
    margin-bottom: 30px;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.blog-detail-meta > span {
    margin-right: 20px;
}

.blog-detail-meta i {
    margin-right: 5px;
}

.blog-detail-category a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.blog-detail-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.blog-detail-image img {
    width: 100%;
    height: auto;
}

.blog-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.blog-detail-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.blog-detail-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px;
    color: var(--text-color);
}

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

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

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

.blog-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog-share h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-share .share-buttons {
    display: flex;
}

.blog-share .share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.3s;
}

.blog-share .share-button:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Blog Admin */
.admin-controls {
    margin-bottom: 30px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-controls .btn {
    margin-right: 10px;
}

.admin-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.admin-form h2 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.admin-table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-actions .btn {
    margin-right: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

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

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 24px;
    }

    .blog-detail-title {
        font-size: 24px;
    }

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

    .admin-form {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-date {
        margin-top: 5px;
    }

    .blog-detail-meta {
        flex-wrap: wrap;
    }

    .blog-detail-meta > span {
        margin-bottom: 10px;
    }
}

/* Additional Main Content Fixes */
.container.main-content {
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

.blog-main-content {
    margin-top: 40px;
    clear: both;
} 