/* css/pages/pakiet-bariatryczny.css - PAKIET BARIATRYCZNY */
/* ===================== BARIATRIC PACKAGE HEADER WCAG AAA ===================== */
.specialization-hero-bg {
    background-image: url('../../zdj/11.png');
}

/* ===================== CENTERED HERO BLOCK ===================== */
.centered-hero-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background: linear-gradient(135deg, rgba(8,47,97,0.95) 0%, rgba(10,51,94,0.98) 50%, rgba(8,47,97,0.95) 100%);
    border-radius: 20px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.centered-hero-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.centered-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 40px;
}

.centered-hero-content h2 {
    font-size: 2.5rem;
    font-family: 'Michroma', sans-serif;
    margin-bottom: 30px;
    color: var(--white);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.centered-hero-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), rgba(255,255,255,0.8));
    border-radius: 2px;
}

.centered-hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================== OVERLAPPING SECTIONS Z EFEKTAMI GŁĘBI ===================== */

/* Główny kontener z wielowarstwowym tłem */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px; /* Zwiększony padding dla bezpieczeństwa */
}

/* Asymetryczne bloki treści - prosty layout jak w chorobie Peyroniego */
.asymmetric-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 40px 0; /* Zmniejszony odstęp między sekcjami */
    position: relative;
}

.asymmetric-section:first-of-type {
    margin-top: 20px; /* Zmniejszony odstęp od split-hero */
}

.asymmetric-section:nth-child(even) {
    flex-direction: row-reverse;
}

/* Obrazy po bokach */
.asymmetric-image {
    flex: 0 0 400px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    position: relative;
}

.asymmetric-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nakładka gradientowa na obrazach */
.asymmetric-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    z-index: 1;
}

/* Treść asymetryczna */
.asymmetric-content {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.95) 100%);
    border-radius: 15px;
    border: 1px solid rgba(8,47,97,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.asymmetric-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Efekty hover dla asymetrycznych sekcji */
.asymmetric-section:hover .asymmetric-content {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.asymmetric-section:hover .asymmetric-image {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Style tekstowe w asymetrycznych sekcjach */
.asymmetric-content h1,
.asymmetric-content h2,
.asymmetric-content h3,
.asymmetric-content p,
.asymmetric-content li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.asymmetric-content h1 {
    font-size: 2.2rem;
    font-family: 'Michroma', sans-serif;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.asymmetric-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.asymmetric-content p {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.asymmetric-content ul,
.asymmetric-content ol {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.asymmetric-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.asymmetric-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
}

/* Responsywność */
@media (max-width: 768px) {
    .asymmetric-section {
        flex-direction: column !important;
        gap: 30px;
        margin: 30px 0; /* Zmniejszone marginesy na mobile */
    }

    .asymmetric-image {
        flex: 0 0 250px;
        height: 200px;
    }

    .asymmetric-content {
        padding: 30px;
    }

    .asymmetric-content h1 {
        text-align: center;
    }
}

/* ===================== SPECIALIZATION HERO WITH SPLIT LAYOUT ===================== */
.specialization-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -70px;
    padding-top: 70px;
}

.specialization-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../zdj/11.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.8) saturate(0.8) contrast(0.95);
}

.specialization-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(8, 47, 97, 0.1) 0%,
        rgba(8, 47, 97, 0.4) 40%,
        rgba(8, 47, 97, 0.8) 70%,
        rgba(8, 47, 97, 0.95) 100%
    );
}

.specialization-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 40px;
    text-align: center; /* Tytuł na środku */
}

.specialization-hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.1em;
}

/* Gradient divider */
.specialization-hero + hr.gradient-divider {
    margin: 0;
    border: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: relative;
}

.specialization-hero + hr.gradient-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.8;
}

/* Nagłówki w overlapping cards */
.overlap-card h2 {
    color: var(--primary);
    font-family: 'Michroma', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    text-align: center;
    letter-spacing: 2px;
}

/* Treść w overlapping cards */
.overlap-content {
    position: relative;
    z-index: 2;
}

.overlap-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.1rem;
    text-align: justify;
}

.overlap-content p:last-child {
    margin-bottom: 0;
}

.overlap-content strong {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.overlap-content strong::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0.3;
}

/* Listy w overlapping cards */
.overlap-content ul {
    margin: 30px 0;
    padding-left: 30px;
}

.overlap-content li {
    margin-bottom: 15px;
    line-height: 1.7;
    position: relative;
    padding-left: 25px;
    color: var(--dark);
}

.overlap-content li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: bold;
    top: 3px;
}

/* Efekty hover dla overlapping cards */
.overlap-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

.overlap-card:hover::before {
    animation-duration: 3s;
}

/* Dekoracyjne elementy */
.overlap-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(8,47,97,0.1), rgba(10,51,94,0.15));
    z-index: 1;
}

.overlap-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(8,47,97,0.2), rgba(10,51,94,0.25));
}

/* Sekcja cenowa - wyróżniona z efektem głębi */
.price-section {
    background: linear-gradient(135deg, rgba(8,47,97,0.08) 0%, rgba(10,51,94,0.12) 100%);
    border-radius: 25px;
    margin: 120px 0;
    padding: 60px;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.price-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(8,47,97,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(10,51,94,0.1) 0%, transparent 50%);
    z-index: 1;
}

.price-section h2 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 2.2rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price-section p {
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
}

.price-section strong {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Responsywność */
@media (max-width: 768px) {
    .overlap-section {
        margin: 50px 0 !important;
    }

    .overlap-section:nth-child(even),
    .overlap-section:nth-child(odd) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .overlap-card {
        padding: 30px;
        border-radius: 15px;
    }

    .overlap-card h2 {
        font-size: 1.6rem;
    }

    .overlap-decoration {
        width: 50px;
        height: 50px;
    }

    .overlap-decoration::after {
        width: 25px;
        height: 25px;
    }

    .price-section {
        padding: 40px;
        margin: 80px 0;
    }

    .price-section h2 {
        font-size: 1.8rem;
    }
}

/* ===================== DIAGNOSTIC INTRO BLOCK ===================== */
.diagnostic-intro {
    margin-bottom: 60px;
    padding: 50px 0;
    border-radius: var(--border-radius-large);
    position: relative;
    overflow: hidden;
}

.diagnostic-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(8,47,97,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(0,137,194,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(8,47,97,0.02)"/><circle cx="10" cy="50" r="0.5" fill="rgba(0,137,194,0.02)"/><circle cx="90" cy="30" r="0.5" fill="rgba(8,47,97,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-content h1 {
    font-size: 2.2rem;
    font-family: 'Michroma', sans-serif;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .diagnostic-intro {
        padding: 30px 0;
        margin-bottom: 40px;
    }

    .intro-content h1 {
        font-size: 1.8rem;
    }

    .intro-content p {
        font-size: 1rem;
    }
}

/* ===================== SPLIT HERO SECTION ===================== */
.split-hero {
    display: flex;
    flex-direction: column; /* Bloki jeden pod drugim */
    gap: 0; /* Bez odstępu między blokami */
    align-items: stretch; /* Rozciągnięcie na pełną szerokość */
    margin: 40px 0 20px 0;
    max-width: 100%;
}

/* Na dużych monitorach zwiększamy maksymalną szerokość kontenera */
@media (min-width: 1200px) {
    .split-hero {
        max-width: 1400px; /* Szersze na dużych monitorach */
        margin: 40px auto 20px auto; /* Wycentrowanie */
    }
}

.split-left {
    flex: none; /* Stała szerokość zamiast flex */
    width: 100%; /* Pełna szerokość */
    padding: 50px 40px; /* Więcej paddingu dla lepszego wyglądu */
    background: linear-gradient(135deg, rgba(8,47,97,0.95) 0%, rgba(10,51,94,0.98) 50%, rgba(8,47,97,0.95) 100%);
    border-radius: 20px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 0; /* Bez marginesu dolnego */
}

.split-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.split-left h1 {
    position: relative;
    z-index: 2;
    font-size: 2.5rem; /* Większy tytuł */
    font-family: 'Michroma', sans-serif;
    margin-bottom: 20px;
    color: var(--white);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center; /* Wycentrowany tytuł */
}

.split-left p {
    position: relative;
    z-index: 2;
    font-size: 1.2rem; /* Większy tekst */
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center; /* Wycentrowany tekst */
    max-width: 800px; /* Maksymalna szerokość tekstu */
    margin: 0 auto; /* Wycentrowanie */
}

.split-right {
    flex: none; /* Stała szerokość zamiast flex */
    width: 100%; /* Pełna szerokość */
    padding: 50px 40px; /* Więcej paddingu */
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-top: -20px; /* Lekkie nachodzenie na niebieski blok */
    position: relative;
    z-index: 1;
}

.split-right h2 {
    font-size: 2.2rem; /* Większy tytuł */
    font-family: 'Michroma', sans-serif;
    color: var(--primary);
    margin-bottom: 25px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center; /* Wycentrowany tytuł */
}

.split-right p {
    color: var(--dark);
    font-size: 1.2rem; /* Większy tekst */
    line-height: 1.6;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center; /* Wycentrowany tekst */
    max-width: 900px; /* Maksymalna szerokość tekstu */
    margin-left: auto;
    margin-right: auto;
}

.split-right p:last-child {
    margin-bottom: 0;
}

/* ===================== LIST STYLING WITH DOTS ===================== */
.split-right ul,
.split-right ol,
.section ul,
.section ol {
    padding-left: 0;
    list-style: none;
}

.split-right li,
.section li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.split-right li::before,
.section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .split-hero {
        flex-direction: column;
        gap: 0; /* Brak odstępu na mobile */
        margin: 20px 0 10px 0;
    }

    .split-left,
    .split-right {
        padding: 30px;
        width: 100%;
        margin-top: 0; /* Brak nachodzenia na mobile */
    }

    .split-left h1 {
        font-size: 1.8rem;
    }

    .split-left p {
        font-size: 1rem;
    }

    .split-right h2 {
        font-size: 1.6rem;
    }

    .split-right p {
        font-size: 1rem;
    }
}

/* === MOBILE: center all titles in pakiet bariatryczny === */
@media (max-width: 768px) {
    .page-template-template-pakiet-bariatryczny .asymmetric-content h1,
    .page-template-template-pakiet-bariatryczny .asymmetric-content h2,
    .page-template-template-pakiet-bariatryczny .asymmetric-content h3,
    .page-template-template-pakiet-bariatryczny .overlap-card h2,
    .page-template-template-pakiet-bariatryczny .price-section h2,
    .page-template-template-pakiet-bariatryczny .intro-content h1,
    .page-template-template-pakiet-bariatryczny .specialization-hero h1,
    .page-template-template-pakiet-bariatryczny .centered-hero-content h2 {
        text-align: center !important;
    }
}
