*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    font-size: 1rem;
}


body{
    margin: 0 auto;
    line-height: 1.5;
    max-width: 1080px;
    padding-top: 80px;
}


    /* Navbar tag */

    .menu-toggle{
        display: none;
        font-size: 1.4rem;
        cursor: pointer;

    }


.nav-wrap{
    max-width: 800px;
    font-size: 1rem;
    font-family: Arial;
    font-weight: 50;
    display: flex;
    padding: 4px;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    
}


nav{
     position: fixed;
     top: 0.5px;
     background-color: #fff;
     padding: 4px;
      border-radius: 24px;
      transition: top 0.3s ease;
      width: 88%;
      z-index: 1000;
      
}

header{
  justify-items: center;

 
}



nav.hide{
    top: -100px;
}

nav img{
    width: 200px;
    height: auto;
}

a{
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: black;
    transition-duration: 0.5s ease-out;

}

.nav-wrap a:hover{
    color: rgba(44, 111, 197, 0.986);
}

.navlink{
    display: flex;
    gap: 60px;
     
}

.drop-down{
    position: relative;
}

.drop-down-content{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 250px;
    z-index: 10;
    list-style: none;
    padding: 20px;
    margin: 0px;
    line-height: 2;
    border-radius: 12px;
}

.drop-down:hover .drop-down-content{
    display: block;
}

.drop-down:hover .drop-btn{
    border-bottom: 2px solid #fff;
}

.drop-down-content li{
    border-bottom: 1px solid #f0f0f0;
}

.drop-down-content li:last-child{
    border-bottom: none;
}

.drop-down-content a{
    font-size: 0.9rem;

}


/* Animation */
@keyframes appear{
    from{
    opacity: 0;
    scale: 0.5;
    }
    to{
         opacity: 1;
        scale: 1;
    }
}


.hero-wrap{
    max-width: 100%;
    background-image: url(/Images/hero-section.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    background-color: rgb(148, 171, 192);
    padding: 120px 50px;
    text-align: left;
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Franklin Gothic Medium';
   
}

.hero-list li::marker {
    content: "✔";
    color: #fff;
    font-size: 1.5rem;
}


h1{
    font-size: 2rem;
    font-family: 'Franklin Gothic Medium';
    font-weight: bolder;
    color: #fff ;
    line-height: 1.3;

}

h1 > span{
    font-size: 2.2rem;
}

.hero-wrap a{
    background-color: #fff;
    padding: 16px 44px;
    border-radius: 16px;
    color: rgba(70, 80, 209, 0.986);
    font-family: Arial;
    font-weight: bold;
    font-size: 1.5rem;
    transition-duration: 0.5s ease-out;

}

.hero-wrap a:hover{
    background-color: rgba(44, 111, 197, 0.986);
    color: #fff;

}

    /* product */

h2{
    font-family: 'Franklin Gothic Medium';
    font-size: 3rem;
    font-weight: bolder;
   
}

h2 span{
    color: rgba(44, 111, 197, 0.986);
}

.product{
    margin-left: 40px;
    font-size: 1.2rem;
    font-family: Arial;
    margin-top: 50px;
    opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
    
   
}

   /* Types of Loans */

.loan-types-wrap{
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 0 auto;
    margin-top: 50px;
    transition: 0.5s ease-out;
    font-family: 'Arial';
    font-size: 1rem;
    justify-content: space-between;
    line-height: 1;
    
}


.box-shadow, .fix-flip, .rental, .refinance, .purchase,  .slide {
    background-color: #fff;
    border-radius: 24px;
    border: 1px solid #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    padding: 25px;
    margin: 10px;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

h3{
    font-family: Arial;
    font-size: 1.6rem;
    text-align: center;
    line-height: 0.9;

}
   

.fix-flip img, .rental img, .refinance img, .purchase img{
    width: 80px;
    height: auto;
    margin: 0 auto;
}


.fix-flip:hover, .rental:hover, .refinance:hover, .purchase:hover{
    border: 2px solid rgba(44, 111, 197, 0.986);
}

.loan-type-btn{
    max-width: 200px;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 16px;
    background-color: rgba(44, 111, 197, 0.986);
    text-align: center;
    margin: 14px auto;
    transition: 0.5s all;
    
}

.loan-type-btn a{
    color: #fff;
}

.loan-type-btn:hover{
    background-color: rgb(12, 2, 61);

}

.more-info{
    text-align: center;

}

.more-info a{
    color: rgba(44, 111, 197, 0.986);
    font-size: 1.2rem;
    font-family: 'Arial Narrow';
    transition: 0.5s all;

}

.more-info a:hover{
    color: rgb(12, 2, 61);
}

/*  Getting Funded */

.getting-loan-wrap{
    max-width: 100%;
    height: 90vh;
    margin-top: 50px;
    background-color: rgba(44, 111, 197, 0.986);
    color: #fff;
    justify-items: center;
    font-family: 'Arial';
    opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;

}

h4 {
    font-family: 'Arial';
    font-size: 1rem;
    text-align: center;
    padding-top: 80px;
    
}

h4 span{
    font-size: 2.6rem;
   
}

.getting-loan-box-wrap{
    width: 80%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.pre-qualify, .submit, .get-funded{
    padding: 80px;
    padding-bottom: 40px;
    border: 2px solid #fff;
    border-radius: 16px;
    font-family: Arial;
    font-size: 1rem;
    font-weight: 700;
    flex: 0 0 33.33%;
    text-align: center;
    

}

  /* Why choose Mistra Nova */
  .choose-wrap{
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin-top: 50px;
   line-height: 3;
   font-family: Arial;
   font-size: 1rem;
   margin-left: 40px;
   align-items: center;
   line-height: 1.8;
   padding: 10px;
   opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  .check-list li::marker {
    content: "✔";
    color: #05488b;
    font-size: 1.1rem;
  }

  h5{
    font-family: 'Franklin Gothic Medium';
    font-size: 2rem;
    line-height: 1;
  }

  .choose-img{
    border: #fff;
    border-radius: 16px;
    margin-top: 30px;
    
  }

  /* Recent projects */
   .recent-projects{
    padding: 10px;
    font-family: Arial;
    opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
    
   }

  .recent h5{
    margin-top: 40px;
    text-align: center;
    background-color: rgba(44, 111, 197, 0.986);
    color: #fff;
    padding: 20px;
    opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

   .recent span{
    font-size: 1.2rem;

   }

  .recent-projects-wrap{
    max-width: 100%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding: 10px;
    

  }

  .recent-projects-content1, .recent-projects-content2, .recent-projects-content3, .recent-projects-content4{
    opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  .recent-projects-wrap img{
    width: 100%;
    height: 70vh;
  }

  .recent-project-viewmore{
    color: #05488b;
    font-family: Arial;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    transition: all ease-in-out;
    margin-left: 480px;

  }

  .recent-project-viewmore:hover{
    color: cornflowerblue;
  }
  

    /* Testimonial Tag */

    .testimonial{
        width: 100%;
        padding: 50px;
        background-color: #010e1b;
        margin-bottom: 50px;
        opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;

    }

    .testimonial-videos{
        width: 100%;
        height: 90hv;
        opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
    }

    .testimonials-wrap{
        max-width: 450px;
        height: auto;
        position: relative;
        text-align: center;
        font-family: arial;
        font-size: 1rem; 
        margin: 50px auto;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 10;
        

        
    }

    .testimonial-slide{
         max-width: 400px;
         margin: 0 auto;
        background-color: rgb(178, 245, 245);
        border-radius: 16px;
        padding: 20px;
        color: rgb(0, 0, 0);
       
    
    }

    .testimonial-slide{
        display: none;
    }

  .testimonial-slide.active {
  display: block;
}

.testimonials-wrap button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #777676;
  color: #202020;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50%;
  margin-top: 50px;
}

#prev {
  left: -30px;
 
}

#next {
  right: -30px;
}



    .testimonial h5{
        margin-top: 50px;
        margin-bottom: 20px;
        text-align: center;
        color: #fff;
    }

    .testimonial span{
        font-size: 1.2rem;
        color: rgba(44, 111, 197, 0.986);
    }

    .testimonial-author{
        font-weight: bold;
        padding-top: 20px;
        color: rgba(44, 111, 197, 0.986);
    }


     /* fAQ Tags */

     .faq-wrap{
        max-width: 600px;
        font-family: sans-serif;
        font-size: 1.3rem;
        margin-top: 50px;
        margin: 0 auto;
        opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
     }

     details{
        border-bottom: 1px solid #ddd;
        padding: 16px 0;
     }

     summary{
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-weight: bold;
        font-size: 1.2rem;
        color: rgba(44, 111, 197, 0.986);
        transition: 0.3s ease-in-out;

     }

      /* Custom, icon logic */
      summary::after{
        content: '+';
        color: #003366
      }

      summary:hover{
        color: goldenrod;
      }

      details[open] summary::after{
        content: '-';
        color: goldenrod;
        
      }


      .content{
        padding-top: 10px;
        color: #555;
        line-height: 1.5;
        font-size: 1rem;
      }


    /* Footer tag */

  .footer-wrap{
    max-width: 100%;
    background-color: rgba(178, 245, 245, 0.500);
    margin-top: 80px;
    display: grid;
    grid-template-columns: 450px 1fr 1fr;
    padding-bottom: 40px;
    padding-top: 40px;
    padding-left: 80px;
    padding-right: 80px;
    justify-content: space-between;
    gap: 40px;
    font-family: Arial;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY();
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;

  }

  .footer-symbols{
    display: flex;
    gap: 5px;
    
  }

  .footer-symbols img{
    border: solid;
    border-radius: 80px;
    border-color: rgba(178, 245, 245, 0.500);
  }
  /* footer company tag */
  .company{
    display: flex;
    flex-direction: column;
    gap: 12px;
    
  }

  .company a{
    font-size: 1rem;
    color: #000;
    transition: 0.3s all ease-in-out;
  }

  .company a:hover{
    color: rgba(44, 111, 197, 0.986);
    text-decoration: underline;
  }

  h6 {
    font-size: 1.4rem;
    color: rgba(44, 111, 197, 0.986);

  }


  .span-time{
    color: rgba(44, 111, 197, 0.986);
    margin-left: 80px;
  }

  .span-sun{
    color: rgb(241, 182, 18);
    margin-left: 230px;
  }

    /* copyright */
    .copyright{
        text-align: center;
        color: rgba(44, 111, 197, 0.986);
        font-size: 1rem;
        font-family: arial;
        font-style: italic;
        background-color: rgba(178, 245, 245, 0.500);
        padding-bottom: 40px;

    }

    footer hr{
        border-color:  rgba(74, 142, 231, 0.973);
        
    }


    






    /* Mobile Responsiveness */

    @media (min-width: 320px) and (max-width: 599px){
        /* body */
    body{
    max-width: 480px;
    overflow-x: hidden;
    overflow-y: auto;
}

html{
    font-size: 1rem;
}
/* Navbar tag */


.menu-toggle{
    display: block;
    color: #05488b;
    font-size: 2rem;
    cursor: pointer;

}


/* transform to X */

.menu-toggle.active span:nth-child(1){
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2){
    opacity: 0;
}

.menu-toggle.active span:nth-child(3){
    transform: rotate(-45deg) translate(7px, -6px);
}



.navlink{
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    padding: 20px;
    transition: all 0.3s ease;
    gap: 20px;
}

.navlink a {
    display: block;
    padding: 0;
}

.navlink.active{
    display: flex;
}



header img{
    width: 180px;
    height: auto;
}

nav{
    width: 100%;
}

.nav-wrap a{
    font-size: 1rem;
}

.drop-down-content{
    display: none;

}

.drop-down.active .drop-down-content{
    display: block;
}


h1{
    font-size: 1.5rem;
    font-family: 'Franklin Gothic Medium';
    font-weight: bolder;
    color: #fff ;
    line-height: 1.5;

}

h1 > span{
    font-size: 1.2rem;
}

 /* Hero section */
   .hero-wrap{
    max-width: 100%;
    background-image: url(/Images/hero-section.png);
    background-position: top;
    background-size: cover;
    padding: 80px 40px;
    font-size: 1.2rem;
    line-height: 2;
  
}

  /* product */

h2{
    font-family: 'Franklin Gothic Medium';
    font-size: 1.8rem;
    font-weight: bolder;
}

.product{
    font-size: 1rem; 
    margin-left: 10px;
    margin-right: 10px;

}
  
h3{
    font-size: 1.3rem;

}

  /* Loan Types */

.loan-types-wrap{
    display: block;
    margin-left: 10px;
    margin-right: 10px;
    
}

.box-shadow, .fix-flip, .rental, .refinance, .purchase,  .slide {
    margin: 30px 10px;
   
}

.fix-flip span, .rental span, .refinance span, .purchase span{
    font-size: 1rem;
    font-family: Arial;
    font-weight: 50;
    color: rgba(0, 0, 0, 0.726)
    line-height: 1.5;

}

.fix-flip img, .rental img, .refinance img, .purchase img{
    margin-left: 80px;
}

.more-info a{
    margin: 0 70px;

}


/*  Getting Funded */

.getting-loan-wrap{
    max-width: 100%;
    height: auto;
    padding: 20px;

}


h4 span{
    font-size: 2rem;
    line-height: 1.5;
}

.getting-loan-box-wrap{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
}

.pre-qualify, .submit, .get-funded{
    padding: 40px 40px;
    font-size: 1.2rem;
    font-weight: 600;
}

 /* Why choose Mistral Nova */
  .choose-wrap{
    display: flex;
    flex-direction: column;
    gap: 20px;
   line-height: 2;
   margin-left: 10px;
   align-items: center;
   line-height: 1.8;
  }

    h5{
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .choose-img{
    max-width: 100%;
    margin-top: 10px;
    
  }

  /* Recent projects */

    .recent span{
    font-size: 0.8rem;

   }

  .recent-projects-wrap{
    max-width: 100%;
    margin: 40px auto;
    display: block;

  }


 .recent-projects-content{
    margin-bottom: 40px;
  }

   .recent-project-viewmore{
    font-size: 1.2rem;
    text-align: center;
    margin: 0px 120px;

  }

  /* Testimonies tags */

  .testimonials-wrap{
        max-width: 290px;
        height: auto;
        
    }


    .testimonial h5{
        margin-top: 50px;
        margin-bottom: 20px;
        text-align: center;
    }

    /* fAQ Tags */

     .faq-wrap{
        max-width: 100%;
        font-size: 1rem;
        margin-top: 40px;
     }

     details{
        padding: 16px;
     }

     summary{
        list-style: none;
        display: flex;
        font-weight: 600;
        font-size: 1rem;
     }

      .content{
        font-size: 1rem;
      }

      
    /* Footer tag */

  .footer-wrap{
    margin-top: 40px;
    display: block;
    padding: 40px 16px;
    font-family: Arial;
    font-size: 1rem;
    line-height: 1.5;

  }

   .footer-symbols{
    display: flex;
    gap: 0px;
    
  }

  .footer-symbols img{
    width: 80px;
    border: solid;
    border-radius: 80px;
    border-color: rgba(178, 245, 245, 0.500);
   margin-left: 16px;
  }

  /* footer company tag */
  h6 {
    font-size: 1.2rem;
    color: rgba(44, 111, 197, 0.986);
    margin-top: 20px;

  }


  .span-sun{
    color: rgb(241, 182, 18);
    margin-left: 220px;
  }

   /* copyright */
    .copyright{
        padding: 20px;

    }

    }


    
    
    @media (min-width: 600px) and (max-width: 820px){

      body{
      max-width: 768px;
      overflow-x: hidden;
      overflow-y: auto;
}

html{
  font-size: 1.1rem;
}

/* Navbar tag */

nav{
    width: 90%;
}


.menu-toggle{
    display: block;
    color: #05488b;
    font-size: 2rem;
    cursor: pointer;

}


/* transform to X */

.menu-toggle.active span:nth-child(1){
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2){
    opacity: 0;
}

.menu-toggle.active span:nth-child(3){
    transform: rotate(-45deg) translate(7px, -6px);
}



.navlink{
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    padding: 20px;
    transition: all 0.3s ease;
    gap: 20px;
}

.navlink a {
    display: block;
    padding: 0;
}

.navlink.active{
    display: flex;
}



header img{
    width: 180px;
    height: auto;
}


.nav-wrap a{
    font-size: 1rem;
}

.drop-down-content{
    display: none;

}

.drop-down.active .drop-down-content{
    display: block;
}


/* Types of Loans */

.loan-types-wrap{
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    
}


/*  Getting Funded */

.getting-loan-wrap{
    width: 100%;
    height: 70hv;
    
}


.getting-loan-box-wrap{
    width: 600px;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    margin-top: 50px;
}

.pre-qualify, .submit, .get-funded{
    padding: 30px 40px;
    padding-bottom: 30px;
  
    

}

  /* Why choose Mistra Nova */
  .choose-wrap{
    display: flex;
    flex-direction: column;
    gap: 50px;
  
  }


  /* Recent projects */

  .recent-projects-wrap{
    width: 100%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;

  }


  .recent-project-viewmore{
    color: #05488b;
    font-family: Arial;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    transition: all ease-in-out;
    margin-left: 280px;

  }



/* footer company tag */

  .footer-wrap{
    display: block;
    align-content: center;
    text-align: center;
  }

  .footer-symbols{
    justify-content: center;
  }
 
    }


