/**
 * RK Spordikool Section Backgrounds & Wave Transitions
 * Softer gradients and gentle wave styling
 */

/* Section Background Gradients */
.section--green {
  background: linear-gradient(180deg, #2ac155 0%, #26b24a 40%, #22a743 100%);
  padding-bottom: 0px;
}

.section--yellow {
  background: linear-gradient(180deg, #ffe65b 0%, var(--rk-yellow) 60%, #f3c400 100%);
  padding-bottom: 0px;
}

/* Apply gradients to existing sections */
.services-section {
  background: linear-gradient(180deg, #ffe65b 0%, var(--rk-yellow) 60%, #f3c400 100%);
  padding-bottom: 0px;
}

.about-section {
  background: linear-gradient(180deg, #2ac155 0%, #26b24a 40%, #22a743 100%);
  padding-bottom: 0px;
}

.why-choose-section {
  background: linear-gradient(180deg, #2ac155 0%, #26b24a 40%, #22a743 100%);
  padding-bottom: 0px;
}

.contact-section {
  background: linear-gradient(180deg, #ffe65b 0%, var(--rk-yellow) 60%, #f3c400 100%);
  padding-bottom: 0px;
}

/* Wave Divider Enhancements */
.section-divider svg path {
  filter: drop-shadow(var(--rk-shadow-sm));
}

.wave-transition-top,
.wave-transition-bottom,
.wave-transition-top-dual,
.wave-transition-bottom-dual {
  position: relative;
  z-index: 1;
}

.wave-transition-top svg,
.wave-transition-bottom svg,
.wave-transition-top-dual svg,
.wave-transition-bottom-dual svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--rk-shadow-sm));
  transition: transform var(--rk-time-fast) var(--rk-ease);
}

/* Responsive Wave Alignment */
@media (min-width: 1440px) {
  .wave-transition-top svg,
  .wave-transition-bottom svg,
  .wave-transition-top-dual svg,
  .wave-transition-bottom-dual svg {
    max-width: 1440px;
    margin: 0 auto;
  }
}

@media (min-width: 1920px) {
  .wave-transition-top svg,
  .wave-transition-bottom svg,
  .wave-transition-top-dual svg,
  .wave-transition-bottom-dual svg {
    max-width: 1920px;
    margin: 0 auto;
  }
}

/* Mobile Wave Optimization */
@media (max-width: 768px) {
  .wave-transition-top svg,
  .wave-transition-bottom svg,
  .wave-transition-top-dual svg,
  .wave-transition-bottom-dual svg {
    height: 60px;
    min-height: 60px;
  }

  .wave-transition-bottom-dual svg:first-child {
    margin-bottom: -60px;
  }

  .gallery-section .wave-transition-bottom-dual svg:first-child {
    margin-bottom: -58px;
  }
}

/* Enhanced Wave Transitions for Better Alignment */
.wave-transition-bottom-dual svg:first-child {
  margin-bottom: -120px;
  transform-origin: center bottom;
}

.wave-transition-bottom-dual svg:last-child {
  transform-origin: center top;
}

/* Gallery Section Specific Wave Enhancements */
.gallery-section .wave-transition-bottom-dual svg:first-child {
  margin-bottom: -118px;
  transform: scaleY(-1);
  filter: drop-shadow(var(--rk-shadow-sm));
}

.gallery-section .wave-transition-bottom-dual svg:last-child {
  filter: drop-shadow(var(--rk-shadow-sm));
}

/* Smooth Section Transitions */
.section--green,
.section--yellow {
  position: relative;
  transition: background var(--rk-time-fast) var(--rk-ease);
}

/* Gradient Overlay for Better Text Readability */
.section--green::before,
.section--yellow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.section--green > *,
.section--yellow > * {
  position: relative;
  z-index: 2;
}

/* FAQ Section Styles */
.faq-section {
  background: #f8f9fa;
  padding: 5rem 0;
}

/* FAQ Accordion - Hide browser default disclosure markers */
.faq-item details {
  list-style: none !important;
}

.faq-item details > summary {
  list-style: none !important;
  list-style-type: none !important;
}

.faq-item summary {
  list-style: none !important;
  list-style-type: none !important;
}

.faq-item summary::-webkit-details-marker {
  display: none !important;
}

.faq-item summary::marker {
  display: none !important;
  content: none !important;
}

.faq-item summary::-moz-list-bullet {
  list-style-type: none !important;
  display: none !important;
}

.faq-item details > summary::-webkit-details-marker {
  display: none !important;
}

/* Additional fallback for stubborn browsers */
.faq-item details summary::before {
  display: none !important;
}

.faq-item details summary::after {
  display: none !important;
}

.faq-item details summary {
  outline: none;
}

/* Force override any inherited styles */
.faq-item * {
  list-style: none !important;
}

.faq-item summary * {
  list-style: none !important;
}

/* FAQ Item Styling */
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: white;
}

.faq-item summary {
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rk-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  min-height: 60px;
  gap: 1rem;
}

.faq-item summary:hover {
  background-color: #f8f9fa;
}

.faq-item summary span:first-child {
  flex: 1;
  line-height: 1.3;
  display: flex;
  align-items: center;
  min-height: 28px;
}

.faq-item .chevron {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  color: var(--rk-blue);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  align-self: flex-start;
  margin-top: 2px;
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-color);
  line-height: 1.6;
}

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