/*get started*/

.cta-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

/* ปุ่ม GET STARTED - ดำแล้ว hover ขาว */
.btn-get-started {
  background: #000;
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid #000;
  transition: 0.3s ease-in-out;
}

.btn-get-started:hover {
  background: #fff;
  color: #000;
}

/* ปุ่ม WATCH VIDEO - มีไอคอนแบบปุ่มเล่น */
.btn-watch-video {
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  transition: 0.3s ease;
}

.btn-watch-video i {
  font-size: 1.6rem;
  color: #e74c3c;
  margin-right: 8px;
}

.btn-watch-video span {
  font-size: 0.95rem;
}

.btn-watch-video:hover {
  color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-buttons {
      flex-direction: column;
      align-items: flex-start;
  }

  .btn-get-started,
  .btn-watch-video {
      width: 100%;
      justify-content: center;
  }
}

/* img pro */
.hero-wrap {
  position: relative;
  background-size: cover;
  background-position: center center;
}

.hero-wrap .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-wrap > *:not(.overlay) {
  position: relative;
  z-index: 2;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
}

/* choo */
.embassy-brand {
  background-color: #333333;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
}

.embassy-text {
  color: #FFD700;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.embassy-text:hover {
  text-shadow: 0 0 5px #FFD700;
  transform: scale(1.05);
}

.custom-navbar {
  background-color: #333333 !important;
}

.custom-navbar .navbar-brand span,
.custom-navbar .nav-link,
.custom-navbar .nav-link span,
.custom-navbar .oi-menu {
  color: #FFD700 !important;
  transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover span,
.custom-navbar .navbar-brand span:hover {
  text-shadow: 0 0 6px #FFD700;
  transform: scale(1.05);
}

/* เพิ่ม z-index ให้แถบเมนู */
.custom-navbar {
  position: relative;
  background-color: #333333 !important;
  padding: 1rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
  margin-top: 20px;
}

/* css ของ vdo */
#view-embassy {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.video-wrapper video {
  width: 1250px;
  height: 9050px;
}

section:nth-of-type(odd) {
  background-color: #ffffff;
}

section:nth-of-type(even) {
  background-color: #f0f0f0;
}

/* css ของ img */
.gallery-container {
  margin-bottom: 30px;
}

.main-image-container {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 15px;
}

#main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ปุ่มควบคุมซ้ายขวา */
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ปุ่มวงกลม */
.control-btn {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.control-btn:hover {
  background-color: #e9ecef;
}

/* Wrapper รอบ thumbnails (ต้อง scroll ได้!) */
.thumbnail-wrapper.dragging {
  cursor: grabbing;
  user-select: none;
}

/* Container thumbnails */
.image-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

/* Thumbnail แต่ละอัน */
.thumbnail {
  width: 80px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.thumbnail:hover {
  transform: translateY(-3px);
}

.thumbnail.active {
  border-color: #007bff;
}

.thumbnail-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
}

.image-thumbnails {
  display: flex;
  gap: 10px;
}

.thumbnail.active {
  border: 2px solid gold;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}

.thumbnail-wrapper::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-wrapper::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}

/* Unit */
.gallery-selector {
  background-color: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.gallery-image {
  border: 1px solid #dee2e6;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.01);
}

.gallery-image img {
  border-bottom: 1px solid #dee2e6;
}

.unit-plan-image h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* icon */
.project-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #fff; /* ขาวบริสุทธิ์ */
}

.project-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 700;
  color: #333;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.info-item {
  flex: 1 1 calc(25% - 20px);
  background: #fff; /* ขาวบริสุทธิ์ */
  border: none; /* ลบขอบเทา */
  border-radius: 0; /* ลบโค้ง ถ้าอยากเรียบ */
  padding: 20px;
  box-shadow: none; /* ไม่มีเงา */
  text-align: center;
  min-width: 200px;
}

.info-item .icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: #555;
}

.info-item strong {
  display: block;
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

.info-item div:last-child {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .info-item {
    flex: 1 1 45%;
  }
}

@media (max-width: 480px) {
  .info-item {
    flex: 1 1 100%;
  }
}
/* กำหนดสีเริ่มต้นของปุ่ม Watch Video */
.btn-watch-video {
  color: white;
  transition: color 0.3s;
}

/* เมื่อเมาส์อยู่บนปุ่ม Watch Video */
.btn-watch-video:hover {
  color: red;
}


/* เพิ่มช่องว่างบนและล่างของแต่ละ section */
section {
    margin-bottom: 50px; /* ช่องว่างด้านล่างของแต่ละ section */
    padding-top: 20px; /* ช่องว่างด้านบนของแต่ละ section */
}

/* ถ้าคุณต้องการให้ section ที่เฉพาะเจาะจงมีช่องว่างมากขึ้น */
#services-section {
    margin-bottom: 80px;
}

#contact-bar {
    margin-top: 40px;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* logoในmanu */
.logo-img {
  max-width: 100%;
  max-height: 40px;
  height: auto;
  display: block;
}

/* css ปรับ mobie */
/* ทำให้วิดีโอ responsive */

.responsive-video {
  width: 100%;
  height: auto; 
  max-height: 500px; 
  object-fit: cover; 
  border-radius: 1rem;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .responsive-video {
    height: 700px; 
  }
}

@media (max-width: 767px) {
  .responsive-video {
    height: 200px; 
  }
}


/* plan in index */
/* ทำให้ main image ใน gallery responsive */
.gallery-container .main-image-container img {
  width: 100%;
  height: auto; /* ความสูงปรับตามอัตราส่วน */
  max-height: 500px; /* ปรับความสูงสูงสุด */
  object-fit: cover;
}

/* ปรับความกว้างและให้ thumbnail scrollable */
.gallery-controls .thumbnail-wrapper {
  max-width: 80%;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
  margin: 0 auto; /* เพื่อจัดตำแหน่งให้กลาง */
}

/* ปรับขนาด thumbnail ให้เหมาะสม */
.thumbnail {
  width: 100px;
  height: 70px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  transition: border 0.3s;
  display: inline-block;
  margin-right: 5px; /* เว้นระยะระหว่างภาพ */
}

/* เมื่อ hover thumbnail */
.thumbnail:hover {
  border: 2px solid #000; /* เมื่อ hover จะมีขอบ */
  cursor: pointer;
}

/* สำหรับ responsive เมื่อหน้าจอเล็กลง */
@media (max-width: 767px) {
  /* ปรับความกว้างของ thumbnail-wrapper ให้เต็มที่ */
  .gallery-controls .thumbnail-wrapper {
    max-width: 95%; /* เพิ่มพื้นที่ให้มากขึ้น */
  }

  /* ปรับขนาดของ thumbnail เมื่อหน้าจอเล็กลง */
  .thumbnail {
    width: 90px;
    height: 60px;
  }

  /* ปรับความสูงของ main image สำหรับมือถือ */
  .gallery-container .main-image-container img {
    max-height: 400px; /* ลดความสูงของ main image สำหรับมือถือ */
  }
}

/* Album */


@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');
  
  .album-container {
    padding: 4rem 0;
    background-color: #f9f6f2;
    font-family: 'Montserrat', sans-serif;
    color: #333;
  }
  
  .album-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #3c3c3c;
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: 1px;
  }
  
  .album-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ba9361;
  }
  
  .album-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
  }
  
  .filter-buttons {
  margin-bottom: 3rem;
  position: relative;
}

.filter-buttons::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: rgba(186, 147, 97, 0.3);
}

.filter-btn {
  margin: 0 8px 10px;
  padding: 10px 22px;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.4s ease;
  background-color: transparent;
  color: #555;
  border: 1px solid transparent;
  position: relative;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  /* ป้องกันการขึ้นกรอบจากการ focus */
  outline: none;
  box-shadow: none;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #ba9361;
  transition: all 0.3s ease;
}

.filter-btn:hover::after,
.filter-btn.active::after {
  width: 80%;
}

.filter-btn:hover,
.filter-btn.active {
  color: #ba9361;
  background-color: transparent;
  border-color: transparent;
  outline: none;
  box-shadow: none;
}

/* เพิ่มกรณีตอนคลิกหรือได้ focus เพื่อเคลียร์สไตล์แปลกๆ */
.filter-btn:focus,
.filter-btn:active {
  outline: none;
  box-shadow: none;
  border: 1px solid transparent;
}

  
  .gallery-container {
    position: relative;
  }
  
  .gallery-item {
    margin-bottom: 40px;
    transition: all 0.5s ease;
    transform: scale(1);
  }
  
  .gallery-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(170, 0, 0, 0.1);
  }
  
  .gallery-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(186, 147, 97, 0);
    z-index: 1;
    transition: all 0.4s ease;
  }
  
  .gallery-img-container:hover::before {
    background: rgba(186, 147, 97, 0.2);
  }
  
  .gallery-img {
    transition: transform 0.7s ease;
    width: 100%;
    height: 280px;
    object-fit: cover;
  }
  
  .gallery-img-container:hover .gallery-img {
    transform: scale(1.08);
  }
  
  .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(33, 33, 33, 0.85) 0%, rgba(33, 33, 33, 0.4) 50%, transparent 100%);
    color: white;
    padding: 30px 25px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
  }
  
  .gallery-img-container:hover .gallery-overlay {
    opacity: 1;
  }
  
  .gallery-caption {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    opacity: 0;
  }
  
  .gallery-img-container:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
  }
  
  .gallery-subcaption {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    letter-spacing: 1px;
  }
  
  .gallery-img-container:hover .gallery-subcaption {
    opacity: 0.9;
    transform: translateY(0);
  }
  
  .view-more-btn {
    padding: 14px 40px;
    border-radius: 0;
    font-weight: 500;
    background-color: transparent;
    color: #ba9361;
    border: 1px solid #ba9361;
    transition: all 0.4s ease;
    margin-top: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ba9361;
    transition: all 0.4s ease;
    z-index: -1;
  }
  
  .view-more-btn:hover {
    color: white;
  }
  
  .view-more-btn:hover::before {
    left: 0;
  }
  
  /* Animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .animate-item {
    animation: fadeIn 0.8s ease forwards;
  }
  
  .hidden {
    display: none;
  }
  
  /* Custom GLightbox styling */
  .glightbox-clean .gslide-description {
    background: #212121;
    border-top: 2px solid #ba9361;
  }
  
  .glightbox-clean .gslide-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #ba9361;
  }
  
  .glightbox-clean .gslide-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
  }
  
  .gclose {
    background: #ba9361 !important;
    opacity: 0.8;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .gallery-img {
      height: 240px;
    }
    
    .album-title {
      font-size: 2.2rem;
    }
    
    .filter-btn {
      padding: 8px 16px;
      margin: 0 4px 8px;
      font-size: 0.75rem;
    }
  }

/* Album end */

/* bout */
.hero-wrap {
  position: relative;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('img/MANGATE_FINAL_HIRES.webp');
  background-size: cover;
  background-position: center center;
  color: white;
}

/* to top & line */

section#workflow-section .services .icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #4435069f !important;
  color: white !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
section#workflow-section .services .icon i,
section#workflow-section .services .icon span {
  font-size: 40px;
  color: white !important;
}
