@media (max-width: 1754px) and (min-width: 1024px) {
  /* Your styles here */
  .phone{
    width:780px;
  }
  .hero-section{
    padding:100px 50px 2px !important;
  }
}

@media (max-width:1440px) and (min-width:1266px){
  .phone{
      width:680px;
    }
}


.hero-section {
    background-color: #1A3D7A;
    position: relative;
    padding: 100px 240px 0px 240px;
    padding-bottom: 2px;

    color: white;
    
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0% 100%);
}



.hero-content {
    flex: 1 1 1380px;

    z-index: 20;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 strong {
    color: #f0b54d;
}

.featuress {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.featuress li {
    margin-bottom: 10px;
    font-size: 18px;

    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: nowrap; /* 🔥 LISÄTTY */
}

.featuress strong {
    color: #f0b54d;
    white-space: nowrap; /* 🔥 LISÄTTY */
    flex-shrink: 0;
}

.featuress i,
.featuress strong {
    color: #f0b54d;
}

.featuress i {
    flex-shrink: 0;
    margin-top: 4px;
}

.cta-buttons {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-weight: 800;
}

.cta-buttons i {
    font-size: 18px;
    font-weight: 800;


}

.btn {
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn.yellow {
    background-color: #f0b54d;
    color: #0f2d67;
}

.btn.yellow:hover{
  background-color:#B58A49;
  text-decoration:none;
}

.btn.blue {
    background-color: #53d4f0;
    color: #0f2d67;
}

.btn.blue:hover {
    background-color: #45A3C2;
    text-decoration:none;
}

.quote {
    font-size: 14px;
    color: #ddd;
    margin-top: 20px;
    /* width: 500px; */
}

.quote i {
    font-size: 14px;
    color: #f0b54d;
    margin-top: 20px;
    margin-right: 1px;
}

.quote .author {
    color: #f0b54d;
    font-weight: 600;
}

.quote .author .link {
    color: #5CAF90;
    font-weight: 600;
}


/* .text-desctiption {
    display: flex;
    flex-wrap: wrap;
    width: 520px;
} */



.hero-image img {
    position: absolute;

    max-width: 45%;
    height: auto;
    border-radius: 16px;
    z-index: 10;
    top: 220px;
    right: 0px;



}

/* Responsive Design */

/* mobile device */

@media screen and (max-width: 576px) {
    .quote {
    /* padding: 0 10px; */
    padding-right: 20px;
    text-align: center;
    /* width: 370px; */
}

    .btn {
        padding: 10px 25px;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .featuress {
        list-style: none;
        padding: 0;
        margin: 10px 5;
        padding: 0 10px;
    }

    .featuress li {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 44px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 20px;
        text-align: center;
    }

    .hero-section {
        position: relative;

        width: 100%;
        padding: 10px;
        padding-bottom: 40px;
        margin: 0;


        clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
    }


    .hero-image img {
        position: absolute;

        max-width: 90%;
        height: auto;
        border-radius: 16px;
        z-index: 10;
     
        top: 565px;
        right: 10px;
        margin: auto;



    }
    

   


    .hero-content {
        /* margin-bottom: 600px; */
        font-size: 28px;
        padding-bottom: 48px;
        padding-left: 20px;
        padding-right: 20px;
        /* padding: 0 20px; */
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .btn {
        width: 80%;
        justify-content: center;
    }
}



/* tablet device */

@media screen and (min-width:577px)and (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        
    }
    .hero-section {
        position: relative;

        width: 100%;
        padding: 0px;
        padding-bottom: 80px;
        margin: 0;
        /* border: 1px solid white; */


        clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
    }

    .hero-image {
        margin-top: 30px;
        flex-direction: column;
    }

    .hero-image .map {
        margin-left: 0;
    }

    .cta-buttons {
        display: flex;
        margin-top: 5px;
        flex-direction: row;
        justify-content: center;
    }
    .cta-buttons a{
        width: 200px;
        font-size: 18px;
    }

     .quote {
    /* padding: 0 10px; */
    padding-right: 20px;
    /* text-align: center; */
    /* width: 370px; */
}

    .btn {
        padding: 5px 15px;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
        display: flexbox;
        width: 20px;
        /* align-items: center; */
        gap: 10px;
        
    }

    .featuress {
        list-style: none;
        padding: 0;
        margin: 10px 5;
        padding: 0 10px;
    }

    .features li {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 64px;
        font-weight: 900;
        line-height: 1.2;
        margin-bottom: 20px;

        
    }

    


    .hero-image img {
        position: absolute;

        max-width: 50%;
        height: auto;
        border-radius: 16px;
        z-index: 10;
     
        top: 320px;
        right: 50px;
        margin: auto;



    }
    

   


    .hero-content {
        /* margin-bottom: 600px; */
        font-size: 28px;
        padding-bottom: 48px;
        padding-left: 20px;
        padding-right: 20px;
        /* padding: 0 20px; */
    }

    .hero-content h1 {
       
        font-size: 2px;
    }

    .btn {
        width: 80%;
        justify-content: center;
    }
}

@media screen and (min-width:992px)and (max-width: 1025px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
       border: 1px solid rgb(255, 255, 255);
        
    }

    .hero-image {
        margin-top: 30px;
        flex-direction: column;
    }

    .hero-image .map {
        margin-left: 0;
    }

    .cta-buttons {
        display: flex;
        margin-top: 5px;
        flex-direction: row;
        justify-content: center;
    }
    .cta-buttons a{
        width: 200px;
        font-size: 18px;
    }

     .quote {
    /* padding: 0 10px; */
    padding-right: 20px;
    /* text-align: center; */
    /* width: 370px; */
}

    .btn {
        padding: 5px 15px;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
        display: flexbox;
        width: 20px;
        /* align-items: center; */
        gap: 10px;
        
    }

    .features {
        list-style: none;
        padding: 0;
        margin: 10px 5;
        padding: 0 10px;
    }

    .featuress li {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 64px;
        font-weight: 900;
        line-height: 1.2;
        margin-bottom: 20px;

        
    }

    .hero-section {
        position: relative;

        width: 100%;
        padding: 0px;
        padding-bottom: 0px;
        margin: 0;


        clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
    }


    .hero-image img {
        position: absolute;

        max-width: 60%;
        height: auto;
        border-radius: 16px;
        z-index: 100;
     
        top: 370px;
        right: 10px;
        margin: auto;



    }
    
    .hero-content {
        /* margin-bottom: 600px; */
        font-size: 28px;
        padding-bottom: 48px;
        padding-left: 20px;
        padding-right: 20px;
        /* padding: 0 20px; */
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .btn {
        width: 80%;
        justify-content: center;
    }
}




/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Above other elements */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8); /* Dark background */
}

/* Modal Content Box */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  position: relative;
  background-color: #000;
  margin: 5% auto;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  z-index: 10; /* new */
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 9999; /* way above iframe */
}

.close:hover {
  color: #f0b54d;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  z-index: 1; /* below close */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* make sure video stays below close */
}



/* === Extra Large Desktop (1441px and up) === */
@media screen and (min-width: 1441px) {
  .phone {
    width: 780px;
  }
  .hero-section {
    padding: 100px 240px 2px;
  }
}

/* === Desktop / Laptop (1025px – 1440px) === */
@media screen and (max-width: 1440px) and (min-width: 1025px) {
  .phone {
    width: 680px;
  }
  .hero-section {
    padding: 100px 100px 2px;
  }
}

/* === Tablet (769px – 1024px) === */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .hero-section {
    flex-direction: row; /* Keep side-by-side like desktop */
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    text-align: left;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
  }

  .hero-content {
    flex: 1 1 50%;
    padding-right: 20px;
  }

  .hero-image {
    flex: 1 1 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
  }

  .hero-image img {
    position: relative;
    max-width: 80%;
    margin: 0;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .cta-buttons {
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* === Mobile (up to 768px) === */
@media screen and (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    padding: 20px 10px 40px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-image img {
    position: static;
    max-width: 90%;
    margin: 20px auto 0;
  }
.cta-buttons {
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.btn {
  width: 80%;
  max-width: 300px;
  justify-content: center;
}
}

.freature-cart .btn-link {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  /* 🔥 HERO TEXT FIX – MOBILE */
@media (max-width: 768px) {

  /* Anna tekstille koko leveys */
  .hero-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Estä sanojen hajoaminen */
  .featuress strong {
    white-space: nowrap;
  }

  /* Salli rivin venyä oikein */
  .featuress li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Varmista että teksti saa tilaa */
  .featuress li span,
  .featuress li {
    width: 100%;
  }

}
