/* Category/list page styles for deliddedtech4 theme */

/* ===================== Category Title ===================== */
.resli-cat-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--resli-text-main);
    padding: 16px 0 8px;
    border-bottom: 3px solid var(--resli-primary);
    margin-bottom: 12px;
}

.resli-cat-desc {
    font-size: 14px;
    color: var(--resli-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===================== Category Featured Grid ===================== */
.resli-cat-hero {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    margin-bottom: 24px;
    height: 500px;
}

.resli-cat-hero-main {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
}

.resli-cat-hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.resli-cat-hero-main:hover .resli-cat-hero-main-img {
    transform: scale(1.03);
}

.resli-cat-hero-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    padding: 60px 16px 16px;
}

.resli-cat-hero-main-cat {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;

    color: var(--resli-amber);
    display: block;
    margin-bottom: 6px;
}

.resli-cat-hero-main-cat:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.resli-cat-hero-main-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.resli-cat-hero-main-title a {
    color: #fff;
}

.resli-cat-hero-main-title a:hover {
    color: var(--resli-amber);
    opacity: 1;
    text-decoration: none;
}

.resli-cat-hero-main-date {
    font-size: 12px;
    color: #ccc;
    margin-top: 6px;
}

.resli-cat-hero-small {
    position: relative;
    overflow: hidden;
}

.resli-cat-hero-small-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.resli-cat-hero-small:hover .resli-cat-hero-small-img {
    transform: scale(1.04);
}

.resli-cat-hero-small-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 24px 12px 10px;
}

.resli-cat-hero-small-cat {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;

    color: var(--resli-amber);
    display: block;
    margin-bottom: 4px;
}

.resli-cat-hero-small-cat:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.resli-cat-hero-small-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resli-cat-hero-small-title a {
    color: #fff;
}

.resli-cat-hero-small-title a:hover {
    color: var(--resli-amber);
    opacity: 1;
    text-decoration: none;
}

/* ===================== Article List ===================== */
.resli-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 8px;
}

.resli-list-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--resli-border);
    overflow: hidden;
}

.resli-list-card-img-wrap {
    overflow: hidden;
    height: 250px;
}

.resli-list-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.resli-list-card-img-wrap:hover .resli-list-card-img {
    transform: scale(1.04);
}

.resli-list-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.resli-list-card-cat {
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.8px;
    color: var(--resli-primary);
}

.resli-list-card-cat:hover {
    color: var(--resli-primary-dark);
    opacity: 1;
    text-decoration: none;
}

.resli-list-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--resli-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resli-list-card-title a {
    color: var(--resli-text-main);
}

.resli-list-card-title a:hover {
    color: var(--resli-primary);
    opacity: 1;
    text-decoration: none;
}

.resli-list-card-summary {
    font-size: 14px;
    color: var(--resli-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resli-list-card-date {
    font-size: 12px;
    color: var(--resli-text-muted);
    margin-top: auto;
}

/* ===================== List Section ===================== */
.resli-list-section {
    min-width: 0;
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
    .resli-cat-hero {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .resli-cat-hero-main {
        grid-column: 1 / 3;
        grid-row: 1;
        height: 280px;
    }

    .resli-cat-hero-small {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .resli-cat-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .resli-cat-hero-main {
        grid-column: 1;
        grid-row: 1;
        height: 260px;
    }

    .resli-cat-hero-small {
        grid-column: 1;
        height: 300px;
    }

    .resli-list-grid {
        grid-template-columns: 1fr;
    }

    .resli-list-card-img-wrap {
        height: 200px;
    }
}
