/* Responsive pricing cards and arrows */
.pricing-cards-viewport {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  width: 100%;
}
.pricing-cards-set {
  display: flex;
  flex-direction: row;
  gap: 30px;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-card {
  background: var(--white);
  border-radius: 25px;
  min-width: 320px;
  max-width: 350px;
  flex: 0 0 auto;
  padding: 40px 30px;
  margin: 0 10px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-arrow {
  background: var(--light-moss);
  color: var(--rifle-green);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: none;
}
.nav-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 992px) {
  .pricing-card {
    min-width: 260px;
    max-width: 280px;
    padding: 30px 15px;
  }
  .pricing-cards-set {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .pricing-card {
    min-width: 220px;
    max-width: 240px;
    padding: 20px 8px;
  }
  .pricing-cards-set {
    gap: 10px;
  }
}
@media (max-width: 576px) {
  /* Keep horizontal layout but make cards smaller for mobile swiping */
  .pricing-cards-set {
    flex-direction: row;
    gap: 15px;
  }
  .pricing-card {
    min-width: 260px;
    max-width: 260px;
    padding: 20px 15px;
    margin: 0;
    flex-shrink: 0;
    box-sizing: border-box;
  }
}

/* === Pricing Section with Class Type Navigation === */
.pricing {
  background: var(--white);
  position: relative;
  overflow: hidden;
  padding: 180px 0 200px 0;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23c0d5ae' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
}

/* Ensure decorative pseudo-elements don't block pointer events */
.pricing::before,
.pricing::after {
  pointer-events: none !important;
}

/* Ensure cards and buttons sit above background decorations and are clickable */
.pricing-card {
  position: relative !important;
  z-index: 5 !important;
}

.card-action,
.card-action .btn,
.card-action .btn-link {
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

/* Floating background elements for pricing section */
.pricing::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(192,213,174,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pricingFloat 15s ease-in-out infinite;
  z-index: 1;
}

@keyframes pricingFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg) scale(1); 
    opacity: 0.08; 
  }
  50% { 
    transform: translateY(-50px) rotate(180deg) scale(1.2); 
    opacity: 0.15; 
  }
}

/* Pricing Section Header */
.pricing .section-title {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 80px;
}

.pricing .section-title h2 {
  font-family: 'EmotiveType', serif;
  font-size: 3.2rem;
  color: var(--rifle-green);
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.pricing .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--light-moss);
}

/* Class Type Navigation */
.class-type-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 3;
}

.class-type-tabs {
  display: flex;
  background: rgba(248, 249, 245, 0.8);
  border-radius: 50px;
  padding: 8px;
  border: 1px solid rgba(192, 213, 174, 0.2);
  backdrop-filter: blur(10px);
}

.class-type-tab {
  padding: 15px 30px;
  border-radius: 40px;
  background: transparent;
  border: none;
  color: var(--rifle-green);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  white-space: nowrap;
}

.class-type-tab.active {
  background: var(--light-moss);
  color: var(--rifle-green);
  box-shadow: 0 4px 15px rgba(192, 213, 174, 0.3);
}

.class-type-tab:hover:not(.active) {
  background: rgba(192, 213, 174, 0.2);
}

/* Pricing Cards Container */
.pricing-cards-container {
  position: relative;
  overflow: visible;
  min-height: auto;
  padding: 60px 0 80px 0;
}

/* Card Navigation */
.card-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  position: relative;
  min-height: 500px;
}

.nav-arrow {
  background: rgba(192, 213, 174, 0.1);
  border: 2px solid var(--light-moss);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
  color: var(--rifle-green);
  font-size: 1.2rem;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.nav-arrow.prev {
  left: 15px;
}

.nav-arrow.next {
  right: 15px;
}

.nav-arrow:hover {
  background: var(--light-moss);
  color: var(--rifle-green);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(192, 213, 174, 0.3);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pricing-cards-viewport {
  width: 1140px; /* Exactly 3 cards: (350px × 3) + (30px gap × 2) = 1140px */
  max-width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  margin: 0 auto;
  /* Ensure no content leaks outside */
  contain: layout style;
  isolation: isolate;
  /* Additional clipping protection */
  clip-path: inset(0);
}

.pricing-cards-set {
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
  /* Ensure proper positioning */
  position: relative;
  left: 0;
}

.pricing-cards-set:not(.active) {
  display: none;
}

/* Individual Pricing Cards */
.pricing-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  border: 2px solid rgba(192, 213, 174, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
  opacity: 0;
  box-shadow: none;
  min-height: 450px;
  height: auto;
  width: 350px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 40px 30px;
}

/* Card Content Styling */
.card-title {
  font-family: 'EmotiveType', serif;
  font-size: 1.8rem;
  color: var(--rifle-green);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.card-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--light-moss);
  text-align: center;
  margin: 20px 0;
  position: relative;
  line-height: 1;
}

.card-price::before {
  content: 'Starting at';
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--rifle-green);
  opacity: 0.7;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.card-desc {
  font-size: 1rem;
  color: var(--rifle-green);
  text-align: center;
  margin-bottom: 30px;
  opacity: 0.8;
  line-height: 1.4;
  font-weight: 500;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.card-features li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--rifle-green);
  line-height: 1.4;
}

.card-features li i {
  color: var(--light-moss);
  margin-right: 12px;
  font-size: 1rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.card-action {
  margin-top: auto;
  text-align: center;
}

.card-action .btn {
  background: var(--rifle-green);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 50px;
  border: 2px solid var(--rifle-green);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  width: 100%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-action .btn:hover {
  background: transparent;
  color: var(--rifle-green);
  border-color: var(--light-moss);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(192,213,174,0.3);
}

.pricing-card.animate {
  transform: translateY(0);
  opacity: 1;
}

.pricing-card:nth-child(1) { transition-delay: 0.1s; }
.pricing-card:nth-child(2) { transition-delay: 0.2s; }
.pricing-card:nth-child(3) { transition-delay: 0.3s; }
.pricing-card:nth-child(4) { transition-delay: 0.4s; }

/* Featured card styling */
.pricing-card.featured {
  border: 2px solid var(--light-moss);
  box-shadow: 0 30px 70px rgba(192, 213, 174, 0.2);
  transform: translateY(0) scale(1.05);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--light-moss);
  color: var(--rifle-green);
  font-size: 0.75rem;
  padding: 8px 20px;
  border-radius: 0 0 15px 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(192, 213, 174, 0.3);
  z-index: 10;
}

.pricing-card.featured .card-title {
  margin-top: 20px;
}

.pricing-card.featured.animate {
  transform: translateY(0) scale(1.05);
}

.pricing-card.featured:hover {
  transform: translateY(-15px) scale(1.05);
}

.pricing-card.featured .card-action .btn {
  background: var(--light-moss);
  color: var(--rifle-green);
  border-color: var(--light-moss);
}

.pricing-card.featured .card-action .btn:hover {
  background: var(--rifle-green);
  color: var(--white);
  border-color: var(--rifle-green);
}

/* Luxury hover effects */
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(192, 213, 174, 0.08), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

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

.pricing-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
  border-color: var(--light-moss);
}

.pricing-card:hover .card-title {
  color: var(--light-moss);
  transform: translateY(-2px);
}

.pricing-card:hover .card-price {
  transform: translateY(-2px);
}

.pricing-card:hover .card-features li i {
  transform: scale(1.1);
}

/* Premium badge */
.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--light-moss);
  color: var(--rifle-green);
  font-size: 0.75rem;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(192, 213, 174, 0.3);
  z-index: 10;
}

/* Responsive design for pricing */
@media (max-width: 1200px) {
  .pricing-cards-container {
    padding: 50px 0 70px 0;
  }
  
  .card-navigation {
    min-height: 400px;
    gap: 30px;
    position: relative;
  }
  
  .pricing .section-title h2 {
    font-size: 2.8rem;
  }
  
  .pricing-card {
    width: 320px;
    min-height: 400px;
    padding: 35px 25px;
  }
  
  .card-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  .card-price {
    font-size: 2.6rem;
    margin: 15px 0;
  }
  
  .card-desc {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }
  
  .card-features li {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .card-action .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  
  .pricing-cards-viewport {
    width: 1020px; /* (320px × 3) + (30px gap × 2) = 1020px for 3 cards */
  }
  
  .nav-arrow {
    width: 48px;
    height: 48px;
  }
  
  .nav-arrow.prev {
    left: 12px;
  }
  
  .nav-arrow.next {
    right: 12px;
  }
}

@media (min-width: 992px) {
  .pricing-cards-viewport {
    width: 1140px; /* 3 cards on desktop */
  }
  
  .card-navigation {
    position: relative;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .pricing-cards-viewport {
    width: 1020px; /* (320px × 3) + (30px gap × 2) = 1020px for smaller 3-card layout */
  }
  
  .pricing-card {
    width: 320px;
  }
  
  .nav-arrow {
    width: 48px;
    height: 48px;
  }
  
  .nav-arrow.prev {
    left: 12px;
  }
  
  .nav-arrow.next {
    right: 12px;
  }
}

@media (max-width: 991px) and (min-width: 769px) {
  .pricing-cards-viewport {
    width: 680px !important; /* (320px × 2) + (30px gap × 1) = 670px + padding = 680px for 2 cards */
  }
  
  .card-navigation {
    position: relative;
  }
  
  .nav-arrow {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
  
  .nav-arrow.prev {
    left: 10px;
  }
  
  .nav-arrow.next {
    right: 10px;
  }
  
  .pricing-card {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .pricing {
    padding: 120px 0 140px 0;
  }
  
  .pricing-cards-container {
    padding: 40px 0 60px 0;
  }
  
  .card-navigation {
    min-height: 380px;
    gap: 20px;
    position: relative;
  }
  
  .pricing-cards-set {
    gap: 20px;
  }
  
  .pricing-card {
    width: 300px;
    min-height: 380px;
    padding: 30px 20px;
  }
  
  .card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .card-price {
    font-size: 2.4rem;
    margin: 15px 0;
  }
  
  .card-price::before {
    font-size: 0.7rem;
    top: -18px;
  }
  
  .card-desc {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }
  
  .card-features li {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  
  .card-features li i {
    margin-right: 10px;
  }
  
  .card-action .btn {
    padding: 12px 25px;
    font-size: 0.85rem;
  }
  
  .pricing-cards-viewport {
    width: 320px !important; /* Show only 1 card on mobile */
    max-width: 100%;
  }
  
  .nav-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .nav-arrow.prev {
    left: 8px;
  }
  
  .nav-arrow.next {
    right: 8px;
  }
  
  .pricing .section-title h2 {
    font-size: 2.4rem;
  }
  
  .pricing .section-title {
    margin-bottom: 60px;
  }
  
  .class-type-nav {
    margin-bottom: 40px;
  }
  
  .class-type-tabs {
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    justify-content: center;
  }
  
  .class-type-tab {
    padding: 12px 20px;
    text-align: center;
    flex: 1;
    min-width: 120px;
  }
  
  .pricing-card-header,
  .pricing-card-content {
    padding: 25px 20px;
  }
  
  .pricing-card.featured .pricing-card-header {
    padding-top: 45px;
  }
  
  .pricing-card h3 {
    font-size: 1.6rem;
  }
  
  .pricing-card .price {
    font-size: 2.4rem;
  }
}

@media (max-width: 576px) {
  .pricing .section-title h2 {
    font-size: 2rem;
  }
  
  .pricing-cards-container {
    padding: 30px 0 50px 0;
  }
  
  .card-navigation {
    min-height: 350px;
    gap: 15px;
    position: relative;
  }
  
  .pricing-cards-set {
    gap: 15px;
    flex-wrap: nowrap;
    width: max-content;
  }
  
  .pricing-card {
    min-width: 260px;
    max-width: 260px;
    min-height: 360px;
    flex-shrink: 0;
    padding: 25px 18px;
  }
  
  .card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  
  .card-price {
    font-size: 2.2rem;
    margin: 12px 0;
  }
  
  .card-price::before {
    font-size: 0.65rem;
    top: -16px;
  }
  
  .card-desc {
    font-size: 0.8rem;
    margin-bottom: 18px;
  }
  
  .card-features li {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }
  
  .card-features li i {
    margin-right: 8px;
    font-size: 0.9rem;
  }
  
  .card-action .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .pricing-cards-viewport {
    width: 280px !important; /* Show only 1 card on very small screens */
    max-width: 100%;
    overflow: hidden;
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .nav-arrow.prev {
    left: 5px;
  }
  
  .nav-arrow.next {
    right: 5px;
  }
  
  .pricing-card-header {
    padding: 20px 15px 15px;
  }
  
  .pricing-card.featured .pricing-card-header {
    padding-top: 35px;
  }
  
  .badge {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 5px 12px;
  }
  
  .pricing-card-content {
    padding: 0 15px 25px;
  }
  
  .class-type-tabs {
    flex-direction: column;
    gap: 8px;
  }
  
  .class-type-tab {
    font-size: 0.9rem;
    padding: 10px 15px;
    flex: none;
    width: 100%;
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .pricing-card h3 {
    font-size: 1.4rem;
  }
  
  .pricing-card .price {
    font-size: 2.2rem;
  }
}
