.course-container,
.archive-course-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 529px) {
  .search-course-container,
  .archive-course-container,
  .archive-article-container {
    transform: translateY(0%);
  }
}

/* Base Card Styles */
.course-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(224, 224, 224, 0.4);
  flex: 1 1 calc(33.333% - 16px);
  min-width: 320px;
  max-width: 380px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03), 0 4px 15px rgba(0, 0, 0, 0.05);
  will-change: transform, box-shadow;
  z-index: 1;
  display: flex;
  flex-direction: column; /* Tambahkan ini untuk layout flexbox */
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.02) 0%,
    rgba(59, 130, 246, 0.02) 50%,
    rgba(16, 185, 129, 0.02) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 24px;
  z-index: -1;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12),
    0 6px 15px rgba(139, 92, 246, 0.08);
  border-color: rgba(224, 224, 224, 0.8);
}

.course-card:hover::before {
  opacity: 1;
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #8b5cf640, #3b82f640, #10b98140);
  z-index: -2;
  border-radius: 26px;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(16px);
}

.course-card:hover .card-glow {
  opacity: 0.6;
}

/* Image Section */
.course-image-wrapper {
  position: relative;
  height: 200px;
  margin: 16px 16px 0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  flex-shrink: 0; /* Mencegah image section mengecil */
}

.course-card:hover .course-image-wrapper {
  margin: 12px 12px 0;
}

.image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.course-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c3e50, #4a6491);
  border-radius: 16px;
  overflow: hidden;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center center;
}

.course-card:hover .course-image {
  transform: scale(1.08);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.course-card:hover .image-overlay {
  opacity: 1;
}

.image-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 75% 25%,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.course-card:hover .image-glow {
  opacity: 1;
}

/* Floating Badge */
.floating-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transform: translateY(-8px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: white;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(138, 138, 138, 0.85);
  position: relative;
}

.floating-badge.beginner,
.progress-fill.beginner {
  background: rgba(16, 185, 129, 0.85);
}

.floating-badge.intermediate,
.progress-fill.intermediate {
  background: rgba(245, 158, 11, 0.85);
}

.floating-badge.advance,
.progress-fill.advance {
  background: rgba(239, 68, 68, 0.85);
}
.floating-badge.all,
.progress-fill.all {
  background: rgba(0, 0, 0, 0.85);
}

.course-card:hover .floating-badge {
  transform: translateY(0);
  opacity: 1;
}

/* Course Body - FIX UTAMA ADA DI SINI */
.course-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ini yang penting untuk space-between */
  flex: 1; /* Mengambil sisa ruang yang tersedia */
  padding: 20px;
  min-height: 0; /* Mencegah overflow issues */
}

/* Course Content */
.course-content {
  flex: 1; /* Mengisi ruang tersedia */
  display: flex;
  flex-direction: column;
}

.course-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: linear-gradient(135deg, #2c3e50, #4a6491);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.course-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.course-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.course-duration svg {
  flex-shrink: 0;
}

/* Course Title */
.course-title {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.course-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(to right, currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left 100%;
  padding-bottom: 2px;
}

.course-title a:hover {
  background-size: 100% 1px;
  color: #184477;
}

/* Skill Progress */
.skill-progress {
  margin-bottom: 0; /* Hapus margin bottom karena tidak perlu lagi */
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}

.skill-text {
  color: #64748b;
  font-weight: 500;
}

.skill-value {
  color: #0f172a;
  font-weight: 600;
  text-transform: capitalize;
}

.progress-bar {
  height: 4px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

/* Course Action - FIX KEDUA ADA DI SINI */
.course-action {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0; /* Hapus margin-top karena space-between sudah menangani */
  flex-shrink: 0; /* Pastikan tombol tidak mengecil */
  padding-top: 16px; /* Jarak dari konten di atas */
}

.learn-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #0f172a;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  gap: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  border: none;
  cursor: pointer;
}

.learn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
  background: linear-gradient(135deg, #2c3e50, #4a6491);
  color: white;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.learn-btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .course-card {
    flex: 1 1 100%;
    min-width: unset;
    max-width: 100%;
  }

  .course-body {
    padding: 16px;
  }

  .course-title {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .course-image-wrapper {
    height: 180px;
    margin: 12px 12px 0;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .course-card {
    flex: 1 1 calc(50% - 12px);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.course-card:nth-child(2) {
  animation-delay: 0.1s;
}

.course-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* Subtle hover effects */
.course-card:hover .course-tag {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
  }
}

.container-home {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.container-home .content {
  display: flex;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
}

.container-home .content .left {
  flex-basis: calc(60% - 10px);
  box-sizing: border-box;
}

.container-home .content .right {
  flex-basis: calc(40% - 10px);
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.container-home h1 {
  font-size: 40px;
  margin-top: 0;
  text-transform: uppercase;
}
.container-home .content .left p {
  margin: 0;
}
.container-home .content .left h2 {
  margin: 10px 0 30px 0;
}
.container-home .content .left img {
  border-radius: 20px;
  margin-bottom: 20px;
  width: 100%;
}
.container-home .content .left .block-category {
  display: flex;
  justify-content: flex-end;
  text-decoration: none;
  margin-top: 20px;
  font-weight: 600;
  color: #005d6d;
}

.container-home .content .left hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 10px 0;
}

.card-article-detail {
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}
.card-article-detail p {
  color: #000;
  font-size: 16px;
}
.card-article-detail a {
  text-decoration: none;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.article-item {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 15px 0;
  border-top: 1px solid #ddd;
}

.article-number {
  font-size: 28px;
  color: #005d6d;
  font-weight: bold;
  width: 50px;
  text-align: center;
}

.article-content {
  margin-left: 10px;
  flex-grow: 1;
}

.article-category {
  font-size: 12px;
  color: #005d6d;
  font-weight: bold;
  text-transform: uppercase;
}

.article-title {
  font-size: 16px;
  color: #333;
  text-decoration: none;
  margin-top: 5px;
  font-weight: 500;
}

.article-type {
  font-size: 12px;
  color: #005d6d;
  font-weight: bold;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .container-home .content {
    flex-direction: column;
  }

  .container-home .content .left,
  .container-home .content .right {
    flex-basis: 100%;
    margin: 0;
  }

  .container-home h1 {
    font-size: 28px;
  }

  .article-item {
    padding: 10px 0;
  }

  .article-number {
    font-size: 24px;
  }

  .article-title {
    font-size: 14px;
  }
}

.wrapper-syllabus-course {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wrapper-syllabus-course .section-content.collapsed {
  display: none;
}

.wrapper-syllabus-course .section-header {
  display: flex;
  justify-content: space-between; /* teks di kiri, arrow di kanan */
  align-items: center; /* align vertikal tengah */
  padding: 10px 15px;
  background-color: #ffffff;
  cursor: pointer;
  border-bottom: 0.1px solid rgb(190, 190, 190);
}

.section-title {
  font-size: 1rem;
  font-weight: bold;
}

.section-arrow {
  font-size: 1.2rem;
  margin-left: 10px; /* jarak antara teks dan arrow */
}

.wrapper-syllabus-course .lesson-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.wrapper-syllabus-course .disabled-link {
  pointer-events: none;
  text-decoration: none;
  color: #aaa;
  background-color: #e7e7e7;
}

.wrapper-syllabus-course .disabled-link a {
  color: #aaa;
  background-color: #e7e7e7;
  cursor: default;
}

.wrapper-syllabus-course .disabled-link a:hover {
  background-color: #e7e7e7;
}

.course-info {
  width: 100%;
  padding: 2.5px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  border: 1px solid rgba(100, 100, 100, 0.459);
  border-radius: 4px;
}

.course-info td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}

.course-info td:first-child {
  font-weight: bold;
  color: #666;
}

.course-info td:last-child {
  text-align: right;
}

.course-info tr:last-child td {
  border-bottom: none;
}

.llms-course-continue-button,
.llms-course-complete-text {
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  text-align: center;
}

.llms-parent-course-link {
  display: none;
}

.the-lesson-page,
.the-course-page {
  .llms-syllabus-wrapper {
    display: none;
  }

  .current-lesson {
    background-color: #f7f7f7 !important;
  }

  .row.group.lesson {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
  }

  .row.group.lesson > .two-thirds {
    flex: 2; /* 2 bagian */
    .llms-video-wrapper {
      width: 100%;
      aspect-ratio: 16/9;
    }
    .llms-video-wrapper,
    .pdfemb-viewer {
      margin-top: 1rem;
    }
  }

  .row.group.lesson > .one-fifth {
    flex: 1; /* 1 bagian */

    .llms-progress .progress__indicator {
      height: 8px;
      border-radius: 4px;
      margin-bottom: 0.5rem;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .llms-progress .progress__indicator .progress__bar {
      background: linear-gradient(90deg, #2c3e50, #4a6491);
      border-radius: 4px;
      box-shadow: 0 1px 3px rgba(44, 62, 80, 0.3);
    }

    .llms-progress .llms-progress__stats {
      display: flex;
      justify-content: space-between;
      font-size: 0.9rem;
      color: #6b7c93;
      font-weight: 500;
    }
  }

  .wrapper-syllabus-course {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .wrapper-syllabus-course .item-course-section {
    border: 1px solid #cacaca;
    border-radius: 5px;
    overflow: hidden;
  }

  .back-to-course-button {
    display: inline-block;
    background-color: #2f70b7;
    width: 100%;
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
  }

  .back-to-course-button:hover {
    background-color: #265a92;
  }

  .wrapper-syllabus-course .item-course-section p {
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 0.1px solid rgb(212, 212, 212);
  }

  .wrapper-syllabus-course .item-course-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .wrapper-syllabus-course .item-course-section li {
    border-bottom: 1px solid #ddd;
    background-color: #fff;
  }

  .wrapper-syllabus-course .item-course-section li:last-child {
    border-bottom: none;
  }

  .wrapper-syllabus-course .item-course-section li a {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 15px;
    font-size: 14px;
    position: relative;
  }

  .wrapper-syllabus-course .item-course-section li a:hover {
    background-color: #e6e6e6;
  }

  .wrapper-syllabus-course .item-course-section li a .lesson-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 15px;
    min-width: 0;
  }

  .wrapper-syllabus-course .item-course-section li a .lesson-progress {
    white-space: nowrap;
    margin-left: 10px;
  }

  .wrapper-syllabus-course .lesson-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
  }

  .wrapper-syllabus-course .disabled-link {
    pointer-events: none;
    text-decoration: none;
    color: #aaa;
    background-color: #e7e7e7;
  }

  .wrapper-syllabus-course .disabled-link a {
    color: #aaa;
    background-color: #e7e7e7;
    cursor: default;
  }

  .wrapper-syllabus-course .disabled-link a:hover {
    background-color: #e7e7e7;
  }

  .thumbnail-img-content {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
  }

  .llms-lesson-button-wrapper,
  .llms-course-navigation {
    margin-top: 20px;
  }

  .llms-parent-course-link {
    .llms-lesson-link {
      color: #007bff;
    }
  }

  .progress-bar-complete {
    background: #4a6491;
  }

  .right-course-content {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 85px;
    .llms-course-continue-button,
    .llms-course-complete-text {
      margin-top: 10px;
      text-align: center;
      align-items: center;
    }
    .llms-progress {
      margin: 0;
      margin-bottom: 20px;
    }
    .llms-access-plan .llms-access-plan-content .llms-access-plan-pricing {
      display: none;
    }
    .llms-access-plan .llms-access-plan-content .llms-access-plan-title {
      margin: 0;
      background-color: #333;
    }
  }

  .llms-button-action {
    background-color: #34a3bc;
  }
  .llms-button-action:hover {
    background-color: #34a3bc9a;
  }
  .llms-categories {
    a {
      text-decoration: none;
      background-color: rgba(115, 206, 162, 0.493);
      padding: 5px 10px;
      border-radius: 10px;
    }
    a:hover {
      background-color: #34d286;
    }
  }
}
@media (max-width: 960px) {
  .the-lesson-page,
  .the-course-page {
    .row.group .two-thirds,
    .row.group .one-fifth,
    .right-course-content {
      width: 100%;
    }

    .row.group .right-lesson-content,
    .row.group .two-thirds {
      margin: 0;
      box-sizing: border-box;
      padding: 10px;
      margin-right: 0px;
      transition: none;
    }

    .toggle-button {
      display: none;
    }

    .row.group .one-fifth {
      margin-top: 30px;
      animation: none;
    }

    .row.group {
      display: flex;
      flex-wrap: wrap;
      flex-direction: column-reverse;
    }
    .llms-parent-course-link {
      max-width: 100%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      .llms-lesson-link {
        font-size: 1rem;
      }
    }

    .row.group.lesson {
      flex-direction: column;
    }
  }
}

.dashboard-course {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;

  .last-accessed-section {
    width: 40%;

    .card-course-last-access {
      display: flex;
      flex-direction: column;
      border: 1px solid #ddd;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      margin: 20px auto;
      background-color: #fff;
      font-family: Arial, sans-serif;

      img {
        width: 100%;
      }

      .course-content {
        padding: 20px;

        .last-accessed-details {
          background-color: #f9f9f9;
          border: 1px solid #ddd;
          border-radius: 8px;
          padding: 12px 16px;
          margin: 16px 0;
          display: flex;
          align-items: center;
          gap: 12px;
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          transition: transform 0.3s, box-shadow 0.3s;
        }
      }

      .last-accessed-details:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
      }

      .last-accessed-details .play-icon {
        width: 12px;
        height: 12px;
        display: inline-block;
        background-color: #0073aa;
        clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
        transition: background-color 0.3s, transform 0.3s;
      }

      .last-accessed-details .play-icon:hover {
        background-color: #005f8c;
        transform: scale(1.1);
      }

      .last-accessed-details p {
        font-size: 14px;
        color: #444;
        margin: 0;
        line-height: 1.6;
      }

      .last-accessed-details p a {
        color: #0073aa;
        font-weight: bold;
        text-decoration: none;
      }

      .last-accessed-details p a:hover {
        text-decoration: underline;
        color: #005f8c;
      }
    }
  }

  .list-course-section {
    width: 60%;
  }

  .vertical-divider {
    border: none;
    border-left: 2px solid #ddd;
    height: auto;
    align-self: stretch;
    margin: 0;
  }
}

.course-list-dashboard {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  .course-list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .course-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .course-image {
    flex-shrink: 0;
    width: 200px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
  }

  .course-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

  .course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 16px;
  }

  .course-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .course-difficulty {
    font-size: 14px;
    color: #777;
    margin: 0;
  }

  .progress-bar {
    width: 100%;
    margin-top: 12px;
  }

  .progress-line {
    position: relative;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(to right, #0073aa, #005f8c);
    width: 0;
    transition: width 0.4s ease-in-out;
  }

  .progress-text {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
    text-align: right;
    font-weight: bold;
  }

  .btn-course {
    margin-top: auto;
  }

  .course-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .course-link:hover {
    background-color: #005f8c;
    transform: translateY(-2px);
  }
}

.dashboard-certificates {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  h2 {
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    margin-top: 0;
  }

  .certificate-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .certificate-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  .certificate-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
  }

  .certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
  }

  .certificate-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .certificate-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .certificate-date {
    font-size: 14px;
    color: #777;
    margin-top: 8px;
  }

  .certificate-card a {
    text-decoration: none;
    color: inherit;
  }

  .certificate-card a:hover .certificate-title {
    color: #0073aa;
  }
}

@media (max-width: 768px) {
  .dashboard-course {
    flex-direction: column;
    .list-course-section,
    .last-accessed-section {
      width: 100%;
    }
    .list-course-section {
      .course-list-dashboard {
        .course-image {
          width: 150px;
          margin-left: 15px;
        }
      }
    }
  }
}

.um-profile-nav,
.um-profile-body {
  display: none;
}

.um-profile-meta {
  padding-left: 190px !important;
}
/* Common Styles */
.certificate-type-badge {
  display: inline-block;
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

.certificate-link {
  display: inline-block;
  color: #0a66c2;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  margin-right: 15px;
}

.certificate-link:hover {
  text-decoration: underline;
}

.certificate-actions {
  margin-top: 10px;
}

/* Layout 1 - Default Grid Style */
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 20px 0;
}

.certificate-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certificate-card:hover .certificate-image img {
  transform: scale(1.05);
}

.certificate-content {
  padding: 0 15px;
}

.certificate-title {
  font-weight: 600;
  margin: 8px 0;
  color: #333;
  font-size: 16px;
}

.certificate-title a {
  color: inherit;
  text-decoration: none;
}

.certificate-title a:hover {
  color: #0a66c2;
}

.certificate-course {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px 0;
}

.certificate-date {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px 0;
}

.certificate-section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.certificate-item.linkedin-item {
  display: flex;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #fff;
}

.certificate-image.linkedin-image {
  width: 140px;
  height: 100px;
  min-width: 80px;
  margin-right: 15px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.certificate-image.linkedin-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-content.linkedin-content {
  flex: 1;
}

.certificate-title.linkedin-title a {
  color: inherit;
  text-decoration: none;
}

.certificate-title.linkedin-title a:hover {
  color: #0a66c2;
  text-decoration: underline;
}

.certificate-course {
  font-size: 16px;
  color: #666;
  margin: 0 0 5px 0;
}

.certificate-date.linkedin-date {
  font-size: 14px;
  color: #666;
  margin: 0 0 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .certificate-item.linkedin-item {
    flex-direction: column;
  }

  .certificate-image.linkedin-image {
    margin-bottom: 15px;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
  }
}

/* Skill Items - View Mode */
.skill-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skill-item:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.skill-percentage {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 12px;
}

.skill-bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: #007bff;
  border-radius: 3px;
  transition: width 1s ease;
}

/* No Skills Message */
.no-skills-message {
  text-align: center;
  padding: 30px 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  color: #666;
}

.no-skills-message p {
  margin: 0;
  font-size: 14px;
}

/* Edit Button */
.edit-btn {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 16px;
  transition: background 0.2s ease;
}

.edit-btn:hover {
  background: #0056b3;
  text-decoration: none;
  color: white;
}

.skill-form-wrapper h4 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* Form Rows */
.skill-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.skill-form-row input[type="text"] {
  flex: 2;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.skill-form-row input[type="text"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.skill-form-row input[type="number"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.skill-form-row input[type="number"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.remove-skill-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.remove-skill-btn:hover {
  background: #c82333;
}

/* Add Skill Button */
.add-skill-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin: 16px 0;
  transition: background 0.2s ease;
}

.add-skill-btn:hover {
  background: #218838;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}

.save-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.save-btn:hover {
  background: #0056b3;
}

.cancel-btn {
  background: #6c757d;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s ease;
}

.cancel-btn:hover {
  background: #545b62;
  text-decoration: none;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .user-skills-wrapper {
    padding: 15px;
  }

  .skill-form-wrapper {
    padding: 20px;
  }

  .skill-form-row {
    flex-direction: column;
    gap: 8px;
  }

  .skill-form-row input[type="text"],
  .skill-form-row input[type="number"] {
    width: 100%;
  }

  .skill-header {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .form-actions {
    flex-direction: column;
    gap: 8px;
  }

  .save-btn,
  .cancel-btn {
    width: 100%;
    text-align: center;
  }
}

.contact-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.contact-icon {
  width: 22px;
  margin-right: 10px;
  color: #0073aa;
}

.contact-label {
  font-weight: 600;
  margin-right: 4px;
}

.experience-item {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
}

.experience-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.company-logo {
  flex-shrink: 0;
}

.company-logo img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.experience-details {
  flex: 1;
}

.position-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 4px 0;
}

.company-info {
  color: #666;
  font-size: 14px;
  margin-bottom: 4px;
}

.company-name {
  font-weight: 500;
}

.employment-type {
  color: #888;
}

.date-location {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.experience-description {
  margin-top: 12px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.experience-description p {
  margin: 0;
}

.experience-description.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.see-more-btn {
  color: #0073aa;
  cursor: pointer;
  font-weight: 500;
  margin-top: 8px;
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  text-decoration: underline;
}

.see-more-btn:hover {
  color: blue;
  background: none;
}

.no-experience-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* Form Styles */
.experience-form-wrapper {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.experience-form-row {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  position: relative;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
}

.current-job-checkbox {
  width: auto !important;
  margin-right: 8px;
}

.remove-experience-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.remove-experience-btn:hover {
  background: #c82333;
}

.add-experience-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 16px;
}

.add-experience-btn:hover {
  background: #218838;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.save-btn {
  background: #0073aa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.save-btn:hover {
  background: #005a87;
}

.cancel-btn {
  background: #6c757d;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
}

.cancel-btn:hover {
  background: #5a6268;
  color: white;
}

.education-item {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
}

.education-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.school-logo {
  flex-shrink: 0;
}

.school-logo img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.education-details {
  flex: 1;
}

.school-name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 4px 0;
}

.degree-info {
  color: #666;
  font-size: 14px;
  margin-bottom: 4px;
}

.degree-name {
  font-weight: 500;
}

.date-range {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.education-description {
  margin-top: 12px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.education-description p {
  margin: 0;
}

.education-description.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.see-more-btn {
  color: #0073aa;
  cursor: pointer;
  font-weight: 500;
  margin-top: 8px;
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  text-decoration: underline;
}

.see-more-btn:hover {
  color: blue;
  background: none;
}

.no-education-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* Form Styles */
.education-form-wrapper {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.education-form-row {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  position: relative;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
}

.current-education-checkbox {
  width: auto !important;
  margin-right: 8px;
}

.remove-education-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.remove-education-btn:hover {
  background: #c82333;
}

.add-education-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 16px;
}

.add-education-btn:hover {
  background: #218838;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.save-btn {
  background: #0073aa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.save-btn:hover {
  background: #005a87;
}

.cancel-btn {
  background: #6c757d;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
}

.cancel-btn:hover {
  background: #5a6268;
  color: white;
}
