/* NEWS PAGE STYLES */

.topbar {
    border-bottom: 1px solid #FF5B1F;
    margin-bottom: 0px !important;
}

.topbar-inner {
    margin-bottom: 5px !important;
}

.news-page {
    padding: 40px 0;
    color: var(--text);
}

.news-page .container {
    max-width: var(--container);
    margin: 0 auto;
}

/* Featured Section */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}

/* Desktop: match featured-main height to featured-sidebar (design) */
@media (min-width: 1101px) {
    .featured-grid {
        align-items: stretch;
        --featured-equal-height: 340px;
    }

    .featured-main,
    .featured-sidebar {
        height: var(--featured-equal-height);
    }

    .featured-sidebar {
        display: flex;
        flex-direction: column;
    }

    .featured-sidebar .sidebar-list {
        flex: 1;
        overflow: auto;
        padding-right: 6px; /* chừa chỗ cho scrollbar */
    }

    .featured-main .featured-info {
        overflow: hidden;
    }
}

@media (max-width: 1100px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


.featured-main {
    display: flex;
    gap: 0;
    /* background: #FF5B1F; */
    border: 1px solid #FF5B1F;
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.featured-banner {
    flex: 1.2;
    position: relative;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.banner-footer {
    display: none;
}

.agg-pack {
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
}

.featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 25px;
    background: #FFF6F3;
}

.featured-info .date {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.featured-info .date::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat center center;
    background-size: contain;
}

.featured-info .card-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #111;
}

.featured-info p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--orange);
    color: #fff;
    padding: 12px 25px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    width: fit-content;
}

.btn-more:hover {
    background: #e64a10;
    transform: translateX(5px);
}

.btn-more i::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 12px;
    background-image: url('../images/icon/ico-arrow.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btn-more i::before {
    display: none;
}

/* Sidebar */
.featured-sidebar {
    background: #fff1e9;
    border: 1px solid #FF5B1F;
    border-radius: 20px;
    padding: 20px;
}

.sidebar-title {
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #2b2b2b;
}

.sidebar-title i::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23FF5B1F" stroke="%23FF5B1F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>') no-repeat center center;
    background-size: contain;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    background: #fff;
    border: 1px solid #FF5B1F;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.sidebar-item:hover {
    box-shadow: 0 8px 20px rgba(255, 91, 31, 0.1);
    transform: translateY(-2px);
}

.sidebar-item i::before {
    content: '';
    background: #fff1e9;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-image: url('../images/logo-chi-tiet-goi-noi-bat.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.item-name {
    font-weight: 800;
    font-size: 14px;
    color: #111;
}

.item-price {
    font-weight: 900;
    font-size: 16px;
    color: var(--orange);
}

.item-price span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

/* News Section */
.news-section {
    margin-top: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: #fff;
    border: 1px solid #FF5B1F;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #FF5B1F;
}

.card-thumb {
    height: 200px;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.news-card:hover .card-thumb img {
    transform: scale(1.1);
}

.card-content {
    padding: 15px 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content .date {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-content .date::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat center center;
    background-size: contain;
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.4;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-readmore {
    margin-top: auto;
    color: var(--orange);
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    width: 100%;
}

.btn-readmore:hover {
    gap: 12px;
}

.btn-readmore i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--orange);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: 0.3s;
}

.btn-readmore i::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-image: url('../images/icon/ico-arrow.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.btn-readmore i::before {
    display: none;
}

/* Load More */
.load-more {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.btn-load {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(255, 91, 31, 0.2);
}

.btn-load:hover {
    background: #e64a10;
    transform: scale(1.05);
}

.btn-load i::after {
    content: '';
    display: inline-block;
    width: 22px;
    height: 14px;
    background-image: url('../images/icon/ico-arrow.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .featured-main {
        flex-direction: column;
    }

    .featured-banner {
        min-height: 250px;
    }

    .banner-content h2 {
        font-size: 24px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .news-page {
        padding: 20px 0;
    }

    /* .featured-main {
        padding: 15px;
    } */

    .banner-overlay {
        padding: 20px;
    }

    .featured-info h3 {
        font-size: 20px;
    }
}