/* Modern student experience. Scoped to student-facing pages. */
.sp-student-ui {
    --student-primary: #7c3aed;
    --student-primary-dark: #5b21b6;
    --student-accent: #ec4899;
    --student-ink: #172033;
    --student-muted: #6b7280;
    --student-line: #e5e9f1;
    --student-bg: #f5f7fb;
    color: var(--student-ink);
    background-color: var(--student-bg);
}
.sp-student-ui .sidebar { width: 272px; background-color: #111628; box-shadow: 10px 0 34px rgba(15, 23, 42, .15); }
.sp-student-ui .sidebar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 18% 4%, rgba(124,58,237,.24), transparent 27%), radial-gradient(circle at 90% 72%, rgba(236,72,153,.08), transparent 28%); }
.sp-student-ui .sidebar .sidebar-background { opacity: .08; }
.sp-student-ui .sidebar .logo { height: 128px !important; padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sp-student-ui .sidebar .logo::after,
.sp-student-ui .sidebar .user::after { display: none; }
.sp-student-ui .sidebar .logo a { height: 100px !important; display: flex; align-items: center; justify-content: center; }
.sp-student-ui .sidebar .logo img { width: auto; max-width: 180px; max-height: 88px; object-fit: contain; filter: drop-shadow(0 7px 12px rgba(0,0,0,.18)); }
.sp-student-ui .sidebar .sidebar-wrapper { width: 272px; padding: 13px 12px 28px; }
.sp-student-ui .sidebar .user { margin: 0 4px 14px; padding: 11px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.045); }
.sp-student-ui .sidebar .user .photo { width: 39px; height: 39px; margin: 0 10px 0 0; flex: 0 0 39px; border: 2px solid rgba(255,255,255,.72); box-shadow: 0 5px 14px rgba(0,0,0,.2); }
.sp-student-ui .sidebar .user .photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-student-ui .sidebar .user .info { min-width: 0; padding: 0; }
.sp-student-ui .sidebar .user .info > a { padding: 0; }
.sp-student-ui .sidebar .user .info > a > span { overflow: hidden; color: #fff; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sp-student-ui .sidebar .nav { margin-top: 4px; }
.sp-student-ui .sidebar .nav li { margin: 3px 0; }
.sp-student-ui .sidebar .nav li > a { min-height: 45px; margin: 0; padding: 11px 13px; display: flex; align-items: center; border-radius: 10px; color: #bdc5d7; transition: color .18s ease, background .18s ease; }
.sp-student-ui .sidebar .nav li > a:hover,
.sp-student-ui .sidebar .nav li > a:focus { color: #fff; background: rgba(255,255,255,.08); }
.sp-student-ui .sidebar .nav li > a i { width: 25px; margin: 0 12px 0 0; color: #929caf; font-size: 20px; }
.sp-student-ui .sidebar .nav li > a p { width: 100%; margin: 0; display: flex; align-items: center; color: inherit; font-size: 12px; font-weight: 600; }
.sp-student-ui .sidebar .nav .caret { position: static; margin: 0 0 0 auto; }
.sp-student-ui .sidebar .nav li.active > a,
.sp-student-ui .sidebar .nav li.active > [data-toggle="collapse"] { color: #fff; background: linear-gradient(135deg, var(--student-primary), #9333ea); box-shadow: 0 7px 17px rgba(124,58,237,.28); }
.sp-student-ui .sidebar .nav li.active > a i { color: #fff; }
.sp-student-ui .sidebar .nav .collapse,
.sp-student-ui .sidebar .nav .collapsing { margin: 4px 4px 8px 20px; padding: 3px 0 3px 9px; border-left: 1px solid rgba(255,255,255,.1); }
.sp-student-ui .sidebar .nav .collapse li > a { min-height: 37px; padding: 8px 9px; display: grid; grid-template-columns: 29px 1fr; gap: 7px; }
.sp-student-ui .sidebar .nav .collapse .sidebar-mini { width: 29px; margin: 0; position: static; float: none; color: #8e98ac; font-size: 9px; font-weight: 800; text-align: center; }
.sp-student-ui .sidebar .nav .collapse .sidebar-normal { margin: 0; position: static; display: block; color: inherit; font-size: 11px; opacity: 1; transform: none; }
.sp-student-ui .main-panel { width: calc(100% - 272px); min-height: 100vh; background: var(--student-bg); }
.sp-student-ui .main-panel > .content { min-height: calc(100vh - 70px); padding: 86px 20px 38px; background: var(--student-bg); }
.sp-student-ui .main-panel > .content > .container-fluid { max-width: 1480px; margin: 0 auto; }
.sp-student-ui .navbar.navbar-transparent { min-height: 70px; padding-top: 10px; background: rgba(245,247,251,.9) !important; border: 0; backdrop-filter: blur(12px); }
.sp-student-ui .navbar .navbar-text { color: var(--student-ink) !important; font-size: 15px; font-weight: 700; }
.sp-student-ui #minimizeSidebar { color: var(--student-primary); border: 1px solid var(--student-line); background: #fff; box-shadow: 0 5px 15px rgba(15,23,42,.1); }

.sp-student-catalog { max-width: 1400px; margin: 4px auto 35px; }
.sp-student-hero { min-height: 205px; margin-bottom: 24px; padding: 32px 35px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; position: relative; color: #fff; border-radius: 20px; background: linear-gradient(125deg, #11172b, #24204b 58%, #5b21b6); box-shadow: 0 18px 42px rgba(30,27,75,.18); }
.sp-student-hero::before { content: ""; width: 330px; height: 330px; position: absolute; right: -80px; top: -145px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02); }
.sp-student-hero > * { position: relative; z-index: 1; }
.sp-student-hero__eyebrow { display: inline-block; margin-bottom: 8px; color: #c4b5fd; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sp-student-hero h1 { margin: 0 0 8px; color: #fff; font-size: 31px; font-weight: 800; letter-spacing: -.035em; }
.sp-student-hero p { margin: 0; color: #ccd2e2; font-size: 13px; }
.sp-student-hero__summary { display: flex; gap: 10px; }
.sp-student-hero__summary > div { min-width: 128px; padding: 15px 17px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.sp-student-hero__summary strong { color: #fff; font-size: 25px; font-weight: 800; }
.sp-student-hero__summary span { color: #cbd1df; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.sp-catalog-heading { margin: 0 2px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.sp-catalog-heading > div { display: flex; align-items: center; gap: 11px; }
.sp-catalog-heading > div > span { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--student-primary); border-radius: 11px; background: #eee8ff; }
.sp-catalog-heading i { font-size: 20px; }
.sp-catalog-heading h2 { margin: 0 0 2px; color: var(--student-ink); font-size: 18px; font-weight: 800; }
.sp-catalog-heading p { margin: 0; color: var(--student-muted); font-size: 11px; }
.sp-catalog-heading > a { padding: 9px 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--student-primary); border-radius: 9px; background: #eee8ff; font-size: 11px; font-weight: 800; }
.sp-student-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sp-student-course { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--student-line); border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(23,32,51,.075); transition: transform .18s ease, box-shadow .18s ease; }
.sp-student-course:hover { transform: translateY(-3px); box-shadow: 0 17px 38px rgba(23,32,51,.12); }
.sp-student-course__cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #e8ebf1; }
.sp-student-course__cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.sp-student-course:hover .sp-student-course__cover img { transform: scale(1.025); }
.sp-student-course.is-locked .sp-student-course__cover img { filter: saturate(.55) brightness(.75); }
.sp-student-course__type { position: absolute; top: 12px; left: 12px; padding: 5px 9px; color: #fff; border-radius: 20px; background: rgba(17,24,39,.78); font-size: 9px; font-weight: 800; text-transform: uppercase; backdrop-filter: blur(6px); }
.sp-student-course__lock { width: 46px; height: 46px; position: absolute; inset: 50% auto auto 50%; display: flex; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(17,24,39,.63); transform: translate(-50%,-50%); backdrop-filter: blur(6px); }
.sp-student-course__body { padding: 19px; display: flex; flex: 1; flex-direction: column; }
.sp-student-course__body h2 { margin: 0 0 7px; color: var(--student-ink); font-size: 18px; font-weight: 800; line-height: 1.28; letter-spacing: -.02em; }
.sp-student-course__body > p { min-height: 38px; margin: 0 0 14px; color: var(--student-muted); font-size: 11px; line-height: 1.55; }
.sp-student-course__teacher { margin-bottom: 15px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; border-radius: 10px; background: #f7f8fb; }
.sp-student-course__teacher img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.sp-student-course__teacher div { display: flex; flex-direction: column; }
.sp-student-course__teacher strong { color: #39445a; font-size: 10px; }
.sp-student-course__teacher span { color: var(--student-muted); font-size: 9px; }
.sp-student-course__progress { margin-top: auto; margin-bottom: 13px; }
.sp-student-course__progress > div:first-child { margin-bottom: 6px; display: flex; justify-content: space-between; color: var(--student-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.sp-student-course__progress strong { color: var(--student-primary); }
.sp-student-course__track { height: 7px; overflow: hidden; border-radius: 20px; background: #e9ecf2; }
.sp-student-course__track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--student-primary), var(--student-accent)); }
.sp-student-course__action { min-height: 41px; padding: 10px 13px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; border-radius: 9px; background: linear-gradient(135deg, var(--student-primary), #9333ea); font-size: 11px; font-weight: 800; }
.sp-student-course__action:hover,
.sp-student-course__action:focus { color: #fff; box-shadow: 0 7px 16px rgba(124,58,237,.23); }
.sp-student-course__action i { font-size: 17px; }
.sp-student-course__locked-text { margin-top: auto; margin-bottom: 12px; padding: 10px; display: flex; align-items: center; gap: 7px; color: #697487; border-radius: 9px; background: #f5f6f9; font-size: 10px; }
.sp-student-course__locked-text i { font-size: 16px; }
.sp-student-course__purchase { display: flex; gap: 7px; }
.sp-student-course__purchase .sp-student-course__action { flex: 1; }
.sp-student-course__more { padding: 10px 12px; color: var(--student-primary); border: 1px solid #d9cef7; border-radius: 9px; font-size: 10px; font-weight: 800; }
.sp-student-empty { padding: 70px 25px; color: var(--student-muted); border: 1px dashed #ccd2dd; border-radius: 16px; background: #fff; text-align: center; }
.sp-student-empty i { color: #b6a6e8; font-size: 46px; }
.sp-student-empty h2 { margin: 9px 0 4px; color: var(--student-ink); font-size: 19px; font-weight: 800; }
.sp-student-ui .footer { padding: 15px 20px; border-top: 1px solid var(--student-line); background: #fff; }

@media (min-width: 992px) {
    .sp-student-ui.sidebar-mini .sidebar,
    .sp-student-ui.sidebar-mini .sidebar .sidebar-wrapper { width: 80px; }
    .sp-student-ui.sidebar-mini .main-panel { width: calc(100% - 80px); }
    .sp-student-ui.sidebar-mini .sidebar:hover,
    .sp-student-ui.sidebar-mini .sidebar:hover .sidebar-wrapper { width: 272px; }
}
@media (max-width: 1200px) { .sp-student-course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 991px) {
    .sp-student-ui .sidebar,
    .sp-student-ui .sidebar .sidebar-wrapper { width: 272px; }
    .sp-student-ui .main-panel { width: 100%; }
}
@media (max-width: 700px) {
    .sp-student-ui .main-panel > .content { padding: 80px 12px 28px; }
    .sp-student-hero { padding: 25px 20px; align-items: flex-start; flex-direction: column; }
    .sp-student-hero h1 { font-size: 26px; }
    .sp-student-hero__summary { width: 100%; }
    .sp-student-hero__summary > div { min-width: 0; flex: 1; }
    .sp-catalog-heading { align-items: flex-start; }
    .sp-catalog-heading > a { white-space: nowrap; }
    .sp-student-course-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-student-ui .sidebar .nav li > a,
    .sp-student-course,
    .sp-student-course__cover img { transition: none; }
}

/* My courses */
.sp-my-courses-hero { max-width: 1400px; min-height: 190px; margin: 4px auto 25px; padding: 32px 36px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #fff; border-radius: 22px; background: linear-gradient(120deg,#131a31 0%,#23204f 58%,var(--student-primary) 145%); box-shadow: 0 18px 42px rgba(31,31,68,.16); }
.sp-my-courses-hero::after { content: ""; width: 360px; height: 360px; position: absolute; right: -120px; top: -175px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.035),0 0 0 96px rgba(255,255,255,.025); }
.sp-my-courses-hero > div { position: relative; z-index: 1; }
.sp-my-courses-hero__eyebrow { display: block; margin-bottom: 8px; color: #c4b5fd; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.sp-my-courses-hero h1 { margin: 0 0 8px; color: #fff; font-size: clamp(29px,3.2vw,42px); font-weight: 850; letter-spacing: -.04em; }
.sp-my-courses-hero p { max-width: 570px; margin: 0; color: #d8dbea; font-size: 12px; line-height: 1.6; }
.sp-my-courses-hero__summary { min-width: 138px; padding: 18px 20px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.08); backdrop-filter: blur(9px); }
.sp-my-courses-hero__summary strong { color: #fff; font-size: 30px; font-weight: 850; line-height: 1; }
.sp-my-courses-hero__summary span { margin-top: 5px; color: #d7d9e6; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.sp-my-courses-section { max-width: 1400px; margin: 0 auto !important; }
.sp-my-courses-section > .col-md-12 { padding: 0; }
.sp-my-courses-welcome { max-width: 1400px; margin: 0 auto 22px !important; padding: 23px 24px 18px; color: #e8eaf2; border: 1px solid rgba(124,58,237,.22); border-radius: 18px; background: linear-gradient(135deg,#171d33,#27204f); box-shadow: 0 13px 32px rgba(23,32,51,.12); }
.sp-my-courses-welcome h3 { margin-top: 0; color: #fff; font-weight: 800; }
.sp-my-courses-welcome .btn { border: 0; border-radius: 9px; background: var(--student-primary); }
.sp-my-courses-heading { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }
.sp-my-courses-heading > div { display: flex; align-items: center; gap: 11px; }
.sp-my-courses-heading > div > span { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--student-primary); border-radius: 12px; background: #eee8ff; }
.sp-my-courses-heading h2 { margin: 0 0 2px; color: var(--student-ink); font-size: 19px; font-weight: 850; }
.sp-my-courses-heading p { margin: 0; color: var(--student-muted); font-size: 10px; }
.sp-my-courses-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.sp-my-course-item { min-width: 0; display: flex; }
.sp-my-course-card.card { height: 100%; margin: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--student-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(23,32,51,.08); transition: transform .2s ease,box-shadow .2s ease; }
.sp-my-course-card.card:hover { transform: translateY(-4px); box-shadow: 0 19px 42px rgba(23,32,51,.13); }
.sp-my-course-card .card-image { width: auto; height: auto; margin: 0; position: relative; overflow: hidden; border-radius: 0; box-shadow: none; aspect-ratio: 16 / 9; background: #11172b; }
.sp-my-course-card .card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(10,14,29,.35),transparent 55%); pointer-events: none; }
.sp-my-course-card .card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .28s ease; }
.sp-my-course-card:hover .card-image img { transform: scale(1.035); }
.sp-my-course-card__badge { padding: 5px 8px; position: absolute; z-index: 2; top: 11px; left: 11px; display: inline-flex; align-items: center; gap: 4px; color: #fff; border-radius: 999px; background: rgba(17,24,39,.78); font-size: 8px; font-weight: 850; text-transform: uppercase; backdrop-filter: blur(7px); }
.sp-my-course-card__badge i { font-size: 12px; }
.sp-my-course-card .card-content { padding: 18px 19px 8px !important; flex: 1; text-align: left; }
.sp-my-course-card .card-title { min-height: 25px; margin: 0 0 7px; color: var(--student-ink); font-size: 18px; font-weight: 850; line-height: 1.35; }
.sp-my-course-card .card-description { min-height: 44px; color: var(--student-muted); font-size: 10px; }
.sp-my-course-card .card-description h6 { margin: 3px 0 8px; color: #778196; font-size: 9px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.sp-my-course-card .card-description > a { display: inline-flex; align-items: center; gap: 4px; color: var(--student-primary); font-size: 9px; font-weight: 800; }
.sp-my-course-card .card-description > a i { font-size: 15px; }
.sp-my-course-progress { padding: 7px 19px 13px; }
.sp-my-course-progress > div:first-child { margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; color: #7c8799; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.sp-my-course-progress strong { color: var(--student-primary); font-size: 9px; }
.sp-my-course-progress__track { height: 7px; overflow: hidden; border-radius: 999px; background: #e9edf3; }
.sp-my-course-progress__track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--student-primary),#ec4899); }
.sp-my-course-card .card-footer { margin: 0; padding: 0 19px 19px; border: 0; }
.sp-my-course-card .card-footer a { display: block; }
.sp-my-course-card .card-footer .btn { min-height: 43px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg,var(--student-primary),#9333ea); box-shadow: 0 8px 18px rgba(124,58,237,.2); font-size: 9px; font-weight: 850; }
.sp-my-course-card .card-footer .btn i { font-size: 17px; }
.sp-my-course-card.is-locked .card-image img { filter: saturate(.55); opacity: .8; }
.sp-my-course-card.is-locked .card-footer .btn { color: #727b8c; background: #e5e8ee; box-shadow: none; }
.sp-student-course__enroll { margin: 0; width: 100%; }
.sp-student-course__enroll .sp-student-course__action { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.sp-my-courses-empty { grid-column: 1 / -1; padding: 60px 25px; color: var(--student-muted); border: 1px dashed #d8deea; border-radius: 18px; background: #fff; text-align: center; }
.sp-my-courses-empty > i { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; color: var(--student-primary); border-radius: 15px; background: #eee8ff; font-size: 27px; }
.sp-my-courses-empty h3 { margin: 13px 0 4px; color: var(--student-ink); font-size: 18px; font-weight: 800; }
.sp-my-courses-empty p { margin: 0; font-size: 11px; }
.sidebar .user .photo.sp-user-photo--empty {
    overflow: hidden;
    border-color: rgba(255,255,255,.72);
    background: linear-gradient(145deg,var(--student-primary,#7c3aed),#d946b8);
    box-shadow: 0 6px 18px rgba(76,29,149,.3);
}
.sidebar .sp-user-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

@media (max-width: 1180px) { .sp-my-courses-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
    .sp-my-courses-hero { min-height: 230px; padding: 27px 22px; align-items: flex-start; flex-direction: column; }
    .sp-my-courses-hero__summary { min-width: 0; width: 100%; padding: 12px 15px; }
    .sp-my-courses-grid { grid-template-columns: 1fr; }
    .sp-my-courses-heading p { display: none; }
}

/* Nova composição da página de aula e materiais do conteúdo. */
.sp-classroom-ui .main-panel > .content > .container-fluid { max-width: 1320px; }
.sp-classroom-ui .sp-classroom-card {
    border-color: #dfe5ef !important;
    background: #fff;
    box-shadow: 0 22px 58px rgba(23, 32, 51, .1) !important;
}
.sp-classroom-ui .sp-classroom-card > .card-content { padding: clamp(18px, 2.4vw, 32px) !important; }
.sp-classroom-ui .sp-watch-header {
    margin: 0 0 22px;
    padding: 0 0 20px;
    align-items: center;
}
.sp-classroom-ui .sp-watch-header h1 { max-width: 760px; font-size: clamp(25px, 2.5vw, 38px); line-height: 1.12; }
.sp-classroom-ui .sp-watch-eyebrow { color: #6d35e8; }
.sp-classroom-ui .sp-watch-back { min-height: 38px; padding: 8px 13px; background: #fff; }
.sp-classroom-ui .sp-watch-content .embed-responsive,
.sp-classroom-ui .sp-watch-content #div_video {
    border-radius: 18px;
    box-shadow: 0 20px 42px rgba(12, 17, 34, .2);
}
.sp-classroom-ui .sp-watch-content .tab-content > #infos { margin-top: 26px; padding: 22px 24px; }
.sp-classroom-ui .sp-classroom-card #div_titulo { padding: 24px 2px 9px; }
.sp-classroom-ui .sp-classroom-card #div_titulo h3 { font-size: clamp(21px, 2vw, 28px); }
.sp-classroom-ui .sp-mark-complete {
    min-height: 40px;
    margin: 10px 0 10px 10px !important;
    padding: 9px 15px !important;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(245, 158, 11, .2);
}
.sp-classroom-ui .sp-watch-rating { margin-top: 10px; }
.sp-classroom-ui .sp-watch-notes { margin-top: 18px; box-shadow: 0 8px 24px rgba(23, 32, 51, .045); }
.sp-classroom-ui .sp-classroom-card .pager { clear: both; }

.sp-watch-resources {
    margin: 24px 0 4px;
    padding: 18px;
    border: 1px solid #dfe5ef;
    border-radius: 16px;
    background: linear-gradient(135deg, #fbfaff, #f5f7fb);
}
.sp-watch-resources__header { margin-bottom: 14px; display: flex; align-items: center; gap: 11px; }
.sp-watch-resources__header > span {
    width: 42px; height: 42px; flex: 0 0 42px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--student-primary); border-radius: 12px; background: #eee8ff;
}
.sp-watch-resources__header > span i { font-size: 21px; }
.sp-watch-resources__header > div { min-width: 0; flex: 1; }
.sp-watch-resources__header h3 { margin: 0 0 2px; color: var(--student-ink); font-size: 16px; font-weight: 850; }
.sp-watch-resources__header p { margin: 0; color: var(--student-muted); font-size: 10px; }
.sp-watch-resources__header small { padding: 6px 10px; color: #677286; border-radius: 999px; background: #e9ecf2; font-size: 9px; font-weight: 800; }
.sp-watch-resources__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp-watch-resource {
    min-width: 0; min-height: 70px; padding: 12px;
    display: flex; align-items: center; gap: 11px;
    border: 1px solid #e1e6ef; border-radius: 13px; background: #fff;
    box-shadow: 0 5px 16px rgba(23, 32, 51, .045);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sp-watch-resource:hover { border-color: #d6c8ff; transform: translateY(-1px); box-shadow: 0 9px 22px rgba(23, 32, 51, .075); }
.sp-watch-resource__icon {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--student-primary); border-radius: 11px; background: #f0eaff;
}
.sp-watch-resource__icon i { font-size: 20px; }
.sp-watch-resource__copy { min-width: 0; flex: 1; }
.sp-watch-resource__copy strong,
.sp-watch-resource__copy span { display: block; overflow: hidden; text-overflow: ellipsis; }
.sp-watch-resource__copy strong { color: var(--student-ink); font-size: 11px; font-weight: 800; white-space: nowrap; }
.sp-watch-resource__copy span { margin-top: 2px; color: var(--student-muted); font-size: 9px; line-height: 1.4; }
.sp-watch-resource > a {
    min-height: 34px; padding: 7px 10px;
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--student-primary); border: 1px solid #d9ccff;
    border-radius: 9px; background: #f7f3ff;
    font-size: 9px; font-weight: 850; white-space: nowrap;
}
.sp-watch-resource > a:hover { color: #fff; border-color: var(--student-primary); background: var(--student-primary); }
.sp-watch-resource > a i { font-size: 14px; }
.sp-watch-resource.is-audio { flex-wrap: wrap; }
.sp-watch-resource audio { width: 100%; height: 34px; margin-top: 2px; }

@media (max-width: 760px) {
    .sp-classroom-ui .sp-watch-header { align-items: flex-start; }
    .sp-classroom-ui .sp-watch-header-actions { width: 100%; }
    .sp-classroom-ui .sp-watch-back { flex: 1; }
    .sp-classroom-ui .sp-mark-complete { width: 100%; margin: 10px 0 !important; }
    .sp-watch-resources { padding: 14px; }
    .sp-watch-resources__header { align-items: flex-start; flex-wrap: wrap; }
    .sp-watch-resources__header small { margin-left: 53px; }
    .sp-watch-resources__grid { grid-template-columns: 1fr; }
}

/* Final classroom overrides: legacy rules below must not stretch the content tabs. */
@media (min-width: 992px) {
    .sp-classroom-card .sp-watch-tabs .nav.nav-pills > li {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
    }
    .sp-classroom-card .sp-watch-tabs .nav.nav-pills > li > a {
        min-width: 112px;
        min-height: 40px !important;
        padding: 9px 15px !important;
    }
}

/* Modern lesson player */
.sp-classroom-card { overflow: hidden; border: 1px solid #e2e7f0 !important; border-radius: 20px !important; box-shadow: 0 18px 45px rgba(23,32,51,.09) !important; }
.sp-classroom-card > .card-content { padding: 24px !important; }
.sp-watch-header { margin-bottom: 20px; padding: 4px 2px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e8ecf3; }
.sp-watch-eyebrow { display: block; margin-bottom: 7px; color: var(--student-primary); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.sp-watch-header h1 { margin: 0 0 6px; color: var(--student-ink); font-size: clamp(24px, 2.3vw, 34px); font-weight: 850; letter-spacing: -.035em; }
.sp-watch-header p { margin: 0; color: var(--student-muted); font-size: 12px; }
.sp-watch-duration { flex: 0 0 auto; padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px; color: #59657a; border: 1px solid #e1e6ef; border-radius: 999px; background: #f8fafc; font-size: 11px; font-weight: 800; }
.sp-watch-duration i { font-size: 16px; }
.sp-watch-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.sp-watch-back{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:7px 11px;color:var(--student-primary)!important;border:1px solid #ded6ff;border-radius:999px;background:#f7f3ff;font-size:10px;font-weight:850;text-decoration:none!important}.sp-watch-back:hover{background:#eee7ff}.sp-watch-back i{font-size:16px}.sp-mark-complete{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-width:170px;transition:.2s}.sp-mark-complete.is-complete{cursor:default}.sp-mark-complete .material-icons{font-size:17px}.sp-button-spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:sp-button-spin .7s linear infinite}@keyframes sp-button-spin{to{transform:rotate(360deg)}}
.sp-watch-layout { display: block !important; margin: 0 !important; }
.sp-watch-edit{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:7px 12px;color:#fff!important;border:1px solid #7040dc;border-radius:999px;background:linear-gradient(135deg,#7040dc,#9333ea);box-shadow:0 6px 15px rgba(112,64,220,.2);font-size:10px;font-weight:850;text-decoration:none!important}.sp-watch-edit:hover,.sp-watch-edit:focus{color:#fff!important;background:linear-gradient(135deg,#5e2fc9,#8126d5);transform:translateY(-1px)}.sp-watch-edit i{font-size:15px}
.sp-watch-tabs { width: 100% !important; padding: 0 !important; float: none !important; }
.sp-watch-tabs .nav { margin: 0 0 20px !important; padding: 6px !important; display: flex !important; gap: 6px; border: 1px solid #e2e7f0; border-radius: 14px; background: #f7f8fb; }
.sp-watch-tabs .nav > li { width: auto !important; margin: 0 !important; flex: 0 0 auto; }
.sp-watch-tabs .nav > li > a { min-height: 40px !important; margin: 0 !important; padding: 9px 15px !important; display: flex !important; align-items: center; gap: 7px; color: #657086 !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; box-shadow: none !important; font-size: 11px !important; font-weight: 800 !important; text-transform: none !important; }
.sp-watch-tabs .nav > li > a i { margin: 0 !important; font-size: 18px !important; }
.sp-watch-tabs .nav > li.active > a { color: #fff !important; background: linear-gradient(135deg, var(--student-primary), #9333ea) !important; box-shadow: 0 7px 16px rgba(124,58,237,.22) !important; }
.sp-watch-content { width: 100% !important; padding: 0 !important; float: none !important; }
.sp-watch-content .tab-content { padding: 0 !important; }
.sp-watch-tabs,
.sp-watch-tabs-mobile { display: none !important; }
.sp-watch-content .tab-content > #video-aula,
.sp-watch-content .tab-content > #infos {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.sp-watch-content .tab-content > #infos {
    margin-top: 22px;
    padding: 18px 20px;
    color: #4f5b70;
    border: 1px solid #e3e7ef;
    border-radius: 14px;
    background: #fafbfe;
    font-size: 11px;
    line-height: 1.65;
}
.sp-watch-content .tab-content > #infos h4 { margin: 0 0 10px; color: var(--student-ink); font-size: 15px; }
.sp-watch-content .embed-responsive, .sp-watch-content #div_video { overflow: hidden; border-radius: 16px; background: #0c1122; box-shadow: 0 14px 30px rgba(12,17,34,.16); }
.sp-watch-content .embed-responsive iframe, .sp-watch-content #div_video iframe { border: 0; }
.sp-watch-content #video-aula,
.sp-watch-content .sp-lesson-video-slot,
.sp-watch-content .sp-video-actual,
.sp-watch-content .h5p-content,
.sp-watch-content .h5p-iframe-wrapper,
.sp-watch-content .wp-video,
.sp-watch-content .videopress-player {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.sp-watch-content .sp-lesson-responsive-media { overflow: hidden; }
.sp-watch-content .sp-lesson-responsive-media iframe,
.sp-watch-content .sp-lesson-responsive-media video,
.sp-watch-content .sp-lesson-responsive-media embed,
.sp-watch-content .sp-lesson-responsive-media object,
.sp-watch-content .sp-lesson-responsive-media .h5p-iframe,
.sp-watch-content .sp-lesson-responsive-media .wp-video-shortcode {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.sp-watch-content .sp-lesson-responsive-media img,
.sp-watch-content .sp-lesson-responsive-media canvas,
.sp-watch-content .sp-lesson-responsive-media svg { max-width: 100% !important; }
.sp-watch-content .sp-lesson-fixed-ratio {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 0 !important;
    background: #0c1122;
}
.sp-watch-content .sp-lesson-fixed-ratio .sp-video-actual,
.sp-watch-content .sp-lesson-fixed-ratio .jetpack-videopress-player,
.sp-watch-content .sp-lesson-fixed-ratio .wp-video,
.sp-watch-content .sp-lesson-fixed-ratio iframe,
.sp-watch-content .sp-lesson-fixed-ratio video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
}
.sp-watch-content .sp-lesson-fixed-ratio iframe,
.sp-watch-content .sp-lesson-fixed-ratio video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    border: 0 !important;
}
.sp-classroom-card #div_titulo { width: auto; padding: 20px 0 8px; float: none; }
.sp-classroom-card #div_titulo h3 { margin: 0; color: var(--student-ink); font-size: 24px; font-weight: 850; letter-spacing: -.025em; }
.sp-watch-rating { min-width: 245px; margin: 12px 0 12px auto; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #e4e8f0; border-radius: 14px; background: #fafbfc; }
.sp-watch-rating__copy { display: flex; flex-direction: column; gap: 2px; }
.sp-watch-rating__copy strong { color: var(--student-ink); font-size: 11px; }
.sp-watch-rating__copy span { color: var(--student-muted); font-size: 9px; white-space: nowrap; }
.sp-watch-stars { display: flex; flex-direction: row; gap: 2px; }
.sp-watch-star { width: 27px; height: 31px; padding: 0; color: #cbd2df; border: 0; outline: 0; background: transparent; font-size: 25px; line-height: 1; transition: color .14s ease, transform .14s ease; }
.sp-watch-star:hover { transform: translateY(-2px) scale(1.06); }
.sp-watch-star.is-active { color: #f6ad18; text-shadow: 0 3px 8px rgba(246,173,24,.24); }
.sp-watch-notes { margin-top: 24px; padding: 20px; display: block !important; border: 1px solid #e3e7ef; border-radius: 16px; background: linear-gradient(180deg, #fff, #fafbfe); }
.sp-watch-notes__header { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.sp-watch-notes__header > span { width: 42px; height: 42px; flex: 0 0 42px; display: flex; align-items: center; justify-content: center; color: var(--student-primary); border-radius: 11px; background: #eee8ff; }
.sp-watch-notes__header i { font-size: 21px; }
.sp-watch-notes__header h3 { margin: 0 0 3px; color: var(--student-ink); font-size: 16px; font-weight: 850; }
.sp-watch-notes__header p { margin: 0; color: var(--student-muted); font-size: 10px; line-height: 1.45; }
.sp-watch-notes textarea.form-control,
.sp-watch-notes textarea.form-control:hover,
.sp-watch-notes textarea.form-control:focus,
.sp-watch-notes textarea.form-control:active {
    min-height: 130px;
    padding: 14px 16px !important;
    resize: vertical;
    border: 1px solid #dce2ec !important;
    border-radius: 12px !important;
    background: #fff !important;
    background-image: none !important;
    color: #263247 !important;
    caret-color: #7c3aed;
    -webkit-text-fill-color: #263247 !important;
    box-shadow: none !important;
    outline: 0 !important;
}
.sp-watch-notes textarea.form-control:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .11) !important;
}
.sp-watch-notes textarea.form-control::placeholder {
    color: #98a2b3 !important;
    opacity: 1;
}
.sp-watch-notes__actions { margin-top: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.sp-watch-notes__status {
    min-height: 34px;
    margin-right: auto;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7d8798;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
}
.sp-watch-notes__status:empty { min-height: 0; padding: 0; }
.sp-watch-notes__status i.material-icons {
    width: 17px !important;
    height: 17px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: currentColor !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 17px !important;
    line-height: 1 !important;
}
.sp-watch-notes__status.is-success { color: #137a45; border-color: #cdeedc; background: #effbf4; }
.sp-watch-notes__status.is-error { color: #bd3140; border-color: #ffd7dc; background: #fff3f5; }
@media (max-width: 560px) {
    .sp-watch-notes__actions { align-items: stretch; flex-direction: column; }
    .sp-watch-notes__status { margin: 0; justify-content: center; }
    .sp-watch-notes__actions .sp-watch-notes__save { width: 100%; justify-content: center; }
}
.sp-watch-notes__actions .btn { margin: 0; padding: 10px 15px; display: inline-flex; align-items: center; gap: 6px; }
.sp-watch-notes__actions .btn i { font-size: 17px; }
.sp-watch-notes__actions .sp-watch-notes__save {
    min-height: 42px;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, var(--student-primary, #7c3aed), #a32fe5) !important;
    color: #fff !important;
    box-shadow: 0 9px 21px rgba(124, 58, 237, .24) !important;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .01em;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.sp-watch-notes__actions .sp-watch-notes__save:hover,
.sp-watch-notes__actions .sp-watch-notes__save:focus {
    color: #fff !important;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 12px 27px rgba(124, 58, 237, .32) !important;
}
.sp-watch-notes__actions .sp-watch-notes__save:active {
    transform: translateY(0);
}
.sp-watch-notes__actions .sp-watch-notes__save.is-saving { opacity: .72; cursor: wait; transform: none; }
.sp-classroom-card .pager { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e8ecf3; }
.sp-classroom-card .pager a { padding: 9px 15px; color: var(--student-primary); border-color: #ded6ff; border-radius: 999px; font-size: 10px; font-weight: 800; }
@media (max-width: 991px) {
    .sp-watch-tabs-mobile .list-inline { margin: 0 0 14px; padding: 6px; gap: 5px; border: 1px solid #e2e7f0; border-radius: 12px; background: #f7f8fb; }
    .sp-watch-tabs-mobile .list-inline > li { padding: 0; }
    .sp-watch-tabs-mobile a { width: 42px; height: 38px; display: flex; align-items: center; justify-content: center; color: #667085; border-radius: 9px; }
    .sp-watch-tabs-mobile li.active a { color: #fff; background: var(--student-primary); }
}
@media (max-width: 700px) {
    .sp-classroom-card > .card-content { padding: 15px !important; }
    .sp-watch-header { align-items: flex-start; flex-direction: column; }
    .sp-watch-header-actions{width:100%;justify-content:flex-start}.sp-watch-back{flex:1;justify-content:center}
    .sp-watch-header p { line-height: 1.55; }
    .sp-watch-rating { width: 100%; min-width: 0; margin-left: 0; }
    .sp-watch-star { width: 24px; font-size: 22px; }
    .sp-watch-notes { padding: 16px; }
}

/* Classroom page and its dedicated lesson sidebar. */
.sp-classroom-ui .sidebar-wrapper > .nav > div > ul.nav,
.sp-classroom-ui .sidebar-wrapper > .nav [href*="assistir-aula"] { margin-top: 3px; }
.sp-classroom-ui .sidebar-wrapper > .nav > div > ul.nav { padding: 5px 0 15px; }
.sp-classroom-ui .sidebar-wrapper a[href*="assistir-aula"] { min-height: 42px; padding: 9px 11px; }
.sp-classroom-ui .sidebar-wrapper a[href*="assistir-aula"] p { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 6px; align-items: start; color: inherit; font-size: 11px; line-height: 1.45; }
.sp-classroom-ui .sidebar-wrapper a[href*="assistir-aula"] .sidebar-mini { width: 28px; margin: 0; color: #929caf; font-size: 9px; font-weight: 800; text-align: center; }
.sp-classroom-ui .sidebar-wrapper li.active > a[href*="assistir-aula"] { color: #fff; background: linear-gradient(135deg, var(--student-primary), #9333ea); box-shadow: 0 7px 17px rgba(124,58,237,.25); }
.sp-classroom-ui .sidebar-wrapper li.active > a[href*="assistir-aula"] .sidebar-mini { color: #fff; }
.sp-classroom-ui .sidebar .sidebar-wrapper { padding-bottom: 45px; }
.sp-classroom-ui .main-panel > .content.sp-classroom { padding-top: 82px; }
.sp-classroom > .container-fluid { max-width: 1520px; margin: 0 auto; }
.sp-classroom > .container-fluid > .row { margin-left: 0; margin-right: 0; }
.sp-classroom-breadcrumb { margin: 0 0 15px; overflow-x: auto; scrollbar-width: none; }
.sp-classroom-breadcrumb::-webkit-scrollbar { display: none; }
.sp-classroom-breadcrumb .breadcrumb { margin: 0; padding: 11px 15px; display: flex; align-items: center; flex-wrap: nowrap; gap: 7px; min-width: max-content; border: 1px solid var(--student-line); border-radius: 11px; background: #fff; box-shadow: 0 5px 16px rgba(23,32,51,.045); }
.sp-classroom-breadcrumb .breadcrumb > li { color: #7b8597 !important; font-size: 10px; }
.sp-classroom-breadcrumb .breadcrumb > li + li::before { color: #b0b7c4; }
.sp-classroom-breadcrumb a { color: var(--student-primary); font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.sp-classroom-breadcrumb a .material-icons { font-size: 14px; }
.sp-classroom-card { margin: 0 0 22px !important; overflow: hidden; border: 1px solid var(--student-line); border-radius: 17px; background: #fff; box-shadow: 0 12px 34px rgba(23,32,51,.085); }
.sp-classroom-card > .card-content { padding: 18px !important; }
.sp-classroom-card .nav-pills { margin: 0 0 15px; padding: 5px; display: flex; gap: 5px; border: 1px solid var(--student-line); border-radius: 12px; background: #f8f9fc; }
.sp-classroom-card .nav-pills > li { margin: 0; flex: 1; }
.sp-classroom-card .nav-pills > li > a { min-height: 50px; margin: 0; padding: 9px 11px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #667185; border-radius: 9px; font-size: 10px; font-weight: 800; text-align: center; }
.sp-classroom-card .nav-pills > li > a i { margin: 0; color: inherit; font-size: 19px; }
.sp-classroom-card .nav-pills > li.active > a,
.sp-classroom-card .nav-pills > li.active > a:hover,
.sp-classroom-card .nav-pills > li.active > a:focus { color: #fff; background: linear-gradient(135deg, var(--student-primary), #9333ea) !important; box-shadow: 0 7px 16px rgba(124,58,237,.22); }
.sp-classroom-card .tab-content { padding: 0; }
.sp-classroom-card .embed-responsive { overflow: hidden; border-radius: 13px; background: #080b14; box-shadow: 0 13px 30px rgba(15,23,42,.16); }
.sp-classroom-card iframe.embed-responsive-item,
.sp-classroom-card #div_video iframe { border: 0; }
.sp-classroom-card #div_titulo { padding: 17px 2px 5px; }
.sp-classroom-card #div_titulo h1,
.sp-classroom-card #div_titulo h2,
.sp-classroom-card #div_titulo h3 { color: var(--student-ink); font-weight: 800; letter-spacing: -.025em; }
.sp-classroom-card #btshow { padding-top: 10px; }
.sp-classroom-card .btn { border-radius: 9px; font-size: 10px; font-weight: 800; box-shadow: 0 5px 14px rgba(23,32,51,.1); }
.sp-classroom-card .btn-success,
.sp-classroom-card .btn-primary { border-color: transparent; background: linear-gradient(135deg, var(--student-primary), #9333ea); }
.sp-classroom-card .btn-warning { border-color: transparent; background: #f59e0b; }
.sp-classroom-card textarea.form-control,
.sp-classroom-card input.form-control { padding: 11px 12px; border: 1px solid #dce1ea; border-radius: 10px; background: #fbfcfe; background-image: none; }
.sp-classroom-card textarea.form-control:focus,
.sp-classroom-card input.form-control:focus { border-color: var(--student-primary); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.sp-classroom-card #anotar { padding: 18px; border: 1px solid var(--student-line); border-radius: 12px; background: #fbfcfe; }
.sp-classroom-card .alert { border: 0; border-radius: 10px; box-shadow: none; }
.sp-classroom .card:not(.sp-classroom-card) { border: 1px solid var(--student-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(23,32,51,.07); }
.sp-classroom .card:not(.sp-classroom-card) > .card-content { padding: 22px; }
.sp-classroom .nav-tabs,
.sp-classroom .nav-pills:not(.nav-pills-icons) { border-bottom-color: var(--student-line); }
.sp-classroom .list-group-item { border-color: var(--student-line); }

@media (min-width: 992px) {
    .sp-classroom-card > .card-content > .row > .col-md-2 { width: 100%; float: none; }
    .sp-classroom-card > .card-content > .row > .col-md-10 { width: 100%; float: none; }
    .sp-classroom-card .nav-pills.nav-stacked > li { float: none; }
}
@media (max-width: 767px) {
    .sp-classroom-card > .card-content { padding: 10px !important; }
    .sp-classroom-card .list-inline { margin: 0 0 10px; padding: 7px; display: flex; justify-content: center; gap: 9px; border-radius: 10px; background: #f5f6f9; }
    .sp-classroom-card .list-inline > li { padding: 0; }
    .sp-classroom-card .list-inline a { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--student-primary); border-radius: 9px; background: #eee8ff; }
}

/* Direct lesson library. */
.sp-learning-library { max-width: 1400px; margin: 2px auto 38px; }
.sp-learning-breadcrumb { margin: 0 2px 15px; display: flex; align-items: center; gap: 8px; color: #929bad; font-size: 10px; }
.sp-learning-breadcrumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--student-primary); font-weight: 800; }
.sp-learning-breadcrumb a i { font-size: 16px; }
.sp-learning-breadcrumb strong { overflow: hidden; color: #596579; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sp-learning-hero { min-height: 310px; margin-bottom: 25px; overflow: hidden; position: relative; display: flex; align-items: flex-end; border-radius: 20px; background: #11172b; box-shadow: 0 18px 42px rgba(30,27,75,.17); }
.sp-learning-hero > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: .48; }
.sp-learning-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,17,34,.97) 0%, rgba(12,17,34,.76) 52%, rgba(12,17,34,.3) 100%), linear-gradient(0deg, rgba(12,17,34,.55), transparent 55%); }
.sp-learning-hero__content { max-width: 690px; padding: 35px; position: relative; z-index: 1; color: #fff; }
.sp-learning-hero__eyebrow { display: inline-block; margin-bottom: 8px; color: #c4b5fd; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sp-learning-hero h1 { margin: 0 0 9px; color: #fff; font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.sp-learning-hero__content > p { max-width: 570px; margin: 0 0 18px; color: #d1d6e3; font-size: 12px; line-height: 1.6; }
.sp-learning-hero__content > a { padding: 11px 16px; display: inline-flex; align-items: center; gap: 6px; color: #fff; border-radius: 9px; background: linear-gradient(135deg, var(--student-primary), #9333ea); font-size: 11px; font-weight: 800; box-shadow: 0 8px 18px rgba(124,58,237,.28); }
.sp-learning-hero__content > a i { font-size: 18px; }
.sp-learning-hero__progress { width: 215px; padding: 16px; position: absolute; z-index: 2; right: 25px; bottom: 25px; color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(17,24,39,.63); backdrop-filter: blur(10px); }
.sp-learning-hero__progress > div:first-child { margin-bottom: 9px; display: flex; align-items: baseline; gap: 5px; }
.sp-learning-hero__progress strong { font-size: 25px; font-weight: 800; }
.sp-learning-hero__progress span { color: #cbd1df; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.sp-learning-hero__track { height: 7px; margin-bottom: 7px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.16); }
.sp-learning-hero__track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #a78bfa, #f472b6); }
.sp-learning-hero__progress small { color: #c4cad8; font-size: 9px; }
.sp-lessons-heading { margin: 0 2px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.sp-lessons-heading > div { display: flex; align-items: center; gap: 11px; }
.sp-lessons-heading > div > span { width: 41px; height: 41px; display: inline-flex; align-items: center; justify-content: center; color: var(--student-primary); border-radius: 11px; background: #eee8ff; }
.sp-lessons-heading i { font-size: 20px; }
.sp-lessons-heading h2 { margin: 0 0 2px; color: var(--student-ink); font-size: 18px; font-weight: 800; }
.sp-lessons-heading p { margin: 0; color: var(--student-muted); font-size: 11px; }
.sp-lessons-heading > strong { padding: 6px 10px; color: #687386; border-radius: 20px; background: #e9ecf2; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.sp-lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.sp-lesson-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--student-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(23,32,51,.075); transition: transform .18s ease, box-shadow .18s ease; }
.sp-lesson-card:hover { transform: translateY(-3px); box-shadow: 0 17px 38px rgba(23,32,51,.12); }
.sp-lesson-card__cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: block; background: #11172b; }
.sp-lesson-card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,12,25,.58), transparent 55%); }
.sp-lesson-card__cover > img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.sp-lesson-card:hover .sp-lesson-card__cover > img { transform: scale(1.035); }
.sp-lesson-card__play { width: 52px; height: 52px; position: absolute; z-index: 2; inset: 50% auto auto 50%; display: flex; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(17,24,39,.58); transform: translate(-50%,-50%); backdrop-filter: blur(7px); transition: transform .18s ease, background .18s ease; }
.sp-lesson-card:hover .sp-lesson-card__play { background: var(--student-primary); transform: translate(-50%,-50%) scale(1.07); }
.sp-lesson-card__play i { margin-left: 2px; font-size: 29px; }
.sp-lesson-card__cover > small { padding: 5px 8px; position: absolute; z-index: 2; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; color: #fff; border-radius: 20px; background: rgba(17,24,39,.75); font-size: 9px; font-weight: 700; }
.sp-lesson-card__cover > small i { font-size: 12px; }
.sp-lesson-card__cover > strong { padding: 5px 8px; position: absolute; z-index: 2; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; color: #fff; border-radius: 20px; background: rgba(22,163,74,.9); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.sp-lesson-card__cover > strong i { font-size: 12px; }
.sp-lesson-card__body { padding: 17px 18px 18px; display: flex; flex: 1; flex-direction: column; }
.sp-lesson-card__body > span { margin-bottom: 5px; color: var(--student-primary); font-size: 9px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.sp-lesson-card__body h2 { min-height: 42px; margin: 0 0 7px; font-size: 16px; font-weight: 800; line-height: 1.3; }
.sp-lesson-card__body h2 a { color: var(--student-ink); }
.sp-lesson-card__body > p { min-height: 36px; margin: 0 0 15px; color: var(--student-muted); font-size: 10px; line-height: 1.55; }
.sp-lesson-card__action { margin-top: auto; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; color: var(--student-primary); border-top: 1px solid #edf0f5; font-size: 10px; font-weight: 800; }
.sp-lesson-card__action i { font-size: 17px; transition: transform .18s ease; }
.sp-lesson-card__action:hover i { transform: translateX(3px); }
.sp-lesson-card.is-complete { border-color: #ccebd7; }
.sp-learning-message { max-width: 650px; margin: 80px auto; padding: 55px 30px; color: var(--student-muted); border: 1px solid var(--student-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(23,32,51,.08); text-align: center; }
.sp-learning-message > i { color: var(--student-primary); font-size: 48px; }
.sp-learning-message h1 { margin: 10px 0 6px; color: var(--student-ink); font-size: 24px; font-weight: 800; }
.sp-learning-message p { margin-bottom: 17px; }
.sp-learning-message a { padding: 10px 14px; display: inline-block; color: #fff; border-radius: 9px; background: var(--student-primary); font-size: 10px; font-weight: 800; }

@media (max-width: 1200px) { .sp-lesson-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) {
    .sp-learning-hero { min-height: 410px; align-items: flex-start; }
    .sp-learning-hero__content { padding: 28px 22px; }
    .sp-learning-hero h1 { font-size: 28px; }
    .sp-learning-hero__progress { width: auto; left: 20px; right: 20px; bottom: 20px; }
    .sp-lesson-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-lesson-card,
    .sp-lesson-card__cover > img,
    .sp-lesson-card__play,
    .sp-lesson-card__action i { transition: none; }
}
/* Comunidade e comentários da aula */
.sp-watch-community {
  border: 1px solid #e4e8f1 !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 34px rgba(21, 31, 55, .07) !important;
  overflow: hidden;
}
.sp-watch-community > .card-content { padding: 22px !important; }
.sp-watch-community__tabs {
  display: flex;
  gap: 8px;
  padding: 5px !important;
  margin: 0 0 22px !important;
  background: #f5f7fb;
  border: 1px solid #e4e8f1;
  border-radius: 14px;
}
.sp-watch-community__tabs > li { float: none !important; flex: 0 1 auto; }
.sp-watch-community__tabs > li > a {
  min-width: 140px;
  margin: 0 !important;
  padding: 11px 18px !important;
  color: #667085 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-weight: 700;
  text-align: center;
}
.sp-watch-community__tabs > li.active > a,
.sp-watch-community__tabs > li.active > a:hover,
.sp-watch-community__tabs > li.active > a:focus {
  color: #fff !important;
  background: linear-gradient(135deg, #7138f0, #9b2eea) !important;
  box-shadow: 0 8px 18px rgba(119, 55, 238, .22) !important;
}
.sp-watch-comments-composer { margin: 0 !important; }
.sp-watch-comments-composer > [class*="col-"] { padding: 0 !important; }
.sp-watch-comments-composer__header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}
.sp-watch-comments-composer__header > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: #7837ef;
  background: #f0e9ff;
  border-radius: 13px;
}
.sp-watch-comments-composer__header h3 { margin: 0 0 3px; font-size: 18px; font-weight: 800; color: #172033; }
.sp-watch-comments-composer__header p { margin: 0; color: #8892a6; font-size: 13px; }
.sp-watch-comments-form textarea {
  display: block;
  width: 100%;
  min-height: 118px;
  padding: 16px 18px;
  resize: vertical;
  color: #263248;
  background: #fbfcfe;
  border: 1px solid #dce2ec;
  border-radius: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.sp-watch-comments-form textarea:focus {
  background: #fff;
  border-color: #8240ef;
  box-shadow: 0 0 0 4px rgba(130, 64, 239, .1);
}
.sp-watch-comments-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.sp-watch-comments-form__footer small { color: #98a2b3; }
.sp-watch-comments-form__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.sp-watch-comments-form__status i { flex: 0 0 auto; font-size: 20px; }
.sp-watch-comments-form__status.is-success {
  padding: 12px 15px;
  border: 1px solid #a9e7c7;
  border-radius: 12px;
  color: #11683d !important;
  background: #eafaf2;
  box-shadow: 0 7px 18px rgba(22, 131, 74, .1);
}
.sp-watch-comments-form__status.is-error {
  padding: 10px 13px;
  border: 1px solid #ffc9cf;
  border-radius: 10px;
  color: #b42335 !important;
  background: #fff1f3;
}
.sp-watch-comments-form__footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #7138f0, #9b2eea) !important;
  box-shadow: 0 8px 20px rgba(119, 55, 238, .2) !important;
}
.sp-watch-comments-form__footer .material-icons { font-size: 17px; }
.sp-watch-comments-form__submit.is-saving { opacity: .7; cursor: wait; }
.sp-watch-comments-reply-form { margin-top: 10px; padding: 15px; border: 1px solid #e4def5; border-radius: 13px; background: #faf8ff; }
.sp-watch-comments-reply-form textarea { min-height: 90px; background: #fff !important; color: #263248 !important; }
.sp-watch-community__content #pill-comentarios > .row:not(.sp-watch-comments-composer){margin:0}.sp-watch-community__content #pill-comentarios > .row:not(.sp-watch-comments-composer)>.col-md-12{padding:0}.sp-watch-comment-card{margin:18px 0 0!important;padding:20px!important;overflow:hidden;border:1px solid #e1e6ef!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 30px rgba(23,32,51,.06)!important}.sp-watch-comment-card>.list-group-item-heading{margin:0!important;padding:0 0 14px!important;display:grid;grid-template-columns:44px 1fr auto;align-items:center;column-gap:12px;border-bottom:1px solid #e9edf3;color:#172033!important}.sp-watch-comment-card>.list-group-item-heading>span{font-size:13px;font-weight:850}.sp-watch-comment-card>.list-group-item-heading>small{color:#8d97aa!important;font-size:10px;font-weight:600}.sp-watch-comment-avatar{width:44px!important;height:44px!important;display:grid!important;place-items:center;overflow:hidden;border:2px solid #fff;border-radius:50%;color:#fff;background:linear-gradient(145deg,#7138ef,#d53bb4);box-shadow:0 0 0 1px #ddd6f7,0 7px 18px rgba(113,56,239,.2)}.sp-watch-comment-avatar b{font-size:15px;font-weight:900}.sp-watch-comment-avatar img{width:100%!important;height:100%!important;display:block;object-fit:cover;border-radius:50%}.sp-watch-comment-card>.list-group-item-text{margin:0!important;padding:17px 0 4px!important;position:relative;color:#3c485d!important;font-size:13px!important;line-height:1.65}.sp-watch-comment-card>.list-group-item-text>.pull-right{margin-left:18px;display:inline-flex;align-items:center;gap:7px;float:right!important}.sp-watch-comment-card>.list-group-item-text>.pull-right a{padding:6px 9px;display:inline-flex;color:#7240d8!important;border-radius:8px;background:#f4efff;font-size:9px;font-weight:800;cursor:pointer}.sp-watch-comment-reply-box{margin-top:14px!important;padding:0!important}.sp-watch-comment-reply{margin:14px 0 0 38px!important;padding:15px 16px!important;border:1px solid #e3def1!important;border-left:3px solid #8b43ef!important;border-radius:14px!important;background:linear-gradient(135deg,#faf8ff,#fff)!important;box-shadow:none!important}.sp-watch-comment-reply>.list-group-item-heading{margin:0 0 9px!important;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;color:#273248!important}.sp-watch-comment-reply .sp-watch-comment-avatar{width:36px!important;height:36px!important}.sp-watch-comment-reply>.list-group-item-heading>span{font-size:11px;font-weight:850}.sp-watch-comment-reply>.list-group-item-heading>small{color:#929bad!important;font-size:9px}.sp-watch-comment-reply>.list-group-item-text{margin:0!important;padding-left:46px;color:#4e596d!important;font-size:12px!important;line-height:1.55}.sp-watch-comment-reply>.list-group-item-text>.pull-right a{color:#d94343!important;font-size:9px;font-weight:800;cursor:pointer}@media(max-width:650px){.sp-watch-comment-card{padding:16px!important}.sp-watch-comment-card>.list-group-item-heading{grid-template-columns:40px 1fr}.sp-watch-comment-card>.list-group-item-heading>small{grid-column:2}.sp-watch-comment-avatar{width:40px!important;height:40px!important}.sp-watch-comment-card>.list-group-item-text>.pull-right{width:100%;margin:12px 0 0;float:none!important}.sp-watch-comment-reply{margin-left:12px!important}.sp-watch-comment-reply>.list-group-item-heading{grid-template-columns:34px 1fr}.sp-watch-comment-reply>.list-group-item-heading>small{grid-column:2}.sp-watch-comment-reply>.list-group-item-text{padding-left:44px}}
.sp-watch-community .list-group-item {
  margin-top: 14px;
  padding: 16px !important;
  border: 1px solid #e5e9f1 !important;
  border-radius: 14px !important;
  background: #fff;
}
@media (max-width: 767px) {
  .sp-watch-community > .card-content { padding: 14px !important; }
  .sp-watch-community__tabs { overflow-x: auto; }
  .sp-watch-community__tabs > li > a { min-width: 118px; padding: 10px 14px !important; }
  .sp-watch-comments-form__footer { align-items: stretch; flex-direction: column; }
  .sp-watch-comments-form__status.is-success,
  .sp-watch-comments-form__status.is-error { width: 100%; }
  .sp-watch-comments-form__footer .btn { justify-content: center; width: 100%; }
}
/* Entrega de tarefas na sala de aula */
.sp-classroom .sp-task-panel{padding:26px!important;border:1px solid #e8e2f4;border-radius:18px;background:linear-gradient(145deg,#fff 0%,#fcfaff 100%);box-shadow:0 12px 34px rgba(42,30,72,.07)}
.sp-classroom .sp-task-title{display:flex;align-items:center;gap:12px;margin:0 0 14px!important;color:#211a32!important;font-size:21px;font-weight:800}
.sp-classroom .sp-task-title i{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#fff;background:linear-gradient(135deg,#6f3de5,#a22fee);box-shadow:0 8px 18px rgba(111,61,229,.24)}
.sp-classroom .sp-task-instructions{margin:0 0 20px!important;padding:16px 18px!important;border:0!important;border-left:4px solid #7c3aed!important;border-radius:0 12px 12px 0;background:#f7f3ff;color:#4d465b;font-size:15px;line-height:1.65}
.sp-classroom .sp-task-form{position:relative;margin:18px 0 24px;padding:20px;border:1px solid #e7e0f3;border-radius:15px;background:#fff}
.sp-classroom .sp-task-form legend{display:flex;align-items:center;gap:9px;width:auto;margin:0 0 14px;padding:0;border:0;color:#342b48;font-size:14px;font-weight:750}
.sp-classroom .sp-task-form legend i{color:#7440dd;font-size:22px}
.sp-classroom .sp-task-upload{display:flex!important;align-items:center;gap:15px;width:100%;min-height:90px;margin:0 0 16px!important;padding:16px;border:1.5px dashed #cbbbec;border-radius:13px;background:#faf8ff;text-align:left!important;transition:.2s ease}
.sp-classroom .sp-task-upload:hover{border-color:#7542da;background:#f7f2ff}
.sp-classroom .sp-task-upload .thumbnail{display:none!important}
.sp-classroom .sp-task-upload>div{margin:0!important}
.sp-classroom .sp-task-upload .btn-file{margin:0!important;padding:12px 17px!important;border-radius:10px!important;background:#ede5ff!important;color:#5d2fc2!important;box-shadow:none!important}
.sp-classroom .sp-task-upload .btn-file{position:relative!important;display:inline-flex!important;align-items:center;justify-content:center;min-width:190px;overflow:hidden!important;white-space:nowrap}
.sp-classroom .sp-task-upload .btn-file input[type="file"]{position:absolute!important;inset:0!important;z-index:2!important;display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;opacity:0!important;cursor:pointer!important;font-size:100px!important}
.sp-classroom .sp-task-upload .fileinput-new,.sp-classroom .sp-task-upload .fileinput-exists{position:relative;z-index:1;display:inline!important;color:#5d2fc2!important;font-size:11px!important;font-weight:800!important}
.sp-classroom .sp-task-upload.fileinput-new .fileinput-exists,.sp-classroom .sp-task-upload.fileinput-exists .fileinput-new{display:none!important}
.sp-classroom .sp-task-picker{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:190px;margin:0;padding:12px 17px;overflow:hidden;border-radius:10px;color:#5d2fc2;background:#ede5ff;cursor:pointer;font-size:11px;font-weight:800;white-space:nowrap}
.sp-classroom .sp-task-picker:hover{color:#fff;background:#6f3de5}
.sp-classroom .sp-task-picker i{font-size:18px}
.sp-classroom .sp-task-picker input[type="file"]{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;opacity:0!important;cursor:pointer!important}
.sp-classroom .sp-task-upload .btn-file:before{content:'attach_file';display:inline-block;margin-right:7px;font:19px/1 'Material Icons';vertical-align:middle}
.sp-classroom .sp-task-file-name{display:block;min-width:0;overflow:hidden;color:#625a70;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.sp-classroom .sp-task-submit{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;float:none!important;min-width:180px;margin:0!important;padding:12px 20px!important;border:0!important;border-radius:10px!important;background:linear-gradient(135deg,#6f3de5,#9b30eb)!important;color:#fff!important;font-size:12px!important;font-weight:800!important;box-shadow:0 8px 20px rgba(111,61,229,.25)!important}
.sp-classroom .sp-task-submit i{font-size:17px}
.sp-classroom .sp-task-panel>hr{margin:24px 0;border-color:#eee9f5}
@media(max-width:700px){.sp-classroom .sp-task-panel{padding:17px!important}.sp-classroom .sp-task-upload{align-items:stretch;flex-direction:column}.sp-classroom .sp-task-picker,.sp-classroom .sp-task-submit{width:100%;min-width:0}.sp-classroom .sp-task-title{font-size:18px}}
