.hc-board-home-wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 26px;
    align-items: start;
    margin: 40px auto;
}

.hc-home-left,
.hc-home-right {
    background: transparent;
}

.hc-home-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    min-width: 0;
}

.hc-home-head-right {
    justify-content: space-between;
    align-items: center;
}

.hc-home-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-home-tabs {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.hc-home-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #16406E;
    color: #16406E;
    background: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.015em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    min-width: 0;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-home-tab.on {
    background: #16406E;
    color: #fff;
}

.hc-home-lists {
    border-top: 1px solid #e5e8ef;
    height: 390px;
    display: flex;
    flex-direction: column;
}

.hc-home-list {
    display: none;
    flex: 1 1 auto;
    overflow: hidden;
    display: grid;
    grid-template-rows: repeat(5, minmax(0, 1fr));
}

.hc-home-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 0 0;
    height: calc((390px - 4px) / 5);
    box-sizing: border-box;
    border-bottom: 1px solid #f1f3f6;
    width: 100%;
    min-width: 0;
}

.hc-home-row:last-child {
    border-bottom: 1px solid #f1f3f6;
}

.hc-home-row.empty {
    color: #777;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-home-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 7px 14px;
    background: #16406E;
    color: #fff;
    border-radius: 18px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-home-row-title {
    color: #424242;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.hc-home-row-title:hover {
    color: #16406E;
}

.hc-home-row-date {
    color: #424242;
    font-size: 16px;
    min-width: 88px;
    text-align: right;
    white-space: nowrap;
}

.hc-home-more-links {
    margin-top: 8px;
}

.hc-home-more {
    display: none;
    color: #7c7c7c;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-home-more.on {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hc-home-right {
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.hc-home-gallery-empty {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    color: #777;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-home-more-gallery {
    color: #ACACAC;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-home-gallery {
    position: relative;
    width: 100%;
}

.hc-gallery-track {
    position: relative;
    width: 100%;
}

.hc-gallery-slide {
    display: none;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.hc-gallery-slide.on {
    display: flex;
}

.hc-gallery-img img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
}

.hc-gallery-caption {
    padding: 10px 16px 10px;
    border: 1px solid #ACACAC;
    border-top: none;
    border-radius: 0 0 12px 12px;
    height: 100px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.hc-gallery-text {
    margin: 8px 0 12px;
    color: #000;
    line-height: 1.5;
    font-size: 18px;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #424242;
    font-size: 14px;
    margin-top: auto;
    min-width: 0;
    gap: 8px;
    white-space: nowrap;
}

.hc-gallery-pager {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #121212;
    font-size: 14px;
    white-space: nowrap;
}
.hc-gallery-toggle {
    border: none;
    background: none;
    color: #121212;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}

.hc-gallery-prev,
.hc-gallery-next {
    border: none;
    background: none;
    color: #121212;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}
.hc-gallery-date {
    font-size: 14px;
    color: #424242;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-gallery-empty {
    padding: 18px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1100px) {
    .hc-board-home-wrap {
        grid-template-columns: 1fr;
    }
    .hc-home-right {
        box-shadow: none;
    }
}

@media (max-width: 640px) {
    .hc-home-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .hc-home-head-right {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
    .hc-home-title {
        font-size: 22px;
    }
    .hc-home-tabs {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        row-gap: 8px;
    }
    .hc-home-tab {
        flex: 1 1 calc(33.33% - 8px);
        max-width: none;
        padding: 8px 10px;
        font-size: 14px;
    }
    .hc-home-lists {
        height: auto;
    }
    .hc-home-list {
        grid-template-rows: none;
        grid-auto-rows: minmax(52px, auto);
    }
    .hc-home-row {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "pill title"
            "date date";
        gap: 8px;
        align-items: center;
        height: auto;
        padding: 8px 0;
    }
    .hc-home-pill {
        grid-area: pill;
        justify-self: start;
        font-size: 14px;
        min-width: 72px;
        padding: 6px 12px;
    }
    .hc-home-row-title {
        grid-area: title;
        align-self: center;
        font-size: 15px;
    }
    .hc-home-row-date {
        grid-area: date;
        justify-self: start;
        text-align: left;
        font-size: 14px;
    }
    .hc-home-more {
        font-size: 0.85rem;
    }
    .hc-gallery-img img {
        height: 200px;
    }
    .hc-gallery-caption {
        height: 120px;
        gap: 6px;
        padding: 10px 12px;
        justify-content: space-between;
    }
    .hc-gallery-text {
        font-size: 16px;
    }
    .hc-gallery-meta {
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }
    .hc-gallery-pager {
        font-size: 13px;
    }
}
}
