/* News Archive */
.news-archive {
    padding: 40px 0;
}

.archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
}

.archive-description {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.news-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-card__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7));
    z-index: 1;
}

.news-card__category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.category-tag {
    display: inline-block;
    background: #4299e1;
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 5px;
    font-weight: 500;
}

.news-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #718096;
}

.news-card__reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card__title a {
    color: #2d3748;
    text-decoration: none;
}

.news-card__title a:hover {
    color: #4299e1;
}

.news-card__excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.news-card__read-more:hover {
    gap: 12px;
}

.news-card__stats {
    display: flex;
    gap: 15px;
    color: #a0aec0;
    font-size: 0.85rem;
}

.news-card__comments,
.news-card__views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Pagination */
.news-pagination {
    text-align: center;
    margin-top: 40px;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-pagination .page-numbers.current {
    background: #4299e1;
    color: white;
}

.news-pagination .page-numbers:hover:not(.current) {
    background: #edf2f7;
    color: #4299e1;
}

.news-pagination .prev,
.news-pagination .next {
    width: auto;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* No News */
.no-news {
    text-align: center;
    padding: 60px 20px;
}

.no-news svg {
    margin-bottom: 20px;
    color: #cbd5e0;
}

.no-news h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 10px;
}

.no-news p {
    color: #a0aec0;
}

/* Single News */
.single-news {
    padding: 40px 0;
}

.single-news__header {
    position: relative;
    margin-bottom: 40px;
}

.single-news__hero-image {
    height: 400px;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.single-news__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-news__image-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.single-news__meta-wrapper {
    position: relative;
    z-index: 2;
    margin-top: -80px;
}

.single-news__meta {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.single-news__categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-news__category {
    background: #edf2f7;
    color: #4a5568;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.single-news__category:hover {
    background: #4299e1;
    color: white;
}

.single-news__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #2d3748;
}

.single-news__meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.single-news__author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.single-news__author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.single-news__author-name {
    font-weight: 600;
    color: #2d3748;
}

.single-news__date {
    color: #718096;
    font-size: 0.9rem;
}

.single-news__stats {
    display: flex;
    gap: 20px;
    color: #718096;
    font-size: 0.9rem;
}

.single-news__reading-time,
.single-news__views {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content Layout */
.single-news__content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 50px;
}

.single-news__main-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
}

.single-news__main-content > * {
    margin-bottom: 1.5em;
}

.single-news__main-content h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.single-news__main-content h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-top: 1.5em;
}

.single-news__main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

.single-news__main-content blockquote {
    border-left: 4px solid #4299e1;
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: #4a5568;
}

.single-news__tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.single-news__tags-label {
    font-weight: 600;
    color: #4a5568;
    margin-right: 10px;
}

/* Sidebar */
.single-news__sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.single-news__sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.single-news__author-box {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
}

.single-news__author-bio {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.single-news__author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.single-news__author-bio h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2d3748;
}

.single-news__author-bio p {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
}

/* Related Posts */
.single-news__related-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.related-post:hover {
    background: #edf2f7;
}

.related-post__image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.related-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post__title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.related-post__title a {
    color: #2d3748;
    text-decoration: none;
}

.related-post__title a:hover {
    color: #4299e1;
}

.related-post__date {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Navigation */
.single-news__navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.single-news__nav-prev,
.single-news__nav-next {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #4a5568;
    flex: 1;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.single-news__nav-prev:hover,
.single-news__nav-next:hover {
    background: #f7fafc;
    color: #4299e1;
}

.single-news__nav-prev span,
.single-news__nav-next span {
    font-size: 0.85rem;
    color: #a0aec0;
    display: block;
    margin-bottom: 5px;
}

.single-news__nav-prev h4,
.single-news__nav-next h4 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.single-news__nav-prev svg {
    flex-shrink: 0;
}

.single-news__nav-next svg {
    flex-shrink: 0;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .single-news__content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .single-news__sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .single-news__title {
        font-size: 1.8rem;
    }
    
    .single-news__hero-image {
        height: 250px;
    }
    
    .single-news__meta-wrapper {
        margin-top: -40px;
    }
    
    .single-news__meta {
        padding: 20px;
    }
    
    .single-news__meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .single-news__navigation {
        flex-direction: column;
    }
}
