/* 
   News List Page Specific Styles
   Consistent with Homepage Style
*/

.news-page {
    background-color: #fcfbfe;
}

/* Page Hero */
.news-hero {
    position: relative;
    height: 400px;
    background: #0f0524;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/banner.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.25;
    z-index: 1;
}

.news-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 5, 36, 0.8) 0%, rgba(58, 21, 128, 0.6) 100%);
}

.news-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.news-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 2px;
}

.news-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
}

/* List Section Layout */
.news-list-section {
    padding: 80px 0 120px;
}

/* Category Navigation Bar */
.news-category-bar {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.category-nav {
    display: flex;
    gap: 15px;
    list-style: none;
    background: #fff;
    padding: 10px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.05);
}

.category-nav li a {
    display: block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.category-nav li:hover a {
    color: #7c3aed;
}

.category-nav li.active a {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: #fff;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

/* News Grid - Matching Homepage */
.news-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.05);
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.15);
}

.news-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.news-item:hover .news-card-img img {
    transform: scale(1.1);
}

.news-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: #7c3aed;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.news-card-content {
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.news-card-title a:hover {
    color: #7c3aed;
}

.news-card-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    flex: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: #7c3aed;
    font-weight: 700;
    font-size: 15px;
}

.news-link i.icon-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    transition: transform 0.3s;
}

.news-link:hover i.icon-arrow {
    transform: translateX(5px) rotate(45deg);
}

/* Pagination Style */
.pagination {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-item,
.pagination a, 
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border-radius: 12px;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(124, 58, 237, 0.05);
}

.pagination a:hover {
    color: #7c3aed;
    border-color: #7c3aed;
}

.pagination .current,
.pagination .page-num-current {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .news-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid-page {
        grid-template-columns: 1fr;
    }
    .news-hero {
        height: 300px;
    }
    .news-hero h1 {
        font-size: 32px;
    }
}
