/*
 * Fresh Blog Archive Redesign
 * Clean card grid for custom archive template
 * Target: .fresh-blog-grid, .fresh-blog-card
 */

/* ==========================================================================
   ARCHIVE HEADER
   ========================================================================== */

.archive .page-title,
.category .page-title,
.blog .page-title {
    font-size: 28px;
    font-weight: 800;
    color: #001a33;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 10px;
}

.archive .page-title span,
.category .page-title span {
    color: #E30613;
}

/* ==========================================================================
   CARD GRID
   ========================================================================== */

.fresh-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ==========================================================================
   CARD
   ========================================================================== */

.fresh-blog-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fresh-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Entire card is a link */
.fresh-blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

/* ==========================================================================
   CARD IMAGE
   ========================================================================== */

.fresh-blog-card__image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #f0f2f5;
}

.fresh-blog-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fresh-blog-card:hover .fresh-blog-card__image img {
    transform: scale(1.05);
}

/* Placeholder when no featured image */
.fresh-blog-card__image--placeholder {
    background: linear-gradient(135deg, #e8edf2 0%, #d1d9e6 100%);
}

/* ==========================================================================
   DATE BADGE
   ========================================================================== */

.fresh-blog-card__date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #001a33;
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
    min-width: 38px;
    box-shadow: 0 2px 6px rgba(0, 26, 51, 0.25);
    z-index: 2;
}

.fresh-blog-card__day {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.fresh-blog-card__month {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   CARD BODY
   ========================================================================== */

.fresh-blog-card__body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fresh-blog-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #001a33;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.fresh-blog-card:hover .fresh-blog-card__title {
    color: #E30613;
}

.fresh-blog-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.fresh-blog-card__readmore {
    font-size: 13px;
    font-weight: 700;
    color: #001a33;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    margin-top: auto;
    transition: color 0.2s ease;
}

.fresh-blog-card:hover .fresh-blog-card__readmore {
    color: #E30613;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.archive .nav-pagination,
.category .nav-pagination,
.blog .nav-pagination {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.archive .post-sidebar .widget,
.category .post-sidebar .widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.archive .post-sidebar .wp-block-heading,
.category .post-sidebar .wp-block-heading {
    font-size: 16px;
    font-weight: 700;
    color: #001a33;
    padding-bottom: 10px;
    border-bottom: 2px solid #E30613;
    margin-bottom: 15px;
}

.archive .post-sidebar .wp-block-latest-posts__list li,
.category .post-sidebar .wp-block-latest-posts__list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.archive .post-sidebar .wp-block-latest-posts__list li:last-child,
.category .post-sidebar .wp-block-latest-posts__list li:last-child {
    border-bottom: none;
}

.archive .post-sidebar .wp-block-latest-posts__post-title,
.category .post-sidebar .wp-block-latest-posts__post-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.archive .post-sidebar .wp-block-latest-posts__post-title:hover,
.category .post-sidebar .wp-block-latest-posts__post-title:hover {
    color: #E30613;
}

.archive .post-sidebar .wp-block-search__input,
.category .post-sidebar .wp-block-search__input {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 14px;
}

.archive .post-sidebar .wp-block-search__button,
.category .post-sidebar .wp-block-search__button {
    background: #001a33;
    color: #fff;
    border-radius: 8px;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 849px) {
    .fresh-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 549px) {
    .fresh-blog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .fresh-blog-card__body {
        padding: 16px;
    }

    .fresh-blog-card__title {
        font-size: 15px;
    }

    .archive .page-title,
    .category .page-title {
        font-size: 22px;
        letter-spacing: 1px;
    }
}