/* Homepage Quick Links widget.
 * Baseline is intentionally kept in sync with bonyad-alavi-redesign/redesign/index.html.
 * Elementor Style controls are empty by default and only override these rules after explicit edits.
 */

.ba-home-quick-links-widget {
  --green-700: #06783a;
  --ink: #163027;
  --max: 1280px;
  padding: 28px 0 0;
  color: var(--ink);
  font-family: YekanBakh, IRANSans, "Vazirmatn", Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

.ba-home-quick-links-widget,
.ba-home-quick-links-widget * {
  box-sizing: border-box;
}

.ba-home-quick-links-widget a {
  color: inherit;
  text-decoration: none;
}

.ba-home-quick-links-widget button {
  font: inherit;
  color: inherit;
}

.ba-home-quick-links-widget :focus-visible {
  outline: 3px solid rgba(6, 144, 67, .28);
  outline-offset: 3px;
}

.ba-home-quick-links-widget .ba-container {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

.ba-home-quick-links-widget .ba-quick-links__inner {
  position: relative;
  margin-top: 0;
}

.ba-home-quick-links-widget .ba-quick-links__list {
  display: flex;
  align-items: start;
  justify-content: space-between;
  overflow: hidden;
  transition: .35s;
  min-height: 100px;
  gap: 4px;
}

.ba-home-quick-links-widget .ba-quick-links__list.is-expanded {
  flex-wrap: wrap;
  overflow: visible;
}

.ba-home-quick-links-widget .ba-quick-links__item {
  width: 116px;
  flex: 0 0 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  transition: .25s;
  padding: 5px 4px;
  border-radius: 13px;
}

.ba-home-quick-links-widget .ba-quick-links__item:hover {
  transform: translateY(-2px);
}

.ba-home-quick-links-widget .ba-quick-links__item.is-hidden-overflow {
  display: none;
}

.ba-home-quick-links-widget .ba-quick-links__media {
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e7ece9;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 58px;
  height: 58px;
  box-shadow: 0 5px 14px rgba(9, 73, 43, .065);
}

.ba-home-quick-links-widget .ba-quick-links__icon {
  width: 29px;
  height: 29px;
  display: block;
  flex: none;
}

.ba-home-quick-links-widget i.ba-quick-links__icon {
  font-size: 29px;
  line-height: 29px;
}

.ba-home-quick-links-widget .ba-quick-links__label {
  font-size: 11px;
  font-weight: 800;
  color: #40534a;
  line-height: 1.45;
}

.ba-home-quick-links-widget .ba-quick-links__item--more {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ba-home-quick-links-widget .ba-quick-links__item--more .ba-quick-links__media {
  background: #f0f2f1;
  border-color: #e0e4e2;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 2px;
  color: #5e6b65;
}

.ba-home-quick-links-widget .ba-quick-links__list.is-expanded .ba-quick-links__item--more .ba-quick-links__media {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

/* Quick Links semantic media themes copied from the reference CSS. */
.ba-home-quick-links-widget .ba-quick-links__media--people {
  background: #0f8a57;
  border-color: #0f8a57;
  color: #fff;
}

.ba-home-quick-links-widget .ba-quick-links__media--organization {
  background: #2f6fa3;
  border-color: #2f6fa3;
  color: #fff;
}

.ba-home-quick-links-widget .ba-quick-links__media--auction {
  background: #b7791f;
  border-color: #b7791f;
  color: #fff;
}

.ba-home-quick-links-widget .ba-quick-links__media--jihadi {
  background: #b44c5e;
  border-color: #b44c5e;
  color: #fff;
}

.ba-home-quick-links-widget .ba-quick-links__media--studies {
  background: #6658a6;
  border-color: #6658a6;
  color: #fff;
}

.ba-home-quick-links-widget .ba-quick-links__media--habib {
  background: #247a70;
  border-color: #247a70;
  color: #fff;
}

.ba-home-quick-links-widget .ba-quick-links__media--award {
  background: #b57b0d;
  border-color: #b57b0d;
  color: #fff;
}

.ba-home-quick-links-widget .ba-quick-links__media--hamgam {
  background: #3f7eaf;
  border-color: #3f7eaf;
  color: #fff;
}

.ba-home-quick-links-widget .ba-quick-links__media--camp {
  background: #678a43;
  border-color: #678a43;
  color: #fff;
}

.ba-home-quick-links-widget .ba-quick-links__media--more {
  background: #5f6d66;
  border-color: #5f6d66;
  color: #fff;
}

@media (max-width: 1080px) {
  .ba-home-quick-links-widget {
    padding-top: 24px;
  }
}

@media (max-width: 760px) {
  .ba-home-quick-links-widget {
    padding-top: 20px;
  }

  .ba-home-quick-links-widget .ba-container {
    width: min(100% - 24px, var(--max));
  }

  .ba-home-quick-links-widget .ba-quick-links__list {
    justify-content: flex-start;
  }

  .ba-home-quick-links-widget .ba-quick-links__item {
    width: 98px;
    flex-basis: 98px;
  }

  .ba-home-quick-links-widget .ba-quick-links__media {
    width: 57px;
    height: 57px;
  }
}

@media (max-width: 430px) {
  .ba-home-quick-links-widget .ba-quick-links__item {
    width: 86px;
    flex-basis: 86px;
  }

  .ba-home-quick-links-widget .ba-quick-links__label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ba-home-quick-links-widget * {
    animation: none !important;
    transition: none !important;
  }
}
