/*==========================================================HEADER SECTION=====================================================================*/
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: var(--main-color);
}

.header-img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.header-img {
    width: 45em;
    height: auto;
    margin: auto;
}

.header-container {
    width: 100%;
    margin-top: 4rem;
    text-align: center;
}

.header-title {
    margin: auto;
    width: 35%;
}

.header-container h1 {
    color: var(--background-color);

}

/*========================================================INTRODUCTION section====================================================================*/
.introduction {
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.intro-container {
    width: 83%;
    max-width: 1133px;
    margin: auto;
    margin-bottom: 5rem;
    text-align: center;
}

.intro-container p {
    margin: auto;
    text-align: center;
}

.ads {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
    line-height: 21px;
    width: 100%;
    justify-content: center;
    margin: auto;

}

.ad {
    min-height: 200px;
    min-width: 300px;
}

.ad p {
    margin-top: 25%;
    margin-bottom: 0.8rem;
    color: var(--text-color2);
    font-weight: 600;
    font-size: 1em;
}

.item-ad {
    background-color: var(--main-color);
    background-size: cover;
    text-align: center;

}

.read-more {
    font-size: 14px;
    font-weight: semi bold;

}

#hidden-content {
    opacity: 0;
    overflow: hidden;
    max-height: 0;
    transition: all 0.8s ease-out;
}

/*==============================================================NEWS SECTION===============================================================*/
.grid-layout {
    margin: 2rem auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.grid-layout .grid-item>* {
    min-width: 300px;
    min-height: 300px;
    max-width: 300px;
    max-height: 300px;
    object-fit: fill;
}

.grid-layout .grid-item a {
    display: block;
    min-width: 300px;
    min-height: 300px;
    max-width: 300px;
    max-height: 300px;
    object-fit: fill;
}

.grid-layout .grid-item-video {
    width: 300px;
    height: 400px;
    background-color: black;
}

.latest-news h1 {
    margin-left: 8.7rem;
    margin-bottom: 3rem;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.partners-section {
    flex-wrap: wrap;
}

/*==================================Testimonials section ==============================*/
.testimonials-container {
    background-color: white;
    color: #000;
    text-align: center;
    width: 100%;
    max-width: 1133px;
    margin: 2em auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.testimonials-pair {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 80%;
    margin: auto;
    gap: 2rem;
}


.testimonial {
    width: 100%;
    background-color: rgb(53, 150, 200);
    padding: 20px;
    text-align: left;
    transition: font-size 0.2s;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.testimonial:nth-child(odd) {
    background-color: rgb(0, 30, 70);
}
.testimonial:nth-child(odd) .testimonial-footer h3,
.testimonial:nth-child(odd) .testimonial-footer h4{
    color:rgb(53, 150, 200);
}
.testimonial-header {
    display: flex;
}

.testimonial-header img {
    width: 100px;
    height: 100px;
    border-radius: 0%;
    margin-top: 25px;
    margin-right: 20px;
}

.testimonial-header div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.testimonial-header p {
    margin-top: 20px;
    font-size: 1em;
    color: white;
}

.testimonial-footer {
    margin: 2rem 0rem auto 120px;
}

.nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 0px;
    box-sizing: border-box;
}

.nav-buttons button {
    background-color: transparent;
    border: none;
    color: black;
    font-size: 2em;
    cursor: pointer;
}

.nav-buttons button:hover {
    color: #00a2e8;
}

/*==================================partners section ==============================*/

.slider {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    background: transparent;
    height: 400px;
    margin: auto;
    overflow: hidden;
    width: 83%;
    max-width: 1133px;
    margin-bottom: -8rem;
}

.slider::before,
.slider::after {
    height: 200px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    display: flex;
    align-items: center;
    animation: scroll 600s linear infinite;
    width: 100%;
}

.slide {
    display: flex;
    align-items: center;
    height: 200px;
    width: 350px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 300));
    }
}

.partner {
    width: 130px;
    height: auto;
    margin: 4em;
}

/*==========================video section ================================*/
#image-track::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #001E46;
}

#image-track::-webkit-scrollbar {
    width: 6px;
    height: 10px;
    background-color: #001E46;
}

#image-track::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #3596C8;
}

#image-track {
    display: flex;
    gap: 1rem;
    margin-top: 5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.snaps-inline {
    scroll-snap-type: inline mandatory;
}

.snaps-inline>* {
    scroll-snap-align: start;
}

#image-track>.image {
    width: 100vmin;
    height: 56vmin;
    object-fit: cover;
    object-position: 100% center;
}
/*=======================================================MEDIA===========================================================*/
@media screen and (max-width:1300px) {
    .header {
        flex-direction: column;
    }

    .header-img-container {
        margin: auto;
    }
}

@media screen and (max-width:1160px) {
    .header-img-container {
        width: 2rem;
        justify-content: center;
        margin: auto;
    }

    /*========================Testimonials section========================*/
    .testimonials-container {
        max-width: 90%;
    }

    .testimonials-pair {
        flex-direction: column;
    }

    .testimonial {
        width: 100%;
        height: 225px;
    }

    .testimonial-header h3 {
        font-size: 1.2em;
    }

    .testimonial-header p {
        font-size: 0.9em;
    }

    .nav-buttons button {
        font-size: 1.5em;
    }
}

@media screen and (max-width:900px) {
    .header-title {
        margin: auto;
        width: 70%;
    }

    .header-img {
        width: 350px;
        margin: auto;
    }

    /*========================Testimonials section========================*/
    .testimonials-container {
        max-width: 98%;
    }

    .testimonials-sub-container {
        max-width: 85%;
    }

    .testimonials-pair-mob {
        flex-direction: column;
        justify-content: center;
        margin: auto;
        gap: 2rem;
    }

    .testimonials-pair-mob a {
        width: 100%;
    }

    .testimonial-mob {
        background-color: rgb(53, 150, 200);
        padding: 20px;
        text-align: left;
        transition: font-size 0.2s;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        color: white;
        width: 100%;
        height: 370px;
    }

    .testimonial-mob:nth-child(odd) {
        background-color: rgb(0, 30, 70);
    }
    .testimonial-mob:nth-child(2n+1) .testimonial-footer-mob h3,
    .testimonial-mob:nth-child(2n+1) .testimonial-footer-mob h4{
        color:rgb(53, 150, 200);
    }
    .testimonial-footer-mob img {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .testimonial-header-mob p {
        display: flex;
        margin-top: 20px;
        color: white;
        font-size: 0.9em;
    }

    .testimonial-footer-mob {
        margin: 1rem 0 1rem 0;
    }

    .nav-buttons {
        top: 54%;
    }

    .nav-buttons button {
        font-size: 1.5em;
    }

}

@media screen and (max-width:450px) {
    /*========================Testimonials section========================*/
    .testimonial-header-mob h3 {
        font-size: 1em;
    }

    .testimonial-header-mob p {
        font-size: 0.8em;
    }

    .nav-buttons button {
        font-size: 1.2em;
    }
}