.light-purple {
    background-color: #E2D4E5;
}
.light-yellow-bg {
    background-color: #F9ECB1;
      min-height: 150px !important;
}
.bg-white {
    background-color: #ffffff;
}

.coverphoto--big {
    max-width: 1205px;
    margin: 0 auto;
}

.coverphoto--big .slide_container {
    position: relative;
    min-height: 550px;
    overflow: hidden;
}
.coverphoto--big .slide_container.light-blue-bg {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}
.coverphoto--big .image {
    position: absolute;
    top: 0;
    right: 0;
    width: 640px;
    height: 620px;
    object-fit: cover;
    object-position: center;
    z-index: 5;
}

.coverphoto--big.bg-white .slide_container > div:not(.image), 
.coverphoto--big.light-blue-bg .slide_container > div:not(.image) {
    position: relative; /* Change from absolute to relative */
    flex: 0 0 50%;
    max-width: 50%;
    height: auto;
    left: auto;
    top: auto;
}
}

/* Reversed layout for new template */
.coverphoto--big.bg-white .slide_container, 
.coverphoto--big.light-blue-bg .slide_container {
    flex-direction: row; /* Normal row direction puts first element (image) on left */
    justify-content: space-between;
    align-items: center;
}

.coverphoto--big.bg-white .image, 
.coverphoto--big.light-blue-bg .image,
.coverphoto--big.light-blue-bg-reverted .image {
    position: relative;
    right: auto;
    max-width: 580px;
    height: auto;
    flex: 0 0 580px;
    display: block; /* Ensure visibility */
    opacity: 1;
    z-index: 10;
}

.coverphoto--big .content .lead,
.coverphoto--big .content .lead p {
    font-family: 'FSMEWeb', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0px;
}

/* Override font size for white template */
.coverphoto--big .bg-white .content .lead,
.coverphoto--big .bg-white .content .lead p,
.coverphoto--big .light-blue-bg .content .lead,
.coverphoto--big .light-blue-bg .content .lead p {
    font-size: 18px;
}
.coverphoto--big .light-blue-bg.light-blue-bg-reverted .content {
	margin-left:50px;
	
}

.coverphoto--big .content ul {
    margin-top: 0.5rem;
}

.coverphoto--big .content h1,
.coverphoto--big .content h2,
.coverphoto--big .content span {
    font-family: 'FedraSerifAProDemi', serif;
    font-weight: 400;
    font-size: 38px;
    line-height: 140%;
    letter-spacing: 0px;
}

.coverphoto--big .content span {
    color: #8B003A;
    font-style: normal;
}

/* Specific styles for h2 span in white template */
.coverphoto--big.bg-white .content h2,
.coverphoto--big.light-blue-bg .content h2 {
    font-size: 30px;
}

.coverphoto--big.bg-white .content h2 span,
.coverphoto--big.light-blue-bg .content h2 span {
    display: block;
    font-size: inherit;
    line-height: inherit;
}

/* Text container adjustments */
.coverphoto--big .slide_container > div:not(.image) {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Content adjustments */
.coverphoto--big .content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 2rem 2rem 4rem;
    max-width: 100%;
    text-align: left;
}
    text-align: left;
}

/* Ensure all text elements are left-aligned */
.coverphoto--big .content h1,
.coverphoto--big .content span,
.coverphoto--big .content .lead {
    text-align: left;
}

/* Reset p padding and add h1/h2 padding */
.coverphoto--big .content h1,
.coverphoto--big .content h2,
.coverphoto--big .content .lead p {
    margin: 0;
    padding: 10px 0 10px 0;
}

.coverphoto--big .content h1,
.coverphoto--big .content h2 {
    padding-bottom: 20px;
}

/* Center text vertically */
.coverphoto--big .slide_container > div:last-child {
    display: flex;
    align-items: center;
}


.light-blue-bg .lead ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.light-blue-bg .lead ul li {
    position: relative;
    padding-left: 36px; /* miejsce na ikonkę */
    margin-bottom: 10px;
    line-height: 1.4;
}

/* ikony */
.light-blue-bg .lead ul li.variant::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 24px;
    height: 24px;
    background: url("/images/icon/variant.png") no-repeat center / contain;
}

.light-blue-bg .lead ul li.dates::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 24px;
    height: 24px;
    background: url("/images/icon/dates.png") no-repeat center / contain;
}

.light-blue-bg .lead ul li.share::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 24px;
    height: 24px;
    background: url("/images/icon/share.png") no-repeat center / contain;
}
.light-blue-bg .lead ul li.details::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 24px;
    height: 24px;
    background: url("/images/icon/details.png") no-repeat center / contain;
}
.light-blue-bg .lead ul li.contactdata::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 24px;
    height: 24px;
    background: url("/images/icon/contactdata.png") no-repeat center / contain;
}
.light-blue-bg .lead ul li.information::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 24px;
    height: 24px;
    background: url("/images/icon/information.png") no-repeat center / contain;
}
.light-blue-bg .lead ul li.links::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 24px;
    height: 24px;
    background: url("/images/icon/links.png") no-repeat center / contain;
}
.light-blue-bg .lead ul li.linkopinion::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 24px;
    height: 24px;
    background: url("/images/icon/linkopinion.png") no-repeat center / contain;
}

p.warning {
    display: flex;
    align-items: center;        /* centrowanie pionowe względem tekstu */
    gap: 16px;                  /* odstęp ikona–tekst */
    position: relative;
      margin-bottom: 12px;
}

/* ikona */
p.warning::before {
    content: "";
    flex: 0 0 80px;             /* szerokość ikony */
    height: 80px;               /* wysokość ≈ 3 linie tekstu */
    background: url("/images/icon/warning.png") no-repeat center / contain;
}
.light-yellow-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.light-yellow-bg .lead {
    flex: none;
    max-width: none;
    padding: 0;
    text-align: left;
}
.light-yellow-bg > div {
    flex: none !important;
    max-width: none !important;
}

/* Responsive adjustments */
@media only screen and (max-width:1024px) {
    /* Baza (np. Purple) - zdjęcie po prawej (row-reverse) */
    .coverphoto--big .slide_container {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
    }

    /* White i Blue - zdjęcie po lewej (row) */
    .coverphoto--big.bg-white .slide_container,
    .coverphoto--big.light-blue-bg .slide_container {
        flex-direction: row;
    }

    /* Wrapper tekstu - 50% szerokości */
    .coverphoto--big .slide_container > div:not(.image),
    .coverphoto--big.bg-white .slide_container > div:not(.image), 
    .coverphoto--big.light-blue-bg .slide_container > div:not(.image) {
        position: relative;
        flex: 0 0 50%;
        max-width: 50%;
        width: 100%;
        top: auto; left: auto; right: auto; bottom: auto;
        height: auto;
    }
    
    /* Content - padding i szerokość */
    .coverphoto--big .content,
    .coverphoto--big.bg-white .content,
    .coverphoto--big.light-blue-bg .content {
        max-width: 100%;
        padding: 20px;
        width: 100%;
    }
    
    /* Obrazek - 50% szerokości */
    .coverphoto--big .image,
    .coverphoto--big.bg-white .image,
    .coverphoto--big.light-blue-bg .image,
    .coverphoto--big.light-purple .image {
        position: relative;
        width: 100%;
        max-width: 50%;
        flex: 0 0 50%;
        height: auto;
        min-height: 400px;
        top: auto; right: auto; left: auto;
        object-fit: contain;
    }

    /* Purple i White - cover */
    .coverphoto--big.bg-white .image,
    .coverphoto--big.light-purple .image {
        object-fit: cover;
        height: 100%;
    }
    
    /* Reset marginesu dla reverted */
    .coverphoto--big .light-blue-bg.light-blue-bg-reverted .content {
        margin-left: 0;
    }

    /* Zmniejszenie fontów dla h1 i h2 na tabletach i mobile */
    .coverphoto--big .content h1,
    .coverphoto--big .content h2,
    .coverphoto--big .content span {
        font-size: 32px;
    }

    .coverphoto--big.bg-white .content h2,
    .coverphoto--big.light-blue-bg .content h2 {
        font-size: 24px;
    }
}

@media only screen and (max-width:768px) {
    .coverphoto--big .slide_container,
    .coverphoto--big.bg-white .slide_container,
    .coverphoto--big.light-blue-bg .slide_container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .coverphoto--big .content,
    .coverphoto--big.bg-white .content,
    .coverphoto--big.light-blue-bg .content {
        max-width: 100%;
        padding: 1rem 2rem;
    }
    
    .coverphoto--big .image,
    .coverphoto--big.bg-white .image,
    .coverphoto--big.light-blue-bg .image,
    .coverphoto--big.light-purple .image,
    .coverphoto--big .slide_container.light-blue-bg .image {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 300px;
        flex: 0 0 300px;
        right: auto;
        left: auto;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    /* Purpurowe i białe tło - obrazek na całą szerokość */
    .coverphoto--big.bg-white .image,
    .coverphoto--big.light-purple .image {
        object-fit: cover;
        object-position: center;
    }

    /* Niebieskie i odwrócone - obrazek wyśrodkowany i cały widoczny */
    .coverphoto--big.light-blue-bg .image,
    .coverphoto--big .slide_container.light-blue-bg .image {
        object-fit: contain;
        object-position: center;
    }

    .coverphoto--big .slide_container > div:not(.image),
    .coverphoto--big.bg-white .slide_container > div:not(.image), 
    .coverphoto--big.light-blue-bg .slide_container > div:not(.image) {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        flex: auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    /* Reset marginesu dla odwróconego układu na mobile */
    .coverphoto--big .light-blue-bg.light-blue-bg-reverted .content {
        margin-left: 0;
    }

    /* Dodatkowy margines dla obrazka w odwróconym układzie */
    .coverphoto--big .light-blue-bg.light-blue-bg-reverted .image {
        margin-top: 10px;
        margin-bottom: 10px;
    }

