.full-width-section {
    width: 100%;
    background-color: #f9f9f9;
    padding: 60px 20px;
    box-sizing: border-box;
    text-align: center;
}

.full-width-section h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #111;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* distribute cards evenly */
    gap: 20px; /* gap between cards */
}

.cards::-webkit-scrollbar {
    height: 6px; /* scrollbar height */
}

.cards::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.card {
    flex: 0 1 calc(20% - 20px); /* Flexible: grow=1, shrink=1, basis=20% minus gap */
    min-width: 140px; /* Prevent cards from becoming too small */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    opacity: 0; /* start hidden for animation */
}

/* Hover effect */
.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 0.8em;
    margin-bottom: 10px;
    color: #222;
}

.card p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.4em;
}

/* Sliding animations */
@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

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

.cards .card.slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.cards .card.slide-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Responsive adjustments */
@media screen and (max-width: 1000px) {
    .card {
        flex: 0 1 calc(20% - 20px); /* 3 cards per row */
    }
}

@media screen and (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .card {
        flex: 1 1 80%; /* full width on mobile */
    }
}