/*=============== GOOGLE FONTS ===============*/

@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/

:root {
    /*========== Colors ==========*/
    --first-color: hsl(38, 92%, 58%);
    --first-color-light: hsl(36, 45%, 98%);
    --first-color-alt: hsl(30, 27%, 96%);
    --second-color: hsl(195, 75%, 52%);
    --dark-color: hsl(212, 40%, 12%);
    --white-color: hsl(212, 4%, 95%);
    --body-color: hsl(212, 42%, 15%);
    --container-color: hsl(212, 42%, 20%);
    /*========== Font and typography ==========*/
    --body-font: "Bai Jamjuree", sans-serif;
    --h2-font-size: 1.25rem;
    --normal-font-size: 1rem;
}


/*=============== BASE ===============*/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--white-color);
    overflow: hidden;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/*========================= Header Style =====================================*/

header {
    background-color: #0b4368;
    padding: 4px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    color: #fff;
    margin: 5px 0;
    font-size: 1.5em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}


/*=============== CARD ===============*/

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    margin-top: 0.1rem;
    margin-bottom: 70px;
    /* Adjust the margin to create space between the card container and the footer */
    max-height: calc(90vh - 70px);
    /* Adjust the max-height to prevent the container from overflowing into the footer */
}

.card__container {
    padding-block: 2rem;
}

.card__content {
    margin-inline: 1.75rem;
    border-radius: 1.25rem;
    overflow: hidden;
}

.card__article {
    width: 400px;
    /* Decrease the width to your desired size */
    height: 450px;
    /* Decrease the height to your desired size */
    border-radius: 1.25rem;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card__image {
    overflow: hidden;
    border-radius: 50%;
    width: 200px;
    height: 200px;
}

.card__data {
    width: 400px;
    /* Adjust the width to match the width of card__article */
    height: 250px;
    /* Decrease the height to your desired size */
    background-color: var(--container-color);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__name {
    font-size: var(--h2-font-size);
    color: var(--second-color);
    margin-bottom: 0.95rem;
}

.card__description {
    font-weight: 500;
    margin-bottom: 1.75rem;
    margin-left: 20px;
    margin-right: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.card__button {
    display: inline-block;
    background-color: var(--first-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    color: var(--dark-color);
    font-weight: 600;
}


/* Swiper class */

.swiper-button-prev:after,
.swiper-button-next:after {
    content: "";
}

.swiper-button-prev,
.swiper-button-next {
    width: initial;
    height: initial;
    font-size: 3rem;
    color: var(--second-color);
    display: block;
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

.swiper-pagination-bullet {
    background-color: hsl(212, 32%, 40%);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--second-color);
}

@media screen and (max-width: 375px) {
    header h1 {
        font-size: 1.2em;
        margin-bottom: 0.5px;
    }
    .container {
        height: 80vh;
    }
    .card__article,
    .card__data {
        width: 100%;
        height: 100%;
    }
    .swiper-button-next,
    .swiper-button-prev {
        font-size: 2rem;
    }
    /* Adjust font size for small devices */
    .card__name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .card__description {
        font-size: 0.8rem;
        /* Adjust as needed */
        margin-bottom: 0.8rem;
        /* Adjust as needed */
    }
}


/* For medium devices */


/* For medium devices */

@media screen and (max-width: 768px) {
    .card__content {
        margin-inline: 3rem;
    }
    .swiper-button-next,
    .swiper-button-prev {
        display: block;
    }
    /* Adjust font size for medium devices */
    .card__name {
        font-size: 0.8rem;
        /* Adjust as needed */
        margin-bottom: 0.5rem;
        /* Adjust as needed */
        white-space: normal;
        /* Allow text wrapping */
    }
    .card__description {
        font-size: 1rem;
        /* Adjust as needed */
        margin-bottom: 1rem;
        /* Adjust as needed */
    }
}


/* For large devices */

@media screen and (min-width: 1120px) {
    .card__container {
        max-width: 1120px;
    }
    .swiper-button-prev {
        left: -1rem;
    }
    .swiper-button-next {
        right: -1rem;
    }
    /* Adjust font size for large devices */
    .card__name {
        font-size: 1.5rem;
        /* Adjust as needed */
        margin-bottom: 0.95rem;
        /* Adjust as needed */
    }
    /* Adjust font size for large devices */
    .card__description {
        font-size: 1.2rem;
        /* Adjust as needed */
        margin-bottom: 1.2rem;
        /* Adjust as needed */
    }
}


/* For large devices */

@media screen and (min-width: 1120px) {
    .container {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

.card__container {
    max-width: 1120px;
}

.swiper-button-prev {
    left: -1rem;
}

.swiper-button-next {
    right: -1rem;
}


/* Adjust font size for large devices */

.card__description {
    font-size: 1rem;
    /* Adjust as needed */
    margin-bottom: 1.2rem;
    /* Adjust as needed */
}


/* For medium devices */

@media screen and (max-width: 768px) {
    .card__content {
        margin-inline: 3rem;
    }
    .swiper-button-next,
    .swiper-button-prev {
        display: block;
    }
}


/* For large devices */

@media screen and (min-width: 1120px) {
    .card__container {
        max-width: 1120px;
    }
    .swiper-button-prev {
        left: -1rem;
    }
    .swiper-button-next {
        right: -1rem;
    }
}


/* Media query for larger screens */


/*@media screen and (min-width: 376px) {
    .swiper-button-next,
    .swiper-button-prev {
        font-size: 2rem;
        display: block;
    }
}

/* Media query for smaller screens */


/*@media screen and (max-width: 375px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Add styles for the footer */

footer {
    background-color: #0b4368;
    color: #fff;
    padding: 15px;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-family: "Bai Jamjuree", sans-serif;
}


/* Styling the link in the footer (if necessary) */

footer a {
    color: #fff;
    text-decoration: none;
}


/* Media query for smaller screens */

@media screen and (max-width: 375px) {
    footer {
        padding: 2px;
        font-size: 0.7em;
    }
    /* Adjust font size for small screens in the footer */
    .card__description {
        padding: 2px;
        font-size: 0.9em;
        /* Adjust as needed */
    }
}

@media screen and (max-width: 375px) {
    .container {
        height: 80vh;
    }
    .card__article,
    .card__data {
        width: 100%;
        /* Make the cards full width on small screens */
        height: auto;
        /* Adjust the height as needed */
    }
}