/* GENERAL STYLING */
*{
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

:root {
    /* colors to be used */
    --color-primary: #6c63ff;
    --color-success: #00bf8e;
    --color-warning: #f7c94b;
    --color-danger: #f75842;
    --color-danger-variant: rgba(247, 88, 66, 0.4);
    --color-white: #fff;
    --color-light: rgba(255, 255, 255, 0.7);
    --color-black : #000;
    --color-bg: #1f2641;
    --color-bg1: #2e3267;
    --color-bg2: #424890;


    --container-width-lg: 80%;
    --container-width-md: 90%;
    --container-width-sm: 94%;

    --transition: all 400ms ease;
}

body{
      font-family: "Montserrat", sans-serif;
      line-height: 1.7;
      color: var(--color-white);
      background: var(--color-bg);
}

.container {
    width: var(--container-width-lg);
    margin: 0 auto;
}
section{
    padding: 6rem 0 ;
}

section h2{
    text-align: center;
    margin-bottom: 3rem;
}
h1,h2,h3,h4,h5 {
    line-height: 1.2;
}
h1{
    font-size: 2rem;
}
h2{
    font-size: 1.8rem;
}
h3{
    font-size: 1.6rem;
}
h4{
    font-size: 1.3rem;
}
a{
    color: var(--color-white);
}
img{
    width: 100%;
    display: block;
    object-fit: cover;
}
video{
  width: 100%;
  display: block;
  object-fit: cover;
}

.btn{
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover{
    background: transparent ;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-primary {
    background: var(--color-danger);
    color: var(--color-white);
}

/****************NAV-MENU ****************************** */
nav {
    background: transparent;
    width: 100vw;
    height: 5rem;
    position: fixed;
    top: 0;
    z-index: 11;
}
/* change navbar style on scroll using javascript */
.window-scroll{
    background: var(--color-primary);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.3);
}
.logo-con{
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-white);
    border-radius: 70%;
    overflow: hidden;
}
.logo{
    width: 100%;
    transform: translateY(-5px);
    gap: 2rem;
}
.logo-div{
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav__container{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav button {
    display: none;
}
.nav__menu{
    display: flex;
    align-items: center;
    gap: 4rem;
}
.nav__menu a {
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav__menu a:hover{
    color: var(--color-bg2);
}

/**************** HEADER SELECTION ****************************** */
header{
    animation: slider 40s ease-in-out infinite;  
    background-size: cover;
    background-position: center;
    position: relative;
    top: 5rem;
    overflow: hidden;
    height: 90vh;
    margin-bottom: 5rem;
}
@keyframes slider {
  0%{ background-image: url(../images/childern.jpg);}
  10%{ background-image: url(../images/childern.jpg);}

  20%{ background-image: url(../images/minister\ of\ youth\ and\ sports\ in\ enugu\ \(2\).JPG);}
  30%{ background-image:  url(../images/minister\ of\ youth\ and\ sports\ in\ enugu\ \(2\).JPG);}

  40%{ background-image: url(../images/photo23.jpg);}
  50%{ background-image: url(../images/photo23.jpg);}

  60%{ background-image: url(../images/ministry\ gender.jpg);}
  70%{ background-image: url(../images/ministry\ gender.jpg);}

  80%{ background-image: url(../images/photo9.jpg);}
  90%{ background-image:url(../images/photo9.jpg);}

  100%{ background-image: url(../images/minister\ of\ youth\ and\ sports\ in\ enugu\ \(3\).JPG);}

}
.header__container{
  display: flex;
  justify-content: center;
  align-items: center;
    height: 100%;
}

.header__left{
  text-align: center;
  border-radius: 7px;
  padding: 1rem .8rem;
  width: 70%;
  background:  rgba(0, 0, 0, 0.8);
  color: var(--color-white);
}
.header__left p{
    margin: .6rem 0 1rem;
}
.header__left h1{
  line-height:1 ;
}



/* ======================== about us ============================ */

.aboutus{
  margin-top: 1rem;
}
.aboutus__container{
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 1rem;
}
.aboutus__left h1{
  margin-bottom: .8em;
}
.aboutus__left p{
  margin-bottom: .9em;
}

.aboutus__right{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  
}
.aboutus__imgbox img{
  border-radius: 11px;
}

.aboutus__imgbox img:hover{
   box-shadow: 0 3rem 3rem rgba(0,0,0,.3);
}



 /* **************************** PROGRAM ************************ */

.program{
    background: var(--color-bg1);
    height: 32rem;
    padding-bottom:7rem ;
}
.program h1{
    line-height: 1;
    margin-bottom: 3rem;
}
.program__container{
    display: grid;
    grid-template-columns: 40% 60%;
    /* gap: 2rem; */
}
.program__left{
    margin-right: 4rem;
}
.program__left p{
    margin: 1rem 0 3rem;
}
.program__right{
    display: grid;
    transform: translateY(-4rem);
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}
.programe{
    background: var(--color-bg2);
    padding: 2rem;
    border-radius: 2rem;
    transition: var(--transition);
}

.programe:hover {
    box-shadow: 0 3rem 3rem rgba(0,0,0,.3);
    z-index: 1;
}
.programe:nth-child(1) .program__icon{
    background: var(--color-danger) ;
}
.programe:nth-child(2) .program__icon{
    background: var(--color-success) ;
}
.programe:nth-child(3) .program__icon{
    background: var(--color-warning) ;
}
.programe:nth-child(2) .program__icon{
    background: var(--color-success) ;
}

.program__icon{
    background: var(--color-primary);
    padding: 0.7rem;
    border-radius: 0.9rem;
}
.programe h5{
    margin: 2rem 0 1rem;
}
.programe p{
    font-size: 0.85rem;
}


    /*  *************************** END OF PROGRAM SECTION *************************  */

    .event{
        margin-top: 20rem;
    }
  .event__container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .eventc{
    background: var(--color-bg1);
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
  }
  .eventc:hover{
    background: transparent;
    border-color: var(--color-primary);
  }
  .event__info{
    padding: 2rem;
  }
  .event__info p{
    margin: 1.2rem 0 2rem;
    font-size: 0.9rem;
  }

  /* ############################################# END OF EVENT ############################# */

  /* =================================== impact and stories ============================ */

  .impact__container{
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 2rem;
  }
  .stories__card{
    background-color: var(--color-bg1);
    height: fit-content;
    padding: 3px 0px 15px;

  }
  #more-text{
    display: none;
  }
  .stories__text{
    padding: 14px 20px;
  }
  .stories__text p{
    margin-bottom: 13px;
    text-align: justify;
  }
/* ========================================== FAQS =====================  */
  .faqs{
    background: var(--color-bg1);
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.5);
  }
  .faqs__container{
    display: grid ;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .faq{
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    height: fit-content;
    background: var(--color-primary);
    cursor: pointer;
  }
  .faq h4{
    font-size: .8rem;
    line-height: 2.2;
  }

  .faq__icon{
    align-self: flex-start;
    font-size: 1.2rem;
  }
  .faq p{
    margin-top: 0.8rem;
    display: none;
  }
  .faq.open p{
    display: block;
  }

  /* ###################### END OF FAQS ########################## */
  .gallery{
    /* max-width: 1200px; */
    width: 100%;
    margin-top: -11rem;
  }

   .swiper {
      width: 100%;
      height: 100%;
    }

    .swiper-slide {
      width: 300px;
      height: 300px;
      text-align: center;
      font-size: 18px;
      background: #444;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }


  /* ########################## END OF GALLERY SECTION #################### */

  .sack{
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 15px 0px;
    margin-left: 12px;
    position: absolute;
    left: max(calc(200px * 8), 100%);
    animation: scrollLeft 30s linear infinite;
    
  }

  .sack img{
    width: 4rem;
  }
  @keyframes scrollLeft {
    to {
        left: -200px;
    }
  }

  .stack{
    width: 100%;
    background: white;
    opacity: .8;
    max-width: 1536px;
    margin-inline: 6px;
    position: relative;
    height: 100px;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0),
        rgba(0,0,0,1) 20%,
        rgba(0,0,0, 1) 90%,
        rgba(0,0,0,0)
    );
  }
  .sack1{
    animation-delay: calc(30s / 10 * (10 - 1) * -1);
  }
  .sack2{
    animation-delay: calc(30s / 10 * (10 - 2) * -1);
  }
  .sack3{
    animation-delay: calc(30s / 10 * (10 - 3) * -1);
  }
  .sack4{
    animation-delay: calc(30s / 10 * (10 - 4) * -1);
  }
  .sack5{
    animation-delay: calc(30s / 10 * (10 - 5) * -1);
  }
  .sack6{
    animation-delay: calc(30s / 10 * (10 - 6) * -1);
  }
  .sack7{
    animation-delay: calc(30s / 10 * (10 - 7) * -1);
  }
  .sack8{
    animation-delay: calc(30s / 10 * (10 - 8) * -1);
  }

  .sack9{
    animation-delay: calc(30s / 10 * (10 - 9) * -1);
  }

  .sack10{
    animation-delay: calc(30s / 10 * (10 - 10) * -1);
  }


  /*========================= subscription ===========================*/

  .subscription__container{
    /* display: flex; */
    justify-content: space-around;
  }
  .subscription__box{
    width: fit-content;
    border-radius: 7px;
    background-color: transparent;
    padding: 5px 11px;
    display: flex;
  
  }
  .subscription__box input{
    width: 19rem;
    flex: 1;
    font-size: 16px;
    padding: 10px 19px;
  }
  .subscription__box h3, p{
    margin-bottom: 2rem;
  }
  .subscription__container span{
    color: var(--color-success);
    margin-top: 10px;
    display: block;
  }

/* ############################## FOOTER ######################## */

footer{
  background: var(--color-bg1);
  padding-top: 5rem;
  font-size: 0.9rem;
}
.footer__container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem;
}

.footer__container > div h4{
  margin-bottom: 1.2rem;
}

.footer__1{
  margin: 0 0 2rem;
}

footer ul li{
  margin-bottom: 0.7rem;
}
.footer ul li a:hover {
  text-decoration: underline;
} 
.footer__socials{
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
  margin-top: 1.2rem;
}

.footer__copyright{
  text-align: center;
  margin-top: 4rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--color-bg2);
}



/*  ==================== MEDIA QUERIES (TABLETS) ============================ */
@media screen and (max-width: 1024px)  {
  .container{
    width: var(--container-width-md);
  }
  body{
    overflow-x: hidden;
  }

  

  h1{
    font-size: 2.2rem;
  }
  h2{
    font-size: 1.7rem;
  }
  h3{
    font-size: 1.4rem;
  }
  h4{
    font-size: 1.2rem;
  }
  /* =============== NAVBAR============ */

  nav button{
    display: inline-block;
    background: transparent;
    font-size: 1.8rem;
    color: var(--color-white);
    cursor: pointer;
  }
  nav button#close-menu-btn{
    display: none;
  }
  .nav__menu{
    position: fixed;
    top: 5rem;
    right: 5%;
    height: fit-content;
    width: 18rem;
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav__menu li{
    width: 100%;
    height: 5.8rem;
    animation: animateNavItem 400ms linear forwards;
    transform-origin: top right;
    opacity: 0;
  }

  .nav__menu li:nth-child(2){
    animation-delay: 200ms;
  }

  
  .nav__menu li:nth-child(3){
    animation-delay: 400ms;
  }
  
  .nav__menu li:nth-child(4){
    animation-delay: 600ms;
  }
  @keyframes animateNavItem {
    0% {
      transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
    }
    100% {
      transform: rotateZ(0) rotateX(0) scale(1);
      opacity: 1;

    }
  }
  .nav__menu li a{
    background: var(--color-primary);
    box-sizing: -4rem 6rem 10rem rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
  }
  .nav__menu li a:hover{
    background: var(--color-bg2);
    color: var(--color-white);
  }

  /* ============ HEADER=========== */
  header{
    height: 82vh;
    margin-bottom: 5rem;
  }
  .header__container{
    gap: 0;
    padding-bottom: 3rem;
  }

  /* about us */
  .aboutus__container{

  }

  /* ============== PROGRAM =========== */
  .program{
    height: fit-content;
  }

  .program__container{
    grid-template-columns: 1fr;
    gap: 6rem;
  }
  .program__left{
    margin-right: 0;
  }
  /* =================== EVENTS =================== */
  .event{
    /* height: fit-content; */
    margin-top: -6rem;
  }

  /* ===================== GALLERY========== */
   .gallery{
    /* max-width: 1200px; */
    width: 100%;
    margin-top: -11rem;
  }

   .swiper {
      width: 100%;
      height: 100%;
    }

    .swiper-slide {
      width: 300px;
      height: 300px;
    }

    .swiper-slide img {
      width: 100%;
      height: 100%;
    }
/*                      program   */
    .event__container{
    grid-template-columns: 1fr 1fr;
   
  }
  /* ===================== FAQS =================== */
  .faqs__container{
    grid-template-columns: 1fr;
  }
  .faq{
    padding: 1.5rem;
  }

  /* ========================= FOOTER =================== */
  .footer__container{
    grid-template-columns: 1fr 1fr;
  }
}

/*  ==================== MEDIA QUERIES (PHONE) ============================ */
@media screen and (max-width: 600px) {
  .container{
    width: var(--container-width-sm);
  }
  /* =============== NAVBAR ===================== */
  .nav__menu{
    right: 3%;
  }
  /* =============== HEADER ===================== */
  header{
    height: fit-content;
  }
  .header__container{
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 4rem;
  }
  .header__container p{
    font-weight: 600;
    margin-bottom: 1.3rem;
  }

  /* about us */
  .aboutus__container{
    grid-template-columns: 1fr;
  }

  /* =============== PROGRAM ===================== */
  .program__right{
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .programe{
    padding: 1rem;
    border-radius: 1rem;
  }
  .program__icon{
    margin-top: 4px;
    display: in;
  }

  /* ========================== EVENT ================== */
  .event{
    margin-top: -14rem;
  }
  /* ===================== GALLERY =================== */
     .gallery{
    /* max-width: 1200px; */
    width: 100%;
    margin-top: -11rem;
  }

   .swiper {
      width: 100%;
      height: 100%;
    }

    .swiper-slide {
      width: 300px;
      height: 300px;
    }

    .swiper-slide img {
      width: 100%;
      height: 100%;
    }
    /*             program ========= */
      .event__container{
    grid-template-columns:  1fr;
   
  }

    /* =================== Email Subscription ==================== */
    .subscription__box input{
      width: 13rem;
    }
  /* =================== FOOTER =========================== */
  .footer__container{
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer__1 p{
    margin: 1rem auto;
  }
  .footer__socials{
    justify-content: center;
  }

}
