@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

/* Seiko Category Pages Styles */
.seiko-category-page-container {
    background: #F4F7F9;
    padding: 40px 0;
    font-family: 'Barlow', sans-serif;
}

.seiko-content-wrapper {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.seiko-category-header {
    width: 100%;
    margin-bottom: 24px;
}

.seiko-h1-title {
    font-family: 'Barlow';
    font-weight: 600;
    font-size: 32px;
    line-height: 46px;
    color: #1D1D1D;
    margin: 0;
}

.seiko-dual-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}

/* Section Labels */
.seiko-section-label {
    font-family: 'Barlow';
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #BF1923;
    margin: 0 0 16px 0;
}

/* Left Column: Spotlight */
.seiko-spotlight-section {
    width: 744px;
    flex: none;
}

/* Spotlight Image Container - Landscape */
.seiko-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    /* row-gap 16px, column-gap 24px */
    margin-bottom: 16px;
}

.card_article_large .mask-group {
    width: 100%;
    height: 190px;
    border-radius: 8px;
    overflow: hidden;
    background: #BBBBBB;
    flex-shrink: 0;
    display: flex;
    margin-bottom: 16px;
    /* Force child (<a>) to take full space */
}

.card_article_large .article-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 34px;
    letter-spacing: 0;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card_article_large .article-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.card_article_large .article-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.card_article_large .article-summary {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0;
    margin: 0;
    flex: 1;
}

.card_article_large .mask-group a.image-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    /* Remove potential text spacing quirks */
}

.card_article_large {
    width: 360px;
    height: 482px;
    display: flex;
    flex-direction: column;
    opacity: 1;
    border-radius: 16px;
    padding: 16px;
    background-color: #FFFFFF;
    overflow: hidden;
    box-sizing: border-box;
}

.card_article_large .article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Ensure it is not inline */
}

/* ... existing styles for body ... */

/* Right Column: Other News */
/* ... */

.mini-card-thumb {
    flex: 1 1 113px;
    width: 113px;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
    background: #BBBBBB;
    flex-shrink: 0;
    display: flex;
    /* Force child (<a>) to take full space */
}

.mini-card-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.mini-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pagination */
.seiko-pagination-container {
    display: flex;
    justify-content: center;
}

.seiko-pagination-container ul {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.seiko-pagination-container .page-numbers li {
    list-style: none;
    /* Ensure no bullets on li */
}

/* Target only the actual buttons (a and span) not the ul container */
.seiko-pagination-container a.page-numbers,
.seiko-pagination-container span.page-numbers {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8E8E8;
    border-radius: 4px;
    color: #4A4A4A;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    /* Reset line-height for centering */
}

.seiko-pagination-container a.page-numbers.current,
.seiko-pagination-container span.page-numbers.current,
.seiko-pagination-container a.page-numbers.prev,
.seiko-pagination-container a.page-numbers.next {
    background: #BF1923;
    color: #FFFFFF;
}

.seiko-pagination-container a.page-numbers.prev,
.seiko-pagination-container a.page-numbers.next {
    color: #FFFFFF;
    font-weight: 400;
    /* Bold the arrows > and < */
    font-family: 'Barlow', sans-serif;
    /* Ensure consistent font */
    font-size: 16px;
    /* Slightly larger for > and < */
    padding: 0 0 4px 2px;
    /* Slight optical adjustment */
}

/* Icons (Boxicons fallback) */
.icon-clock::before {
    content: '\eb81';
    /* Boxicons clock icon or similar */
    font-family: 'boxicons' !important;
    color: #777777;
    font-size: 18px;
}

.mini-card-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    background-color: #FFFFFF;
    padding: 12px;
    border-radius: 12px;
}

.seiko-mini-articles-list {
    display: grid;
    gap: 12px;
}

.seiko-mini-articles-list .mini-card-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0;
}

.seiko-mini-articles-list .article-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0;
}

.article-meta-row i {
    font-size: 20px;
    /* Increased size for clock icon */
    line-height: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .seiko-content-wrapper {
        padding: 0 20px;
    }

    .seiko-dual-layout {
        flex-direction: column;
        align-items: center;
    }

    .seiko-spotlight-section,
    .seiko-other-news-section {
        width: 100%;
        max-width: 744px;
    }

    .seiko-category-header {
        max-width: 744px;
        margin-left: auto;
        margin-right: auto;
    }
    .seiko-spotlight-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        justify-content: center;
    }

    .card_article_large,
    .card_size_xs {
        width: 100%;
    }

  .mini-card-thumb {
        min-width: 113px; 
        min-height: 112px;
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 760px) {
        .seiko-h1-title {
            font-size: 28px;
            line-height: 40px;
        }

        .seiko-section-label {
            font-size: 18px;
            line-height: 28px;
        }

        .card_article_large .article-title {
            font-size: 20px;
            line-height: 30px;
        }

        .card_article_large .article-meta-row {
            font-size: 14px;
            line-height: 20px;
        }

        .card_article_large .article-summary {
            font-size: 14px;
            line-height: 24px;
        }

        .seiko-mini-articles-list .mini-card-title {
            font-size: 14px;
            line-height: 24px;
        }

        .seiko-mini-articles-list .article-meta-row {
            font-size: 14px;
            line-height: 24px;
        }

        .seiko-pagination-container a.page-numbers,
        .seiko-pagination-container span.page-numbers {
            font-size: 14px;
            width: 24px;
            height: 24px;
        }

        .seiko-pagination-container a.page-numbers.prev,
        .seiko-pagination-container a.page-numbers.next {
            font-size: 14px;
        }
    }

@media (max-width: 375px) {
        .seiko-h1-title {
            font-size: 24px;
            line-height: 34px;
        }

        .seiko-section-label {
            font-size: 16px;
            line-height: 26px;
        }

        .card_article_large .article-title {
            font-size: 18px;
            line-height: 28px;
        }

        .card_article_large .article-meta-row {
            font-size: 12px;
            line-height: 18px;
        }

        .card_article_large .article-summary {
            font-size: 14px;
            line-height: 22px;
        }

        .seiko-mini-articles-list .mini-card-title {
            font-size: 14px;
            line-height: 22px;
        }

        .seiko-mini-articles-list .article-meta-row {
            font-size: 14px;
            line-height: 22px;
        }

        .seiko-pagination-container a.page-numbers,
        .seiko-pagination-container span.page-numbers {
            font-size: 12px;
            width: 20px;
            height: 20px;
        }

        .seiko-pagination-container a.page-numbers.prev,
        .seiko-pagination-container a.page-numbers.next {
            font-size: 12px;
        }
    }