/* ===================================================================
   HEAVEN SAMUI - COMPREHENSIVE UI/UX FIXES
   =================================================================== */

/* ==================================
   1. IMAGE LOADING & ANTI-CUTTING FIX
   ================================== */

/* Prevent image cutting during load */
img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Ensure containers have minimum heights to prevent collapse */
.tripex-destination-item .thumbnail,
.tripex-tour-item .thumbnail,
.tripex-gallery-item .thumbnail,
.blog-post-item .thumbnail {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  min-height: 250px;
}

/* ==================================
   2. HEADER SUBLINE BLUR REMOVAL
   ================================== */

/* Remove blur and improve readability */
.hero-wrapper .hero-content .sub-title {
  text-shadow: none !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 10px 20px;
  border-radius: 30px;
  display: inline-block;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-wrapper .hero-content h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.hero-wrapper .hero-content p {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* ==================================
   3. HERO VIDEO BACKGROUND
   ================================== */

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.hero-video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

#hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 0;
}

.hero-video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scaleX(-1);
}

/* ==================================
   4. CAROUSEL ENHANCEMENTS
   ================================== */

/* Pause on hover for all carousels */
.slick-slider {
  transition: opacity 0.3s ease;
}

.slick-slider:hover {
  cursor: grab;
}

.slick-slider:active {
  cursor: grabbing;
}

/* Infinite scroll is handled via JS - this ensures smooth transitions */
.slick-track {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================================
   5. PACKAGE CARDS STANDARDIZATION
   ================================== */

/* Ensure uniform card heights in carousels and grid layouts */
.tripex-tour-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #fff;
  position: relative;
  z-index: 1;
}

/* Force consistent structure for content wrapper */
.tripex-tour-item .content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tripex-tour-item .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.tripex-tour-item .content h4 {
  min-height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  margin-bottom: 15px;
}

.tripex-tour-item .content p {
  flex: 1;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Z-index fix - prevent card from appearing behind border on hover */
.tripex-tour-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3);
  z-index: 10 !important;
  position: relative;
}

/* Ensure tour meta aligns at bottom */
.tripex-tour-item .tour-meta {
  margin-top: auto;
}

.tripex-tour-item .tour-footer {
  margin-top: 15px;
}

/* Container z-index management */
.tripex-tour-sec .row {
  position: relative;
  z-index: 1;
}

.tripex-tour-sec [class*="col-"] {
  position: relative;
  z-index: 1;
  padding-bottom: 30px;
}

/* Slick carousel container fix for proper z-index stacking */
.tour-slider .slick-list {
  overflow: visible !important;
}

.tour-slider .slick-slide {
  position: relative;
  z-index: 1;
}

.tour-slider .slick-slide:hover {
  z-index: 10;
}

/* ==================================
   6. GLOBAL FONT APPLICATION
   ================================== */

/* Body fonts - Inter Bold */
body, p, span, div, a, li, td, th, label, input, textarea, select, button {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
}

/* Headers - Poppins */
h1, h2, h3, h4, h5, h6,
.section-title h1,
.section-title h2,
.section-title h3,
.section-title h4,
.section-title h5,
.section-title h6,
.sub-title,
.btn {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
}

/* Strong text */
strong, b, .font-weight-bold {
  font-weight: 700 !important;
}

/* ==================================
   7. REVIEW CAROUSEL SMOOTHNESS
   ================================== */

.testimonial-slider {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-slider.paused {
  animation-play-state: paused;
}

.testimonial-slider .slick-track {
  display: flex;
  align-items: center;
}

.tripex-testimonial-item {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.tripex-testimonial-item:hover {
  transform: scale(1.02);
}

/* ==================================
   8. FOOTER ALIGNMENT
   ================================== */

.footer-area {
  background: #1a1a1a;
  padding: 80px 0 30px;
}

.footer-widget {
  margin-bottom: 40px;
}

.footer-widget h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.footer-widget ul li a {
  color: #b0b0b0;
  transition: color 0.3s ease;
  font-size: 15px;
}

.footer-widget ul li a:hover {
  color: #00ccff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 25px 0;
  margin-top: 40px;
}

.footer-bottom p {
  margin: 0;
  color: #b0b0b0;
  font-size: 14px;
}

/* Footer responsive alignment */
@media (min-width: 768px) {
  .footer-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .footer-area .row {
    align-items: stretch;
  }
}

/* ==================================
   9. FLOATING SOCIAL BUTTONS
   ================================== */

/* Main container */
#floating-social {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 12px !important;
}

/* Trigger button - MUST be clickable */
#floating-social-trigger {
  width: 60px !important;
  height: 60px !important;
  background: linear-gradient(135deg, #f29727 0%, #e67e22 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 6px 25px rgba(242, 151, 39, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  z-index: 10 !important;
}

#floating-social-trigger:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 35px rgba(242, 151, 39, 0.6) !important;
}

#floating-social-trigger i {
  font-size: 26px !important;
  color: #ffffff !important;
  transition: transform 0.3s ease !important;
}

/* Social buttons container - hidden by default */
#floating-social .floating-social-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px) scale(0.8) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none !important;
  position: absolute !important;
  bottom: 75px !important;
  right: 0 !important;
  z-index: 1 !important;
}

/* Show buttons when container has .active class */
#floating-social.active .floating-social-buttons {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
  z-index: 5 !important;
}

/* Individual social buttons */
#floating-social .floating-social-btn {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
}

#floating-social .floating-social-btn:hover {
  transform: scale(1.1) translateX(-5px) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3) !important;
}

#floating-social .floating-social-btn i {
  font-size: 22px !important;
  color: #ffffff !important;
}

#floating-social .floating-social-btn.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
}

#floating-social .floating-social-btn.instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%) !important;
}

#floating-social .floating-social-btn.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%) !important;
}

#floating-social .floating-social-btn.phone {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
}

/* Tooltip labels */
#floating-social .floating-social-btn::after {
  content: attr(data-label) !important;
  position: absolute !important;
  right: 60px !important;
  background: #1e293b !important;
  color: #ffffff !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  transform: translateX(10px) !important;
  transition: all 0.3s ease !important;
  pointer-events: none !important;
}

#floating-social .floating-social-btn:hover::after {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #floating-social {
    bottom: 20px !important;
    right: 20px !important;
  }

  #floating-social-trigger {
    width: 55px !important;
    height: 55px !important;
  }

  #floating-social-trigger i {
    font-size: 24px !important;
  }

  #floating-social .floating-social-buttons {
    bottom: 65px !important;
  }

  #floating-social .floating-social-btn {
    width: 45px !important;
    height: 45px !important;
  }

  #floating-social .floating-social-btn i {
    font-size: 18px !important;
  }

  #floating-social .floating-social-btn::after {
    display: none !important;
  }
}

/* ==================================
   10. CONTACT FORM IMPROVEMENTS
   ================================== */

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.contact-form .form-control {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.contact-form .form-control:focus {
  border-color: #00ccff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 204, 255, 0.1);
  outline: none;
}

.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* ==================================
   11. RESPONSIVE ADJUSTMENTS
   ================================== */

@media (max-width: 768px) {
  .floating-social-buttons {
    bottom: 20px;
    right: 20px;
  }

  .social-trigger {
    width: 50px;
    height: 50px;
  }

  .social-button {
    width: 45px;
    height: 45px;
  }

  .hero-video-wrapper {
    height: 100vh;
  }

  #hero-video-iframe {
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* ==================================
   12. BLOG SECTION ALIGNMENT
   ================================== */

/* Standardize blog card heights and alignment */
.blog-post-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-post-item .thumbnail {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.blog-post-item .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post-item:hover .thumbnail img {
  transform: scale(1.1);
}

.blog-post-item .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.blog-post-item .post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #888;
}

.blog-post-item .title {
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-post-item .content > p {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #666;
}

.blog-post-item .post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.blog-post-item .post-footer .author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-post-item .post-footer .author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Ensure equal heights in grid */
.blog-post-item-wrapper,
[class*="col-"] > .blog-post-item {
  height: 100%;
}

/* ==================================
   13. DECORATIVE SHAPES OPTIMIZATION
   ================================== */

/* Ensure decorative shapes don't interfere with content */
.shape,
.scene {
  pointer-events: none;
  z-index: 0;
}

/* Prevent shapes from causing overflow issues */
section {
  position: relative;
  overflow-x: hidden;
}

/* Optimize shape visibility for better performance */
.shape img {
  will-change: transform;
  backface-visibility: hidden;
}

/* ==================================
   14. FINAL CONSISTENCY FIXES
   ================================== */

/* Ensure all sections have consistent spacing */
section.pt-115 {
  padding-top: 115px !important;
}

section.pb-70 {
  padding-bottom: 70px !important;
}

section.pt-20 {
  padding-top: 20px !important;
}

/* Consistent button styling across site */
.theme-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Ensure all icons are properly aligned */
i.flaticon-quote,
i.fas,
i.far,
i.fab {
  vertical-align: middle;
}

/* Consistent border radius across components */
.thumbnail,
.tripex-image,
.blog-post-item,
.tripex-tour-item {
  border-radius: 15px;
}

/* ==================================
   15. GALLERY CAROUSEL ENHANCEMENTS
   ================================== */

/* Ensure gallery items display properly */
.tripex-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.tripex-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tripex-gallery-item .thumbnail {
  overflow: hidden;
  border-radius: 15px;
}

.tripex-gallery-item .thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.tripex-gallery-item:hover .thumbnail img {
  transform: scale(1.1);
}

.tripex-gallery-item .hover-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tripex-gallery-item:hover .hover-content {
  opacity: 1;
}

/* ==================================
   16. UTILITIES
   ================================== */

.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================================
   17. ACCESSIBILITY IMPROVEMENTS
   ================================== */

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* Ensure sufficient contrast for text */
p,
li,
span {
  color: #333;
}

/* ==================================
   18. PERFORMANCE OPTIMIZATIONS
   ================================== */

/* Hardware acceleration for animations */
.tripex-tour-item,
.blog-post-item,
.tripex-gallery-item,
.social-button {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ==================================
   19. MOBILE HERO TEXT IMPROVEMENTS
   ================================== */

/* Mobile: Add dark overlay instead of heavy text outlines */
@media (max-width: 991px) {
  /* Dark overlay for video/image background on mobile */
  #hero-video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 3;
    pointer-events: none;
  }

  /* Clean white text without heavy outlines */
  .hero-wrapper .hero-content h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    -webkit-text-stroke: 0 !important;
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
  }

  .hero-wrapper .hero-content .sub-title {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    -webkit-text-stroke: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
  }

  .hero-wrapper .hero-content p {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    -webkit-text-stroke: 0 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    margin-bottom: 20px !important;
    display: inline-block !important;
  }

  /* Button container layout */
  .hero-content .hero-button {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  .hero-wrapper .hero-content h1 {
    font-size: 24px !important;
  }

  .hero-wrapper .hero-content p {
    font-size: 14px !important;
    padding: 12px 16px !important;
  }
}

/* ==================================
   20. CONSISTENT BUTTON ICONS
   ================================== */

/* Standardize all theme buttons with consistent icon styling */
.theme-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 14px 28px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  border: 2px solid transparent !important;
}

/* Style One - Primary (Blue background, white text/icon) */
.theme-btn.style-one {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border-color: #0ea5e9 !important;
}

.theme-btn.style-one i {
  color: #ffffff !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
}

.theme-btn.style-one:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35) !important;
}

/* Style Two - Secondary (White background, dark text, blue icon) */
.theme-btn.style-two {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.theme-btn.style-two i {
  color: #0ea5e9 !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
}

.theme-btn.style-two:hover {
  background: #f8fafc !important;
  border-color: #0ea5e9 !important;
  color: #0ea5e9 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2) !important;
}

/* Hero buttons specific styling */
.hero-content .theme-btn {
  width: 100% !important;
  max-width: 280px !important;
  text-align: center !important;
}

@media (min-width: 768px) {
  .hero-content .hero-button {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .hero-content .theme-btn {
    width: auto !important;
    max-width: none !important;
  }
}

/* Mobile button full width */
@media (max-width: 767px) {
  .hero-content .theme-btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
  }
}

/* ==================================
   21. MOBILE SCROLL FIX - ABOUT SECTION
   ================================== */

/* Fix mobile scroll trapping in sections */
.tripex-about-sec,
.tripex-tour-sec,
.tripex-destination-sec,
.tripex-gallery-sec,
.tripex-testimonial-sec {
  overflow: visible !important;
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior: auto !important;
  touch-action: pan-y !important;
  height: auto !important;
  max-height: none !important;
}

/* Ensure body and html don't trap scroll */
html, body {
  overscroll-behavior: auto !important;
  scroll-behavior: smooth;
}

/* Fix tripex-image-box height on mobile */
@media (max-width: 991px) {
  .tripex-about-sec .tripex-image-box,
  .tripex-image-box {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .tripex-about-sec .tripex-image-box img,
  .tripex-image-box .tripex-image.image-one img,
  .tripex-about-sec .tripex-image-box > img {
    height: auto !important;
    max-height: 400px !important;
  }

  /* Remove any fixed/sticky positioning that could trap scroll */
  .tripex-about-sec .shape,
  .tripex-about-sec .scene {
    position: absolute !important;
    display: none !important;
  }

  /* Ensure container doesn't have scroll trap */
  .tripex-about-sec .container,
  .tripex-about-sec .row {
    overflow: visible !important;
    height: auto !important;
  }
}

/* Prevent parallax/scene from affecting scroll on mobile */
@media (max-width: 768px) {
  .scene,
  [data-depth] {
    transform: none !important;
    position: static !important;
  }
}