@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Anuphan';
    src: url('path/to/fonts/Anuphan-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

body {
    font-family: 'Anuphan', sans-serif;
}

/* ส่วน Header Bar */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
/* 	  height: 60px; */
    z-index: 1000;

}

/* ส่วนพื้นหลังของ web */
.parallax-container {
  position: relative;
  overflow-x: hidden; 
	overflow-y: auto; /
}

.parallax-section {
  position: relative;
  background-size: cover;
  background-position: center;
	background-attachment: fixed; 
}

/* ส่วนรูปภาพ background*/
/* จะเรียงตามลำดับหน้าจากhome ไปยัง contact us และจะเรียงจากข้างบนสู่ข้างล่าง */
.section1 {
  background-image: url('https://connextliving.co.th/wp-content/uploads/2024/07/บริการของเรา-Background.png');
}

.section2 {
  background-image: url('https://connextliving.co.th/wp-content/uploads/2024/07/Design-Your-Smart-Home-Background.png');
}

.section3 {
 background-image: url('https://connextliving.co.th/wp-content/uploads/2024/07/Background-ปรับ.png');
}

.section4 {
  background-image: url('https://connextliving.co.th/wp-content/uploads/2024/07/ท้องฟ้า.png');
}

.section5 {
  background-image: url('https://connextliving.co.th/wp-content/uploads/2024/08/Background-002.png');
}

.section6 {
  background-image: url('https://connextliving.co.th/wp-content/uploads/2024/08/Background-007.png');
height: auto;
}


.white-box {
  height: 200px; /* Height of white boxes */
  background-color: white;
}

/* ส่วน video */
.video-classes{
	 max-width: 1830px !important;
/*     max-height: calc(100vh - 90px) !important; */
   width: 100% !important; /* To make sure it scales down on smaller screens */
   height: auto !important; /* Maintain aspect ratio */
}

/* ส่วนModal ที่ขึ้นมาจาก plan บ้าน */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* เปลี่ยนจาก auto เป็น hidden เพื่อป้องกันการเลื่อน */
    background-color: rgba(0, 0, 0, 0.3); /* Background transparent 0.3 */
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-content {
    padding: 20px;
    width: 100%;
    max-width: 600px; /* Optional: set a max-width to limit the size */
    position: absolute;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {transform: translateY(-30%);}
    to {transform: translateY(0);}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.center-header-image {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.center-header-image h1 {

  margin-right: 10px; /* ปรับระยะห่างระหว่างหัวข้อ H1 และรูปภาพตามต้องการ */
}

.center-header-image img {
  width: 40%; /* ปรับขนาดรูปภาพตามต้องการ */
}

/* ส่วนFooter */
/* ส่วนFooter widget2 */
.image-widget {
  position: relative;
/*   width: 500px; /* ปรับขนาดกว้างตามต้องการ */้
/* height: 300px; */ 
	height: 100%;
  z-index: 10; /* เพื่อให้ซ้อนทับกับคอมพอเนนท์ก่อนหน้า */
}

.image-widget img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.image-widget.fade-up img {
  opacity: 1;
  transform: translateY(0);
}

/* ส่วนFooter html2 */
.footer-custom {
        padding: 20px;
        border-radius: 10px;
        color: white;
        text-align: start;
        margin-bottom: 50px;
        font-size: smaller;
    }

.footer-custom a {
        color: white;
        text-decoration: none;
    }

 .footer-custom a:hover {
        text-decoration: underline;
    }

 .footer-custom h4 {
        margin-top: 0px;
        color: white;
        text-align: center;
    }

 .footer-custom ul {
        list-style-type: disc;
        padding-left: 20px;
    }

 .footer-custom ul li {
        margin: 5px 0;
    }

    .footer-custom ul li a {
        color: white;
        text-decoration: none;
    }

 .social-links {
			  padding: 20px;
        border-radius: 10px;
        color: white;
        text-align: start;
        margin-bottom: 50px;
        font-size: smaller;
    }

  .social-links h4 {
        margin-top: 0px;
        color: white;
    }

  .social-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

  .social-links ul li {
        margin: 0px 0;
        display: flex;
        align-items: center;
    }

  .social-links ul li a {
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
			  font-size: 18px;
			align-items: center;
		
    }

  .social-links ul li .fa {
        font-size: 24px;
        margin-right: 8px;
			align-items: center;
    }

 .social-links ul li .icon-box {
        width: 20px; /* Box width */
        height: 20px; /* Box height */
        display: flex;
        align-items: center;
				align-self: center;
        justify-content: center;
        border-radius: 50%;
        background-color: white;
     		color:var(--e-global-color-primary);
        margin-right:5px; /* Margin to the right of the icon box */
    }

  .social-links ul li span {
        font-size: 16px;
    }

.icon-box{
		 width:20px;
		 height:20px;
		 margin:3px;
	 }



/*ส่วนแปลภาษา switcher*/
.trp-ls-shortcode-current-language {
background-color: transparent;
}

.trp-language-switcher {
    width: auto !important;
		margin: 0px;
	height: auto;

}

.trp-language-switcher > div {
	border-radius: 20px;
	margin: 0px;
	height: auto;
	background-color: transparent;
	padding: 0px !important;
	border-color: white;
	background-position: calc(100% - 20px) calc(0.9em), calc(100% - 3px) calc(1em + 0px);
}

.trp-language-switcher > div > a.trp-ls-shortcode-disabled-language {	
	color: #ffffff !important;
	font-size:14px;
}

.trp-language-switcher > div > a > img {
    display: inline;
    margin: 0 3px;
    width: 16px;
    height: 16px;
    border-radius: 50px;
}



.floating-button {
	  text-align: end !important;
 		align-items: end !important;
		align-content:end !important;
		margin-right: 0px !important;
}





/* ส่วน form ดาวน์โหลด catalog */
 /* CSS to style the form container */
      .container {
/*         display: flex; */
        flex-direction: column;
        align-items: center;
      }

      .form-container {
        width: 100%;
        /*margin: 10px;*/
        padding-left: 20px;
				padding-right: 20px;
       /* Set maximum width for the form */
      }

      /* CSS to style the text fields */
      #myForm input[type='text'],
      #myForm input[type='tel'],
      #myForm input[type='line'] {
        width: calc(
          100%
        ); /* Adjust width to accommodate padding and border */
        border-radius: 10px; /* Border radius of 10 */
       /* border: 2px solid #6E3FE3;  Secondary theme color */
        /* Add padding */
        margin-bottom: 10px; /* Add spacing between fields */
      }

      /* CSS to style the submit button */
      #myForm button[type='submit'] {
        width: 100%;
        background-color: #6E3FE3; /* Primary background color */
        color: #fff; /* White text color */
        border: none; /* Remove border */
        border-radius: 10px;
        margin-top: 20px;
        padding: 10px 20px; /* Add padding */
        cursor: pointer; /* Change cursor to pointer on hover */
        transition: background-color 0.3s ease;
      }

      #myForm button[type='submit']:hover {
        background-color: #FAE816; /* Darker shade of primary color on hover */
      }

      #dialog {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        padding: 20px;
        border: 2px solid #6E3FE3;
        border-radius: 10px;
        z-index: 1000;
      }

      #dialog button {
        background-color: #6E3FE3;
        color: #fff;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 5px;
        width: 100%;
      }

      #dialog button:hover {
        background-color: #face41;
      }

/* ส่วนปุ่ม back to top */
.ast-scroll-top-icon .ast-scroll-to-top-right{
	background-color: #ffffff !important;
	color: var(--ast-global-color-0) !important;
    font-size: 12px !important;
    width: 20px !important;
	height:20px !important;
}

.container-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto; /* Will adjust based on the content */
}





/* responsive เฉพาะใน mobile */
 @media (max-width: 768px) {
	 
/* ส่วนแปลภาษา switcher	  */
	 .trp-language-switcher > div {
	border-radius: 20px;
	margin: 0px;
	height: auto;
	background-color: transparent;
	padding: 0px !important;
	border-color: white;
	background-position: calc(100% - 20px) calc(1em), calc(100% - 3px) calc(1em + 0px);
}
	 
.trp-language-switcher > div > a.trp-ls-shortcode-disabled-language {	
	color: #ffffff !important;
	font-size:14px;
	padding:2px 5px 2px 5px;
}
	 
	 .trp-language-switcher .trp-ls-shortcode-language {
		 font-size: 14px;
	 }

.trp-language-switcher > div > a > img {
    display: inline;
    margin: 0 3px;
    width: 16px;
    height: 16px;
    border-radius: 50px;
}

/* ส่วนfooter	  */
	 .icon-box{
		 width:20px;
		 height:20px;
		 margin:3px;
	 }
    .footer-custom {
           margin-top: 0;
						padding: 10px;
					 margin-bottom: 0px;
					font-size: smaller;
        }
    .footer-custom ul {
          list-style-type: disc;
          padding-left: 0px;
    }
  	.social-links {
			  padding: 10px;
        border-radius: 10px;
        color: white;
        text-align: start;
        font-size: smaller;
    }
	 .site-content {
     margin-top:0px;/* ปรับขนาดตามความสูงของ header */
}
   .form-container {
        width: 100%;
        /*margin: 10px;*/
        padding-left: 10px;
				padding-right: 10px;
       /* Set maximum width for the form */
      }

  }