:root {
    --bg-gold: gold;
    --bg-light: #f3f3f3;
    --bg-white: #ffffff;
}

 * {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-white);
}

.whatsapp-button {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 5px 20px;
    box-shadow: 0px 8px 24px rgba(47, 168, 29, 0.305);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-button img {
    width: 32px;
    height: 32px;
}

.whatsapp-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0px 8px 32px rgba(50, 180, 30, 0.305)
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    animation: pulse 2s infinite;
    opacity: 0.5;
    z-index: -1;
}

@keyframes pulse {
    0% {transform: scale(1);
    opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.offers {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #5B9BD5;
    z-index: 1000;
}

.small-screen-offer {
    display: none;
}

.p-offers-content {
    margin: 0;
    padding: 0.8rem;
    font-size: 1rem;
    text-align: center;
    animation: breath 2s ease-in-out infinite;
    color: white;
    font-weight: bold;
}

@keyframes breath {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-1%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* header */

.header-container {
    margin-top: 3rem;
    border-bottom: 1px solid skyblue;
    padding: 0px;
}

header {
    display: flex;
    align-items: center;
    padding: 1rem 3rem;
    justify-content: space-between;
    max-width: 1400px;
    margin: auto;
}

.header-brand {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    width: 90px;
    height: 90px;
}

.academy-title {
    margin: 0;
    color: #340B16;
    font-size: 24px;
}

.small-screen-title {
    display: none;
}

.header-nav {
    display: flex;
    flex-direction: row;
    font-size: 32px;
    font-weight: 600;
    align-items: center;
    gap: 1rem;
    color: #340B16;
}

.header-nav a:hover {
    transform: scale(1.1);
}

.fa-facebook {
    color: #1877f2;
    transition: transform 0.3s ease;
}

.fa-instagram {
    color: #e1306c;
    transition: transform 0.3s ease;
}

.fa-whatsapp {
    color: #25d366;
    transition: transform 0.3s ease;
}

.fa-linkedin {
    color: #0077b5;
    transition: transform 0.3s ease;
}

.header-contact {
    margin: 0;
}

/* main */

.main-container {
    background: rgba(135, 207, 235, 0.123);
}

main {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: auto;
    padding: 80px 48px 80px 48px;
}

.intro {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    margin-top: 2rem;
}

.p-intro-content {
    margin: 0;
    padding: 0;
    font-size: 32px;
    color: #323232;
    animation: fadeInLeft 1s ease forwards;
}

.p2-intro-content {
    margin: 0;
    padding: 0;
    font-size: 20px;
    color: #333333;
    animation: fadeInLeft 3s ease forwards;
}

.p3-intro-content {
    border-top: 1px solid skyblue;
    margin: 0;
    padding-top: 1rem;
    font-size: 20px;
    color: #333333;
    text-align: center;
    animation: fadeInLeft 6s ease forwards;
}

.intro-media {
    flex: 1;
    aspect-ratio: 16/9;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}

/* testimonials*/

.testimonials {
    margin: 48px 0px 80px 0px;

}

.testimonials-content {
    display: flex;
    flex-direction: column;
    margin: auto;
    align-items: center;
    overflow: hidden;
    padding: 32px 0px;
    gap: 64px;
}

.testimonials-title {
    font-size: 30px;
    font-weight: bold;
    color: #333;    
    margin: 0;
    padding-bottom: 1rem;
    position: relative;
    text-align: center;
}

.testimonials-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 4px;
    background: skyblue;
}

.small-screen-testimonials {
    display: none;
}

.carousel {
    display: flex;
    flex: 1;
    max-width: 100%;
}

.testimonials-cards {
    display: flex;
    flex-direction: row;
    animation: carousel 50s linear infinite;
    max-width: 4660px;
}

.card-box {
    background-color: white;
    border-radius: 25px;
    margin: 0px 2rem 0px 0px;
    padding: 1rem;
    min-width: max-content;
    border: 1px solid deepskyblue;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

.card-text p {
    max-width: 400px;
    font-size: 18px;
    margin: 0;
    color: #000000;
}

.bottom-right-card-box {
    display: flex;
    align-items: end;
    padding-top: 32px;
    gap: 1rem;
    border-top: solid 1px deepskyblue;
}

.student-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.student-info {
    display: flex;
    flex-direction: column;
}

.student-name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.course-name {
    font-size: 0.9rem;
    color: #333333;
    margin: 0;
}

@keyframes carousel {
    from {
        translate: 0;
    }

    to {
        translate: -50%;
    }
}

/* services */

.services {
    background: rgba(135, 207, 235, 0.123);
}

.services-content {
    display: flex;
    margin: auto;
    flex-direction: column;
    align-items: center;
    padding: 80px 0px 80px 0px;
    gap: 32px;
}

.p-separator {
    font-weight: bold;
    font-size: 28px;
    color: #333;
    padding-bottom: 16px;
    border-radius: 1rem;
    margin: 0;
    position: relative;
    text-align: center;
}

.p-separator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 4px;
    background: skyblue;
}

/* services card slider */

.slide-container {
    max-width: 1400px;
    width: 100%;
    padding-top: 0px;
}

.slide-content {
    margin: 0 20px;
    border-radius: 25px;
    overflow: hidden;
}

.card {
    border-radius: 25px;
    background-color: white;
    border: 1px solid skyblue;
}

.image-content,
.card-content {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    align-items: center;
}

.image-content {
    /* working as a 'mini world' for overlay*/
    position: relative;
    row-gap: 5px;
    padding: 25px;
}

.overlay {
    position: absolute;
    /* looks for an ancestor with a positioning context */
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 25px 25px 0 25px;
}

.overlay::before,
.overlay::after {
    position: absolute;
    background-color: rgb(255, 255, 255);
    width: 40px;
    height: 40px;
    right: 0;
    bottom: -40px;
}

.overlay::after {
    border-radius: 0 25px 0 0;
    background-color: #ffffff;
}

.card-image {
    position: relative;
    height: 200px;
    width: 200px;
    border-radius: 50%;
}

.card-image .card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    padding: 0;
    margin: 0;
}

.description {
    font-size: 18px;
    color: #333333;
    border-top: 1px solid gold;
    border-radius: 25px;
    padding: 1rem;
}

.button {
    border: none;
    font-size: 16px;
    color: rgb(255, 255, 255);
    padding: 8px 16px;
    background-color: deepskyblue;
    border-radius: 6px;
    margin: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.button:hover {
    background: gold;
}

.swiper-navBtn {
    color: deepskyblue;
    transition: color 0.3s ease;
    height: 20px;
}

.swiper-button-prev,
.swiper-button-next {
    width: auto;
}

.swiper-navBtn:hover {
    color: gold;
}

.swiper-pagination-bullet {
    background-color: deepskyblue;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: gold;
}

/* contact */

.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 16px 48px 16px;
    border-top: solid 1px gold; 
    background: #5B9BD5;
}

.contact p {
    font-size: 26px;
    color: white;
    text-align: center;
    font-weight: bold;
}

/* footer */
footer {
    background-color: #1A2B4C;
    text-align: center;
}

.footer-text {
    margin: 0;
    padding: 32px;
    font-size: 16px;
    color: gray;
}

/* Tablets and cellphones */

@media screen and (max-width: 1023px) {
    .big-screen-offer {
        display: none;
    }

    .small-screen-offer {
        display: inline;
    }

    main {
        padding: 0px 0px 1rem 0px;
    }

    header {
        padding: 1rem 0px 1rem 0px;
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .small-screen-logo {
        display: inline;
    }

    .intro {
        padding: 0;
        flex-direction: column;
        margin: auto;
        align-items: normal;
        gap: 1rem;
    }

    .long-title {
        display: none;
    }

    .small-screen-title {
        display: inline;
    }

    .header-contact {
        display: none;
    }

    .p-intro-content {
        text-align: center;
    }

    .p2-intro-content {
        display: none;
    }

    .testimonials-title {
        text-align: center;
    }

    .slide-content {
        margin: 0 10px;
    }

    .swiper-navBtn {
        display: none;
    }

    .big-screen-contact {
        display: none;
    }
}

@media screen and (max-width: 320px) {
    .big-screen-testimonials {
        display: none;
    }

    .small-screen-testimonials {
        display: inline;
    }


}