/* ==========================================================================
   TIS NEWS DNA V3 - CORE STYLES
   ========================================================================== */
:root {
    --navy: #00008A;
    --orange: #ee5421;
    --light: #f8f9fa;
    --text-dark: #111;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-dna: 30px;
}

.tis-news-v3 { font-family: 'Montserrat', sans-serif; background: #fff; padding-bottom: 100px; color: var(--text-dark); }
.container { max-width: 1200px; margin: auto; padding: 0 25px; }

/* 1. FEATURED NEWS HERO */
.news-hero { margin-top: 40px; position: relative; border-radius: var(--radius-dna); overflow: hidden; height: 500px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { 
    position: absolute; inset: 0; 
    background: linear-gradient(to right, rgba(0,0,138,0.85), rgba(0,0,138,0.2), transparent); 
    display: flex; align-items: center; padding: 60px;
}
.hero-content { max-width: 600px; color: #fff; }
.badge-featured { background: var(--orange); color: #fff; padding: 6px 15px; border-radius: 50px; font-size: 12px; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; display: inline-block; }
.hero-content h2 { font-size: 38px; font-weight: 900; margin: 15px 0; line-height: 1.2; text-transform: uppercase; }
.hero-content p { opacity: 0.9; margin-bottom: 30px; line-height: 1.6; font-size: 16px; }
.btn-read-more-hero { 
    background: #fff; color: var(--navy); padding: 14px 35px; border-radius: 12px; 
    text-decoration: none; font-weight: 900; transition: var(--transition-smooth); display: inline-block;
    text-transform: uppercase; border: none;
}
.btn-read-more-hero:hover { background: var(--orange); color: #fff; transform: translateX(10px); }

/* 2. FILTER TABS */
.news-filters { display: flex; justify-content: space-between; align-items: center; margin: 60px 0 40px; border-bottom: 2px solid #eee; padding-bottom: 15px; }
.filter-list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.filter-list li a { text-decoration: none; color: #666; font-weight: 700; font-size: 14px; transition: 0.3s; padding-bottom: 15px; display: block; position: relative; }
.filter-list li a.active, .filter-list li a:hover { color: var(--navy); }
.filter-list li a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: var(--orange); }

/* 3. NEWS GRID */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.news-card { background: #fff; border-radius: 20px; overflow: hidden; transition: var(--transition-smooth); border: 1px solid #f0f0f0; opacity: 0; transform: translateY(30px); }
.news-card.visible { opacity: 1; transform: translateY(0); }
.news-card:hover { transform: translateY(-15px); box-shadow: 0 25px 50px rgba(0,0,138,0.1); border-color: var(--navy); }

.card-thumb { height: 230px; position: relative; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.news-card:hover .card-thumb img { transform: scale(1.1); }
.card-category { position: absolute; top: 15px; left: 15px; background: var(--navy); color: #fff; padding: 5px 12px; font-size: 10px; font-weight: 800; text-transform: uppercase; border-radius: 4px; z-index: 2; }

.card-body { padding: 25px; }
.card-date { font-size: 11px; color: var(--orange); font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: block; letter-spacing: 1px; }
.card-body h3 { font-size: 19px; font-weight: 900; color: var(--navy); line-height: 1.4; margin-bottom: 15px; min-height: 54px; }
.card-body p { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 20px; }
.read-link { color: var(--navy); text-decoration: none; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.read-link:hover { color: var(--orange); padding-left: 5px; }

/* 4. SUBSCRIPTION BOX */
.sub-section { margin-top: 100px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; }
.sub-box { 
    background: var(--navy); padding: 60px; border-radius: var(--radius-dna); color: #fff;
    position: relative; overflow: hidden;
}
.sub-box::after { content: '\f0e0'; font-family: 'Font Awesome 6 Free'; position: absolute; right: -20px; bottom: -20px; font-size: 180px; opacity: 0.05; font-weight: 900; }
.sub-box h2 { font-size: 32px; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; }
.sub-form { display: flex; gap: 10px; margin-top: 35px; position: relative; z-index: 2; }
.sub-form input { flex: 1; padding: 18px 25px; border-radius: 12px; border: none; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.sub-form button { background: var(--orange); color: #fff; border: none; padding: 0 35px; border-radius: 12px; font-weight: 900; text-transform: uppercase; cursor: pointer; transition: 0.3s; }
.sub-form button:hover { background: #fff; color: var(--navy); }

/* 5. SOCIAL MEDIA MOCKUP */
.social-mockup { background: var(--light); padding: 40px; border-radius: var(--radius-dna); border: 1px solid #eee; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }
.social-item { background: #fff; aspect-ratio: 1; border-radius: 15px; overflow: hidden; border: 1px solid #ddd; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.social-item.info { background: var(--navy); color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }

/* PAGINATION */
.tis-pagination { text-align: center; margin-top: 60px; }
.tis-pagination a, .tis-pagination span {
    display: inline-block; padding: 12px 25px; margin: 0 5px; border-radius: 10px;
    background: #fff; color: var(--navy); text-decoration: none; font-weight: 800;
    border: 2px solid var(--navy); transition: 0.3s;
}
.tis-pagination a:hover, .tis-pagination span.current { background: var(--navy); color: #fff; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .news-grid, .sub-section { grid-template-columns: 1fr; }
    .hero-overlay { padding: 40px; }
    .hero-content h2 { font-size: 28px; }
    .news-filters { flex-direction: column; align-items: flex-start; gap: 20px; }
}
/* Reset riêng cho dấu chấm phân trang */
.tis-pagination .page-numbers.dots {
    border: none !important;
    background: transparent !important;
    color: var(--navy) !important;
    padding: 0 10px !important;
    min-width: auto !important;
    cursor: default;
}

/* Căn chỉnh lại để các nút nằm thẳng hàng */
.tis-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 50px;
}

/* Đảm bảo các nút số có kích thước bằng nhau (hình vuông hoặc tròn) */
.tis-pagination a, .tis-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 !important; /* Reset padding để dùng height/width cho chuẩn */
    border-radius: 10px;
    font-weight: 800;
    transition: 0.3s;
}