/* =============================================================================
   SURGERY PAGE: Laterális / atipikus hasfali sérvek (Atypical Hernia)
   Prefix: ah-
   ============================================================================= */

/* Header */
.ah-header {
    background: linear-gradient(135deg, #0a2540 0%, #1a4a7a 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
}

.ah-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.ah-header-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 720px;
    margin: 0 auto;
}

/* Article body */
.ah-article {
    max-width: 960px;
    margin: 0 auto;
    padding: 3.5rem 1rem;
}

/* Section */
.ah-section {
    margin-bottom: 0.5rem;
}

/* Section title */
.ah-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-blue-light);
}

/* Divider */
.ah-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-light), transparent);
    margin: 3rem 0;
}

/* Body text */
.ah-body-text {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ---- Intro split: text + image ---- */
.ah-intro-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ah-intro-text p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.ah-intro-text p:last-child {
    margin-bottom: 0;
}

.ah-intro-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ah-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Hernia type cards ---- */
.ah-type-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ah-type-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ah-type-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.ah-type-card-header {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.ah-type-card--spiegel .ah-type-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.ah-type-card--lumbar .ah-type-card-header {
    background: linear-gradient(135deg, var(--accent), #2e9e85);
}

.ah-type-card--lateral .ah-type-card-header {
    background: linear-gradient(135deg, var(--text-secondary), #3d5065);
}

.ah-type-card-body {
    padding: 1.25rem 1.5rem;
}

.ah-type-card-body p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.ah-type-card-body p:last-child {
    margin-bottom: 0;
}

.ah-type-card-body ul {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.ah-type-card-body ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.ah-type-card-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
}

.ah-type-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm, 4px);
    margin-bottom: 0.5rem;
}

.ah-type-card--spiegel .ah-type-label {
    background: var(--bg-blue-light);
    color: var(--primary-dark);
}

.ah-type-card--lumbar .ah-type-label {
    background: #ecfdf5;
    color: #065f46;
}

.ah-type-card--lateral .ah-type-label {
    background: var(--bg-light);
    color: var(--text-secondary);
}

/* Warning note inside card */
.ah-card-warning {
    background: #fef2f2;
    border-left: 3px solid var(--danger);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
}

.ah-card-warning p {
    font-size: 0.95rem;
    color: #991b1b;
    font-weight: 600;
    margin: 0 !important;
}

/* Subtypes inline */
.ah-subtypes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.ah-subtype-tag {
    background: #ecfdf5;
    color: #065f46;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
}

/* ---- Overview image ---- */
.ah-overview-image {
    text-align: center;
    margin-bottom: 2rem;
}

.ah-overview-image img {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ---- Symptoms & Indication boxes ---- */
.ah-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ah-box {
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
}

.ah-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.ah-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ah-box ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.ah-box ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Symptoms box */
.ah-box--symptoms {
    background: var(--bg-blue-light);
    border-left: 4px solid var(--primary);
}

.ah-box--symptoms h3 {
    color: var(--primary-dark);
}

.ah-box--symptoms ul li::before {
    background: var(--primary-light);
}

/* Indication box */
.ah-box--indication {
    background: #fef9f0;
    border-left: 4px solid var(--warning);
}

.ah-box--indication h3 {
    color: #92600a;
}

.ah-box--indication ul li::before {
    background: var(--warning);
}

.ah-box-note {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ---- Info note ---- */
.ah-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: 1.5rem;
}

.ah-info-note p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

/* ---- Treatment principle box ---- */
.ah-principle-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.ah-principle-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.ah-principle-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.75rem;
}

.ah-principle-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ah-principle-list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ah-principle-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ---- Surgery method cards ---- */
.ah-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.ah-method {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ah-method:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.ah-method-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}

.ah-method--robot .ah-method-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.ah-method--open .ah-method-badge {
    background: linear-gradient(135deg, var(--text-secondary), #3d5065);
}

.ah-method-badge-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;
    flex-shrink: 0;
}

.ah-method-body {
    padding: 1.5rem;
}

.ah-method-body > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Mesh info inside robot method */
.ah-mesh-info {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 1.25rem 0;
    position: relative;
}

.ah-mesh-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--success);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.ah-mesh-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
    margin: 0 0 0.5rem;
}

.ah-mesh-info p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.ah-mesh-info p:last-child {
    margin-bottom: 0;
}

/* Advantages list */
.ah-advantages {
    margin: 1.25rem 0;
}

.ah-advantages h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.ah-advantages ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ah-advantages ul li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.ah-advantages ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Fallback note */
.ah-fallback-note {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
}

.ah-fallback-note p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Pros & Cons */
.ah-pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.ah-pros,
.ah-cons {
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.ah-pros {
    background: #f0fdf4;
    border-left: 3px solid var(--success);
}

.ah-cons {
    background: #fef2f2;
    border-left: 3px solid var(--danger);
}

.ah-pros h4,
.ah-cons h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.ah-pros h4 {
    color: #166534;
}

.ah-cons h4 {
    color: #991b1b;
}

.ah-pros ul,
.ah-cons ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ah-pros ul li,
.ah-cons ul li {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    padding-left: 1.25rem;
    position: relative;
}

.ah-pros ul li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.ah-cons ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
}

/* Back link */
.ah-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.ah-back:hover {
    gap: 0.75rem;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (min-width: 768px) {
    .ah-intro-split {
        grid-template-columns: 1.3fr 1fr;
        gap: 3rem;
    }

    .ah-two-col {
        grid-template-columns: 1fr 1fr;
    }

    .ah-pros-cons {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .ah-type-cards {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .ah-header {
        padding: 100px 0 40px;
    }

    .ah-header h1 {
        font-size: 1.7rem;
    }

    .ah-header-sub {
        font-size: 1rem;
    }

    .ah-article {
        padding: 2rem 1rem;
    }

    .ah-section-title {
        font-size: 1.3rem;
    }

    .ah-method-body {
        padding: 1.25rem;
    }

    .ah-principle-box {
        padding: 1.5rem;
    }
}