a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:has(img):hover,
a:has(img):active {
  background-color: transparent;
  filter: none;
  transform: none;
}

a:has(img):focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.contribute-area {
  background: #fff;
  border: 2px solid #550000;
  box-sizing: border-box;
}

.contribute-area .contribute-btn {
  background: #eab308 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  text-shadow: none !important;
}

.contribute-area .contribute-btn:hover,
.contribute-area .contribute-btn:focus,
.contribute-area .contribute-btn:focus-visible {
  background: #ca8a04 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  text-shadow: none !important;
}

.contribute-banner img,
#contribute-hero-banner {
  border: 2px solid #65331f !important;
  padding: 5px;
  background: #fff;
  border-radius: 25px !important;
  box-sizing: border-box;
}

.static-image-grid {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 1140px;
  margin: 20px auto;
  padding: 0 10px;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.static-image-grid a {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  transition: none;
  overflow: hidden;
  color: #550000;
}

.static-image-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
}

.static-image-grid .form-card {
  flex: none;
}

.static-image-grid .form-card:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

#topicTrackGrid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  max-width: 1040px;
  gap: 12px;
  margin: 16px auto;
  overflow: visible;
}

#topicTrackGrid > a {
  grid-column: span 2;
  overflow: visible;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

#topicTrackGrid > a:last-child:nth-child(4n + 1) {
  grid-column: 4 / span 2;
}

#topicTrackGrid img {
  border-radius: 500px;
  background: transparent;
  box-shadow: 0 0 11px #550000;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#formTrackGrid .form-card img {
  box-shadow: 0 0 11px #550000;
}

#topicTrackGrid > a:hover img,
#topicTrackGrid > a:focus-visible img {
  transform: scale(1.07) rotate(2deg);
  filter: drop-shadow(0 7px 9px rgba(85, 0, 0, 0.22));
}

.static-image-grid .label {
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  padding: 6px 2px;
  white-space: normal;
}

footer {
  padding-top: 16px;
}

.footer-grid {
  gap: 14px;
}

.footer-grid h4 {
  margin-bottom: 12px;
}

.footer-grid li {
  margin-bottom: 5px;
}

.footer-grid .contact-list li {
  margin-bottom: 8px;
}

.footer-chat {
  text-align: center;
  padding: 8px 10px;
}

.whatsapp-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366 !important;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 28px;
  font: bold 15px/1.3 Arial, sans-serif;
}

.whatsapp-chat svg {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  padding: 10px;
}

body[data-page="legal"] main .wrap {
  width: calc(100% - 48px);
  margin: auto;
}

.privacy-page .legal-wrap {
  padding: 30px 40px;
}

.refund-page .refund-policy-content {
  width: calc(100% - 48px);
  margin: auto;
}

.team-subtitle-band {
  padding-top: 24px;
  padding-bottom: 28px;
}

.team-titlebar {
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  .static-image-grid {
    gap: 10px;
    padding: 0 10px;
  }

  .static-image-grid .label {
    font-size: 10px;
  }

  #topicTrackGrid {
    gap: 8px;
    padding: 0 8px;
    margin: 12px auto;
  }

  #topicTrackGrid img {
    border-radius: 10px;
  }

  .footer-grid {
    gap: 12px;
  }

  .footer-grid > div:not(.footer-logo) {
    padding-bottom: 0;
  }

  .footer-grid h4 {
    margin: 0 0 10px;
  }

  .footer-tag {
    margin: 8px 0;
  }

  .footer-mobile-nav {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body[data-page="legal"] main .wrap,
  .refund-page .refund-policy-content {
    width: calc(100% - 24px);
  }

  .privacy-page .legal-wrap {
    padding: 20px 18px;
  }

  .team-subtitle-band {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .founder-section-title {
    display: table;
    width: auto;
    max-width: calc(100% - 16px);
    margin: 12px auto !important;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #topicTrackGrid img {
    transition: none;
  }
}

/* Final forced black text for the yellow contribution button */
html body .contribute-area a.btn.contribute-btn,
html body .contribute-area a.btn.contribute-btn:visited,
html body .contribute-area a.btn.contribute-btn:hover,
html body .contribute-area a.btn.contribute-btn:focus,
html body .contribute-area a.btn.contribute-btn:focus-visible {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  text-shadow: none !important;
}