/* ========== GENERAL STYLES ========== */

.testimonial-card {
    transition: all 0.5s ease-in-out;
}

.card-center {
    transform: scale(1);
    opacity: 1;
    z-index: 10;
}

.card-side {
    transform: scale(0.8);
    opacity: 0.6;
    z-index: 5;
}

.button-image {
    filter: grayscale(100%);
    transition: all 0.3s ease-in-out;
}

.button-item {
    transition: all 0.3s ease-in-out;
}

.button-item.active {
    background-color: rgb(239 246 255);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.button-item.active .button-image {
    filter: grayscale(0%) brightness(1.1) saturate(1.2);
}

.testimonial-slide {
    transition: all 0.5s ease-in-out;
}

/* Hover Effects */
.bg-blue-50:hover {
    background-color: rgb(239 246 255);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.bg-gray-100:hover {
    background-color: rgb(243 244 246);
    transition: all 0.3s ease;
}


/* ========== MEDIA QUERIES (Max-width: 768px) ========== */

@media (max-width: 768px) {

    /* Feature Section */
    .mobile-feature-container {
        height: auto !important;
    }

    .mobile-img,
    .mobile-overlap-img,
    .mobile-box,
    .mobile-image-col {
        width: 100% !important;
        height: auto !important;
    }

    .mobile-box {
        padding: 1rem !important;
        text-align: center !important;
    }

    .mobile-text-box {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .mobile-overlap-img {
        margin-top: 1rem !important;
    }

    .mobile-image-col {
        margin-left: 0 !important;
    }

    .mobile-section-wrapper {
        flex-direction: column !important;
    }

    /* Footer Section */
    footer {
        padding: 2rem 1rem;
    }

    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    footer .space-y-4 img,
    footer .text-sm,
    footer h4,
    footer ul li a,
    footer input,
    footer button,
    footer p {
        text-align: center;
        width: 100%;
    }

    footer .space-y-4,
    footer .space-y-2 {
        align-items: center;
        text-align: center;
    }

    footer .flex.items-center.space-x-2 {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    footer .text-gray-700 span,
    footer .text-gray-700 a {
        display: block;
    }

    footer .bg-blue-50 {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    footer .bg-blue-50 .flex.items-center.space-x-8 {
        justify-content: center;
        gap: 1.5rem;
    }

    footer .flex.items-center.space-x-2 img {
        width: 20px;
        height: auto;
    }

    footer .flex.items-center.space-x-2 span,
    footer .flex.items-center.space-x-2 a {
        font-size: 13px;
    }

    /* Headings and Buttons */
    h2.text-5xl {
        font-size: 1.5rem !important;
        text-align: center;
    }

    .faq-toggle {
        font-size: 1rem !important;
        padding: 1rem !important;
    }

    .faq-content,
    .faq-content ul li span {
        font-size: 0.875rem !important;
    }

    .filter-btn {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
    }

    button.px-10 {
        padding: 0.5rem 1.25rem !important;
        font-size: 0.875rem !important;
    }

    /* Utilities */
    .mobile-hide {
        display: none !important;
    }

    .responsive-stack {
        flex-direction: column !important;
        text-align: center;
        gap: 1rem;
    }

    .responsive-stack h2 {
        font-size: 1.5rem !important;
    }

    .responsive-stack button {
        width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
/* For mobile devices up to 768px */
@media (max-width: 768px) {
  #testimonialContainer {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 0 12px;
    
  }#testimonialContainer::-webkit-scrollbar {
    display: none; 
  }

  .testimonial-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    width: 80% !important;
    height: auto !important;
  }

  .testimonial-card.active {
    opacity: 1;
    transform: none; /* Disable scale on smaller screens to maintain size */
  }

  .testimonial-card > div:first-child {
    height: auto !important;
    padding: 20px !important;
  }

  .testimonial-card > div:last-child {
    height: auto !important;
    padding: 20px 10px !important;
  }

  .testimonial-card img {
    width: 84px !important;
    margin-bottom: 1rem;
  }

  .testimonial-card .text-xl {
    font-size: 1rem !important;
  }

  .testimonial-card .font-semibold {
    font-size: 1rem !important;
  }

  .testimonial-card .w-32 {
    width: 6rem !important;
  }
}
