/* ==========================================================================
   DAILY SAVAR - CATEGORY DETAILS PAGE STYLES
   Pure white background, clean left header, big cards & compact small cards
   ========================================================================== */

/* Full-bleed White Background Wrapper */
.category-page-wrapper {
    background-color: #ffffff !important;
    min-height: 100vh;
    width: 100%;
    padding-top: 155px;
    padding-bottom: 70px;
}

/* =========================================
   TOP CATEGORY HEADER (Left-aligned)
   ========================================= */
.category-header-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 14px;
    margin-bottom: 32px;
    border-bottom: 2px solid #E5E7EB;
}

.category-header-left {
    text-align: left;
}

.category-main-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-navy, #0B1E38);
    margin: 0;
    line-height: 1.2;
    text-align: left;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

/* Red accent bar under category title */
.category-main-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 60px;
    height: 3px;
    background-color: var(--color-red, #D32F2F);
}

/* =========================================
   SECTION 1: TWO BIG CARDS
   ========================================= */
.category-big-cards-row {
    margin-bottom: 45px;
}

.category-big-card {
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}

.category-big-card:hover {
    transform: translateY(-2px);
}

.category-big-card-img-link {
    display: block;
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    background-color: #f3f4f6;
    border-radius: 4px;
}

.category-big-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.category-big-card:hover .category-big-card-img {
    transform: scale(1.03);
}

.category-big-card-body {
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-big-card-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px 0;
    color: var(--color-navy, #0B1E38);
}

.category-big-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-big-card-title a:hover {
    color: var(--color-red, #D32F2F);
}

/* Big Meta Line */
.big-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 12px;
}

.big-meta .meta-cat {
    color: var(--color-red, #D32F2F);
    font-weight: 700;
    font-size: 14px;
}

.big-meta .meta-author {
    color: #374151;
    font-weight: 600;
    font-size: 13px;
}

.big-meta .meta-divider {
    color: #D1D5DB;
}

.big-meta .meta-date {
    color: #6B7280;
    font-size: 13px;
}

.category-big-card-excerpt {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   SECTION 2: HORIZONTAL BANNER
   ========================================= */
.category-banner-wrap {
    margin: 15px 0 45px 0;
}

/* =========================================
   SECTION 3: GRID OF SMALL CARDS (3 in a Row)
   Distinctly smaller and compact
   ========================================= */
.category-grid-cards-row {
    margin-bottom: 50px;
}

.category-small-card {
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}

.category-small-card:hover {
    transform: translateY(-2px);
}

.category-small-card-img-link {
    display: block;
    position: relative;
    width: 100%;
    height: 195px; /* Noticeably smaller than big card 360px */
    overflow: hidden;
    background-color: #f3f4f6;
    border-radius: 4px;
}

.category-small-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.category-small-card:hover .category-small-card-img {
    transform: scale(1.04);
}

.category-small-card-body {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-small-card-title {
    font-size: 17px; /* Compact compared to big card 24px */
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px 0;
    color: var(--color-navy, #0B1E38);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-small-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-small-card-title a:hover {
    color: var(--color-red, #D32F2F);
}

/* Small Meta Line (Compact 12px) */
.small-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
}

.small-meta .meta-cat {
    color: var(--color-red, #D32F2F);
    font-weight: 700;
    font-size: 12px;
}

.small-meta .meta-author {
    color: #4B5563;
    font-weight: 600;
    font-size: 12px;
}

.small-meta .meta-divider {
    color: #D1D5DB;
}

.small-meta .meta-date {
    color: #7A8090;
    font-size: 12px;
}

.category-small-card-excerpt {
    font-size: 13px; /* Smaller, lighter font */
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   EMPTY STATE & PAGINATION
   ========================================= */
.category-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px dashed #E5E7EB;
    margin: 30px 0;
}

.category-empty-state h3 {
    font-size: 20px;
    color: var(--color-navy, #0B1E38);
    margin-bottom: 8px;
}

.category-empty-state p {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 18px;
}

.category-empty-state a {
    display: inline-block;
    background: var(--color-red, #D32F2F);
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.category-empty-state a:hover {
    opacity: 0.9;
}

.category-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.category-pagination-wrap .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-pagination-wrap .page-item .page-link {
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
    color: var(--color-navy, #0B1E38);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.category-pagination-wrap .page-item.active .page-link,
.category-pagination-wrap .page-item .page-link:hover {
    background-color: var(--color-red, #D32F2F);
    border-color: var(--color-red, #D32F2F);
    color: #ffffff;
}

.category-pagination-wrap .page-item.disabled .page-link {
    color: #9CA3AF;
    background-color: #F9FAFB;
    border-color: #E5E7EB;
    cursor: not-allowed;
}

/* =========================================
   RESPONSIVE DESIGN RULES
   ========================================= */

/* Medium Devices (Tablets: 768px - 1199px)
   Design will be same as big device: 2 big cards, 3 in a row grid */
@media (min-width: 768px) and (max-width: 1199px) {
    .category-page-wrapper {
        padding-top: 160px;
    }
    .category-big-card-img-link {
        height: 290px;
    }
    .category-big-card-title {
        font-size: 21px;
    }
    .category-small-card-img-link {
        height: 165px;
    }
    .category-small-card-title {
        font-size: 15px;
    }
}

/* Small Devices (Mobile: max-width: 767px)
   Design will be in a column just one after another */
@media (max-width: 767px) {
    .category-page-wrapper {
        padding-top: 95px;
    }
    .category-main-title {
        font-size: 26px;
    }
    .category-big-cards-row {
        margin-bottom: 30px;
    }
    .category-big-card-img-link {
        height: 220px;
    }
    .category-big-card-title {
        font-size: 19px;
    }
    .category-small-card-img-link {
        height: 190px;
    }
    .category-small-card-title {
        font-size: 16px;
    }
    .category-banner-wrap {
        margin: 10px 0 30px 0;
    }
    .category-grid-cards-row {
        margin-bottom: 35px;
    }
}
