/* ================= Main Code ===================== */

.container {
    width: 91%;
    margin-left: 5%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    margin-top: 20px;
    gap: 15px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding-bottom: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    margin-bottom: 20px;
}

/* 🔥 Responsive Video Wrapper */
.card iframe {
    width: 95%;
    aspect-ratio: 16 / 9;
}

/* Title */
.card h3 {
    font-size: 20px;
    margin: 12px 0 6px;
}

/* Description */
.card p {
    margin: 3px 12px;
    font-size: 14px;
    line-height: 1.4;
}

/* ================= Tablet ================= */

@media (max-width: 900px) {
    .container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        width: 95%;
        margin-left: 2.5%;
    }
}

/* ================= Mobile ================= */

@media (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
        padding: 0 10px;
    }

    .card {
        margin: 10px 0;
    }

    .card h3 {
        font-size: 16px;
    }
}