:root {
  --navy: #101a2b;
  --navy-light: #1c2b42;
  --teal: #47c8b2;
  --teal-dark: #238f81;
  --ivory: #f2f5ef;
  --white: #ffffff;
  --muted: #aab5c3;
  --ink: #172338;
  --body-text: #647184;
  --border: #e1e8e3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  animation: pageFadeIn 0.55s ease-out both;
}

img {
  max-width: 100%;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contentRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shared header and footer */

.site-header {
  min-height: 80px;
  padding: 16px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-logo {
  color: var(--white);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
}

.site-logo span {
  color: var(--teal);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #c3ccda;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--teal);
}

.site-footer {
  padding: 18px;
  background: #0b1321;
  color: #8996a8;
  text-align: center;
  font-size: 10px;
}

.site-footer p {
  margin: 0;
}

/* Homepage */

.home-hero {
  min-height: 620px;
  padding: 70px 7%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 45px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(71, 200, 178, 0.15), transparent 34%),
    linear-gradient(125deg, #101a2b, #162a3c);
}

.hero-copy {
  max-width: 590px;
  animation: contentRise 0.65s ease-out both;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: #FFD166 !important;
}

.hero-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1.1;
}

.hero-copy h1 span {
  color: var(--teal);
}

.hero-description {
  max-width: 490px;
  margin: 23px 0 30px;
  color: #b8c3d1;
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.primary-button {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 7px;
  background: var(--teal);
  color: #102129;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button span {
  margin-left: 8px;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #70ddca;
  box-shadow: 0 8px 20px rgba(71, 200, 178, 0.2);
}

.hero-note {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 410px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: contentRise 0.7s 0.12s ease-out both;
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(71, 200, 178, 0.2);
  border-radius: 50%;
}

.orbit-one {
  width: 360px;
  height: 360px;
}

.orbit-two {
  width: 285px;
  height: 285px;
}

.learning-card {
  position: relative;
  width: min(100%, 340px);
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: linear-gradient(145deg, #263950, #17253a);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.3);
  transform: rotate(2deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.learning-card:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.card-topline,
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-mark {
  color: rgba(71, 200, 178, 0.7);
  font-size: 19px;
  font-weight: 700;
}

.course-art {
  position: relative;
  height: 155px;
  margin: 19px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 45%, rgba(71, 200, 178, 0.22), transparent 42%),
    linear-gradient(135deg, #2d405a, #19283d);
}

.art-ring {
  width: 105px;
  height: 105px;
  border: 1px solid rgba(71, 200, 178, 0.7);
  border-radius: 50%;
}

.art-book {
  position: absolute;
  width: 68px;
  height: 80px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px 12px 12px 6px;
  background: linear-gradient(145deg, #67d8c5, #278f85);
  color: #12312f;
  font-size: 30px;
  box-shadow: 9px 8px 0 rgba(16, 26, 43, 0.5);
  transform: rotate(-8deg);
}

.card-caption {
  margin: 0 0 7px;
  color: #93a1b3;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

.learning-card h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.5;
}

.card-bottom {
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b8c3d1;
  font-size: 10px;
}

.card-arrow {
  color: var(--teal);
  font-size: 17px;
}

.floating-label {
  position: absolute;
  z-index: 1;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: #202f44;
  color: #e7edf3;
  font-size: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.label-top {
  top: 45px;
  right: 0;
}

.label-bottom {
  bottom: 45px;
  left: 0;
}

.home-benefits {
  min-height: 75px;
  padding: 20px 7%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 60px;
  background: linear-gradient(90deg, #e5f1ec, #f1f2e9, #e4eef0);
  color: #526074;
  font-size: 11px;
  font-weight: 500;
}

.home-benefits span {
  margin-right: 8px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
}

/* Courses page */

.courses-page {
  min-height: calc(100vh - 140px);
  padding: 58px 7% 75px;
  background:
    radial-gradient(ellipse at 10% 15%, rgba(71, 200, 178, 0.14), transparent 30%),
    linear-gradient(145deg, #f2f5ef, #eaf0f2);
}

.courses-intro {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
  animation: contentRise 0.65s ease-out both;
}

.courses-intro h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.16;
}

.courses-intro h1 span {
  color: var(--teal-dark);
}

.courses-intro > p:last-child {
  margin: 16px auto 0;
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.8;
}

.course-library {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #edf5f1);
  box-shadow: 0 16px 45px rgba(16, 26, 43, 0.07);
  animation: contentRise 0.65s 0.1s ease-out both;
}

.library-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin-bottom: 22px;
}

.library-kicker {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.library-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 23px;
  letter-spacing: -0.7px;
}

.course-count {
  padding: 7px 10px;
  border-radius: 20px;
  background: #e1f3ee;
  color: #287b70;
  font-size: 10px;
  font-weight: 600;
}

.course-search {
  margin-bottom: 24px;
}

.course-search label {
  display: block;
  margin-bottom: 7px;
  color: #526074;
  font-size: 11px;
  font-weight: 600;
}

.course-search input {
  display: block;
  width: 100%;
  max-width: 380px;
  min-height: 43px;
  padding: 12px 14px;
  border: 1px solid #d3dfda;
  border-radius: 7px;
  outline: none;
  background: #fbfdfa;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-search input:focus {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(71, 200, 178, 0.16);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.course-tile {
  overflow: hidden;
  border: 1px solid #e0e8e3;
  border-radius: 10px;
  background: #f9fbf8;
  box-shadow: 0 4px 14px rgba(16, 26, 43, 0.03);
  animation: contentRise 0.5s ease-out both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-tile:nth-child(2) {
  animation-delay: 0.08s;
}

.course-tile:nth-child(3) {
  animation-delay: 0.16s;
}

.course-tile:nth-child(4) {
  animation-delay: 0.24s;
}

.course-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(16, 26, 43, 0.13);
}

.course-tile img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #dcece6;
}

.course-tile-content {
  padding: 16px;
}

.course-category {
  color: var(--teal-dark);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.course-tile h3 {
  min-height: 44px;
  margin: 8px 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.55;
}

.course-tile p {
  min-height: 52px;
  margin: 0 0 16px;
  color: #6b7788;
  font-size: 10px;
  line-height: 1.7;
}

.course-tile a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 11px;
  border-top: 1px solid #e3eae6;
  color: #267f73;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.course-tile a:hover {
  color: var(--navy);
}

.course-tile a span {
  font-size: 15px;
}

.no-results {
  display: none;
  margin: 24px 0 0;
  color: var(--body-text);
  font-size: 13px;
  text-align: center;
}

/* About page */

.about-page {
  background: var(--ivory);
}

.about-intro {
  padding: 65px 7% 70px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(71, 200, 178, 0.15), transparent 32%),
    linear-gradient(125deg, #101a2b, #192a42);
  text-align: center;
  animation: contentRise 0.65s ease-out both;
}

.about-intro .eyebrow {
  color: var(--teal);
}

.about-intro h1 {
  max-width: 800px;
  margin: 0 auto;
  color: var(--white);
  font-size: clamp(39px, 5.5vw, 64px);
  letter-spacing: -3px;
  line-height: 1.13;
}

.about-intro h1 span {
  color: var(--teal);
}

.about-intro > p:last-child {
  max-width: 620px;
  margin: 18px auto 0;
  color: #c0c9d5;
  font-size: 14px;
  line-height: 1.8;
}

.about-story {
  max-width: 1200px;
  margin: 0 auto;
  padding: 75px 7%;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 65px;
  background:
    radial-gradient(ellipse at 90% 50%, rgba(71, 200, 178, 0.09), transparent 35%),
    var(--ivory);
  animation: contentRise 0.65s 0.08s ease-out both;
}

.story-mark {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid #d5e5df;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(71, 200, 178, 0.28), transparent 45%),
    linear-gradient(145deg, #e2f0ea, #d8e8e4);
  color: var(--navy);
  font-size: 100px;
  font-weight: 700;
  letter-spacing: -10px;
}

.story-mark span {
  color: var(--teal-dark);
}

.story-kicker {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.story-copy h2,
.values-heading h2 {
  margin: 0 0 15px;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -1px;
  line-height: 1.25;
}

.story-copy > p:not(.story-kicker) {
  margin: 0 0 14px;
  color: var(--body-text);
  font-size: 12px;
  line-height: 1.9;
}

.about-button {
  display: inline-block;
  margin-top: 9px;
  padding: 12px 17px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.about-button:hover {
  transform: translateY(-2px);
  background: #263a56;
}

.about-button span {
  margin-left: 8px;
  color: var(--teal);
}

.about-values {
  padding: 60px 7%;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  background: linear-gradient(120deg, #e5f0eb, #eaf0ed);
  animation: contentRise 0.65s 0.12s ease-out both;
}

.values-heading {
  max-width: 350px;
}

.value-list {
  max-width: 600px;
}

.value-item {
  padding: 16px 15px;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  border-bottom: 1px solid #dce6e1;
  background: rgba(255, 255, 255, 0.48);
}

.value-item:first-child {
  padding-top: 16px;
  border-radius: 8px 8px 0 0;
}

.value-item:last-child {
  border-radius: 0 0 8px 8px;
}

.value-number {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
}

.value-item h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 13px;
}

.value-item p {
  margin: 0;
  color: #6b7788;
  font-size: 11px;
  line-height: 1.7;
}

.about-cta {
  padding: 50px 7%;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(71, 200, 178, 0.15), transparent 35%),
    var(--navy);
  text-align: center;
}

.about-cta h2 {
  max-width: 600px;
  margin: 0 auto 12px;
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1px;
}

.about-cta .story-kicker {
  color: var(--teal);
}

.about-cta .about-button {
  margin-top: 12px;
  background: var(--teal);
  color: var(--navy);
}

.about-cta .about-button span {
  color: var(--navy);
}

/* Contact page */

.contact-section {
  min-height: calc(100vh - 140px);
  padding: 58px 7% 75px;
  background:
    radial-gradient(ellipse at 10% 15%, rgba(71, 200, 178, 0.14), transparent 30%),
    linear-gradient(145deg, #f2f5ef, #eaf0f2);
}

.contact-heading {
  max-width: 680px;
  margin: 0 auto 38px;
  text-align: center;
  animation: contentRise 0.65s ease-out both;
}

.contact-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 5vw, 54px);
  letter-spacing: -2px;
}

.contact-heading > p:last-child {
  margin: 14px auto 0;
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.8;
}

.contact-layout {
  max-width: 950px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  animation: contentRise 0.65s 0.1s ease-out both;
}

.contact-note,
.contact-form {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(16, 26, 43, 0.07);
}

.contact-note {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(71, 200, 178, 0.16), transparent 40%),
    var(--navy);
}

.contact-form {
  background: linear-gradient(145deg, #ffffff, #edf5f1);
}

.contact-note h2,
.contact-form h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 20px;
}

.contact-note h2 {
  color: var(--white);
}

.contact-note p {
  margin: 0;
  color: #c0c9d5;
  font-size: 12px;
  line-height: 1.9;
}

.contact-form label {
  display: block;
  margin: 0 0 7px;
  color: #526074;
  font-size: 11px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 0 0 17px;
  padding: 12px 13px;
  border: 1px solid #d6e1dc;
  border-radius: 7px;
  outline: none;
  background: #fbfdfa;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(71, 200, 178, 0.16);
}

.contact-form textarea {
  min-height: 135px;
  resize: vertical;
}

.contact-form button {
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: #102129;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  background: #70ddca;
}

#formMessage {
  display: none;
  margin: 15px 0 0;
  color: var(--teal-dark);
  font-size: 11px;
  line-height: 1.7;
}

/* Responsive layouts */

@media (max-width: 950px) {
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .site-header {
    padding-right: 5%;
    padding-left: 5%;
  }

  .site-nav ul {
    gap: 18px;
  }

.home-hero {
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 55px 7% 60px;
  min-height: auto;
  overflow: visible;
}
  .hero-copy {
    margin: 0 auto;
    text-align: center;
  }

  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 380px;
  }

  .about-values {
    gap: 35px;
  }
}

@media (max-width: 700px) {
  .about-intro {
    padding: 48px 7% 52px;
  }

  .about-intro h1 {
    letter-spacing: -1.5px;
  }

  .about-story {
    padding: 48px 7%;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story-mark {
    min-height: 190px;
    font-size: 76px;
  }

  .about-values {
    padding: 45px 7%;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-cta {
    padding: 42px 7%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .courses-page,
  .contact-section {
    padding: 42px 5% 55px;
  }

  .courses-intro {
    margin-bottom: 30px;
  }

  .courses-intro h1 {
    letter-spacing: -1.5px;
  }

  .course-library {
    padding: 20px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-tile {
    display: block;
  }

  .course-tile img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .course-tile-content {
    padding: 13px;
  }

  .course-tile h3,
  .course-tile p {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-top: 15px;
    padding-bottom: 15px;
    flex-direction: column;
    gap: 10px;
  }

  .site-logo {
    font-size: 23px;
  }

  .site-nav ul {
    gap: 16px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero-copy h1 {
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 14px;
  }

.hero-visual {
  min-height: 370px;
  padding-top: 15px;
}

  .learning-card {
    width: 280px;
    padding: 19px;
  }

  .course-art {
    height: 130px;
  }

  .orbit-one {
    width: 300px;
    height: 300px;
  }

  .orbit-two {
    width: 240px;
    height: 240px;
  }

.label-top {
  top: -15px;
  right: 0;
}

  .label-bottom {
    bottom: 20px;
    left: -5px;
  }

  .home-benefits {
    gap: 14px 22px;
  }

  .contact-note,
  .contact-form {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.home-hero {
  min-height: calc(100vh - 155px);
  padding-bottom: 90px;
}
.home-benefits {
  min-height: 75px;
  background: #e5f1ec;
  color: #33485a;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 0.65;
  }

  50% {
    opacity: 1;
  }
}

.label-top {
  animation: gentleFloat 4s ease-in-out infinite;
}

.label-bottom {
  animation: gentleFloat 4.8s 0.5s ease-in-out infinite;
}

.orbit-one {
  animation: softPulse 5s ease-in-out infinite;
}

.orbit-two {
  animation: softPulse 5s 0.8s ease-in-out infinite;
}

.art-book {
  animation: gentleFloat 3.5s ease-in-out infinite;
}

.course-tile img {
  transition: transform 0.4s ease;
}

.course-tile:hover img {
  transform: scale(1.04);
}

.primary-button:active,
.about-button:active,
.contact-form button:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .label-top,
  .label-bottom,
  .orbit-one,
  .orbit-two,
  .art-book {
    animation: none !important;
  }
}

/* Stronger color on the inside pages */

/* Courses page */
.courses-page {
  background:
    radial-gradient(ellipse at 12% 12%, rgba(71, 200, 178, 0.16), transparent 30%),
    linear-gradient(145deg, #101a2b, #1a2d43);
}

.courses-intro h1 {
  color: #ffffff;
}

.courses-intro h1 span {
  color: var(--teal);
}

.courses-intro > p:last-child {
  color: #c0c9d5;
}

.course-library {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #1b2b40, #22374c);
}

.library-heading h2 {
  color: #ffffff;
}

.library-kicker {
  color: var(--teal);
}

.course-count {
  background: rgba(71, 200, 178, 0.14);
  color: #85e2d2;
}

.course-search label {
  color: #d5dce5;
}

.course-search input {
  border-color: #42546a;
  background: #142338;
  color: #ffffff;
}

.course-search input::placeholder {
  color: #aab5c3;
}

.course-tile {
  border-color: #3a4c61;
  background: #26384d;
}

.course-tile h3 {
  color: #ffffff;
}

.course-tile p {
  color: #c0c9d5;
}

.course-tile a {
  border-color: #40536a;
  color: #75ddc9;
}

.course-category {
  color: #75ddc9;
}

.no-results {
  color: #d2dae4;
}

/* About page */
.about-story {
  max-width: none;
  background: linear-gradient(120deg, #d6eee7, #e6f0ea);
}

.about-values {
  background: linear-gradient(125deg, #17263b, #20384c);
}

.values-heading h2 {
  color: #ffffff;
}

.about-values .story-kicker {
  color: #75ddc9;
}

.value-item {
  border-color: #40536a;
  background: rgba(255, 255, 255, 0.07);
}

.value-item h3 {
  color: #ffffff;
}

.value-item p {
  color: #c0c9d5;
}

.value-number {
  color: #75ddc9;
}

/* Contact page */
.contact-section {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(71, 200, 178, 0.16), transparent 30%),
    linear-gradient(145deg, #101a2b, #1a2d43);
}

.contact-heading h1 {
  color: #ffffff;
}

.contact-heading > p:last-child {
  color: #c0c9d5;
}

.contact-form {
  border-color: #3b4c61;
  background: linear-gradient(145deg, #22344a, #1a2b40);
}

.contact-form h2 {
  color: #ffffff;
}

.contact-form label {
  color: #d5dce5;
}

.contact-form input,
.contact-form textarea {
  border-color: #42546a;
  background: #142338;
  color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aab5c3;
}

#formMessage {
  color: #75ddc9;
}

.home-hero .eyebrow {
  color: #FFD166 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #FFD166 !important;
}


.learning-card .course-tag {
  color: #93C5FD !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #93C5FD !important;
}
.form-privacy-note {
  color: #FFD166 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #FFD166 !important;
}

.contact-note a,
.contact-note a:link,
.contact-note a:visited,
.contact-note a:hover,
.contact-note a:active {
    color: #F2F5EF !important;
    -webkit-text-fill-color: #F2F5EF !important;
    text-decoration: none !important;
}

/* ===== Clarafis course filters and responsive cards ===== */

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

.site-nav a:focus-visible,
.course-tile a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #7c8cff;
  outline-offset: 3px;
}

.courses-grid {
  align-items: stretch;
}

.course-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.course-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.course-tile-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
}

.course-tile p {
  flex: 1;
}

.course-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.course-tile-actions a {
  flex: 1;
}

.course-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin-bottom: 22px;
}

.course-filters .course-search {
  flex: 1 1 240px;
  margin: 0;
}

.filter-control {
  flex: 0 1 220px;
}

.filter-control label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.course-filter-select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #42546a;
  border-radius: 7px;
  background: #142338;
  color: white;
  font: inherit;
}

.course-count {
  white-space: nowrap;
}

/* ===== Supabase account page ===== */

.auth-page {
  min-height: 70vh;
  padding: 50px 5%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #101a2b, #1a2d43);
}

.auth-card {
  width: min(100%, 480px);
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid #3b4c61;
  border-radius: 16px;
  background: #22344a;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.auth-card h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(27px, 5vw, 36px);
}

.auth-intro {
  color: #c0c9d5;
  font-size: 13px;
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0;
}

.auth-tab {
  padding: 11px;
  border: 1px solid #42546a;
  border-radius: 8px;
  background: #142338;
  color: white;
  font: inherit;
  cursor: pointer;
}

.auth-tab[aria-selected="true"] {
  background: #47c8b2;
  border-color: #47c8b2;
  color: #102129;
  font-weight: 700;
}

.auth-form label {
  display: block;
  margin: 0 0 7px;
  color: #d5dce5;
  font-size: 12px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #42546a;
  border-radius: 7px;
  background: #142338;
  color: white;
  font: inherit;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 7px;
  background: #47c8b2;
  color: #102129;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-secondary {
  display: block;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: #c0c9d5;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.auth-message {
  min-height: 1.5em;
  color: #85e2d2;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.auth-message.error {
  color: #ffb4b4;
}

.auth-user-panel {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #42546a;
  border-radius: 10px;
  color: white;
  overflow-wrap: anywhere;
}

.auth-user-panel p {
  color: #c0c9d5;
  font-size: 13px;
  line-height: 1.7;
}

.auth-logout {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #597087;
  border-radius: 7px;
  background: transparent;
  color: white;
  cursor: pointer;
}

.auth-hidden {
  display: none !important;
}

/* ===== Tablet and phone layouts ===== */

@media (max-width: 800px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav {
    max-width: 100%;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 14px 5%;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    gap: 8px 14px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .courses-page,
  .contact-section {
    padding: 34px 5% 44px;
  }

  .courses-intro h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .library-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .course-filters {
    align-items: stretch;
  }

  .filter-control {
    flex: 1 1 100%;
  }

  .courses-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .course-tile img {
    aspect-ratio: 16 / 9;
  }

  .course-tile-actions a {
    min-width: 110px;
  }

  .auth-page {
    padding: 30px 5%;
  }
}

@media (max-width: 360px) {
  .site-nav ul {
    gap: 8px 11px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .course-tile-actions {
    flex-direction: column;
  }
}
/* Circular account icon */
.site-nav .nav-account > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #47c8b2;
  text-decoration: none;
}

.profile-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(71, 200, 178, 0.65);
  border-radius: 50%;
  background: rgba(71, 200, 178, 0.10);
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav .nav-account > a:hover .profile-icon {
  background: rgba(71, 200, 178, 0.23);
  transform: translateY(-2px);
}

/* Match Contact navigation alignment to Courses */
@media (min-width: 801px) {
  .site-header .site-nav ul {
    gap: 30px;
  }

  .site-header .site-nav {
    margin-left: auto;
  }
}


/* Fix category dropdown alignment */
.course-filters .course-filter-select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 36px 12px 10px;
  text-align: left;
  text-indent: 0;
  direction: ltr;
  background-position: right 12px center;
}

.course-filters .filter-control {
  width: 100%;
  min-width: 0;
}

.course-filters .course-filter-select {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 34px 12px 12px;
  box-sizing: border-box;
  text-align: left;
  text-indent: 0;
}

.course-filters .course-filter-select {
  padding-left: 10px !important;
  padding-right: 24px !important;
}

.course-filters .course-filter-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.course-filters .course-filter-select {
  font-size: 14px !important;
}

/* Shift navigation slightly to the right */


/* Contact page navigation alignment */
@media (min-width: 801px) {
  body:has(.contact-section) .site-header {
    justify-content: space-between;
  }

  body:has(.contact-section) .site-header .site-nav {
    margin-left: 0;
    transform: translateX(4.75px);
  }
}

.course-tile[hidden] {
    display: none !important;
}

/* Password show/hide button */
.password-input-wrap {
  position: relative;
  width: 100%;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 48px;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 38%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: none;
  background: transparent;
  color: #C4B5FD;
  cursor: pointer;
}

.password-toggle:hover {
  color: #FFFFFF;
}

.password-toggle:focus-visible {
  outline: 2px solid #C4B5FD;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Clarafis - compact 16:9 course thumbnails */

```css
```css
/* ===== CLARAFIS COMPACT COURSE THUMBNAILS ===== */

.course-tile {
    overflow: hidden;
}

/* Consistent course thumbnail sizing */
.course-tile img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #26384d;
}

.course-tile img {
    transition: transform 0.35s ease;
}

.course-tile:hover img {
    transform: scale(1.06);
}

/* Hide thumbnails when their source is empty */
.course-tile img:not([src]),
.course-tile img[src=""] {
    display: none;
}

/* Mobile thumbnails */
@media (max-width: 600px) {
    .course-tile img {
        width: 140px;
        height: auto;
    }
}

/* ===== CLARAFIS LOGO ===== */

.site-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    line-height: 1;
}

.logo-name {
    display: inline-block;
    white-space: nowrap;
    font-size: inherit;
    line-height: 1;
    color: #FFFFFF !important;
}

.logo-name span {
    display: inline;
    color: #42C7B2 !important;
}

.logo-tagline {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #A5A8D5;
    white-space: nowrap;
}

/* Clarafis - Mobile Course Thumbnail Size Fix */
@media (max-width: 600px) {
  .course-tile img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
  }
}
