/* Card Container */
.flip-card {
    background-color: transparent;
    width: 100%;
    min-height: 540px; /* Reduced height to better match the design */
    perspective: 1000px;
    margin-bottom: 2rem;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Card Faces */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 540px; /* Matched with container */
    backface-visibility: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
    background-color: white;
    color: black;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.flip-card-back {
    background-color: white;
    color: #1a1a1a;
    transform: rotateY(180deg);
    padding: 2.5rem;
}

/* Content Styling */
.achievement-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: #FEE2E2;
    color: #8B0000;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.challenge-bullet {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.challenge-bullet::before {
    content: "â€¢";
    position: absolute;
    left: 0;
    color: #8B0000;
}

/* Turn Indicator */
.turn-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .flip-card {
        min-height: 520px; /* Kept consistent with mobile for better proportions */
    }
    
    .flip-card-front, .flip-card-back {
        min-height: 520px;
    }
}

/* Carousel Container */
.carousel-container {
    overflow: hidden;
    padding: 1rem 0;
}

.case-studies-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 1.25rem;
}

/* Content Spacing */
.company-logo {
    margin-bottom: 1.5rem;
}

blockquote {
    margin: 1.5rem 0;
}

.text-center.mb-6 {
    margin-bottom: 1.5rem;
}

.carousel-container {
    overflow: hidden;
    padding: 1rem 0;
    width: 100%;
}

.case-studies-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 1.25rem;
    width: 100%;
}

/* Card Container */
.flip-card {
    background-color: transparent;
    width: 100%;
    min-height: 520px;
    perspective: 1000px;
    margin-bottom: 2rem;
}

/* Ensure proper width for slides */
.w-full.md\:w-1\/2.lg\:w-1\/3.flex-shrink-0.px-3 {
    width: calc(33.333% - 1rem); /* Adjust for 3 columns with gap */
    flex: 0 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .w-full.md\:w-1\/2.lg\:w-1\/3.flex-shrink-0.px-3 {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .w-full.md\:w-1\/2.lg\:w-1\/3.flex-shrink-0.px-3 {
        width: 100%;
    }
}

.carousel-container {
    overflow: hidden;
    padding: 1rem 0;
    width: 100%;
    position: relative;
}

.case-studies-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    width: 100%;
}

.case-studies-track > div {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

/* Navigation button hover effects */
.carousel-container button:hover {
    background-color: #f3f4f6;
    transform: translateY(-50%) scale(1.1);
    transition: all 0.2s ease-in-out;
}

/* Hide navigation buttons on mobile */
@media (max-width: 768px) {
    .carousel-container button {
        display: none;
    }
}

.view-more-btn svg {
    transition: transform 0.3s ease;
}
.content-details {
    transition: all 0.3s ease;
}