.about-mission-vision {
	padding: 120px 0;
	background: #fff;
    max-width: 1320px;
    margin: 0 auto;

    @media screen and (max-width: 768px) {
        padding: 60px 20px;
    }

    .amv-title {
        margin: 0;
        font-family: 'Closer Text', sans-serif;
        text-align: left;
        font-size: 18px;
        font-weight: 500;
        line-height: 130%;
        letter-spacing: -0.01em;
        color: #004735;
        border-bottom: 1px solid rgba(0, 71, 53, 0.1);
        padding-bottom: 14px;

        @media screen and (max-width: 768px) {
            font-size: 16px;
        }
    }

    .amv-grid {
        padding: 60px 0 20px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;

        @media screen and (max-width: 768px) {
            padding: 30px 0 30px;
            grid-template-columns: 1fr;
            gap: 14px;
        }

        .amv-card {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            padding: 50px;
            color: #fff;
            min-height: 575px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;

            @media screen and (max-width: 768px) {
                padding: 20px;
                min-height: 375px;
            }

            &.amv-card--mission {
                background: #004735;

                h3 {
                    color: #FFFFFF;
                }

                p {
                    flex: 0 1 260px;
                    color: #CFE2E0;
                    margin-bottom: 40px;

                    @media screen and (max-width: 768px) {
                        flex: unset;
                        margin: 0;
                        max-width: calc(100% - 35px);
                    }
                }

                .amv-image img {
                    left: 20px;
                    object-fit: contain;
                    top: -40px;
                }
            }

            &.amv-card--vision {
                background: #CFE2E0;


                @media screen and (max-width: 768px) {
                    background: url('data:image/svg+xml,<svg width="335" height="372" viewBox="0 0 335 372" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M334.872 234.861C328.752 195.492 302.602 184.234 291.792 179.982C271.093 171.809 241.002 173.977 234.133 173.977C227.263 173.977 161.551 176.396 149.814 175.73C119.895 173.977 95.4204 164.888 79.3312 154.46C35.496 126.105 19.0692 84.5668 12.1999 63.4678C5.24487 42.3688 1.30406 22.1007 0.13154 2.66938C0.0743439 1.79287 0.0343177 0.899283 0 0V372.331H337V253.752C336.468 246.819 335.764 240.524 334.878 234.861H334.872Z" fill="%23CFE2E0"/></svg>');
                    background-repeat: no-repeat;
                    background-size: cover;
                    
                    .amv-image img {
                        max-height: 375px;
                    }
                }

                h3 {
                    color: #013026;
                }

                p {
                    flex: 0 1 280px;
                    color: #004735;
                    @media screen and (max-width: 768px) {
                        flex: unset;
                        max-width: calc(100% - 15px);
                    }
                }

                .amv-image img {
                    object-fit: cover;
                    object-position: top;
                    left: 1px;
                }
            }

            .amv-image img {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                z-index: 0;
            }

            .amv-content {
                position: relative;
                z-index: 2;
                display: flex;
                gap: 50px;

                @media screen and (max-width: 768px) {
                    gap: 12px;
                    flex-direction: column;
                }

                h3 {
                    font-family: 'Closer Text', sans-serif;
                    font-size: 42px;
                    font-weight: 500;
                    line-height: 110%;
                    letter-spacing: -0.02em;
                    margin: 0;

                    @media screen and (max-width: 768px) {
                        font-size: 32px;
                        letter-spacing: -0.01em;
                    }
                }

                p {
                    font-family: 'Closer Text', sans-serif;
                    font-weight: 400;           
                    font-size: 16px;
                    line-height: 130%;
                    letter-spacing: -0.01em;

                    @media screen and (max-width: 768px) {
                        font-size: 14px;
                        letter-spacing: -0.01em;
                    }
                }
            }

        }
    }
}


.amv-btn {
    display: inline-block;
    width: 100%;
    padding: 30px 0px;
    border: 1px solid #004735;
    color: #004d40;
    text-decoration: none;
    border-radius: 20px;
    text-align: center;
    font-family: 'Closer Text', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.01em;

    @media screen and (max-width: 768px) {
        padding: 16px 0px;
        border-radius: 12px;
    }
}
.amv-btn:hover {
	background: #004d40;
	color: #fff;
}

/* Анімація появи */
/* [data-animate] {
	opacity: 0;
	transform: translateY(50px);
	transition: all 0.75s ease-out;
}
[data-animate].visible {
	opacity: 1;
	transform: translateY(0);
} */

/* === Editor Preview Styles for About Mission/Vision === */
.editor-styles-wrapper {
    .amv-preview {
        background: #fff;
        padding: 40px 30px;
        border-radius: 24px;
        border: 1px solid #e0e0e0;
        margin-bottom: 20px;

        .amv-preview-title {
            font-size: 26px;
            font-weight: 600;
            color: #004d40;
            margin-bottom: 32px;
        }

        .amv-preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        .amv-preview-card {
            background: #f5f7f6;
            border-radius: 20px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding: 16px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

            &.amv-mission {
                background: #004d40;
                color: #fff;
            }

            &.amv-vision {
                background: #e9f2ec;
                color: #0a0a0a;
            }

            .amv-preview-img {
                img {
                    width: 100%;
                    height: 160px;
                    object-fit: cover;
                    border-radius: 12px;
                    margin-bottom: 12px;
                    display: block;
                }
            }

            .amv-input {
                width: 100%;
                font-size: 18px;
                font-weight: 600;
                border: none;
                background: transparent;
                outline: none;
                margin-bottom: 6px;
            }

            .amv-textarea {
                width: 100%;
                min-height: 60px;
                border: none;
                resize: none;
                background: transparent;
                color: inherit;
                font-size: 15px;
                line-height: 1.4;
                outline: none;
            }
        }

        .amv-preview-footer {
            text-align: center;
            margin-top: 30px;

            .amv-button-input {
                padding: 10px 24px;
                border-radius: 30px;
                border: 2px solid #004d40;
                background: transparent;
                color: #004d40;
                font-weight: 600;
                text-align: center;
                transition: all 0.3s ease;

                &:focus {
                    outline: none;
                    border-color: #007f5f;
                }
            }

            .amv-footer-note {
                display: block;
                font-size: 12px;
                color: #777;
                margin-top: 8px;
            }
        }

        .amv-media-wrap {
            position: relative;
            cursor: pointer;

            .amv-change-overlay {
                position: absolute;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(0, 0, 0, 0.5);
                color: #fff;
                font-size: 14px;
                font-weight: 500;
                opacity: 0;
                transition: opacity 0.3s ease;
                border-radius: 12px;
            }

            &:hover {
                .amv-change-overlay {
                    opacity: 1;
                }
            }
        }
    }
}