/* ========================================
   원클릭 건강정보 페이지
   ======================================== */

.hi-section {
    background: #fff;
    padding: 48px 0 96px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}
.hi-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 60px;
    background: #fff;
    border-radius: 30px 30px 0 0;
}
.hi-section .container { position: relative; z-index: 1; }

/* ===== 검색 ===== */
.hi-search-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}
.hi-search-box {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 100px;
    overflow: hidden;
    background: #fff;
    width: 320px;
    transition: border-color 0.2s;
}
.hi-search-box:focus-within { border-color: var(--color-sub-accent); }
.hi-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-size: 0.88rem;
    background: transparent;
}
.hi-search-box input::placeholder { color: #bbb; }
.hi-search-box button {
    border: none;
    background: transparent;
    padding: 10px 18px;
    color: #666;
    cursor: pointer;
}
.hi-search-box button:hover { color: var(--color-sub-accent); }

/* ===== 카드 그리드 ===== */
.hi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.hi-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid #f0ede5;
    display: flex;
    flex-direction: column;
}
.hi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    color: inherit;
    border-color: transparent;
}
.hi-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #fafafa;
}
.hi-card-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}
.hi-card-body {
    padding: 18px 20px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hi-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hi-card-desc {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hi-card-date {
    font-size: 0.78rem;
    color: #bbb;
    margin-top: 4px;
}

/* 빈 상태 */
.hi-empty {
    text-align: center;
    padding: 80px 0;
    color: #999;
}
.hi-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

/* ===== 페이징 ===== */
.hi-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 44px;
}
.hi-paging a, .hi-paging span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    border: 1px solid #e5e5e5;
    padding: 0 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.hi-paging a:hover { background: #f5f5f5; color: #333; }
.hi-paging .active {
    background: #c8102e;
    color: #fff;
    border-color: #c8102e;
}
.hi-paging .disabled {
    color: #ccc;
    pointer-events: none;
    border-color: #eee;
}

/* ===== 반응형 ===== */
@media (max-width: 991px) { .hi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .hi-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) {
    .hi-grid { grid-template-columns: 1fr; }
    .hi-search-box { width: 100%; }
}
