
/* =========================================================
   TEACHER RESOURCES
   Scoped to #teacher-resources only
========================================================= */

#teacher-resources {
  padding: 80px 0;
  background:
    linear-gradient(to bottom, rgba(10, 15, 13, 0.98), rgba(17, 24, 20, 0.98)),
    var(--background-color);
  position: relative;
  overflow: hidden;
}

#teacher-resources .teacher-resources-wrapper {
  position: relative;
}

#teacher-resources .teacher-resources-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 3rem 2.5rem 2.75rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

#teacher-resources .teacher-resources-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--accent-color) 0%,
    color-mix(in srgb, var(--accent-color), white 18%) 50%,
    color-mix(in srgb, var(--accent-color), transparent 20%) 100%
  );
}

#teacher-resources .teacher-resources__eyebrow {
  text-align: center;
  font-family: var(--default-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-color), white 15%);
  margin-bottom: 0.85rem;
}

#teacher-resources .teacher-resources__title {
  text-align: center;
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2.2rem);
  line-height: 1.15;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

#teacher-resources .teacher-resources__subtitle {
  text-align: center;
  font-family: var(--default-font);
  font-size: clamp(0.95rem, 0.88rem + 0.28vw, 1.08rem);
  color: color-mix(in srgb, var(--default-color), transparent 12%);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

#teacher-resources .teacher-resources__download {
  margin-bottom: 2rem;
}

#teacher-resources .teacher-resources__download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  background: var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--default-font);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

#teacher-resources .teacher-resources__download-btn:hover {
  background: color-mix(in srgb, var(--accent-color), white 10%);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

#teacher-resources .teacher-resources__content {
  max-width: 72ch;
  margin-inline: auto;
}

#teacher-resources .teacher-resources__questions {
  margin: 0;
  padding-left: 1.35rem;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.1rem);
  line-height: 1.8;
  color: var(--default-color);
}

#teacher-resources .teacher-resources__questions li {
  margin-bottom: 1.15rem;
  padding-left: 0.35rem;
}

#teacher-resources .teacher-resources__questions li::marker {
  font-weight: 700;
  color: color-mix(in srgb, var(--accent-color), white 10%);
}

#teacher-resources #teacher-resources-more[hidden] {
  display: none !important;
}

#teacher-resources .teacher-resources__questions--continued {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#teacher-resources .teacher-resources__actions {
  margin-top: 1.75rem;
}

#teacher-resources .teacher-resources__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 55%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--heading-color);
  font-family: var(--default-font);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

#teacher-resources .teacher-resources__toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

#teacher-resources .teacher-resources__decoration {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent-color), white 10%) 50%,
    transparent 100%
  );
  opacity: 0.7;
}

@media (max-width: 768px) {
  #teacher-resources {
    padding: 60px 0;
  }

  #teacher-resources .teacher-resources-card {
    padding: 2.25rem 1.25rem 2.25rem;
    border-radius: 0.85rem;
  }

  #teacher-resources .teacher-resources__subtitle {
    margin-bottom: 1.35rem;
  }

  #teacher-resources .teacher-resources__download {
    margin-bottom: 1.5rem;
  }

  #teacher-resources .teacher-resources__questions {
    padding-left: 1.1rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  #teacher-resources .teacher-resources__questions li {
    margin-bottom: 1rem;
  }

  #teacher-resources .teacher-resources__download-btn,
  #teacher-resources .teacher-resources__toggle {
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.35;
    padding: 0.8rem 1rem;
  }
}