.header {
    background: rgba(14, 61, 115, 0.60);
}
body:has(.page-custom) header {
    position: sticky;
    --background-color: rgba(42, 44, 57, 0.9);
}
.content_portfolio_listing .top-banner {
    width: 100%;
    margin-bottom: 30px;
}
.content_portfolio_listing .top-banner img {
    width: 100%;
    height: auto;
}
.content_portfolio_listing .control-post a {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px;
    border-radius: 6px;
    background: #eee;
    text-decoration: none;
    color: #333;
}
.content_portfolio_listing .control-post {
    text-align: center;
    margin-top: 20px;
}
.content_portfolio_listing .control-post a.active {
    background: #ff6600;
    color: #fff;
}/* PAGE */
.portfolio-page {
  padding: 60px 0;
  background: #f8f9fb;
}

/* HEADER */
.portfolio-header {
  margin-bottom: 40px;
}

.portfolio-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.portfolio-header p {
  color: #777;
  font-size: 16px;
}

/* GRID */
.portfolio-grid {
  margin-top: 20px;
}

/* CARD */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 25px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
}

/* IMAGE */
.image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 65%;
  overflow: hidden;
  position: relative;
}

.image-wrapper img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  transition: 0.3s ease;
}

.portfolio-card:hover .overlay {
  opacity: 1;
}

/* OVERLAY CONTENT */
.overlay-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
}

.overlay-content h3 {
  font-size: 18px;
  margin: 0 0 5px;
}

.view-btn {
  font-size: 14px;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
}

/* PAGINATION */
.block-control {
  margin: 30px 0;
}

/* NO LISTING */
.no-listing {
  padding: 60px 0;
  font-size: 18px;
  color: #888;
}

[class^="col-"], [class*=" col-"] {
    float: left;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
.title-slide > div:first-child img {
    position: relative;
    left: 7%;
}
.title-slide > div:last-child img {
    position: relative;
    right: 7%;
    margin-top: 18px;
}
.col-1-2 {
    width: 50%;
}
.we-box {
  display: flex;
  align-items: stretch; /* เปลี่ยนจาก center */
  position: relative;
}

/* ซ้าย */
.we-left {
  background: #e6c84f;
  flex: 1;
  padding: 40px;
  position: relative;
  z-index: 2; /* สำคัญ: ดันขึ้นมา */
}

/* ขวา */
.we-right {
  background: #2f477a;
  flex: 1;
  padding: 40px;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* ตัวเฉียง */
.we-right::before {
  content: "";
  position: absolute;
  left: -60px;   /* ลดระยะไม่ให้ล้ำเยอะ */
  top: 0;
  width: 120px; /* ลดขนาด */
  height: 100%;
  background: #2f477a;
  transform: skewX(-30deg);
  z-index: -1; /* 👈 สำคัญมาก ไม่ให้ทับ */
}

.title-slide > div img {
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
}
.section p {
    margin-bottom: 0;
}

.service-for-you {
    min-height: 500px;
    background: url(../images/bg-service.png) no-repeat top center;
    background-attachment: fixed;
    background-size: cover;
}
.service-for-you .container {
    font-size: 35px;
    line-height: 120%;
    color: #fff;
    padding-top: 8%;
    clear: both;
    text-align: center;
}
.content.alliance {
    text-align: center;
    margin: 40px 0;
}
.content.our-brand {
    background: url(../images/bg-brand.png) no-repeat top center;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}
.content.our-brand .inner-page {
    position: relative;
    padding: 20px 0;
    margin: 40px 0;
}
/* logo */
.our-brand .swiper-slide {
  text-align: center;
}

.our-brand img {
  box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
  transition: all ease-in-out 0.3s;
  border-radius: 12px;
  transition: 0.3s;
}

.our-brand img:hover {
  opacity: 1;
  transform: scale(1.05);
}
.brand-slider .swiper-slide {

  display: flex;
  justify-content: center;
  align-items: center;
}
.brand-slider {
  overflow: hidden;
}
.our-brand .swiper-wrapper {
  height: auto;
}
.section.our-brand.content .section-title p {
    color: #fff;
}
.our-brand .post-swiper .slide-image{
  height: auto;
}
.content.our-brand .section-title h2 {
    color: #999999;
}
.brand-content {
    background: rgba(255, 255, 255, 0.50);
    padding: 30px 0;
}
div[page-id="5017"] {
    background: rgba(255, 255, 255, 0.50);
}

.form-box form#contactform input, .form-box form#contactform textarea {
    width: 97%;
    margin-bottom: 15px;
    border-radius: 5px;
}
.content.form-contact {
    padding-bottom: 60px;
}





.footer {
  background: #0f172a;
  color: #fff;
  padding: 30px 0;
  font-size: 14px;
}

.footer a {
  color: #e6c84f;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* social */
.footer-social a {
  display: inline-block;
  margin-left: 10px;
  font-size: 18px;
  color: #fff;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #e6c84f;
}

/* extra */
.footer-extra {
  margin-top: 15px;
}


.fa {
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
}
html:not(.scrolled):has(.hero) header#header{
    margin-top: 81px;
}

html .scrolled > .header {
    margin-top: 0 !important;
}

.header .logo img {
    max-height: inherit;
    margin-right: auto;
}
.scrolled .header .logo img {
    max-height: 45px;
}
.header{
  padding: 15px 0;
}

.layer {
  position: absolute;
  opacity: 0;
  transition: all 0.9s ease;
}

/* animation */
.layer[data-anim="left"]   { transform: translateX(-80px); }
.layer[data-anim="right"]  { transform: translateX(80px); }
.layer[data-anim="up"]     { transform: translateY(40px); }
.layer[data-anim="zoom"]   { transform: scale(0.8); }
.layer[data-anim="fade"]   { transform: translateY(20px); }

.layer.show {
  opacity: 1;
  transform: translate(0,0) scale(1);
}

.hero {
  position: relative;
}

.carousel-container {
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.layer {
  position: absolute;
  opacity: 0;
  transform: translate3d(0,0,0) scale(1);
  transition: all 0.8s ease;
}

/* ตอนแสดง */
.layer.show {
  opacity: 1;
}
.hero .hero-waves {
    position: relative;
    bottom: 60px;
    z-index: 20;
}

.navmenu a{
  font-size: 18px;
}

footer .row.gy-4.align-items-center {
    width: 100%;
}

.about-section {
  padding: 60px 0;
  font-family: 'Prompt', sans-serif;
  color: #333;
}

/* ===== Layout ===== */
.about-section .container {
  max-width: 1140px;
  margin: auto;
  display: flex;
  gap: 40px;
  padding: 40px 20px;
  align-items: center;
}

.about-section .col-1-2 {
  width: 50%;
}

.about-section .col-1-3 {
  width: 33.33%;
}

/* ===== Image ===== */
.about-section img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Typography ===== */
.about-section h1 {
  font-size: 30px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.about-section h2 {
  font-size: 22px;
}

.about-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

/* ===== Line img ===== */
.about-section h1 img {
  width: 100px;
  margin: 10px 0;
}

/* ===== Align ===== */
.about-section .text-right {
  text-align: right;
}

.about-section .text-center {
  text-align: center;
}

/* ===== Full Image Section ===== */
.about-section > div > p img {
  width: 100%;
}

/* ===== KEP Section ===== */
.about-section .container h1,
.about-section .container p {
  text-align: center;
}

.about-section .col-1-3 {
  text-align: center;
}

.about-section .col-1-3 img {
  margin-bottom: 15px;
  transition: 0.3s;
}

.about-section .col-1-3 img:hover {
  transform: translateY(-5px);
}

/* ===== Overlay Section ===== */
.about-section form[name="content"] {
  position: relative;
}

.about-section form[name="content"] img {
  width: 100%;
}

.about-section form[name="content"] p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  max-width: 800px;
  width: 90%;

  color: #fff;
  text-align: center;

  background: rgba(0,0,0,0.5);
  padding: 25px;
  border-radius: 10px;
}

.content-div form {
    margin: 80px 0;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: block;
}

.pages .container {
}
.content-div h3 {
    margin: 0;
    line-height: 100%;
}
.sec-2 {
    clear: both;
}
.sec-4 {
  display: flow-root;
  margin-bottom: 80px;
}
#footer {
  clear: both;
}
body:has(.contact-content) header {
    margin-top: 80px;
}

.container.contact form#contact {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: inherit;
    width: inherit;
    max-width: inherit;
    position: relative;
    left: inherit;
    right: inherit;
    margin-left: inherit;
    margin-right: inherit;
    display: block;
    height: auto;
}
.txt-banner.container{
    overflow: hidden;
}

li::marker {
  display: none;
  content: "";
}
form.contact li textarea {
    width: 96.3%;
    height: 200px;
}
form.contact li input {
    width: 85%;
    margin: 20px 0;
}
.contact form .btn-small {
  display: block;
  clear: both;
  margin: 0 25px;
}
.container.contact {
    display: block;
    width: 100%;
    clear: both;
}
.st-5 {
    clear: both;
}
body:has(.gallery-page) header,
body:has(.portfolio-details) header {
    position: sticky;
}
body:has(.portfolio-details) .breadcrumbs a {
    color: #f5f5f5;
}
body:has(.portfolio-details) .breadcrumbs .current {
    color: #ffffff;
}

body:has(.portfolio-details) .breadcrumbs {
    padding-top: 50px;
    padding-bottom: 10px;
}
body:has(.portfolio-details) .page-title.dark-background {
    align-items: center;
    padding: 130px 0 80px 0;
    background: #0f172a;
}




/* ===== Profile Section ===== */
.about-section .container:last-child img {
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== Spacing ===== */
.about-section > div {
  margin-bottom: 40px;
}
.box-content {
    padding: 80px 0;
}






/* GRIDS */

[class^="col-"],
[class*=" col-"]  {
	float: left;
	
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-o-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

.boxed {
	width: 1200px;
	margin: 0 auto;
	clear: both;
}

/* SIZE */

.col-1-6 {
	width: 16.66%;	
}

.col-2-6 {
	width: 33.33%;
}

.col-3-6 {
	width: 50%;
}

.col-4-6 {
	width: 66.66%;
}

.col-5-6 {
	width: 83.33%;
}

.col-1-5 {
	width: 20%;
}

.col-2-5 {
	width: 40%;
}

.col-3-5 {
	width: 60%;
}

.col-4-5 {
	width: 80%;
}

.col-1-4 {
	width: 25%;	
}

.col-2-4 {
	width: 50%;
}

.col-3-4 {
	width: 75%;
}

.col-1-3 {
	width: 33.33%
}

.col-2-3 {
	width: 66.66%;
}

.col-1-2 {
	width: 50%;	
}


@media screen and (max-width: 1300px) {	
	
	.boxed {
		width: 100%;
	}
	
}	

@media screen and (max-width: 1200px) {	
	
	.col-1-4,
	.col-2-4,
	.col-3-4 {
		width: 50%;
	}
	
	.col-1-5,
	.col-2-5,
	.col-3-5,
	.col-4-5 {
		width: 50%;
	}
	
	.col-1-6,
	.col-2-6,
	.col-3-6,
	.col-4-6,
	.col-5-6 {
		width: 50%;
	}
	
}

@media screen and (max-width: 900px) {	
	
	.col-1-3,
	.col-2-3 {
		width: 100%
	}	
	
	[class^="col-"] [class^="col-"] {
		width: 100% !important;
	}	
	
}

/* RESP GRIDS */

@media screen and (max-width: 600px) {	
	
	[class^="col-"],
	[class*=" col-"] {
		width: 100%;
	}
	
}




/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-section .container {
    flex-wrap: wrap;
  }

  .about-section .col-1-2,
  .about-section .col-1-3 {
    width: 100%;
  }

  .about-section .container {
    gap: 20px;
  }
}
@media (max-width: 767px) {
  .content-div form > img {
      width: 100%;
  }
  .banner-title .col-5, 
  .banner-title .col-7,
  .txt-banner .col-5,
  .txt-banner .col-7 {
    width: 100%;
    overflow: hidden;
  }
  .banner-title .col-5 img, 
  .banner-title .col-7 img{
    
  }
  .txt-banner .col-5 img{
    height: 75px;
  }
  .txt-banner .col-7 img{
    height: 60px;
  }
  .container .col-1-2 {
    width: 100%;
  }
  .txt-banner.container .col-5 img {
    height: 60px !important;
  }
  .txt-banner.container .col-7 img {
    height: 47px !important;
  }
  body:has(.contact-content) header {
    margin-top: 70px;
  }

}
@media (max-width: 600px) {
  .about-section h1 {
    font-size: 24px;
  }

  .about-section p {
    font-size: 14px;
  }

  .about-section form[name="content"] p {
    position: static;
    transform: none;
    margin-top: -80px;
    font-size: 14px;
    padding: 15px;
  }
  .banner-title .banner-page .txt-banner.container img {
    height: 50px;
  }
  .banner-title .inner-page .col-5,.banner-title .inner-page .col-7  {
    width: 100%;
  }
  .banner-title .banner-page {
    height: 220px !important;
  }
  .topbar-left .inner-page a {
      font-size: 12px;
  }
  .topbar-right .right-top p {
    font-size: 12px;
    margin: 5px 0;
  }
  .header .logo img{
    height: 45px;
    margin-left: 10px;
  }
  i.mobile-nav-toggle {
    position: absolute;
    top: 8px;
    right: 50px;
  }
  html:not(.scrolled):has(.hero) header#header {
    margin-top: 70px;
  }
  .ps-l .col-6,
  .ps-s .col-6,
  .ps-h .col-6,
  .row.pl-w .col-6,
  .pl-b .col-4 {
    width: 100%;
  }
  .pl-h span[style="font-size:24px;"] {
    font-size: 12px !important;
  } 
  div[name="content-h"] {
    padding: 130px 0 !important;
  }
  .ps-l .col-6 img {
    width: 85%;
    margin: 0 auto;
    display: flex;
  }
  .row.pl-w .col-6 img {
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  .txt-banner.container .col-5, .txt-banner.container .col-7 {
    width: 100%;
  }
  .banner-page {
    overflow: hidden;
  }
}