.services-hero-banner {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.services-hero-title {
    font-size: 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #92857A;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.services-hero-underline {
    width: 120%;
    height: 4px;
    background-color: #92857A;
    margin: 20px auto 0;
    position: relative;
    left: calc(-20% + 20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.services-repeater-section {
    background-color: #E6E0DA;
    padding: 30px 0;
    margin-top: 0px;
    width: 100%;
}

.services-repeater-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.service-repeater-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    margin-bottom: 3px;
}

.service-repeater-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.service-repeater-link {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.service-repeater-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-repeater-image::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.service-repeater-item:hover .service-repeater-image {
    transform: scale(1.02);
}

.service-repeater-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
    z-index: 2;
}

.service-repeater-item:hover .service-repeater-title-overlay {
    background: rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%) scale(1.02);
}

.service-title-decorator {
    width: 30px;
    height: 3px;
    background-color: white;
}

.service-repeater-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
    text-align: center;
    line-height: 1.2;
    text-overflow: ellipsis;
    max-width: 400px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.service-repeater-link:focus {
    outline: 3px solid #92857A;
    outline-offset: 3px;
}

.service-repeater-link:focus .service-repeater-title-overlay {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #92857A;
}

.page-template-page-usluga .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 !important;
}

.service-new-hero-banner {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-new-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
}

.service-new-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-direction: row;
}

.service-new-hero-title {
    font-size: 35px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    text-align: center;
}

.service-new-title-decorator {
    width: 80px;
    height: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-new-separator-bar {
    width: 100%;
    height: 2px;
    background-color: #E6E0DA;
    margin: 0;
}

.service-new-content {
    display: flex;
    background-color: #ffffff;
    line-height: 1.6;
    color: #333;
    flex-direction: column;
    align-items: center;
}

.service-new-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-new-content h1,
.service-new-content h2,
.service-new-content h3,
.service-new-content h4,
.service-new-content h5,
.service-new-content h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 30px;
}

.service-new-content h1 {
    font-size: 32px;
    margin-top: 0;
}

.service-new-content h2 {
    font-size: 28px;
}

.service-new-content h3 {
    font-size: 24px;
}

.service-new-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-new-content ul,
.service-new-content ol {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 30px;
}

.service-new-content li {
    margin-bottom: 8px;
}

@media (max-width: 1024px) {
    .services-hero-title {
        font-size: 35px;
        letter-spacing: 3px;
    }

    .services-hero-underline {
        width: 110%;
        left: -5%;
    }

    .service-repeater-image {
        height: 280px;
    }

    .service-repeater-title {
        font-size: 22px;
        letter-spacing: 1.5px;
        max-width: 350px;
    }

    .service-title-decorator {
        font-size: 26px;
    }

    .service-new-hero-title {
        font-size: 35px;
    }

    .service-new-title-decorator {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .services-hero-banner {
        height: 350px;
    }

    .services-hero-title {
        font-size: 31px;
        letter-spacing: 3px;
    }

    .services-hero-underline {
        width: 100%;
        left: 0;
        height: 3px;
    }

    .services-repeater-section {
        padding: 30px 0;
    }

    .service-repeater-image {
        height: 250px;
    }

    .service-repeater-title-overlay {
        padding: 15px 30px;
        gap: 15px;
    }

    .service-repeater-title {
        font-size: 18px;
        letter-spacing: 1px;
        max-width: 280px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .service-title-decorator {
        font-size: 22px;
    }

    .service-new-hero-banner {
        height: 350px;
    }

    .service-new-hero-title {
        font-size: 35px;
    }

    .service-new-title-container {
        gap: 15px;
    }

    .service-new-title-decorator {
        width: 50px;
        height: 3px;
    }
    .service-new-hero-content {
        max-width: 480px;
    }
    .service-new-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .service-repeater-title-overlay {
        backdrop-filter: none !important;
    }

    .services-hero-banner {
        height: 200px;
    }
    body .service-new-hero-content {
        max-width: 320px;
    }
    .services-hero-title {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .services-hero-underline {
        height: 2px;
        margin: 15px auto 0;
    }

    .service-repeater-image {
        height: 200px;
    }

    .service-repeater-title-overlay {
        padding: 12px 25px;
        gap: 12px;
    }

    .service-repeater-title {
        font-size: 16px;
        letter-spacing: 0.5px;
        max-width: 220px;
    }

    .service-title-decorator {
        font-size: 20px;
    }

    .service-new-hero-banner {
        height: 200px;
    }

    .service-new-hero-title {
        font-size: 20px;
    }

    .service-new-title-container {
        gap: 12px;
    }

    .service-new-title-decorator {
        width: 40px;
        height: 2px;
    }

    .service-new-container {
        padding: 0 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-repeater-item,
    .service-repeater-image,
    .service-repeater-title-overlay {
        transition: none;
    }

    .service-repeater-item:hover {
        transform: none;
    }

    .service-repeater-item:hover .service-repeater-image {
        transform: none;
    }

    .service-repeater-item:hover .service-repeater-title-overlay {
        transform: translate(-50%, -50%);
    }

    .service-new-hero-title {
        text-shadow: none;
    }

    .service-new-title-decorator {
        box-shadow: none;
    }
}

@media (prefers-contrast: high) {
    .services-hero-title {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    }

    .service-repeater-title-overlay {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid #fff;
    }

    .service-repeater-title,
    .service-title-decorator {
        color: #fff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    }

    .service-new-hero-title {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    }
}