/* Footer accordion styles aligned with Avrasya Ticaret */
@media (max-width: 991.98px) {
  #page-footer .site-footer__widgets .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #page-footer .footer__menu {
    padding: 0 16px;
    margin-bottom: 0;
    border-bottom: 1px solid #dce2ee;
  }

  #page-footer .footer__menu:last-of-type {
    border-bottom: none;
  }

  #page-footer .footer__menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0b5ed7;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
    /* Mobile Accessibility: Minimum touch target */
    min-height: 48px;
  }

  #page-footer .footer__menu-title span:first-child {
    flex: 1;
  }

  #page-footer .footer__menu-title:focus-visible {
    outline: 2px solid #0b5ed7;
    outline-offset: 2px;
  }

  #page-footer .footer__menu-title:hover {
    color: #094ab0;
  }

  #page-footer .footer__accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 16px;
    border-radius: 50%;
    background: #eef3ff;
    border: 1px solid #d1d8e6;
    transition: background-color 0.2s ease;
  }

  #page-footer .footer__menu-title:hover .footer__accordion-icon {
    background: #e2e9ff;
  }

  #page-footer .footer__accordion-icon::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #0b5ed7;
    border-bottom: 2px solid #0b5ed7;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  #page-footer .footer__menu-title.active {
    color: #083b8f;
  }

  #page-footer .footer__menu-title.active .footer__accordion-icon::before {
    transform: rotate(-135deg);
  }

  /* ✅ CRITICAL FIX: Crawler-visible accordion - Always open on mobile */
  #page-footer .footer__menu-content {
    max-height: none;
    overflow: visible;
    opacity: 1;
    padding: 12px 0 18px;
    display: block;
  }

  #page-footer .footer-links__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #page-footer .footer-links__item + .footer-links__item {
    margin-top: 10px;
  }

  #page-footer .footer-links__link {
    color: #4a4f5a;
    text-decoration: none;
    font-size: 15px;
  }

  #page-footer .footer-links__link:hover {
    color: #0b5ed7;
  }

  #page-footer .footer-contacts__text,
  #page-footer .footer-newsletter__text {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (min-width: 992px) {
  #page-footer .footer__menu {
    padding-right: 24px;
    border-bottom: none;
  }

  #page-footer .footer__menu-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin-bottom: 18px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #0b5ed7;
    cursor: default;
  }

  #page-footer .footer__accordion-icon {
    display: none;
  }

  #page-footer .footer__menu-content {
    display: block !important;
    max-height: none;
    opacity: 1;
    padding: 0;
  }
}

/* ✅ Crawler-Only Legal Links */
.footer-legal-crawler-only {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer-legal-crawler-only a {
    color: inherit;
    text-decoration: underline;
}
