:root {
  --c-ink: #10242d;
  --c-soft: #617673;
  --c-green: #18a88e;
  --c-green-dark: #0c7564;
  --c-aqua: #48d6bd;
  --c-orange: #e06d42;
  --c-navy: #071b24;
  --c-navy-2: #0c3038;
  --c-bg: #f6f9f6;
  --c-line: #d6e3de;
  --c-white: #ffffff;
}

.courses-body {
  background: var(--c-bg);
  color: var(--c-ink);
  min-height: 100vh;
}

/* =========================================================
   OLD CATALOGUE HEADER
   Hidden because V16 uses kraken-site-nav
   ========================================================= */

.catalogue-header {
  display: none !important;
}


/* =========================================================
   HERO
   ========================================================= */

.catalogue-hero {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;

  min-height: 520px;

  padding:
    82px
    clamp(24px, 5vw, 82px)
    100px;

  color: #fff;

  background:
    radial-gradient(
      circle at 78% 40%,
      rgba(24, 168, 142, 0.18),
      transparent 30%
    ),
    linear-gradient(
      110deg,
      #020c0a 0%,
      #061713 48%,
      #0b3029 100%
    );

  border-bottom: 1px solid rgba(72, 214, 189, 0.15);
}


/* subtle grid like homepage */

.catalogue-hero::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(72, 214, 189, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(72, 214, 189, 0.035) 1px,
      transparent 1px
    );

  background-size: 68px 68px;
}


/* glow */

.catalogue-hero::after {
  content: "";

  position: absolute;

  width: 520px;
  height: 520px;

  right: 5%;
  top: 50%;

  transform: translateY(-50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(24, 168, 142, 0.12),
      transparent 68%
    );

  pointer-events: none;
}


.catalogue-hero > div {
  position: relative;
  z-index: 1;

  width: min(900px, 100%);
}


/* kicker */

.catalogue-kicker {
  margin: 0 0 15px;

  color: var(--c-aqua);

  font-size: 0.76rem;
  font-weight: 900;

  letter-spacing: 0.17em;
  text-transform: uppercase;
}


/* huge heading */

.catalogue-hero h1 {
  max-width: 820px;

  margin: 0 0 24px;

  color: #f5f7f3;

  font-family: Oswald, sans-serif;

  font-size: clamp(5rem, 10vw, 9rem);

  font-weight: 700;

  line-height: 0.86;

  letter-spacing: -0.025em;

  text-transform: uppercase;
}


/* description */

.catalogue-hero p:last-child {
  max-width: 720px;

  margin: 0;

  color: #c8dad5;

  font-size: clamp(1rem, 1.6vw, 1.2rem);

  line-height: 1.7;
}


/* =========================================================
   SEARCH / FILTER PANEL
   ========================================================= */

.catalogue-tools {
  position: relative;
  z-index: 5;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(220px, 330px);

  gap: 12px;

  width: min(
    1320px,
    calc(100% - 36px)
  );

  margin: -36px auto 0;

  padding: 16px;

  border: 1px solid var(--c-line);

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.98);

  box-shadow:
    0 22px 55px
    rgba(7, 44, 35, 0.12);
}


.catalogue-search {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 0 17px;

  border: 1px solid var(--c-line);

  border-radius: 14px;

  background: #fff;
}


.catalogue-search:focus-within {
  border-color: var(--c-green);

  box-shadow:
    0 0 0 3px
    rgba(24, 168, 142, 0.10);
}


.catalogue-search span {
  color: var(--c-green-dark);

  font-size: 1.35rem;

  font-weight: 900;
}


.catalogue-search input,
.catalogue-tools select {
  min-height: 52px;

  border: 0 !important;

  background: #fff !important;

  color: var(--c-ink) !important;

  outline: 0;

  font-family: Inter, sans-serif;

  font-weight: 600;
}


.catalogue-search input {
  width: 100%;
}


.catalogue-search input::placeholder {
  color: #71817e;
}


.catalogue-tools select {
  padding: 0 14px;

  border: 1px solid var(--c-line) !important;

  border-radius: 14px !important;

  cursor: pointer;
}


/* =========================================================
   COURSE CATALOGUE
   ========================================================= */

.catalogue-content {
  width: min(
    1320px,
    calc(100% - 36px)
  );

  margin: 62px auto 100px;
}


.catalogue-heading {
  display: flex;

  align-items: end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 26px;
}


.catalogue-heading .catalogue-kicker {
  color: var(--c-green);
}


.catalogue-heading h2 {
  margin: 0;

  color: var(--c-navy);

  font-family: Oswald, sans-serif;

  font-size: clamp(2.8rem, 5vw, 4.5rem);

  line-height: 1;

  letter-spacing: -0.015em;

  text-transform: uppercase;
}


.catalogue-heading > span {
  color: var(--c-soft);

  font-weight: 800;
}


/* =========================================================
   GRID
   ========================================================= */

.course-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(270px, 1fr)
    );

  gap: 22px;
}


/* =========================================================
   COURSE CARD
   ========================================================= */

.catalogue-card {
  overflow: hidden;

  border: 1px solid var(--c-line);

  border-radius: 22px;

  background: #fff;

  box-shadow:
    0 13px 35px
    rgba(7, 44, 35, 0.07);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}


.catalogue-card:hover {
  transform: translateY(-6px);

  border-color:
    rgba(24, 168, 142, 0.4);

  box-shadow:
    0 24px 55px
    rgba(7, 44, 35, 0.14);
}


/* =========================================================
   COURSE IMAGE
   ========================================================= */

.catalogue-art {
  position: relative;

  display: flex;
  align-items: end;

  min-height: 210px;

  padding: 18px;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #0c8c78,
      #073b31
    );

  background-size: cover;
  background-position: center;
}


.catalogue-art::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 25%,
      rgba(3, 22, 17, 0.88)
    );
}


.catalogue-icon {
  position: relative;
  z-index: 1;

  display: grid;

  width: 58px;
  height: 58px;

  place-items: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.28);

  border-radius: 17px;

  background:
    rgba(255, 255, 255, 0.13);

  color: #fff;

  font-size: 1.2rem;
  font-weight: 900;

  backdrop-filter: blur(10px);
}


/* =========================================================
   CARD BODY
   ========================================================= */

.catalogue-card-body {
  padding: 22px;
}


.catalogue-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  margin-bottom: 13px;
}


.catalogue-pill {
  padding: 6px 9px;

  border-radius: 999px;

  background: #e5f4ef;

  color: var(--c-green-dark);

  font-size: 0.65rem;

  font-weight: 900;

  letter-spacing: 0.02em;
}


.catalogue-card h3 {
  margin: 0 0 10px;

  color: var(--c-navy);

  font-size: 1.25rem;

  line-height: 1.25;
}


.catalogue-card p {
  display: -webkit-box;

  overflow: hidden;

  margin: 0;

  color: var(--c-soft);

  line-height: 1.6;

  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}


/* =========================================================
   OPEN COURSE
   ========================================================= */

.catalogue-open {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-top: 19px;

  padding-top: 17px;

  border-top: 1px solid var(--c-line);

  color: var(--c-green-dark);

  font-weight: 900;

  text-decoration: none;

  transition: color 0.18s ease;
}


.catalogue-open:hover {
  color: var(--c-green);
}


/* =========================================================
   EMPTY / LOADING
   ========================================================= */

.catalogue-loading,
.catalogue-empty {
  grid-column: 1 / -1;

  padding: 60px 20px;

  border:
    1px dashed
    var(--c-line);

  border-radius: 20px;

  background: #fff;

  color: var(--c-soft);

  text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .catalogue-hero {
    min-height: 430px;

    padding:
      70px 28px
      80px;
  }

  .catalogue-hero h1 {
    font-size: clamp(
      4.7rem,
      15vw,
      7rem
    );
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .catalogue-hero {
    min-height: 360px;

    padding:
      58px 20px
      68px;
  }


  .catalogue-hero h1 {
    font-size: clamp(
      4rem,
      21vw,
      5.7rem
    );
  }


  .catalogue-hero p:last-child {
    font-size: 1rem;
  }


  .catalogue-tools {
    grid-template-columns: 1fr;

    width:
      calc(100% - 28px);

    margin-top: -25px;

    padding: 12px;
  }


  .catalogue-content {
    width:
      calc(100% - 28px);

    margin-top: 44px;
  }


  .catalogue-heading {
    align-items: start;
  }


  .catalogue-heading h2 {
    font-size: 2.8rem;
  }


  .course-grid {
    grid-template-columns: 1fr;
  }


  .catalogue-art {
    min-height: 190px;
  }

}
