/* =============================================================================
   KB ARTICLE: Mi az a sérv?
   ============================================================================= */

.kb-hb-article {
    max-width: 960px;
    margin: 0 auto;
    padding: 3.5rem 1rem;
}

/* Lead */
.kb-hb-lead {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

/* Text + Image split */
.kb-hb-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.kb-hb-split-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.kb-hb-split-text p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.kb-hb-split-text p:last-child {
    margin-bottom: 0;
}

.kb-hb-split-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.kb-hb-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Highlight box */
.kb-hb-highlight {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 2rem;
    margin-bottom: 3rem;
}

.kb-hb-highlight h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 1rem;
}

.kb-hb-highlight p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.kb-hb-highlight p:last-child {
    margin-bottom: 0;
}

.kb-hb-highlight strong {
    color: var(--text-primary);
}

.kb-hb-highlight em {
    color: var(--text-primary);
    font-style: italic;
}

/* Causes tag list */
.kb-hb-causes {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.kb-hb-causes h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.kb-hb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.kb-hb-tag {
    display: inline-block;
    background: var(--bg-blue-light);
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 2rem;
    border: 1px solid rgba(43, 133, 235, 0.15);
}

/* Hernia types */
.kb-hb-types {
    margin-bottom: 3rem;
}

.kb-hb-types h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.kb-hb-type-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kb-hb-type-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kb-hb-type-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.kb-hb-type-icon {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.kb-hb-type-item span {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Back link */
.kb-hb-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.kb-hb-back:hover {
    gap: 0.75rem;
}

/* Responsive */
@media (min-width: 768px) {
    .kb-hb-split {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
    }

    .kb-hb-type-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .kb-hb-article {
        padding: 2rem 1rem;
    }

    .kb-hb-highlight {
        padding: 1.5rem;
    }
}

/* Hernia Types Carousel with Splide */
.hernia-types-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.hernia-carousel {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.hernia-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cccccc96 !important;
    height: 100%;
}

.hernia-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-gray);
}

.hernia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hernia-content {
    padding: 1.5rem;
    text-align: center;
}

.hernia-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.hernia-content .btn {
    min-width: 130px;
}

/* Splide Pagination Customization */
.hernia-carousel .splide__pagination {
    bottom: -3rem;
}

.hernia-carousel .splide__pagination__page {
    background: var(--border);
    width: 12px;
    height: 12px;
    opacity: 1;
    border: 1px solid #ccc !important;
}

.hernia-carousel .splide__pagination__page.is-active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Mobile */
@media (max-width: 640px) {
    .hernia-types-section {
        padding: 3rem 0;
    }
    
    .hernia-image {
        height: 240px;
    }
    
    .hernia-content {
        padding: 1.25rem;
    }
    
    .hernia-content h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}
