/* ================= RCS Cards Section ================= */

.section-title {
    align-items: center;
    text-align: center;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 cards per row on big screens */
    gap: 25px;
    justify-items: center;
}

/* Cards */
.rcs-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    /* bigger padding */
    width: 100%;
    max-width: 420px;
    /* bigger uniform width */
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    /* stronger shadow */
    text-align: center;
    cursor: pointer;
    overflow: hidden;

    opacity: 0;
    transform: translateY(50px);
    /* start below */
    transition: all 0.6s ease-out;
}

/* Fly directions */
.rcs-card.fly-left.show {
    opacity: 1;
    transform: translateX(0) translateY(0);
    animation: flyLeft 0.6s forwards;
}

.rcs-card.fly-right.show {
    opacity: 1;
    transform: translateX(0) translateY(0);
    animation: flyRight 0.6s forwards;
}

/* Keyframes */
@keyframes flyLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes flyRight {
    0% {
        opacity: 0;
        transform: translateX(100px) translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* Hover effect */
.rcs-card:hover {
    transform: scale(1.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ff4d4d, #ffd700);

}

/* Card content */
.rcs-card .icon {
    font-size: 60px;
    /* bigger icon */
    margin-bottom: 25px;
    color: white;
}

.rcs-card h3 {
    font-size: 2rem;
    /* bigger heading */
    margin-bottom: 20px;
    font-weight: 600;
}

.rcs-card p {
    font-size: 1.2rem;
    /* bigger paragraph */
    line-height: 1.5;
    min-height: 80px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
        /* 3 cards per row */
    }
}

@media (max-width: 900px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards per row */
    }
}

@media (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
        /* 1 card per row */
    }

    .rcs-card {
        padding: 30px 20px;
    }

    .rcs-card .icon {
        font-size: 50px;
        margin-bottom: 20px;
    }

    .rcs-card h3 {
        font-size: 1.6rem;
    }

    .rcs-card p {
        font-size: 1rem;
    }
}

