/* Hero Grid Section */
.news-grid-hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.news-card-hero {
    position: relative;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.news-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.3s;
}

.news-card-hero:hover img {
    transform: scale(1.05);
    opacity: 0.6;
}

.hero-content {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.hero-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-color);
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
    border-radius: 16px;
}

.hero-tag.business {
    background: var(--accent-color);
}

.hero-tag.economy {
    background: #28a745;
}

.hero-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 5px;
    color: white;
    text-decoration: none;
}

.hero-meta {
    font-size: 12px;
    color: #ddd;
    font-style: italic;
}

/* Section Title */
.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #333;
}

/* Horizontal Card */
.news-card-horizontal {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.horizontal-img-box {
    width: 240px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.horizontal-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizontal-content {
    flex-grow: 1;
}

.horizontal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.horizontal-title a {
    color: #333;
    text-decoration: none;
}

.horizontal-title a:hover {
    color: #506cd7;
}

.horizontal-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 20px;
    border-radius: 20px;
    background: #f9f9f9;
    padding: 25px;
    border: 1px solid #eee;
}

.widget-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.subscribe-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.subscribe-btn {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.social-widget-icons {
    display: flex;
    gap: 10px;
}

.social-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: #555 0.3s;
}

.social-circle-btn:hover {
    background: #a3bb4f;
    color: white;
}

.recent-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-list-item img {
    width: 100px;
    border-radius: 6px;
}

.recent-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-title a {
    color: #444;
    text-decoration: none;
}

/* Pagination Styles */
#pageNews {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .hero-content {
        bottom: 0;
    }

    #newsList {
        margin: 0 !important;
    }

    .news-image .trung-img {
        width: 50px !important;
        height: 50px !important;
    }

    .news-image {
        width: auto !important;
    }

    .sidebar-widget {
        margin-top: 16px;
    }
}

/* News Item Animation */
.news-item {
    transition: all 0.5s ease;
    border-radius: 12px;
    padding: 15px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

/* Slider Header Styles */
.page-header-slider {
    position: relative;
    width: 98%;
    height: 300px;
    overflow: hidden;
}

.page-header-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
}

.page-header-slider .swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.header-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.header-overlay .page-header-box {
    display: inline-block;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.header-overlay .page-header-box h2 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 36px;
    line-height: 1.2;
}

.header-overlay .page-header-box .description {
    color: rgba(240, 240, 240, 0.9);
    font-weight: 400;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}