/* ============================================================================
   LifterLMS — SMAZTech Theme Stylesheet
   Covers: Course/Membership Catalog, Single Course, Lesson, Quiz,
           Student Dashboard, Checkout & Pricing, Forms & Notices
   Palette based on smaztech.com agency branding (purple/dark + orange accent)
   ============================================================================ */

:root {
  --smaz-primary: #c64331;
  --smaz-primary-dark: #96281b;
  --smaz-primary-light: #c64331;
  --smaz-accent: #c64331;
  --smaz-dark: #0d0f1a;
  --smaz-dark-soft: #14172a;
  --smaz-text: #1c1e2e;
  --smaz-text-muted: #6b6f85;
  --smaz-border: #e7e7ee;
  --smaz-card-bg: #ffffff;
  --smaz-success: #27ae60;
  --smaz-error: #e74c3c;
  --smaz-warning: #f39c12;
  --smaz-radius: 14px;
  --smaz-radius-sm: 8px;
  --smaz-shadow: 0 10px 30px rgba(20, 20, 40, 0.08);
  --smaz-shadow-hover: 0 18px 40px rgba(108, 63, 224, 0.18);
  --smaz-font: 'Poppins', 'Segoe UI', sans-serif;
}

/* ============================================================================
   0. GLOBAL RESETS & SHARED ELEMENTS
   ============================================================================ */

#content,
.llms-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: var(--smaz-font);
  color: var(--smaz-text);
}

.llms-meta.llms-lessons-count{
    display:none !important;
}
.llms-loop-item-content .llms-loop-title:hover {
    color: #000;
}
.page-title,
.llms-course-title,
.llms-lesson-title {
  font-weight: 700;
  color: var(--smaz-dark);
}
.course-list-link{  padding:10px 15px;
}
.course-list-link span{
    background: #c64331;
    padding: 8px;
    width: 100%;
    color: #fff;
    border-radius: 36px;
    margin-top:10px;
    text-align: center;
}
.course-list-p{
    padding:0px 15px;
}
.course-list-p p{
    font-size:14px;
    line-height:1.3;
}
/* Generic buttons used across LifterLMS templates */
.llms-button-primary,
.llms-button-action,
button.llms-button-primary,
input.llms-button-primary,
a.llms-button-primary {
  display: inline-block;
  background: linear-gradient(90deg, var(--smaz-primary), var(--smaz-primary-dark));
  color: #fff !important;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.llms-button-primary:hover,
.llms-button-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(108, 63, 224, 0.35);
}

.llms-button-secondary,
a.llms-button-secondary {
  display: inline-block;
  background: transparent;
  color: var(--smaz-primary) !important;
  border: 2px solid var(--smaz-primary);
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.llms-button-secondary:hover {
  background: var(--smaz-primary);
  color: #fff !important;
}

/* Notices / alerts */
.llms-notice,
.llms-notice-message {
  border-radius: var(--smaz-radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  border-left: 4px solid var(--smaz-primary);
  background: var(--smaz-primary-light);
  color: var(--smaz-text);
}

.llms-notice.llms-error,
.llms-error {
  border-left-color: var(--smaz-error);
  background: #fdecea;
  color: #b93227;
}

.llms-notice.llms-success,
.llms-success {
  border-left-color: var(--smaz-success);
  background: #e9f9ef;
  color: #1e8449;
}

.llms-notice.llms-notice-warning,
.llms-notice-warning {
  border-left-color: var(--smaz-warning);
  background: #fef6e7;
  color: #9c6a06;
}

/* Progress bars (reused across catalog, dashboard, syllabus) */
.llms-progress-bar {
  width: 100%;
  height: 6px;
  background: #eceef5;
  border-radius: 10px;
  overflow: hidden;
}

.llms-progress-bar .progress-bar-complete,
.progress-bar-complete {
  height: 100%;
  background: linear-gradient(90deg, var(--smaz-primary), var(--smaz-accent));
  border-radius: 10px;
  transition: width 0.4s ease;
}

.progress__indicator {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--smaz-text-muted);
  margin-bottom: 6px;
}

/* ============================================================================
   1. COURSE / MEMBERSHIP CATALOG (archive-course.php / archive-llms_membership.php)
   ============================================================================ */
.llms-loop-item{
    border:0px !important;
}
.llms-loop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .llms-loop-list.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .llms-loop-list.cols-3 { grid-template-columns: 1fr; }
}

.llms-loop-item { list-style: none; }

.llms-loop-item-content {
  background: var(--smaz-card-bg);
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius);
  overflow: hidden;
  box-shadow: var(--smaz-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.llms-loop-item-content:hover {
  transform: translateY(-6px);
  box-shadow: var(--smaz-shadow-hover);
  border-color: var(--smaz-primary);
}

.llms-loop-link { display: block; text-decoration: none; color: inherit; height: 100%; }

.llms-featured-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--smaz-primary), var(--smaz-primary-dark));
}

.llms-loop-item .llms-progress { position: relative; padding: 14px 18px 0; background: #fff; }

.llms-loop-title {
  font-size: 1.15rem;
  padding: 18px 18px 10px;
  margin: 0;
  line-height: 1.4;
 /* min-height: 3rem;*/
}

.author-bio.show-avatars{
    display:none !important;
}
.llms-loop-item-footer {
  padding: 0 18px 20px;
  border-top: 1px solid var(--smaz-border);
  margin-top: 8px;
  padding-top: 14px;
}

.llms-author { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.llms-author img { border-radius: 50%; border: 2px solid var(--smaz-primary); }
.llms-author .name { font-size: 0.85rem; font-weight: 600; color: var(--smaz-text-muted); }

.llms-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.llms-meta p { margin: 0; font-size: 0.85rem; }
.llms-meta .length, .llms-meta .difficulty, .llms-meta .lessons-count {
  font-weight: 600; 
}

.llms-difficulty .difficulty {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(108, 63, 224, 0.1);
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course_difficulty-advanced .llms-difficulty .difficulty {background: rgb(255 107 53 / 22%);
    color: #ffffff;
 }
.course_difficulty-beginner .llms-difficulty .difficulty { background: rgba(46,204,113,.12); color: #27ae60; }
.course_difficulty-intermediate .llms-difficulty .difficulty { background: rgba(52,152,219,.12); color: #2980b9; }

/* Catalog filters / search (LifterLMS Course Catalog Search & taxonomy widgets) */
.llms-search-form,
.llms-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  padding: 18px;
  background: var(--smaz-dark-soft);
  border-radius: var(--smaz-radius);
}

.llms-search-form input[type="search"],
.llms-search-form select {
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ============================================================================
   2. SINGLE COURSE PAGE (content-single-course.php)
   ============================================================================ */

.single-llms_course #primary,
.single-course .llms-course {
  max-width: 1100px;
  margin: 0 auto;
}

.llms-course-header {
  position: relative;
  border-radius: var(--smaz-radius);
  overflow: hidden;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--smaz-dark), var(--smaz-primary-dark));
  color: #fff;
  padding: 50px 40px;
}

.llms-course-header .llms-course-title {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.llms-course-author { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 10px; }

.course-featured-img,
.llms-course-image {
  border-radius: var(--smaz-radius);
  box-shadow: var(--smaz-shadow);
}

/* Price / enroll box */
.llms-price,
.llms-pricing-table-content {
  background: var(--smaz-card-bg);
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius);
  padding: 26px;
  box-shadow: var(--smaz-shadow);
  text-align: center;
  margin-bottom: 30px;
}

.llms-price .amount,
.llms-price-single {
  font-size: 2rem;
  font-weight: 700;
  color: var(--smaz-primary-dark);
}

/* Course meta info (length, difficulty, students, etc.) */
.llms-meta-info,
.llms-course-info {
  display: block;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0 30px;
  padding: 18px 0px;
 /* background: #f8f7fd;
  border-radius: var(--smaz-radius-sm);*/
}
 .llms-meta.llms-difficulty{
     display:none !important;
 }
.llms-meta-info .llms-meta-item,
.llms-course-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--smaz-text-muted);
}

/* Syllabus / course outline */
.llms-syllabus-wrapper,
.course-syllabus {
  margin-top: 40px;
}

.llms-section-title,
.llms-syllabus-wrapper h3 { 
  padding: 14px 20px; 
  font-weight: 700; 
  margin-bottom: 12px;
}

.llms-lessons,
.llms-syllabus-wrapper ol {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.llms-lesson-preview,
.llms-syllabus-wrapper li.llms-lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius-sm);
  margin-bottom: 10px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.llms-lesson-preview:hover {
  border-color: var(--smaz-primary);
  box-shadow: 0 4px 14px rgba(108,63,224,0.12);
}

.llms-lesson-preview .llms-lesson-complete,
.llms-lesson-icon.llms-complete {
  color: var(--smaz-success);
}

.llms-lesson-preview .llms-lesson-icon.llms-incomplete,
.llms-lesson-locked {
  color: var(--smaz-text-muted);
}

/* Instructors */
.llms-instructors {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.llms-instructors .llms-author,
.llms-instructor {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius-sm);
  padding: 14px 18px;
  box-shadow: var(--smaz-shadow);
}

.llms-instructor img { border-radius: 50%; border: 2px solid var(--smaz-primary); }

/* ============================================================================
   3. LESSON PAGE (content-single-lesson.php)
   ============================================================================ */

.single-lesson .llms-lesson-content,
.entry-content.llms-lesson-content {
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.75;
  font-size: 1rem;
}

.llms-lesson-navigation,
.llms-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
  padding-top: 24px;
  border-top: 1px solid var(--smaz-border);
}

.llms-nav-link a {
  color: var(--smaz-primary-dark);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.llms-nav-link a:hover { color: var(--smaz-accent); }

.llms-mark-complete,
.llms-lesson-complete-button {
  display: block;
  text-align: center;
  margin: 30px auto;
}

.llms-mark-complete button,
.llms-mark-complete .llms-button-primary {
  background: linear-gradient(90deg, var(--smaz-success), #1e8449);
  border-radius: 50px;
  padding: 14px 34px;
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Lesson sidebar (course progress / outline widget) */
.llms-course-navigation,
.widget_llms_course_progress {
  background: #fff;
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius);
  padding: 20px;
  box-shadow: var(--smaz-shadow);
}

/* ============================================================================
   4. QUIZ PAGE (LifterLMS Quiz UI)
   ============================================================================ */

.llms-quiz-ui,
.llms-quiz {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius);
  padding: 30px;
  box-shadow: var(--smaz-shadow);
}

.llms-quiz-attempt-header,
.llms-quiz-header {
  text-align: center;
  margin-bottom: 30px;
}

.llms-quiz-attempt-header h2,
.llms-quiz-title {
  color: var(--smaz-dark);
  font-weight: 700;
}

.llms-timer,
.llms-quiz-timer {
  display: inline-block;
  background: var(--smaz-dark);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.llms-question {
  border-bottom: 1px solid var(--smaz-border);
  padding: 24px 0;
}

.llms-question-text,
.llms-field-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.llms-question-choice,
.llms-field-label {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.llms-question-choice:hover,
.llms-field-label:hover {
  border-color: var(--smaz-primary);
  background: var(--smaz-primary-light);
}

.llms-question-choice.llms-selected,
input:checked + .llms-field-label {
  border-color: var(--smaz-primary);
  background: var(--smaz-primary-light);
}

.llms-question-choice.llms-correct { border-color: var(--smaz-success); background: #e9f9ef; }
.llms-question-choice.llms-incorrect { border-color: var(--smaz-error); background: #fdecea; }

/* Quiz results */
.llms-quiz-results,
.llms-quiz-summary {
  text-align: center;
  padding: 30px;
}

.llms-quiz-results .llms-grade,
.llms-quiz-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--smaz-primary-dark);
}

/* ============================================================================
   5. STUDENT DASHBOARD (LifterLMS Student Dashboard shortcode)
   ============================================================================ */

.llms-student-dashboard {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.llms-student-dashboard .llms-sidebar,
.llms-student-dashboard nav.llms-nav {
  flex: 0 0 260px;
  background: var(--smaz-dark-soft);
  border-radius: var(--smaz-radius);
  padding: 20px;
}

.llms-student-dashboard .llms-nav-tabs,
.llms-nav-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.llms-nav-item-list li a,
.llms-student-dashboard .llms-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--smaz-radius-sm);
  color: #d7d8e6;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.llms-nav-item-list li a:hover,
.llms-nav-item-list li.active a,
.llms-nav-item-list li.llms-active a {
  background: linear-gradient(90deg, var(--smaz-primary), var(--smaz-primary-dark));
  color: #fff;
}

.llms-student-dashboard .llms-main-content,
.llms-student-dashboard main {
  flex: 1;
  min-width: 280px;
}
.llms-course-progress{
    display:none;
}
/* Dashboard cards: My Courses, Achievements, Certificates */
  .logged-in .llms-sd-layout-columns {
    display: block;
  }
.llms-my-courses .llms-loop-list {
 /* grid-template-columns: repeat(2, 1fr);*/
}

.llms-achievement,
.llms-certificate {
  background: #fff;
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--smaz-shadow);
  transition: transform 0.25s ease;
}

.llms-achievement:hover,
.llms-certificate:hover { transform: translateY(-4px); }

.llms-achievement img,
.llms-certificate img {
  width: 70px;
  margin-bottom: 12px;
}

/* Order history table */
.llms-table,
.llms-orders-table,
table.orders {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--smaz-radius);
  overflow: hidden;
  box-shadow: var(--smaz-shadow);
}

.llms-table th,
.llms-orders-table th {
  background: var(--smaz-dark);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.llms-table td,
.llms-orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--smaz-border);
  font-size: 0.9rem;
}

.llms-table tr:last-child td { border-bottom: none; }

.llms-status--active,
.llms-status.active { color: var(--smaz-success); font-weight: 600; }
.llms-status--expired,
.llms-status.expired { color: var(--smaz-error); font-weight: 600; }
.llms-status--pending,
.llms-status.pending { color: var(--smaz-warning); font-weight: 600; }

/* ============================================================================
   6. CHECKOUT & PRICING (llms-checkout shortcode, pricing tables)
   ============================================================================ */

.llms-checkout-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.llms-checkout-wrapper .llms-col-1,
.llms-checkout-wrapper .llms-col-2 {
  flex: 1;
  min-width: 280px;
}

.llms-pricing-table {
  background: #fff;
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius);
  padding: 28px;
  box-shadow: var(--smaz-shadow);
  text-align: center;
}

.llms-pricing-table.featured,
.llms-pricing-table--featured {
  border: 2px solid var(--smaz-primary);
  position: relative;
}

.llms-pricing-table.featured::before {
  content: "Best Value";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--smaz-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
}

.llms-payment-gateways {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.llms-payment-gateways label {
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.llms-payment-gateways input:checked + label,
.llms-payment-gateways label.selected {
  border-color: var(--smaz-primary);
  background: var(--smaz-primary-light);
}

/* ============================================================================
   7. FORMS — Login, Registration, My Account, Checkout fields
   ============================================================================ */

.llms-form-fields,
.llms-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.llms-form-field {
  flex: 1 1 100%;
  margin-bottom: 6px;
}

.llms-form-field.llms-cols-6 { flex-basis: calc(50% - 8px); }
.llms-form-field.llms-cols-4 { flex-basis: calc(33.33% - 11px); }

.llms-form-field label,
.llms-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--smaz-text);
  margin-bottom: 6px;
}

.llms-form-field input[type="text"],
.llms-form-field input[type="email"],
.llms-form-field input[type="password"],
.llms-form-field input[type="tel"],
.llms-form-field select,
.llms-form-field textarea,
.llms-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--smaz-border);
  border-radius: var(--smaz-radius-sm);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.llms-form-field input:focus,
.llms-form-field select:focus,
.llms-form-field textarea:focus {
  outline: none;
  border-color: var(--smaz-primary);
  box-shadow: 0 0 0 3px rgba(108,63,224,0.15);
}

.llms-form-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--smaz-dark);
  margin-bottom: 20px;
}

/* ============================================================================
   8. RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
  .llms-course-header { padding: 32px 24px; }
  .llms-course-header .llms-course-title { font-size: 1.6rem; }
  .llms-student-dashboard { flex-direction: column; }
  .llms-student-dashboard .llms-sidebar { flex: 1 1 100%; }
  .llms-my-courses .llms-loop-list { grid-template-columns: 1fr; }
  .llms-checkout-wrapper { flex-direction: column; }
  .llms-form-field.llms-cols-6,
  .llms-form-field.llms-cols-4 { flex-basis: 100%; }
}
