/* Student/parent learning pages get their own softer page background. */
body.learning-body {
  background: #f7fbff !important;
}

body.learning-body .site-main {
  background:
    radial-gradient(circle at top left, rgba(255, 235, 166, 0.5), transparent 28rem),
    radial-gradient(circle at top right, rgba(184, 224, 255, 0.55), transparent 30rem),
    linear-gradient(180deg, #f7fbff 0%, #fffaf0 48%, #f4fbf7 100%) !important;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

body.learning-body .site-main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 214, 102, 0.18), transparent 13rem),
    radial-gradient(circle at 88% 28%, rgba(106, 178, 255, 0.14), transparent 16rem),
    radial-gradient(circle at 50% 90%, rgba(103, 214, 166, 0.12), transparent 18rem);
  z-index: 0;
}

body.learning-body .site-main > * {
  position: relative;
  z-index: 1;
}
/* WVClassroom Learning-Side Styles
   Student/parent-facing pages: warmer, friendlier, less institutional.
   Applies only to pages using .learning-wrap.
*/

/* Overall page treatment */
.site-main:has(.learning-wrap) {
  background:
    radial-gradient(circle at top left, rgba(255, 237, 174, 0.45), transparent 32rem),
    radial-gradient(circle at top right, rgba(176, 219, 255, 0.45), transparent 34rem),
    linear-gradient(180deg, #f7fbff 0%, #fffaf0 48%, #f7fbff 100%);
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Main learning container */
.learning-wrap {
  max-width: 1120px;
}

/* Hero: make it feel like a student workspace intro */
.learning-wrap .lesson-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96)),
    radial-gradient(circle at top right, rgba(255, 225, 143, 0.45), transparent 20rem);
  border: 1px solid #dbe7ff;
  border-radius: 30px;
  box-shadow: 0 14px 34px rgba(42, 67, 120, 0.12);
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
}

.learning-wrap .lesson-hero::before {
  content: "&#10022;";
  position: absolute;
  top: 1.1rem;
  right: 1.5rem;
  font-size: 3rem;
  color: rgba(255, 195, 74, 0.45);
}

.learning-wrap .lesson-hero h1 {
  max-width: 760px;
  color: #10213f;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
}

.learning-wrap .lesson-hero .lead {
  max-width: 760px;
  color: #465a78;
  font-size: 1.08rem;
}

/* Friendly labels */
.learning-wrap .badge,
.learning-wrap .mini-label {
  background: #fff1b8;
  color: #634700;
  border: 1px solid #ffd66b;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Course/student info chips */
.learning-wrap .course-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.learning-wrap .course-info-strip span {
  background: #ffffff;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  color: #203657;
  box-shadow: 0 5px 14px rgba(47, 74, 126, 0.08);
}

/* All learning cards */
.learning-wrap .section.card {
  background: #ffffff;
  border: 1px solid #dfe9fb;
  border-radius: 28px;
  box-shadow: 0 10px 26px rgba(36, 57, 103, 0.1);
  margin-top: 1.2rem;
}

/* Progress card */
.student-work-page .mastery-card {
  background:
    linear-gradient(135deg, #ecfff4, #ffffff 65%);
  border: 1px solid #b9ebcb;
  border-left: 10px solid #4fb87e;
}

.student-work-page .mastery-card h2 {
  color: #173b28;
}

.student-work-page .mastery-card p {
  color: #244434;
}

/* Assignment card */
.student-work-page .public-content-card {
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.student-work-page .public-content-card h2 {
  color: #13213d;
}
.student-work-page .feedback-card {
  background:
    linear-gradient(135deg, #fff8e6, #ffffff 70%);
  border: 1px solid #f0d28a;
  border-left: 10px solid #f2b84b;
}

.student-work-page .feedback-card h2 {
  color: #5d3f00;
}
.student-work-page .public-rich-text {
  font-size: 1.04rem;
  line-height: 1.7;
  color: #243650;
}

/* Work form card */
.student-work-page .admin-form-card {
  background:
    linear-gradient(180deg, #fffdf7, #ffffff);
  border: 1px solid #f1dca2;
}

.student-work-page .admin-form-card::before {
  content: "My Work Space";
  display: inline-block;
  background: #e9f2ff;
  color: #1d4f8f;
  border: 1px solid #cde2ff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.student-work-page .admin-form label {
  color: #172947;
  font-weight: 800;
  font-size: 1rem;
}

/* Text areas should feel like a notebook, not an admin form */
.student-work-page textarea {
  width: 100%;
  border-radius: 20px;
  border: 1px solid #c8d6ef;
  background:
    linear-gradient(#fffef9, #fffef9) padding-box,
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 1.72rem,
      rgba(112, 132, 170, 0.13) 1.78rem
    );
  color: #15233b;
  font-size: 1.05rem;
  line-height: 1.8;
  padding: 1.1rem;
  box-shadow: inset 0 2px 7px rgba(23, 37, 67, 0.06);
}

.student-work-page textarea:focus {
  outline: 4px solid rgba(75, 131, 255, 0.22);
  border-color: #6d9cff;
}

/* Buttons */
.student-work-page .btnrow {
  gap: 0.75rem;
}

.student-work-page .btn {
  border-radius: 999px;
  font-weight: 800;
}

.student-work-page .btn.primary {
  background: linear-gradient(135deg, #4c63ff, #7957ff);
  box-shadow: 0 10px 22px rgba(73, 88, 220, 0.24);
}

/* Success/error messages */
.student-work-page .admin-alert {
  border-left: 10px solid #d9534f;
}

.student-work-page hr {
  border: 0;
  border-top: 1px solid #dfe9fb;
  margin: 1.4rem 0;
}

/* Mobile */
@media (max-width: 720px) {
  .site-main:has(.learning-wrap) {
    padding-top: 1rem;
  }

  .learning-wrap .lesson-hero {
    border-radius: 22px;
    padding: 1.5rem;
  }

  .learning-wrap .course-info-strip {
    display: grid;
  }

  .learning-wrap .course-info-strip span {
    border-radius: 16px;
  }

  .student-work-page textarea {
    font-size: 1rem;
  }
}