.wag-textflashlight-container {
    width: 100%;
    position: relative;
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    min-height: 600px;
}

.wag-textflashlight-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #3B5762;
    z-index: 1;
}

.wag-textflashlight-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 90%;
    position: absolute;
    left: 5%;
    top: 10px;
    z-index: 3;
    padding: 30px;
}

.wag-textflashlight-heading {
    color: #ffffff;
    text-align: left;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    width: 100%;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wag-textflashlight-description {
    color: #f0f0f0;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
    width: 100%;
    margin: 0;
}

.wag-textflashlight-graphic {
    position: absolute;
    width: 100%;
    height: 40%;
    bottom: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
}

.wag-textflashlight-graphic::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('/static/wagtail/blocks/flashlighttext/flashlight.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
}


/* Адаптивность */
@media (max-width: 900px) {
    .wag-textflashlight-container {
        height: 650px;
    }

    .wag-textflashlight-content {
        width: 90%;
        left: 5%;
        top: 80px;
        padding: 25px;
    }

    .wag-textflashlight-heading {
        font-size: 28px;
    }

    .wag-textflashlight-description {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .wag-textflashlight-container {
        height: 700px;
    }

    .wag-textflashlight-content {
        width: 92%;
        left: 4%;
        top: 60px;
        padding: 20px;
        gap: 20px;
    }

    .wag-textflashlight-heading {
        font-size: 24px;
    }

    .wag-textflashlight-description {
        font-size: 16px;
        line-height: 1.5;
    }
}