/* News/Blog page - public/news.php */
.news-hero-section {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/slides/default2.png') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.news-hero-content {
    position: relative;
    z-index: 1;
}

.news-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.news-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.news-search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.news-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 60px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.news-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-search-btn:hover {
    background: #e55a2b;
    transform: translateY(-50%) scale(1.05);
}

.news-content-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.featured-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-post-content {
    padding: 2.5rem;
}

.featured-post-badge {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-post-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-title a:hover {
    color: #ff6b35;
}

.featured-post-excerpt {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #888;
    font-size: 0.9rem;
}

.featured-post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-post-meta-item i {
    color: #ff6b35;
}

.featured-post-read-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-post-read-more:hover {
    color: #e55a2b;
    transform: translateX(5px);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    background: #f0f0f0;
    color: #ff6b35;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #ff6b35;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #888;
}

.blog-card-meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-meta-item i {
    color: #ff6b35;
    font-size: 0.9rem;
}

.blog-card-read-more {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-card-read-more:hover {
    color: #e55a2b;
}

/* Sidebar */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.sidebar-widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #ff6b35;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #555;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: #ff6b35;
    transform: translateX(5px);
}

.category-list a i {
    color: #ff6b35;
    font-size: 0.8rem;
}

.category-list a.active {
    color: #ff6b35;
    font-weight: 600;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
}

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

.recent-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-post-content {
    flex-grow: 1;
}

.recent-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: #ff6b35;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #888;
}

/* Filters */
.news-filters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.pagination-btn:hover:not(.disabled) {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.pagination-btn.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.empty-state-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #888;
}

/* Responsive */
@media (max-width: 968px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-main-content {
        order: 1;
    }

    .news-sidebar {
        order: 2;
    }
    
    .news-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-hero-section {
        padding: 100px 0 60px;
    }
    
    .news-hero-title {
        font-size: 2rem;
    }
    
    .news-hero-subtitle {
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post-title {
        font-size: 1.75rem;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .featured-post,
    .blog-card,
    .news-search-btn,
    .category-list a,
    .filter-btn,
    .pagination-btn,
    .featured-post-title a,
    .blog-card-title a,
    .featured-post-read-more,
    .blog-card-read-more,
    .recent-post-title a {
        transition: none !important;
    }

    .featured-post:hover,
    .blog-card:hover {
        transform: none !important;
    }

    .news-search-btn:hover {
        transform: translateY(-50%) !important;
    }

    .category-list a:hover,
    .featured-post-read-more:hover,
    .blog-card-read-more:hover {
        transform: none !important;
    }
}