.title-section-about {
    height: 50vh;
    /* Chiều cao toàn màn hình */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.title-section-about .title-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(100%);
}

.title-section-about .title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.801);
    /* phủ nhẹ nhưng hiệu quả */
    /* Overlay xanh dương đậm làm tối */
    z-index: 1;
}

.title-section-about .title-content {
    position: relative;
    z-index: 2;
    /* Nội dung nổi trên overlay */
    color: #ffffff;
    /* Chữ trắng */
    padding: 20px 0;
}

.title-section-about .title-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.title-section-about .title-content h2 strong {
    color: #ffffff;
    text-transform: uppercase;
}

.title-section-about .title-content p {
    font-size: 1.2rem;
    text-align: justify;
    font-weight: 500;
    line-height: normal;
    color: #ffffff;
    margin-top: 10px;
}

.product {
    background-color: #ffffff;
    padding: 40px 0;
}

.title-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
}

.title-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.title-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title-content .description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Article List Styles */
.articles-container {
    padding: 60px 0;
    min-height: 100vh;
}

.article-subtitle {
    text-align: center;
    font-size: 1.6rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #00373b;
    margin-bottom: 20px;
}

.color-bg-blogs {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.article-item {
    height: 10vh;
    min-height: 100px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.article-content {
    height: 100%;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.article-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-time i {
    color: #3498db;
    font-size: 0.9rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-author i {
    color: #e74c3c;
    font-size: 0.9rem;
}

.article-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 15px 15px 0;
    position: relative;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    border-radius: 0 15px 15px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 10px;
}

.section-title h3 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title .divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    margin: 0 auto;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-item {
        min-height: 120px;
    }

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

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

/* Categories Sidebar Styles */
.categories-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(115deg, #17469e, #175997);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.categories-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
}

.sidebar-header h4 {
    color: white;
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h4 i {
    font-size: 16px;
    opacity: 0.9;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 20px 0;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.category-link:hover {
    color: white;
    text-decoration: none;
    border-left-color: #fff;
    transform: translateX(5px);
}

.category-link:hover::before {
    width: 100%;
}

.category-link i {
    margin-right: 12px;
    font-size: 14px;
    opacity: 0.8;
    min-width: 16px;
}

.category-link span {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.post-count {
    opacity: 0.8;
    font-size: 12px;
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.no-categories {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-categories i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-categories p {
    margin: 0;
    font-size: 14px;
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
    position: fixed;
    top: 120px;
    left: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.sidebar-toggle-btn i {
    font-size: 16px;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-sidebar {
        width: 280px;
        left: -280px;
    }

    .sidebar-toggle-btn {
        top: 100px;
        left: 15px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .sidebar-toggle-btn span {
        display: none;
    }

    .category-link {
        padding: 12px 20px;
    }

    .category-link span {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .categories-sidebar {
        width: calc(100vw - 40px);
        left: calc(-100vw + 40px);
    }

    .sidebar-toggle-btn {
        top: 80px;
        left: 10px;
        padding: 8px 12px;
    }
}

/* Animation for smooth appearance */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.categories-sidebar.active {
    animation: slideInLeft 0.3s ease-out;
}

/* Custom scrollbar for sidebar */
.categories-sidebar::-webkit-scrollbar {
    width: 6px;
}

.categories-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.categories-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.categories-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Highlight active category */
.category-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: #fff;
    transform: translateX(5px);
}

.category-link.active::before {
    width: 100%;
}

.category-link.active .post-count {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 600;
}

.featured-articles-section {
    padding: 60px 0;
    background: transparent;
}

.section-title {
    text-align: center;
}

.section-title h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    position: relative;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    margin: 0 auto;
    border-radius: 2px;
}

.featured-article-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.featured-article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-article-image {
    position: relative;
    overflow: hidden;
}

.main-article .featured-article-image {
    height: 400px;
}

.side-article .featured-article-image {
    height: auto;
    width: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

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

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

.featured-article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.side-article .featured-article-category {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
}

.featured-article-content {
    padding: 25px;
}

.main-article .featured-article-content {
    padding: 35px;
}

.side-article .featured-article-content {
    padding: 15px;
    flex: 1;
}

.featured-article-title {
    margin-bottom: 15px;
}

.featured-article-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.4;
}

.main-article .featured-article-title a {
    font-size: 1.8rem;
}

.side-article .featured-article-title a {
    font-size: 1rem;
    line-height: 1.3;
}

.featured-article-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.featured-article-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.main-article .featured-article-excerpt {
    font-weight: 450;
    font-size: 1.1rem;
}

.side-article .featured-article-excerpt {
    font-size: 0.98rem;
    font-weight: 480;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.side-article .featured-article-meta {
    font-size: 0.75rem;
    gap: 10px;
}

.featured-article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-article-meta i {
    font-size: 0.85rem;
}

.side-articles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.side-article {
    flex: 1;
}

.side-article .featured-article-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 120px;
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 60px;
    margin-bottom: 40px;
}

.blog-pagination .pagination {
    gap: 8px;
}

.blog-pagination .page-link {
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: white;
}

.blog-pagination .page-link:hover {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.blog-pagination .page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.blog-pagination .page-item.disabled .page-link {
    background-color: transparent;
    border: none;
    color: #6c757d;
    cursor: default;
}

.blog-pagination .page-item.disabled .page-link:hover {
    background-color: transparent;
    border: none;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .side-articles-container {
        margin-top: 30px;
    }

    .main-article .featured-article-image {
        height: 300px;
    }

    .side-article .featured-article-card {
        height: 140px;
    }

    .side-article .featured-article-image {
        height: 140px;
        width: 140px;
    }
}

@media (max-width: 767.98px) {
    .side-articles-container {
        gap: 20px;
        margin-top: 30px;
    }

    .featured-articles-section {
        padding: 40px 0;
    }

    .section-title h3 {
        font-size: 2rem;
    }

    .main-article .featured-article-title a {
        font-size: 1.5rem;
    }

    .side-article .featured-article-title a {
        font-size: 0.95rem;
    }

    .side-article .featured-article-card {
        height: 120px;
    }

    .side-article .featured-article-image {
        height: 120px;
        width: 120px;
    }
}

/* Animation cho các card khi load */
.featured-article-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.main-article .featured-article-card {
    animation-delay: 0.1s;
}

.side-article:nth-child(1) .featured-article-card {
    animation-delay: 0.2s;
}

.side-article:nth-child(2) .featured-article-card {
    animation-delay: 0.3s;
}

.side-article:nth-child(3) .featured-article-card {
    animation-delay: 0.4s;
}

.side-article:nth-child(4) .featured-article-card {
    animation-delay: 0.5s;
}

.side-article:nth-child(5) .featured-article-card {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}