:root {
  --white: #ffffff;
  --black: #343131;
  --primary-dark: #343131;
  --primary-light: #fcfcfc;
  --primary: #343131;
  --secondary: #343131;
  --gold: #2671ab;
  --gray-light: #fcfcfc;
  --font: "Kanit", serif;
  --typo-regular: 250;
  --typo-medium: 350;
  --typo-bold: 700;
  --typo-extra-bold: 900;
  --font-size-small: 14px;
  --font-size-regular: 16px;
  --font-size-medium: 18px;
  --font-size-large: 24px;
  --font-size-subtitle: 30px;
  --font-size-title: 56px;
  --radius: 10px;
  --button-radius: 20px;
}

.scaler {
  transition: transform 0.5s ease;
}

.scaler:hover {
  transform: scale(1.1); /* 10% larger */
}

.fade-slide {
  opacity: 0;
  transition: opacity 2s ease, transform 1s ease;
}

.fade-slide.show {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

.p-t-b-3 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.p-l-r-3 {
  padding-left: 3rem;
  padding-right: 3rem;
}

.radius-10 {
  border-radius: 10px;
}

.height-vh {
  height: 80vh;
}

.mt-5 {
  margin-top: 5rem;
}

.mt-8 {
  margin-top: 8rem;
}

.ml-5 {
  margin-left: 5rem;
}

.font-title {
  color: var(--gold);
  font-size: 84px;
  font-weight: 500;
  line-height: 100%;
  margin: 0;
}

.font-subtitle {
  color: var(--primary-dark);
  font-size: var(--font-size-subtitle);
  font-weight: 400;
  line-height: 100%;
  margin: 0;
}

.padding-t-b {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Kanit", serif;
  font-weight: 300;
  font-style: normal;
}

.main-container {
  flex: 1;
  height: auto;
  align-items: center;
  justify-content: center;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

/* BODY-SECTION */
.body-container {
  padding: 0rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-container {
  padding-left: 8%;
  padding-right: 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 84%;
}

.divider {
  background: var(--gray-light);
  height: 5rem;
  width: 100%;
  margin-top: 2rem;
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%);
}

.divider-v2 {
  background: var(--gray-light);
  height: 5rem;
  width: 100%;
  clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0 30%);
}

.section-classic {
  display: flex;
  width: 100%;
  gap: 75px;
}

.section-img {
  flex: 1;
  height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-img img {
  height: 100%; /* Ensure the image fills its container */
  border-radius: 0px;
  object-fit: cover;
}

.section-text {
  flex: 1.5; /* Occupies half of the container */
  display: flex;
  flex-direction: column; /* Align content vertically */
  justify-content: center; /* Center vertically */
  gap: 20px;

  h2 {
    color: var(--primary-dark);
    font-size: var(--font-size-title);
    font-weight: var(--typo-medium);
    line-height: 100%;
    margin: 0;
  }

  p {
    margin: 0;
    font-size: var(--font-size-medium);
    font-weight: var(--typo-regular);
    color: var(--primary-dark);
  }

  button {
    background-color: var(--gray-light);
    border: 0.5px solid var(--gold);
    border-radius: 20px;
    cursor: pointer;
    width: fit-content;
    font-family: var(--font);
    padding: 8px 25px 8px 25px;
    display: flex;
    gap: 10px;
    align-items: center;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 1;
    position: relative;

    a {
      text-decoration: none;

      span {
        position: relative;
        z-index: 1;
        font-size: var(--font-size-regular); /* Adjust font size */
        font-weight: var(--typo-medium);
        color: var(--gold);
        margin: 0;
        transition: color 0.4s ease;
      }
    }

    img {
      height: 25px;
      position: relative;
      z-index: 1;
    }
  }

  button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gold); /* fill color */
    z-index: 0;
    transition: width 0.4s ease;
  }

  button:hover::before {
    width: 100%;
  }

  button:hover {
    a {
      span {
        color: var(--white);
      }
    }
  }
}

.services-header {
  display: flex;
  border-bottom: 2px solid var(--primary-dark);
  margin-bottom: 3rem;
}

.services-button {
  background-color: var(--white);
  border: none;
  font-size: var(--font-size-subtitle);
  font-family: var(--font);
  font-weight: var(--typo-regular);
  font-style: normal;
  color: var(--primary-dark);
}

.services {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 0 3rem 0;
}

.service {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  width: 28%;
  background-color: var(--primary-light);
  box-shadow: 0 0px 2px rgba(0, 0, 0, 0.2);
  gap: 20px;
}

.d-column-flex {
  flex-direction: column;
}

.service-img {
  height: 60px;
}

.service-text {
  text-align: center;
}

.service-text p {
  font-size: var(--font-size-regular);
  margin: 0;
  color: var(--primary-dark);
  font-weight: var(--typo-regular);
}

.service-text h4 {
  font-weight: var(--typo-medium);
  font-size: var(--font-size-medium);
  color: var(--primary-dark);
  margin: 0;
}

.license {
  gap: 100px;
  padding: 0 3rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.license-text h1 {
  font-size: var(--font-size-subtitle);
  font-weight: var(--typo-medium);
  color: var(--primary-dark);
}

.license-text p {
  padding: 0;
  font-size: var(--font-size-regular);
  font-weight: var(--typo-regular);
  color: var(--primary-dark);
  text-align: justify;
}

.license-img {
  flex: 0;
  height: 30vh;
  justify-content: center;
}

.license-img img {
  height: 20vh;
}

.partners {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  width: 100%;
  margin-bottom: 2rem;
}

.partner {
  height: 40px;
  width: 180px;
  cursor: pointer;
  box-shadow: 0 0px 2px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  background-color: var(--white);
}

.partner img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.country-container {
  width: 76%;
}

.text-title {
  font-size: var(--font-size-subtitle);
  font-weight: var(--typo-regular);
  text-align: center;
}

.country-cards {
  display: flex;
  flex-direction: column;
  margin-top: 75px;
  margin-bottom: 75px;
  gap: 75px;

  a {
    display: flex;
    justify-content: center;
    cursor: pointer;

    p {
      margin: 0;
      padding: 0;
      text-align: center;
      width: 200px;
      border-radius: 15px;
      padding: 0.5rem;
      background-color: var(--primary);
      color: var(--gray-light);
      font-size: var(--font-size-regular);
      font-weight: var(--typo-regular);
    }
  }
}

.country-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
}

.country-card {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 15px;
  gap: 1rem;
  width: 200px;
  padding-left: 1rem;

  p {
    font-size: var(--font-size-regular);
    font-weight: var(--typo-regular);
  }
}

.country-image {
  height: 40px;
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-gray-light {
  background-color: var(--gray-light);
}

.secondary {
  color: var(--secondary);
}

.slider-container {
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  width: calc(250px * 8);
  animation: scroll 0s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.store-link {
  display: flex;
  gap: 20px;
  width: fit-content;

  a {
    img {
      height: 40px;
      width: 140px;
    }
  }
}

.narry-logo {
  height: 50px;
  width: max-content;
}

.color-white {
  color: var(--white);
}

.color-primary {
  color: var(--primary);
}

.justify-end {
  justify-content: end;
}

.justify-start {
  justify-content: start;
}

.justify-center {
  justify-content: center;
}

.bg-primary-light {
  background-color: var(--primary-light);
}

.bg-gray-light {
  background-color: var(--gray-light);
}

.bg-white {
  background-color: var(--white);
}

.weight-regular {
  font-weight: var(--typo-regular);
}

.weight-subtitle {
  font-weight: 400;
}

.height-25 {
  height: 25vh;
}

@media (max-width: 1200px) {

  .page-sub-title {
    font-size: 2rem;
  }
  .left-menu {
    display: none;
  }
  .menu-content-container {
    flex-wrap: wrap;
  }
  .service {
    flex: 100%;
  }
  .partner {
    height: 40px;
  }
  .partners {
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
  }
  .section-container {
    gap: 1rem;
  }
  .section-img {
    height: 30vh;
  }
  .section-text {
    align-items: center;
    text-align: center;
  }
  .font-title {
    font-size: var(--font-size-title);
  }
  .body-container {
    margin-top: 0;
    gap: 3rem;
  }
  .display-none {
    display: none;
  }
  .scaler:hover {
    transform: scale(1); /* 10% larger */
  }
  .text-left {
    align-items: flex-start;
    text-align: left;
  }
  .img-left {
    justify-content: flex-start;
  }

  .section-text {
    button:hover::before {
      width: 0%;
    }

    button:hover {
      a {
        span {
          color: var(--gold);
        }
      }
    }
  }
}
@media (max-width: 768px) {
  .cookie-popup {
    width: calc(100% - 80px);
    border-radius: 16px;
  }
}

.carousel {
  position: relative;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;

  .carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }

  .carousel-slide {
    min-width: 100%;
    transition: opacity 0.5s ease;

    img {
      width: 100%;
      display: block;
    }
  }

  .carousel-caption {
    position: absolute;
    top: 40%;
    left: 12%;
    transform: translateY(-50%);
    color: var(--white);
    width: 75%;

    h2 {
      font-size: var(--font-size-title); /* Adjust font size */
      font-weight: var(--typo-medium);
    }

    p {
      font-size: var(--font-size-subtitle); /* Adjust font size */
      font-weight: var(--typo-regular);
    }

    button {
      background-color: var(--primary);
      border: none;
      border-radius: 15px;
      cursor: pointer;

      p {
        font-size: var(--font-size-regular); /* Adjust font size */
        font-weight: var(--typo-regular);
        color: var(--gray-light);
        margin: 0;
        padding: 0.75rem;
      }
    }
  }

  .carousel-image-wrapper {
    position: relative;

    img {
      width: 100%;
      display: block;
    }

    .carousel-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity */
      pointer-events: none;
    }
  }

  .carousel-indicators {
    position: absolute;
    bottom: 35px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
  }

  .carousel-indicators .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .carousel-indicators .dot.active {
    background-color: rgba(255, 255, 255, 1);
  }
}

/* Contact Modal Styles */
.contactModal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease forwards;
}

.contactModal.active {
  display: flex;
}

.contactModal-content {
  background: #fff;
  padding: 0;
  border-radius: 10px;
  width: 500px;
  max-width: 92%;
  overflow: hidden;
  animation: slideUp 0.3s ease forwards;
}

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

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.contactModal-header {
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  font-size: 20px;
}

.contactModal-content form {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contactModal-content label {
  font-weight: var(--typo-medium);
  margin-top: 0.25rem;
}

.contactModal-content input,
.contactModal-content textarea {
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-family: var(--font);
}

.contactModal-content textarea {
  resize: vertical;
}

.contactModal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 1rem;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}

.alert-message {
  padding: 10px 15px;
  margin: 1rem 1.5rem 0 1.5rem;
  border-radius: 5px;
  font-weight: 500;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-dark);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
  margin: 0 0.25rem;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

#submit-btn.loading {
  background: #2671ab !important;    
  opacity: 0.5;
  border-color: #2671ab !important;
  color: white !important;
  cursor: wait !important;
  transform: none !important;        
}

#submit-btn.loading:hover {
  background: #2671ab !important;    
  color: white !important;
}

#submit-btn.loading #submit-text {
  display: none !important;
}

#submit-btn.loading #loader {
  display: block !important;
}


.cookie-popup {
  position: fixed;
  bottom: 20px;
  max-width: 350px;
  right: 20px;
  text-align: left;
  background-color: var(--white);
  color: var(--primary);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
}

.cookie-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  button {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--primary);
  }
  h1{
    font-size: var(--font-size-large);
    font-weight: var(--typo-medium);
    margin: 0;
  }
}

.cookie-actions {
  display: flex;
  gap: 16px;
  width: 100%;
}
.cookie-actions button {
  padding: 8px 16px;
  flex: 1;
  justify-content: center;
}

.cookie-read-more {
  color: var(--primary);
  text-decoration: underline;
  margin-left: 4px;
}

.cookie-read-more:hover {
  color: var(--gold);
}
