/* 
Theme Name: Orbit ISS
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Alwafaa Theme
Author: Elementor Team
Author URI:https://www.iovisionbd.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */



/*  ----------------------------------------- */

/* Base card for all major blocks */
.ld_course_info,
#learndash_post_1845,
dd.course_progress {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 24px 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  border: 1px solid #e2e8f0;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* Gradient border outline */
.ld_course_info::before,
#learndash_post_1845::before,
dd.course_progress::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #2563eb, #38bdf8, #22c55e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Remove extra padding for progress bar to keep it compact */
dd.course_progress {
  padding: 18px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.ld_course_info h4,
#learndash_course_content_title,
.course_progress_details h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0f172a;
}

.ld_course_info h4::before,
#learndash_course_content_title::before,
.course_progress_details h4::before {
  content: "";
  width: 7px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
}

.learndash_content p,
.ld-course-progress-content-container,
#learndash_course_status {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #475569;
}

/* ============================================================
   REGISTERED COURSES (TOP BLOCK)
   ============================================================ */

.ld_course_info_mycourses_list {
  margin-bottom: 20px;
}

.ld-courseregistered-content-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Course card inside the registered list */
.ld-course-info-my-courses {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 22px 26px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

.ld-course-info-my-courses:hover {
  background: #eef6ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

/* Course thumbnail */
.ld-course-info-my-courses img {
  width: 120px !important;
  height: 90px !important;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Course title text */
.ld-course-info-my-courses .ld-entry-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}

.ld-course-info-my-courses .ld-entry-title a {
  color: #0f172a;
  text-decoration: none;
}

.ld-course-info-my-courses .ld-entry-title a:hover {
  color: #2563eb;
}

/* ============================================================
   COURSE PROGRESS DETAILS (LOGGED-IN)
   ============================================================ */

.course_progress_details {
  margin-top: 10px;
  background: #f9fafb;
  border-radius: 14px;
  padding: 16px 18px 14px;
}

.course_progress_details .ld-course-progress-content-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Status pill */
.leardash-course-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Completed */
.leardash-course-status-completed {
  background: #dcfce7;
  color: #166534;
}

/* Optional variants */
.leardash-course-status-in-progress {
  background: #e0f2fe;
  color: #075985;
}
.leardash-course-status-not-started {
  background: #fee2e2;
  color: #991b1b;
}

/* Edit course link */
.learndash-profile-edit-course-link {
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
}
.learndash-profile-edit-course-link:hover {
  color: #2563eb;
}

/* ============================================================
   COURSE HEADER / STATUS (LOGGED-IN)
   ============================================================ */

.user_has_access #learndash_course_status {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  margin-bottom: 10px;
}

#learndash_post_1845.user_has_access #learndash_course_status b {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

/* ============================================================
   PUBLIC (NO ACCESS) – CTA BUTTON
   ============================================================ */

.user_has_no_access form {
  margin-bottom: 22px;
}

.user_has_no_access #btn-join,
.user_has_no_access .btn-join,
.learndash_mark_complete_button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  font-size: 0.98rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: #ffffff;
  background-color: #002840;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
	margin-top:20px;
}

.user_has_no_access #btn-join:hover,
.user_has_no_access .btn-join:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.45);
  opacity: 0.95;
}
.user_has_no_access #btn-join:active,
.user_has_no_access .btn-join:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

/* ============================================================
   COURSE CONTENT (SHARED)
   ============================================================ */

#learndash_course_content {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

#learndash_lessons {
  margin-top: 8px;
}

/* Lessons header row */
#lesson_heading {
  display: grid;
  grid-template-columns: 80px 1fr 110px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#lesson_heading span {
  display: flex;
  align-items: center;
}

#lesson_heading span:first-child::before {
  content: "";
  width: 6px;
  height: 16px;
  border-radius: 999px;
  margin-right: 6px;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
}

#lesson_heading span.right {
  justify-content: flex-end;
}

/* ============================================================
   LESSON LIST (SHARED LAYOUT)
   ============================================================ */

.lessons_list {
  margin-top: 12px;
}

/* Each lesson row: number | title | status */
.lessons_list > div {
  display: grid;
  grid-template-columns: 70px 1fr 110px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
  transition: background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.lessons_list > div:hover {
  background: #eef6ff;
  border-color: #2563eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

/* Lesson number bubble */
.lessons_list .list-count {
  width: 40px!important;
  height: 40px;
  border-radius: 999px;
  background: #e0f2fe;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex!important;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

/* Lesson title */
.lessons_list h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
}

.lessons_list h4 a {
  text-decoration: none;
  color: inherit;
}

.lessons_list h4 a:hover {
  color: #2563eb;
}

/* Remove any LearnDash built-in pseudo icons on links */
.lessons_list h4 a::after {
  display: none !important;
}

/* ============================================================
   STATUS COLUMN VARIANTS
   ============================================================ */

/* LOGGED-IN: completed – big green check */


/* Hide original small check from LD */
#learndash_post_1845.user_has_access .lessons_list h4 a.completed::after {
  display: none !important;
}

/* PUBLIC (NO ACCESS): default "Locked" badge */
.user_has_no_access .lessons_list > div::after {
  content: "Locked";
  justify-self: flex-end;
  min-width: 90px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fee2e2;
  color: #b91c1c;
}

/* Sample lessons become "Preview" */
.user_has_no_access .lessons_list > .is_sample::after {
  content: "Preview";
  background: #e0f2fe;
  color: #0369a1;
}

/* ============================================================
   GLOBAL COURSE PROGRESS BAR WIDGET
   ============================================================ */

dd.course_progress {
  background: #0b1120;
  color: #e5e7eb;
}

dd.course_progress::before {
  background: linear-gradient(135deg, #1d4ed8, #22c55e);
}

/* Inner progress bar */
dd.course_progress .course_progress_blue {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25),
    0 8px 20px rgba(34, 197, 94, 0.35);
  overflow: hidden;
}

/* Shine animation */
dd.course_progress .course_progress_blue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-100%);
  animation: ld-progress-shine 2.2s linear infinite;
}

@keyframes ld-progress-shine {
  0% {
    transform: translateX(-100%);
  }
  60% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .e-con-inner {
    margin: 24px auto 32px;
    padding: 0 16px 24px;
  }

  #lesson_heading {
    grid-template-columns: 1fr 1fr;
    font-size: 0.78rem;
  }

  .lessons_list > div {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    row-gap: 8px;
  }
.lessons_list > div::after {
    justify-self: flex-start;
  }

  .ld-course-info-my-courses {
    flex-direction: column;
    align-items: flex-start;
  }

  .ld-course-info-my-courses img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* ============================================================
   LESSON SINGLE PAGE (CONSISTENT WITH COURSE DESIGN)
   ============================================================ */

/* Main lesson wrapper */
.learndash_post_sfwd-lessons {
  max-width: 900px;
  margin: 40px auto;
  padding: 28px 26px 26px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  border: 1px solid #e2e8f0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

/* Gradient border outline */
.learndash_post_sfwd-lessons::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #2563eb, #38bdf8, #22c55e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Lesson content typography */
 .learndash_content {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #475569;
}

.learndash_content p {
  margin: 0 0 10px;
}

/* "Lessons:" heading */
 .learndash_content p strong {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.learndash_content p strong::before {
  content: "";
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
}

/* Bullet list styling */
 .learndash_content ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

 .learndash_content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

/* Custom bullet */
 .learndash_content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.8);
}

/* ============================================================
   NEXT / PREVIOUS LESSON NAVIGATION
   ============================================================ */

#learndash_next_prev_link {
  margin-top: 26px;
  text-align: right;
}

/* Base button style */
#learndash_next_prev_link .next-link,
#learndash_next_prev_link .prev-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #0f172a;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

#learndash_next_prev_link .next-link:hover,
#learndash_next_prev_link .prev-link:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.5);
}

/* Arrow */
#learndash_next_prev_link .next-link .meta-nav,
#learndash_next_prev_link .prev-link .meta-nav {
  font-size: 1.1rem;
}

/* For prev links if you add them later */
#learndash_next_prev_link .prev-link .meta-nav {
  transform: rotate(180deg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .learndash_post_sfwd-lessons {
    margin: 24px auto;
    padding: 22px 18px 20px;
  }

  #learndash_next_prev_link {
    text-align: left;
    margin-top: 22px;
  }
}





