.footer {
  background-color: var(--darker-bg);
  color: var(--text-dark);
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(66, 180, 255, 0.08), transparent 60%),
              radial-gradient(circle at bottom left, rgba(255, 107, 107, 0.08), transparent 60%),
              radial-gradient(circle at center, rgba(6, 214, 160, 0.05), transparent 70%);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.logo-coin {
  font-weight: 400;
}

.logo-bff {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-nav-column {
  min-width: 150px;
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-links button {
  color: var(--text-medium);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left; /* Ensure button text aligns like links */
  font-family: inherit; /* Ensure button font matches links */
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--primary-color);
  text-decoration: none;
  padding-left: 5px;
}

/* RTL Support for button padding */
[dir="rtl"] .footer-links button:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer-socials {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.footer-language {
  margin-top: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
}

.copyright {
  color: var(--text-light);
  font-size: 0.9rem;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px var(--shadow-color);
}

/* RTL Support */
[dir="rtl"] .footer-heading::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 50px 0 30px;
  }
  
  .footer-nav {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .footer-nav-column {
    min-width: calc(50% - 20px);
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .footer-nav-column {
    min-width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.faq-container {
  max-width: 900px; /* Increased max-width */
  margin: 50px auto; /* Increased margin */
  padding: 30px; /* Increased padding */
  background: linear-gradient(145deg, #1f1f3d, #1a1a2e); /* Gradient background */
  border-radius: 20px; /* Smoother border radius */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); /* Enhanced shadow */
  color: #e8e8e8; /* Slightly brighter base text color */
}

.faq-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px; /* Increased margin */
  padding-bottom: 25px; /* Increased padding */
  border-bottom: 1px solid #4a4a6e; /* Softer border color */
}

.faq-header-icon {
  font-size: 3rem; /* Larger icon */
  color: #17a2b8; /* Adjusted cyan color */
  margin-right: 20px; /* Increased margin */
  animation: floatIcon 3s infinite ease-in-out; /* New animation */
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.faq-title {
  font-size: 2.8rem; /* Larger title */
  font-weight: 700; /* Bolder */
  color: #ffffff;
  text-shadow: 0 3px 6px rgba(0,0,0,0.4); /* Enhanced text shadow */
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Increased gap */
}

.faq-item {
  background-color: #2c2c54; /* Slightly lighter item background */
  border-radius: 12px; /* Smoother radius */
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease; /* Transition for all properties */
  border-left: 5px solid transparent; /* For hover effect */
}

.faq-item:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 12px 25px rgba(23, 162, 184, 0.3); /* Brighter glow on hover */
  border-left-color: #17a2b8; /* Accent border on hover */
}

.faq-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px; /* Increased padding */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question-header:hover .faq-question {
  color: #17a2b8; /* Highlight question text on hover */
}

.faq-question {
  font-size: 1.3rem; /* Larger question font */
  font-weight: 600;
  color: #f5f5f5;
  margin: 0;
  transition: color 0.3s ease;
}

.faq-icon {
  font-size: 1.8rem; /* Larger icon */
  color: #17a2b8;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy transition */
}

.faq-answer-content {
  padding: 0 25px 25px 25px; /* Consistent padding */
  background-color: #252548; /* Slightly different answer background */
  border-top: 1px solid #4a4a6e;
}

.faq-answer {
  font-size: 1.05rem; /* Slightly larger answer font */
  line-height: 1.7; /* Increased line height */
  color: #d0d0d0;
  margin: 0;
  padding-top: 20px; /* Increased padding */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-container {
    margin: 25px 15px; /* Adjusted margin */
    padding: 20px;
  }

  .faq-header-icon {
    font-size: 2.5rem;
  }

  .faq-title {
    font-size: 2.2rem;
  }

  .faq-question {
    font-size: 1.15rem;
  }

  .faq-icon {
    font-size: 1.5rem;
  }

  .faq-answer {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .faq-title {
    font-size: 1.8rem;
  }
  .faq-question {
    font-size: 1rem;
  }
  .faq-header-icon {
    font-size: 2rem;
    margin-right: 10px;
  }
}

