/* ========== CHANGED: Professional blue footer matching nav ========== */
.site-footer {
  background-color: #1A3A52;
  color: white;
  padding: 20px 30px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border-top: 3px solid #2C5F8D;
}

/* ========== ADDED: Language selector styling - POSITIONED FIRST ========== */
.footer-languages {
  text-align: center;
  padding: 0 0 15px 0;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

.footer-languages a {
  color: white;
  text-decoration: none;
  padding: 5px 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 4px;
}

.footer-languages a:hover {
  color: #7BA7D1;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-languages .separator {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 5px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
}

.footer-left a,
.footer-right a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-left a svg {
  width: 24px;
  height: 24px;
  stroke: white;
  transition: stroke 0.3s ease;
}

.footer-left a:hover svg {
  stroke: #7BA7D1;
}

.footer-right {
  white-space: nowrap;
  font-weight: 600;
}

.footer-right a:hover {
  text-decoration: underline;
  color: #7BA7D1;
}

.footer-center {
  flex: 1;
  text-align: center;
  font-weight: 400;
  font-size: 14px;
}

/* FAQ Section */
.faq-section {
    margin-top: 0.5rem;
}

.faq-section details {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.faq-section summary {
    font-weight: 600;
    cursor: pointer;
}

/* Unified accordion styling for all accordion blocks (Fun facts, FAQ, etc.) */
.accordion {
    max-width: 800px;
    margin: 0.5rem auto 0; /* Reduced from 1.5rem to 0.5rem */
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.accordion-header button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border: none;
    background: #f7f7f7;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Small arrow visual indicator */
.accordion-header button::after {
    content: "▾";
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.accordion-header button[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.accordion-header button:focus {
    outline: 2px solid #aaa;
    outline-offset: 2px;
}

.accordion-header button[aria-expanded="true"] {
    background: #ececec;
}

.accordion-panel {
    padding: 0.75rem 1rem 1rem;
}

/* Reduced margin for sections containing accordions */
.fun-facts-section,
.faq-accordion-section {
    margin-top: 10px; /* Reduced from 1.5rem to almost nothing */
    margin-bottom: 1.5rem;
}

/* RESPONSIVE PART */
@media (max-width: 768px) {
  .footer-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .footer-left,
  .footer-right,
  .footer-center {
    flex: 1 1 100%;
    margin: 5px 0;
  }

  .footer-left {
    order: 1;
  }

  .footer-center {
    order: 2;
  }

  .footer-right {
    order: 3;
  }

  .footer-left a,
  .footer-right a {
    margin: 0 8px;
  }
  
  .footer-languages {
    font-size: 12px;
  }
  
  .footer-languages a {
    padding: 4px 6px;
  }
}

@media (max-width: 400px) {
  .footer-left a svg {
    width: 20px;
    height: 20px;
  }

  .footer-left a,
  .footer-right a {
    margin: 0 6px;
  }

  .site-footer {
    padding: 15px;
    font-size: 13px;
  }
  
  .footer-languages {
    font-size: 11px;
  }
  
  .footer-languages .separator {
    margin: 0 3px;
  }
}
