/* ==========================================================================
   RELON Uganda: responsive fixes
   Loaded after style.css on every page, so these rules win over the theme.
   Breakpoints follow Bootstrap: 575px (phone), 767px (large phone / small
   tablet), 991px (tablet), 1199px (small desktop).
   ========================================================================== */

/* ---------- Header logo ----------
   Inner pages wrapped the logo in a large blue pill on phones, while the home
   page showed it plainly. Use the plain logo everywhere on small screens. */
@media (max-width: 575px) {
  .header-default .header-logo {
    background: none;
    border-radius: 0;
    padding: 10px 0;
  }

  .header-default .header-logo img,
  .header-logo img {
    max-width: 120px;
    max-height: 70px;
    width: auto;
  }

  .header-default .header-button .icon-btn {
    --btn-size: 46px;
  }
}

/* Tablets: the logo was small inside the tall blue header bar. */
@media (min-width: 576px) and (max-width: 991px) {
  .header-default .header-logo img,
  .header-logo img {
    max-width: 150px;
    max-height: 80px;
    width: auto;
  }
}

@media (max-width: 360px) {
  .header-default .header-logo img,
  .header-logo img {
    max-width: 104px;
  }
}

/* ---------- Hero (home page) ----------
   The hero photo is light, and the theme's blend mode washes it out, so the
   white headline and paragraph are hard to read. Darken the photo on small
   and medium screens. */
@media (max-width: 991px) {
  .hero-2:before {
    mix-blend-mode: normal !important;
    opacity: 0.6 !important;
  }

  .hero-2 .hero-2-title,
  .hero-2 h1,
  .hero-2 p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- Page banners (inner pages) ----------
   Breadcrumb links and the page title sit on photos, so give them a shadow. */
.breadcumb-wrapper .breadcumb-content,
.breadcumb-wrapper .breadcumb-menu li,
.breadcumb-wrapper .breadcumb-menu a {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.breadcumb-wrapper .breadcumb-menu a {
  color: #fff;
}

.breadcumb-wrapper .breadcumb-menu a:hover {
  color: var(--theme-color, #2D70E2);
}

@media (max-width: 575px) {
  .breadcumb-wrapper .breadcumb-content {
    --space: 90px;
  }

  .breadcumb-wrapper .breadcumb-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .breadcumb-wrapper .breadcumb-menu {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
  }
}

/* ---------- Application form (apply.html) ----------
   Keep the form comfortable on phones. */
@media (max-width: 575px) {
  .apply-form .apply-option,
  .apply-form .apply-track,
  .apply-form .apply-check {
    padding: 0.7rem 0.8rem;
  }

  .apply-form .apply-track input {
    top: 0.75rem;
    right: 0.75rem;
  }

  .apply-form .apply-options,
  .apply-form .apply-tracks,
  .apply-form .apply-checks {
    grid-template-columns: 1fr;
  }
}
