/* --- HOME PAGE STYLES (TINHTE STYLE) --- */

/* Main Content + Sidebar Grid */
.home-page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Hero Grid (1 Big Left, 2 Stacked Right) */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

/* --- HOT NEWS (Stories Style) --- */
.hot-news-section {
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
}

/* Navigation Buttons Style */
.hot-news-nav {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ddd;
    opacity: 0;
}

.hot-news-section:hover .hot-news-nav {
    opacity: 1;
}

.hot-news-nav:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.prev-btn {
    left: 2px;
}

.next-btn {
    right: 2px;
}

@media (max-width: 768px) {
    .hot-news-nav {
        display: none;
    }
}

.hot-news-header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-news-header h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    color: #111;
}

.hot-news-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hot-news-list::-webkit-scrollbar {
    display: none;
}

.hot-news-item {
    flex: 0 0 165px;
    height: 280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: block;
}

.hot-news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.hot-news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 2;
}

.hot-news-title {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2196F3;
    opacity: 0.9;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    z-index: 2;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* More Card */
.hot-news-item.hot-news-more {
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 3px solid transparent;
}

.hot-news-item.hot-news-more:hover {
    background: #333;
}

.hot-news-item.hot-news-more i {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hot-news-item {
        flex: 0 0 135px;
        height: 230px;
    }

    .hot-news-title {
        font-size: 11px;
    }
}

.hero-main {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.hero-main .img-wrapper,
.hero-item .img-wrapper {
    width: 100%;
    height: 100%;
}

.hero-main img,
.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* Scale effect removed */

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: #fff;
}

.hero-content h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.3;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-item {
    position: relative;
    flex-grow: 1;
    height: calc(200px - 6px);
    /* Half of 400 minus gap */
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.hero-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 15px;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: #fff;
}

.hero-item-content h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 5px 0;
    line-height: 1.4;
}

/* Metadata Styling */
.category-badge {
    background: var(--primary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
}

.hero-item .category-badge {
    font-size: 8px;
    padding: 1px 6px;
}

.news-category {
    color: var(--primary);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

time {
    font-size: 11px;
    opacity: 0.8;
}

/* Latest News Stream Refinement */
.news-row {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 16px;
}

/* Hover state removed */

.news-row-flex {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.news-thumb {
    width: 220px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    display: flex;
    flex-direction: column;
}

.news-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.4;
}

.news-info .summary {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-stats {
    margin-top: auto;
    display: flex;
    gap: 15px;
    color: #8e8e93;
    font-size: 11px;
    font-weight: 600;
}

.post-stats span i {
    margin-right: 4px;
    opacity: 0.7;
}

.hero-item-content .meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}


.widget-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 25px;
    border-bottom: 3px solid #f1f5f9;
    padding-bottom: 10px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* Sidebar Widget Variations */

.sidebar-widget.bg-primary {
    background: var(--primary);
    color: #fff;
}

.sidebar-widget.bg-primary .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-widget.bg-primary .widget-title::after {
    background: #fff;
}

.sidebar-widget.bg-primary p {
    color: rgba(255, 255, 255, 0.85);
}

.sidebar-widget.bg-primary .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    height: 45px;
    font-size: 13px;
}

.sidebar-widget.bg-primary .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-widget.bg-primary .btn-light {
    height: 45px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    border-radius: 4px;
}

/* Trending List (Chuyên mục hot) */
.trending-list {
    display: flex;
    flex-direction: column;
}

.trending-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.trending-item:last-child {
    margin-bottom: 0;
}

.trending-num {
    font-size: 32px;
    font-weight: 800;
    color: #cbd5e1;
    line-height: 1;
    font-style: italic;
    min-width: 40px;
    flex-shrink: 0;
}

.trending-info a {
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-info a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .home-page-layout {
        grid-template-columns: 1fr;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-item {
        height: 200px;
    }

    .news-row-flex {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        height: 200px;
    }
}

/* --- CATEGORY BLOCKS --- */
.category-block-section {
    margin-bottom: 50px;
}

.cat-block-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.cat-block-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #111;
}

.view-all {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
}

.cat-card h5 {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 0;
}


/* --- SIDEBAR TABS --- */
.nav-tabs-wrapper {
    background: #f8fafc;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    background: #fff;
}

.tab-panel.d-none {
    display: none;
}

.trending-thumb {
    display: none;
}

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