/* Layout fixes aligned with rolixio.org donor */

/* Desktop nav: hiddens hides by default; ensure lg:flex wins */
@media (min-width: 64rem) {
  nav.hiddens.lg\:flex {
    display: flex !important;
  }
}

/* Hero: keep two-column grid stable on mobile */
@media (max-width: 63.99rem) {
  .hero-grid > .border-primary {
    order: 1;
  }

  .hero-grid > .group.bg-primary {
    order: 2;
  }
}

/* Features block with phone */
.features-with-phone .features-phone-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-with-phone .features-phone-wrap img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* Trading tickers */
[data-trading] {
  min-height: 0;
}

[data-trading] .trading-ticker {
  width: 100%;
  min-height: 126px;
}

/* Reviews swiper */
[data-slider="reviews"] {
  width: 100%;
  overflow: hidden;
}

[data-slider="reviews"] .swiper-slide {
  width: auto !important;
  height: auto;
}

[data-slider="reviews"] .swiper-wrapper {
  align-items: stretch;
}

.reviews-flex-block {
  flex-wrap: wrap;
  gap: 1rem;
}

/* Feature section spacing on small screens */
@media (max-width: 48rem) {
  .feature-section {
    padding: 48px 0;
  }

  .feature-section .container {
    padding: 0 16px;
  }
}

/* Prevent horizontal overflow from decorative SVG */
main {
  overflow-x: clip;
}

/* Logo sizing */
.header-logo img,
.footer-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Partners grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

@media (min-width: 48rem) {
  .partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.partners-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Payment methods row */
.payments-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
}

.payments-row img {
  max-height: 94px;
  width: auto;
  height: auto;
}
