/* Packages/Pricing Styles */
.packages-section {
  padding: 80px 0;
  background: #ffffff;
}

.packages-header {
  text-align: center;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.packages-title {
  font-size: 3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.packages-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  line-height: 1.6;
}

.package-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  /* height: 100%; */
  position: relative;
  animation: fadeInUp 1s ease-out;
}

.package-card:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: #4318d1;
}

.package-card.featured {
  background: linear-gradient(135deg, #4318d1, #6366f1);
  border-color: #4318d1;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(67, 24, 209, 0.3);
}

.package-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 15px 40px rgba(67, 24, 209, 0.4);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.package-header {
  margin-bottom: 2rem;
  text-align: start;
}

.package-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.package-card.featured .package-name {
  color: #ffffff;
}

.package-subtitle {
  color: #64748b;
  font-size: 1rem;
}

.package-card.featured .package-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.package-price {
  margin-bottom: 2rem;
  text-align: start;
}

.custom-pricing{
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  font-style: normal;
  line-height: 36px;
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  color: #0f172a;
  font-style: normal;
  line-height: 72px;
}

.package-card.featured .price-amount {
  color: #ffffff;
}

.price-period {
  font-size: 1rem;
  color: #64748b;
  margin-left: 0.5rem;
}

.package-card.featured .price-period {
  color: rgba(255, 255, 255, 0.8);
}

.package-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  color: #4318d1 !important;
}

.package-btn:hover{
  color: #ffffff !important;
  background-color: #4318d1 !important;
}

.package-btn:hover {
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #4318d1;
  border-color: #4318d1;
}

.btn-outline-primary:hover {
  background-color: #4318d1;
  border-color: #4318d1;
  color: #ffffff;
}

.package-card.featured .btn-primary {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #4318d1;
}

.package-card.featured .btn-primary:hover {
  background-color: #f8fafc;
  border-color: #f8fafc;
  color: #4318d1;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.package-features li {
  padding: 0.5rem 0;
  color: #64748b;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.package-card.featured .package-features li {
  color: rgba(255, 255, 255, 0.9);
}

.package-features i {
  color: #10b981;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.package-card.featured .package-features i {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .packages-title {
    font-size: 2.5rem;
  }
  
  .packages-subtitle {
    font-size: 1.1rem;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .packages-section {
    padding: 60px 0;
  }
  
  .packages-title {
    font-size: 2rem;
  }
  
  .packages-subtitle {
    font-size: 1rem;
  }
  
  .package-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .package-card.featured {
    transform: none;
    order: -1;
  }
  
  .package-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .price-amount {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .packages-section {
    padding: 40px 0;
  }
  
  .packages-title {
    font-size: 1.75rem;
  }
  
  .packages-subtitle {
    font-size: 0.9rem;
  }
  
  .package-card {
    padding: 1.25rem;
  }
  
  .package-name {
    font-size: 1.25rem;
  }
  
  .package-subtitle {
    font-size: 0.9rem;
  }
  
  .price-amount {
    font-size: 1.75rem;
  }
  
  .price-period {
    font-size: 0.9rem;
  }
  
  .package-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .package-features li {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .packages-title {
    font-size: 1.5rem;
  }
  
  .packages-subtitle {
    font-size: 0.85rem;
  }
  
  .package-card {
    padding: 1rem;
  }
  
  .package-name {
    font-size: 1.5rem;
  }
  
  .package-subtitle {
    font-size: 16px;
  }
  
  .price-amount {
    font-size: 1.5rem;
  }
  
  .price-period {
    font-size: 0.8rem;
  }
  
  .package-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .package-features li {
    font-size: 0.8rem;
  }
  
  .package-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effects */
.package-card {
  transition: all 0.3s ease;
}

.package-btn {
  transition: all 0.3s ease;
}

.package-features li {
  transition: color 0.3s ease;
} 

/* Swiper Customizations */
/* Essential Swiper styles to fix the layout issue */
.swiper {
  width: 100%;
  height: 100%;
  overflow: hidden; 
}

.swiper-wrapper {
  display: flex; /* Makes the slides a flexible row */
  box-sizing: content-box;
  height: auto;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%; /* Ensures slides are 100% of the viewport on mobile */
}

.swiper-pagination-bullet-active {
  background-color: #4318d1 !important;
}

/* Responsive CSS for Swiper */
@media (min-width: 768px) {
  .swiper-pagination {
    display: none; /* Hide pagination on desktop */
  }
}

@media (max-width: 992px) {
  .packages-section .row {
    --bs-gutter-x: 0; /* Remove horizontal gutter for swiper on mobile */
  }
  .package-card.featured {
    transform: none !important; /* Prevent the featured card from scaling on mobile swiper */
  }
}

/* Add this new rule to your CSS file */
.swiper-wrapper-container {
  position: relative;
}

/* Update the following CSS for the arrow positioning */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4318d1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #4318d1;
  color: #ffffff;
}

.swiper-button-prev {
  left: -20px; /* Adjust this value as needed to move the arrow left */
}

.swiper-button-next {
  right: -20px; /* Adjust this value as needed to move the arrow right */
}

/* Custom arrow icons using CSS pseudo-elements */
.swiper-button-next:after,
.swiper-button-prev:after {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.25rem;
  content: '\f053';
}

.swiper-button-next:after {
  content: '\f054';
}

/* Responsive CSS for Swiper */
@media (min-width: 992px) {
  /* On larger screens, the cards are displayed in a row, so the arrows are needed.
  We will add padding to the parent to ensure the arrows don't get cut off. */
  .swiper-wrapper-container {
    padding: 0 40px;
  }
}

/* Hide arrows on smaller screens where swiping is natural */
@media (max-width: 991px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}