
@import url(/assets/theme/theme.css);

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

/* Blob Background Elements */
.blob {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.05);
  filter: blur(120px);
  z-index: 1;
}

.blob-1 {
  top: -300px;
  right: -300px;
}

.blob-2 {
  bottom: -400px;
  left: -200px;
}

.blob-3 {
  top: 20%;
  right: -300px;
}

.blob-4 {
  bottom: 10%;
  left: -300px;
}

/* Section Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(59, 130, 246, 0.1);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.dot-blue, .dot-orange {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.dot-blue {
  background-color: var(--primary-blue);
}

.dot-orange {
  background-color: var(--orange);
}

/* Section Titles and Text */
.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.section-description {
  font-size: 1.125rem;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--gray-700);
}

/* Buttons and CTAs */
.buy-now-btn {
  background-color: var(--primary-blue);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.buy-now-btn:hover {
  background-color: var(--dark-blue);
  transform: translateY(-2px);
}

/* Pricing Hero Section */
.pricing-hero-section {
  padding: 15px 5%;
  position: relative;
  overflow: hidden;
}

.pricing-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.pricing-hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
}

.pricing-hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--gray-500);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Main Pricing Section */
.pricing-main-section {
  padding: 30px 0;
}

.pricing-content {
  display: flex;
  gap: 2rem;
}

/* Sidebar Navigation - IMPROVED FOR RESPONSIVE */
.pricing-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  height: fit-content;
  z-index: 10;
}

.pricing-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  background-color: rgba(18, 18, 18, 0.8);
  overflow: hidden;
}

.pricing-nav-item {
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  display: block;
}

.pricing-nav-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
}

.pricing-nav-item:hover {
  color: var(--gray-700);
}

.pricing-nav-item.active {
  color: #fff;
  font-weight: 600;
  border-left: 3px solid var(--white);
  background-color: rgba(59, 130, 246, 0.1);
}

/* Pricing Tables Container */
.pricing-tables-container {
  flex: 1;
}

.pricing-table-section {
  padding-bottom: 30px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.pricing-table-header {
  margin-bottom: 2rem;
}

.pricing-table-header h2 {
  font-size: 2.25rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
}

.pricing-table-header p {
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* TABLE WRAPPER WITH CARD VIEW TOGGLE */
.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
  position: relative;
}

/* Custom scrollbar for WebKit browsers */
.pricing-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.pricing-table-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.pricing-table-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Standard table styles */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #121212;
}

.pricing-table th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: #fff;
}

.pricing-table tbody tr:hover {
  background-color: var(--gray-700);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

/* Mobile Card View for Tables */
.pricing-cards-view {
  display: none; /* Hidden by default, shown on mobile */
}

.pricing-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.pricing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.pricing-card-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.pricing-card-details {
  margin-bottom: 1.5rem;
}

.pricing-card-detail {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.pricing-card-label {
  color: var(--gray-400);
}

.pricing-card-value {
  color: #fff;
  font-weight: 500;
}

.pricing-card-footer {
  text-align: center;
}

/* FAQ Section */
.faq-section {
  padding: 30px 0;
  position: relative;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  padding: 1.5rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--gray-700);
}

/* Icon styles and animation */
.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s;
}

.faq-icon:before,
.faq-icon:after {
  content: '';
  position: absolute;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.faq-icon:before {
  width: 2px;
  height: 16px;
  top: 4px;
  left: 11px;
}

.faq-icon:after {
  width: 16px;
  height: 2px;
  top: 11px;
  left: 4px;
}

/* When question is active */
.faq-question.active {
  color: var(--white);
}

.faq-question.active .faq-icon:before {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-question.active .faq-icon:after {
  background-color: var(--gray-700);
}

.faq-answer {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.6;
  transition: max-height 0.4s ease-out;
  max-height: 0;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
  max-height: 1000px;
}

/* CTA Section */
.pricing-cta-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.pricing-cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.pricing-cta-description {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.pricing-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Testimonial Section */
.pricing-testimonial-section {
  padding: 80px 0;
}

.pricing-testimonial-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-testimonial-header .section-title {
  color: var(--white);
}

.pricing-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-testimonial-card {
  background-color: #121212;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.pricing-testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-testimonial-content {
  margin-bottom: 1.5rem;
}

.pricing-testimonial-content p {
  color: var(--gray-500);
  font-size: 1.125rem;
  line-height: 1.6;
  font-style: italic;
}

.pricing-testimonial-author {
  display: flex;
  align-items: center;
}

.pricing-testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.pricing-testimonial-author-info h4 {
  margin: 0;
  color: var(--white);
  font-weight: 600;
}

.pricing-testimonial-author-info p {
  margin: 0;
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* Pre-footer CTA */
.pre-footer-cta {
  background-color: rgba(59, 130, 246, 0.05);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.pre-footer-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pre-footer-cta__content {
  text-align: center;
  max-width: 800px;
  margin-bottom: 2rem;
}

.pre-footer-cta__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.pre-footer-cta__description {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.pre-footer-cta__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pre-footer-cta__shape {
  position: absolute;
  z-index: 0;
}

.shape-1 {
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background-color: rgba(59, 130, 246, 0.2);
  opacity: 0.1;
  border-radius: 50%;
}

.shape-2 {
  bottom: -30px;
  left: -30px;
  width: 250px;
  height: 250px;
  background-color: var(--primary-blue);
  opacity: 0.1;
  border-radius: 50%;
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .pricing-content {
    flex-direction: column;
  }
  
  .pricing-sidebar {
    flex: 0 0 100%;
    position: static;
    margin-bottom: 2rem;
  }
  
  .pricing-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .pricing-nav-item {
    border-left: none;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    text-align: center;
    flex: 0 0 auto;
    font-size: 0.9rem;
  }
  
  .pricing-nav-item.active {
    border-left: none;
    background-color: var(--primary-blue);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .pricing-hero-title {
    font-size: 2.5rem;
  }
  
  .pricing-cta-title, 
  .section-title,
  .pre-footer-cta__title {
    font-size: 2rem;
  }
  
  /* Hide table view and show card view on mobile */
  .pricing-table-wrapper {
    display: none;
  }
  
  .pricing-cards-view {
    display: block;
  }
  
  /* Enhanced mobile navigation */
  .pricing-sidebar {
    margin-bottom: 1.5rem;
    width: 100%;
  }
  
  .pricing-nav {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 0.5rem;
    background-color: rgba(18, 18, 18, 0.95);
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    padding-bottom: 10px; /* Add padding to ensure items aren't cut off */
    margin: 0 -10px; /* Negative margin to counteract container padding */
    padding-left: 10px; /* Add padding on the left to align with container */
    padding-right: 10px; /* Add padding on the right for consistency */
    width: calc(100% + 20px); /* Adjust width to account for negative margins */
    max-width: none; /* Override any max-width */
  }
  
  .pricing-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }
  
  /* Make sure items don't shrink */
  .pricing-nav-item {
    flex: 0 0 auto; /* Don't allow shrinking */
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 4px;
    white-space: nowrap; /* Prevent text wrapping */
    min-width: auto; /* Let content determine width */
  }
  
  .pricing-nav-item:last-child {
    margin-right: 0;
  }
  
  .pricing-cta-buttons,
  .pre-footer-cta__buttons {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }
  
  .pricing-cta-buttons .btn,
  .pre-footer-cta__buttons .btn {
    width: 100%;
  }
  
  .pricing-testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pricing-hero-title {
    font-size: 2rem;
  }
  
  .pricing-hero-description {
    font-size: 1rem;
  }
  
  .pricing-table-header h2 {
    font-size: 1.75rem;
  }
  
  .pricing-table-header p {
    font-size: 0.9rem;
  }
  
  .pricing-card {
    padding: 1rem;
  }
  
  .pricing-card-title, 
  .pricing-card-price {
    font-size: 1.1rem;
  }
  
  .pricing-nav-item {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}
