:root {
  --uv-footer-accent: #f4aa00;
  --uv-footer-bg: #111;
  --uv-footer-panel: #191919;
  --uv-footer-text: #e8e8e8;
  --uv-footer-muted: #a9a9a9;
  --uv-footer-border: rgba(255,255,255,.1);
}

#footer.uv-dynamic-footer {
  clear: both;
  background: var(--uv-footer-bg);
  color: var(--uv-footer-text);
  margin: 35px 0 0;
  padding: 0;
  direction: rtl;
  text-align: right;
}

.uv-footer-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr .9fr;
  gap: 30px;
  padding: 36px 28px 30px;
}

.uv-footer-column,
.uv-footer-column * {
  box-sizing: border-box;
}

.uv-footer-heading {
  color: #fff;
  font-size: 19px;
  line-height: 1.7;
  margin: 0 0 17px;
  padding: 0 0 9px;
  border-bottom: 2px solid var(--uv-footer-accent);
}

.uv-footer-brand .custom-logo-link,
.uv-footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

.uv-footer-brand .custom-logo,
.uv-footer-logo-image {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 95px;
  object-fit: contain;
}

.uv-footer-site-name {
  display: inline-block;
  color: var(--uv-footer-accent);
  font-size: 30px;
  line-height: 1.5;
  margin-bottom: 12px;
  text-decoration: none;
}

.uv-footer-description {
  color: var(--uv-footer-muted);
  font-size: 14px;
  line-height: 2;
  margin: 0 0 16px;
}

.uv-footer-site-data {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--uv-footer-muted);
  font-size: 13px;
}

.uv-footer-site-data li {
  border-top: 1px solid var(--uv-footer-border);
  padding: 8px 0;
}

.uv-footer-post-list,
.uv-footer-links,
.uv-footer-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uv-footer-post-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 11px;
  padding: 0 0 12px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--uv-footer-border);
}

.uv-footer-post-item:last-child {
  margin-bottom: 0;
}

.uv-footer-post-thumb {
  display: block;
  height: 58px;
  overflow: hidden;
  background: #2a2a2a;
}

.uv-footer-post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uv-footer-post-copy h3 {
  color: #f4f4f4;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  margin: -4px 0 3px;
}

.uv-footer-post-copy h3 a,
.uv-footer-links a,
.uv-footer-categories a {
  color: inherit;
  text-decoration: none;
}

.uv-footer-post-copy h3 a:hover,
.uv-footer-links a:hover,
.uv-footer-categories a:hover {
  color: var(--uv-footer-accent);
}

.uv-footer-post-copy time {
  color: var(--uv-footer-muted);
  font-size: 11px;
}

.uv-footer-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.uv-footer-categories li,
.uv-footer-links li {
  border-bottom: 1px solid var(--uv-footer-border);
  padding: 8px 0;
  color: #ddd;
  font-size: 14px;
  line-height: 1.7;
}

.uv-footer-categories .count {
  color: var(--uv-footer-muted);
  font-size: 11px;
}

.uv-footer-links {
  margin-top: 20px;
}

.uv-footer-mini-heading {
  color: #fff;
  font-size: 16px;
  margin: 22px 0 8px;
}

#footer .uv-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--uv-footer-border);
  background: #0a0a0a;
  padding: 12px 28px;
  color: var(--uv-footer-muted);
  font-size: 12px;
}

.uv-footer-bottom p {
  margin: 0;
}

.uv-footer-bottom a {
  color: var(--uv-footer-accent);
  text-decoration: none;
}

.uv-footer-bottom-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .uv-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .uv-footer-top {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 28px 18px 24px;
  }

  .uv-footer-brand {
    text-align: center;
  }

  .uv-footer-brand .custom-logo-link,
  .uv-footer-logo-link {
    margin-left: auto;
    margin-right: auto;
  }

  .uv-footer-brand .custom-logo,
  .uv-footer-logo-image {
    margin: 0 auto;
  }

  #footer .uv-footer-bottom {
    display: block;
    padding: 13px 18px;
    text-align: center;
  }

  .uv-footer-bottom-links {
    justify-content: center;
    margin-top: 8px;
  }
}
