/**
Theme Name: Astra Child Theme - GilMo Customized
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-theme-gilmo-customized
Template: astra
*/
/* --- CONTAINER CHUNG --- */
.custom-lang-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: sans-serif;
}

/* --- 1. CUSTOM DROPDOWN STYLE --- */
.lang-dropdown-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 999; /* Đảm bảo nổi lên trên */
}

.lang-label {
    margin-right: 10px;
    font-weight: 600;
    color: #333;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 220px;
}

.dropdown-selected {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.dropdown-selected:hover {
    border-color: #0073aa;
}

.dropdown-selected img, .dropdown-options img {
    width: 24px;
    height: auto;
    margin-right: 10px;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

.arrow {
    margin-left: auto;
    font-size: 10px;
    color: #666;
}

.dropdown-options {
    display: none; /* Ẩn mặc định */
    position: absolute;
    background-color: #fff;
    min-width: 100%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1;
    border-radius: 6px;
    margin-top: 5px;
    padding: 0;
    list-style: none;
    max-height: 300px; /* Thanh cuộn nếu quá dài */
    overflow-y: auto;
}

.dropdown-options.show {
    display: block; /* Hiện khi click */
}

.dropdown-options li a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s;
}

.dropdown-options li a:hover {
    background-color: #f5f9fc;
    color: #0073aa;
}

/* --- 2. HEADER TITLE STYLE --- */
.page-heading {
    text-align: center;
    margin-bottom: 40px;
}

.page-heading h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.heading-line {
    width: 60px;
    height: 4px;
    background: #0073aa; /* Màu chủ đạo */
    margin: 0 auto;
}

/* --- 3. GRID LAYOUT STYLE (XỬ LÝ LỖI 1 HÀNG) --- */
.posts-grid-wrapper {
    display: grid;
    /* Tự động chia cột: Ít nhất 280px, tự co giãn */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; /* Khoảng cách giữa các ô */
    width: 100%;
}

.grid-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.grid-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-thumb {
    height: 200px; /* Chiều cao cố định ảnh */
    overflow: hidden;
}

.grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cắt ảnh cho vừa khung */
    transition: transform 0.5s;
}

.grid-item:hover .grid-thumb img {
    transform: scale(1.1); /* Zoom ảnh khi hover */
}

.grid-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
    font-weight: bold;
    color: #333;
}

.read-more {
    font-size: 0.9rem;
    color: #0073aa;
    font-weight: 600;
}