/* ─── LAYOUT ─── */
.page-wrap {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.main-col {
    flex: 1 1 0;
    min-width: 0;
}

.side-col {
    width: 400px;
    flex-shrink: 0;
}

.expert-suggestion {
    margin-bottom: 16px;
}

/* ─── HERO CARD ─── */
.hero-card-wrap {
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.brand-tabs-wrap {
    margin: 14px 0 0px;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.hero-img {
    width: 100px;
    flex-shrink: 0;
}

.hero-img img {
    width: 100%;
    display: block;
}

.hero-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 6px;
}

.hero-text p {
    font-size: 15px;
    color: #555;
    max-width: 500px;
}

/* ─── BRAND TABS ─── */
.brand-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-tabs .tab {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    color: #333;
    transition: all .15s;
    white-space: nowrap;
}

.brand-tabs .tab:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.brand-tabs .tab.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
    font-weight: 600;
}

.pagination {
    margin-top: 15px;
}

/* ─── ARTICLE LIST ─── */
.article-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    overflow: hidden;
}

.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0 12px;
    border-bottom: 1px solid #eee;
}

.article-card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 3px;
}

.article-card-header span {
    font-size: 13px;
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
}

.sort-select svg {
    width: 14px;
    height: 14px;
}

.article-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.article-item:last-of-type {
    border-bottom: none;
}

.article-thumb {
    width: 130px;
    height: 85px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* placeholder images using CSS */
.thumb-samsung {
    background: linear-gradient(135deg, #1c2b4a 0%, #2d4a7a 100%);
}

.thumb-lg {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.thumb-white {
    background: linear-gradient(135deg, #b8c5d6 0%, #d8e4f0 100%);
}

.thumb-display {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.article-body {
    flex: 1;
    min-width: 0;
}

.brand-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.badge-samsung {
    background: #1c4587;
    color: #fff;
}

.badge-lg {
    background: #a50034;
    color: #fff;
}

.badge-panasonic {
    background: #0044a8;
    color: #fff;
}

.article-body h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    display: inline;
    margin-left: 4px;

}

.article-title {
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title .cate {
    padding: 0px 8px;
    border: 1px solid var(--color-secondary);
    border-radius: 4px;
    font-size: 12px;
    transform: translateY(-2px);
    display: inline-block;
}

.article-body .desc {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 7px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: #999;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.article-meta svg {
    width: 13px;
    height: 13px;
}

.view-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 13px;
    border: none;
    background: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    border-top: 1px solid #eee;
    transition: color .15s;
}

.view-more-btn:hover {
    color: var(--color-secondary);
}

/* ─── SIDEBAR ─── */
.side-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.side-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.expert-profile {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.expert-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #5e7cbf, #3a5aa0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.expert-info {
    flex: 1;
}

.expert-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.expert-label {
    font-size: 10.5px;
    background: #fff3e0;
    color: #e67e22;
    border: 1px solid #f5cba7;
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.expert-verified {
    color: var(--color-secondary);
    font-size: 15px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 13px;
}

.stars {
    color: #f39c12;
    letter-spacing: 1px;
}

.rating-score {
    font-weight: 700;
}

.rating-count {
    color: #888;
    font-size: 12px;
}

.expert-stats {
    list-style: none;
}

.expert-stats li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #444;
    margin-bottom: 5px;
}

.stat-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background .15s;
}

.btn-call:hover {
    background: #c0392b;
}

.btn-zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    background: #fff;
    color: #0068ff;
    border: 2px solid #0068ff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 14px;
    transition: background .15s;
}

.btn-zalo:hover {
    background: #e8f0ff;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr td {
    padding: 5px 0;
    vertical-align: top;
    font-size: 12.5px;
}

.info-table tr td:first-child {
    color: #888;
    width: 110px;
    flex-shrink: 0;
}

.info-table tr td:last-child {
    color: #222;
    font-weight: 500;
}

/* FAQ sidebar */
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.faq-see-all {
    font-size: 13px;
    color: var(--color-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
}

.faq-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    cursor: pointer;
    transition: color .15s;
}

.faq-item:first-of-type {
    border-top: none;
}

.faq-q {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* CTA Banner */
.cta-banner {
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.cta-banner-text h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cta-banner-text p {
    font-size: 12px;
    opacity: .85;
}

.btn-ask {
    background: #fff;
    color: #1a4b8c;
    border: none;
    border-radius: 7px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: background .15s;
}

.btn-ask:hover {
    background: #e8f0ff;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
    .page-wrap {
        flex-direction: column;
        display: block;
    }

    .side-col {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .hero-text h1 {
        font-size: 20px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .hero-img {
        width: 90px;
    }

    .article-thumb {
        width: 74px;
        height: 74px;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
    }

    .btn-ask {
        width: 100%;
        justify-content: center;
    }

    .article-body h3 {
        font-size: 14px;
    }

    /* Brand tabs: scroll ngang thay vì xuống hàng */
    .brand-tabs-wrap {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .brand-tabs-wrap::-webkit-scrollbar {
        display: none;
    }

    .brand-tabs {
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .article-title {
        margin-bottom: 4px;
    }
}
