.class-section {
    width: 100%;
    padding-top: 12vh;
    padding-left: 10%;
    padding-right: 10%;
    min-height: 80dvh;
}

.class-area {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(30dvw, 1fr));
}

/* Card styling */
.card3 {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 200px;
}

/* Image styling */
.card3 .image {
    flex: 0 0 200px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.card3 .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description styling */
.card3 .desc {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card3 .card-row {
    margin-bottom: 5px;
}

.card3 button {
    padding: 8px 12px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .class-area {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .card3 {
        flex-direction: column;
        height: auto;
    }

    .card3 .image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
}