*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}
body{
    font-family: 'Kanit';
    min-height: 100vh;
    color: #fff;
}

h1{
    font-size: clamp(1.8rem,calc(2vw + 1rem),5rem)!important;
    color: #03bfd9!important;
    font-weight: 800!important;
    text-transform: capitalize!important;
}
h2{
    font-size: clamp(1rem,1.5rem,2rem)!important;
    color:#032135;
    padding-bottom: 10px!important;
    text-transform: uppercase !important;
}
h3{
    font-size: clamp(.5rem,1rem,1.5rem)!important;
    color:black;
    padding-bottom: 10px!important;
    text-transform: uppercase!important;
}
p {
    font-size: 1em;
    margin: 0;
    font-weight: 400;
    line-height: 25px;
    color: #707070;
}
.text-white{
    color: #fff !important;
}
.text-gray{
    color: #707070;
}
.text-black{
    color:black !important;
}
.max-width-500{
    max-width: 500px;
    margin: 0 auto;
}

nav{
    background-color: #032135;
    box-shadow: 3px 3px 3px gray;
}
 nav ul{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
 }
 nav ul li{
    height: 50px;
 }
 nav ul li a{
    color: white;
    text-decoration: none;
    height: 100%;
    padding: 0px 30px;
    display: flex;
    align-items: center;
 }

 nav ul li a i{
    color: white;
    /* font-size: 18px; */
 }
 nav ul li a:hover{
    background-color: #444242;
 }

 nav ul li:first-child{
    margin-right: auto;
 }
 .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    transition: right 0.4s ease-in-out;
    background-color: rgba(255, 255, 255, 0.2); /* เพิ่มความโปร่งใส */
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
}

 .sidebar li{
    width: 100%;
 }
 .sidebar a{
    width: 100%;
 }
 .sidebar li a i{
    font-size: 25px;
 }
 .menu-button{
    display: none;
 }
 .sidebar.visible {
    right: 0;
}

/* อนิเมชันเลื่อน Sidebar */
@keyframes slideInRight {
    0% {
        right: -250px;
    }
    100% {
        right: 0;
    }
}
 @media only screen and (max-width: 768px) {
    .hideOnMobile{
        display: none;
    }
    .menu-button{
        display: block;
     }
     /* h1{
        font-size: 25px;
     } */
 }
 @media(max-width:400px){
    .sidebar{
        width: 100%;
    }
 }

 /* header content */
 .main-header {
    background-image: url('img/host-slide2.jpg');
    background-size: cover;
    background-repeat: no-repeat; 
    background-position: center; 
    width: 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.main-header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.7); /* สีดำโปร่งแสง */
    z-index: 1;
}
.header-content {
    width: 720px;
    /* border: 1px solid red; */
    position: relative; 
    z-index: 2; 
    color: white; 
    text-align: center; 
    padding: 80px 20px; 
}
.header-content-img {
    /* border: 1px solid red; */
    position: relative; 
    z-index: 2; 
    color: white; 
    text-align: center; 
    padding: 80px 20px;
}
.header-content-img img{
   width: 300px;;
}
@media only screen and (max-width: 768px) {
    .header-content-img{
        display: none;
    }
 }
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px); /* เริ่มต้นจากด้านขวา */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* จบที่ตำแหน่งปกติ */
    }
}

.animated-img {
    animation: slideInRight 1s ease-out 0.2s both;
}
.slide-content-header{
    max-width: 750px;
    margin: 0 auto;
    padding: 35px 0;
}
@keyframes slideInText {
    0% {
        opacity: 0;
        transform: translateX(-100px); /* เลื่อนมาจากซ้าย */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* ตำแหน่งปกติ */
    }
}

.slide-content-header, h1 {
    animation: slideInText 1s ease-out forwards;
}

.proxy-pakage {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
    animation: slideInText 1s ease-out forwards;
}

.btn-pakage, .btn-register {
    padding: 10px 20px;
    background-color: #03bfd9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.btn-register {
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-pakage:hover, .btn-register:hover {
    background-color:white;
    color: #03bfd9;
}

/* content */
/* เส้นขั้น */
.top-line{
    position: relative;
}
.top-line::before{
    border-top-color: #131b31!important;
}
.top-line::after{
    background: #131b31!important;
}
.top-line::before{
    content: "";
    position: absolute;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    top: 7px;
    left: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    border-top: 14px solid;
    z-index: 2;
}
.top-line::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    z-index: 2;
}

.title-border{
    position: absolute;
    width: 154px;
    margin: 0 auto;
    height: 15px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}
.title-border::after, .title-border::before {
    background-color: #03bfda;
}
.title-border::before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 62px;
    left: 0;
    height: 1px;
}
.title-border span::before {
    position: absolute;
    content: "";
    left: 61px;
    bottom: 0;
    border: 9px solid transparent;
    border-bottom: 13px solid;
}
.title-border span::before {
    border-bottom-color: #03bfda;
}
.title-border span::after {
    position: absolute;
    content: "";
    top: 0;
    right: 62px;
    border: 9px solid transparent;
    border-top: 13px solid;
}
.title-border span::after {
    border-top-color: #03bfda;
}
.title-border::after {
    content: "";
    position: absolute;
    top: 0;
    width: 63px;
    right: 0;
    height: 1px;
}
/* เส้นขั้น จบ*/
.content-first{
    background: #edfbfd;
}
.pading-space{
    padding: 50px 0;
}
.box-content{
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    padding: min(.5em,8%);
}
.title-content{
    text-align: center;
}
.title-content p{
    margin: 50px auto 55px;
    max-width: 750px;
}
/* body content */
.body-item{
    display: flex;
    flex-direction: row;
}
.item-content{
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}
.item-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}
/* .icon-content{
    width: 100px;
} */
.body-card{
    display: flex;
    width: 350px;
    gap:10px;
    margin: 15px auto;
}
@media screen and (max-width: 768px) {
    .body-item {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .body-card {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 10px auto;
    }

    .icon-content {
        margin-bottom: 10px;
    }

    .text-content {
        width: 100%;
    }
}

/* card content */

.box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap:15px;
}
.box-container .card{
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    border: 1px solid #eee5e5;
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.box-container .card:hover{
    box-shadow: 0 10px 15px rgba(0,0,0,.3);
    transform: scale(1.01);
}
.card img{
    width: 100%;
    height: 150px;
    border-radius: 5px;
}
.box-container .card .btn-more{
    margin-top: 5px;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-size: 17px;
    border-radius: 5px;
    background-color: #333;
    padding: 8px 25px;
}
.box-container .card .btn-more:hover{
    letter-spacing: 1px;
}

/* content การเชื่อมต่อที่เสถียรและรวดเร็ว */

.img-content{
    padding: 0 15px;
}
.img-content img{
    max-width: 100%;
    height: 270px;
    display: inline-block;
    border-radius: 10px;
}
@media screen and (max-width: 768px) {
    .img-content img{
        height: 200px;
    } 
}
.padding-fqa{
    padding: 45px 30px;
    width: 700px;
}
.box-fqa{
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}
/* footer */

.main-footer{
    background-color: #032135;
    box-shadow: 3px 3px 3px gray;
}
.content-footer{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1rem));
    justify-content: space-around;
    gap: 15px;
}
.container{
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.address{
    padding: 10px 0;
}
.img-logo{
    margin-bottom: 10px;
}
.footer-copylight{
    background-color: #032135;
    box-shadow: 3px 3px 3px gray;
    padding: 30px;
    border-top: 1px solid #343843;
    text-align: center;
}
.address p a:hover{
    color:#03bfda;
}
.pading-space-footer{
    padding: 20px 0 0 0;
}
