/* ===================================
   News Page - Modern Professional Styles
   =================================== */

:root {
    --primary-color: #f57c00;
    --primary-dark: #e65100;
    --primary-light: #ffb74d;
    --secondary-color: #2E1065;
    --secondary-dark: #1a0b3d;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --background-light: #f7fafc;
    --background-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-white);
}

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

/* ===================================
   News Hero Section
   =================================== */

.news-hero-section {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    display: flex;
    align-items: center;
    padding: 7rem 0 5rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(46, 16, 101, 0.95) 0%, 
        rgba(26, 11, 61, 0.90) 50%,
        rgba(46, 16, 101, 0.85) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.news-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.news-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.news-breadcrumb .current {
    color: var(--primary-light);
    font-weight: 500;
}

.news-hero-content {
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.news-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.news-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
}

.stat-item svg {
    color: var(--primary-light);
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   News Listing Section
   =================================== */

.news-listing-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* News Article Card */
.news-article-card {
    background: white;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.news-article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--primary-light);
}

.article-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.news-article-card:hover .image-overlay {
    opacity: 1;
}

.article-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.article-date,
.article-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.article-meta svg {
    flex-shrink: 0;
}

.article-title {
    margin-bottom: 0.875rem;
}

.article-title a {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

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

.article-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.article-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-read-article {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.btn-read-article:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.btn-read-article svg {
    transition: var(--transition-base);
}

.btn-read-article:hover svg {
    transform: translateX(3px);
}

/* ===================================
   Pagination
   =================================== */

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.prev svg,
.pagination-btn.next svg {
    transition: var(--transition-fast);
}

.pagination-btn.prev:hover svg {
    transform: translateX(-3px);
}

.pagination-btn.next:hover svg {
    transform: translateX(3px);
}

.pagination-numbers {
    display: flex;
    gap: 0.375rem;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.pagination-number:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    pointer-events: none;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-hero-section {
        min-height: 400px;
        padding: 5rem 0 4rem;
    }
    
    .news-hero-title {
        font-size: 2.5rem;
    }
    
    .news-hero-subtitle {
        font-size: 1rem;
    }
    
    .news-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 0.875rem 1.25rem;
    }
    
    .news-listing-section {
        padding: 3rem 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .news-pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .pagination-btn {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .news-hero-section {
        min-height: 350px;
        padding: 4rem 0 3rem;
    }
    
    .news-hero-title {
        font-size: 2rem;
    }
    
    .news-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .article-title a {
        font-size: 1.125rem;
    }
    
    .article-image {
        height: 180px;
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
    }
    
    .pagination-number,
    .pagination-ellipsis {
        min-width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

.featured-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: var(--small-size);
    color: var(--muted-color);
}

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

.featured-meta-item i {
    color: var(--cce-orange);
}

.featured-excerpt {
    font-size: var(--large-size);
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.read-more-btn {
    background: linear-gradient(135deg, var(--cce-orange) 0%, var(--cce-orange-dark) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(245, 124, 0, 0.3);
    text-decoration: none;
    color: white;
}

.featured-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

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

/* News Categories */
.news-categories {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tag {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--cce-orange);
    border-radius: 2rem;
    color: var(--cce-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: var(--small-size);
}

.category-tag:hover,
.category-tag.active {
    background: var(--cce-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(245, 124, 0, 0.3);
    text-decoration: none;
}

/* News Grid */
.news-section {
    padding: 4rem 0;
    background: white;
}

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

.news-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.news-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 124, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 2rem 4rem rgba(245, 124, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--cce-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--small-size);
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--muted-color);
    font-size: var(--small-size);
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: var(--h4-size);
    margin-bottom: 1rem;
    color: var(--heading-color);
    line-height: 1.4;
}

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

.news-card h3 a:hover {
    color: var(--cce-orange);
}

.news-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: var(--small-size);
    text-align: justify;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-color);
    font-size: var(--small-size);
}

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

.sidebar-widget {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.widget-title {
    font-size: var(--h4-size);
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 0.25rem;
    background: var(--cce-orange);
    border-radius: 2px;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.recent-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-content h4 {
    font-size: var(--small-size);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-content h4 a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-content h4 a:hover {
    color: var(--cce-orange);
}

.recent-date {
    font-size: 0.75rem;
    color: var(--muted-color);
}

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

.tag-item {
    background: white;
    color: var(--cce-orange);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    font-size: var(--small-size);
    font-weight: 500;
    border: 1px solid var(--cce-orange);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--cce-orange);
    color: white;
    text-decoration: none;
}

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

.pagination-btn {
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--cce-orange);
    color: var(--cce-orange);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--cce-orange);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-main {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        gap: 0.5rem;
    }
    
    .category-tag {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .featured-article,
    .news-section {
        padding: 3rem 0;
    }
}