.values {
    color: black;
    text-align: center;
    padding: 10px;
}

.values h1 {
    color: RED;
}

.card-section {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between rows */
    align-items: center; /* Center the rows */
}

.card-row {
    display: flex;
    gap: 20px;
    justify-content: center; /* Center the cards within each row */
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

.card {
    position: relative;
    width: 400px; /* Default card width */
    height: 500px; /* Default card height */
    background: limegreen;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Card hint */
.card-hint {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    background: limegreen;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card:hover .card-hint {
    opacity: 0; /* Hint fades out */
}

/* Card content */
.card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.card:hover .card-content {
    opacity: 1; /* Details fade in */
}

.card-content h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
}

.card-content p {
    font-size: 0.9rem;
    margin-top: 10px;
}

.card-content a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.card-content a:hover {
    background: darkred;
}

/* Image styles */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.card:hover img {
    opacity: 0.2; /* Dim the image */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .card {
        width: 300px; /* Smaller card width */
        height: 400px; /* Adjust height */
    }
}

@media (max-width: 992px) {
    .card {
        width: 250px; /* Further reduce card size */
        height: 350px;
    }

    .card-content h3 {
        font-size: 1.2rem; /* Adjust font size */
    }

    .card-content p {
        font-size: 0.8rem; /* Adjust paragraph font size */
    }
}

@media (max-width: 768px) {
    .card-row {
        flex-direction: column; /* Stack cards vertically */
        align-items: center;
    }

    .card {
        width: 80%; /* Take up 80% of the screen width */
        height: auto; /* Maintain aspect ratio */
    }

    .card img {
        height: auto; /* Adjust image height for responsiveness */
    }
}

@media (max-width: 576px) {
    .card {
        width: 100%; /* Take full width */
    }

    .values h1 {
        font-size: 1.5rem; /* Smaller heading font size */
    }
}
