.government-news-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    overflow: hidden;
    padding: 4rem 0;
}

.news-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.bg-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsPattern" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M0 40L40 0H20L0 20M40 40V20L20 40" fill="rgba(30,41,91,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23newsPattern)"/></svg>');
    opacity: 0.6;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(30, 41, 91, 0.08),
        rgba(59, 130, 246, 0.05)
    );
    animation: floatNews 20s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 10%;
    animation-delay: 7s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation-delay: 14s;
}

/* Section Header Styles (เก็บเดิม) */
.news-section-header {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.government-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3);
}

.badge-icon {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1e293b;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.badge-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-title-container {
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.title-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.underline-gold,
.underline-blue {
    height: 4px;
    border-radius: 2px;
}

.underline-gold {
    width: 60px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.underline-blue {
    width: 40px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.news-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, #d1d5db, transparent);
}

.premium-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3);
}

.premium-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 41, 59, 0.4);
    color: white;
}

.btn-icon,
.btn-arrow {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1e293b;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.premium-cta-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.premium-cta-btn:hover .btn-shine {
    left: 100%;
}

/* Compact News Container */
.compact-news-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    z-index: 3;
}

/* Compact Table Header */
.compact-table-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.compact-table-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    color: white;
}

.compact-table-title i {
    color: #d4af37;
    font-size: 1.2rem;
}

.update-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Compact Table Wrapper */
.compact-table-wrapper {
    position: relative;
}

.compact-news-table {
    margin: 0;
    border: none;
}

.compact-news-table tbody tr {
    border: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.compact-news-table tbody tr::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
    z-index: 1;
}

.compact-news-table tbody tr:hover::before {
    width: 4px;
}

.compact-news-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.02);
}

.compact-news-cell {
    padding: 0;
    border: none;
}

/* Compact News Item */
.compact-news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 2;
}

/* Row Number */
.row-number {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Date Column */
.news-date-column {
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.date-display i {
    color: #3b82f6;
    font-size: 0.8rem;
}

.new-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.3);
}

.urgent-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
    animation: urgentPulse 2s ease-in-out infinite;
}

/* Title Column */
.news-title-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compact-news-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.compact-news-link:hover {
    color: #3b82f6;
    transform: translateX(3px);
}

.link-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    transition: all 0.3s ease;
}

.compact-news-link:hover .link-icon {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.news-text {
    flex: 1;
}

.category-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    align-self: flex-start;
}

.category-tag i {
    font-size: 0.7rem;
}

/* Stats Column */
.news-stats-column {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
    min-width: 100px;
}

.view-count,
.comment-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.view-count i {
    color: #3b82f6;
    font-size: 0.8rem;
}

.comment-count i {
    color: #10b981;
    font-size: 0.8rem;
}

/* Actions Column */
.news-actions-column {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.read-btn,
.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.read-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.share-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.share-btn:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
}

/* Compact Table Footer */
.compact-table-footer {
    background: rgba(248, 250, 252, 0.8);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-count {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.view-all-btn {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: inline-flex;
    align-items: center;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Empty State */
.empty-state-compact {
    color: #64748b;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.empty-state-compact i {
    font-size: 2rem;
    color: rgba(100, 116, 139, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-title {
        font-size: 2.5rem;
    }

    .header-actions {
        flex-direction: column;
        gap: 2rem;
    }

    .compact-news-item {
        gap: 0.75rem;
    }
}

@media (max-width: 992px) {
    .government-news-section {
        padding: 3rem 0;
    }

    .main-title {
        font-size: 2.25rem;
        flex-direction: column;
        gap: 1rem;
    }

    .title-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .news-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stat-divider {
        display: none;
    }

    .compact-news-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .news-date-column {
        min-width: 120px;
    }

    .news-stats-column {
        min-width: 80px;
    }
}

@media (max-width: 768px) {
    .government-news-section {
        padding: 2rem 0;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .compact-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
    }

    .compact-news-item {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .row-number {
        align-self: center;
    }

    .news-date-column {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .news-title-column {
        width: 100%;
    }

    .news-stats-column {
        width: 100%;
        justify-content: space-between;
    }

    .news-actions-column {
        width: 100%;
        justify-content: center;
    }

    .compact-table-footer {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 1.5rem;
    }

    .government-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .badge-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .premium-cta-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .compact-news-container {
        border-radius: 15px;
    }

    .compact-news-item {
        padding: 1rem;
    }

    .compact-news-link {
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes floatNews {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-3deg);
    }
}

@keyframes urgentPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Print Styles */
@media print {
    .government-news-section {
        background: white !important;
        color: black !important;
    }

    .compact-news-container {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    .floating-shapes,
    .news-bg-elements {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .compact-news-container {
        border: 2px solid #000;
    }

    .compact-news-link {
        color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .compact-news-item,
    .compact-news-link,
    .read-btn,
    .share-btn,
    .floating-shapes * {
        transition: none;
        animation: none;
    }
}
