.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;

  &:hover {
    text-decoration: none;
  }
}

.site-btn-outline {
  background: var(--brand-white);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.site-btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--brand-white);
}

.course-card {
  background: var(--brand-white);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 0px 3.5px 0px #00000014;
  height: 100%;

  img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    padding: 16px;
    border-radius: 20px;
  }

  .course-card-body {
    padding: 0 20px 20px;
  }

  .course-card-title {
    margin-bottom: 12px;
    color: var(--brand-black);

    font-size: 20px;
    font-weight: 600;
  }

  .course-card-actions {
    display: flex;
    gap: 12px;
  }
}

/* Reusable icon card */
.icon-card {
  position: relative;
  height: calc(100% - 40px);
  margin-top: 40px;
  padding: 80px 24px 32px;
  border-radius: 4px;
  background: var(--brand-white);
  box-shadow: 0px 0px 3px 0px #00000026;

  .icon-card-icon {
    position: absolute;
    top: 0;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: var(--brand-white);
    font-size: 36px;
    transform: translate(-50%, -50%);
  }

  .icon-card-title {
    color: var(--brand-blue);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;

    &::after {
      display: block;
      width: 96px;
      height: 1px;
      margin-top: 8px;
      background: var(--brand-blue);
      content: "";
    }
  }
}

@media (max-width: 767px) {
  .course-card {
    img {
      height: 220px;
    }

    .course-card-actions {
      flex-direction: column;
    }
  }
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;

  .logo-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: logo-marquee-scroll 30s linear infinite;
  }

  .logo-marquee-track-reverse {
    animation-direction: reverse;
  }

  .logo-marquee-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
  }

  img {
    max-width: 100%;
    height: 82px;
    object-fit: contain;
    display: block;
  }
}

@keyframes logo-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 575px) {
  .logo-marquee {
    .logo-marquee-item {
      padding: 10px 18px;
    }

    img {
      height: 56px;
    }
  }
}

.site-form-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #111111;
  font-size: 16px;
  font-weight: 400;
}

.site-form-control {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: #f7f7f7;
  color: #111111;
  font-size: 16px;
  font-weight: 400;
  box-shadow: none;

  &::placeholder {
    color: #d2d2d2;
  }

  &:focus {
    background: #f7f7f7;
    box-shadow: none;
    border-color: transparent;
  }
}

textarea.site-form-control {
  min-height: 74px;
  resize: none;
}

.common-banner {
  position: relative;
  height: 300px;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .common-banner-overlay {
    position: absolute;
    inset: 0;
    background: #00000099;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .common-banner-title {
    color: #fff;
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    margin: 0;
  }

  @media (max-width: 768px) {
    height: 140px;

    .common-banner-title {
      font-size: 28px;
    }
  }
}

/* course-card.css */

.course-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--brand-white);
  box-shadow: 0px 0px 4px 0px #0000001c;
  border-radius: 12px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;

  &:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
    box-shadow: 0 10px 24px rgb(0 0 0 / 9%);
  }

  .course-card-body {
    flex: 1;
    padding: 22px 20px 14px;
  }

  .course-card-title {
    min-height: 48px;
    margin: 0;
    color: var(--brand-black);
    font-size: 20px;
    font-weight: 700;
  }

  .course-card-divider {
    width: 100%;
    height: 1px;
    margin: 10px 0 12px;
    background-color: var(--brand-blue);
    opacity: 0.45;
  }

  .course-card-info {
    margin-bottom: 11px;

    &:last-child {
      margin-bottom: 0;
    }

    .course-card-label {
      margin: 0 0 5px;
      color: var(--brand-black);
      font-size: 16px;
      font-weight: 700;
    }

    .course-card-value {
      margin: 0;
      color: var(--brand-gray);
      font-size: 16px;
    }
  }

  .course-modes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;

    .course-mode {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--brand-gray);
      font-size: 16px;
      white-space: nowrap;

      .course-mode-icon {
        width: 15px;
        height: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: 1px solid currentColor;
        border-radius: 50%;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
      }

      &.course-mode-available {
        .course-mode-icon {
          color: var(--brand-blue);
        }
      }

      &.course-mode-unavailable {
        .course-mode-icon {
          color: var(--brand-gray);
        }
      }
    }
  }

  .course-card-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 20px 20px;
  }

  @media (max-width: 575.98px) {
    .course-card-body {
      padding: 20px 17px 12px;
    }

    .course-card-title {
      min-height: auto;
      font-size: 16px;
    }

    .course-modes {
      gap: 8px 14px;
    }

    .course-card-footer {
      padding: 0 17px 17px;
    }
  }
}
