@font-face {
  font-family: "MuangthaicapModern-Medium";
  src: url("../fonts/MuangthaicapModern-Medium.ttf");
}

@font-face {
  font-family: "MuangthaicapModern-Regular";
  src: url("../fonts/MuangthaicapModern-Regular.ttf");
}

@font-face {
  font-family: "MuangthaicapText-Regular";
  src: url("../fonts/MuangthaicapText-Regular.ttf");
}

@font-face {
  font-family: "MuangthaicapText-Medium";
  src: url("../fonts/MuangthaicapText-Medium.ttf");
}

@font-face {
  font-family: "MuangthaicapModern-Blod";
  src: url("../fonts/MuangthaicapModern-Bold.ttf");
}

@media screen and (max-width: 899px) {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "MuangthaicapModern-Regular";
    text-decoration: none;
  }

  body {
    overflow-x: hidden;
  }

  #wrapper {
    overflow-x: hidden;
  }

  /* menu-bar */
  .menu_bar {
    position: fixed;
    width: 100%;
    z-index: 20;
    transition: top 0.3s;
    font-size: 0.875rem;
    color: #221f20;
    font-family: "MuangthaicapModern-Medium";
    font-weight: lighter;
    /* background-color: white; */
    /* box-shadow: 0 1px 1px #0000000d; */
  }

  #back-to-org {
    display: none;
  }

  nav {
    position: sticky;
    background: #ffffff;
    height: 60px;
    width: 100%;
    top: 0px;
    box-shadow: 0 10px 10px #0000000d;
    border-bottom: 1px solid rgb(211, 211, 211);
  }

  .box-menu-bar {
    background-color: #ffffff;
    z-index: 10;
    height: 59px;
  }

  .header-top {
    background-color: #fff;
  }

  .header-top-block1 .langg {
    float: right;
    color: #221f20;
    margin-right: 15px;
    margin-top: 15px;
  }

  .logo {
    color: rgb(255, 255, 255);
    width: 50px;
    padding: 0 60px;
  }

  .checkbtn {
    margin-top: -8px;
    color: white;
    float: right;
    line-height: 60px;
    margin-right: 15px;
    cursor: pointer;
    display: block;
    background-color: #fff;
  }

  .icon-bar {
    display: none;
    margin-top: 23px;
    display: block;
    width: 30px;
    height: 30px;
  }

  .close-menu {
    display: none;
    margin-top: 30px;
    display: block;
    margin-left: 7.5px;
    margin-right: 7.5px;
    width: 15px;
    height: 15px;
  }

  nav ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    top: -100%;
    left: 0;
    padding-left: 5vw;
    transition: all 0.5s;
    z-index: -10;
  }

  .image-resize {
    position: absolute;
    width: 190px;
    margin-top: 11px;
    margin-left: -44px;
    background-color: #fff;
  }

  nav ul li {
    display: block;
    line-height: 70px;
  }

  nav ul li a {
    font-size: 16px;
    color: #221f20;
  }

  .line-menu {
    width: 93%;
    border-bottom: 0.5px solid rgb(211, 211, 211);
  }

  .box-main-org {
    width: 15px;
    height: 10px;
    color: #221f20;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 30px;
    background-color: #e9f5fb;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-out;
    min-width: 150px;
    min-height: 35px;
    outline: 5px solid white;
  }

  .all {
    display: flex;
    align-items: center;
  }

  .img-go-org {
    width: 16px;
    height: 16px;
  }

  .box-main-org p {
    margin-left: 10px;
  }

  ul li a:hover {
    background: none;
    color: #0082e6;
  }

  #check:checked ~ ul {
    top: 60px;
    left: 0;
  }

  #check {
    display: none;
  }

  #check:checked + .checkbtn .icon-bar {
    display: none;
  }

  #check:checked + .checkbtn .close-menu {
    display: block;
  }

  /* ซ่อนรูปภาพปิดเมนู */
  #check:not(:checked) + .checkbtn .close-menu {
    display: none;
  }

  #check:checked ~ .menu_bar nav {
    top: 60px; /* ปรับค่าตามความสูงของ header-top */
  }

  #check:checked ~ .menu_bar .header-top {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 10px #0000000d;
    z-index: 10;
  }

  /* content */

  .white-box {
    width: 90%;
    margin-left: 5%;
    background-color: rgb(255, 255, 255);
    text-align: center;
    margin-top: 100px;
    background: none !important;
  }

  .conbtainer-first {
    width: 100%;
    height: auto;
  }

  .text-head p {
    font-size: 3rem;
    font-family: "MuangthaicapModern-Medium";
    color: #000;
    /* margin-left: 5vw; */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }

  .framework {
    font-size: 2.5rem;
    font-family: "MuangthaicapModern-Medium";
    /* margin-right: 61vw; */
    margin-top: -20px;
    color: #07a9ec;
  }

  .content-framework {
    width: 100%;
  }

  .content-framework p {
    text-align: start;
    font-family: "MuangthaicapModern-Regular";
    font-size: 0.875rem;
  }

  .container-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .item1,
  .item2,
  .item3 {
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Align center if needed */
  }

  .for-img {
    display: grid;
    grid-template-columns: 80% 20%; /* Main image takes 80%, list image takes 20% */
    width: 75%; /* Control the width of the image container */
    margin-top: 20px;
  }

  /* Main image styling */
  .for-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image maintains aspect ratio */
  }

  /* Image Styling */
  .item1 img,
  .item2 img,
  .item3 img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the list image fits its container */
    /* margin-top: 20px;
    width: 75%; */
    display: block;
  }

  /* Hiding any unnecessary img-content */
  .item1 .img-content,
  .item2 .img-content,
  .item3 .img-content {
    display: block;
    width: 100%;
  }

  /* List Image Styling */
  .list1 img,
  .list2 img,
  .list3 img {
    width: 100%;
    display: block !important;
  }

  /* Text Styling */
  .item1 .text1,
  .item2 .text2,
  .item3 .text3 {
    font-family: "MuangthaicapModern-Medium";
    width: 100%;
    border-radius: 8px;
  }

  /* Paragraph Text Styling */
  .item1 .text1 p,
  .item2 .text2 p,
  .item3 .text3 p {
    color: #000000;
    display: inline-block !important;
    font-size: 2rem !important;
  }

  /* Shared hr-tag styling */
  .hr-tag {
    display: block !important;
    margin-top: 30px;
  }

  /* Gradient Text in All Items */
  .container-item p {
    background-image: linear-gradient(to right, #0fa6e5, #4ccafc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Text-specific adjustments */
  #text-item1,
  #text-item2,
  #text-item3 {
    font-size: 0.875rem !important;
    color: #000 !important;
    margin: 0 !important;
    /* text-align: justify; */
    margin-top: -20px !important;
  }

  /* Remove <br> tags in specific text */
  #text-item1 br,
  #text-item2 br,
  #text-item3 br {
    display: none;
  }

  /* Remove unnecessary absolute positioning from item2 and item3 images */
  .header {
    color: #221f20;
    font-family: "MuangthaicapModern-Medium";
    font-weight: 500;
    font-size: 2.5rem;
  }

  .box-flex {
    display: flex;
    margin-top: 50px;
    /* justify-content: space-between; */
    font-size: 1rem;
    font-family: "MuangthaicapText-Regular";
  }

  .line-box {
    background-color: #00a2e5;
    border-radius: 4px;
    justify-content: center;
    width: 100%;
    -webkit-column-gap: 1rem;
    -moz-column-gap: 1rem;
    column-gap: 1rem;
    padding: 0.5rem 0;
    margin-top: 15px;
  }

  /* .line-box  a {
        text-decoration: none;
        color: #fff;
        font-size: 0.875rem;
        font-family: 'MuangthaicapText-Regular';
    } */

  .header p {
    font-family: "MuangthaicapModern-Medium";
    color: #221f20;
    font-size: calc(1.375rem + 1.5vw);
  }

  .line-box {
    display: none;
  }

  .download-text {
    display: block !important;
    margin-top: 10px;
    font-size: 0.975rem;
  }

  .link1 {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
    /* border-bottom: 1.5px solid #2596be;
    padding: 1vw; */
  }

  .link2 {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 30px;
  }

  .link1 p {
    font-family: "MuangthaicapModern-Medium";
    font-size: 1rem;
    color: #07a9ec;
  }

  .link2 p {
    font-family: "MuangthaicapModern-Medium";
    font-size: 1rem;
    color: #07a9ec;
  }

  .link1 a,
  .link2 a {
    font-size: 1rem !important;
  }

  .link1 i,
  .link2 i {
    font-size: 1rem !important;
  }

  .download-01 {
    padding: 40px 0 40px 0;
  }

  .pic-01 {
    height: 60vw;
  }

  .download-01 a p {
    text-decoration: none;
    color: #221f20;
    font-size: calc(1.1875rem + 0.75vw);
    font-family: "MuangthaicapText-Regular";
    padding-top: 20px;
  }

  .footer {
    padding-left: 5%;
    padding-right: 5%;
    background-color: #00a2e5;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .top-inform {
    width: 100%;
    padding-top: 45px;
    text-align: center;
  }

  .col1 {
    font-family: "Muangthaicaptext-Regular";
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .footer-header1 {
    text-align: center;
    font-family: "MuangthaicapModern-Medium";
    font-size: calc(1.109375rem + 0.4375vw);
  }

  .member p {
    font-size: 1rem;
    margin-top: 15px;
  }

  .button-member {
    text-decoration: none;
    color: #00a2e5;
    font-size: 0.875rem;
    font-family: "Muangthaicaptext-Medium";
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .bm-content {
    margin-top: 15px;
    border-radius: 30px;
    width: 210px;
    padding: 8px;
    display: flex;
    background-color: #fff;
    align-items: center;
    justify-content: space-around;
  }

  .arrow-right-img {
    width: 20%;
  }

  .followme {
    font-family: "Muangthaicaptext-Medium";
    font-weight: 600;
    margin-top: 25px;
    font-size: 0.875rem;
  }

  .button-followme {
    display: flex;
    flex-direction: row;
    margin-top: 8px;
  }

  .youtube {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
  }

  .facebook {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-left: 10px;
  }

  .youtube-img {
    width: 34%;
  }

  .col2 {
    display: none;
  }

  .col2 ul {
    font-family: "Muangthaicaptext-Regular";
    list-style: none;
    color: #fff;
    font-size: 0.875rem;
    line-height: 2.1rem;
    text-decoration: none;
  }

  .col2 ul li a:visited {
    color: white;
  }

  .col3 {
    color: #fff;
    font-family: "Muangthaicaptext-Regular";
  }

  .col3 .footer-header1 {
    margin-top: 20px;
  }
  .col3 .address-header {
    font-family: "Muangthaicaptext-Medium";
    margin-top: 10px;
    font-size: 0.875rem;
    font-weight: 600;
  }

  .location {
    font-size: 0.875rem;
    margin-top: 5px;
  }

  .location ul {
    list-style: none;
  }

  .location ul li a {
    text-decoration: none;
    color: white;
    font-size: 0.875rem;
  }

  .location ul li a:visited {
    color: white;
  }

  .line1 {
    margin-top: 10px;
    width: 100%;
    border-top: 1px solid yellow;
  }

  .tel-text {
    font-family: "Muangthaicaptext-Medium";
  }

  .tel-number {
    font-size: 0.875rem;
    font-family: "Muangthaicaptext-Regular";
    font-weight: 400;
  }

  .bottom-inform {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-family: "Muangthaicaptext-Regular";
    color: white;
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .text-inform1 {
    text-align: center;
  }

  .text-inform2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 20px;
    line-height: 30px;
  }

  .text-inform2 a {
    color: #fff;
    text-align: center;
  }

  .yellow {
    color: yellow;
    display: none;
  }

  .running-underline2 {
    position: relative;
    text-decoration: none;
  }

  .running-underline2::before {
    content: "";
    position: absolute;
    width: 0px;
    height: 1px;
    background-color: #ffffff; /* สีของเส้นใต้ */
    bottom: -8px;
    left: 0;
    transition: all 0.5s ease; /* เพิ่ม transition เพื่อให้มีการเคลื่อนไหวเนื่องจากความเร็วที่กำหนด */
  }

  .running-underline2:hover::before {
    width: 250px;
    background-color: #ffffff;
  }

  #company-info {
    color: inherit;
    text-decoration: none;
  }
}
