/* Oscar Serrano brand adjustments kept separate from the Biohub source styles. */
.home-designer .header-one .header-content .logo img.os-logo-full {
  width: 245px;
  height: auto;
  max-width: none;
}

.home-designer .header-one .header-content .logo img.os-logo-symbol {
  display: none;
}

.tmp-popup-mobile-menu .logo img.os-mobile-menu-logo {
  width: 210px;
  height: auto;
  max-width: 210px;
}

/* Keep expertise checkmarks circular and aligned when labels wrap. */
.home-designer .about-style-1 .about-feature ul li {
  align-items: flex-start;
  max-width: none;
}

.home-designer .about-style-1 .about-feature ul li i {
  flex: 0 0 20px;
  min-width: 20px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  margin-top: 2px;
}

/* Keep CMS Editor carousel cards aligned despite different copy lengths. */
.home-designer #editor .swiper-slide {
  height: auto;
}

.home-designer #editor .testimonial-style-2 {
  height: 100%;
}

/* Equal-height service cards while preserving the template component. */
.home-designer #service .service-style-2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-designer #service .service-style-2 .content {
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .home-designer #service .service-style-2 .content > .h4 {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 58px;
  }

  .home-designer #service .service-style-2 .content > .text-small {
    height: 110px;
    margin-bottom: 0;
  }
}

/* Keep the animated headline from resizing the hero portrait. */
.home-designer .banner-style-2 .content-wrapper {
  gap: clamp(32px, 4vw, 64px);
}

.home-designer .banner-style-2 .content-wrapper .banner-content {
  flex: 1 1 0;
  min-width: 0;
}

.home-designer .banner-style-2 .header-caption {
  display: block;
  min-height: 1.2em;
  margin-top: 8px;
  font-size: clamp(44px, 3.8vw, 68px);
  line-height: 1.15;
}

.home-designer .banner-style-2 .os-hero-portrait {
  flex: 0 0 clamp(320px, 27vw, 410px);
  width: clamp(320px, 27vw, 410px);
  min-width: clamp(320px, 27vw, 410px);
  align-self: flex-end;
}

.home-designer .banner-style-2 .os-hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

@media only screen and (max-width: 991px) {
  .home-designer .banner-style-2 .content-wrapper {
    gap: 36px;
  }

  .home-designer .banner-style-2 .content-wrapper .banner-content {
    width: 100%;
  }

  .home-designer .banner-style-2 .os-hero-portrait {
    flex: none;
    width: min(78vw, 380px);
    min-width: 0;
    margin-inline: auto;
    align-self: center;
  }
}

@media only screen and (max-width: 575px) {
  .home-designer .banner-style-2 .content-wrapper .banner-content .title > br {
    display: block;
  }

  .home-designer .banner-style-2 .header-caption {
    min-height: 1.25em;
    font-size: clamp(26px, 7vw, 34px);
  }

  .home-designer .banner-style-2 .os-hero-portrait {
    width: min(86vw, 370px);
  }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
  .home-designer .banner-style-2 .header-caption {
    font-size: clamp(34px, 6vw, 40px);
  }
}

@media only screen and (max-width: 767px) {
  .home-designer .header-one .header-content .logo img.os-logo-full {
    width: 190px;
    max-width: 190px;
  }
}

@media only screen and (max-width: 430px) {
  .home-designer .header-one .header-content .logo img.os-logo-full {
    width: 170px;
    max-width: 170px;
  }
}

@media only screen and (max-width: 390px) {
  .home-designer .header-one .header-content .logo img.os-logo-full {
    display: none !important;
  }

  .home-designer .header-one .header-content .logo img.os-logo-symbol {
    display: block;
    width: 46px;
    height: 46px;
    max-width: 46px;
  }
}

/* Preserve the resume card layout and keep short credentials on one line. */
.home-designer #resume .single-education-item > .content {
  flex: 1 1 auto;
  min-width: 0;
}

.home-designer #resume .single-education-item > .gpa {
  flex: 0 0 76px;
  min-width: 76px;
  text-align: center;
}

.home-designer #resume .single-education-item > .gpa h3 {
  white-space: nowrap;
}

/* Courses: reuse the doctor portfolio component as a balanced sales catalogue. */
.home-designer #courses .os-course-grid .invers-arrange-item {
  display: flex;
}

.home-designer #courses .os-course-card {
  width: 100%;
  height: 100%;
}

.home-designer #courses .os-course-card > .content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.home-designer #courses .os-course-card .inner-content {
  flex: 0 0 auto;
}

.home-designer #courses .os-course-card .description {
  max-width: none;
}

.home-designer #courses .os-course-tags {
  min-height: 70px;
  align-content: flex-start;
}

.home-designer .os-course-capacity {
  margin: 18px 0 40px;
}

.home-designer .os-course-capacity .tmp-title {
  gap: 16px;
  margin-bottom: 10px;
  color: var(--color-body);
  font-size: 15px;
  line-height: 1.4;
}

.home-designer .os-course-capacity .tmp-title > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-designer .os-course-capacity .tmp-title i {
  color: var(--color-primary);
}

.home-designer .os-course-capacity .progress {
  height: 10px;
  overflow: hidden;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
}

.home-designer .os-course-capacity .progress-bar {
  border-radius: 10px;
  background-color: var(--color-primary);
  transition: width 0.6s ease;
}

.home-designer .os-course-capacity-note {
  margin: 9px 0 0;
  color: #AAB6D3;
  font-size: 13px;
  line-height: 1.5;
}

.home-designer .os-course-capacity-modal {
  margin: 0 0 30px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(15, 20, 46, 0.72);
}

.home-designer [data-payment-link-pending] {
  cursor: not-allowed;
  opacity: 0.72;
}

.home-designer #courses .tmp-badge-cat,
.home-designer .os-course-modal-tags .tmp-badge-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  cursor: default;
}

.home-designer #courses .tmp-badge-cat.cat-three,
.home-designer .os-course-modal-tags .tmp-badge-cat.cat-three {
  color: #AAB6D3;
  background: rgba(170, 182, 211, 0.1);
}

.home-designer #courses .tmp-badge-cat.cat-three:hover,
.home-designer .os-course-modal-tags .tmp-badge-cat.cat-three:hover {
  color: var(--color-dark);
  background: #AAB6D3;
}

.home-designer #courses .tmp-badge-cat.cat-four,
.home-designer .os-course-modal-tags .tmp-badge-cat.cat-four {
  color: var(--color-white);
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.home-designer #courses .tmp-badge-cat.cat-four:hover,
.home-designer .os-course-modal-tags .tmp-badge-cat.cat-four:hover {
  color: var(--color-dark);
  background: var(--color-white);
}

.home-designer #courses .tmp-work-thumb {
  margin-top: auto;
  background: #0f142e;
}

.home-designer #courses .tmp-work-thumb img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.home-designer .os-course-modal .course-modal-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.home-designer .os-course-modal .button-group-modal-bottom {
  justify-content: flex-start;
}

@media only screen and (min-width: 992px) {
  .home-designer #courses .os-course-card .title {
    min-height: 120px;
  }

  .home-designer #courses .os-course-card .description {
    min-height: 112px;
  }
}

@media only screen and (max-width: 767px) {
  .home-designer #courses .portfolio-style-1 {
    padding: 35px 25px;
  }

  .home-designer #courses .os-course-tags {
    min-height: 0;
  }

  .home-designer .os-course-capacity .tmp-title {
    align-items: flex-start !important;
    font-size: 14px;
  }

  .home-designer #courses .tmp-work-thumb img {
    height: 280px;
  }

  .home-designer .os-course-modal .course-modal-image img {
    height: 280px;
  }
}
