/* client testimonial */
.client-cards {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.client-cards.visible {
    opacity: 1;
    transform: translateY(0);
}

.search-wrapper {
    display: inline-flex;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #e1f1f9;
    border-radius: 50px;
    overflow: hidden;
    width: 45px;
    transition: width 0.4s ease;
    padding: 5px;
    min-height: 45px;
    position: relative;
}

.search-box.expanded {
    width: 250px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    padding: 5px 10px;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 0;
    transition: opacity 0.3s ease;
}

.search-box.expanded {
    width: 250px;
}

.search-box.expanded input {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.search-box button {
    background-color: #fa923d;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.search-box button:hover {
    background-color: #fa923d;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    margin-bottom: 1rem;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.client-info img {
    margin-right: 10px;
}

.client-name {
    font-weight: bold;
    margin: 0;
}

.client-position {
    font-size: 14px;
    margin: 0;
    color: gray;
}

#loader {
    text-align: center;
    padding: 20px;
    color: #555;
}

/* hero section image */
.hex-container {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    /* background: linear-gradient(to right,#f2bf93, #f27c15); */
    background: linear-gradient(to right, #c3eeff, #27b0e5);
    display: flex;
    justify-content: center;
    align-items: center;
    /* filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.987)) */
    /* filter: drop-shadow(0 -156px 224px rgba(198, 238, 255, 550.9)); */
}

.hex-inner {
    width: 95%;
    height: 95%;
    clip-path: inherit;
    background-image: url("https://images.unsplash.com/photo-1600880292089-90e6a5abb9ec");
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hex-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hex-shadow-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 11 / 10;
    margin: 0 auto;
    /* filter: drop-shadow(0 -156px 224px rgba(233, 125, 30, 550.9)); */
    filter: drop-shadow(0 -156px 224px rgba(162, 223, 247, 0.886));
}
.hexagon {
    width: 419px;
    height: 365px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    overflow: hidden;
    position: relative;
    top: 425px;
    z-index: 5;
    left: 133px;
}
.hex-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}
.hex-container-sub {
    bottom: 200px;
    z-index: -5;
    position: relative;
    left: 10px;
    width: 100%;
    height: 100%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background-color: #c3eeff07;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.987));
}

.codechain-header {
    position: relative !important;
    z-index: 10 !important;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.card {
    background-color: transparent;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 365px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.case-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
}

.case-description {
    color: var(--gray);
    line-height: 1.5;
}
.card-stats {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.stat-box {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c7890;
    margin-top: 0.25rem;
}

.case-divider {
    width: 1px;
    height: 100%;
    background-color: #d1d5db;
    margin: 0 1rem;
}
.recognition {
    /* margin-top: 20px; */
    padding: 10px;
}

.client-details {
    text-align: left;
}

/* .case-studies-section .card {
  opacity: 0;
  transform: scale(0.9) translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: transform, opacity;
}

.case-studies-section .card.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
} */

/* .swiper {
    width: 100%;
    max-width: 1210px;
    margin: auto;
    border-radius: 8px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    padding: 40px 13px;
} */

.swiper {
  overflow: hidden;
  width: 100%;
  max-width: 1210px;
  margin: auto;
  position: relative;
}

.swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
  will-change: transform;
  align-items: stretch;
}

.swiper-slide {
  flex: 0 0 calc(33.3333%);
  max-width: calc(33.3333%);
  box-sizing: border-box;
  padding: 40px 13px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Tablet: 2 cards */
@media (max-width: 1024px) {
  .swiper-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Mobile: 1 card */
@media (max-width: 767px) {
  .swiper-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.case-study-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
    /* width: 400px !important; */
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 700px !important;
    /* height: auto !important; */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.case-study-card img {
    /* width: 100%; */
    width: 345px;
    /* height: auto; */
    height: 200px;
    border-radius: 6px;
    margin-bottom: 10px;
    user-select: none;
}

.case-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.case-description {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 12px;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    font-size: 0.85em;
    color: #777;
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.swiper-pagination-bullet {
    background: #999;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: #007aff;
}

@media (min-width: 1025px) {
    .case-study-container {
        max-width: 1235px !important;
    }
}

@media (max-width: 1199px) {
    .swiper-slide {
        display: flex !important;
        justify-content: center;
        align-items: stretch;
    }
    .case-study-card {
        width: 90vw;
        max-width: 400px;
        max-height: 500px;
        padding: 20px 15px;
        font-size: 14px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .case-study-card img {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 767px) {
    .swiper {
        padding: 10px 5px;
    }

    .case-study-card {
        width: 90vw;
        max-width: 400px;
        /* height: 430px; */
        /* height: auto !important; */
        max-height: 500px;
        padding: 20px 15px;
        font-size: 13px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .case-study-card img {
        width: 100%;
        height: 200px;
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .case-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .case-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .card-stats {
        font-size: 13px;
        justify-content: space-around;
    }
}
.case-study-card {
  display: flex;
  flex-direction: column;
  height: 100%; 
}
