* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Tajawal", sans-serif;
    color: #0c2d4a;
}

.header {
    background-color: rgb(5, 5, 133);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
}

.hero {
    background-color: rgb(3, 249, 192);
    text-align: center;
    padding: 70px 20px;
}

.title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: rgb(5, 5, 133);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
}

.courses {
    padding: 40px 20px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card1 {
    text-decoration: none;
    color: inherit;
}

.card {
    width: 260px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.card-img {
    height: 195px;
    background-size: cover;
    background-position: center;
}

.img-1 { background-image: url("../img/course-01.jpeg"); }
.img-2 { background-image: url("../img/course-02.jpeg"); }
.img-3 { background-image: url("../img/course-03.jpg.jpeg"); }

.card-title {
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px 15px;
}

.trainer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: cover;
}

.avatar-1 { background-image: url("../img/trainer-1.jpeg"); }
.avatar-2 { background-image: url("../img/trainer-2.jpg.jpeg"); }
.avatar-3 { background-image: url("../img/trainer-3.jpg.jpeg"); }
.avatar-4 { background-image: url("../img/course-03.jpg.jpeg"); }

.time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: gray;
    font-size: 14px;
}

.clock img {
    width: 12px;
    height: 12px;
    display: block;
}

@media (max-width: 768px) {
    .title {
        font-size: 30px;
    }

    .cards {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .card {
        flex-shrink: 0;
    }
}
