.hbc-at {
    position: relative;
    width: 100%;
}

/* ===== Tabs ===== */
.hbc-at-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hbc-at-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    white-space: nowrap;
}

.hbc-at-tab img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.hbc-at-tab:hover,
.hbc-at-tab.active {
    background: #1b2a3b;
    border-color: #1b2a3b;
    color: #fff;
}

/* ===== Section Heading ===== */
.hbc-at-heading {
    color: #111;
    margin: 40px 0 32px;
    text-align: center;
}

/* ===== Panels ===== */
.hbc-at-panel {
    display: none;
}

.hbc-at-panel.active {
    display: block;
}

/* ===== Grid ===== */
.hbc-at-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== Card ===== */
.hbc-at-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hbc-at-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Image */
.hbc-at-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.hbc-at-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hbc-at-card:hover .hbc-at-img-wrap img {
    transform: scale(1.05);
}

/* Body */
.hbc-at-body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Tag */
.hbc-at-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 12px;
    border: 1px solid #333;
    border-radius: 3px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Title */
.hbc-at-title {
    color: #111;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* Description */
.hbc-at-desc {
    color: #666;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    flex: 1;
}

/* Button */
.hbc-at-btn {
    display: inline-block;
    width: fit-content;
    padding: 8px 20px;
    border: 1px solid #333;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: auto;
}

.hbc-at-btn:hover {
    background: #1b2a3b;
    border-color: #1b2a3b;
    color: #fff;
}

/* ===== Swiper Layout ===== */
.hbc-at--swiper .hbc-at-panel {
    position: relative;
    padding: 0 60px;
}
.hbc-at-swiper {
    overflow: hidden;
}
.hbc-at-swiper .swiper-wrapper {
    align-items: stretch;
}
.hbc-at-swiper .swiper-slide {
    height: auto;
}
.hbc-at--swiper .hbc-at-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Arrows (same style as case-carousel) */
.hbc-at-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s;
    z-index: 3;
}
.hbc-at-arrow:hover {
    background: #ff7900;
    border-color: #ff7900;
}
.hbc-at-arrow.prev { left: 0; }
.hbc-at-arrow.next { right: 0; }
.hbc-at-arrow svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
    stroke: currentColor;
}
.hbc-at-arrow i {
    font-size: inherit;
    line-height: 1;
    color: inherit;
}
.hbc-at-arrow img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}
.hbc-at-arrow.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hbc-at-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }
    .hbc-at-tabs::-webkit-scrollbar {
        display: none;
    }
    .hbc-at-tab {
        flex-shrink: 0;
        white-space: nowrap;
        scroll-snap-align: start;
    }
    .hbc-at-grid {
        grid-template-columns: 1fr;
    }
    .hbc-at-heading {
        font-size: 24px;
        margin: 24px 0 20px;
    }
    .hbc-at--swiper .hbc-at-panel {
        padding: 0 40px;
    }
    .hbc-at-arrow {
        width: 32px;
        height: 32px;
    }
    .hbc-at-arrow svg,
    .hbc-at-arrow img {
        width: 16px;
        height: 16px;
    }
}
