/**
 * Footer layout for homepage (.index-page) and editorial article pages.
 * Mirrors inline rules from website/index.blade.php — do not duplicate elsewhere.
 */
:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer.index-page-footer {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer.index-page-footer .footer__wrapper {
  width: 100%;
  max-width: min(1140px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer.index-page-footer .footer__info--logo {
  margin-bottom: 0;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer.index-page-footer .footer__list ul li:first-child {
  margin-bottom: 0.65rem;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer__wrapper .paragraph.dark,
:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer__wrapper a {
  color: #374151 !important;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer__wrapper a:hover {
  color: #111 !important;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__social-icons {
  margin-top: 1.15rem;
  width: 100%;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__social-icons ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__social-icons li {
  margin: 0;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(59, 130, 246, 0.35);
  color: #1e40af;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__social-icons a:hover {
  background: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
  transform: translateY(-2px);
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__social-icons a i {
  font-size: 1.65rem;
  line-height: 1;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer.index-page-footer .footer__social-icons a i.fab {
  font-family: "Font Awesome 5 Brands" !important;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer.index-page-footer .footer__social-icons a i.fab::before {
  font-family: "Font Awesome 5 Brands" !important;
}

@media (min-width: 768px) {
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__social-icons a {
    width: 3.6rem;
    height: 3.6rem;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__social-icons a i {
    font-size: 1.85rem;
  }
}

@media (min-width: 992px) {
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__social-icons a {
    width: 3.85rem;
    height: 3.85rem;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__social-icons a i {
    font-size: 2rem;
  }
}

.footer-tags-heading {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #111;
  direction: rtl;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer__info--content .paragraph.dark {
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .index-footer-logo-row .col-12 {
  display: block;
  text-align: center;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .index-footer-logo-link img,
:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .index-footer-logo-band .footer__info--logo img {
  max-width: min(360px, 90vw) !important;
  width: auto !important;
  height: auto !important;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .index-footer-main-row .col-12 {
  display: flex;
  justify-content: center;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem 2rem;
  direction: rtl;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list {
  text-align: center;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list ul li {
  text-align: center;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block {
  border-inline-start: 1px solid #cbd5e1;
  padding-inline-start: 1.75rem;
  margin-inline-start: 0.5rem;
  min-width: 0;
  text-align: center;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .footer-tags-heading {
  margin-bottom: 0.85rem;
  font-size: 1.05rem !important;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .tags li {
  margin: 0;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .tags li a {
  font-size: 1.08rem !important;
  font-weight: 500 !important;
  padding: 0.6rem 1.15rem !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  background: #fff !important;
  background-image: none !important;
  color: #1e40af !important;
  border: 1.5px solid #3b82f6 !important;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .tags li a i {
  font-size: 0.95em;
  opacity: 0.95;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .tags li a span {
  white-space: nowrap;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .tags li:nth-child(even) a,
:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .tags li:nth-child(odd) a {
  background: #fff !important;
  background-image: none !important;
  filter: none !important;
  color: #1e40af !important;
  border-color: #3b82f6 !important;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .tags li a:hover {
  background: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .tags li a:hover i {
  color: inherit;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list {
  font-size: 1.2rem;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list ul li {
  margin-bottom: 0.5rem;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list ul li:first-child {
  font-size: 1.32rem !important;
  font-weight: 600;
  color: #111;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list a {
  font-size: 1.28rem !important;
  font-weight: 500;
  color: #1e40af !important;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  background: #fff;
  border: 2px solid #3b82f6;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.12);
  transition: background 0.2s, color 0.2s, transform 0.1s, box-shadow 0.2s;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list a:hover {
  background: #2563eb !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.25);
}

@media (min-width: 992px) {
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__content-wrapper {
    gap: 1.25rem 1.75rem;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list ul li:first-child {
    font-size: 1.3rem !important;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list a {
    font-size: 1.26rem !important;
    padding: 0.62rem 1.05rem;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .footer-tags-heading {
    font-size: 0.95rem !important;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block .tags li a {
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
  }
}

@media (max-width: 991px) {
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .row {
    flex-direction: column;
    align-items: center;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .row .col-12 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__content-wrapper {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__list,
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }
  :is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .tags-block {
    border-inline-start: none;
    padding-inline-start: 0;
    margin-inline-start: 0;
    padding-top: 1rem;
    margin-top: 0;
    border-top: 1px solid #e2e8f0;
  }
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__copy {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

:is(body.index-page, body.article-editorial-page, body.news-index-page) .footer .footer__copyright {
  font-size: 1.22rem !important;
  font-weight: 500;
  color: #374151 !important;
  margin: 0;
  letter-spacing: 0.02em;
}
