/**
 * FUPAI public pages — listagens, auth, blog, contacto, etc.
 * Scoped to .page-fupai excluding home/course-detail overrides
 */

.page-fupai:not(.page-home):not(.page-course) .course-area {
  background: var(--fupai-bg-light);
  padding-top: 48px !important;
  padding-bottom: 80px !important;
}

/* ==========================================================================
   Courses listing — toolbar
   ========================================================================== */

.page-fupai:not(.page-home):not(.page-course) .course-shorter {
  background: #fff;
  border: 1px solid var(--fupai-border-card);
  border-radius: var(--fupai-radius-card);
  box-shadow: 0 8px 24px rgba(5, 28, 66, 0.06);
  padding: 16px 20px;
}

.page-fupai:not(.page-home):not(.page-course) .course-shorter .grid-list li.sort-text {
  color: var(--fupai-text-muted);
  font-size: 14px;
  font-weight: 600;
}

.page-fupai:not(.page-home):not(.page-course) .course-shorter .grid-list li a {
  border-radius: 10px;
  border: 1px solid var(--fupai-border-card);
  color: var(--fupai-navy);
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-fupai:not(.page-home):not(.page-course) .course-shorter .grid-list li.active a {
  background: var(--fupai-purple) !important;
  border-color: var(--fupai-purple) !important;
  color: #fff !important;
}

.page-fupai:not(.page-home):not(.page-course) .course-shorter .grid-list li.toggle-icon a {
  background: var(--fupai-navy);
  border-color: var(--fupai-navy);
  color: #fff;
}

.page-fupai:not(.page-home):not(.page-course) .course-shorter .search-form input {
  border: 1px solid var(--fupai-border-card);
  border-radius: var(--fupai-radius-pill);
  color: var(--fupai-navy);
  font-family: var(--fupai-font);
  font-size: 14px;
  font-weight: 600;
  height: 44px;
  padding-inline: 44px 16px;
}

.page-fupai:not(.page-home):not(.page-course) .course-shorter .search-form input::placeholder {
  color: rgba(5, 28, 66, 0.45);
}

.page-fupai:not(.page-home):not(.page-course) .course-shorter .search-form input:focus {
  border-color: var(--fupai-purple);
  box-shadow: 0 0 0 3px rgba(116, 70, 232, 0.15);
  outline: none;
}

.page-fupai:not(.page-home):not(.page-course) .course-shorter .search-form button {
  color: var(--fupai-navy);
  font-size: 20px;
  inset-inline-end: 12px;
}

.page-fupai:not(.page-home):not(.page-course) .course-shorter .sort-right .course-dropdown .nice-select {
  border: 1px solid var(--fupai-border-card);
  border-radius: var(--fupai-radius-pill);
  color: var(--fupai-navy);
  font-family: var(--fupai-font);
  font-size: 14px;
  font-weight: 600;
  height: 44px;
  line-height: 42px;
  min-width: 140px;
}

.page-fupai:not(.page-home):not(.page-course) .course-shorter .sort-right .course-dropdown .nice-select .option.selected {
  color: var(--fupai-purple);
  font-weight: 700;
}

/* ==========================================================================
   Courses listing — sidebar filters
   ========================================================================== */

.page-fupai:not(.page-home):not(.page-course) .course-sidebar {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget {
  background: #fff;
  border-radius: var(--fupai-radius-card);
  border: 1px solid var(--fupai-border-card);
  box-shadow: 0 8px 24px rgba(5, 28, 66, 0.06);
  margin-bottom: 16px;
  padding: 20px 22px;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget:not(:last-child) {
  border-bottom: none;
  margin-bottom: 16px;
  padding-bottom: 20px;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget .dropdown-title,
.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.rating-widget .dropdown-title {
  color: var(--fupai-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist ul li {
  color: var(--fupai-navy);
  font-size: 14px;
  line-height: 1.4;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist ul li:not(:last-child) {
  margin-bottom: 12px;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist ul li > span {
  color: var(--fupai-text-muted);
  font-size: 13px;
  font-weight: 600;
  top: 2px;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist ul li a,
.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist ul li a.parent_category {
  color: var(--fupai-navy);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist ul li a:hover,
.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist ul li a.parent_category:hover {
  color: var(--fupai-purple);
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist ul li.show-more a {
  color: var(--fupai-purple);
  font-weight: 700;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist label {
  color: var(--fupai-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  padding-inline-start: 32px;
  text-transform: none;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  cursor: pointer;
  z-index: 2;
  display: block !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: none !important;
  background: transparent !important;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist input[type="checkbox"] + span::after {
  background-color: #fff;
  border: 2px solid rgba(5, 28, 66, 0.28);
  border-radius: 5px;
  content: "";
  display: inline-block;
  height: 20px;
  inset-inline-start: 0;
  position: absolute;
  top: 1px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 20px;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist input[type="checkbox"]:checked + span::after {
  background-color: var(--fupai-purple);
  border-color: var(--fupai-purple);
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist input[type="checkbox"]:checked + span::before {
  border-color: #fff;
  content: "";
  height: 10px;
  inset-inline-start: 7px;
  position: absolute;
  top: 4px;
  transform: rotate(45deg);
  width: 5px;
  z-index: 1;
  border-style: solid;
  border-width: 0 2px 2px 0;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.widget-checklist input[type="checkbox"]:focus-visible + span::after {
  box-shadow: 0 0 0 3px rgba(116, 70, 232, 0.2);
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.rating-widget input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  cursor: pointer;
  z-index: 2;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.rating-widget input[type="checkbox"] + span::after {
  background-color: #fff;
  border: 2px solid rgba(5, 28, 66, 0.28);
  border-radius: 5px;
  height: 20px;
  inset-inline-start: 0;
  top: 3px;
  width: 20px;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.rating-widget input[type="checkbox"]:checked + span::after {
  background-color: var(--fupai-purple);
  border-color: var(--fupai-purple);
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget.rating-widget input[type="checkbox"]:checked + span::before {
  border-color: #fff;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar > .text-center .template-btn {
  background: transparent !important;
  border: 2px solid var(--fupai-purple) !important;
  border-radius: var(--fupai-radius-pill) !important;
  color: var(--fupai-purple) !important;
  font-weight: 700;
  margin-top: 8px;
  padding: 12px 28px !important;
  width: 100%;
}

.page-fupai:not(.page-home):not(.page-course) .course-sidebar > .text-center .template-btn:hover {
  background: rgba(116, 70, 232, 0.08) !important;
  color: var(--fupai-purple) !important;
}

.page-fupai:not(.page-home):not(.page-course) .course-pagination .template-btn {
  border-radius: var(--fupai-radius-pill) !important;
}

/* ==========================================================================
   Courses listing — list view cards
   ========================================================================== */

.page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item {
  align-items: stretch;
  border-radius: var(--fupai-radius-card) !important;
  height: auto !important;
  min-height: 0;
  overflow: hidden;
}

.page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-thumb {
  align-self: stretch;
  flex: 0 0 280px;
  height: auto;
  max-width: 280px;
  min-height: 200px;
}

.page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-thumb img {
  border-radius: var(--fupai-radius-card) 0 0 var(--fupai-radius-card) !important;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 20px 24px 0;
}

.page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .title {
  margin-bottom: 10px;
  padding-top: 0;
}

.page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .title a {
  display: -webkit-box;
  font-size: 1.05rem !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.35 !important;
  overflow: hidden;
}

.page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-info {
  margin-bottom: 8px;
}

.page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-footer {
  align-items: center;
  background: transparent !important;
  border-top: 1px solid rgba(197, 198, 205, 0.25);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: auto;
  padding: 16px 0 20px !important;
}

.page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-footer .fupai-course-card-btn {
  border-radius: 0 !important;
  flex-shrink: 0;
  font-family: var(--fupai-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  line-height: 18px !important;
  padding: 10px 18px !important;
  width: auto !important;
}

@media (max-width: 767px) {
  .page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item {
    flex-direction: column;
  }

  .page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-thumb {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-thumb img {
    border-radius: var(--fupai-radius-card) var(--fupai-radius-card) 0 0 !important;
    min-height: 180px;
  }

  .page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-body {
    padding: 16px 18px 0;
  }

  .page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-footer {
    flex-wrap: wrap;
    padding-bottom: 18px !important;
  }

  .page-fupai:not(.page-home):not(.page-course) .course-items-v3.list-view .course-item .course-item-footer .course-lesson {
    margin-left: auto;
  }
}

/* Auth forms */
.page-fupai:not(.page-home):not(.page-course) .user-form-container {
  border-radius: var(--fupai-radius-card);
  border: 1px solid var(--fupai-border-card);
  box-shadow: 0 12px 40px rgba(5, 28, 66, 0.08);
}

.page-fupai:not(.page-home):not(.page-course) .user-form-container .form-title h3 {
  color: var(--fupai-navy);
  font-weight: 800;
  font-family: var(--fupai-font);
}

.page-fupai:not(.page-home):not(.page-course) .user-form-container form .template-btn,
.page-fupai:not(.page-home):not(.page-course) .sign-in-section .template-btn {
  border-radius: var(--fupai-radius-pill) !important;
}

.page-fupai:not(.page-home):not(.page-course) .user-form-container form .forgot-pass-btn a:not(.fupai-auth-signup-link),
.page-fupai:not(.page-home):not(.page-course) .sign-in-section .forgot-pass-btn a:not(.fupai-auth-signup-link) {
  color: #5c35c4 !important;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-fupai:not(.page-home):not(.page-course) .user-form-container form .forgot-pass-btn a:not(.fupai-auth-signup-link):hover,
.page-fupai:not(.page-home):not(.page-course) .sign-in-section .forgot-pass-btn a:not(.fupai-auth-signup-link):hover {
  color: #a3c704 !important;
  text-decoration: underline;
}

.page-fupai:not(.page-home):not(.page-course) .user-form-container form .forgot-pass-btn a.fupai-auth-signup-link,
.page-fupai:not(.page-home):not(.page-course) .sign-in-section .forgot-pass-btn a.fupai-auth-signup-link {
  color: var(--fupai-purple) !important;
  font-weight: 700;
}

.page-fupai:not(.page-home):not(.page-course) .user-form-container form .forgot-pass-btn a.fupai-auth-signup-link:hover,
.page-fupai:not(.page-home):not(.page-course) .sign-in-section .forgot-pass-btn a.fupai-auth-signup-link:hover {
  color: #5c35c4 !important;
  text-decoration: underline;
}

/* Blog */
.page-fupai:not(.page-home):not(.page-course) .blog-area .blog-post-item,
.page-fupai:not(.page-home):not(.page-course) .blog-details-area .blog-post-details {
  font-family: var(--fupai-font);
}

.page-fupai:not(.page-home):not(.page-course) .blog-post-items-v1 .blog-post-item {
  border-radius: var(--fupai-radius-card);
  border: 1px solid var(--fupai-border-card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(5, 28, 66, 0.06);
}

.page-fupai:not(.page-home):not(.page-course) .blog-post-items-v1 .blog-post-item .title a {
  color: var(--fupai-navy);
  font-weight: 700;
}

.page-fupai:not(.page-home):not(.page-course) .blog-post-items-v1 .blog-post-item .title a:hover {
  color: var(--fupai-purple);
}

/* Contact */
.page-fupai:not(.page-home):not(.page-course) .contact-area .contact-form .form-control,
.page-fupai:not(.page-home):not(.page-course) .contact-area .contact-form textarea {
  border-radius: 10px;
  border-color: var(--fupai-border-card);
  font-family: var(--fupai-font);
}

.page-fupai:not(.page-home):not(.page-course) .contact-area .contact-form .form-control:focus,
.page-fupai:not(.page-home):not(.page-course) .contact-area .contact-form textarea:focus {
  border-color: var(--fupai-purple);
  box-shadow: 0 0 0 3px rgba(116, 70, 232, 0.15);
}

/* Orçamento In Company — /orcamento-in-company */
.page-fupai .fupai-company-quote {
  background: var(--fupai-bg-light);
  font-family: var(--fupai-font);
}

.page-fupai .fupai-company-quote .common-heading h3 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.04em;
}

.page-fupai .fupai-company-quote__form-card {
  background: #fff;
  border: 1px solid var(--fupai-border-card);
  border-radius: var(--fupai-radius-card);
  box-shadow: 0 12px 40px rgba(5, 28, 66, 0.08);
  overflow: hidden;
}

.page-fupai .fupai-company-quote h5.border-bottom {
  border-color: rgba(198, 198, 205, 0.45) !important;
  color: var(--fupai-navy);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
}

.page-fupai .fupai-company-quote .form-label {
  color: var(--fupai-navy);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-fupai .fupai-company-quote .form-control,
.page-fupai .fupai-company-quote textarea.form-control {
  border: 1px solid var(--fupai-border-card);
  border-radius: 10px;
  box-sizing: border-box;
  font-family: var(--fupai-font);
  font-size: 15px;
  min-height: 50px;
  padding: 10px 15px;
}

.page-fupai .fupai-company-quote textarea.form-control {
  height: auto;
  min-height: 120px;
}

.page-fupai .fupai-company-quote .form-control:focus,
.page-fupai .fupai-company-quote textarea.form-control:focus {
  border-color: var(--fupai-purple);
  box-shadow: 0 0 0 3px rgba(116, 70, 232, 0.15);
}

.page-fupai .fupai-company-quote .form-field-equal {
  flex: 1 1 0 !important;
  max-width: none !important;
  min-width: 0 !important;
}

.page-fupai .fupai-company-quote .form-field-equal .form-control,
.page-fupai .fupai-company-quote .form-field-equal input[type="date"],
.page-fupai .fupai-company-quote .form-field-equal input[type="number"],
.page-fupai .fupai-company-quote .form-field-equal input[type="email"],
.page-fupai .fupai-company-quote .form-field-equal input[type="text"] {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

.page-fupai .fupai-company-quote .form-group {
  margin-bottom: 1.25rem;
}

.page-fupai .fupai-company-quote__course-card {
  border: 1px solid var(--fupai-border-card);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.page-fupai .fupai-company-quote__course-card:hover {
  border-color: rgba(116, 70, 232, 0.35);
  box-shadow: 0 8px 24px rgba(5, 28, 66, 0.08);
  transform: translateY(-2px);
}

.page-fupai .fupai-company-quote__course-card:has(.form-check-input:checked) {
  border-color: rgba(116, 70, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(116, 70, 232, 0.12);
}

.page-fupai .fupai-company-quote .form-check-input:checked {
  background-color: var(--fupai-purple);
  border-color: var(--fupai-purple);
}

.page-fupai .fupai-company-quote .form-check-input:focus {
  border-color: var(--fupai-purple);
  box-shadow: 0 0 0 3px rgba(116, 70, 232, 0.15);
}

.page-fupai .fupai-company-quote .form-check-input:checked ~ .form-check-label {
  color: var(--fupai-navy);
  font-weight: 700;
}

.page-fupai .fupai-company-quote__badge {
  border-radius: 8px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  padding: 4px 10px;
  vertical-align: middle;
  white-space: normal;
}

.page-fupai .fupai-company-quote__badge--lime {
  background: rgba(189, 235, 5, 0.25);
  color: var(--fupai-navy);
}

.page-fupai .fupai-company-quote__badge--navy {
  background: rgba(5, 28, 66, 0.08);
  color: var(--fupai-navy);
}

.page-fupai .fupai-company-quote .text-muted {
  color: var(--fupai-text-muted) !important;
}

.page-fupai .fupai-company-quote .text-primary {
  color: var(--fupai-purple) !important;
}

.page-fupai .fupai-company-quote .text-success {
  color: #0a8f5c !important;
}

.page-fupai .fupai-company-quote .text-info {
  color: #1f59ed !important;
}

.page-fupai .fupai-company-quote .alert-info {
  background: rgba(31, 89, 237, 0.08);
  border: 1px solid rgba(31, 89, 237, 0.2);
  border-radius: 12px;
  color: var(--fupai-navy);
  font-size: 14px;
}

.page-fupai .fupai-company-quote .input-group .form-control {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.page-fupai .fupai-company-quote__cnpj-btn {
  border-bottom-left-radius: 0 !important;
  border-top-left-radius: 0 !important;
  flex-shrink: 0;
  height: 50px;
  line-height: 1.2 !important;
  padding: 0 18px !important;
  white-space: nowrap;
}

.page-fupai .fupai-company-quote__details-btn {
  display: inline-flex !important;
  align-items: center;
  font-size: 12px !important;
  gap: 6px;
  line-height: 1.2 !important;
  padding: 8px 14px !important;
}

.page-fupai .fupai-company-quote__submit-btn {
  display: inline-flex;
  align-items: center;
  font-size: 15px !important;
  gap: 8px;
  justify-content: center;
  min-height: 52px;
  min-width: min(100%, 320px);
  padding: 14px 32px !important;
}

.page-fupai .fupai-company-quote #cnpj-loading i.fa-spinner {
  animation: fupai-company-quote-spin 1s linear infinite;
}

@keyframes fupai-company-quote-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .page-fupai .fupai-company-quote {
    padding-top: 32px !important;
  }

  .page-fupai .fupai-company-quote .common-heading {
    margin-bottom: 28px !important;
  }

  .page-fupai .fupai-company-quote__form-card .card-body {
    padding: 20px 16px !important;
  }

  .page-fupai .fupai-company-quote .input-group {
    flex-wrap: wrap;
    gap: 10px;
  }

  .page-fupai .fupai-company-quote .input-group .form-control {
    border-radius: 10px !important;
    width: 100%;
  }

  .page-fupai .fupai-company-quote__cnpj-btn {
    border-radius: var(--fupai-radius-pill) !important;
    width: 100%;
  }

  .page-fupai .fupai-company-quote__submit-btn {
    width: 100%;
  }
}

/* Instructor profile */
.page-fupai:not(.page-home):not(.page-course) .instructor-details-area .instructor-profile-header,
.page-fupai:not(.page-home):not(.page-course) .instructor-details-area .instructor-details-header {
  background: var(--fupai-navy) !important;
}

.page-fupai:not(.page-home):not(.page-course) .instructor-details-area .instructor-profile-header h2,
.page-fupai:not(.page-home):not(.page-course) .instructor-details-area .instructor-details-header h2 {
  color: #fff !important;
}

/* Cart */
.page-fupai:not(.page-home):not(.page-course) .cart-area .cart-table {
  border-radius: var(--fupai-radius-card);
  overflow: hidden;
  border: 1px solid var(--fupai-border-card);
}

.page-fupai:not(.page-home):not(.page-course) .cart-area .cart-footer .template-btn {
  border-radius: var(--fupai-radius-pill) !important;
}

/* Generic page headers with dark wrapper */
.page-fupai:not(.page-home):not(.page-course) .page-title-area,
.page-fupai:not(.page-home):not(.page-course) .breadcrumb-wrapper {
  font-family: var(--fupai-font);
}

.page-fupai:not(.page-home):not(.page-course) section {
  font-family: var(--fupai-font);
}

@media (max-width: 767px) {
  .page-fupai:not(.page-home):not(.page-course) .course-area {
    padding-top: 30px !important;
    padding-bottom: 48px !important;
  }

  .page-fupai:not(.page-home):not(.page-course) .course-shorter {
    padding: 14px 16px;
  }

  .page-fupai:not(.page-home):not(.page-course) .course-shorter .sort-right {
    width: 100%;
  }

  .page-fupai:not(.page-home):not(.page-course) .course-shorter .search-form {
    width: 100%;
  }

  .page-fupai:not(.page-home):not(.page-course) .course-shorter .search-form input {
    width: 100%;
  }

  .page-fupai:not(.page-home):not(.page-course) .course-sidebar .widget {
    padding: 16px 18px;
  }
}

/* ==========================================================================
   Profile dashboard — quick access widgets
   ========================================================================== */

.page-fupai .profile-dashboard-section .dashboard-link-list__item:hover {
  border-color: var(--fupai-lime) !important;
}

.page-fupai .profile-dashboard-section .dashboard-link-list__go--active {
  background: var(--fupai-lime) !important;
  color: var(--fupai-navy) !important;
}

.page-fupai .profile-dashboard-section .dashboard-link-list__go--inactive {
  background: #e2e8f0 !important;
  color: #64748b !important;
}

.page-fupai .profile-dashboard-section .dashboard-link-list__go--warning {
  background: #facc15 !important;
  color: #713f12 !important;
}

.page-fupai .profile-dashboard-section .dashboard-link-list__go--danger {
  background: #ef4444 !important;
  color: #fff !important;
}

.page-fupai .profile-dashboard-section .fupai-widget-footer-btn--outline {
  background: #fff !important;
  border-color: var(--fupai-navy) !important;
  color: var(--fupai-navy) !important;
}

.page-fupai .profile-dashboard-section .fupai-widget-footer-btn--outline:hover {
  background: rgba(189, 235, 5, 0.12) !important;
  border-color: var(--fupai-lime) !important;
  color: var(--fupai-navy) !important;
}

.page-fupai .profile-dashboard-section .fupai-widget-footer-btn--lime {
  background: var(--fupai-lime) !important;
  border-color: var(--fupai-lime) !important;
  color: var(--fupai-navy) !important;
}

.page-fupai .profile-dashboard-section .fupai-widget-footer-btn--lime:hover {
  opacity: 0.92;
  color: var(--fupai-navy) !important;
}

/* Learn course — contexto do conteúdo (módulo + aula) */
.page-fupai .course-video-section .course-lesson-context {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.page-fupai .course-video-section .course-lesson-context__module {
  color: var(--fupai-text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-fupai .course-video-section .course-lesson-context__title {
  color: var(--fupai-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 992px) {
  .page-fupai .course-video-section .course-lesson-context__title {
    font-size: 20px;
  }
}

/* Checkout — métodos de pagamento (mobile) */
.page-fupai .payment-gateway-section .payment-methods-list {
  row-gap: 12px;
}

.page-fupai .payment-gateway-section .payment-methods-item input[type="radio"] + label {
  height: auto !important;
  min-height: 88px;
  padding: 16px 14px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.page-fupai .payment-gateway-section .payment-methods-item input[type="radio"] + label img {
  max-height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.page-fupai .payment-gateway-section .payment-methods-item input[type="radio"] + label span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}

.page-fupai .payment-gateway-section .payment-methods-item input[type="radio"]:checked + label {
  border-color: var(--fupai-purple) !important;
  box-shadow: 0 0 0 1px var(--fupai-purple);
}

@media (max-width: 575px) {
  .page-fupai .payment-gateway-section .payment-methods-list [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .page-fupai .payment-gateway-section .payment-methods-item input[type="radio"] + label {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 64px;
    padding: 14px 16px;
    gap: 14px;
    text-align: left;
  }

  .page-fupai .payment-gateway-section .payment-methods-item input[type="radio"] + label img {
    max-height: 28px;
    max-width: 72px;
  }

  .page-fupai .payment-gateway-section .payment-methods-item input[type="radio"] + label span {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .page-fupai .payment-gateway-section .payment-methods-item input[type="radio"] + label {
    min-height: 96px;
    padding: 14px 10px;
  }

  .page-fupai .payment-gateway-section .payment-methods-item input[type="radio"] + label span {
    font-size: 11px;
  }
}

/* Checkout — resumo do pedido (mobile) */
.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product {
  align-items: flex-start;
  gap: 12px;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product .book-thumbnail {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product .book-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product .book-text-content {
  position: static;
  flex: 1;
  min-width: 0;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product .book-text-content h6 {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  word-break: break-word;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product .book-text-content h6 a {
  color: var(--fupai-navy);
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product .book-text-content small {
  font-size: 12px;
  line-height: 1.35;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product .book-text-content .quantity-price-wrapper {
  position: static !important;
  inset: auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.3;
  width: 100%;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product .book-text-content .quantity-price-wrapper .price {
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product.border-bottom-soft-white {
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-calculation .table {
  width: 100%;
  table-layout: fixed;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-calculation .table td {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 12px;
  vertical-align: top;
  word-break: break-word;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-calculation .table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.page-fupai .payment-gateway-section .checkout-sidebar .cart-product-calculation .table tr:last-child td {
  font-weight: 700;
  color: var(--fupai-navy);
}

@media (max-width: 575px) {
  .page-fupai .payment-gateway-section .checkout-sidebar {
    margin-top: 32px;
  }

  .page-fupai .payment-gateway-section .checkout-sidebar .cart-product-table .cart-product .book-text-content h6 {
    font-size: 13px;
  }
}

/* Cart — /cart-view mobile */
.page-fupai .cart-section .fupai-cart-table {
  width: 100%;
  min-width: 0;
}

.page-fupai .cart-section .cart-product-table .cart-product.product-type-course {
  align-items: flex-start;
  gap: 12px;
}

.page-fupai .cart-section .cart-product-table .cart-product.product-type-course .book-thumbnail {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}

.page-fupai .cart-section .cart-product-table .cart-product.product-type-course .book-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
}

.page-fupai .cart-section .cart-product-table .cart-product .book-text-content {
  min-width: 0;
  flex: 1;
}

.page-fupai .cart-section .cart-product-table .cart-product .book-text-content h6,
.page-fupai .cart-section .cart-product-table .cart-product .book-text-content h6 a {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fupai-navy);
  word-break: break-word;
}

.page-fupai .cart-section .cart-product-table .cart-product .book-text-content .author,
.page-fupai .cart-section .cart-product-table .cart-product .book-text-content .file-type,
.page-fupai .cart-section .cart-product-table .cart-product .group-info p {
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  margin-bottom: 4px;
}

.page-fupai .cart-section .cart-product-calculation .table {
  width: 100%;
  table-layout: fixed;
}

.page-fupai .cart-section .cart-product-calculation .table td {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 8px 12px;
  word-break: break-word;
}

.page-fupai .cart-section .cart-product-calculation .table td:last-child {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .page-fupai .cart-section .cart-product-table {
    overflow: visible;
  }

  .page-fupai .cart-section .fupai-cart-table thead {
    display: none;
  }

  .page-fupai .cart-section .fupai-cart-table tbody tr {
    display: block;
    border: 1px solid var(--fupai-border-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(5, 28, 66, 0.06);
  }

  .page-fupai .cart-section .fupai-cart-table tbody tr td {
    display: block;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
  }

  .page-fupai .cart-section .fupai-cart-table tbody tr td + td {
    margin-top: 12px;
  }

  .page-fupai .cart-section .fupai-cart-table__price,
  .page-fupai .cart-section .fupai-cart-table__action {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px !important;
    border-top: 1px solid rgba(198, 198, 205, 0.35) !important;
  }

  .page-fupai .cart-section .fupai-cart-table__price::before,
  .page-fupai .cart-section .fupai-cart-table__action::before {
    content: attr(data-label);
    font-size: 13px;
    font-weight: 600;
    color: var(--fupai-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
  }

  .page-fupai .cart-section .fupai-cart-table__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--fupai-navy);
  }

  .page-fupai .cart-section .fupai-cart-table__action {
    text-align: left !important;
  }

  .page-fupai .cart-section .fupai-cart-table__action .remove-from-cart {
    color: var(--fupai-purple);
    font-weight: 600;
  }

  .page-fupai .cart-section .cart-product-table .cart-product.product-type-course .book-thumbnail {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }

  .page-fupai .cart-section .cart-product-table .cart-product.product-type-course .book-thumbnail img {
    width: 64px;
    height: 64px;
  }

  .page-fupai .cart-section .cart-product-table .cart-product .book-text-content h6,
  .page-fupai .cart-section .cart-product-table .cart-product .book-text-content h6 a {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .page-fupai .cart-section .fupai-cart-table {
    min-width: 640px;
  }

  .page-fupai .cart-section .cart-product-table {
    overflow-x: auto;
  }
}
