/**
 * About Story Widget Styles
 * Our Story section with image and text
 * Version: 1.0
 */

/* ==========================================================================
   Container
   ========================================================================== */

.boundless-about-story {
    padding: 0px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.story-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-icon {
    font-size: 33px;
    margin-bottom: 15px;
    display: inline;
}

.story-section-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-content.image-left {
    grid-template-columns: 1fr 1fr;
}

.story-content.image-right {
    grid-template-columns: 1fr 1fr;
}

.story-content.image-right .story-image-wrapper {
    order: 2;
}

.story-content.image-right .story-text-wrapper {
    order: 1;
}

/* ==========================================================================
   Image Wrapper
   ========================================================================== */

.story-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.story-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-image-wrapper:hover .story-image {
    transform: scale(1.05);
}

.story-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    pointer-events: none;
}

/* ==========================================================================
   Text Wrapper
   ========================================================================== */

.story-text-wrapper {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.story-accent-line {
    width: 80px;
    height: 4px;
    margin-bottom: 25px;
    border-radius: 2px;
}

.story-heading {
    font-size: 34px;
    font-weight: 650;
    margin-bottom: 25px;
    line-height: 1.3;
    display: inline;
}

.story-text {
    font-size: 18px;
    line-height: 1.8;
}

.story-text p {
    margin-bottom: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .story-content,
    .story-content.image-left,
    .story-content.image-right {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-content.image-right .story-image-wrapper,
    .story-content.image-right .story-text-wrapper {
        order: unset;
    }

    .story-image {
        height: 400px;
    }

    .story-heading {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .boundless-about-story {
        padding: 60px 15px;
    }

    .story-header {
        margin-bottom: 40px;
    }

    .story-icon {
        font-size: 36px;
    }

    .story-image {
        height: 300px;
    }

    .story-heading {
        font-size: 28px;
    }

    .story-text {
        font-size: 16px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .boundless-about-story {
        background: #fff;
        padding: 20px 0;
    }

    .story-image-wrapper {
        box-shadow: none;
        page-break-inside: avoid;
    }

    .story-image {
        height: auto;
        max-height: 400px;
    }

    .story-image-overlay {
        display: none;
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

[dir="rtl"] .story-content.image-right .story-image-wrapper {
    order: 1;
}

[dir="rtl"] .story-content.image-right .story-text-wrapper {
    order: 2;
}

[dir="rtl"] .story-content.image-left .story-image-wrapper {
    order: 2;
}

[dir="rtl"] .story-content.image-left .story-text-wrapper {
    order: 1;
}
