/* css/pages/terapia-hormonalna.css - TERAPIA HORMONALNA */
/* ===================== HERO SECTION WITH BACKGROUND IMAGE ===================== */
.specialization-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    width: 100%;
    margin-top: -70px;
    padding-top: 70px;
}

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

.specialization-hero-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 47, 97, 0.7) 0%, rgba(10, 51, 94, 0.8) 50%, rgba(8, 47, 97, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.specialization-hero .container {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
}

.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;
}

/* Jasny równoległobok dla smaczku */
.specialization-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 100%);
    transform: skewX(-15deg);
    z-index: 2;
}

/* Responsywność */
@media (max-width: 768px) {
    .specialization-hero {
        height: auto;
        min-height: unset;
        padding: 140px 0 40px;
    }

    .specialization-hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

.specialization-hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================== PROSTY MINIMALISTYCZNY LAYOUT ===================== */

/* Główny kontener */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Styling dla głównego tytułu strony */
.content h1 {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 20px;
    position: relative;
    font-size: 2.8rem;
    color: var(--primary);
    display: inline-block;
    padding-bottom: 50px;
    line-height: 1.3;
    font-weight: 800;
}

.content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Proste sekcje */
.content-section {
    background: var(--white);
    border-radius: 15px;
    margin: 40px 0;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(8,47,97,0.1);
}

/* Nagłówki sekcji */
.content h2 {
    color: var(--primary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

/* Nagłówki podsekcji */
.content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

/* Treść */
.content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--dark);
    text-align: justify;
}

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

/* Listy */
.content ul {
    margin: 25px 0;
    padding-left: 20px;
}

.content li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    list-style: none;
}

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

/* Prosty przycisk */
.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8,47,97,0.3);
}

/* ===================== BLOKI CONTENT-BLOCK ===================== */
.content-block {
    margin: 60px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(8,47,97,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

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

/* Hardcoded backgrounds per block */
.content-block:nth-child(1) {
    background-image: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.75) 55%, rgba(255,255,255,0.92) 100%), url('../../zdj/74.png');
}

.content-block:nth-child(2) {
    background-image: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 45%, rgba(255,255,255,0.15) 100%), url('../../zdj/ladny-biznesmen-pracujacy-za-biurkiem_1303-25707.jpeg');
}

.content-block:nth-child(3) {
    background-image: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.75) 55%, rgba(255,255,255,0.92) 100%), url('../../zdj/76.png');
}

/* Fallback for --block-bg variable (if set via inline style) */
.content-block.image-left {
    justify-content: flex-end;
    background-image: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.75) 55%, rgba(255,255,255,0.92) 100%), var(--block-bg);
}

.content-block.image-right {
    justify-content: flex-start;
    background-image: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 45%, rgba(255,255,255,0.15) 100%), var(--block-bg);
}

/* nth-child overrides (more specific, always wins) */
.content-block:nth-child(1).image-left {
    background-image: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.75) 55%, rgba(255,255,255,0.92) 100%), url('../../zdj/74.png');
}

.content-block:nth-child(2).image-right {
    background-image: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 45%, rgba(255,255,255,0.15) 100%), url('../../zdj/ladny-biznesmen-pracujacy-za-biurkiem_1303-25707.jpeg');
}

.content-block:nth-child(3).image-left {
    background-image: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.75) 55%, rgba(255,255,255,0.92) 100%), url('../../zdj/76.png');
}

.content-block h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--primary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    width: 100%;
    padding-top: 14px;
}

.content-block h2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.content-block__inner {
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    padding: 24px 26px;
    position: relative;
    z-index: 2;
    max-width: 62%;
    box-shadow: 0 12px 28px rgba(8,47,97,0.12);
    backdrop-filter: blur(2px);
}

.content-block p {
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--dark);
    text-align: justify;
}

.content-block p,
.content-block ul,
.content-block ol {
    padding-left: 0;
    padding-right: 0;
}

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

.content-block::after {
    content: none;
}

/* ===================== ACCORDION DLA FAQ ===================== */
.accordion-container {
    margin: 10px 0 30px 0;
}

.accordion-container h2 {
    color: var(--primary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.accordion-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.accordion-item {
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid rgba(8,47,97,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: rgba(8,47,97,0.2);
}

.accordion-header {
    background: linear-gradient(135deg, rgba(8,47,97,0.05) 0%, rgba(10,51,94,0.08) 100%);
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-header:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(8,47,97,0.08) 0%, rgba(10,51,94,0.12) 100%);
}

.accordion-header h2 {
    color: var(--primary);
    font-family: "Michroma", sans-serif;
    font-size: 1.5rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.accordion-header h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accordion-header:hover h2::after {
    opacity: 1;
}

.accordion-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.accordion-icon::before {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon::before {
    content: "\f077";
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 30px;
    position: relative;
}

.accordion-body p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.accordion-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.accordion-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 768px) {
    .content {
        padding: 0 15px;
    }

    .content-section {
        margin: 30px 0;
        padding: 30px 20px;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .content h3 {
        font-size: 1.2rem;
    }

    .content-block {
        padding: 26px 18px;
        margin: 40px 0;
        display: block;
    }

    .content-block p {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left;
    }

    .content ul,
    .content li,
    .content-block ul,
    .content-block li {
        text-align: left;
    }

    .content-block h2 {
        text-align: center;
    }

    .content-block__inner {
        padding: 20px 18px;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(8,47,97,0.1);
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .content h2 {
        font-size: 1.4rem;
    }

    .content-block h2 {
        font-size: 1.5rem;
    }
}
