/* Schedule Section Styles */
.schedule {
  background-color: var(--light-gray);
}

.schedule-tabs {
  background-color: var(--light-color);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 50px;
}

.tab-controls {
  display: flex;
  background-color: var(--secondary-color);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow-x: auto;
}

.tab-btn {
  padding: 15px 25px;
  background-color: transparent;
  border: none;
  color: var(--light-color);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--primary-color);
}

.tab-content {
  padding: 30px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--medium-gray);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  font-weight: 600;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 8px 15px;
  border-radius: 5px;
  width: 150px;
  text-align: center;
}

.schedule-class {
  flex: 1;
  padding: 0 20px;
}

.schedule-class h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.schedule-class p {
  margin: 0;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

/* Enhanced Pricing Package Section with Scrollable Dropdowns */
.pricing-package {
  background-color: var(--light-color);
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  padding: 40px;
  text-align: center;
  margin-top: 30px;
}

.pricing-package h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--secondary-color);
  position: relative;
}

.pricing-package h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.pricing-selector {
  max-width: 800px;
  margin: 0 auto;
}

/* Enhanced Pricing Dropdown Styles with Scrolling */
.pricing-dropdown-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.pricing-dropdown {
  position: relative;
  background-color: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.pricing-dropdown-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--light-color);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-dropdown-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.pricing-dropdown-header:hover::before {
  left: 100%;
}

.pricing-dropdown-header:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.pricing-dropdown-header h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.pricing-dropdown-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.pricing-dropdown.active .pricing-dropdown-icon {
  transform: rotate(180deg);
}

/* Scrollable Content Area */
.pricing-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: var(--light-color);
}

.pricing-dropdown.active .pricing-dropdown-content {
  max-height: 400px; /* Set maximum height for scrolling */
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: hidden; /* Hide horizontal scrolling */
}

/* Custom scrollbar styling for pricing dropdown content */
.pricing-dropdown-content::-webkit-scrollbar {
  width: 8px;
}

.pricing-dropdown-content::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 4px;
}

.pricing-dropdown-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.pricing-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Firefox scrollbar styling */
.pricing-dropdown-content {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light-gray);
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--medium-gray);
  transition: var(--transition);
  position: relative;
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  transition: width 0.3s ease;
  opacity: 0.1;
}

.pricing-item:hover {
  background-color: var(--light-gray);
  transform: translateX(5px);
}

.pricing-item:hover::before {
  width: 100%;
}

.pricing-item-name {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.pricing-item-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.pricing-item-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.pricing-item-duration {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* Loading animation for dropdown content */
.pricing-dropdown-content.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

.pricing-dropdown-content.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--light-gray);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
  }
  
  .schedule-time {
    margin-bottom: 10px;
  }
  
  .schedule-class {
    padding: 10px 0;
    width: 100%;
  }
  
  .tab-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .tab-content {
    padding: 20px;
  }
  
  .pricing-package {
    padding: 25px;
  }
  
  .pricing-package h3 {
    font-size: 1.6rem;
  }
  
  .pricing-dropdown-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .pricing-dropdown-content {
    max-height: 300px; /* Smaller height on mobile */
  }
  
  .pricing-dropdown.active .pricing-dropdown-content {
    max-height: 300px;
  }
  
  .pricing-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 15px;
  }
  
  .pricing-item-details {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .pricing-dropdown-header {
    padding: 15px;
  }
  
  .pricing-dropdown-header h4 {
    font-size: 1.1rem;
  }
  
  .pricing-item {
    padding: 10px 12px;
  }
  
  .pricing-item-price {
    font-size: 1rem;
  }
  
  .pricing-dropdown-content {
    max-height: 250px; /* Even smaller on very small screens */
  }
  
  .pricing-dropdown.active .pricing-dropdown-content {
    max-height: 250px;
  }
}