/* Global Components CSS - Rooted in .lists-article-news / .lists-article ... */

/* Container consistency */
.container {
    max-width: 1001px; /* Matching Figma News Content Area */
    margin: 0 auto;
    padding: 0 15px;
}

/* Card Item Component (Figma 1890-100 / 770-83) */
.jing-card-item {
    background: #ffffff;
    border: none; /* Removed border to match clean Figma look, or use specific bottom border if required */
    border-radius: 0; /* Figma cards look sharp-edged */
    overflow: hidden;
    transition: all 0.3s ease;
    height: 348px; /* Fixed height from Figma */
    width: 299px; /* Fixed width from Figma */
}

.jing-card-item:hover {
    transform: translateY(-5px);
}

.jing-card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.jing-card-image-container {
    position: relative;
    width: 100%;
    height: 195px; /* Fixed height from Figma */
    overflow: hidden;
    background-color: #f8f9fa;
    border-bottom: 3px solid #000000; /* 3px black border from Figma specs */
}

.jing-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jing-card-tag {
    display: none; /* In Figma 770-83, Category is inside content area with specific styling */
}

.jing-card-body {
    padding: 15px 0; /* Padding inside card content based on layout */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Tag/Category Styling from Figma (e7581a) */
.jing-card-category {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 700;
    color: #e7581a;
    line-height: 40px;
    margin-bottom: 5px;
}

.jing-card-title {
    font-family: "Open Sans Condensed", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #00437a; /* 主蓝色 */
    margin: 0;
    line-height: 40px;
    height: 80px; /* Supporting 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jing-card-description {
    display: none; /* Figma 770-83 focuses on Tag + Title */
}

.jing-card-footer {
    display: none; /* Simplified to match Figma News Card spec unless "Read more" requested specifically in these cards */
}

/* Grid layout for lists (Figma Specs) */
.jing-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 299px); /* 3 columns of 299px */
    column-gap: 47px; /* Gap from Figma */
    row-gap: 40px;
    justify-content: center;
    margin-bottom: 50px;
}

/* Pagination Styling Adjustment to match layout visually */
.pagination {
    background-color: #fff;
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    justify-content: center;
}

.pagination a, 
.pagination span {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 24px;
    line-height: 40px;
    color: #00437a;
    border: none;
    padding: 0;
    margin: 0;
    font-weight: 300;
}

.pagination .active,
.pagination .current {
    color: #e7581a;
    font-weight: 700;
    background: none;
}

.pagination .next {
    width: 35px;
    height: 15px;
    background: url('../images/right-arrow.png') no-repeat center; /* å‡è®¾æœ‰æ­¤èµ„æº */
    background-size: contain;
    text-indent: -9999px;
}

@media (max-width: 1280px) {
    .container {
        max-width: 100%;
        padding: 0 50px;
    }
    .jing-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .jing-card-item {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }
    .jing-news-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .jing-card-item {
        width: 100%;
        height: auto;
        border: 1px solid #a6a6a6;
        padding-bottom: 30px;
        display: flex;
        flex-direction: column;
    }
    .jing-card-body {
        height: auto;
        padding: 20px 20px 0; /* ç§»åŠ¨ç«¯ç»™æ–‡å­—å†…å®¹æ·»åŠ è¾¹è· */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
}
