/* Category News Template Styles */

/* Hero Section */
.category-news-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-image: url('../bg_breadcrumbs.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 0;
    margin-bottom: 0;
}

.category-news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.category-news-hero__inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 12%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.category-news-hero__title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.2;
}

.category-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #ffffff;
}

.category-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.category-breadcrumbs a:hover {
    opacity: 1;
}

.breadcrumb__sep {
    opacity: 0.7;
}

.breadcrumb__current {
    opacity: 1;
    font-weight: 600;
}

@media (max-width: 768px) {
    .category-news-hero__title {
        font-size: 36px;
    }
    .category-news-hero {
        padding: 60px 0;
    }
    .category-news-hero__inner {
        padding: 0 5%;
    }
}

@media (max-width: 480px) {
    .category-news-hero__title {
        font-size: 28px;
    }
    .category-news-hero {
        padding: 40px 0;
    }
}

/* Main Content Layout */
.category-news-content {
    padding: 60px 0;
    background: #ffffff;
    width: 100%;
}

.category-news-content__inner {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: start;
}

@media (min-width: 992px) {
    .category-news-content__inner {
        padding-left: 2%;
        padding-right: 2%;
    }
}

@media (max-width: 991px) and (min-width: 576px) {
    .category-news-content__inner {
        padding-left: 1.25%;
        padding-right: 1.25%;
    }
}

@media (max-width: 991px) {
    .category-news-content__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 575px) {
    .category-news-content__inner {
        padding-left: 0.75%;
        padding-right: 0.75%;
    }
    .category-news-content {
        padding: 40px 0;
    }
}

.category-news-content__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* News List */
.category-news-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.category-news-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.category-news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.category-news-item__image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
}

.category-news-item__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.category-news-item__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-news-item:hover .category-news-item__image img {
    transform: scale(1.05);
}

.category-news-item__date-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #f59e0b;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.category-news-item__date-overlay i {
    font-size: 12px;
}

.category-news-item__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.category-news-item__title {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0b1324;
    margin: 0;
    line-height: 1.3;
}

.category-news-item__title a {
    color: #0b1324;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-news-item__title a:hover {
    color: #43b02a;
}

.category-news-item__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    color: #6b7280;
}

.category-news-item__category {
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-news-item__category i {
    font-size: 12px;
    color: #9ca3af;
}

.category-news-item__category a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-news-item__category a:hover {
    color: #43b02a;
}

.category-news-item__author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-news-item__author i {
    font-size: 12px;
    color: #9ca3af;
}

.category-news-item__author a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-news-item__author a:hover {
    color: #43b02a;
}

.category-news-item__excerpt {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2d3436;
    margin: 0;
}

.category-news-item__link {
    display: inline-block;
    padding: 12px 24px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: #f59e0b;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.category-news-item__link:hover {
    background: #d97706;
}

@media (max-width: 767px) {
    .category-news-item__content {
        padding: 20px;
    }
    
    .category-news-item__title {
        font-size: 20px;
    }
    
    .category-news-item__excerpt {
        font-size: 14px;
    }
    
    .category-news-item__meta {
        font-size: 13px;
        gap: 16px;
    }
}

/* Pagination */
.category-news-pagination {
    margin-top: 40px;
}

.category-news-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.category-news-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.category-news-pagination .page-numbers a,
.category-news-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 12px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.category-news-pagination .page-numbers a:hover {
    background: #43b02a;
    border-color: #43b02a;
    color: #ffffff;
}

.category-news-pagination .page-numbers .current {
    background: #43b02a;
    border-color: #43b02a;
    color: #ffffff;
}

/* Empty State */
.category-news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 16px;
}

/* 404 Page Styles */
.category-news-404 {
    margin-bottom: 48px;
}

.category-news-404__message {
    text-align: center;
    padding: 48px 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.category-news-404__title {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 16px;
}

.category-news-404__text {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-news-404__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-news-404__button {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: #43b02a;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-news-404__button:hover {
    background: #3aa326;
    color: #ffffff;
}

.category-news-404__recent {
    margin-top: 48px;
}

.category-news-404__recent-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 32px;
}

@media (max-width: 767px) {
    .category-news-404__title {
        font-size: 24px;
    }
    
    .category-news-404__text {
        font-size: 14px;
    }
    
    .category-news-404__recent-title {
        font-size: 20px;
    }
}


