/* This is childtheme to personalize your stlyes */

:root {
  --footer-bg: #08131c;
  --footer-surface: rgba(255, 255, 255, 0.06);
  --footer-border: rgba(255, 255, 255, 0.12);
  --footer-text: #f4f8fb;
  --footer-muted: #aac0d0;
  --footer-link: #45d0ff;
  --footer-accent: #00aeef;
}

.header-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-lang-flag {
  display: inline-block;
  width: 21px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  vertical-align: middle;
}

.header-lang-mobile {
  margin: 14px 12px 0 0;
  float: right;
}

.header-lang-mobile .dropdown-menu {
  left: auto;
  right: 0;
}

.footer-widget-system {
  background:
    radial-gradient(circle at top left, rgba(0, 174, 239, 0.18), transparent 30%),
    linear-gradient(135deg, #09131c 0%, #071a28 100%);
  color: var(--footer-text);
  padding: 48px 0 28px;
}

.footer-widget-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-widget-column {
  background: var(--footer-surface);
  border: 1px solid var(--footer-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.footer-widget-column__toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--footer-text);
  cursor: default;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px 14px;
  width: 100%;
}

.footer-widget-column__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-widget-column__chevron {
  border-bottom: 2px solid var(--footer-link);
  border-right: 2px solid var(--footer-link);
  display: none;
  height: 10px;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  width: 10px;
}

.footer-widget-column__body {
  padding: 0 20px 20px;
}

.footer-widget-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget-links li+li {
  margin-top: 10px;
}

.footer-widget-links a {
  color: var(--footer-text);
  display: inline-flex;
  gap: 8px;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-widget-links a:before {
  color: var(--footer-link);
  content: '›';
  font-size: 16px;
  line-height: 1;
}

.footer-widget-links a:hover,
.footer-widget-links a:focus {
  color: var(--footer-link);
  text-decoration: underline;
  transform: translateX(2px);
}

.footer-widget-stats {
  display: grid;
  gap: 10px;
}

.footer-widget-stat {
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
}

.footer-widget-stat span,
.footer-widget-countries__label,
.footer-widget-system__copyright {
  color: var(--footer-muted);
}

.footer-widget-stat strong {
  color: var(--footer-text);
  font-size: 18px;
  font-weight: 700;
}

.footer-widget-countries {
  padding-top: 6px;
}

.footer-widget-countries__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-widget-countries__list {
  display: grid;
  gap: 8px;
}

.footer-widget-country {
  align-items: center;
  display: flex;
  gap: 10px;
}

.footer-widget-country__flag {
  border-radius: 999px;
  height: 20px;
  object-fit: cover;
  width: 20px;
}

.footer-widget-country__flag--empty {
  align-items: center;
  border: 1px solid var(--footer-border);
  color: var(--footer-muted);
  display: inline-flex;
  font-size: 10px;
  justify-content: center;
}

.footer-review-stack {
  display: grid;
  gap: 14px;
}

.footer-review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
}

.footer-review-card__logo {
  color: var(--footer-link);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-review-card__rating {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-review-card__stars {
  color: #ffd66b;
  letter-spacing: 0.08em;
}

.footer-review-card__score {
  font-weight: 700;
}

.footer-review-card__count {
  color: var(--footer-muted);
}

.footer-review-card__link {
  color: var(--footer-link);
  font-weight: 600;
  text-decoration: none;
}

.footer-review-card__link:hover,
.footer-review-card__link:focus {
  text-decoration: underline;
}

.footer-widget-system__meta {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
}

.footer-widget-system__top {
  background: transparent;
  border-color: var(--footer-border);
  color: var(--footer-text);
}

/* Keep footer widget columns stable when the site switches to RTL languages (e.g. Hebrew). */
html[dir="rtl"] .footerbg.footer-widget-system .footer-widget-grid {
  direction: ltr;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html[dir="rtl"] .footerbg.footer-widget-system .footer-widget-column {
  direction: rtl;
}

@media (max-width: 991px) {
  .footer-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[dir="rtl"] .footerbg.footer-widget-system .footer-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .footer-widget-grid {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] .footerbg.footer-widget-system .footer-widget-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-widget-column__toggle {
    cursor: pointer;
  }

  .footer-widget-column__chevron {
    display: inline-block;
  }

  .footer-widget-column.is-collapsed .footer-widget-column__chevron {
    transform: rotate(-135deg);
  }

  .footer-widget-system__meta {
    align-items: flex-start;
    flex-direction: column;
  }
}