.flipp-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.flipp-card-teal,
.flipp-card-purple,
.flipp-card-dark {
    width: 350px;
    height: 350px;
    transition: all 0.4s;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 30px;
    font-weight: 900;
    position: relative;
    overflow: hidden;
}

.flipp-card-dark {
    background: #424242;
}

.flipp-card-teal {
    background: #00aca6;
}

.flipp-card-purple {
    background: #ad0089;
}

.flipp-card-teal:hover,
.flipp-card-purple:hover,
.flipp-card-dark:hover {
    border-radius: 15px;
    cursor: pointer;
    /*transform: scale(1.05);*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.flipp-card-teal:hover {
    background: #ad0089;
}

.flipp-card-purple:hover {
    background: #00aca6;
}

.flipp-card-dark:hover {
    background: #424242;
}

.flipp-first-content {
    height: 100%;
    width: 100%;
    transition: all 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    border-radius: 10px;
    overflow: hidden;
}

.flipp-first-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.4s;
}

.flipp-card-teal:hover .flipp-first-content,
.flipp-card-purple:hover .flipp-first-content,
.flipp-card-dark:hover .flipp-first-content {
    height: 0px;
    opacity: 0;
}

.flipp-second-content {
    height: 0%;
    width: 100%;
    opacity: 0;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    transition: all 0.4s;
    transform: rotate(90deg) scale(-1);
    color: white;
}

.flipp-second-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.flipp-second-content p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

.flipp-second-content .btn {
    padding: 8px 20px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    margin-top: 10px;
}

.flipp-second-content .btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.flipp-card-purple:hover .flipp-second-content,
.flipp-card-teal:hover .flipp-second-content,
.flipp-card-dark:hover .flipp-second-content {
    opacity: 1;
    height: 100%;
    transform: rotate(0deg);
    font-size: inherit;
}

.flipp-heading {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.flipp-list {
    list-style-position: inside;
    padding-left: 10px;
    text-align: left;
}

.flipp-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    position: relative;
    font-weight: normal;
}

.flipp-dots-container {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
}

.flipp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.flipp-dot-dark {
    background-color: #424242;
}

.flipp-dot-purple {
    background-color: #ad0089;
}

.flipp-dot-white {
    background-color: white;
}

.flipp-dot-teal {
    background-color: #00aca6;
}

@media (max-width: 1100px) {
    .flipp-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .flipp-grid-container {
        grid-template-columns: 1fr;
    }

    .flipp-card-teal,
    .flipp-card-purple,
    .flipp-card-dark {
        width: 100%;
        height: 320px;
        font-size: 24px;
    }

    .flipp-card-teal:hover,
    .flipp-card-purple:hover,
    .flipp-card-dark:hover {
        transform: scale(1.05);
    }

    .flipp-card-purple:hover .flipp-second-content,
    .flipp-card-teal:hover .flipp-second-content .flipp-card-dark:hover .flipp-second-content {
        font-size: 1.5rem;
    }
}

/* Add these CSS rules to your stylesheet */

/* Class for auto-flipped cards on mobile */
@media (max-width: 768px) {

    .flipp-card-teal.auto-flip .flipp-first-content,
    .flipp-card-purple.auto-flip .flipp-first-content,
    .flipp-card-dark.auto-flip .flipp-first-content {
        height: 0px;
        opacity: 0;
        transition: all 0.8s ease;
        /* Gentler transition */
    }

    .flipp-card-teal.auto-flip .flipp-second-content,
    .flipp-card-purple.auto-flip .flipp-second-content,
    .flipp-card-dark.auto-flip .flipp-second-content {
        opacity: 1;
        height: 100%;
        transform: rotate(0deg);
        font-size: inherit;
        transition: all 0.8s ease 0.2s;
        /* Slightly delayed and gentler transition */
    }

    /* Make the hover effect still work for mobile (in case user taps to flip back) */
    .flipp-card-teal.auto-flip:hover .flipp-first-content,
    .flipp-card-purple.auto-flip:hover .flipp-first-content,
    .flipp-card-dark.auto-flip:hover .flipp-first-content {
        height: 100%;
        opacity: 1;
    }

    .flipp-card-teal.auto-flip:hover .flipp-second-content,
    .flipp-card-purple.auto-flip:hover .flipp-second-content,
    .flipp-card-dark.auto-flip:hover .flipp-second-content {
        opacity: 0;
        height: 0%;
        transform: rotate(90deg) scale(-1);
    }
}