*{
    color: aliceblue;
}

body {
    font-family: 'Prompt', sans-serif !important;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f7fafc !important;
    /*background: linear-gradient(to right,rgba(5, 56, 96, 0.87),rgb(31, 141, 155),rgba(5, 96, 58, 0.63)),url(../Sorce/22.png) !important;*/
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}
header {
    background: #007bff;
    color: white;
    padding: 20px;
    font-size: 24px;
}


@media (max-width: 768px) {
.lang_language a{
  font-size: 19px;
}
}

.container {
    margin: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.section_1{
  display: grid;
  grid-template-columns: none;
  width: 100%;
  margin-top: 0%;
  background:
#07487b8a;
  clip-path: polygon(0% 0px, 100% 90px, 99.67% 90.02%, 0px 100%);
  position: relative;

}

.carousel_inner{
    transition:top 1.5s ease-in-out ;
    top: -1.5rem;
}

.fixed{
    top: 0 !important;
}

.k2d-regular {
    font-family: "K2D", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  .section2{
   
     background: none;
     width: 100%; 
     height: auto;
  }
  .card1{
    background: linear-gradient(to right,rgba(5, 56, 96, 0),rgba(23, 163, 194, 0),rgba(209, 231, 249, 0.56),rgba(234, 227, 123, 0.99),#ddb823,#ddb823),url('../Sorce/IMG_1448.JPG');
    height: 43vw;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .card2{
    background:linear-gradient(to left,rgba(5, 56, 96, 0),rgba(23, 163, 194, 0.08),rgba(209, 231, 249, 0.267),rgba(234, 227, 123, 0.99),rgb(255, 242, 54),#f4dc00),url('../Sorce/Logo/picture22.png');
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
  }
  .card3{
    background:url('../Sorce/Logo/IMG_1356.JPG');
    height: 50vw;
    background-color: #242424;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
  }

  .card1_1{
     background-image: url(../Sorce/22.png);
     width: 100%;
     height: 50vw;
     position: absolute;
     background-size: cover;
     background-position: center;
     opacity: 0.3;
  }
  .card1_2{
     background-image:  url('../Sorce/picture4.png');
     width: 100%;
     height: 50vw;
     position: absolute;
     background-size: contain;
     background-position: center;
     background-repeat: no-repeat;
     opacity: 0.3;
  }

  .text_card1{
    font-size:  clamp(15px,4.5vw,70px);
    margin-bottom: -30%;
    font-weight: 600;
    color: #fff;
    text-shadow: 0px 5px 12px #030303;
    margin-left: 0px;
    background: linear-gradient(to right,#2c3239,#f0f8ff00);
    width: 100%;
    padding: 1rem;
    border-radius: 0 10px 10px 0;

  }
  .text_card2{
    font-weight: 600;
    color: #fff;
    text-shadow: 0px 5px 8px #030303;
    background:
  linear-gradient(to right,#2c3239,#f0f8ff00);
    width: 100%;
    padding:
  4rem;
    align-items: center;
    display: flex;
    justify-content: center;
    box-shadow: -27px 0px 51px 12px #0000008c;
  }
  .img_card2{
    font-size: clamp(15px,4.5vw,50px);
    font-weight: 600;
    color: #fff;
    text-shadow: 0px 5px 8px #030303;
    background: linear-gradient(to right,#2c3239,#f0f8ff00);
    width: 80%;
  
    align-items: center;
    display: flex;
    justify-content: center;
    box-shadow: -5px 14px 39px 10px black;
    min-width: 265px;
    height: 23vw;
    min-height: 210px;

  }
  .section_2 {
    display: grid;
    grid-template-columns: 65% 35%;
    width: 100%;
    margin-top: auto;
    background: #e3c23c;
    position: relative;
  }

  .section_index {
    display: grid;
    grid-template-columns: 100%;
    width: 100%;
    margin-top: auto;
    background: #e3c23c;
    position: relative;
  }

  .bg_long{
    position: absolute;
    width: 100%;
    height: 100%;
    background:linear-gradient(to right,#e3c23c,#e3c23c,#e3c23c);
    right: 0;
  }





  .card2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
     height: 45vw; 
  }

  @media (max-width: 768px) {

    .card2-1 {
      display: grid;
      grid-template-columns: 2fr 1fr;
       height: 100vw; 
    }



  }






   /* *********************************************** OUR TEAM ****************************************************************  */
   .our_team{
    margin-top: 3%;
    height: 30%;
    align-content: center;
    text-align: center;
    color: #012f6c;
    font-weight: bold;
    font-size: clamp(35px,4.5vw,100px);
    /*border-bottom:2px dotted #ddb823;*/
    width: 90%;
    margin-inline:auto;
  }

  .our_team_2 {
    margin-top: 5%;
    font-size: clamp(35px,4.5vw,100px);
    text-align: start;padding: 20px;
    background-color: #012f6c;
    width:20%;
    margin-right: 90%;
    border-radius: 0 50px 50px 0;
    color: #ffffff;
    font-weight: bold;
  }

    .our_team_3 {
    margin-top: 5%;
    text-align: start;padding: 20px;
    background-color: #012f6c;
    width:45%;
    margin-right: 90%;
    border-radius: 0 50px 50px 0;
    color: #ffffff;
    font-weight: bold;
  }


  @media (max-width: 768px) {

  .our_team_3 {
    width:80%;
  }

  }

.section_3{
  margin-top: 5%;
  margin-bottom: 15%;
  height: auto;
  width: 100%;
}

.section_3_card{
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.wrap_1{
  height: 100%;
  padding: 2rem;
  height: auto;
}

@media (min-width: 1200px) {

  .wrap_1 h1 {
    font-size: 4rem;
  }
  .wrap_2 h1 {
    font-size: 4rem;
  }
}

.wrap_2{
  height: auto;
  padding:2rem;
  text-align: end;
}

.wrap_block{
  display: grid;
  width: 55%;
  height: 88%;
  grid-template-columns: auto auto auto;
  gap: 1rem;
  margin-left: 10%;
}

.block_img{
  width: 100%;
  height: 77%;
  box-shadow: 10px 10px 30px rgba(0,0,0,0.5);
  background-size: cover !important;
  position: relative;
  background-repeat: no-repeat !important;
  transform: translateY(90px);
  opacity: 0;
  background-position: center !important;
  transition:transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.pop_up_img{
  margin-top: 10rem;
  transition:margin-top 1s ease-in-out, opacity 1s ease-in-out;
  opacity: 0;
}

.show{
  margin-top: 0;
  opacity: 1 !important;
}
.show1{
  transform: translateY(0px) !important;
  opacity: 1 !important;
}

.name_employee{
  color: rgb(0, 0, 0);
  position: absolute;
  bottom: 0;
  width: 100%;
  font-size: clamp(15px,4.5vw,25px);
  text-align: center;
  font-weight: inherit;
  background-color: #ffcc00;
  left: 0;
  opacity: 0.8;  
}

.top_block{
  border-bottom: 2px dashed;
  height: 34vw;
}
.bottom_block{
  align-items: end;
  display: flex;
  border-top:
  2px dashed;
  height: 34vw;
  align-self: end;
  bottom: 0;
}

@media (min-width: 1200px) {
  .h1, h1 {
    font-size: 2.7rem;
  }
}

/* ************************************************************************************************ */


@media (max-width: 1000px) {

      .our_team_2 {
    width:45%;
  }

  .section_1{
    display: grid;
    grid-template-columns: none;
    width: 100%;
    margin-top: 10%;
    background:#07487b8a;
    clip-path: polygon(0% 0px, 101.11% 29px, 102.45% 86.31%, 0px 100%);
    position: relative;
    left: 0;
  
  }

  .section_2{
    display: flex;
    flex-direction: column-reverse;
  }
  .section2{
    margin-top: 15%;
  }

  .text_card2{
    padding: 1rem;
  }
  .img_card2{
  
    width: 62%;
    min-width: 265px;
    height: 48vw;
    min-height: 210px;
  }

  .img_main{
    width: 70% !important;
    position: absolute;
    min-width: 218px;
  }
  #carouselExampleAutoplaying {
    margin-top: 0px !important;
  }

  h4 {
    margin-bottom: 2%!important;
  }
/* ***************************************************************** */
  .wrap_block{
    grid-template-columns: none;
    grid-template-rows: auto auto auto;
  }
  .top_block {
    height: 80vw;
    border-bottom:0px dashed;
  }
  .bottom_block {
    height: 80vw ;
    align-items: start;
    border-top: 0px dashed;
  }

  .wrap_block {
    margin: auto;
    width: 64%;

  }
  .block_img {

    height: 70vw;
  }

  .wrap_2 div{
    right: 0px !important;
  }

  .wrap_1 {
    text-align: center;
  }

  .wrap_1 h1{
    font-size: 47px;
  margin-bottom: 20px;
  }

  .wrap_2 {
    text-align: center;
  }

  .wrap_2 h1{
    font-size: 47px;
  margin-bottom: 20px;
  }

  .bg_long{
    clip-path: polygon(-3.77% 37px, 100.59% 2px, 100.38% 98.75%, -25px 86.66%);
  }
  
  .text_card1 {
    font-size: clamp(15px,5vw,70px);
    margin-bottom: -76%;
  }

  .d-block{
    width: 77% !important;
    left: 172px;
  }
  
  .carousel-inner {
    height: 410px;
  }
  
}


@media (max-width: 400px) {

      .our_team_2 {
    width:55%;
  }

}



.stapend {
position: relative;
width: 80%;
height: 45rem;
margin-top: 10%;
}

.card_img {
position: absolute;
background-size: cover;
background-repeat: no-repeat;
background-position:
center;
width: inherit !important;
height: 93% !important;
bottom: 0 !important;
right: 30rem !important;
}

.card_img span {
position: absolute;
font-size: 3.5vw !important;
font-weight: bold;
color: #0F3F8A;
left: 47% !important;
}

@media (max-width: 1000px) {

.stapend {
  position: relative;
  width: 100%;
  height: 28rem;
  margin-top: 5%;
}

.card_img span {
  position: absolute;
  font-size: 4.6vw !important;
  font-weight: bold;
  color: #0F3F8A;
  font-size: 4vw;
  width: 44vw;
  /* left: 55%; */
  top: 10%;
  left: 55% !important;
}

.card_img {
  width: inherit !important;
  height: 90% !important;
  bottom: 0 !important;
  right: 5rem !important;
}
}







.card4{
          width: 100%;
          height: 40rem;
          text-align: center;
          display: flex;
          flex-direction: column;
          align-items: center;
      }
      .card4 h1{
          font-weight: 600;
        color: #ffffff;
        text-shadow: 0px 5px 12px #030303;
        font-size: 3rem;
      }
      @media (max-width: 1000px) {
            .card4{
              width: 100%;
              height: auto;
              text-align: center;
              display: flex;
              flex-direction: column;
              align-items: center;
          }
          .col-md-4{
            height:0 !important;
          } 
          .col-md-4 img{
            width: 0;
          }  
        }     












    .Popular_insurance {
    display: flex ;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* padding: 40px 20px; */
    gap: 40px;
    flex-wrap: wrap;
    margin: 30px 10px;
    }

    .left-column img {
      width: 480px;
      max-width: 100%;
    }

    .right-column {
      display: flex ;
      flex-direction: column;
      gap: 20px;
      max-width: 850px;
    }

    .title-P {
    font-size: 85px;
    font-weight: bold;
    color: #012f6c;
    margin-bottom: 10px;
    text-align: center;
    }

    .grid-P {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .card-P {
      position: relative;
      border-radius: 40px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .card-P img {
      width: 100%;
      height: auto;
      display: block;
    }

    .card-P-text {
    position: absolute;
    bottom: 99px;
    left: 80px;
    color: #004aad;
    font-weight: bold;
    font-size: 45px;
    text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
    }

    /* ✅ Responsive adjustments */
    @media (max-width: 768px) {
      .Popular_insurance {
        flex-direction: column;
        align-items: center;
        margin: 10px 10px;
        gap: 0px;
      }

      .left-column img {
        width: 0px;
        max-width: 0%;
      }

      .grid-P {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }

      .card-P {
       border-radius: 10px;
      }

      .title-P {
        font-size: 45px;
      }

      .card-P-text {
        font-size: 21px;
        left: 15%;
        bottom: 35%;
      }
    }

    @media (max-width: 400px) {
      .Popular_insurance {
        flex-direction: column;
        align-items: center;
        margin: 10px 10px;
        gap: 0px;
      }

      .left-column img {
        width: 0px;
        max-width: 0%;
      }

      .grid-P {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }

      .card-P {
       border-radius: 10px;
      }

      .title-P {
        font-size: 45px;
      }

      .card-P-text {
        font-size: 19px;
        left: 12%;
        bottom: 39%;
      }
    }


/*ข้อความย่อย*/

.textsubpot {
  font-size: 22px;
  padding: 2px 250px;
  color: #012f6c;
  text-indent: 30px;
  text-align: justify;
  text-align-last: left;
}
    

@media (max-width: 1500px) {

.textsubpot {
  font-size: 22px;
  padding: 2px 40px;
}

}



@media (max-width: 768px) {

.textsubpot {
  font-size: 15px;
  padding: 2px 30px;
}

}



.textsubpot1 {
  font-size: 22px;
  padding: 20px 250px;
  color: #012f6c;
  text-indent: 30px;
  text-align: center;
}
    

@media (max-width: 1500px) {

.textsubpot1 {
  font-size: 22px;
  padding: 20px 40px;
}

}



@media (max-width: 768px) {

.textsubpot1 {
  font-size: 15px;
  padding: 20px 30px;
}

}








    .container-seeyouagan {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      padding: 50px;
      margin-top: 30px;
    }

    .left-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      flex: 1;
      min-width: 300px;
      max-width: 800px;
    }

    .grid-item {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
    }

    .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ ตัดภาพให้พอดีกับกรอบ โดยไม่ยืดเบี้ยว */
  border-radius: 12px;
    }

    .label {
      position: absolute;
      bottom: 40px;
      left: 50px;
      color: #0056d6;
      font-weight: bold;
      font-size: 45px;
      text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
    }

    .right-content {
      flex: 1;
      min-width: 280px;
      max-width: 650px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .right-content img {
      width: 100%;
      height: auto;
      border-radius: 12px;
    }

    .cta-button {
    position: absolute;
    bottom: 420px;
    left: 5%;
    color: #0056d6;
    font-size: 55px;
    font-weight: bold;
    text-shadow:
    -2px -2px 0 #ffffff,
     2px -2px 0 #ffffff,
    -2px  2px 0 #ffffff,
     2px  2px 0 #ffffff;
    }

    /* ✅ Responsive */
    @media (max-width: 768px) {
      .container-seeyouagan {
        flex-direction: column;
        align-items: center;
        padding: 6px;
        margin-top: 0px;
        gap: 0px;
      }

      .left-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
      }

      .grid-item img {
      width: 0%;
      height: 0%;
      object-fit: cover; /* ✅ ตัดภาพให้พอดีกับกรอบ โดยไม่ยืดเบี้ยว */
      border-radius: 0px;
    }

        .right-content img {
      width: 90%;
      height: auto;
      border-radius: 12px;
    }

      .cta-button {
        font-size: 0px;
        bottom: 260px;
        left: 10%;
      }
    }

    @media (max-width: 400px) {
      .container-seeyouagan {
        flex-direction: column;
        align-items: center;
        padding: 5px;
      }

      .left-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
      }

      .cta-button {
        font-size: 0px;
        bottom: 240px;
        left: 10%;
      }
    }






.container-customer-l {
      display: flex;
      justify-content: center;
      margin-top: 0px;
    }

    .customer-l {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      flex: 1;
      min-width: 300px;
      max-width: 1200px;
    }

    .cl-item {
      overflow: hidden;
      border-radius: 30px;
    }

    .cl-item img {
      width: 100%;
      height: 70%;
      object-fit: cover;
      border-radius: 20px;
    }

    .label-cl {
      color: #000000;
      font-weight: bold;
      font-size: 30px;
      text-align: center;
    }

      .label-cl p{
      color: #000000;
      font-weight: bold;
      font-size: 15px;
      text-align: center;
      padding: 0 10px;
    }

    @media (max-width: 768px) {
      .container-customer-l {
        flex-direction: column;
        align-items: center;
        padding: 0px;
      }

      .customer-l {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 10px;
      }

      .cl-item {
       border-radius: 10px;
      }

      .cl-item img {
        width: 100%;
        height: 75%;
        object-fit: cover;
      }

      .label-cl {
        font-size: 17px;
      }
      .label-cl p{
      font-size: 0px;
      }
    }

        @media (max-width: 400px) {
      .container-customer-l {
        flex-direction: column;
        align-items: center;
        padding: 0px;
      }

      .customer-l {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 10px;
      }

      .cl-item {
       border-radius: 10px;
      }

      .cl-item img {
        width: 100%;
        height: 77%;
        object-fit: cover;
      }

      .label-cl {
        font-size: 13px;
      }

      .label-cl p{
      font-size: 0px;
    }
    }

    



    .add {
      margin: 10px;
      text-align: center;
      margin-bottom: 90px;
    }

    .สมัครตัวแทน {
       background-color: #013a85;
       padding: 20px 30px;
       border-radius: 50px;
       font-size: 40px;
       color: rgb(255, 255, 255);
    }

    @media (max-width: 768px) {

    .add {
      margin: 20px;
      margin-bottom: 80px;
    }

    .สมัครตัวแทน {
       padding: 10px 20px;
       border-radius: 50px;
       font-size: 25px;
    }

    }

    @media (max-width: 400px) {


    .add {
      margin: 20px;
      margin-bottom: 80px;
    }

    .สมัครตัวแทน {
       padding: 10px 20px;
       border-radius: 50px;
       font-size: 25px;
    }
    }


.add_2 {
      margin: 20px;
      text-align: center;
      margin-bottom: 10px;
    }

    .สมัครตัวแทน_2 {
       background-color: #013a85;
       padding: 10px 20px;
       border-radius: 50px;
       font-size: 30px;
       color: rgb(255, 255, 255);
    }

    @media (max-width: 768px) {

    .add_2 {
      margin: 20px;
      margin-bottom: 10px;
    }

    .สมัครตัวแทน_2 {
       padding: 5px 20px;
       border-radius: 50px;
       font-size: 25px;
    }

    }

    @media (max-width: 400px) {


    .add_2 {
      margin: 20px;
      margin-bottom: 10px;
    }

    .สมัครตัวแทน_2 {
       padding: 10px 20px;
       border-radius: 50px;
       font-size: 25px;
    }
    }













.carousel-container { display: flex; align-items: center; justify-content: center; }
.carousel { display: flex; overflow: hidden; width: 1200px; height: 600px; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.card-ct { min-width: 360px; margin: 10px 20px; border-radius: 5px; overflow: hidden; background: #004bad00;box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.201);height: 570px; }
.card-ct img { width: 100%; height: 505px; }
.card-content h2 { padding:16px 2px 0 9px;color: #ffffff; font-size: 21px; font-weight: bold;margin-bottom: 0px;}
.card-content p { padding:0 15px;color: #ffffff; font-size: 15px;  margin-top: 2px; margin-bottom: 10px;}
button { background: #004bad00; color: #fff; border: none; padding: 5px 5px; cursor: pointer; border-radius: 50%; margin: 0 10px; }

.card-buttons-Service {margin-top: auto; display: flex; gap: 50px; align-items: center;padding: 10px;}
.card-buttons-Service a { color: #002d71; text-decoration: none; font-weight: bold; font-size: 16px;}
.btn1 { padding: 10px 20px; background: #002d71; color: white; border-radius: 20px; text-decoration: none;}
.btn1:hover { background: #7a7a7a;}

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .card-ct { min-width: 340px;margin:10px 20px 10px 20px; border-radius: 5px; overflow: hidden; background: #ffffff;height: 500px; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.201);}
    .carousel { width: 450px; height: 550px;}
    .card-ct img {width: 100%;height: 440px;}
      .prev2 { z-index: 888; padding:100px 0px;font-size: 5px;margin:0px; left: 0px;}
      .next2 { z-index: 888; padding:100px 0px;font-size: 5px;margin:5px; right: 0px;}
      .card-content h2 { padding:16px 2px 0 9px;color: #ffffff; font-size: 19px; font-weight: bold;margin-bottom: 0px;}
    .card-content p { padding:0 15px;color: #ffffff; font-size: 15px;  margin-top: 2px; margin-bottom: 10px;}

    .card-buttons-Service a {color: #002d71;text-decoration: none;font-weight: bold;font-size: 15px;}
  }

@media (max-width: 400px) {
    .card-ct { min-width: 320px;margin:10px 20px 10px 20px; border-radius: 5px; overflow: hidden; background: #ffffff;height: 490px; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.327);}
    .carousel { width: 400px; height: 540px;}
    .card-ct img {width: 100%;height: 435px;}
    .card-content h2 { padding:16px 2px 0 9px;color: #ffffff; font-size: 20px; font-weight: bold;margin-bottom: 0px;}
    .card-content p { padding:0 15px;color: #ffffff; font-size: 13px;  margin-top: 2px; margin-bottom: 10px;}
      .prev2 { z-index: 888; font-size: 5px;margin:0px; left: 0px;}
      .next2 { z-index: 888; font-size: 5px;margin:0 5px 0 0; right: 0px;}

      .card-buttons-Service a {color: #002d71;text-decoration: none;font-weight: bold;font-size: 13px;}
}




.IMG {
  display: flex;
  justify-content: center; 
  flex-wrap: wrap; 
  gap: 20px; 
  margin: 50px 0;
}

.IMG img {
  width: 400px; /* ปรับขนาดตามต้องการ */
  height: auto;
}

@media (max-width: 768px) {
  .IMG {
    flex-direction: column;
    align-items: center;
  }

  .IMG img {
    width: 80%; /* หรือ 100% แล้วแต่ต้องการ */
  }
}








.L{
  width: auto;
  height: 20px;
}

.XL{
  width: auto;
  height: 0px;
}

@media (max-width: 768px) {
.L{
  width: auto;
  height: 20px;
}

.XL{
  width: auto;
  height: 0px;
}
}

@media (max-width: 400px) {
.L{
  width: auto;
  height: 10px;
}

.XL{
  width: auto;
  height: 0px;
}
}









.step1-container {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  position: relative;
}


.top1-section {
  position: relative;
  height: 750px;
}

.person1-img {
  position: absolute;
  left: 20px;
  top: 0;
  height: 100%;
  object-fit: contain;
}

.text1-box {
  position: absolute;
  top: 330px;
  left: 490px;
  max-width: 100%;
}

.text1-box h2 {
  margin: 0;
  font-size: 25px;
  color: #012f6c;
  font-weight: 100;
}

.text1-box h1 {
  margin: 10px 0;
  font-size: 50px;
  color: #012f6c;
  font-weight: 700;
}

.text1-box h3 {
  margin: 0;
  font-size: 25px;
  color: #012f6c;
  font-weight: 100;
  line-height: 1.5;
}

/* ส่วนล่าง */
.bottom1-section {
  margin-top: 0px;
  border: 4px solid #012f6c;
  border-radius: 20px;
  padding: 20px;
}

.bottom1-section p {
  font-size: 25px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0);
  color: #012f6c;
  text-indent: 40px;
  text-align: justify;
}
 

@media (max-width: 768px) {

  .top1-section {
  position: relative;
  height: 350px;
}

.person1-img {
  position: absolute;
  left: -20px;
  top: 0;
  height: 100%;
  object-fit: contain;
}

.text1-box {
  position: absolute;
  top: 150px;
  left: 185px;
  max-width: 100%;
}

.text1-box h2 {
  font-size: 11px;
}

.text1-box h1 {
  font-size: 25px;
}

.text1-box h3 {
  font-size: 11px;
}
 
.bottom1-section {
    padding: 15px 20px;
}

.bottom1-section p {
    font-size: 13px;
}

}

@media (max-width: 350px) {

  .top1-section {
  position: relative;
  height: 300px;
}

.person1-img {
  position: absolute;
  left: -25px;
  top: 0;
  height: 100%;
  object-fit: contain;
}

.text1-box {
  position: absolute;
  top: 110px;
  left: 150px;
  max-width: 100%;
}

.text1-box h2 {
  font-size: 11px;
}

.text1-box h1 {
  font-size: 25px;
}

.text1-box h3 {
  font-size: 11px;
}
 
.bottom1-section {
    padding: 15px 20px;
}

.bottom1-section p {
    font-size: 13px;
}

}




.text_group {
    position: relative;
    height: 60px;
    overflow: hidden;
    color: #012f6c;
    background-color: #ffffff00;
    border-bottom: 2px solid #ffffff00;
    border-top: 2px solid #ffffff00;
  }

  .tg {
    max-width: 1500px;
    position: absolute;
    margin: 5px 0;
    padding: 0;
    width: max-content;
    font-size: 30px;
    color: #012f6c;
    font-weight: 700;
  }

  @media (max-width: 768px) {

  .text_group {
    height: 40px;
  }

  .tg {
    font-size: 20px;
    font-weight: 600;
  }

  }








.form-container {
  background: #ddd;
  padding: 40px;
  max-width: 1300px;
  margin: 0px auto;
}

.form-container h2 {
  text-align: center;
  color: #142c63;
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 40px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.row-frome {
  display: flex;
  gap: 10px;
}

.row-frome input {
  flex: 1;
  padding: 13px;
  font-size: 1.5em;
  color: #000;
}

.gender-frome {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gender-frome label {
  font-size: 1.5em;
  color: #142c63;
}

.text-frome {
  padding: 20px;
  font-size: 1.5em;
  color: #000;
}

.button-frome {
  background: #142c63;
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 1.5em;
  border-radius: 50px;
  cursor: pointer;
  width: 200px;
}

.button-frome:hover {
  background: #0f1e4b;
}



@media (max-width: 768px) {
  .form-container {
    padding: 20px;
    margin: 20px;
  }

  .form-container h2 {
    font-size: 40px;
    margin-bottom: 10px;
  }

  .row-frome {
    flex-direction: column;
    gap: 15px;
  }

  .row-frome input {
    font-size: 1em;
    padding: 5px;
  }

  .gender-frome {
    align-items: flex-start;
  }

  .gender-frome label {
    font-size: 1em;
  }

  .text-frome {
    font-size: 1em;
    padding: 15px;
  }

  .button-frome {
    width: 100%;
    font-size: 1.1em;
    padding: 15px;
  }
}
