* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF9800;          /* Cam chính */
    --primary-dark: #F57C00;     /* Cam đậm hơn một chút */
    --secondary: #FFB74D;        /* Cam sáng */
    --accent: #FFE0B2;           /* Màu nền nhẹ */
    --orange-light: #FFF3E0;     /* Cam siêu nhạt */
    --orange-gradient: linear-gradient(135deg, #FFB74D 0%, #FF9800 50%, #F57C00 100%);
    --warm-gradient: linear-gradient(45deg, #FFB74D, #FF9800);
    --blue: #0288D1;
    --bg-main: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-muted: #B0BEC5;
    --border-color: #E0E0E0;
    --shadow: rgba(255, 152, 0, 0.2);
    --shadow-hover: rgba(255, 152, 0, 0.3);
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

body.nav-active {
    overflow: hidden;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.category-sub-list, .sub-category-list {
    margin: 1rem 0;
    padding-left: 1rem;
}

.sub-category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.category-sub-list ul, .sub-category-list {
    list-style: none;
}

.category-sub-list li, .sub-category-list li {
    margin-bottom: 0.5rem;
}

.sub-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 0 0 1px #e0e0e0;
}

.sub-category-link:hover {
    background: #e3f2fd; /* xanh nhạt khi hover */
    color: #1976d2; /* xanh đậm */
    box-shadow: 0 2px 6px var(--shadow);
}

.sub-category-link i {
    margin-right: 0.6rem;
    font-size: 1.1rem;
    color: #306998; /* màu xanh Python */
}

.post-count {
    background: var(--primary);
    color: white;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 999px;
    min-width: 24px;
    text-align: center;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 3px 15px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    position: relative;
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--orange-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 3px 12px var(--shadow);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo-text h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.search-input {
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    width: 100%;
    font-size: 0.9rem;
    background: var(--bg-main);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    color: var(--primary);
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1002;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-main);
    border-radius: 10px;
    padding: 0.4rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 1001;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.more-menu-toggle {
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.more-menu-toggle:hover {
    background: var(--primary);
    color: white;
}

.more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--shadow-hover);
    z-index: 1005;
    min-width: 200px;
    padding: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.more-menu.active {
    display: block;
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.more-menu-item:hover {
    background: var(--orange-light);
    color: var(--primary);
}

/* Mobile sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background: var(--bg-secondary);
    box-shadow: -2px 0 10px var(--shadow);
    z-index: 1006;
    padding: 1rem;
    transition: right 0.3s ease;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.mobile-sidebar-close i {
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-item {
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: var(--primary);
    color: white;
}

/* Overlay for mobile sidebar */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1004;
}

.overlay.active {
    display: block;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    background-color: var(--orange-light);
    border-radius: 6px;
    box-shadow: 0 1px 3px var(--shadow);
    margin-bottom: 1rem;
    align-items: center;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.breadcrumb a {
    color: #e65100;
    text-decoration: none;
    font-weight: 500;
    white-space: normal;      
    word-break: break-word;  
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-secondary);
    white-space: normal;        
    word-break: break-word;
}


/* Main container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1.2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    z-index: 1;
}

.main-content {
    width: 100%;
    margin-bottom: 30px;
}

.content {
    flex: 1;
    min-width: 0;
    padding: 20px;
}

.sidebar {
    width: 300px;
    padding: 20px;
}

/* Section styles */
section {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px var(--shadow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    background: var(--accent);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.section-icon {
    width: 34px;
    height: 34px;
    background: var(--orange-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.section-title a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.section-title a:hover {
    color: var(--primary);
    transform: scale(1.02);
}

/* Widget styles */
.widget {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.widget-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--orange-gradient);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    line-height: 1.4;
    border-radius: 6px 6px 0 0;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow: visible;
    white-space: normal;
}

.widget-content {
    padding: 1rem;
}

/* Blog widget */
.blog-widget .widget-content {
    padding: 1.2rem;
}

.blog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.blog-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow);
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-thumbnail .placeholder {
    width: 100%;
    height: 100%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.blog-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1rem 0;
}

.blog-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    margin: 0;
    line-height: 1.3;
}

.blog-title img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.blog-title h1 {
    font-size: 1.1rem;
    margin: 0;
    color: white;
    line-height: 1.3;
    flex: 1;
    word-break: break-word;
}

.blog-title:hover {
    text-decoration: underline;
    text-decoration-color: var(--primary);
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.blog-share span {
    font-weight: 500;
    color: var(--text-secondary);
}

.share-btn {
    color: white;
    background: var(--blue);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 0.85rem;
}

.share-btn:hover {
    background: #026aa7;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    background: var(--orange-light);
    color: #4e342e;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.4;
    word-break: break-word;
    box-shadow: 0 1px 3px var(--shadow);
}

.post-category {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 123, 255, 0.12);
    color: #0056b3;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    backdrop-filter: blur(2px);
}

.post-category a {
    display: inline-block;
    background: var(--accent);
    color: #bf360c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.post-category a:hover {
    background: #ffcc80;
    text-decoration: underline;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.blog-content h1, .blog-content h2, .blog-content h3 {
    color: var(--blue);
    margin: 1rem 0 0.5rem;
}

.blog-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px var(--shadow);
}

/* Files widget */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-item:hover {
    background: var(--orange-light);
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.file-item:active {
    transform: scale(0.98);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.file-icon {
    width: 50px;
    height: 50px;
    background: var(--orange-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px var(--shadow);
}

.file-details {
    flex: 1;
}

.file-title {
    white-space: normal;
    overflow-wrap: break-word;
    display: block;
    font-size: 1rem;
    margin: 0;
}

.file-title:hover {
    text-decoration: underline;
    text-decoration-color: var(--primary);
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.file-meta i {
    color: var(--primary);
    font-size: 0.85rem;
}

.download-btn {
    padding: 0.6rem 1.2rem;
    background: var(--orange-gradient);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.download-btn:hover {
    background: var(--warm-gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.download-btn:active {
    transform: scale(0.98);
}

/* Post list */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.post-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-item:hover {
    background: var(--orange-light);
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.post-item:active {
    transform: scale(0.98);
}

.post-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-thumbnail .placeholder {
    width: 100%;
    height: 100%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.post-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    line-height: 1.4;
    margin: 0.4rem 0;
    transition: all 0.3s ease;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--primary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.post-meta .meta-item:hover {
    color: var(--primary);
}

.post-meta .meta-item i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Category widget */
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 0.2px solid var(--border-color);
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
}

.category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-item:hover {
    background: var(--orange-light);
    border-radius: 6px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    flex: 1;
    font-weight: 500;
}

.category-icon {
    width: 32px;
    height: 32px;
    background: var(--orange-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.pagination a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 2rem;
    color: var(--border-color);
    margin-bottom: 0.5rem;
}

/* Search results */
.search-results {
    display: none;
}

.search-results.active {
    display: block;
}

/* Category sub-list */
.category-sub-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px var(--shadow);
}

.sub-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.4rem;
}

/* Responsive */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
    }

    .more-menu-toggle {
        display: flex;
    }
}

@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 3fr 1fr;
        gap: 1.2rem;
        padding: 1.2rem;
    }

    .search-box {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .main-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .content, .sidebar {
        width: 100%;
        padding: 10px;
    }

    .sidebar {
        display: none;
    }

    .nav-main {
        flex-direction: row;
        align-items: center;
    }

    .header-actions {
        flex: 1;
        justify-content: flex-end;
    }

    .search-box {
        max-width: 100%;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .more-menu-toggle {
        display: none;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .widget {
        margin-bottom: 1.2rem;
    }

    .widget-content {
        padding: 0.8rem;
    }

    .blog-title {
        font-size: 1.4rem;
    }

    .blog-header {
        align-items: flex-start;
    }

    .blog-thumbnail {
        width: 40px;
        height: 40px;
        margin-right: 0.8rem;
    }

    .blog-meta .meta-item {
        font-size: 0.8rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.6rem;
    }

    .file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .file-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .file-title {
        font-size: 0.95rem;
    }

    .file-meta {
        flex-wrap: wrap;
        font-size: 0.75rem;
        gap: 0.8rem;
    }

    .file-meta i {
        font-size: 0.8rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .post-item {
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.6rem;
    }

    .post-thumbnail {
        width: 40px;
        height: 40px;
        margin-right: 0.8rem;
    }

    .post-title {
        font-size: 0.85rem;
    }

    .post-meta {
        font-size: 0.75rem;
        gap: 0.8rem;
    }

    .post-meta .meta-item i {
        font-size: 0.8rem;
    }

    .pagination a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    .widget {
        margin-bottom: 1rem;
    }

    .widget-content {
        padding: 0.8rem;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-meta .meta-item {
        font-size: 0.75rem;
    }

    .blog-content {
        font-size: 0.95rem;
    }

    .file-item {
        padding: 0.5rem;
    }

    .file-icon {
        width: 40px;
        height: 40px;
    }

    .file-title {
        font-size: 0.85rem;
    }

    .file-meta {
        font-size: 0.7rem;
    }

    .post-item {
        padding: 0.5rem;
    }

    .post-thumbnail {
        width: 40px;
        height: 40px;
    }

    .post-title {
        font-size: 0.85rem;
    }

    .post-meta {
        font-size: 0.7rem;
    }

    .section-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-thumbnail {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-icon {
        width: 100%;
        height: 120px;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

    .file-title {
        font-size: 0.8rem;
    }

    .file-meta {
        font-size: 0.65rem;
    }

    .download-btn {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-thumbnail {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .post-title {
        font-size: 0.8rem;
    }

    .post-meta {
        font-size: 0.65rem;
    }
}

/* Footer styles */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--primary);
    padding: 1.5rem 1.2rem;
    margin-top: 1.5rem;
    box-shadow: 0 -3px 12px var(--shadow);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.4rem;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.footer-social a {
    color: var(--primary);
    font-size: 1.1rem;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer responsive */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: auto;
    }

    .footer-about h3,
    .footer-links h3,
    .footer-contact h3 {
        font-size: 1rem;
    }

    .footer-about p,
    .footer-links ul li a,
    .footer-contact p {
        font-size: 0.8rem;
    }

    .footer-social a {
        font-size: 1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.2rem 0.8rem;
    }

    .footer-container {
        gap: 0.8rem;
    }
}

