header {
    .first-p {
        font-size: 28px;
        margin: 4px 0;
    }
}


.beforeafter-page {
    .beforeafter {
        background-color: #f8f8f8;
        padding: var(--spacing-l) 14px 56px;
        text-align: center;

        .beforeafter-inner {
            max-width: 1200px;
            margin: 0 auto;

            h1 {
                color: #c45c8b;
                font-size: 2rem;
                font-weight: bold;
                margin-bottom: var(--spacing-m);
                position: relative;
                line-height: 1.4;

                &::after {
                    content: "";
                    display: block;
                    width: 80px;
                    height: 3px;
                    background-color: #c45c8b;
                    margin: 0.8rem auto 0;
                    border-radius: 2px;
                }

                @media (width <=768px) {
                    font-size: 1.5rem;

                    &::after {
                        width: 50px;
                        height: 2px;
                    }
                }
            }

            .intro {
                font-size: 1rem;
                color: #555;
                margin-bottom: var(--spacing-m);
            }

            .layout {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: var(--spacing-s);
                justify-items: center;
                margin-top: var(--spacing-s);

                @media (width <=1024px) {
                    grid-template-columns: repeat(2, 1fr);
                }

                @media (width <=768px) {
                    grid-template-columns: 1fr;
                    gap: 2rem;
                }

                .success-card {
                    background: #fff;
                    border-radius: 1rem;
                    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
                    padding: 1.5rem;
                    width: 100%;
                    max-width: 500px;
                    margin: 0 auto;
                    text-align: center;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;

                    .photo-comparison {
                        display: flex;
                        justify-content: space-between;
                        gap: 1rem;
                        margin-bottom: 1rem;

                        img {
                            width: 100%;
                            border-radius: 0.5rem;
                            object-fit: cover;
                        }

                        @media (width <=480px) {
                            flex-direction: column;
                            gap: 0.5rem;

                            img {
                                width: 100%;
                            }
                        }
                    }

                    .profile {
                        font-size: 0.95rem;
                        color: #777;
                        margin-bottom: 0.5rem;
                    }

                    .catch {
                        font-size: 1.25rem;
                        font-weight: bold;
                        color: #e91e63;
                        margin-bottom: 0.75rem;
                    }

                    .message {
                        font-size: 1rem;
                        color: #444;
                        line-height: 1.6;
                    }
                }
            }

            .cta-area {
                margin-top: 4rem;
                padding: 3rem 1.5rem;
                background: linear-gradient(135deg, #c2f0e0, #f5fdf8);
                border-radius: 1.5rem;
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
                text-align: center;
                position: relative;
                overflow: hidden;

                &::before {
                    content: '';
                    position: absolute;
                    top: -20%;
                    right: -20%;
                    width: 200px;
                    height: 200px;
                    background: radial-gradient(circle, rgba(72, 239, 192, 0.25), transparent);
                    z-index: 0;
                    border-radius: 50%;
                }

                .cta-message {
                    font-size: 1.2rem;
                    font-weight: 600;
                    color: #2e7d5f;
                    margin-bottom: 1rem;
                    z-index: 1;
                    position: relative;
                }

                .cta-button {
                    display: inline-block;
                    font-weight: bold;
                    padding: 0.85rem 2.5rem;
                    font-size: 1.05rem;
                    border-radius: 2rem;
                    text-decoration: none;
                    transition: all 0.3s ease;
                    z-index: 1;
                    position: relative;
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

                    &.cta-primary {
                        background-color: #28b48d;
                        color: #fff;

                        &:hover {
                            background-color: #21a07d;
                            transform: scale(1.05);
                        }

                        &:active {
                            transform: scale(0.97);
                        }
                    }

                    &.cta-secondary {
                        background-color: #c45c8b;
                        color: #fff;

                        &:hover {
                            background-color: #b24a79;
                            transform: scale(1.05);
                        }

                        &:active {
                            transform: scale(0.97);
                        }
                    }
                }

                @media (width <=768px) {
                    padding: 2rem 1rem;

                    .cta-message {
                        font-size: 1.05rem;
                    }

                    .cta-button {
                        font-size: 1rem;
                        padding: 0.75rem 2rem;
                    }
                }

                @media (width <=480px) {
                    .cta-button {
                        display: block;
                        width: 100%;
                        max-width: 320px;
                        margin: 0.75rem auto;
                    }
                }
            }


        }

    }
}