/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .post_item_1{
        width: 33.33%;
        padding: 0 10px;
    }
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-text5 {
        font: 60px var(--fontUTMBebas);
    }
}

/* Mobile (481px - 767px) */
@media screen and (max-width: 767px) {
    .post_item_1{
        width: 50%;
        padding: 0 10px;
    }
    /*menu mobile */
    /* Hiển thị Nút Hamburger 3 gạch */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #333333; /* Màu sắc của 3 gạch */
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Khung danh sách Menu Mobile (Đang ẩn) */
    .mobile-navigation {
        display: block;
        position: absolute;
        top: 100%; /* Nằm ngay bên dưới thanh Header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        z-index: 999;
    }

    /* Khi kích hoạt mở menu */
    .mobile-navigation.active {
        max-height: 500px; /* Chiều cao xổ xuống tối đa */
    }

    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 15px 20px;
    }

    .mobile-menu-list li {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-menu-list li a {
        color: #333333;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        display: block;
    }
    /* end menu mobile */
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero h2 {
        font-size: 18px;
    }
    
    .hero .highlight {
        font-size: 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    
    .about-image {
        margin-bottom: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    .entry-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-sidebar {
        margin-top: 30px;
    }
    .about-text5 {
        font: 40px var(--fontUTMBebas);
    }
        .about-left {
            width: 100%;
        }
    
        .about-right {
            width: 100%;
        }
    
        .thunghieunoibat_left {
            width: 100%;
        }
    
        .thunghieunoibat_right {
            width: 100%;
        }
}

/* Small Mobile (up to 480px) */
@media screen and (max-width: 480px) {
    .post_item_1{
        width: 100%;
        padding: 0 10px;
    }
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        width: 100%;
    }
    .about-text5 {
        font: 20px var(--fontUTMBebas);
    }
}

/* Print Styles */
@media print {
    header, footer, .sidebar, .hero-actions, .post-share {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}