/* === Basic Reset & Defaults === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Martel Sans', sans-serif;
  color: white;
  line-height: 1.3;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: white;
}
a:visited {
  text-decoration: none;
}
h1 {
  font-size: 2.9em;
  font-weight:600
}
h2 {
  font-size: 1.2em;
}
h3 {
  font-size: 1.1em;
}
h4 {
  font-size: 1.1em;
}
h5 {
  font-size: 1.1em;
}
p {
  font-size: 1.3em;
  font-weight: 300;
}
.thai-text {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 1.3em;
  font-weight: 300;
}
.thai-h1 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 1.7em;
  font-weight: 400;
}
.thai-h3 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 1.4em;
  font-weight: 400;
}
#popup-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

#popup-widget.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#popup-widget.responsive {
    width: var(--popup-width);
}

.popup-image {
    width: 100%;
    height: var(--popup-image-height);
    object-fit: cover;
    display: block;
}

.popup-buttons {
    display: flex;
    border-top: 1px solid #e0e0e0;
}

.popup-buttons button {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background-color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    color: #767676;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.popup-buttons button:hover {
    background-color: #ededed;
}

.dismiss-btn {
    border-right: 1px solid #e0e0e0 !important;
    border-bottom-left-radius: 8px;
}

.close-btn {
    border-bottom-right-radius: 8px;
}

/* === DESKTOP DEFAULT STYLES === */
/* Parallax layer */
.parallax {
  position: fixed;        /* fixed element hack for iOS */
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background-image: url("../images/parallax-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}
.page-content-wrapper {
  width: 100%;
  max-width: 1100px;
}
.about {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Header Styling */
header {
	position: relative;
  	padding: 5px 20px 0;
	background: transparent;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-top: 23px;
  padding-bottom: 18px;
}
/* Ensure the video wrapper doesn't exceed container */
.about-show {
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Add overflow hidden to prevent spillover */
  overflow: hidden;
}
.about-show video {
  display: block;
}
.logo {
  margin-bottom: 0;
  line-height: 0;
}
.logo-img {
  display: block;
  height: 22px;
  width: auto;
}
/* Navigation Styling */
nav {
  width: auto;
  border-bottom: none;
  padding: 0;
}

.menu {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.menu li {
  margin: 0 0 0 40px;
}
.menu li:nth-child(1) a {
  color: rgba(255, 255, 255, 0.6);
}
.menu a {
  font-size: 0.9em;
  font-weight: 700;
  transition: color 0.3s ease;
}
.menu a:hover {
  color: rgba(255, 255, 255, 0.6);
}
        /* Style for the last menu item */
        .menu li:last-child a {
            background-color: rgba(0, 57, 112, 0.2);
            border-radius: 20px;
            padding: 3px 12px 1px;
            font-weight: 500;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }
        
        .menu li:last-child a:hover {
            background-color: #00b2ff;
            color: white;
            transform: translateY(-2px);
        }

.menu-t {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.menu-t li {
  margin: 0 0 0 40px;
}
.menu-t li:nth-child(1) a {
  color: rgba(255, 255, 255, 0.6);
}
.menu-t a {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 1.1em;
  font-weight: 400;
  transition: color 0.3s ease;
}
.menu-t a:hover {
  color: rgba(255, 255, 255, 0.6);
}
        /* Style for the last menu item */
        .menu-t li:last-child a {
            background-color: rgba(0, 57, 112, 0.2);
            border-radius: 20px;
            padding: 3px 12px 1px;
            font-weight: 500;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }
        
        .menu-t li:last-child a:hover {
            background-color: #00b2ff;
            color: white;
            transform: translateY(-2px);
        }
/* Ensure the Plyr instance itself fills its container */
/* Plyr adds the '.plyr' class to its generated wrapper */
.plyr {
  width: 100%;
  border-radius: 13px;
  cursor: pointer;
  /* Prevent overflow */
  overflow: hidden;
}

/* Additional fix for Plyr video element */
.plyr__video-wrapper {
  overflow: hidden;
}
.plyr video {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
}

/* Ensure the original video element scales correctly within Plyr */
/* Usually handled by Plyr, but good as a fallback */
#player {
  display: block;
  width: 100% !important;
  height: auto !important;
  /* Ensure consistent sizing across browsers */
  object-fit: contain;
  /* Prevent any potential stretching */
  max-width: 100%;
  max-height: 100%;
}
/* --- CSS WORKAROUND for Hiding Controls --- */

/* Hide the control bar by default when NOT playing */
/* Target the main Plyr container when it DOESN'T have the plyr--playing class */
.plyr:not(.plyr--playing) .plyr__controls {
    opacity: 0;             /* Make it invisible */
    visibility: hidden;     /* Remove from accessibility tree */
    pointer-events: none;   /* Prevent clicks */
    transition: opacity 0.2s ease, visibility 0.2s ease; /* Optional: Fade effect */
}

/* Ensure the BIG play button is ALWAYS visible initially if the above rule hides it */
/* Sometimes necessary depending on structure/specificity */
.plyr:not(.plyr--playing) .plyr__controls button[data-plyr="play-large"],
.plyr:not(.plyr--playing) button.plyr__control--overlaid { /* Alternative selector for big play */
     opacity: 1 !important;
     visibility: visible !important;
     pointer-events: auto !important;
}


/* When playing, ensure controls are visible (they should be by default, but good for clarity) */
.plyr--playing .plyr__controls {
     opacity: 1;
     visibility: visible;
     pointer-events: auto;
}

/* --- End of CSS Workaround --- */

/* Vision Section Styling */
.vision-container {
  position: relative; /* Needed for pseudo-element positioning */
  z-index: 1; /* Ensure content is above the pseudo-element */
  padding: 5px 20px;
  overflow: hidden; /* Recommended when using pseudo-elements for backgrounds */
}
/* Pseudo-element for background blend */
.vision-container::before {
  content: ''; /* Required for pseudo-elements */
  position: absolute;
  inset: 0;
  background-image: url("../images/vision-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.3; /* Adjust transparency for blend intensity (0 to 1) */
  z-index: -1; /* Place it behind the container's content */
}
.vision {
  position: relative; /* Keep content above pseudo-element */
  z-index: 2; /* Explicitly above pseudo-element */
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  padding: 75px 0px;
}
.vision p {
  position: relative; /* Keep content above pseudo-element */
  z-index: 2;
}
.inline-image {
  position: relative; /* Keep content above pseudo-element */
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0px 80px;
  display: block;
}

.image-container {
            display: flex; /* Enables flexbox layout */
            width: 100%;
            max-width: 1100px;
            margin-left: auto;
            margin-right: auto;
            gap: 1rem; /* Keeps space between image wrappers */
        }

        /* Image wrapper styling */
        .image-wrapper {
            width: 50%;
            overflow: hidden;
        }

        /* Image styling */
        .image-display {
            display: block;
            width: 100%;
            height: auto;
            object-fit: cover;
        }

/* Mission Section Styling */
.mission-container {
  position: relative;
  background: url("../images/mission-bg.webp") no-repeat center center/cover !important;
  background-attachment: scroll !important;
  padding: 5px 20px;
  z-index: 1;
}

.mission {
  max-width: 1100px;
  color:rgba(56,65,179,1);
  margin: 0 auto;
  align-items: center;
  padding: 75px 0px;
}

/* Mission Section Styling */
.ceo-container {
position: relative; /* Needed for pseudo-element positioning */
  z-index: 1; /* Ensure content is above the pseudo-element */
  padding: 5px 20px;
  overflow: hidden; /* Recommended when using pseudo-elements for backgrounds */
}
/* Pseudo-element for background blend */
.ceo-container::before {
  content: ''; /* Required for pseudo-elements */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/ceo-bg.webp");  /* Same image as body */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.3; /* Adjust transparency for blend intensity (0 to 1) */
  z-index: -1; /* Place it behind the container's content */
}
.ceo {
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  padding: 75px 0px;
}

/* Meeting Section Styling */
.meeting-container {
	align-items: center;
  	padding: 0px 20px;
}

.row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.column {
	flex: 1;
	padding: 0px;
}
.text-with-icon {
	display: flex;
	align-items: flex-start; /* Align items to the start (top in this case) */
}

.text-with-icon img {
	width: 20%;
	max-width: 128px;
	min-width: 64px;
	height: auto; /* Maintain aspect ratio */
	margin-right: 20px; /* Space between image and text */
	margin-top: 6px;
	flex-shrink: 0; /* Prevent the image from shrinking */
}

.text-with-icon p {
	margin-top: 7px;
	margin-left: 0; /* Reset default paragraph margin */
	font-size: 1.2em;
    font-weight: 300;
}
.text-with-icon p{
	margin-top: 7px;
	margin-left: 0; /* Reset default paragraph margin */
	font-size: 1.2em;
    font-weight: 400;
}

/* Product Section Styling */
.product-container {
  min-height: 100vh;
  position: relative; /* Needed for pseudo-element positioning */
  z-index: 1; /* Ensure content is above the pseudo-element */
  padding: 5px 20px;
  overflow: hidden; /* Recommended when using pseudo-elements for backgrounds */
}
/* Pseudo-element for background blend */
.product-container::before {
  content: ''; /* Required for pseudo-elements */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/product-bg.webp"); /* Same image as body */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.3; /* Adjust transparency for blend intensity (0 to 1) */
  z-index: -1; /* Place it behind the container's content */
}
.product {
  position: relative; /* Keep content above pseudo-element */
  z-index: 2; /* Explicitly above pseudo-element */
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  padding: 60px 0px;
}


.product .row .column a{
  display: flex;
  justify-content: center;
  align-items: center;
}
.product .row .column img {
	width: 90%;
	max-width: 330px;
	height: auto; /* Maintain aspect ratio */
	margin-top: 40px;
	flex-shrink: 0; /* Prevent the image from shrinking */
	  border-radius: 50%;
  transition: 0.3s ease-in-out;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0); /* no glow initially */
}
.product .row .column img:hover {
	box-shadow: 0 0 25px 10px rgba(255, 255, 255, 0.8); /* circular glow */
	cursor: pointer;
}

/* Product Item Section Styling */
.product-item-container {
  min-height: 100vh;
  padding: 5px 20px;
  overflow: hidden; /* Recommended when using pseudo-elements for backgrounds */
}
.product-item {
  position: relative; /* Keep content above pseudo-element */
  z-index: 2; /* Explicitly above pseudo-element */
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  padding: 70px 0px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
	.image-section {
      flex: 1;
      min-height: 400px;
    }
    
    .image-section img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .text-section {
      flex: 1;
      padding: 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

/* Activities */
	main{
		padding: 0px 20px 0px;
		margin-bottom: 10px;
	}
	.activity-1st {
	  margin: 0 auto;
	  max-width: 1100px;
	  padding-top: 60px;
	  padding-bottom: 60px;
	  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	}
	.activity-1st h4 {
		text-transform: uppercase;
		padding-bottom: 2em;
	}

	.activity {
	  margin: 0 auto;
	  max-width: 1100px;
	  padding-top: 60px;
	  padding-bottom: 60px;
	  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	}
	.activity h4 {
		text-transform: uppercase;
		padding-bottom: 2em;
	}
	.activity-last {
	  margin: 0 auto;
	  max-width: 1100px;
	  padding-top: 60px;
	  padding-bottom: 60px;
	}
	.activity-last h4 {
		text-transform: uppercase;
		padding-bottom: 2em;
	}
/* Partner */
/* Vision Section Styling */
.partner-container {
	min-height: 100vh;
  position: relative; /* Needed for pseudo-element positioning */
  z-index: 1; /* Ensure content is above the pseudo-element */
  padding: 5px 20px 0px;
  overflow: hidden; /* Recommended when using pseudo-elements for backgrounds */
}
/* Pseudo-element for background blend */
.partner-container::before {
  content: ''; /* Required for pseudo-elements */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/vision-bg.webp"); /* Same image as body */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.3; /* Adjust transparency for blend intensity (0 to 1) */
  z-index: -1; /* Place it behind the container's content */
}
.partner {
  position: relative; /* Keep content above pseudo-element */
  z-index: 2; /* Explicitly above pseudo-element */
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  padding: 60px 0px;
}
.partner img{
	border-radius: 13px;
}
.partner-image {
  width: 100%;
	margin-top: 30px;
}
.logo-contact{
	padding: 40px 0;
}
.bigtext{
	font-size: 6em;
	line-height: 1.1;
}

.shiny-button-container {
	display: flex;
	width: 100%;
	padding: 1em 0em 4em;
	align-items: center;
	justify-content: center;
}
.shiny-button {
	position: relative;
	width: 200px;
	background-color: #003970;
	color: white;
	padding: 16px 18px;
	border-radius: 15px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	overflow: hidden;
	cursor: pointer;
	transform: scale(1);
	font-family: 'Inter', sans-serif;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
  }

  .shiny-button:hover {
	transform: scale(1.05);
  }

  .shiny-button span {
	position: relative;
	z-index: 10;
  }

  .shiny-button::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #003970;
	border-radius: 15px;
	opacity: 0;
	transition: all 0.5s ease;
	pointer-events: none;
	transform: scale(0.1);
  }

  .shiny-button:hover::after {
	transform: scale(1.5);
	opacity: 0.3;
	animation: pulse 0.7s ease;
  }

  @keyframes pulse {
	0% {
		opacity: 0;
		transform: scale(0.8);
	}
	50% {
		opacity: 0.3;
		transform: scale(1.2);
	}
	100% {
		opacity: 0;
		transform: scale(1.5);
	}
  }
	.button-text {
		font-family: 'Noto Sans Thai', sans-serif;
		font-size: 1.5em;
		font-weight: 350;
		white-space: nowrap;
	}
/* === MOBILE OVERRIDE STYLES === */
@media (max-width: 767px) {
  header {
    padding: 20px 20px 0;
  }
  .container {
    flex-direction: column;
    align-items: center;
    border-bottom: none;
    padding-top: 0;
    padding-bottom: 0;
  }
  .logo {
	margin-top: 15px;
    margin-bottom: 10px;
  }
  .logo-img {
    height: 20px;
  }
  nav {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0px 0px 8px;
  }
  .menu {
    justify-content: space-around;
    width: 100%; /* Ensure it fills the parent */
    flex-wrap: wrap;
  }
  .menu li {
    margin: 0px;
	  justify-content: center; /* Center items on wrap */
  }
  .menu a {
    padding: 5px 0px;
    font-size: 0.7em;
    font-weight: 400;
  }
  .menu li:last-child a {
    border-radius: 20px;
    padding: 2px 10px 0;
    font-weight: 300;
  }
  .menu-t {
    justify-content: space-around;
    width: 100%; /* Ensure it fills the parent */
    flex-wrap: wrap;
  }
  .menu-t li {
    margin: 0px;
	  justify-content: center; /* Center items on wrap */
  }
  .menu-t a {
    padding: 5px 0px;
    font-size: 0.7em;
    font-weight: 400;
  }
  .menu-t li:last-child a {
    border-radius: 20px;
    padding: 2px 10px 0;
    font-weight: 300;
  }
  h1 {
    font-size: 2.0em;
	    font-weight:400
  }
  h3 {
	  font-size: 1.0em;
  }
  h4 {
	  font-size: 1.0em;
  }
  h5 {
	  visibility: hidden;
  }
  p {
    font-size: 1.2em;
    font-weight: 200;
  }
  .thai-text {
    font-size: 1.2em;
    font-weight: 250;
  }
  .vision {
    padding: 55px 0px;
  }
  .inline-image {
    padding: 20px 0px;
  }
	.column {
		flex: 100%;
		padding-bottom: 1.0em;
	}
	.text-with-icon p {
		font-size: 1.0em;
		font-weight: 200;
	}
	/* product */
	.product-container{
    	padding: 20px 20px;
  	}
	.product {
		margin-top: 0px;
	  padding: 0px 0px 60px;
	}
	/* product-item */
	.product-item-container {
	  padding: 20px 20px;
	}
	.product-item {
        flex-direction: column;
        max-width: 100%;
		
      }

      .image-section {
		  width: 100%;
		  margin-top: -50px;
        padding: 0px 20px;
      }
      
      .text-section {
		  width: 100%;
        padding: 20px 5px;
      }
	main{
		padding: 40px 20px 10px;
	}
	.activity-1st {
		padding-top: 0px;
	}
	.partner-container {
		padding: 20px 20px;
	}
	.partner {
		padding-top: 0px;
	}
	.logo-contact{
		padding: 40px 0;
		width: 140px;
	}
	.bigtext{
		font-size: 3.5em;
		line-height: 1.2;
	}
	.shiny-button-container {
		padding: 3em 0 4em;
	}
	.shiny-button {
		width: 160px;
	}
	.button-text {
		font-size: 1.2em;
		font-weight: 300;
	}
}

@media (max-width: 441px) {
  #popup-widget {
      right: auto;
      bottom: auto;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%) translateY(20px);
  }

  #popup-widget.show {
      transform: translate(-50%, -50%);
  }
        
  .logo {
	margin-top: 10px;
    margin-bottom: 15px;
  }
    .logo-img {
	  height: 24px;
	}
  nav {
    padding: 0px 0px 2px;
  }
	.menu {
		justify-content: flex-start; /* Default: left align */
  		gap: 1ch; /* Always keep at least 1 character space between items */
		justify-content: center;
	}
    .menu li {
      flex-grow: 1;
      text-align: center;
    }
    .menu li:last-child a {
      border-radius: 20px;
      padding: 2px 6px 0;
      font-weight: 100;
    }
	.menu-t {
		justify-content: flex-start; /* Default: left align */
  		gap: 1ch; /* Always keep at least 1 character space between items */
		justify-content: center;
	}
    .menu-t li {
      flex-grow: 1;
      text-align: center;
    }
    .menu-t li:last-child a {
      border-radius: 20px;
      padding: 2px 6px 0;
      font-weight: 100;
    }
    .vision {
        padding: 8px 0px 30px;
    }
    h1 {
        font-size: 1.8em;
	    font-weight:400
  }
    p {
        font-size: 1.0em;
        font-weight: 180;
    }
  .thai-text {
    font-size: 1.0em;
    font-weight: 200;
  }
    .mission-container {
      padding-bottom: 0px;
    }
  .mission {
      padding: 30px 0px 0px;
    }
    .ceo {
      padding: 30px 0px 20px;
    }
    .product .row .column img{
        margin-top: 20px;
        width: 65%;
    }
    .text-section h2{
        font-size: 1.2em;
        font-weight: 300;
    }
    main{
		padding-top: 10px;
	}
    .activity-1st {
	  padding-top: 0px;
	  padding-bottom: 30px;
	}
	.activity {
	  padding-top: 30px;
	  padding-bottom: 30px;
	}
	.activity-last {
	  padding-top: 30px;
	  padding-bottom: 30px;
	}
	.logo-contact{
    	padding: 5px 0 10px;
    }
    .bigtext{
    	font-size: 2.8em;
    		line-height: 1.3;
    }
}