@font-face {
  font-family: 'FC Minimal';
  src: url('/asset/font/FCMinimal-Regular.otf') format('opentype');

}

/* now only used in service point */
@font-face {
  font-family: 'FC Minimal Custom';
  src: url('/asset/font/FCMinimal-Thin.otf') format('opentype');
  font-weight: 100;
}

@font-face {
  font-family: 'FC Minimal Custom';
  src: url('/asset/font/FCMinimal-Light.otf') format('opentype');
  font-weight: 300;
}

@font-face {
  font-family: 'FC Minimal Custom';
  src: url('/asset/font/FCMinimal-Medium.otf') format('opentype');
  font-weight: 500;
}

@font-face {
  font-family: 'FC Minimal Custom';
  src: url('/asset/font/FCMinimal-Bold.otf') format('opentype');
  font-weight: 700;
}

html {
  -webkit-filter: grayscale(85%);
  -moz-filter: grayscale(85%);
  -ms-filter: grayscale(85%);
  -o-filter: grayscale(85%);
  filter: grayscale(85%);
  filter: gray;
}

body {

  font-family: 'FC Minimal';
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #FDF5F5;
}

.password-input {
  -webkit-text-security: '*';
}

section {
  padding: 50px 15px 0 15px;
  text-align: center;
}

#home {

  background-color: #FDF5F5;
}


#home {

  background-color: #FDF5F5;
}

#group {
  background-color: #FDF5F5;
}

#servicePoint {
  background-color: #FDF5F5;
}




#product {
  background-color: #d0d0d0;
}

footer {

  background-color: #FDF5F5;
  padding: 1vw;

}


 .tt-privacy{
font-size: 1vw;


}


@media (max-width: 1024px) {

  .tt-privacy{
    font-size: 3vw;
  }
}

@media (max-width: 767px) {

  .tt-privacy{
  text-align: left;
  }
}


.red-text-xx {
  color: #D92029;
}

.main-header-black-text {
  font-size: 2.5rem;
  color: #1d242d;
  font-family: 'FC Minimal Custom';
  font-weight: 300;
  letter-spacing: -0.019em;
  line-height: 57.6px;
}

.main-header-red-text {
  font-size: 2.5rem;
  color: #D92029;
  font-family: 'FC Minimal Custom';
  font-weight: 500;
  letter-spacing: -0.019em;
  line-height: 57.6px;
}

.custtom-btn-draw {
  background-color: white;
  padding: 1vw;
  /* width: 30vw; */
  height: auto;
  margin: 1vw;
  border-radius: 24px;

}

@media (max-width: 1024px) {
  .custtom-btn-draw {
    margin: 2vw;
    padding: 2vw;
    text-align: center;
  }

  .flex-scoll{
  margin: 5vw 0;
  }

}


.news-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

body.modal-open {
  overflow: hidden;
  height: 100vh; /* ป้องกัน scroll บน iOS */
}


.news-hidden {
  display: none !important;
}

.news-blur {
  filter: blur(4px);

  transition: filter 0.3s ease;
  pointer-events: none; /* ป้องกันการคลิกขณะเบลอ */
}

/* /element border tranparent blur/ */
/* .news-modal {
  position: relative;
  width: 60vw;
  border-radius: 32px;

  border: 10px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(20px); 
  overflow: hidden;
} */

/* .news-modal {
  position: relative;
  border-radius: 32px;
  width: 60vw;
  overflow: hidden;
} */

/* .news-modal {
  position: relative;
  max-width: 50vw;       
  max-height: 95vh;
  border-radius: 32px;
  overflow: hidden;
} */

.news-modal {
  position: relative;
  max-width: 730px;
  max-height: 770px;
  width: 100%;
  height: 100%; 
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* .content-viewport {
  width: 100%;
  overflow: hidden;
} */

.content-viewport {
  display: block;
}

/* modal page */

.modal-content-wrapper {
  display: flex;
  transition: transform 0.3s ease;
  width: 200%;
  height: 100%;
  border-radius: 32px;
  gap: 1.5vw;

}

.modal-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal-page img {
  max-height: 100%; 
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

 .modal-header {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 1;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.news-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.news-modal-close img {
  display: block;
  width: 35px;
  height: 35px;
}

.modal-footer {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 20px;

  transition: all 0.4s ease;
}

.modal-footer.reversed {
  flex-direction: row-reverse;
}


.page-indicator {
  margin-right: 10px;
  font-size: 14px;
  color: #888;
}

.page-indicator .text-page-num {
  font-size: 10px;
  color: #454A51;
  font-weight: 300;
  line-height: 11.74px;
  letter-spacing: -0.019em;
  
}

.next-button {
  background: none;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.next-button img {
  width: 40px;
  height: 40px;
}

.enter-site-button {
  display: none;
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 5;

  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 300px;
  height: 72px;
}

.enter-site-button img {
  object-fit: contain;
}

.modal-page1-row {
  display: flex;
  align-items: center; 
  justify-content: space-between; 
  gap: 1rem;
  margin-top: 2vw;
}

.modal-page1-text {
  flex: 1;
}

.modal-page1-logo {
  margin-left: 10px;
}

/* responsive modal  */
@media (max-width: 768px) {
  .news-modal {
    width: 380px;
    /* max-width: none; */
    height: 510px;
    border-radius: 16px;
  }

  .modal-page img {
    /* border-radius: 16px; */
  }

  .modal-header{
    top: 0px;
    right: 10px;
  }
  .news-modal-close img {
    width: 32px;
    height: 32px;
  }

  .next-button {
    width: 36px;
    height: 36px;
  }

  .next-button img {
    width: 22px;
    height: 22px;
  }

  .enter-site-button {
    width: 148px;
    height: 44px;

    bottom: 24px;
    left: 24px;
  }

  .enter-site-button img{
    width: 45vw;
    /* height: 20vh; */
  }

  .modal-footer{
    gap: 15px;

    bottom: 4vh;
    right: 4vh;
  }
}

@media (max-height: 568px) {
  .news-modal {
    width: 380px;
    height: 440px;
    border-radius: 16px;
  }

  .modal-footer{
    bottom: 6vh;
  }

  .news-modal-close {
  top: 15px;
  right: 15px;

}

}

/* ===== START: POPUP STYLES ===== */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background-color: rgba(0, 0, 0, 0.75);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.popup-overlay.show {
  display: flex;
}

.popup-content {
  max-width: 500px;
  width: 90%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  cursor: pointer;
}

.popup-content img {
  width: 100%;
  height: auto;
  display: block;
}
/* ===== END: POPUP STYLES ===== */







