/* News Page Specific Styles */

.news-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, rgba(91, 54, 162, 0.05), rgba(153, 41, 234, 0.05));
}

.news-header h1 {
    font-size: 56px;
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
}

.featured-news {
    padding: 40px 0 80px;
}

.featured-article {
    background: var(--bg-light);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-content {
    padding: 40px 40px 40px 0;
}

.news-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.featured-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 16px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-light);
}

.news-grid-section {
    padding: 40px 0 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

/* Article Detail Page Styles */

/* News Header for Detail Page */
.news-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, rgba(91, 54, 162, 0.05), rgba(153, 41, 234, 0.05));
}

.news-header h1 {
    font-size: 56px;
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
}

/* Banner Section - Legacy Support */
.news-banner {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to right, #ffe8ee, #d8eaff);
    overflow: hidden;
}

.banner-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
}

.banner-decoration::before,
.banner-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
}

.banner-decoration::before {
    width: 212px;
    height: 212px;
    background: #81b9ff;
    top: 137px;
    right: 50px;
    transform: rotate(45deg);
}

.banner-decoration::after {
    width: 208px;
    height: 208px;
    background: #fdb0d2;
    top: 0;
    left: 124px;
    transform: rotate(20.749deg);
}

.banner-title {
    position: relative;
    text-align: center;
    font-size: 52px;
    font-weight: 600;
    color: #2e2e2e;
    margin-top: 71px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 30px 0 40px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
    font-weight: 400;
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Article Layout */
.article-section {
    padding: 0 0 80px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 363px;
    gap: 60px;
    align-items: start;
}

/* Main Article */
.article-main {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.article-main:hover {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #2e2e2e;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

.article-date::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.article-featured-image {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-main:hover .article-featured-image img {
    transform: scale(1.02);
}

.article-content {
    font-size: 17px;
    color: #444;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 24px;
    font-weight: 400;
    text-align: justify;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 4px solid var(--primary-color);
}

/* Sidebar */
.article-sidebar {
    background: white;
    border-radius: 24px;
    padding: 40px 24px;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 28px;
    font-weight: 700;
    color: #2e2e2e;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-article {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
}

.sidebar-article:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(88, 8, 251, 0.15);
}

.sidebar-article-link {
    text-decoration: none;
    display: block;
}

.sidebar-article-image {
    position: relative;
    width: 100%;
    height: 210px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.sidebar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sidebar-article:hover .sidebar-article-image img {
    transform: scale(1.08);
}

.article-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #9929ea 0%, #5808fb 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(88, 8, 251, 0.3);
}

.sidebar-article-info {
    padding: 20px 16px;
    background: white;
}

.sidebar-article-title {
    font-size: 18px;
    font-weight: 600;
    color: #2e2e2e;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.sidebar-article:hover .sidebar-article-title {
    color: var(--primary-color);
}

.sidebar-article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.sidebar-article-date::before {
    content: '';
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
}

.news-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 24px;
}

.news-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.pagination-number:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.pagination-number.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 40px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-header {
        padding: 60px 0 40px;
    }
    
    .news-header h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .news-header p {
        font-size: 15px;
        padding: 0 16px;
    }
    
    .news-filters {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 16px;
    }
    
    .filter-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .featured-article {
        flex-direction: column;
        gap: 20px;
    }
    
    .featured-image {
        width: 100%;
        height: 200px;
    }
    
    .featured-content {
        padding: 20px 16px;
    }
    
    .featured-content h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .featured-content p {
        font-size: 14px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .news-card {
        padding: 16px;
    }
    
    .news-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .news-card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .news-header h1 {
        font-size: 24px;
    }
    
    .featured-content h2 {
        font-size: 20px;
    }
    
    .news-card h3 {
        font-size: 16px;
    }
}

/* Article Detail Mobile Responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .article-sidebar {
        position: static;
        max-width: 100%;
    }
    
    .news-header h1 {
        font-size: 42px;
    }
    
    .breadcrumb {
        font-size: 15px;
        padding: 24px 0 32px;
    }
    
    .article-main {
        padding: 40px 32px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .sidebar-articles {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .news-header {
        padding: 40px 0 30px;
    }
    
    .news-header h1 {
        font-size: 32px;
    }
    
    .breadcrumb {
        font-size: 14px;
        padding: 20px 0 24px;
    }
    
    .breadcrumb .separator {
        margin: 0 8px;
    }
    
    .article-main {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .article-header {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }
    
    .article-title {
        font-size: 26px;
        margin-bottom: 16px;
    }
    
    .article-date {
        font-size: 14px;
    }
    
    .article-featured-image {
        height: 300px;
        border-radius: 12px;
        margin-bottom: 32px;
    }
    
    .article-content {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .article-content p {
        margin-bottom: 20px;
    }
    
    .article-content h2 {
        font-size: 20px;
        margin-top: 32px;
        margin-bottom: 16px;
        padding-left: 12px;
        border-left-width: 3px;
    }
    
    .article-sidebar {
        padding: 32px 20px;
        border-radius: 20px;
    }
    
    .sidebar-title {
        font-size: 24px;
        margin-bottom: 24px;
        padding-bottom: 12px;
    }
    
    .sidebar-articles {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .sidebar-article-image {
        height: 190px;
        border-radius: 12px 12px 0 0;
    }
    
    .sidebar-article-title {
        font-size: 17px;
    }
    
    .sidebar-article-date {
        font-size: 13px;
    }
    
    .sidebar-article-info {
        padding: 16px 14px;
    }
}

@media (max-width: 576px) {
    .news-header h1 {
        font-size: 28px;
    }
    
    .breadcrumb {
        font-size: 13px;
        padding: 16px 0 20px;
        line-height: 1.6;
    }
    
    .breadcrumb .separator {
        margin: 0 6px;
    }
    
    .article-main {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .article-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .article-title {
        font-size: 22px;
        margin-bottom: 14px;
    }
    
    .article-date {
        font-size: 13px;
    }
    
    .article-featured-image {
        height: 240px;
        border-radius: 10px;
        margin-bottom: 28px;
    }
    
    .article-content {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .article-content p {
        margin-bottom: 18px;
    }
    
    .article-content h2 {
        font-size: 18px;
        margin-top: 28px;
        margin-bottom: 14px;
        padding-left: 10px;
    }
    
    .article-sidebar {
        padding: 28px 18px;
        border-radius: 16px;
    }
    
    .sidebar-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .sidebar-article-image {
        height: 170px;
    }
    
    .sidebar-article-title {
        font-size: 16px;
        -webkit-line-clamp: 2;
    }
    
    .sidebar-article-info {
        padding: 14px 12px;
    }
    
    .article-tag {
        font-size: 12px;
        padding: 5px 12px;
        top: 10px;
        left: 10px;
    }
}
