/* ===================================
   NEWS PAGE STYLES - HOTOP
   =================================== */

/* News Section */
.news-section {
    padding: 0 0 80px;
    background-color: #fff;
    min-height: 100vh;
}

.news-section .container {
    padding-left: 150px;
    padding-right: 150px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #FF1493;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* News Layout */
.news-layout {
    display: flex;
    gap: 40px;
}

/* Sidebar Categories */
.news-sidebar {
    width: 450px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.4;
}

.sidebar-divider {
    height: 3px;
    background: #033490;
    margin-bottom: 40px;
}

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

.category-link {
    padding: 0;
    font-size: 20px;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 400;
    line-height: 1.5;
}

.category-link:hover {
    color: #033490;
    padding-left: 0;
}

.category-link.active {
    background: transparent;
    color: #000000;
    font-weight: 700;
}

.category-link.active::before {
    display: none;
}

/* News Content */
.news-content {
    flex: 1;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin-bottom: 40px;
}

/* News Card */
.news-card {
    display: block;
    background: #E8E8E8;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: none;
    animation: fadeInUp 0.5s ease;
    text-decoration: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-color: transparent;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* News Title */
.news-title {
    font-size: 40px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #000;
}

/* News Subtitle */
.news-subtitle {
    font-size: 28px;
    line-height: 1.4;
    color: #000;
    margin: 0 0 70px 0;
    font-weight: 400;
}

/* News Meta */
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    background-image: url('../images/png/icon-34-news-badge.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 100%;
    padding-left: 35px;
    min-height: 32px;
}

.news-tag {
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    min-width: 45px;
    height: 45px;
    padding: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #033490;
    background: #033490;
    color: white;
}

.pagination-btn.active {
    background: #033490;
    border-color: #033490;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn img {
    width: 20px;
    height: 20px;
}

.pagination-dots {
    color: #999;
    font-size: 20px;
    padding: 0 5px;
}

/* Top Nav Active */
.top-menu-link.active {
    color: #FFD700;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-layout {
        gap: 30px;
    }

    .news-sidebar {
        width: 240px;
    }

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

@media (max-width: 992px) {
    .news-layout {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
    }

    .news-categories {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .category-link {
        flex: 0 0 auto;
        padding: 10px 20px;
        border: 2px solid #e0e0e0;
    }

    .category-link.active {
        border-color: transparent;
    }

    .category-link:hover {
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 20px 0 60px;
    }

    .page-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .news-card {
        padding: 25px;
    }

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

    .news-subtitle {
        font-size: 15px;
    }

    .news-tag {
        font-size: 13px;
        padding: 6px 14px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 28px;
    }

    .breadcrumbs {
        font-size: 12px;
    }

    .news-card {
        padding: 20px;
    }

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

    .news-subtitle {
        font-size: 14px;
    }

    .news-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    .category-link {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Hide some pagination buttons on mobile */
    .pagination-btn.page:not(.active):not(:first-child):not(:last-child):not(:nth-last-child(2)) {
        display: none;
    }
}

/* Filter Animation */
.news-card.hiding {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.news-card.showing {
    animation: fadeInUp 0.5s ease forwards;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.empty-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.empty-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.empty-btn:hover {
    background: linear-gradient(135deg, #E6007E 0%, #FF1493 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.3);
}

/* Loading Skeleton */
.news-card.skeleton {
    pointer-events: none;
}

.news-card.skeleton .news-title,
.news-card.skeleton .news-subtitle,
.news-card.skeleton .news-tag {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: transparent;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Search Results */
.search-results-info {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 16px;
    color: #666;
}

.results-count strong {
    color: #FF1493;
    font-weight: 700;
}

.clear-filter {
    padding: 8px 20px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filter:hover {
    border-color: #FF1493;
    color: #FF1493;
}
