/* Sub-Categorical News Page Styles */

.categorical-header {
    margin-bottom: 40px;
    padding-top: 30px;
}

.cat-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a202c;
    border-left: 6px solid #E47200;
    padding-left: 15px;
    margin-bottom: 30px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.dark .cat-title {
    color: #f7fafc;
}

/* 1. FEATURED SECTION */
.featured-news-large {
    display: flex;
    gap: 30px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.featured-news-large:hover .featured-content-box h2 {
    color: #E47200;
}

.featured-news-large:hover .featured-img-box img {
    transform: scale(1.05);
}

body.dark .featured-news-large {
    background: #2d3748;
}

.featured-img-box {
    flex: 1.2;
    height: 400px;
}

.featured-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-content-box {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content-box h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.featured-content-box .excerpt {
    font-size: 18px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

body.dark .featured-content-box .excerpt {
    color: #a0aec0;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-meta img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-meta .name {
    font-weight: 600;
    font-size: 16px;
}

/* 2. NEWS GRID SECTION */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.news-card-v2 {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card-v2:hover .card-content h3 {
    color: #E47200;
}

.news-card-v2:hover .card-img-box img {
    transform: scale(1.05);
}

body.dark .news-card-v2 {
    background: #2d3748;
}

.card-img-box {
    width: 100%;
    height: 200px;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.card-content .date {
    font-size: 14px;
    color: #a0aec0;
    margin-top: auto;
}

/* 3. PAGINATION */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px;
}

.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    list-style: none;
    padding: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #edf2f7;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

body.dark .page-link {
    background: #4a5568;
    color: #edf2f7;
}

.page-link:hover {
    background: #E47200;
    color: white;
}

.page-link.active {
    background: #E47200;
    color: white;
}

.page-link.prev-next {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .featured-news-large {
        flex-direction: column;
        gap: 0;
        border-radius: 10px;
    }

    .featured-img-box {
        height: 200px;
        flex: none;
    }

    .featured-content-box {
        padding: 20px;
    }

    .featured-content-box h2 {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .featured-content-box .excerpt {
        display: none;
    }

    .featured-content-box .author-meta {
        display: none;
    }

    .cat-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .news-cards-grid {
        grid-template-columns: 1fr;
    }

    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}