/**
 * Intro Widget Styles
 */

.image-text-section-wrapper {
    position: relative;
    padding: 80px 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* Decorative Shape */
.image-text-section-shape {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.image-text-section-shape img {
    display: block;
    max-width: 350px;
    height: auto;
    transform: scale(0);
    transform-origin: top right;
    opacity: 0;
    transition: transform 1s ease-out, opacity 0.8s ease-out;
}

.image-text-section-shape.animate img {
    transform: scale(1);
    opacity: 1;
}

@keyframes shapeZoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.image-text-section-wrapper .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Image Section */
.image-text-section-image {
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.image-text-section-wrapper.animate .image-text-section-image {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.image-text-section-wrapper.image-right .image-text-section-image {
    transform: translateX(50px);
}

.image-text-section-wrapper.image-right.animate .image-text-section-image {
    transform: translateX(0);
}

.image-text-section-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

/* Content Section */
.image-text-section-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Label */
.image-text-section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #C9302C;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.image-text-section-wrapper.animate .image-text-section-label {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.image-text-section-label-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #C9302C;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.9rem;
}

.image-text-section-label-text {
    font-size: 1rem;
}

/* Heading */
.image-text-section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #C9302C;
    line-height: 1.3;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.image-text-section-wrapper.animate .image-text-section-heading {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Description */
.image-text-section-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333333;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.image-text-section-wrapper.animate .image-text-section-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.image-text-section-description p {
    margin: 0 0 15px;
}

.image-text-section-description p:last-child {
    margin-bottom: 0;
}

/* Button */
.image-text-section-button {
    display: inline-block;
    padding: 16px 45px;
    background-color: #C9302C;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 35px;
    box-shadow: 0 4px 15px rgba(201, 48, 44, 0.3);
    align-self: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, background-color 0.3s ease;
}

.image-text-section-wrapper.animate .image-text-section-button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.image-text-section-button:hover {
    background-color: #A52A26;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 48, 44, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Layout - Image Right */
.image-text-section-wrapper.image-right .container {
    grid-template-columns: 1fr 1fr;
}

.image-text-section-wrapper.image-right .image-text-section-image {
    order: 2;
}

.image-text-section-wrapper.image-right .image-text-section-content {
    order: 1;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .image-text-section-wrapper .container {
        gap: 60px;
    }

    .image-text-section-wrapper {
        padding: 60px 0;
    }

    .image-text-section-heading {
        font-size: 2.2rem;
    }

    .image-text-section-shape img {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .image-text-section-wrapper .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .image-text-section-wrapper {
        padding: 50px 0;
    }

    .image-text-section-wrapper.image-right .image-text-section-image,
    .image-text-section-wrapper.image-right .image-text-section-content {
        order: unset;
    }

    .image-text-section-heading {
        font-size: 1.8rem;
    }

    .image-text-section-description {
        font-size: 1rem;
    }

    .image-text-section-content {
        gap: 20px;
    }

    .image-text-section-shape img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .image-text-section-wrapper .container {
        gap: 30px;
    }

    .image-text-section-wrapper {
        padding: 40px 0;
    }

    .image-text-section-heading {
        font-size: 1.5rem;
    }

    .image-text-section-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .image-text-section-button {
        padding: 14px 35px;
        font-size: 0.95rem;
    }

    .image-text-section-label {
        font-size: 0.9rem;
    }

    .image-text-section-label-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .image-text-section-shape img {
        max-width: 150px;
    }
}
