/* ===== POTENTIAL PROJECT SECTION ===== */
.potential-section {
  background: #ada281;
  padding: 0;
  margin: 0;
  padding-top:40px;
}

/* Main Title Column */
.potential-title-col {
  background: #ada281;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 3rem;
}

/* Main Title at Top */
.potential-main-title {
  font-family: 'Marcellus', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  color: #FFF;
  font-weight: 400;
  margin: 0;
  text-align: right;
}

/* Left Side: Swiper Container */
.potential-left {
  background: #ada281;
  position: relative;
  height: 70vh;
  padding: 0;
  overflow: hidden;
}

/* Desktop Swiper */
.swiper-container {
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

/* Fixed Height, Full Width Images */
.swiper-slide img {
  width: 100%;   /* Full width */
  height: 480px; /* Fixed height */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

/* Slide ที่ไม่ active จะเล็กและจาง */
.swiper-slide:not(.swiper-slide-active) {
  opacity: 0.3;
  transform: scale(0.7);
}

.swiper-slide:not(.swiper-slide-active) img {
  filter: blur(3px);
}

.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

/* Caption centered at bottom */
.slide-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
   
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Marcellus', serif;
  font-size: 1.3rem;
  z-index: 10;
  white-space: nowrap;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: rgba(43, 33, 25, 0.75) !important;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(43, 33, 25, 0.95) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.swiper-button-prev {
  left: 30px !important;
}

.swiper-button-next {
  right: 30px !important;
}

/* ปรับขนาดปุ่มใน desktop ขนาดเล็ก */
@media (max-width: 1400px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }
  
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 20px !important;
  }
  
  .swiper-button-prev {
    left: 20px !important;
  }
  
  .swiper-button-next {
    right: 20px !important;
  }
}

/* Swiper Pagination */
.swiper-pagination {
  bottom: 20px;
}

.swiper-pagination-bullet {
  width: 50px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
  background: #fff;
}

/* Bottom: Content */
.potential-bottom {
  background: #ada281;
  padding: 3rem 0;
}

.potential-content {
  padding: 2rem 3rem;
  max-width: 100%;
}

.potential-subtitle {
  font-family: 'Marcellus', serif;
  font-size: 1.2rem;
  color: #5a4a3a;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.potential-title {
  font-family: 'Marcellus', serif;
  font-size: 2.2rem;
  line-height: 1.3;
  color: #FFF;
  margin-bottom: 1.5rem;
}

.potential-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #FFF;
  margin-bottom: 2.5rem;
}

/* Accordion Styling */
.potential-accordion {
  border: 0;
}

.potential-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(43, 33, 25, 0.15);
  margin-bottom: 0;
}

.potential-accordion .accordion-item:last-child {
  border-bottom: 0;
}

.potential-accordion .accordion-button {
  font-family: 'Marcellus', serif;
  font-size: 36px;
  color: #FFF;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 1.5rem 0;
  position: relative;
  border-radius: 0;
  margin: 0;
}

.potential-accordion .accordion-button:not(.collapsed) {
  background: #f9f3e2;
  color: #2b2119;
  padding: 1.5rem 1.5rem;
  border-radius: 0;
  margin: 0;
}

.potential-accordion .accordion-button::after {
  display: none;
}

.potential-accordion .accordion-button i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: #FFF;
}

.potential-accordion .accordion-button:not(.collapsed) i {
  transform: rotate(90deg);
}

.potential-accordion .accordion-button:hover {
  background: rgba(248, 243, 225, 0.5);
  border-radius: 0;
}

.potential-accordion .accordion-body {
  background: #f9f3e2;
  padding: 0 1.5rem 1.5rem;
  border-radius: 0;
  margin-top: 0;
  color: #3a2a1a;
  line-height: 1.7;
  font-size: 0.95rem;
  border-top: 0;
}

.potential-accordion .accordion-collapse {
  border: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
  .potential-main-title {
    font-size: 2.5rem;
    text-align: center;
    padding: 0 !important;
    margin-bottom: 0;
  }
  
  .potential-left {
    height: 60vh;
  }
  
  .swiper-container {
    height: 700px;
    padding: 2rem 0;
  }
  
  /* Mobile Fixed Height - Full Width */
  .swiper-slide img {
    width: 100%;
    height: 350px;
  }
  
  .slide-caption {
    font-size: 1.1rem;
    padding: 10px 20px;
    bottom: 20px;
  }
  
  /* ซ่อนปุ่มใน mobile */
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .potential-content {
    padding: 2rem;
  }
  
  .potential-title {
    font-size: 1.8rem;
  }
  
  .potential-accordion .accordion-button {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .potential-main-title {
    font-size: 2rem;
  }
  
  .potential-left {
    height: 50vh;
  }
  
 
  
  /* Small Mobile Fixed Height - Full Width */
  .swiper-slide img {
    width: 100%;
    height: 280px;
  }
  
  .potential-content {
    padding: 2rem 1.5rem;
  }
  
  .potential-title {
    font-size: 1.5rem;
  }
}

/* เพิ่ม CSS สำหรับ Project Links */
.project-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.3s ease;
}

.project-slide-link:hover {
  transform: translateY(-5px);
  text-decoration: none;
  color: inherit;
}

.project-slide-link img {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.project-slide-link:hover img {
  filter: brightness(1.1);
}

.project-slide-link:hover .slide-caption {
  background: rgba(255, 255, 255, 0.95);
  color: #2b2119;
  transform: translateX(-50%) translateY(-2px);
}