/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/
/* Grid layout chung */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.grid-item {
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Định dạng Title */
.grid-item h2 {
    font-size: 18px;
    margin-top: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
    text-decoration: none !important;
}

/* Định dạng mô tả ngắn */
.grid-item p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0;
    text-decoration: none !important;
}

/* Loại bỏ underline triệt để */
.grid-item a,
.grid-item a:hover,
.grid-item a:focus,
.grid-item h2 a,
.grid-item h2 a:hover,
.grid-item h2 a:focus,
.grid-item p a,
.grid-item p a:hover,
.grid-item p a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Nút Load More */
#load-more-btn {
    padding: 12px 25px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 30px auto;
}

#load-more-btn:hover {
    background: #0056b3;
}

/* Chuẩn responsive cho tablet */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Chuẩn responsive cho mobile chung */
@media (max-width: 767px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* CHỈ ÁP DỤNG CHO TRANG CATEGORY - chuẩn responsive như Astra gốc */
@media (max-width: 767px) {
    body.category .ast-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.category #primary.content-area {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.category .grid-container {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    body.category .grid-item {
        margin-bottom: 25px !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    body.category .grid-item img {
        width: 100% !important;
        border-radius: 8px !important;
    }

    body.category .grid-item h2 {
        font-size: 22px !important;
        margin-top: 15px !important;
        margin-bottom: 8px !important;
    }

    body.category .grid-item p {
        font-size: 15px !important;
        color: #666 !important;
    }

    body.category #load-more-btn {
        width: 100% !important;
        margin: 20px auto !important;
    }
}
