.ih {
    --ih-maroon: #6F1028;
    --ih-maroon-dark: #3B0718;
    --ih-gold: #F1E6D1;
    --ih-gold-line: #F1E6D1;
}

.ih .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ih [hidden] {
    display: none !important;
}

/* ---------- Top: title left, filters right ---------- */
.ih-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

/* ---------- Pills ---------- */
.ih-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ih-pill {
    appearance: none;
    cursor: pointer;
    padding: 12px 15px;
    border: 1px solid var(--ih-maroon);
    background: transparent;
    color: var(--ih-maroon);
    font-size: 16px;
    transition: background .2s, color .2s;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 50px;
}
.ih-pill:hover, .ih-pill:focus, .ih-pill.is-active {
    background: var(--ih-maroon);
    color: #fff;
}
.ih-pill:focus-visible,
.ih-card__btn:focus-visible,
.ih-more:focus-visible {
    outline: 2px solid var(--ih-gold);
    outline-offset: 3px;
}

/* ---------- Status row ---------- */
.ih-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 20px;
    font-size: 14px;
    text-transform: capitalize;
}
.ih-count {
    color: #000;
}
.ih-clear {
    background: none !important;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--ih-maroon);
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 12px;
    font-weight: 600;
}
.ih-clear:hover{
    color: var(--ih-maroon);
    text-decoration: underline;
}

/* ---------- Grid + cards ---------- */
.ih-card__info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ih-card__info .ih-dot {
    display: inline-block !important;
    line-height: 1;
}
.ih-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    position: relative;
}
.ih.is-loading:not(.is-more) .ih-grid {
    pointer-events: none;
}
.ih.is-loading:not(.is-more) .ih-grid > * {
    visibility: hidden;
}
.ih.is-loading:not(.is-more) .ih-grid::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    border: 4px solid var(--ih-gold-line);
    border-top-color: var(--ih-maroon);
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
    animation: ih-spin .8s linear infinite;
}
@keyframes ih-spin {
    to {
        transform: rotate(360deg);
    }
}

.ih-card {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ih-maroon);
}
.ih-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #3d0816;
}
.ih-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}
.ih-card:hover .ih-card__media img {
    transform: scale(1.04);
}
.ih-card__media--default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.ih-card__media--default img {
    width: auto;
    height: auto;
    max-width: 190px;
    object-fit: contain;
}
.ih-card__ph {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b1a38, #3d0816);
}

.ih-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 22px 26px;
    color: #fff;
}

/* CHANGED: time/read left, category right */
.ih-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    width: 100%;
    font-size: 12px;
    color: var(--ih-gold);
    text-transform: uppercase;
}
.ih-card__meta .ih-dot {
    display: none;
}
.ih-card__time {
    text-align: left;
}
.ih-card__cat {
    text-align: right;
    margin-left: auto;
}

.ih-card__title {
    margin: 15px 0 10px;
}
.ih-card__title a {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}
.ih-card__excerpt {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ih-card__btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    transition: background .2s, color .2s;
    font-size: 16px;
    line-height: normal;
}
.ih-card__btn:hover {
    border: 1px solid #fff;
    background: #fff;
    color: var(--ih-maroon);
}

/* ---------- Empty / load more ---------- */
.ih-empty {
    text-align: center;
    padding: 48px 0;
    font-size: 16px;
    color: #7a6a6e;
}
.ih-foot {
    text-align: center;
    margin-top: 48px;
}
.ih-more {
    cursor: pointer;
    padding: 15px 38px;
    border: 1px solid var(--ih-maroon);
    border-radius: 999px;
    background: transparent;
    color: var(--ih-maroon);
    font: 600 12px "Inter", sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: background .2s, color .2s;
}
.ih-more:hover {
    background: var(--ih-maroon);
    color: #fff;
}
.ih-more:disabled {
    cursor: default;
    background: var(--ih-maroon);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .ih-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .ih-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .ih-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ih-select {
        width: calc((100% - 20px) / 2);
    }
    .ih-search button {
        padding: 0 20px;
    }
    .ih-select select {
        font-size: 14px;
    }
    .ih-pill {
        font-size: 14px;
        width: calc((100% - 10px) / 2);
        white-space: normal;
        padding: 12px 10px;
    }
}