/* Enhanced FAQ Section Styles */

/* FAQ Item Hover Effects */
.faq-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.faq-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0, 237, 135, 0.15) !important;
  border-color: #00ED87 !important;
}

/* FAQ Button Hover */
.faq-button:hover {
  background: rgba(0, 237, 135, 0.02) !important;
}

.faq-button:hover .icon-wrapper {
  background: rgba(0, 237, 135, 0.2) !important;
  transform: scale(1.1);
}

.faq-button:hover .toggle-icon {
  background: #00ED87 !important;
  transform: rotate(90deg);
}

.faq-button:hover .toggle-icon i {
  color: white !important;
}

/* Active/Expanded State */
.faq-button:not(.collapsed) {
  background: rgba(0, 237, 135, 0.05) !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.faq-button:not(.collapsed) .toggle-icon {
  background: #00ED87 !important;
  transform: rotate(45deg) !important;
}

.faq-button:not(.collapsed) .toggle-icon i {
  color: white !important;
}

.faq-button:not(.collapsed) .icon-wrapper {
  background: rgba(0, 237, 135, 0.2) !important;
}

/* Active FAQ Item Border */
.faq-item:has(.faq-button:not(.collapsed)) {
  border-color: #00ED87 !important;
  box-shadow: 0 4px 20px rgba(0, 237, 135, 0.15) !important;
}

/* Smooth Collapse Animation */
.accordion-collapse {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* FAQ Body Animation */
.faq-body {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon Wrapper Transitions */
.icon-wrapper {
  transition: all 0.3s ease !important;
}

.toggle-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.toggle-icon i {
  transition: transform 0.3s ease !important;
}

/* CTA Buttons Hover */
.cta-btn {
  transition: all 0.3s ease !important;
}

.cta-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.cta-btn:first-child:hover {
  background: #00d47a !important;
  box-shadow: 0 8px 20px rgba(0, 237, 135, 0.4) !important;
}

.cta-btn:last-child:hover {
  background: #f8f9fa !important;
}

/* FAQ CTA Card Animation */
.faq-cta {
  animation: fadeIn 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.faq-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Decorative Circles Animation */
.circle-decoration {
  animation: float 8s ease-in-out infinite;
}

.circle-decoration:nth-child(2) {
  animation-delay: 2s;
  animation-duration: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .faq-button {
    font-size: 16px !important;
    padding: 20px 20px !important;
  }
  
  .question-text {
    gap: 12px !important;
  }
  
  .icon-wrapper {
    width: 36px !important;
    height: 36px !important;
  }
  
  .icon-wrapper i {
    font-size: 16px !important;
  }
  
  .toggle-icon {
    width: 28px !important;
    height: 28px !important;
  }
  
  .toggle-icon i {
    font-size: 14px !important;
  }
  
  .faq-body {
    padding: 0 20px 20px 68px !important;
    font-size: 15px !important;
  }
  
  .faq-cta {
    padding: 30px 20px !important;
  }
  
  .faq-cta h3 {
    font-size: 24px !important;
  }
  
  .cta-buttons {
    flex-direction: column !important;
  }
  
  .cta-btn {
    width: 100%;
    justify-content: center !important;
  }
}

/* Focus States for Accessibility */
.faq-button:focus {
  outline: 2px solid #00ED87 !important;
  outline-offset: 2px !important;
}

.cta-btn:focus {
  outline: 2px solid white !important;
  outline-offset: 2px !important;
}

/* Smooth Scrolling for Anchor Links */
html {
  scroll-behavior: smooth;
}

/* Badge Label Animation */
.badge-label {
  animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Header Animation */
.section-header h2 {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-header p {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Staggered FAQ Item Animation */
.faq-item:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.faq-item:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.faq-item:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.faq-item:nth-child(4) {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.faq-item:nth-child(5) {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.faq-item:nth-child(6) {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.faq-item:nth-child(7) {
  animation: fadeInUp 0.6s ease-out 0.7s both;
}

/* Prevent Animation on Page Load for Better Performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ===== Certificate Section Enhancements ===== */

/* Certificate List Item Hover */
.certificate-section ul li {
  transition: all 0.3s ease !important;
}

.certificate-section ul li:hover {
  background: rgba(255,255,255,0.1) !important;
  transform: translateX(8px);
  padding-left: 20px !important;
}

.certificate-section ul li:hover .check-icon {
  background: #00ED87 !important;
  transform: scale(1.1);
}

.certificate-section ul li:hover .check-icon i {
  color: #0b3c3f !important;
}

/* Certificate CTA Button Hover */
.cert-cta-btn:hover {
  background: #00d47a !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 237, 135, 0.5) !important;
}

.cert-cta-btn:hover i {
  transform: translateX(5px);
}

.cert-cta-btn i {
  transition: transform 0.3s ease;
}

/* Certificate Image Hover Effect */
.certificate-image-wrapper img {
  transition: all 0.5s ease !important;
}

.certificate-image-wrapper:hover img {
  transform: perspective(1000px) rotateY(0deg) scale(1.05) !important;
  box-shadow: 0 25px 70px rgba(0,0,0,0.5) !important;
}

/* Certificate Glow Animation */
.cert-glow {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Certificate Section Decorative Circles */
.cert-bg-decoration .circle-decoration {
  animation: float 8s ease-in-out infinite;
}

.cert-bg-decoration .circle-decoration:nth-child(2) {
  animation-delay: 2s;
  animation-duration: 10s;
}

.cert-bg-decoration .circle-decoration:nth-child(3) {
  animation-delay: 4s;
  animation-duration: 12s;
}

/* Certificate Badge Animation */
.certificate-section .badge-label {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Certificate Heading Animation */
.certificate-section h2 {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Certificate List Items Staggered Animation */
.certificate-section ul li:nth-child(1) {
  animation: slideInLeft 0.6s ease-out 0.3s both;
}

.certificate-section ul li:nth-child(2) {
  animation: slideInLeft 0.6s ease-out 0.4s both;
}

.certificate-section ul li:nth-child(3) {
  animation: slideInLeft 0.6s ease-out 0.5s both;
}

.certificate-section ul li:nth-child(4) {
  animation: slideInLeft 0.6s ease-out 0.6s both;
}

.certificate-section ul li:nth-child(5) {
  animation: slideInLeft 0.6s ease-out 0.7s both;
}

/* Certificate Image Animation */
.certificate-image-wrapper {
  animation: fadeInRight 0.8s ease-out 0.4s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Certificate CTA Button Animation */
.cert-cta-btn {
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* Check Icon Transition */
.check-icon {
  transition: all 0.3s ease !important;
}

/* Responsive Certificate Section */
@media (max-width: 768px) {
  .certificate-section h2 {
    font-size: 28px !important;
  }
  
  .certificate-section ul li {
    padding: 10px !important;
    font-size: 15px !important;
  }
  
  .check-icon {
    width: 24px !important;
    height: 24px !important;
  }
  
  .check-icon i {
    font-size: 12px !important;
  }
  
  .cert-cta-btn {
    width: 100%;
    justify-content: center !important;
    padding: 14px 24px !important;
  }
  
  .certificate-image-wrapper img {
    transform: perspective(1000px) rotateY(0deg) !important;
  }
}

/* Focus State for Certificate CTA */
.cert-cta-btn:focus {
  outline: 2px solid #00ED87 !important;
  outline-offset: 3px !important;
}
