/* Match Play Specific Styles */

/* Timeline Layout */
.match-play-timeline {
  position: relative;
  padding: 2rem 0;
}

.match-play-timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50px;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-teal), var(--secondary-blue));
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

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

.timeline-marker {
  position: absolute;
  left: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-medium);
}

.timeline-content h3 {
  color: var(--primary-teal);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.timeline-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1.5rem;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
  border-radius: 12px;
  transition: transform 0.5s ease;
  display: block;
  margin: 0 auto;
}

.timeline-item:hover .timeline-image img {
  transform: scale(1.05);
}

.timeline-image img.focus-left {
  object-fit: cover;
  object-position: 0% 10%;
  background: none;
}

/* Format Cards */
.format-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.format-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--neutral-light);
}

.format-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.format-card.featured {
  border: 1px solid var(--primary-teal);
  transform: scale(1.03);
}

.format-card.featured:hover {
  transform: scale(1.03) translateY(-5px);
}

.popular-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-teal);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: bold;
  border-bottom-left-radius: var(--radius-sm);
  z-index: 2;
}

.format-card-header {
  padding: 1.5rem;
  background: linear-gradient(to right, var(--primary-teal-light), rgba(255, 255, 255, 0.9));
  text-align: center;
}

.format-card-header i {
  font-size: 2.5rem;
  color: var(--primary-teal);
  margin-bottom: 0.5rem;
}

.format-card-header h3 {
  color: var(--primary-teal);
  margin: 0;
}

.format-card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.format-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.format-features li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--neutral-light);
  display: flex;
  align-items: center;
}

.format-features li:before {
  content: "•";
  color: var(--primary-teal);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.feature-highlight {
  font-weight: bold;
  color: var(--primary-teal);
}

.format-schedule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--neutral-lightest);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.schedule-day {
  font-weight: bold;
}

.schedule-time {
  color: var(--neutral-dark);
}

.format-card-footer {
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--neutral-light);
}

/* Success Stories Carousel */
.success-stories-carousel {
  position: relative;
  margin: 3rem 0;
  overflow: hidden;
}

.story-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.story-slide.active {
  display: block;
}

.story-content {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  position: relative;
}

.story-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.story-quote:before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--primary-teal);
  line-height: 1;
  font-family: serif;
}

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

.author-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 3px solid var(--primary-teal);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0 0 0.25rem;
  color: var(--primary-teal);
}

.author-info p {
  margin: 0 0 0.5rem;
  color: var(--neutral-dark);
  font-size: 0.9rem;
}

.author-progress {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--neutral-dark);
}

.progress-arrow {
  color: var(--primary-teal);
  margin: 0 0.5rem;
  font-weight: bold;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.prev-button,
.next-button {
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-teal);
  box-shadow: var(--shadow-small);
  transition: all 0.3s ease;
}

.prev-button:hover,
.next-button:hover {
  background: var(--primary-teal);
  color: white;
}

.carousel-indicators {
  display: flex;
  margin: 0 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neutral-light);
  margin: 0 0.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary-teal);
  transform: scale(1.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Dynamic CTA Section */
.dynamic-cta {
  position: relative;
  margin: 4rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1625493845931-a8ebfee60d01?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  filter: brightness(0.4);
  z-index: 1;
}

.cta-content {
  position: relative;
  padding: 3rem;
  color: white;
  z-index: 2;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-actions {
  margin: 2rem 0;
}

.btn-large {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  margin: 0 0.5rem;
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cta-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-benefit {
  display: flex;
  align-items: center;
  margin: 0 1.5rem;
  font-size: 1.1rem;
}

.cta-benefit i {
  margin-right: 0.5rem;
  color: var(--primary-teal-light);
}

/* Uniform Call-to-Action Section */
.uniform-cta-section {
  margin: 5rem 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.uniform-cta-section .section-title {
  color: var(--primary-teal);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.uniform-cta-section .section-subtitle {
  color: var(--neutral-dark);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.cta-card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-small);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 4px solid var(--primary-teal);
}

.cta-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.cta-card-icon {
  background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-card-icon i {
  color: white;
  font-size: 2rem;
}

.cta-card h3 {
  color: var(--primary-teal);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.cta-card p {
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  flex-grow: 1;
}

.cta-card .btn {
  margin-top: auto;
}

.cta-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.cta-bottom p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-teal);
  color: var(--primary-teal);
}

.btn-outline-primary:hover {
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
}

/* Responsive styles */
@media (max-width: 992px) {
  .match-play-timeline:before {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .format-cards {
    grid-template-columns: 1fr;
  }
  
  .format-card.featured {
    transform: none;
  }
  
  .format-card.featured:hover {
    transform: translateY(-5px);
  }
  
  .cta-content {
    padding: 2rem 1.5rem;
  }
  
  .cta-benefit {
    margin: 0.5rem;
  }
  
  .uniform-cta-section {
    padding: 2rem;
  }
  
  .cta-card {
    max-width: 100%;
  }
  
  /* Fix for dynamic CTA text on tablet */
  .dynamic-cta .cta-content p {
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .dynamic-cta .cta-content h2 {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 576px) {
  .cta-actions {
    display: flex;
    flex-direction: column;
  }
  
  .btn-large {
    margin: 0.5rem 0;
  }
  
  .timeline-image {
    height: 150px;
  }
  
  .story-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-image {
    margin: 0 auto 1rem;
  }
  
  .uniform-cta-section .section-title {
    font-size: 1.8rem;
  }
  
  .cta-card-container {
    gap: 1.5rem;
  }
  
  /* Fix for dynamic CTA text on mobile */
  .dynamic-cta .cta-content {
    padding: 2rem 1.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .dynamic-cta .cta-content p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0 !important;
    line-height: 1.5 !important;
  }
  
  .dynamic-cta .cta-content h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .dynamic-cta .cta-actions {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
  }
}

.dynamic-cta, .dynamic-cta .cta-content, .dynamic-cta .cta-content * {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #18404a !important;
  z-index: 9999 !important;
  position: relative !important;
}
.dynamic-cta .cta-background {
  filter: brightness(0.8) !important;
  opacity: 0.5 !important;
  z-index: 1 !important;
}
.dynamic-cta {
  /* border: 3px dashed red !important; */
}
.dynamic-cta .cta-content p {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  color: #18404a !important;
  background: transparent !important;
  font-size: 1.2rem !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
  line-height: 1.6 !important;
} 