/* Flexible Cards Block Styles */

.flexible-cards-section {
    /*  background-color: #F8F8F8;
     overflow-x: hidden; Prevent horizontal scrollbar */
}

.flexible-cards-grid-wrapper {
    display: flex;
    gap: 32px
}

/* Section Header */
.flexible-cards-section .section-header {
    text-align: center;
    margin-bottom: 32px;
}

.flexible-cards-section .section-header h2 {
    font-weight: 600;
    font-size: 36px;
    line-height: 1.3;
    color: #00414c;
    margin: 0;
}

/* Cards Grid Container */
.flexible-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    overflow: visible;
    /* Prevent scrollbar */
}

/* Individual Card */
.flexible-card {
    background: #FFFFFF;
    border: 1.5px solid rgba(0, 65, 76, 0.1);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 394px;
    margin: 0 auto;
}

/* Card Image Section */
.flexible-card-image {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.flexible-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Gradient Overlay 
 .flexible-card-image::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(
         to bottom,
         rgba(0, 0, 0, 0) 39.508%,
         rgba(0, 0, 0, 0.45) 65%,
         rgba(0, 0, 0, 0.9) 100%
     );
     z-index: 2;
     pointer-events: none;
 }*/

/* Vector Overlay (decorative shape) */
.flexible-card-image::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    background: url('../../assets/images/vector_overlay.svg') no-repeat;
    background-size: contain;
    z-index: 3;
    pointer-events: none;
    width: 163px;
    height: 119px;
}

/* Card Overlay Title */
.flexible-card-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
}

.flexible-card-overlay h3 {

    font-weight: 600;
    font-size: 25px;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0;
    white-space: pre-wrap;
}

/* Card Content Section */
.flexible-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    /* Prevent flex items from overflowing */
    justify-content: space-between;
}

/* Card Description Container */
.flexible-card-content .card-description {
    flex: 0 0 auto;
    margin-bottom: 0;
    padding-bottom: 16px;
}

/* Card Description */
.flexible-card-content p {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #303230;
    margin: 0 0 16px 0;
}

/* Card Features List */
.flexible-card-content ul {
    list-style: disc;
    margin: 0 0 0 0;
    padding-left: 24px;

    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #303230;
}

/* Text container with padding bottom */
.flexible-card-content .card-description>*:last-child {
    margin-bottom: 16px;
}

.flexible-card-content ul li {
    margin-bottom: 6px;
}

.flexible-card-content ul li:last-child {
    margin-bottom: 0;
}

.flexible-card-content ul li span {
    display: block;
    line-height: 1.3;
}

.flexible-card-content .btn-secondary {}

/* ========== Flexible Cards Block-Specific Swiper Styles ========== */
/* Note: Common Swiper core styles are in mobile-style.css */

/* Tablet Styles (768px - 991px) - Swiper will be active */
@media (max-width: 991px) and (min-width: 768px) {
    .flexible-cards-section .section-header h2 {
        font-size: 32px;
    }
}

/* ========== Desktop Styles (992px and up) ========== */
@media (min-width: 992px) {

    /* Desktop: Grid layout, no swiper */
    .flexible-cards-grid.swiper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        overflow: visible;
    }

    .flexible-cards-grid .swiper-wrapper {
        display: contents;
        /* Let children flow into grid */
    }

    .flexible-cards-grid .swiper-slide {
        width: auto ;
        flex: 1;
    }

    /* Hide pagination on desktop */
    .flexible-cards-grid .swiper-pagination {
        display: none;
    }
}

/* ========== Mobile/Tablet Styles (below 992px) ========== */
@media (max-width: 991px) {

    .flexible-card-content {
        align-items: center;
    }

    /* Enable Swiper on mobile */
    .flexible-cards-grid {
        display: block;
        overflow: hidden;
    }

    /* Swiper wrapper active on mobile */
    .flexible-cards-grid.swiper .swiper-wrapper {
        display: flex;
        gap: 0;
        align-items: stretch;
    }

    /* Slides take full width on mobile */
    .flexible-cards-grid.swiper .swiper-slide {
        display: flex;
        width: 100% ;
        flex-shrink: 0;
        height: auto;
    }

    .flexible-card {
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    .flexible-card-image {
        height: 200px;
        padding: 20px;
    }

    .flexible-card-overlay h3 {
        font-size: 22px;
    }

    .flexible-card-content {
        padding: 20px;
    }

    .flexible-card-content p {
        font-size: 15px;
    }

    .flexible-card-content ul {
        font-size: 15px;
    }

    .flexible-card-content .btn-secondary {
        font-size: 18px;
        /* padding: 10px 20px; */
        min-width: 180px;
        /* width: 100%; */
    }

}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .flexible-cards-section .section-header h2 {
        font-size: 24px;
    }

    .flexible-card-image {
        height: 180px;
        padding: 16px;
    }

    .flexible-card-overlay h3 {
        font-size: 20px;
    }

    .flexible-card-content {
        padding: 16px;
    }

    .flexible-card-content .btn-secondary {
        /* font-size: 16px; */
        /* padding: 10px 16px; */
    }
}