/* =============================================
   Feedvisor University Pages - Global CSS
   Add to WordPress Customizer > Additional CSS
   or theme stylesheet
   ============================================= */

/* Hide sidebar and expand content to full width on tablet/mobile */
@media (max-width: 1024px) {
  .single-university .e-child:has(> .elementor-widget-sidebar),
  .university-template .e-child:has(> .elementor-widget-sidebar) {
    display: none !important;
  }
  .single-university .e-parent > .e-child:not(:has(> .elementor-widget-sidebar)),
  .university-template .e-parent > .e-child:not(:has(> .elementor-widget-sidebar)) {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }
}

/* Author box: avatar on top of name/bio, left-aligned */
.feedvisor-author-box .elementor-author-box {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Author box: remove extra padding on mobile */
@media (max-width: 767px) {
  .feedvisor-author-box,
  .feedvisor-author-box .elementor-widget-container,
  .feedvisor-author-box .elementor-author-box,
  .feedvisor-author-box .elementor-author-box__text {
    padding: 0 !important;
    margin: 0 !important;
  }
  .e-child:has(> .feedvisor-author-box),
  .e-child:has(.feedvisor-author-box) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Tables: horizontal scroll on mobile instead of overflowing */
@media (max-width: 767px) {
  .single-university table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* Offset anchor scroll for sticky header */
.single-university h2[id],
.single-university h3[id],
.single-university h4[id] {
  scroll-margin-top: 150px;
}
