/* Outer container */
.bonbloc-case-studies {
    background: url('<?= plugin_dir_url(__FILE__); ?>home/case_study_hero_bg.png') repeat-x;
    padding: 60px 20px;
    font-family: "Nunito", sans-serif;
    text-align: center;
}
.bonbloc-case-studies,
.bonbloc-case-studies * {
    font-family: "Nunito", sans-serif !important;
}
.case-card img.desktop-img { display: block; }
.case-card img.mobile-img { display: none; }

/* Heading */
.bonbloc-case-studies h2 {
    color: #000;
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 40px;
    /*color: #000;*/
}

/* Swiper container wrapper */
.swiper.bonbloc-case-swiper {
    /*padding-bottom: 40px;*/
}

/* Case card slide */
.case-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform 0.3s ease;
    max-width: 900px;
    margin: auto;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
}

/* Case image */
.case-card img {
    width: 200px;
    padding: 15px;
    height: auto;
    object-fit: cover;
    
}

/* Case content */
.case-content {
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
}

.case-content h3 {
    color: #000;
    font-size: 22px;
    font-weight: bold;
   gap:5px;
   
}

.case-content p {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    text-align: justify;
    /*line-height: 1.6;*/
}

/* View More button */
.case-content .view-more {
    display: inline-block;
              /* Adds space above the button */
    padding: 5px 6px;               /* Compact padding for a smaller button */
     background-color: #CEF4FF;     /* Light background color */
    color: #000000;                 /* Blue text color */
    border-radius: 8px;             /* Slightly rounded corners */
  font-size: 14px;
    font-weight: bold;            /* Lighter font weight */
    text-decoration: none;          /* Removes underline */
    white-space: nowrap;            /* Keeps the text in one line */
    width: 100px;                    /* Width adjusts to the content */
    text-align:center;
}




.case-content .view-more:hover {
   color: #000;

}
.swiper-pagination {
    position: relative !important; /* Override default absolute position */
    margin-top: 60px;              /* Push it further down */
    text-align: center;            /* Center align dots */
}


/* Swiper pagination dots */
.swiper-pagination-bullet {
 
    background: #003366;
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    
    opacity: 1;
}
.case-card img.desktop-img {
    width: 200px;
    padding: 15px;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Mobile image hidden by default */
.case-card img.mobile-img {
    display: none;
    width: 100%;      /* Full width on mobile */
    height: auto;
    object-fit: contain;  /* ✅ Show whole image */
    padding: 10px;
    border-radius: 12px;
}


@media (max-width: 768px) {
     .case-card img.desktop-img 
     { display: none; }
    .case-card img.mobile-img
    { display: block; }
    .case-card {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        margin: auto;
    }

    .case-card img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        /*padding: 50px;*/
        display: contain;
        border-radius: 12px; /* ✅ Rounded corners for tablet */
    
        
    }

    .case-content {
        padding: 15px;
        text-align: center;
        align-items: center;
    }

    .case-content h3 {
        font-size: 25px;
    }

    .case-content p {
        font-size: 15px;
        padding: 20px;
          text-align: justify;
    }

    .case-content .view-more {
        margin: 50px;
        font-size: 14px;
        padding: 10px 12px;
         
    }
}

@media (max-width: 480px) {
    .bonbloc-case-studies {
        padding: 40px 15px;
    }

    /*.bonbloc-case-studies h2 {*/
    /*    font-size: 22px !important;*/
    /*}*/

    .case-card {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        margin: auto;
    }

    .case-card img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
        padding: 5px;
        border-radius: 12px; /* ✅ Rounded corners for phones */
    }

    .case-content {
        padding: 12px;
        text-align: center;
        align-items: center;
    }

    .case-content h3 {
        font-size: 24px;
    }

    .case-content p {
        font-size: 18px;
        line-height: 1.5;
    }

    .case-content .view-more {
        font-size: 13px;
        padding: 5px 10px;
        margin-top: 10px;
    }

    .swiper-pagination {
        margin-top: 40px;
    }
}


