/* ===== NEWS PAGE STYLES ===== */

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 4rem 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 1.5rem 4rem;
    border-radius: 5rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.4rem 1.5rem rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.6rem 2rem rgba(255, 107, 53, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header Banner */
.news-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('/assets/web/images/news_background.jpg');
    background-size: cover;
    background-position: center;
    height: 30rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.news-header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0.2rem 0.2rem 0.4rem rgba(0, 0, 0, 0.5);
}

/* Navigation */
.news-nav {
    background: white;
    border-bottom: 0.1rem solid #eee;
    padding: 1rem 0;
}

.news-nav .nav-link {
    color: #333;
    text-decoration: none;
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}

.news-nav .nav-link:hover,
.news-nav .nav-link.active {
    color: #222;
}

.news-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.3rem;
    background: #ff6b35;
}

/* Container */
.news-container {
    background: white;
    margin: -7rem auto 3rem;
    max-width: 120rem;
    padding: 0 2rem;
    border-radius: 0.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.news-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.news-item:not(:last-child) {
    border-bottom: 0.1rem solid #eee;
}

.news-item:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    transform: translateY(-0.2rem);
}

.news-item img {
    width: 20rem;
    height: 15rem;
    object-fit: cover;
    border-radius: 0.8rem;
    flex-shrink: 0;
}

.news-content h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

.news-content p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date i {
    font-size: 0.8rem;
}

/* Sidebar */
.sidebar {
    background: #f8f9fa;
    border-radius: 1rem;
    height: fit-content;
}

.sidebar h3 {
    color: #fff;
    font-size: 1.6rem;
    border-bottom: 0.2rem solid #ff6b35;
    padding-bottom: 1rem;
    background: url('/assets/web/images/new_random_background.jpg') no-repeat top center / 100% auto;
    padding: 1.5rem 2rem;
}

.related-news {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateX(0.5rem);
}

.related-item img {
    width: 10rem;
    aspect-ratio: 100/78;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.related-content h4 {
    font-size: 1.44rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
}

.related-content p {
    font-size: 1.28rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0 !important;
}

/* Social Follow */
.social-follow {
    margin-top: 3rem;
    text-align: center;
}

.social-follow h4 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Pagination */
.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    color: #333;
    border: 0.1rem solid #ddd;
    padding: 1rem 1.5rem;
    margin: 0 0.2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* Article Content */
.article-content {
    line-height: 1.8;
    color: #333;
}

.article-header {
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.6rem;
    font-weight: bold;
    color: #162b75;
    margin-bottom: 2rem;
    line-height: 1.3;
    padding-bottom: 2rem;
    border-bottom: 0.1rem solid #eee;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.article-meta .date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta .category {
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.8rem;
}

.article-image {
    width: 100%;
    height: 40rem;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.article-description {
    font-size: 1.76rem;
    color: #666;
    font-style: italic;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-left: 0.4rem solid #ff6b35;
    border-radius: 0.5rem;
    font-weight: 600;
}

.article-body {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h2, .article-body h3 {
    color: #333;
    margin: 3rem 0 1.5rem 0;
    font-weight: bold;
}

.article-body h2 {
    font-size: 1.5rem;
}

.article-body h3 {
    font-size: 1.3rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
    margin: 2rem 0;
}

.article-actions {
    margin: 4rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.like-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.like-button:hover {
    background: #166fe5;
    transform: translateY(-0.2rem);
}

.share-button {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-header h1 {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item img {
        width: 100%;
        height: 20rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .article-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
