﻿.route {
    display: flex;
    padding: 20px 0 10px;
    column-gap: 4px;

    font-size: 16px;
    line-height: 24px;
}

.route-home {
    color: #718096;
}

.see-more img {
    display: inline-block;
    transition: transform 0.2s ease;
}

.filter-header {
    cursor: pointer;
}

.filter-header img {
    transition: transform 0.2s ease;
}

.news-grid {
    grid-template-columns: repeat(1fr, 3);
}

.news-header {
    display: flex;
    justify-content: space-between;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #fff;
}

.header-filter {
    display: flex;
    column-gap: 16px;
    align-items: center;
    margin: 10px 20px;

    font-size: 14px;
    font-weight: 400;
}

.header-filter-text {
    font-size: 14px;
    font-weight: 400;
}

.header-select select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

.news-filter-section {
    font-family: "Inter", sans-serif;
    width: 100%;
}

.news-section-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.news-filter-input-wrapper {
    position: relative;
    width: 100%;
    margin-top: 6px;
}

.news-filter-input-wrapper input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: #fff;
}

.news-filter-input-wrapper input:hover {
    border-color: #b10000;
}

.news-filter-input-wrapper input:focus {
    border-color: #b10000;
    box-shadow: 0 0 0 3px rgba(177, 0, 0, 0.15);
}

.news-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #555;
    pointer-events: none;
    transition: transform .2s ease;
}

.news-filter-input-wrapper.open .news-dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.news-filter-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
    z-index: 99;
}

.news-filter-dropdown li {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.news-filter-dropdown li:hover {
    background: #f2f2f2;
}

.news-filter-dropdown li.selected {
    background: #b10000;
    color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.news-content {
    border: 2px solid #E4E4E4;
    border-top-color: #B60002;
    border-radius: 4px;
}

.news-card,
.news-info {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.news-image {
    border-radius: 4px;
}

.news-title,
.news-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title {
    min-height: 48px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.news-time {
    font-size: 14px;
    line-height: 20px;
}

.news-description {
    min-height: 40px;
    font-size: 14px;
    line-height: 20px;
}

.interact {
    display: flex;
    justify-content: space-between;
}

.interact-like,
.interact-views {
    display: flex;
    align-items: center;
    column-gap: 4px;
    font-size: 14px;
    line-height: 20px;
}

.interact-like img,
.interact-views img {
    width: 18px;
}

input[type=checkbox] {
    opacity: 1;
    position: relative;
}

.custom-checkbox:checked::after {
    left: 5px;
    top: 1px;
}

/* Skeleton Loading Styles */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-line {
    display: inline-block;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-news-card {
    opacity: 1;
}

.skeleton-news-card .news-info {
    padding: 0;
}

.skeleton-filter-list .skeleton-item {
    padding: 14px 20px;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
}

.skeleton-filter-list .skeleton-item:last-child {
    border-bottom: none;
}

.skeleton-see-more {
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

/* Hide skeleton when content is loaded */
.news-grid:not(#news-grid-skeleton) .skeleton-news-card,
.filter-list:not(.skeleton-filter-list) .skeleton-item,
.see-more:not(.skeleton-see-more) {
    display: none;
}

/* Pagination disabled state */
.page-arrow.disabled,
.page-number.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}