/**
 * Angie Image Text Slider Styles
 */

/* Container */
.angie-its-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Swiper specific structural fixes */
.angie-its-container .swiper-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition-property: transform;
    box-sizing: content-box;
}

.angie-its-container .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block; /* Ensure it's not flex by default causing internal issues */
}

/* Slide Inner Structure */
.angie-its-slide-inner {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
}

/* Image Column */
.angie-its-image-col {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.angie-its-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

/* Content Column */
.angie-its-content-col {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5; /* Default fallback */
    position: relative;
    z-index: 2;
}

.angie-its-content-inner {
    padding: 60px 40px;
    width: 100%;
    max-width: 600px; /* Prevent too wide text */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Elements */
.angie-its-subtitle {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

.angie-its-title {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 25px 0;
    line-height: 1.2;
    display: block;
}

.angie-its-description {
    margin: 0 0 35px 0;
    font-size: 16px;
    line-height: 1.6;
    display: block;
}

.angie-its-button {
    display: inline-block;
    padding: 14px 28px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
}

.angie-its-button:hover {
    background-color: #333;
    color: #fff;
}

/* Navigation */
.angie-its-container .swiper-button-next,
.angie-its-container .swiper-button-prev {
    color: #000;
    background-color: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.angie-its-container .swiper-button-next:hover,
.angie-its-container .swiper-button-prev:hover {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.angie-its-container .swiper-button-next:after,
.angie-its-container .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.angie-its-container .swiper-pagination {
    z-index: 10;
    bottom: 20px !important;
}

.angie-its-container .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #000;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.angie-its-container .swiper-pagination-bullet-active {
    opacity: 1;
    background: #000;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .angie-its-slide-inner {
        flex-direction: column;
    }
    
    .angie-its-image-col {
        width: 100% !important;
        height: 40% !important; /* Fixed ratio for image on mobile */
        min-height: 250px;
        order: 1;
    }
    
    .angie-its-content-col {
        width: 100% !important;
        height: auto !important; /* Allow content to grow */
        min-height: 60%;
        order: 2;
        padding-bottom: 60px; /* Space for dots */
    }
    
    .angie-its-content-inner {
        padding: 30px 20px;
    }
    
    .angie-its-container {
        height: auto !important; /* Release fixed height on mobile */
        min-height: 600px;
    }
    
    .angie-its-title {
        font-size: 28px;
    }
}
