/* เพิ่ม CSS นี้ต่อท้ายไฟล์ style.css เดิม หรือสร้างไฟล์ใหม่ชื่อ additional-style.css */

/* Featured News Section */
.featured-news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 50px 40px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.featured-news-container {
    display: grid;
    gap: 40px;
}

.featured-news-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.featured-news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.featured-poster {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.featured-poster img {
    display: block;
    width: 100%;
    height: auto;
}

.featured-content {
    padding-top: 25px;
}

/* News Item with Poster - ปรับปรุง */
.news-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.news-poster {
    flex: 0 0 auto;
    max-width: 400px;
}

.news-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    flex: 1;
    min-width: 300px;
}

/* รองรับ HTML tags ใน description */
.news-content p,
.featured-content p {
    line-height: 1.9;
}

.news-content p strong,
.featured-content p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.news-content p em,
.featured-content p em {
    color: var(--text-secondary);
    font-style: italic;
}

/* รองรับลิงก์ใน description */
.news-content p a,
.featured-content p a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-content p a:hover,
.featured-content p a:hover {
    color: var(--primary-light);
    text-decoration: none;
    background: rgba(38, 81, 60, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-poster {
        max-width: 100%;
        width: 100%;
    }
    
    .featured-news-card {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .featured-news-section {
        padding: 40px 25px;
    }
    
    .featured-news-card {
        padding: 25px 20px;
    }
    
    .featured-content h3 {
        font-size: 1.5em !important;
    }
    
    .news-poster img {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .featured-news-section {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .featured-news-card {
        padding: 20px 15px;
    }
    
    .featured-content h3 {
        font-size: 1.3em !important;
    }
    
    .featured-content p {
        font-size: 1em !important;
    }
}

/* Image hover effect enhancement */
.news-poster img,
.featured-poster img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-poster img:hover,
.featured-poster img:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Badge styling enhancement */
.badge-new {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #C6A55F 0%, #26513C 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}
