html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  width: 100%;
}

/* شريط أقسام عائم شفاف أسفل الهيدر */

.hero-test-section {
  width: 100%;
  min-height: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 32px;
  padding-bottom: 0;
  position: relative;
}

.sections-bar {
  width: 100vw;
  left: 0;
  right: 0;
  top: 64px;
  position: absolute;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 2px 12px rgba(80,120,180,0.07);
  border-radius: 0 0 14px 14px;
  padding: 0 8px;
  min-height: 38px;
  max-height: 44px;
  backdrop-filter: blur(3px);
  z-index: 100;
  border: none;
  transition: box-shadow 0.2s, background 0.2s;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


@media (max-width: 700px) {
  .sections-bar {
    flex-wrap: nowrap;
    gap: 4px;
    padding: 0 2px;
    min-height: 32px;
    max-height: 38px;
    top: 48px;
    border-radius: 0 0 10px 10px;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sections-bar .section-link {
    font-size: 0.54rem;
    min-width: 28px;
    max-width: 56px;
    height: 28px;
    padding: 0 6px;
    border-radius: 4px;
    line-height: 1.05;
    text-align: center;
    margin: 0 1px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sections-bar .section-link i, .sections-bar .section-link svg {
    font-size: 0.85em !important;
  }
}



.sections-bar .section-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  text-decoration: none;
  color: #4e7bb4;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s, background 0.2s;
  padding: 0 12px;
  border-radius: 8px;
  min-width: 56px;
  min-height: 32px;
  height: 36px;
  background: transparent;
  white-space: nowrap;
}
.sections-bar .section-link:hover, .sections-bar .section-link:focus {
  background: #f0f4fa;
  color: #2167a8;
}

.sections-bar .section-link:hover {
  color: #fff;
  background: linear-gradient(90deg, #4e7bb4 0%, #b45e7b 100%);
}
.sections-bar .section-link i {
  font-size: 1.3rem;
  margin-bottom: 2px;
}
@media (max-width: 700px) {
  .sections-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 5px;
    margin: 0 auto 14px auto;
    margin-bottom: 14px;
  }
  .sections-bar .section-link {
    font-size: 0.93rem;
    min-width: 66px;
    padding: 4px 5px;
  }
}
