/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&family=Poppins:wght@400;600;700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --first-color: rgba(214, 226, 100, 1);
  --first-color-alt: rgba(214, 226, 100, .4);
  --second-color: rgba(36, 64, 52, 1);
  --title-color: rgba(36, 64, 52, 1);
  --text-color: rgba(113, 113, 113, 1);
  --text-color-light: hsl(var(--hue), 4%, 55%);

  /*Green Gradient*/
  /* --body-color: linear-gradient(90deg, hsl(104, 28%, 40%) 0%, hsl(58, 28%, 40%) 100%);
  --container-color: linear-gradient(136deg, hsl(104, 28%, 35%) 0%, hsl(58, 28%, 35%) 100%); */

  /*Red Gradient
  --body-color: linear-gradient(90deg, hsl(360, 28%, 40%) 0%, hsl(18, 28%, 40%) 100%);
  --container-color: linear-gradient(136deg, hsl(360, 28%, 35%) 0%, hsl(18, 28%, 35%) 100%);

  Black Solid
  --body-color: hsl(30, 8%, 8%);
  --container-color: hsl(30, 8%, 10%);*/

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --heading-font: 'Inter', sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.2rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== Margenes Bottom ==========*/
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 992px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
*{
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: var(--body-color);
  color: var(--text-color);
}

h1,h2,h3,h4{
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--heading-font);
}

ul{
  list-style: none;
}

a{
  text-decoration: none;
}

img{
  width: 100%;
  height: auto;
}

button,
input{
  border: none;
  outline: none;
}

button{
  cursor: pointer;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section{
  padding: 4.5rem 0 2rem;
}

.section__title{
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2);
  text-align: center;
}

/*=============== LAYOUT ===============*/
.container{
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid{
  display: grid;
}

.main{
  overflow: hidden; /*For animation*/
}

/*=============== HEADER ===============*/
.header{
  width: 100%;
  background: var(--first-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo{
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-medium);
}

.nav__logo-img{
  width: 80px;
}

.nav__link,
.nav__logo,
.nav__toggle,
.nav__close{
  color: var(--title-color);
}

.nav__toggle{
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .nav__menu{
    position: fixed;
    width: 100%;
    background: var(--first-color);
    top: -150%;
    left: 0;
    padding: 3.5rem 0;
    transition: .4s;
    z-index: var(--z-fixed);
    border-radius: 0;  
  }
}

.nav__img{
  width: 100px;
  position: absolute;
  top: 0;
  left: 0;
}

.nav__close{
  font-size: 1.8rem;
  position: absolute;
  top: .5rem;
  right: .7rem;
  cursor: pointer;
}

.nav__list{
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1.5rem;
}

.nav__link{
  text-transform: uppercase;
  font-weight: var(--font-bold);
  transition: .4s;
}

.nav__link:hover{
  color: var(--text-color);
}
  
/* Show menu */
.show-menu{
  top: 0;
}

/* Change background header */
.scroll-header{
  background:var(--first-color);
}

/* Active link */
.active-link{
  position: relative;
}

.active-link::before{
  content: '';
  position: absolute;
  bottom: -.75rem;
  left: 45%;
  width: 5px;
  height: 5px;
  background-color: var(--title-color);
  border-radius: 50%;
}

/*=============== HOME ===============*/
.home__content{
  row-gap: 1rem;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.home__hero-banner{
    margin-top: 0;
    background-position: top right;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    justify-content: center;
    display: flex;
    align-items: center;
    padding: 20px;
}

.home__data{
    color: #fff;
    max-width: 560px;
}

.home__group{
  display: grid;
  position: relative;
  padding-top: 2rem;
}

.home__details-title,
.home__details-subtitle{
  display: block;
  font-size: var(--small-font-size);
  text-align:right;
}

.home__subtitle{
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: #fff;
}

.home__title{
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  line-height: 109%;
  margin-bottom: var(--mb-1);
  color: #fff;
}

.home__description{
  margin-bottom: var(--mb-1);
}

.home__buttons{
  display: flex;
}

.home__buttons .button{
    margin-right: 1rem;
}

/* Swiper Class */
.swiper-pagination{
  position: initial;
  margin-top: var(--mb-1);
}

.swiper-pagination-bullet{
  width: 5px;
  height: 5px;
  background-color: var(--title-color);
  opacity: 1;
}

.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{
  margin:0 .5rem;
}

.swiper-pagination-bullet-active{
  width: 1.5rem;
  height: 5px;
  border-radius: .5rem;
}

/*=============== VISION ===============*/
.vision__container{
    row-gap: 2rem;
}

.vision__data{
    display: flex;
    flex-wrap: wrap;
}

.vision__text-icon{
    display: block;
}

.icon img{
    width: 50px;
}

.vision__text-icon-content h2{
    margin-bottom: var(--mb-1);
    font-size: var(--h2-font-size);
}

.vision__description p{
    margin-bottom: var(--mb-2);
}

/*=============== BUTTONS ===============*/
.button{
  display: inline-block;
  background-color: var(--first-color);
  color: var(--title-color);
  padding: .6rem 1.2rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .3s;
}

.button--second{
    background-color: var(--second-color);
    color: #fff;
}

.button:hover{
  background-color: #F5F7FA;
}

.button--second:hover{
    color: var(--title-color);
}

.button__icon{
  font-size: 1.25rem;
}

.button--ghost{
  border: 2px solid;
  background-color: transparent;
  border-radius: 3rem;
  padding: .75rem 1.5rem;
}

.button--ghost:hover{
  background: none;
}

.button--link{
  color:var(--title-color);
}

.button--flex{
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
}
/*=============== CATEGORY ===============*/

.category{
    background-color: var(--first-color-alt);
    padding: 4rem 1rem;
}

.category__container{
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem 2rem;
}

.category__data{
  text-align: center;
  padding: 3rem 2rem;
  background-color: #fff;
  border-radius: 20px;
  position: relative;
}

.category__img{
  width: 50px;
  margin-bottom: var(--mb-0-75);
  transition: .3s;
  position: relative;
  z-index: 2;
}

.category__data span{
    position: absolute;
    width: 50px;
    height: 50px;
    left: 48%;
    top: 50px;
    z-index: 1;
}

.category__title{
  margin-bottom: var(--mb-1);
}

.category__data:hover .category__img{
  transform: translateY(-.5rem);
}

/*=============== ABOUT ===============*/
.about__container{
  row-gap: 2rem;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--mb-2-5);
}

.about__data{
  text-align: center;
  width: 100%;
  max-width: 364px;
}

.about__description{
  margin-bottom: var(--mb-2);
}

.about__img,
.program__img{
  width: 100%;
  justify-self: center;
}

.image-position{
    flex-direction: column;
}

.about::nth-of-type(odd) .about__container .about__data{
    order: 2;
}

.about::nth-of-type(odd) .about__container img{
    order: 1;
}

/*=============== OUR PROGRAMS ===============*/

.program{
    background-color: var(--first-color-alt);
}

.program__container{
    display: flex;
    flex-wrap: wrap;
}
.program__content{
    row-gap: 2rem;
    display: flex;
    flex-wrap: wrap;
}

.program__title{
    margin-bottom: var(--mb-1);
    text-align: left;
}

.program__description{
    text-align: center;
    margin-bottom: var(--mb-2);
    padding: 0 2rem;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

/*=============== FOOTER ===============*/
.footer{
  position: relative;
  overflow: hidden;
  background-color: var(--title-color);
}

.footer__img-one,
.footer__img-two{
  position: absolute;
  transition: .3s;
}

.footer__img-one{
  width: 100px;
  top: 6rem;
  right: -2rem;
}

.footer__img-two{
  width: 150px;
  bottom: 4rem;
  right: 4rem;
}

.footer__img-one:hover,
.footer__img-two:hover{
  transform: translateY(-.5rem);
}

.footer__container{
    display: flex;
    flex-wrap: wrap;
    row-gap: 2rem;
}

.footer__logo{
  display: flex;
  align-items: center;
  column-gap: .5rem;
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
}

.footer__logo-img{
  width: 20px;
}

.footer__description{
  margin-bottom: var(--mb-2-5);
}

.footer__social{
  display: block;
}

.footer__social-link{
  display: block;
  background: var(--container-color);
  padding: .25rem;
  border-radius: .25rem;
  color: #F5F7FA;
  font-size: var(--smaller-font-size)x;
}

.social__icons{
    display: inline-flex;
    align-items: center;
}

.footer__social-link span{
    margin-left: 8px;
}

.footer__social-link .bx{
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(243, 255, 253, .2);
}

.footer__social-link:hover{
  background: var(--body-color);
}

.footer__title{
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: #F5F7FA;
}

.footer__links{
  display: grid;
  row-gap: .35rem;
}

.footer__link{
  font-size: var(--small-font-size);
  color: var(--text-color);
  transition: .3s;
}

.footer__link:hover{
  color: var(--title-color);
}

.footer__copy{
  display: block;
  text-align: left;
  font-size: var(--smaller-font-size);
  margin-top: 1rem;
  color: #F5F7FA;
}
/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  background: var(--first-color-alt);
  right: 1rem;
  bottom: -20%;
  display: inline-flex;
  padding: .3rem;
  border-radius: .25rem;
  z-index: var(--z-tooltip);
  opacity: .8;
  transition: .4s;
}

.scrollup__icon{
  font-size: 1.25rem;
  color: var(--title-color);
}

.scrollup:hover{
  background: var(--first-color);
  opacity: 1;
}

/* Show Scroll Up*/
.show-scroll{
  bottom: 3rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: 0.6rem;
  background: #413e3e;
}

::-webkit-scrollbar-thumb{
  background: #272525;
  border-radius: .5rem;
}

/*===============  BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {

  .container{
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .home__img{
    height: 200px;
  }

  .home__buttons{
    flex-direction: column;
    width: max-content;
    row-gap: 1rem;
  }

  .category__container,
  .trick__container{
    grid-template-columns: .8fr;
    justify-content: center;
  }
}
/* For medium devices */
@media screen and (min-width: 576px) {
  .about__container{
    grid-template-columns: .8fr;
    justify-content: center;
  }

  .newsletter__container{
    display: grid;
    grid-template-columns: .7fr;
    justify-content: center;
  }

  .newsletter__description{
    padding: 0 3rem;
  }
}

@media screen and (min-width: 768px) {
  body{
    margin: 0;
  }

  .section{
    padding: 5rem 0;
  }

  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__img,
  .nav__close,
  .nav__toggle{
    display: none;
  }

  .nav__list{
    flex-direction: row;
    column-gap: 3rem;
  }

  .nav__link{
    text-transform: initial;
    font-weight: initial;
  }

  .home__content{
    padding: 8rem 0 2rem;
    grid-template-columns: repeat(1, 1fr);
    gap: 4rem;
  }

  .home__hero-banner{
    height: 60vh;
  }

  .home__img{
    height: 300px;
  }

  .category__container{
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }

  .category__data{
    padding: 3rem 1rem;
  }

  .mission .about__container{
    flex-direction: row-reverse;
  }

  .about__container{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

   .about__img-wrapper{
    /* width: 41.6667%; */
    width: 45%;
  }

  .about__img{
    width: 100%;
    max-width: 480px;
  }

  .about__title,
  .about__data{
    text-align: initial;
  }

  .about__data{
    /* width: 58.3333%; */
    width: 50%;
  }

  .about__description {
    margin-bottom: 0;
  }

  .program__container{
    flex-wrap: nowrap;
    column-gap: 1rem;
  }

  .program__content{
    display: block;
    row-gap: 1rem;
    width: 33.33%;
  }

  .program__img{
    height: 180px;
    margin-bottom: var(--mb-1);
  }

  .footer__container{
    flex-wrap: nowrap;
    column-gap: 2rem;
    justify-content: space-between;
    flex-direction: row-reverse;
  }

  .footer__img-two{
    right: initial;
    left: 15%;
    bottom: 0;
  }
}

/* For large devices */
@media screen and (min-width: 992px){
  .nav__logo-img{
        width: 120px;
  }

  .home__hero-banner{
    margin-top: 80px;
    height: 708px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    justify-content: flex-start;
  }

  .container{
    max-width: 1140px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
  }

  .section__title{
    font-size: var(--h1-font-size);
    margin-bottom: 3rem;
    line-height: 2.5rem;
  }

  .home__content{
    padding: 8rem 0;
    justify-content: flex-start;
    display: flex;
  }

  .home__group{
    padding-top: 0;
  }

  .home__img{
    height: 400px;
    transform: translateY(-3rem);
  }

  .home__indicator{
    top:initial;
    right: initial;
    bottom: 15%;
    left: 45%;
  }

  .home__indicator::after{
    top: 0;
    height: 75px;
  }

  .home__details-img{
    bottom: 0;
    right: 58%;
  }

  .about__data{
    margin-left: 8rem;
  }

  .image-position{
    flex-direction: column-reverse;
    }

    .vision__text-icon{
        display: flex;
        column-gap: 2rem;
    }

    .icon img{
        width: 50px;
    }

    .vision__data{
        flex-wrap: nowrap;
        column-gap: 2rem;
    }

  .home__title{
    margin-bottom: var(--mb-1-5);
  }

  .home__description{
    margin-bottom: var(--mb-2-5);
    padding-right: 2rem;
  }
  
  .vision__title{
    width: 33.33%;
    max-width: 300px;
    text-align: left;
  }

  .vision__title .section__title{
    text-align: left;
  }

  .vision__description{
    width: 66.66%;
  }

  .category__container{
    column-gap: 2rem;
  }

  .category__img{
    width: 50px;
  }

  .about__img{
    width: 100%;
  }

  .about__description{
    padding-right: 2rem;
  }

  .footer__copy{
    margin-top: 0;
    width: 100%;
    max-width: 360px;
  }

  .program__img{
    height: 286px;
    object-fit: cover;
  }
}

@media screen and (min-width: 1200px){
  .home__img{
    height: 420px;
  }

  .footer__img-one{
    width: 120px;
  }

  .footer__img-two{
    width: 180px;
    top: 30%;
    left: -3%;
  }
}