/**
 * A2Z Side Text Widget Styles
 */

.a2z-side-text-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 60px;
    /* Space between image and text */
}

/* Layout Orientation (controlled by Elementor class prefix) */
.a2z-side-text-right .a2z-side-text-container {
    flex-direction: row-reverse;
}

/* RTL Language Support (Automatic flip for Arabic etc.) */
[dir="rtl"] .a2z-side-text-container {
    flex-direction: row-reverse;
}

/* Prevent double-flip if both RTL and Right-position toggle are active */
[dir="rtl"].a2z-side-text-right .a2z-side-text-container {
    flex-direction: row;
}

/* Image Column */
.a2z-side-text-image-col {
    flex: 0 0 548px;
    /* Fixed width on desktop */
    height: 598px;
    /* Fixed height on desktop */
    overflow: hidden;
    border-radius: 4px;
}

.a2z-side-text-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Column */
.a2z-side-text-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Label with Line */
.a2z-side-text-label-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.a2z-side-text-line {
    width: 40px;
    height: 1px;
    background-color: #1a1a1a;
    display: block;
}

.a2z-side-text-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin: 0;
}

/* Title */
.a2z-side-text-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    /* Increased from 24px */
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 0 0 30px 0;
}

/* Description */
.a2z-side-text-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #666666;
    margin: 0;
}

.a2z-side-text-description p {
    margin-bottom: 20px;
}

.a2z-side-text-description p:last-child {
    margin-bottom: 0;
}

/* Entrance Animation Styles */
.a2z-side-text-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .a2z-side-text-container {
        gap: 40px;
    }

    .a2z-side-text-image-col {
        flex: 0 0 45%;
        height: 450px;
    }
}

@media (max-width: 767px) {
    .a2z-side-text-container {
        flex-direction: column !important;
        /* Stack regardless of orientation toggle */
        gap: 30px;
        padding: 24px;
    }

    .a2z-side-text-image-col {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 548 / 598;
    }

    .a2z-side-text-title {
        font-size: 24px;
        /* Increased from 20px */
    }

    .a2z-side-text-description {
        font-size: 14px;
    }
}