/*
 * 강백호 메인 최신 조황 전용 스킨
 * PC : 3열 x 2줄 카드
 * Mobile : 1장 자동 슬라이드
 */

.kbh-tide-main {
    width: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.kbh-tide-main * {
    box-sizing: border-box;
}

/* PC */
.kbh-tide-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
    width: 100%;
}

.kbh-tide-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.kbh-tide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 24px rgba(0,0,0,0.11);
}

.kbh-tide-link {
    display: block;
    color: #222;
    text-decoration: none;
}

.kbh-tide-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f2f2;
}

.kbh-tide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.kbh-tide-card:hover .kbh-tide-image img {
    transform: scale(1.035);
}

.kbh-tide-info {
    padding: 17px 18px 16px;
}

.kbh-tide-subject {
    margin: 0;
    color: #1f1f1f;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kbh-tide-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: #888;
    font-size: 14px;
}

.kbh-tide-read {
    color: #555;
    font-weight: 600;
}

.kbh-tide-dots {
    display: none;
}

.kbh-tide-empty {
    grid-column: 1 / -1;
    padding: 50px 20px;
    text-align: center;
    color: #777;
    background: #fafafa;
    border-radius: 12px;
}


/* Mobile */
@media (max-width: 768px) {

    .kbh-tide-main {
        padding-bottom: 30px;
    }

    .kbh-tide-track {
        display: flex;
        gap: 0;
        width: 100%;
        transform: translate3d(0, 0, 0);
        transition: transform .45s ease;
        will-change: transform;
    }

    .kbh-tide-card {
        flex: 0 0 100%;
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    }

    .kbh-tide-card:hover {
        transform: none;
    }

    .kbh-tide-image {
        aspect-ratio: 4 / 3;
    }

    .kbh-tide-info {
        padding: 15px 15px 14px;
    }

    .kbh-tide-subject {
        font-size: 17px;
        line-height: 1.45;

        /* 모바일은 최대 2줄 */
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 49px;
    }

    .kbh-tide-meta {
        margin-top: 9px;
        font-size: 13px;
    }

    .kbh-tide-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 7px;
        margin-top: 14px;
    }

    .kbh-tide-dot {
        width: 7px;
        height: 7px;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 50%;
        background: #c9c9c9;
        cursor: pointer;
        transition: width .2s ease, border-radius .2s ease, background .2s ease;
    }

    .kbh-tide-dot.active {
        width: 20px;
        border-radius: 10px;
        background: #333;
    }

    .kbh-tide-read {
        font-size: 13px;
    }
}


/* 작은 휴대폰 */
@media (max-width: 420px) {

    .kbh-tide-info {
        padding: 13px 13px 12px;
    }

    .kbh-tide-subject {
        font-size: 16px;
        min-height: 46px;
    }
}

.port_go {
    margin-top: 30px;
    text-align: center;
}

.port_go a {
    display: inline-block;
    width: 220px;
    padding: 14px 20px;
}
