/* News Page Styles */

:root {
    --news-primary: #E58A14;
    --news-dark: #171615;
    --news-light: #F6F2EB;
    --news-gray: #777676;
}

.news-page-wrapper {
    padding: 40px 0;
    background-color: var(--news-light);
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.news-sidebar {
    flex: 0 0 280px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.news-sidebar h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--news-dark);
    color: var(--news-dark);
}

.news-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-item:hover {
    background: #fff;
    border-color: var(--news-primary);
    color: var(--news-primary);
}

.category-item.active {
    background: var(--news-primary);
    color: white;
    font-weight: 600;
}

.recent-post-item {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.recent-post-item a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    display: block;
    transition: color 0.3s;
}

.recent-post-item a:hover {
    color: var(--news-primary);
}

.news-main-content {
    flex: 1;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-card-header {
    padding: 20px 20px 10px 20px;
    background: white;
}

.news-card-content {
    padding: 25px;
}

.news-category {
    display: inline-block;
    background: var(--news-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

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

.news-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--news-dark);
    line-height: 1.3;
}

.news-intro {
    color: var(--news-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

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

.continue-reading-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--news-primary);
    color: var(--news-primary);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.continue-reading-btn:hover {
    background: var(--news-primary);
    color: white;
}

.continue-reading-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.pagination .page-item {
    border-radius: 4px;
}

.pagination .page-link {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination .page-item.active .page-link {
    background: var(--news-primary);
    color: white;
    border-color: var(--news-primary);
}

.pagination .page-link:hover {
    background: var(--news-light);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* News Detail Styles */

.news-detail-wrapper {
    padding: 40px 0;
    background-color: var(--news-light);
}

.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.news-detail-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.news-detail-header {
    position: relative;
}

.news-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-body {
    padding: 40px;
}

.news-category-badge {
    display: inline-block;
    background: var(--news-primary);
    color: white;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-detail-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--news-dark);
    line-height: 1.3;
}

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

.news-detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail-description p {
    margin-bottom: 20px;
}

.news-detail-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-detail-description h1,
.news-detail-description h2,
.news-detail-description h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--news-dark);
}

.news-detail-description ul,
.news-detail-description ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.news-detail-description li {
    margin-bottom: 10px;
}

.news-detail-description blockquote {
    border-left: 4px solid var(--news-primary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--news-gray);
}

.news-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--news-primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: gap 0.3s;
}

.back-to-news:hover {
    gap: 12px;
}

.back-to-news svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-container,
    .news-detail-container {
        flex-direction: column;
    }

    .news-sidebar {
        flex: 1;
        position: static;
    }

    .news-title {
        font-size: 20px;
    }

    .news-detail-body {
        padding: 25px;
    }

    .news-detail-title {
        font-size: 24px;
    }

    .news-image-gallery {
        grid-template-columns: 1fr;
    }
}
