.site-footer {
  background-color: #1a1a1a;
  color: #eee;
  padding: 40px 20px 20px;
  font-family: sans-serif;
  border-radius: 18px;
  border: 1px solid var(--border-dark);
}

body.light-theme .site-footer {
  background-color: #e2e8f0;
  color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
  justify-content: center;
}

.footer-section {
  min-width: 120px;
}

@media (min-width: 1100px) {
  .footer-container {
    justify-content: center;
    column-gap: clamp(34px, 5vw, 92px);
    row-gap: 30px;
  }

  .footer-section {
    flex: 0 1 clamp(150px, 12vw, 230px);
  }

  .footer-group-label {
    text-align: center;
  }
}

.footer-group-label {
  flex-basis: 100%;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 10px;
  margin-top: 4px;
  text-align: center;
  width: 100%;
}

.footer-group-label span {
  display: inline-block;
}

body.light-theme .footer-group-label {
  color: #475569;
  border-top-color: rgba(100, 116, 139, 0.35);
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
  cursor: pointer;
  position: relative;
}

body.light-theme .footer-section h4 {
  color: #0f172a;
}

.footer-section h4::after {
  content: '+';
  position: absolute;
  right: 0;
  transition: transform 0.3s;
}

.footer-section.open h4::after {
  transform: rotate(45deg);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  transition: max-height 0.3s ease;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

body.light-theme .footer-section ul li a {
  color: #334155;
}

.footer-section ul li a:hover {
  color: #f39c12;
}

body.light-theme .footer-section ul li a:hover {
  color: #0284c7;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

body.light-theme .footer-bottom {
  border-top-color: rgba(100, 116, 139, 0.35);
  color: #475569;
}

.footer-logo {
  font-weight: bold;
  margin-bottom: 8px;
}
.share-icons {
  display: flex;
  gap: 12px;
  padding-bottom: 10px;
  justify-content: center;
}

.share-icons a {
  font-size: 22px;
  color: #444;
  transition: transform .2s, color .2s;
}

.share-icons a:hover {
  transform: scale(1.2);
  color: #0073ff;
}

/* Footer */
.footer-accordion-toggle {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: #f39c12;
    padding: 0;
    font: inherit;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

body.light-theme .footer-accordion-toggle {
    color: #f39c12;
}

.footer-accordion-toggle:hover {
    color: #f39c12;
}

body.light-theme .footer-accordion-toggle:hover {
    color: #0284c7;
}

.footer-accordion-body {
    display: none;
    margin-top: 6px;
    /* color: #67e8f9; */
    color: #f39c12;
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: left;
    max-width: 200px;
}

.footer-section ul li a.donation-link {
  color: inherit;
  display: inline-block;
  white-space: nowrap;
}

.footer-section ul li a.donation-link:hover {
    /* font-weight: bold; */
}

.footer-section.support-us-section.support-us-expanded {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}

.footer-section.support-us-section.support-us-expanded .footer-accordion-body {
  max-width: none;
}


body.light-theme .footer-accordion-body {
    color: #0284c7;
}

.footer-accordion.open .footer-accordion-body {
    display: block;
}

.conversion-more .footer-accordion-body a {
  display: block;
  margin-bottom: 6px;
  color: #ccc;
  text-decoration: none;
}

.conversion-more .footer-accordion-body a:last-child {
  margin-bottom: 0;
}

.conversion-more .footer-accordion-body {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  max-width: none;
  margin-top: 0;
  margin-bottom: 6px;
}

.conversion-more .footer-accordion-toggle::after {
  content: " \25BE";
  font-size: 0.75em;
}

.conversion-more.open .footer-accordion-toggle::after {
  content: " \25B4";
}

body.light-theme .conversion-more .footer-accordion-body a {
  color: #334155;
}

body.light-theme .conversion-more .footer-accordion-body a:hover {
  color: #0284c7;
}

@media (min-width: 791px) {
  .footer-section h4::after {
    content: none;
  }

  .footer-section.support-us-section.support-us-expanded {
    flex: 0 0 auto;
  }
}

@media (max-width: 790px) {


  .footer-container {
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
  }

  .footer-group-label {
    margin-top: 0;
    padding-top: 8px;
  }

  .footer-section ul {
    max-height: 0;
    overflow: hidden;
  }

  .footer-section.open ul {
    max-height: 500px;
  }

  .conversion-more .footer-accordion-toggle {
    display: none;
  }

  .conversion-more .footer-accordion-body {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
  }
}
