/* =========================================
   GENERAL SETTINGS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

h2.section-title {
    color: #00205b;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

p.section-desc {
    color: #363669;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

p.section-desc strong {
    color: #00205b;
}

/* =========================================
   SECTION 1: HERO BANNER
   ========================================= */
.brands-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 60vh;
    display: flex;
    align-items: center;
    background-color: #00205b;
    /* Màu nền dự phòng */
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
    /* Bù khoảng trống của Header */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    z-index: 1;
}

/* Overlay gradient từ trái sang phải để làm nổi bật chữ */
.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 32, 91, 0.95) 0%, rgba(0, 32, 91, 0.8) 40%, rgba(0, 32, 91, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.breadcrumb {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.breadcrumb .home-icon {
    font-size: 1.1rem;
}

.brands-hero h1 {
    color: #fff;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.brands-hero h1 .highlight-text {
    color: #AA8772;
    /* Màu vàng cam */
}

/* =========================================
   SECTION 2: PORTFOLIO (Split Layout)
   ========================================= */
.portfolio-section {
    background-color: #fff;
    border-bottom: 0.1px solid #363669;
}

.layout-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.image-side-rounded {
    width: 100%;
}

.image-side-rounded img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.text-side-content {
    padding-right: 20px;
}

/* =========================================
   SECTION 3: CATEGORIES GRID (3 Cột)
   ========================================= */
.categories-section {
    background-color: #fff;
    padding-top: 0;
    /* Giảm khoảng cách thừa giữa s2 và s3 */
}

.brands-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.brand-category-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.brand-category-card h3 {
    color: #00205b;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.brand-category-card p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   SECTION 4: BRANDS LIST (4 Cột cũ)
   ========================================= */
.brands-list-section {
    padding: 20px 0;
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

/* Biểu tượng tròn màu vàng có dấu check */
.icon-circle {
    width: 45px;
    height: 45px;
    background-color: #AA8772;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.brand-item {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.brand-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: #fff;
}

.brand-logo {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.brand-logo img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(70%);
    transition: all 0.3s ease;
}

.brand-item:hover .brand-logo img {
    filter: grayscale(0%) opacity(100%);
}

.btn-visit {
    text-decoration: none;
    color: #00205b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 25px;
    border: 2px solid #00205b;
    border-radius: 50px;
    transition: all 0.3s;
}

.brand-item:hover .btn-visit {
    background-color: #00205b;
    color: #fff;
}

/* =========================================
   RESPONSIVE DESIGN (Tablet & Mobile)
   ========================================= */
@media (max-width: 1024px) {
    .brands-hero h1 {
        font-size: 3.5rem;
    }

    .layout-grid-2 {
        gap: 40px;
    }

    .brands-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 50px 20px;
    }

    .brands-hero {
        min-height: 400px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .hero-overlay-gradient {
        /* Mobile làm tối đều để dễ đọc chữ */
        background: rgba(0, 32, 91, 0.7);
    }

    .brands-hero h1 {
        font-size: 2.5rem;
    }

    .layout-grid-2 {
        grid-template-columns: 1fr;
    }

    h2.section-title {
        font-size: 2.5rem;
    }

    .brands-categories-grid {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: 1fr;
    }
}