/*
Theme Name: Theme Tin Tức
Theme URI: https://example.com/theme-tintuc
Author: Developer
Author URI: https://example.com
Description: Theme WordPress tin tức đơn giản, tối ưu cho trang báo điện tử và blog tin tức.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-tintuc
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --secondary-light: #457b9d;
    --accent: #f4a261;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --text: #2b2d42;
    --text-light: #6c757d;
    --bg: #f8f9fa;
    --bg-alt: #edf2f4;
    --white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Container
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Mobile Header (hiển thị trên mobile)
   ======================================== */
.mobile-header {
    display: none;
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.mobile-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
}

.mobile-menu-btn,
.mobile-search-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-menu-btn:hover,
.mobile-search-btn:hover {
    background: transparent;
    opacity: 0.8;
}

.mobile-logo {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-logo:hover {
    color: var(--white);
}

/* Mobile Menu Panel */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu-panel {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
}

.mobile-menu-panel .widget-search,
.mobile-menu-panel .search-form,
.mobile-menu-panel form[role="search"] {
    display: none !important;
}

.mobile-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-weight: 500;
}

.mobile-menu-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

.mobile-menu-nav .sub-menu {
    display: none;
    background: rgba(0,0,0,0.2);
}

.mobile-menu-nav .sub-menu a {
    padding-left: 40px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.mobile-menu-nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-menu-nav .menu-item-has-children.active > a::after {
    transform: rotate(-135deg);
}

/* Mobile Search Panel */
.mobile-search-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 12px 16px;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-search-panel.active {
    transform: translateY(0);
}

.mobile-search-panel form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 4px;
}

.mobile-search-panel input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 15px;
    outline: none;
}

.mobile-search-panel input::placeholder {
    color: rgba(255,255,255,0.5);
}

.mobile-search-panel button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-search-panel button[type="submit"] {
    background: var(--primary);
    color: var(--white);
}

.mobile-search-panel .mobile-search-close {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

#page,
.site {
    margin: 0;
    padding: 0;
}

/* ========================================
   Desktop Header (ẩn trên mobile)
   ======================================== */
.desktop-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Main - Row 1: Logo + Search */
.header-main {
    background: var(--white);
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 40px;
}

/* Site Logo */
.site-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-logo:hover {
    color: var(--primary-dark);
}

/* Header Search Wrapper */
.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 500px;
}

.search-flower {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.flower-top-left {
    top: -8px;
    left: 2px;
    transform: rotate(-15deg);
}

.flowers-top-right {
    top: -18px;
    right: -15px;
}

/* Header Search */
.header-search {
    position: relative;
    flex: 1;
    z-index: 1;
}

.header-search input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--primary);
    background: var(--white);
}

.header-search input::placeholder {
    color: #999;
}

.header-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background: transparent;
    color: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header-search button:hover {
    color: var(--primary-dark);
}

.header-search button svg {
    width: 20px;
    height: 20px;
}

/* Main Nav - Row 2: Navigation Menu */
.main-nav {
    background: var(--primary);
}

.main-nav .container {
    padding: 0 40px;
}

.main-nav ul,
.main-nav .menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0;
}

.main-nav li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.main-nav li a:hover,
.main-nav li.current-menu-item > a {
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.main-nav li a svg {
    width: 16px;
    height: 16px;
}

/* Dropdown */
.main-nav li {
    position: relative;
}

.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 100;
}

.main-nav li:hover > ul {
    display: block;
}

.main-nav ul ul li a {
    color: var(--text);
    padding: 10px 18px;
    font-weight: 500;
}

.main-nav ul ul li a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* ========================================
   Breaking News Ticker
   ======================================== */
.breaking-news {
    display: none;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 40px;
}

.breaking-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
    position: relative;
    flex-shrink: 0;
}

.breaking-label .live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.breaking-label svg {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
    padding: 12px 20px;
    position: relative;
}

.ticker-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.ticker-item {
    flex-shrink: 0;
    width: 100%;
    display: none;
}

.ticker-item.active {
    display: block;
}

.ticker-item .ticker-icon {
    display: none;
}

.ticker-item a {
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.ticker-item a:hover {
    color: var(--accent);
}

.ticker-item .ticker-time {
    display: none;
}

.breaking-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 15px;
    flex-shrink: 0;
}

.breaking-nav button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 4px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.breaking-nav button:hover {
    background: var(--primary);
}

/* ========================================
   Hero Slider
   ======================================== */
.hero-slider {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.slider-wrapper {
    position: relative;
    height: 450px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: var(--white);
    z-index: 2;
}

.slide-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.slide-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.slide-title a {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-title a:hover {
    color: var(--accent);
}

.slide-excerpt {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    opacity: 0.85;
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:hover svg {
    stroke: var(--white);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background: var(--white);
    border-color: var(--primary);
    transform: scale(1);
}

@media (max-width: 768px) {
    .slider-dots .dot {
        border: none;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .slider-dots .dot.active {
        border-radius: 10px;
        transform: none;
    }
}

/* Slider Thumbnails */
.slider-thumbs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg);
}

.thumb {
    display: flex;
    gap: 12px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.thumb:hover,
.thumb.active {
    background: var(--white);
    border-left-color: var(--primary);
}

.thumb-image {
    width: 80px;
    height: 55px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.thumb-content {
    flex: 1;
    min-width: 0;
}

.thumb-content h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.thumb.active .thumb-content h4 {
    color: var(--primary);
}

/* ========================================
   News Tabs
   ======================================== */
.news-tabs {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--secondary);
    color: var(--white);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tab-btn svg {
    opacity: 0.7;
}

.tab-btn.active svg,
.tab-btn:hover svg {
    opacity: 1;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.tab-item:last-child {
    border-bottom: none;
}

.tab-item-image {
    width: 100px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.tab-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tab-item:hover .tab-item-image img {
    transform: scale(1.1);
}

.tab-item-content {
    flex: 1;
    min-width: 0;
}

.tab-item-content h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

.tab-item-content h4 a {
    color: var(--text);
}

.tab-item-content h4 a:hover {
    color: var(--primary);
}

.tab-item-date,
.tab-item-views,
.tab-item-comments {
    font-size: 12px;
    color: var(--text-light);
}

/* ========================================
   Category Sections
   ======================================== */
.category-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.section-header .section-title {
    margin: 0;
    padding: 0;
    border: none;
}

.section-header .section-title a {
    color: var(--dark);
}

.section-header .section-title a:hover {
    color: var(--primary);
}

.view-all {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.view-all:hover {
    color: var(--primary-dark);
}

.view-all svg {
    transition: transform 0.3s ease;
}

.view-all:hover svg {
    transform: translateX(5px);
}

.category-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.category-main-post {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.category-main-post .post-thumbnail {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.category-main-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-main-post:hover .post-thumbnail img {
    transform: scale(1.08);
}

.category-main-post .post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    padding: 20px 20px 10px;
    margin: 0;
}

.category-main-post .post-title a {
    color: var(--dark);
}

.category-main-post .post-title a:hover {
    color: var(--primary);
}

.category-main-post .post-excerpt {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.category-main-post .post-meta {
    padding: 15px 20px 20px;
    font-size: 13px;
    color: var(--text-light);
}

.category-sub-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sub-post {
    display: flex;
    gap: 15px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sub-post:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.sub-post-image {
    width: 100px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.sub-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-post-content {
    flex: 1;
    min-width: 0;
}

.sub-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

.sub-post-content h4 a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-post-content h4 a:hover {
    color: var(--primary);
}

.sub-post-date {
    font-size: 12px;
    color: var(--text-light);
}

/* ========================================
   Content Layout
   ======================================== */
.site-content {
    padding: 30px 0;
    background: var(--bg);
}

.content-area {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.sidebar {
    width: 340px;
    position: sticky;
    top: 100px;
    flex-shrink: 0;
}

/* ========================================
   Article Card
   ======================================== */
.article-card {
    background: var(--white);
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-card .thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.article-card .thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    opacity: 0;
    transition: var(--transition);
}

.article-card:hover .thumbnail::after {
    opacity: 1;
}

.article-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .thumbnail img {
    transform: scale(1.08);
}

.article-card .content {
    padding: 24px;
}

.article-card .category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.article-card .category:hover {
    transform: scale(1.05);
    color: var(--white);
}

.article-card .title {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 700;
}

.article-card .title a {
    color: var(--text);
    display: block;
}

.article-card .title a:hover {
    color: var(--primary);
}

.article-card .excerpt {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.article-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

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

/* ========================================
   Featured Grid
   ======================================== */
.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.featured-main .article-card {
    height: 100%;
}

.featured-main .article-card .title {
    font-size: 26px;
    line-height: 1.4;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.featured-side .article-card .title {
    font-size: 16px;
}

/* ========================================
   Articles List
   ======================================== */
.articles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Section Title */
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 28px;
    background: var(--primary);
    border-radius: 3px;
}

/* ========================================
   Single Post
   ======================================== */
article.single-post {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.single-post .entry-header {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border);
}

.single-post .entry-title {
    font-size: 36px;
    line-height: 1.35;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text);
}

.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--text-light);
    font-size: 14px;
}

.single-post .entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-post .entry-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
}

.single-post .entry-content p {
    margin-bottom: 24px;
}

.single-post .entry-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    font-weight: 700;
}

.single-post .entry-content h3 {
    font-size: 22px;
    margin: 32px 0 16px;
    font-weight: 700;
}

.single-post .entry-content img {
    margin: 28px 0;
    border-radius: var(--radius-sm);
}

.single-post .entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 28px 0;
    background: var(--bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-light);
}

/* Entry Footer */
.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
}

/* Entry Tags */
.entry-tags {
    margin-bottom: 25px;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg);
    color: var(--text);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Entry Share */
.entry-share {
    margin-bottom: 30px;
}

.share-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    color: var(--white);
}

.share-facebook { background: #1877F2; }
.share-twitter { background: #1DA1F2; }
.share-linkedin { background: #0A66C2; }
.share-telegram { background: #0088cc; }
.share-copy { background: var(--secondary); }

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--white) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 30px;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.author-info {
    flex: 1;
}

.author-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 5px;
}

.author-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
}

.author-name a {
    color: var(--text);
}

.author-name a:hover {
    color: var(--primary);
}

.author-bio {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Entry Categories Badge */
.entry-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: var(--transition);
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
    color: var(--white);
}

/* Entry Thumbnail */
.entry-thumbnail {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

/* ========================================
   Sidebar & Widgets
   ======================================== */
.widget {
    background: var(--white);
    padding: 28px;
    margin-bottom: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary);
    color: var(--text);
    position: relative;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li:hover {
    padding-left: 8px;
}

.widget ul li a {
    color: var(--text);
    font-weight: 500;
}

.widget ul li a:hover {
    color: var(--primary);
}

/* Widget Search */
.widget-search {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.widget-search .widget-title {
    display: none;
}

.widget .search-form,
.sidebar .search-form,
.error-search .search-form {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.widget .search-form input[type="search"],
.sidebar .search-form input[type="search"],
.error-search .search-form input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-right: none;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.widget .search-form input[type="search"]:focus,
.sidebar .search-form input[type="search"]:focus,
.error-search .search-form input[type="search"]:focus {
    border-color: var(--primary);
}

.widget .search-form button,
.sidebar .search-form button,
.error-search .search-form button {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.widget .search-form button:hover,
.sidebar .search-form button:hover,
.error-search .search-form button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Widget Title with Icon */
.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Widget Popular Posts */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.popular-post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.popular-post-item:first-child {
    padding-top: 0;
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-number {
    font-family: 'Georgia', serif;
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    color: #ddd;
    line-height: 1;
    flex-shrink: 0;
    min-width: 30px;
    text-align: center;
}

/* Top 1 - Gold */
.popular-post-item:nth-child(1) .post-number {
    font-size: 38px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Top 2 - Silver */
.popular-post-item:nth-child(2) .post-number {
    font-size: 36px;
    background: linear-gradient(135deg, #C0C0C0, #808080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Top 3 - Bronze */
.popular-post-item:nth-child(3) .post-number {
    font-size: 34px;
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Top 4, 5 */
.popular-post-item:nth-child(n+4) .post-number {
    font-size: 28px;
    color: #ccc;
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

.post-info h4 a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.post-info .post-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
}

/* Widget Categories */
.categories-list {
    margin: 0;
    padding: 0;
}

.categories-list li {
    padding: 0;
    border: none;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.categories-list li:last-child a {
    margin-bottom: 0;
}

.categories-list li a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

.categories-list li a .count {
    background: var(--white);
    color: var(--text);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.categories-list li a:hover .count {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

/* Widget Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg);
    color: var(--text);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Widget Social */
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    color: var(--white);
}

.social-btn.facebook { background: #1877F2; }
.social-btn.youtube { background: #FF0000; }
.social-btn.tiktok { background: #000000; }
.social-btn.zalo { background: #0068FF; }

/* Widget Newsletter */
.widget-newsletter {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.widget-newsletter .widget-title {
    color: var(--text);
    border-color: var(--primary);
}

.widget-newsletter .widget-title svg {
    color: var(--primary);
}

.newsletter-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    background: var(--bg);
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background: var(--white);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.pagination .current,
.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
    background: var(--white);
    padding: 16px 24px;
    margin-bottom: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--text-light);
    font-weight: 500;
}

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

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 0;
    margin-top: 60px;
}

.site-footer .container {
    padding: 0 40px;
}

/* Footer Top */
.footer-top {
    display: grid;
    grid-template-columns: 280px 1fr 1fr 1fr;
    gap: 50px;
    padding: 50px 0 40px;
    align-items: start;
}

/* Footer Brand */
.footer-brand {
    padding-right: 0;
    border-right: none;
}

.footer-logo {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-logo:hover {
    color: var(--primary);
}

.footer-tagline {
    display: none;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer Widgets - bỏ grid riêng, dùng chung với footer-top */
.footer-widgets {
    display: contents;
}

.footer-col .widget-title {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li:last-child {
    margin-bottom: 0;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Contact Info */
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-info li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
    width: 14px;
    height: 14px;
}

.contact-info li span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright strong {
    color: var(--primary);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links span {
    color: rgba(255,255,255,0.3);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .content-area {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .articles-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer Responsive */
    .footer-top {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 25px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-widgets {
        display: contents;
    }

    .header-search {
        max-width: 350px;
    }

    .main-nav li a {
        padding: 10px 12px;
        font-size: 13px;
    }

    .site-logo {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    /* Hiển thị mobile header, ẩn desktop header */
    .mobile-header {
        display: block;
    }

    .desktop-header {
        display: none;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        pointer-events: auto;
    }

    /* Mobile Menu Panel */
    .mobile-menu-panel {
        display: block;
    }

    /* Mobile Search Panel */
    .mobile-search-panel {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }

    .articles-list {
        grid-template-columns: 1fr;
    }

    article.single-post {
        padding: 20px 16px;
        border-radius: 0;
        margin: 0;
        width: 100%;
        background: var(--white);
        box-shadow: none;
    }

    article.single-post .entry-title {
        font-size: 24px;
    }

    .breaking-news {
        display: none;
    }

    .section-title {
        font-size: 18px;
        padding: 0 16px;
    }

    .container {
        padding: 0;
    }

    .site-content {
        padding: 0;
        background: var(--white);
    }

    .site-content .container {
        padding: 0;
    }

    .main-content {
        padding: 0 16px;
    }

    .breadcrumb {
        margin: 0 0 16px;
        width: 100%;
        border-radius: 0;
        padding: 12px 16px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .breadcrumb .current {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
        display: inline-block;
        vertical-align: middle;
    }

    /* Footer Mobile */
    .site-footer .container {
        padding: 0 16px;
    }

    .site-footer {
        margin-top: 30px;
    }

    .footer-top {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px 20px;
        padding: 20px 0 15px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
    }

    .footer-logo {
        font-size: 18px;
        margin-bottom: 0;
    }

    .footer-social {
        gap: 8px;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .footer-widgets {
        display: contents;
    }

    .footer-col .widget-title {
        font-size: 11px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .footer-col ul li {
        margin-bottom: 4px;
    }

    .footer-col ul li a {
        font-size: 11px;
    }

    .contact-info li {
        margin-bottom: 6px;
        gap: 6px;
    }

    .contact-info li svg {
        width: 12px;
        height: 12px;
    }

    .contact-info li span {
        font-size: 11px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 0;
    }

    .footer-copyright {
        font-size: 10px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 10px;
    }

    .footer-links span {
        display: none;
    }

    /* Author Box Mobile */
    .author-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    /* Share Buttons Mobile */
    .share-buttons {
        justify-content: center;
    }

    .share-btn span {
        display: none;
    }

    .share-btn {
        padding: 12px;
    }

    /* Tags Mobile */
    .tags-list {
        justify-content: center;
    }

    /* Social Buttons Mobile */
    .social-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .article-card .content {
        padding: 18px;
    }

    .article-card .title {
        font-size: 16px;
    }

    .widget {
        padding: 20px;
    }

    article.single-post {
        padding: 16px 12px;
        margin: 0;
        width: 100%;
        background: var(--white);
        box-shadow: none;
    }

    article.single-post .entry-title {
        font-size: 20px;
    }

    article.single-post .entry-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .container {
        padding: 0;
    }

    .main-content {
        padding: 0 12px;
    }

    .breadcrumb {
        margin: 0 0 12px;
        width: 100%;
        padding: 10px 12px;
        font-size: 11px;
        border-radius: 0;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .breadcrumb .current {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
        display: inline-block;
        vertical-align: middle;
    }

    .breadcrumb a {
        white-space: nowrap;
    }

    .breadcrumb span:not(.current) {
        flex-shrink: 0;
    }

    /* Entry Meta Mobile */
    .single-post .entry-meta {
        flex-direction: column;
        gap: 10px;
    }

    /* Popular Posts Mobile */
    .popular-post-item {
        gap: 12px;
    }

    .post-number {
        font-size: 24px;
        min-width: 24px;
    }

    .popular-post-item:nth-child(1) .post-number {
        font-size: 28px;
    }

    .popular-post-item:nth-child(2) .post-number {
        font-size: 26px;
    }

    .popular-post-item:nth-child(3) .post-number {
        font-size: 24px;
    }

    .popular-post-item:nth-child(n+4) .post-number {
        font-size: 22px;
    }

    /* Social Buttons Mobile */
    .social-buttons {
        grid-template-columns: 1fr;
    }

    .social-btn span {
        display: inline;
    }

    /* Footer Mobile 480px */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 12px 15px;
        padding: 15px 0 12px;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-logo {
        font-size: 16px;
    }

    .footer-col:last-child {
        grid-column: 1 / -1;
    }

    .footer-col .widget-title {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .footer-col ul li a {
        font-size: 10px;
    }

    .contact-info li span {
        font-size: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 10px 0;
    }

    .footer-copyright {
        font-size: 9px;
    }

    .footer-links a {
        font-size: 9px;
    }
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
}

/* ========================================
   Reading Progress Bar
   ======================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.1);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0;
    transition: width 0.1s ease;
}

/* ========================================
   Sticky Navigation
   ======================================== */
.main-navigation.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.has-sticky-nav .site-content {
    padding-top: 100px;
}

.header-top.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* ========================================
   Hero Slider Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-slider {
        grid-template-columns: 1fr;
    }

    .slider-container {
        border-radius: var(--radius-lg);
    }

    .slider-thumbs {
        display: none;
    }

    .slider-wrapper {
        height: 400px;
    }

    .slide-title {
        font-size: 24px;
    }

    .news-tabs .tabs-header {
        flex-wrap: wrap;
    }

    .category-posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        margin-bottom: 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .slider-container {
        border-radius: 0;
    }

    .slider-wrapper {
        height: 280px;
    }

    .slide-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    }

    .slide-content {
        padding: 16px;
    }

    .slide-title {
        font-size: 17px;
        margin-bottom: 6px;
        line-height: 1.35;
    }

    .slide-title a {
        text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }

    .slide-excerpt {
        display: none;
    }

    .slide-category {
        font-size: 9px;
        padding: 4px 10px;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }

    .slide-meta {
        font-size: 11px;
        gap: 10px;
        opacity: 0.9;
    }

    .slide-meta svg {
        width: 12px;
        height: 12px;
    }

    .slider-btn {
        display: none;
    }

    .slider-dots {
        bottom: 10px;
    }

    .slider-dots .dot {
        width: 6px;
        height: 6px;
        background: rgba(255,255,255,0.5);
    }

    .slider-dots .dot.active {
        width: 18px;
        background: var(--white);
    }

    .news-tabs {
        padding: 20px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .tab-btn svg {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        margin-bottom: 16px;
    }

    .slider-wrapper {
        height: 220px;
    }

    .slide-content {
        padding: 12px;
    }

    .slide-title {
        font-size: 15px;
        line-height: 1.35;
        margin-bottom: 5px;
    }

    .slide-category {
        font-size: 8px;
        padding: 3px 8px;
        margin-bottom: 6px;
    }

    .slide-meta {
        font-size: 10px;
        gap: 8px;
    }

    .slide-meta svg {
        width: 10px;
        height: 10px;
    }

    .slider-dots {
        bottom: 8px;
        gap: 5px;
    }

    .slider-dots .dot {
        width: 5px;
        height: 5px;
    }

    .slider-dots .dot.active {
        width: 14px;
    }

    .tab-item {
        padding: 12px 0;
    }

    .tab-item-image {
        width: 80px;
        height: 55px;
    }

    .tab-item-content h4 {
        font-size: 14px;
    }

    .sub-post {
        padding: 12px;
    }

    .sub-post-image {
        width: 80px;
        height: 55px;
    }
}

/* ========================================
   Animations & Effects
   ======================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shimmer Loading Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animate on Scroll Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease-out forwards;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Article Cards Animation */
.article-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.articles-list .article-card:nth-child(1) { animation-delay: 0s; }
.articles-list .article-card:nth-child(2) { animation-delay: 0.1s; }
.articles-list .article-card:nth-child(3) { animation-delay: 0.2s; }
.articles-list .article-card:nth-child(4) { animation-delay: 0.3s; }
.articles-list .article-card:nth-child(5) { animation-delay: 0.4s; }
.articles-list .article-card:nth-child(6) { animation-delay: 0.5s; }

/* Widget Animation */
.widget {
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
}

.sidebar .widget:nth-child(1) { animation-delay: 0.1s; }
.sidebar .widget:nth-child(2) { animation-delay: 0.2s; }
.sidebar .widget:nth-child(3) { animation-delay: 0.3s; }
.sidebar .widget:nth-child(4) { animation-delay: 0.4s; }
.sidebar .widget:nth-child(5) { animation-delay: 0.5s; }

/* Category Section Animation */
.category-section {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.category-section:nth-child(1) { animation-delay: 0s; }
.category-section:nth-child(2) { animation-delay: 0.15s; }
.category-section:nth-child(3) { animation-delay: 0.3s; }
.category-section:nth-child(4) { animation-delay: 0.45s; }

/* Hero Slider Animation */
.hero-slider {
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

/* News Tabs Animation */
.news-tabs {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.2s forwards;
}

/* Image Hover Effects */
.article-card .thumbnail img,
.category-main-post .post-thumbnail img,
.sub-post-image img,
.tab-item-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .thumbnail img,
.category-main-post:hover .post-thumbnail img,
.sub-post:hover .sub-post-image img,
.tab-item:hover .tab-item-image img {
    transform: scale(1.08);
}

/* Card Hover Lift Effect */
.article-card,
.widget,
.category-main-post,
.sub-post {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Button Hover Effects */
.tab-btn,
.view-all,
.social-btn,
.share-btn,
.tag-link,
.tag-item {
    position: relative;
    overflow: hidden;
}

.tab-btn::before,
.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.tab-btn:hover::before,
.social-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Link Underline Animation */
.footer-col ul li a,
.main-nav > ul > li > a {
    position: relative;
}

.footer-col ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-col ul li a:hover::before {
    width: 100%;
}

/* Popular Post Number Pulse */
.popular-post-item:nth-child(1) .post-number {
    animation: float 3s ease-in-out infinite;
}

/* Scroll To Top Button Animation */
.scroll-to-top {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.scroll-to-top.visible {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* Smooth Page Load */
.site-content,
.site-footer {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.1s forwards;
}

/* Search Bar Focus Animation */
.header-search input:focus {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

/* Tab Content Transition */
.tab-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.3s ease-out;
}

/* Slider Slide Transition */
.slide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

/* Thumb Hover Effect */
.thumb {
    transition: transform 0.3s ease, background 0.3s ease;
}

.thumb:hover {
    transform: translateX(5px);
}

/* Mobile Menu Animation */
.mobile-menu-panel {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay {
    transition: opacity 0.35s ease;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
