/* CSS Root Variables */
:root {
  --primary-color: #08c;
  --secondary-color: #00A8E0;
  --text-dark: #0c0c0c;
  --text-gray: #888888;
  --text-light: #e0e0e0;
  --success-color: #009900;
  --white: #ffffff;
  --shadow-light: 0px 0.835px 6.678px 0px rgba(0, 0, 0, 0.24);
  --shadow-nav: 0 2px 8px rgba(0, 188, 212, 0.2);
  --border-radius: 15px;
  --border-radius-sm: 13.355px;
  --transition: all 0.3s ease;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* Base Typography */
.display-4 {
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
}

.text-primary {
  color: var(--primary-color) !important;
}

.lead {
  color: #747474;
  font-size: 15px;
}

/* Services List Component */
.services-list {
  padding: 0 0 20px 80px;
}

.service-item {
  display: flex;
  align-items: center;
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-icon {
  margin-right: 10px;
}

.service-text {
  flex: 1;
}

.service-text h6 {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--text-dark);
}

.packages-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px; 
  margin: 0 auto;
  overflow: hidden;
}

.packages-slider {
  display: flex;
  gap: 22px;
  margin-bottom: 30px;
  transition: transform 0.5s ease-in-out;
  width: max-content;
  transform: translateX(0);
  padding: 0 5px;
  margin-top: 8px;
}

.package-slide {
  flex: 0 0 auto;
  min-width: 245px;
  max-width: 245px;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.package-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.package-card {
  position: relative;
  height: 100%;
  width: 100%; 
}

.package-card .card {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  background: var(--white);
  overflow: hidden;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card .card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

/* Badge Component */
.featured-badge span.badges {
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: 0 0 var(--border-radius-sm) 0;
  box-shadow: 0.835px 0.835px 3.339px 0 rgba(0, 0, 0, 0.25);
  font-size: 12px;
}

/* Card Body Component */
.card-body {
  padding: 20px 0 0 0;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.package-image-container {
  display: flex;
  justify-content: center;
}

.package-title-section {
  text-align: center;
  margin-top: -15px;
}

.service-text {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--success-color);
}

/* Pricing Component */
.package-pricing {
  text-align: center;
}

.starts-from,
.price-display,
.price-period {
  color: var(--text-dark);
  font-weight: var(--font-weight-bold);
}

.starts-from {
  margin: 0;
  font-size: 12px;
}

.price-display {
  font-size: 24px;
}

.price-period {
  font-size: 20px;
}

/* Button Component */
.btn-enquire {
  background: var(--secondary-color);
  color: var(--white);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  height: 36px;
  border: none;
}

.btn-enquire:hover {
  background: linear-gradient(135deg, var(--secondary-color), #0294c5);
  color: var(--white);
}

/* Navigation Components */
.slider-navigation {
  display: flex;
  justify-content: center;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--text-light);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-gray);
}

.nav-btn img {
  width: 12px !important;
  height: 12px !important;
}

.nav-btn:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: var(--shadow-nav);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn:disabled:hover {
  border-color: var(--text-light);
  color: var(--text-gray);
  box-shadow: none;
}

.nav-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Inactive dots - keep round style */
.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Active dot - increase width and add progress bar */
.nav-dot.active {
  width: 30px;
  height: 6px;
  border-radius: 16px;
}

/* Progress bar inside active dot only */
.nav-dot.active .progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--secondary-color);
  border-radius: 16px;
  transition: width 0.05s linear;
}

/* Hide progress bar in inactive dots */
.nav-dot:not(.active) .progress-bar {
  display: none;
}

.nav-dot:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

/* Text Image Components */
.text-img-right,
.text-img-left {
  position: absolute;
  height: 240px;
  display: flex;
  overflow: hidden;
  z-index: 2;
  margin-top: 35px;
}

.text-img-left {
  margin-left: 230px;
}

.text-img-right {
  margin-left: 3px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .services-list {
    margin-bottom: 8px;
  }

  .packages-container {
    padding: 5px;
  }
}

/* Mobile Auto-slide Styles */
.mobile-auto-slide {
  overflow: hidden;
  position: relative;
  display: none;
}

.mobile-slide-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.mobile-slide-item {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  margin-left: 5px;
}

/* Updated responsive styles */
@media (max-width: 768px) {
  .display-4 {
    font-size: 24px;
  }

  .services-list {
    padding: 15px;
  }

  /* Mobile specific changes */
  .packages-slider {
    display: none !important;
  }

  .mobile-auto-slide {
    display: block !important;
  }

  .nav-controls {
    margin-right: 0;
    justify-content: center;
  }

  .lead {
    font-size: 14px;
  }

  .card-body {
    padding: 20px 15px;
    gap: 15px;
  }

  .service-text {
    font-size: 14px;
  }

  .price-display {
    font-size: 20px;
  }

  .price-amount {
    font-size: 24px;
  }

  .service-item {
    padding: 5px 0;
    margin-bottom: -18px;
  }

  .service-icon {
    margin-right: 12px;
  }

  .package-card .card {
    width: 280px;
    margin-left: 35px;
  }
}

@media (max-width: 576px) {
  .service-icon {
    width: 35px;
    height: 35px;
  }

  .display-4 {
    font-size: 20px;
  }

  .nav-controls {
    gap: 15px;
  }

  .nav-btn {
    width: 35px;
    height: 35px;
  }

  .package-card .card {
    width: 260px;
  }
}