/* ZiyZayn — shared layout fixes (load after page CSS) */

.u-body {
  overflow-x: clip;
}

header.u-header .u-image.u-logo,
.u-footer .u-image.u-logo {
  display: inline-block;
}

/* Footer band: softer transition from white content above, larger logo block */
#footer.u-footer {
  position: relative;
  padding-top: clamp(48px, 7vw, 72px);
  box-shadow: inset 0 36px 56px -36px rgba(255, 255, 255, 0.5);
}

#footer.u-footer .u-image.u-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.25rem;
}

#footer.u-footer .zi-footer-tagline {
  display: block;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin: 0.75rem auto 1.5rem;
  padding: 0.8rem 2rem;
  text-align: center;
  font-size: clamp(0.9rem, 2.2vw, 1.25rem) !important;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: none;
  color: #fff !important;
  opacity: 1;
  background: linear-gradient(135deg, rgba(13, 36, 75, 0.95) 0%, rgba(26, 58, 110, 0.9) 100%);
  border: 2px solid #f1c50e;
  border-radius: 999px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(241, 197, 14, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

@media (max-width: 480px) {
  #footer.u-footer .zi-footer-tagline {
    font-size: clamp(0.68rem, 3.2vw, 0.9rem) !important;
    padding: 0.6rem 1rem;
    letter-spacing: 0.02em;
  }
}

#footer.u-footer .u-image-1.u-image.u-logo {
  width: min(400px, 82vw) !important;
  height: auto !important;
  max-width: 100%;
  margin-top: 0;
}

#footer.u-footer .u-logo-image,
#footer.u-footer .u-logo-image-1 {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
}

/* Footer contact emails: palette-1-base is dark navy — unreadable on dark footer */
#footer.u-footer a[href^="mailto:"] {
  color: #fff !important;
}

#footer.u-footer a[href^="mailto:"]:hover,
#footer.u-footer a[href^="mailto:"]:focus {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: underline;
}

/* Footer Universities: keep each "Name, Country" on one line */
#footer.u-footer .u-layout-cell-2 a[href*="University-Tieups"] {
  white-space: nowrap;
}

#footer.u-footer .u-layout-cell-2 p {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* Footer Quick Links: keep "About ZiyZayn" / "Students Corner" / "FAQs" on single lines */
#footer.u-footer .u-layout-cell-1 p,
#footer.u-footer .u-layout-cell-1 a {
  white-space: nowrap;
}

#footer.u-footer .u-layout-cell-1 p {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

@media (min-width: 992px) {
  #footer.u-footer .u-layout-row > .u-layout-cell-1 {
    flex: 0 0 18% !important;
    max-width: 18% !important;
    min-width: 18% !important;
  }

  #footer.u-footer .u-layout-row > .u-layout-cell-2 {
    flex: 0 0 38% !important;
    max-width: 38% !important;
    min-width: 38% !important;
  }

  #footer.u-footer .u-layout-row > .u-layout-cell-3 {
    flex: 0 0 18% !important;
    max-width: 18% !important;
    min-width: 18% !important;
  }

  #footer.u-footer .u-layout-row > .u-layout-cell-4 {
    flex: 0 0 26% !important;
    max-width: 26% !important;
    min-width: 26% !important;
  }
}

@media (max-width: 991px) and (min-width: 576px) {
  #footer.u-footer .u-layout-cell-2 a[href*="University-Tieups"] {
    font-size: 0.8rem;
    letter-spacing: -0.01em;
  }
}

.u-sheet img.u-image.u-expanded-width,
.u-sheet .u-expanded-width img.u-image {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.univ-card-media img {
  max-width: 100%;
}

/* Home hero only (#sec-115c on index): center tagline, pills, compliance block */
#sec-115c.u-section-1 .u-sheet-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#sec-115c.u-section-1 .u-list-1 {
  width: 100%;
  display: flex;
  justify-content: center;
}

#sec-115c.u-section-1 .u-repeater-1 {
  display: grid !important;
}

@media (min-width: 576px) {
  #sec-115c.u-section-1 .u-repeater-1 {
    grid-template-columns: repeat(4, minmax(0, var(--hero-pill-w, 10.75rem))) !important;
    width: min(100%, calc(4 * var(--hero-pill-w, 10.75rem) + 3 * 10px)) !important;
  }
}

@media (max-width: 575px) {
  #sec-115c.u-section-1 .u-repeater-1 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}

#sec-115c.u-section-1 .u-repeater-1 > .u-list-item {
  max-width: none !important;
}

#sec-115c.u-section-1 .u-repeater-1 .u-btn {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  width: 100% !important;
  max-width: 100% !important;
}

.u-footer .u-icon-5 {
  color: rgb(37, 211, 102) !important;
  height: 100%;
}
