/* =============================================================================
   SURGERY PAGE: Nyitott sérvműtétek (Open Surgery)
   ============================================================================= */

/* Header */
.os-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/images/open-surgery-hero-title.jpg) center center / cover no-repeat;
    padding: 130px 60px;
    text-align: center;
    color: #fff;
}

.os-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.os-header-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto;
}

/* Article body */
.os-article {
    max-width: 960px;
    margin: 0 auto;
    padding: 3.5rem 1rem;
}

/* Intro split: text + image */
.os-intro-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.os-intro-text p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.os-intro-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.os-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section title */
.os-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-blue-light);
}

/* Divider */
.os-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-light), transparent);
    margin: 3rem 0;
}

/* Body text */
.os-text {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Comparison cards (Előnyök / Hátrányok) */
.os-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.os-comparison-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease;
}

.os-comparison-card:hover {
    box-shadow: var(--shadow-lg);
}

.os-comparison-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: #fff;
}

.os-comparison-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.os-comparison-card--pro .os-comparison-header {
    background: linear-gradient(135deg, var(--accent), #2e9e85);
}

.os-comparison-card--con .os-comparison-header {
    background: linear-gradient(135deg, #b45309, #d97706);
}

.os-comparison-card ul {
    list-style: none;
    margin: 0;
    padding: 1.25rem 1.5rem;
}

.os-comparison-card ul li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.os-comparison-card ul li::before {
    position: absolute;
    left: 0;
    top: 0.35rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.os-comparison-card--pro ul li::before {
    content: '✓';
    color: var(--success);
}

.os-comparison-card--con ul li::before {
    content: '✗';
    color: #d97706;
}

/* Info note */
.os-info-note {
    background: var(--bg-blue-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
}

.os-info-note p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

/* Surgery type cards */
.os-surgery-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.os-surgery-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.os-surgery-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.os-surgery-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.os-surgery-card-num {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.os-surgery-card-body {
    padding: 1.5rem;
}

.os-surgery-card-body > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.os-surgery-card-body > p:last-child {
    margin-bottom: 0;
}

.os-surgery-card-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

/* Sub-methods inside a surgery card */
.os-surgery-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.os-surgery-method {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.os-surgery-method h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
}

.os-surgery-method p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Back link */
.os-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: gap 0.2s ease;
}

.os-back:hover {
    gap: 0.75rem;
}

/* Responsive */
@media (min-width: 768px) {
    .os-intro-split {
        grid-template-columns: 1.3fr 1fr;
        gap: 3rem;
    }

    .os-comparison {
        grid-template-columns: 1fr 1fr;
    }

    .os-surgery-methods {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .os-header {
        padding: 100px 0 40px;
    }

    .os-header h1 {
        font-size: 1.7rem;
    }

    .os-article {
        padding: 2rem 1rem;
    }

    .os-surgery-card-body {
        padding: 1.25rem;
    }
}

/* 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);
}