/* CSS Variables */
:root {
  --primary-50: #edf2f8;
  --primary-500: #4472ab;
  --primary-700: #2c496d;
  --primary-800: #1d3149;
  --primary-900: #0f1824;
  --primary-950: #070c12;
  --black-50: #f2f2f2;
  --black-200: #cccccc;
  --black-600: #666666;
  --black-700: #4d4d4d;
  --black-800: #333333;
  --black-950: #0d0d0d;
  --white: #ffffff;
  --gradient-primary: linear-gradient(
    334.5deg,
    #406eaa -18.12%,
    #406eaa 22.2%,
    #406eaa 52.26%,
    rgba(255, 255, 255, 0.5) 213.59%
  );
  --gradient-bg: linear-gradient(
    90deg,
    rgba(218, 228, 241, 1) 0%,
    rgba(255, 255, 255, 1) 75%
  );
  --gradient-card: linear-gradient(
    1deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(218, 228, 241, 1) 100%
  );
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Kanit", sans-serif;
  line-height: 1.6;
  color: var(--black-800);
  background-color: var(--white);
}

/* Typography */
.hero-title {
  font-family: "Kanit", sans-serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--primary-700);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-family: "Kanit", sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--black-950);
  margin-bottom: 2rem;
}

.section-title {
  font-family: "Kanit", sans-serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--primary-700);
  margin-bottom: 1rem;
}

.section-description {
  font-family: "Kanit", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--black-600);
  margin-bottom: 1.5rem;
}

/* Header */
.header-section {
  background: var(--white);
  top: 0;
  z-index: 1000;
}

.navbar-nav .nav-link {
  font-family: "Kanit", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--black-800);
  margin: 0 1.5rem;
  transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover {
  opacity: 0.8;
  color: var(--primary-700);
}

/* Buttons */
.gradient-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-family: "Kanit", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  overflow: hidden;
  position: relative;
  transition: opacity 0.3s ease;
}

.gradient-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
}

.gradient-btn:hover::before {
  animation: shine 0.8s ease;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.gradient-btn:hover {
  opacity: 0.9;
  color: var(--white);
}

.gradient-outline-btn {
  background: transparent;
  border: 1px solid #406eaa;
  border-radius: 12px !important;
  padding: 14px 40px;
  font-family: "Kanit", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--primary-700);
  position: relative;
  overflow: hidden;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-bg);
  position: relative;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.hero-content {
  padding: 2rem 0;
  background-color: var(--gradient-bg);
}

.hero-buttons {
  margin-bottom: 3rem;
}

.hero-image {
  width: 100%;
  object-fit: cover;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-images {
  display: flex;
  align-items: center;
}

.profile-img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--white);
  object-fit: cover;
  margin-left: -20px;
}

.profile-img:first-child {
  margin-left: 0;
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: "Kanit", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-500);
  line-height: 1.6;
}

.stat-label {
  font-family: "Kanit", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--black-700);
  line-height: 1.6;
}

.stat-divider {
  width: 1px;
  height: 90px;
  background: var(--black-200);
}

.star-icon {
  width: 27px;
  height: 26px;
}

/* Contact Stats Section */
.stats-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-left: 70px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-big-number {
  font-family: "Sora", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-500);
}

.stat-description {
  font-family: "Kanit", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--black-600);
  line-height: 1.6;
}

/* Image Carousel */
.image-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
  flex-wrap: nowrap;
}

.image-carousel.active {
  cursor: grabbing;
}

.carousel-image {
  width: 497px;
  height: 422px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 1px;
}

.image-carousel::-webkit-scrollbar {
  display: none;
}

/* -----------------------------------------
   NEW: Carousel Arrow Buttons
   (works with JS that wraps .image-carousel)
   ----------------------------------------- */
.carousel-wrap {
  position: relative;
}

/* the arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  user-select: none;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.92);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

/* Hide arrows on small screens (swipe/drag is enough) */
@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
}

/* Content Box */
.content-box {
  height: 28rem;
  background: linear-gradient(270deg, #dae4f1 -23.16%, #ffffff 94.65%);
  border-radius: 10px;
  position: absolute;
  right: 0;
  top: 0%;
  left: 0;
  /* width: 30rem; */
}
.padding{
  padding-top: 100px;
}

/* Gradient Cards */
.gradient-card {
  background: var(--gradient-card);
  border-radius: 20px;
  padding: 3rem;
}

.gradient-card-left {
  height: 28.5rem;
  background: var(--gradient-bg);
  border-radius: 10px;
  position: absolute;
  left: 0;
  z-index: 1;
}

.verification-image-container {
  position: relative;
}

.verification-main-image {
  width: 100%;
  height: 680px;
  object-fit: cover;
  border-radius: 8px;
}

.play-button-overlay {
  position: absolute;
  width: 341px;
  height: 341px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.verification-content {
  padding: 2rem;
}

.services-list {
  margin: 2rem 0;
}

.service-item {
  font-family: "Kanit", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 160%;
  letter-spacing: 0%;

  color: #070c12;
  margin-bottom: 1rem;
}

/* Setting Out Section */
.setting-out-section {
  position: relative;
  padding: 0;
}

.setting-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

/* Contact Form Section */
.contact-form-section {
  padding: 4rem 0;
}

.contact-info {
  padding: 2rem;
}

.contact-methods {
  margin-top: 3rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon img {
  width: 100%;
  height: 100%;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-family: "Kanit", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--black-800);
}

.contact-value {
  font-family: "Work Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--black-700);
}

.contact-form-card {
  background: var(--primary-50);
  border-radius: 10px;
  padding: 3rem;
  height: 716px;
}

.contact-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: "Kanit", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--primary-900);
}

.input-with-icon {
  position: relative;
}

.form-control {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 16px;
  height: 50px;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-500);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

textarea.form-control {
  height: 168px;
  resize: none;
  padding-top: 1.5rem;
}

textarea + .input-icon {
  top: 1.5rem;
  transform: none;
}

/* Social Media Section */
.social-media-section {
  padding: 4rem 0;
}

.social-gradient-card {
  background: var(--gradient-card);
  border-radius: 10px;
  padding: 5rem 2rem;
  text-align: center;
}

.social-title {
  font-family: "Open Sans", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #21203c;
  margin-bottom: 3rem;
  max-width: 913px;
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 6rem;
  flex-wrap: wrap;
  max-width: 913px;
  margin: 0 auto;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  text-align: center;
}

.social-icon {
  width: 48px;
  height: 48px;
}

.social-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.social-name {
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #21203c;
}

.social-handle {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #8a8a9b;
}

/* Footer */
.footer-section {
  background: var(--primary-800);
  padding: 4rem 0 2rem;
  color: var(--white);
}

.footer-logo {
  width: 302px;
  height: 96px;
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: "Kanit", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--black-200);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.newsletter {
  margin-top: 5rem;
}

.newsletter-text {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.3px;
  color: var(--white);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form .form-control {
  background: var(--white);
  border: 1px solid #b3bdc7;
  border-radius: 8px;
  padding: 0.5rem 6rem 0.5rem 0.7rem;
  font-family: "Jost", sans-serif;
  font-size: 16px;
  color: #92989e;
  height: 38px;
}

.newsletter-form .gradient-btn {
  width: 120px;
  height: 38px;
  padding: 0.5rem 1rem;
  font-size: 16px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  font-family: "Kanit", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--black-50);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links span {
  color: var(--black-50);
  font-size: 14px;
}

.footer-copyright {
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #92989e;
}

.display {
  display: none;
}

.social-icon2 {
  display: flex;
}

.text-color {
  color: #2c496d !important;
}

.btn-display {
  display: flex;
}

.btn-display2 {
  display: none;
}

.btn-nav {
  padding: 6px 40px;
}

.star-icon{
  display: flex;
}

.star-icon{
  display: none;
}

.br-sec{
  width: 70%;
}

.display-footer{
  display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .display-footer{
    display: none;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .btn-display {
    display: none;
  }

  .btn-display2 {
    display: flex;
    margin-left: 20px;
  }

  .star-icon{
    display: flex;
  }

  .height {
    min-height: 35vh;
  }

  .mobile-version {
    background: var(--gradient-bg);
    border-radius: 1px;
    position: absolute;
    left: 0;
    z-index: 1;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .social-icon2 {
    display: none;
  }

  .stats-grid {
    display: flex;
    padding-left: 10px;
    gap: 3rem;
  }

  .br-sec{
    width: 100%;
  }

  .stat-big-number {
    font-weight: 700;
    font-style: Bold;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0%;
  }

  .stat-description {
    font-weight: 400;
    font-size: 12px;
    line-height: 160%;
    letter-spacing: 0%;
    width: 100%;
  }

  .newsletter {
    text-align: left;
    margin-top: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-card {
    margin-top: 10px;
  }

  .verification-main-image {
    height: 400px;
    border-radius: 1px;
  }

  .play-button-overlay {
    width: 200px;
    height: 200px;
  }

  .carousel-image {
    width: 50%;
    height: auto;
  }

  .setting-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
  }

  .display {
    display: flex;
    margin-top: 14px;
    margin-bottom: 8px;
    justify-content: center;
    text-align: center;
    margin-left: 30px;
  }

  .section-description {
    font-weight: 400;
    font-size: 9px;
    line-height: 160%;
    letter-spacing: 0%;
    width: 100%;
    margin-bottom:10px;
  }

  .width-p{
    width: 96%;
  }

  .built {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .gradient-card-left {
    height: 10rem;
    background: var(--gradient-bg);
    border-radius: 10px;
    position: absolute;
    left: 0;
    z-index: 1;
    margin-bottom: 30px;
  }

  .margin {
    margin-top: 150px;
  }

  .margin2 {
    margin-top: 10px;
  }

  .hero-title {
    font-family: "Kanit", sans-serif;
    font-size: 22px;
  }

  .verification-content {
    padding: 2px;
  }

  .hero-subtitle {
    font-family: "Kanit", sans-serif;
    font-size: 12px;
  }

  .gradient-btn {
    background: var(--gradient-primary);
    border-radius: 6.2px;
    padding: 8.26px 20.66px;
    font-weight: 400;
    font-size: 9.29px;
    line-height: 160%;
    letter-spacing: 0%;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .gradient-outline-btn {
    border-radius: 6.2px !important;
    padding: 8.26px 20.66px;
    font-weight: 400;
    font-size: 9.29px;
    line-height: 160%;
    letter-spacing: 0%;
  }

  .stat-number {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: Bold;
    font-size: 20.66px;
    line-height: 160%;
    letter-spacing: 0%;
  }

  .stat-label {
    font-weight: 400;
    font-size: 8.26px;
    line-height: 160%;
    letter-spacing: 0%;
  }

  .service-item {
    font-weight: 400;
    font-size: 13.5px;
    line-height: 160%;
    letter-spacing: 0%;
  }

  .contact-info {
    padding: 2px;
  }

  .contact-methods {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }

  .contact-method {
    display: block;
    margin-bottom: 10px;
  }

  .contact-icon img {
    width: 50% !important;
  }

  .contact-title {
    font-weight: 700;
    font-size: 12.24px;
    line-height: 160%;
    letter-spacing: 0%;
  }

  .contact-details {
    display: block;
  }

  .contact-value {
    font-weight: 400;
    font-size: 9.18px;
    line-height: 16.32px;
    letter-spacing: 0%;
  }

  .social-title {
    font-family: Kanit;
    font-weight: 500;
    font-style: Medium;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 20px;
    color: #21203c;
  }

  .social-item {
    display: block;
    gap: 10px;
  }

  .social-name {
    font-family: Open Sans;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
  }

  .social-icon {
    width: 40%;
  }

  .social-links {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
  }

  .social-handle {
    font-family: Open Sans;
    font-weight: 400;
    font-size: 9px;
    line-height: 16px;
    letter-spacing: 0%;
  }

  .footer-nav a {
    text-align: center;
  }

  .content-box {
    height: 8rem;
    background: linear-gradient(270deg, #dae4f1 -23.16%, #ffffff 94.65%);
    border-radius: 1px;
    position: absolute;
    left: 0;
    top: 9%;
    text-align: right;
  }

  .width-p2{
    width: 70%;
  }

  .content-box .section-description {
    text-align: right !important;
    margin-left: 100px;
  }

  .stat-item {
    gap: 10px;
  }

  .section-title {
    font-weight: 600;
    font-size: 22px;
    line-height: 160%;
    letter-spacing: 0%;
  }

  .hero-subtitle{
    width: 67%;
    margin-bottom: 10px;
  }

  .hero-title{
    width: 70%;
  }

  .profile-img {
    width: 1.42rem;
    height: 1.42rem;
    border-radius: 50%;
    border: 1px solid var(--white);
    object-fit: cover;
    margin-left: -10px;
  }

  .stat-divider {
    width: 1px;
    height: 40px;
    background: var(--black-200);
  }

  .hero-section {
    border-top-left-radius: 1px;
    border-bottom-left-radius: 1px;
  }

  .hero-stats {
    gap: 10px;
  }

  .star-icon{
    display: none;
  }

  .btn-mobile{
    padding: 9px 22.5px;
    border-radius: 6.75px;
  }

  .services-list {
    margin: 0px 0;
  }

  .gradient-card {
    border-radius: 1px;
  }

  .footer-links a {
    width: 80% !important;
  }

  .footer-links {
    display: block;
    align-items: center;
    gap: 3rem;
  }

  .footer-links span {
    margin-right: 10px;
  }

  .footer-links a {
    margin-right: 10px;
  }

  .social-gradient-card {
    background: linear-gradient(3.74deg, #DAE4F1 -30.22%, #FFFFFF 96.86%);
    border-radius: 10px;
    padding: 5rem 2rem;
    text-align: center;
  }

  .padding{
    padding-top: 10px;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gradient-card {
    padding: 1.5rem;
  }

  .contact-form-card {
    padding: 1.5rem;
    height: auto;
  }

  .social-gradient-card {
    padding: 2rem 1rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.a_black {
  color:black;
}

video::-webkit-media-controls-play-button {
  display: none !important;
}

video::-webkit-media-controls-overlay-play-button {
  display: none !important;
}

/* =========================================
   FIX: As-Built carousel blocked on desktop
   Confine absolute text box to right column
   ========================================= */

/* Make the right column the positioning context */
.as-built-section .row > .col-lg-4 {
  position: relative;
}

/* Keep text box inside its column only */
.as-built-section .content-box {
  left: 0;
  right: 0;
  top: 0;
}

/* Ensure carousel stays interactive */
.as-built-section .image-carousel {
  position: relative;
  z-index: 2;
}

/* Keep text visually above its own background only */
.as-built-section .content-box {
  z-index: 1;
}

/* =========================================
   FIX: Desktop drag scroll for carousels
   Prevent native image dragging/selecting
   ========================================= */

.image-carousel,
.image-carousel * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
