* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Readex Pro", sans-serif;
}

/* Header padding */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #cad3e0ab;
    z-index: 1000;
}

body {
    padding-top: 100px;
    justify-content: center;
    align-items: center;
}

.title {
    background: rgb(21, 21, 100);
}

.title h2 {
    color: #fdc938;
    font-size: 32px;
    text-transform: uppercase;
    margin-top: 2px;
    border-radius: 15px;
    padding: 7px;
    text-align: center;
}

.title p {
    font-size: 24px;
    padding: 7px;
    color: white;
    margin-top: 20px;
    text-align: center;
    margin-bottom: 50px;
}

h3 {
    color: #1335ad;
    font-size: 27px;
    text-transform: uppercase;
    margin-top: 50px;
    margin-bottom: 15px;
    border-radius: 3px;
    padding: 10px;
    text-align: center;
}

section {
    position: relative;
    height: 500px;
    width: 1200px;
    display: flex;
    align-items: center;
    margin-right: 350px;
}

.swiper {
    width: 1500px;
}

.container {
    border-radius: 20px;
    width: 1500px;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 0;
}

.card .image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-left: 95px;
    margin-bottom: 5px;
}

.card .image img {
    width: 185%;
    height: 108%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 3px 3px 2px 2px rgba(169, 167, 167, 0.616);
}

.card {
    position: relative;
    background: #000;
    border: 3px solid rgb(21, 21, 100);
    border-radius: 20px;
}

.card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px;
    background: #f4f4f4f3;
    border-top-left-radius: 10px;
}

.card .card-content {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 30px;
}

.card .name-profession {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 10px;
    color: rgb(21, 21, 100);
}

.card .discount-ribbon {
    position: absolute;
    top: 55px;
    left: -42px;
    background-color: red;
    color: white;
    padding: 5px 20px;
    transform: rotate(-50deg);
    border-top-left-radius: 5px;
    border-top-left-radius: 200px;
    border-bottom-left-radius: 0px;
}

.card .discount-text {
    font-size: 16px;
    font-weight: bold;
}


.name-profession .name {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.name-profession p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 7px;
    margin-top: 5px;
}

.card .button {
    display: flex;
    justify-content: space-around;
    width: 110%;
    margin-top: 20px;
}

.card .button button {
    background: rgb(21, 21, 100);
    border: none;
    outline: none;
    color: #fff;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: .3s;
}

.card .button button:hover {
    background: #fdc938;
}

.swiper-pagination-bullet {
    height: 7px;
    width: 26px;
    background: rgb(21, 21, 100);
    border-radius: 25px;
}

.swiper-button-next,
.swiper-button-prev {
    color: rgb(21, 21, 100);
}

.swiper-button-next {
    right: -5%;
    left: auto;
}

.swiper-button-prev {
    left: -5%;
    right: auto;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #fdc938;
}

.search-section {
    text-align: center;
}

.search-section button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: rgb(21, 21, 100);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 20px;
}

.search-section button:hover {
    background-color: #fdc938;
}

.more-scools-title {
    margin: 0;
    padding: 0;
    color: #1335ad;
    font-size: 29px;
    text-transform: uppercase;
    margin-left: 0;
    text-align: center;
}

.more-scools-title h3 {
    text-align: center;
    margin-top: 70px;
}

.cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.profile-card {
    position: relative;
    width: 300px;
    padding: 20px;
    background-color: #f4f4f4f3;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    margin: 10px;
    /* Add margin between cards */
    flex: 1 0 300px;
    /* Allow cards to grow and shrink based on available space */
    box-shadow: 3px 3px 10px 5px rgba(169, 167, 167, 0.616);
    transition: 0.2s ease;
}

.profile-card img {
    height: 300px;
    width: 300px;
}

.profile-card:hover {
    transform: translateY(-10px);
}

/* Discount ribbon */
.profile-card .discount-ribbon {
    position: absolute;
    top: 20px;
    left: -35px;
    background-color: red;
    color: white;
    padding: 5px 20px;
    transform: rotate(-40deg);
    border-top-right-radius: 25px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 25px;
}

.profile-card .discount-text {
    font-size: 16px;
    font-weight: bold;
}

.school-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: auto;
}

.school-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    position: relative;
}

.school-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.profile-card h2 {
    margin-bottom: 10px;
    color: rgb(21, 21, 100);
    font-size: 23px;
}

.profile-card p {
    margin-bottom: 5px;
    color: #525252;
}

.profile-card .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgb(21, 21, 100);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 5px;
}

.profile-card .button:hover {
    background-color: #fdc938;
}


.swiper {
    width: 1500px;
}

@media only screen and (max-width: 1613px) {
    body {
        align-items: center;
        justify-content: center;
    }

    .container {
        padding: 20px;
    }

    .title h2 {
        font-size: 28px;
    }

    .title p {
        font-size: 20px;
        margin-bottom: 30px;
    }

    section {
        width: 100%;
        margin-right: 0;
    }

    .swiper {
        width: 100%;
    }

    .swiper-button-next,
    .swiper-button-prev {
        top: 50%;
        transform: translateY(-50%);
    }

    .swiper-button-next {
        right: 1%;
    }

    .swiper-button-prev {
        left: 1%;
    }

    .container {
        width: 100%;
    }

    .card {
        width: 90%;
        margin: 0 auto;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 360px) {
    body {
        align-items: center;
        justify-content: center;
        padding-top: 75px;
    }

    .container {
        padding: 20px;
    }

    .title h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 23px;
    }

    .title p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    section {
        width: 100%;
        margin-right: 0;
    }

    .swiper {
        width: 100%;
    }

    .swiper-button-next,
    .swiper-button-prev {
        top: 50%;
        transform: translateY(-50%);
    }

    .swiper-button-next {
        right: 1%;
    }

    .swiper-button-prev {
        left: 1%;
    }

    .container {
        width: 100%;
    }

    .card {
        width: 90%;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .card .discount-ribbon {
        position: absolute;
        top: 55px;
        left: -45px;
        background-color: red;
        color: white;
        padding: 5px 20px;
        transform: rotate(-50deg);
        border-top-left-radius: 300px;
        border-top-right-radius: 400px;
        border-bottom-right-radius: 50px;
    }

    /* Discount ribbon */
    .profile-card .discount-ribbon {
        position: absolute;
        top: 25px;
        left: -45px;
        background-color: red;
        color: white;
        padding: 5px 20px;
        transform: rotate(-40deg);
        border-top-right-radius: 100px;
        border-bottom-right-radius: 0px;
        border-top-left-radius: 50px;
        border-bottom-left-radius: 10px;
    }

    .profile-card h2 {
        margin-bottom: 10px;
        color: rgb(21, 21, 100);
        font-size: 20px;
    }

    .card .name-profession .name {
        font-size: 20px;
    }
}
