/* =========================
   Course & Instructor Pages CSS
   ========================= */

/* -------------------------
   General Typography & Layout
-------------------------- */
.clear-fix { clear: both; }
.fs-18 { font-size: 18px !important; }
.fs-30 { font-size: 30px !important; font-weight: 600; }
.text-success { font-weight: 600; }

/* -------------------------
   Banner Section
-------------------------- */
.inner-banner {
    position: relative;
    padding: 60px 0 40px;
    text-align: left;
    z-index: 0;
}
.inner-banner::before {
    position: absolute;
    content: "";
    background: url("../img/inner-banner.jpg") center/cover no-repeat;
    z-index: -2;
    inset: 0;
    opacity: 0.85;
}
.inner-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
}
.inner-banner h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}
.inner-banner p,
.inner-banner .badge {
    color: #fff;
}
.inner-banner .badge {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
}
@media (max-width: 767.98px) {
    .inner-banner { text-align: center; padding: 40px 0; }
    .inner-banner h1 { font-size: 26px; }
}

/* -------------------------
   Cards
-------------------------- */
.card {
    border-radius: 8px;
    border: 1px solid #eee;
    margin: 20px 0;
}
.card-body { padding: 20px; }

/* -------------------------
   Instructor Info
-------------------------- */
.avatar img {
    width: 60px;
    height: 60px;
    object-fit: fill;
}
@media (max-width: 768px) {
    .avatar img { width: 50px; height: 50px; }
}

/* -------------------------
   Accordion (Course Topics)
-------------------------- */
.accordion-item {
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafafa;
    overflow: hidden;
}
.accordion-item + .accordion-item {
    margin-top: 10px;
    border-top: 1px solid #e5e5e5;
}
.accordion-button {
    background: #f7f7f7;
    border: none !important;
    box-shadow: none !important;
    font-weight: 600;
    padding: 14px 20px;
    font-size: 15px;
    color: #333;
}
.accordion-button:not(.collapsed) {
    background-color: #f7f7f7;
    color: #000;
}
.accordion-button:focus {
    box-shadow: none !important;
    outline: none;
}
.accordion-body {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 15px;
}

/* -------------------------
   Session List
-------------------------- */
.session-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    background: #fff;
}
.session-list-item:last-child { border-bottom: none; }
.session-list-item p {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
    color: #444;
}
.session-list-item .d-flex { display: flex; align-items: center; gap: 8px; }
.session-list-item a span {
    color: #FE5D37;
    font-weight: 500;
    cursor: pointer;
}
.session-list-item a span:hover { text-decoration: underline; }
.session-list-item .text-muted {
    font-size: 14px;
    color: #777 !important;
}

/* -------------------------
   Sidebar Section
-------------------------- */
.course-sidebar-sec {
  margin-top: -252px;
}
@media (max-width: 991.98px) {
  .course-sidebar-sec { margin-top: 0; }
}
.course-sidebar-sec h5 { margin-bottom: 20px; }
.course-sidebar-sec .course-sidebar-sec-card {
  padding: 20px;
  border: 1px solid #E7E7E7;
  border-radius: 10px;
  margin-bottom: 24px;
  background: var(--white);
}
.course-sidebar-sec .course-sidebar-sec-card p {
  margin-bottom: 20px;
  color: var(--gray-500);
}
.course-sidebar-sec .play-icon {
  width: 60px; height: 60px;
  background: rgba(1, 1, 1, 0.4);
  border-radius: 50%;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  display: flex; justify-content: center; align-items: center;
}
.course-sidebar-sec .btn-wish {
  color: black;
  border: 1px solid gray;
  width: 100%;
  padding: 7px;
  text-align: center;
}
.course-sidebar-sec .btn-wish:hover {
  background: #d70f30;
  border-color: #d70f30;
  color: #fff;
}
.course-sidebar-sec .btn-enroll {
  height: 50px;
  display: flex; align-items: center; justify-content: center;
}
.course-sidebar-sec .btn-enroll:hover {
  background: #d70f30;
  border-color: #d70f30;
  color: #fff;
}
.course-sidebar-sec .cou-features-card {
  border: 1px solid var(--gray-100);
  border-radius: 10px;
}
.course-sidebar-sec .cou-features { padding: 20px; }
.course-sidebar-sec .cou-features h5 { margin-bottom: 20px; }
.course-sidebar-sec .cou-features ul li { margin-bottom: 1rem; }
.course-sidebar-sec .cou-features ul li:last-child { margin-bottom: 0; }

/* -------------------------
   Course Data Table
-------------------------- */
.course-data tr {
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease-in-out;
}
.course-data tr:hover { background: #f9fafb; }
.course-data .avatar img {
    width: 60px; height: 40px;
    object-fit: fill;
    border-radius: 6px;
    transition: transform 0.2s ease-in-out;
}
.course-data .avatar img:hover { transform: scale(1.05); }
.course-data h6 a {
    font-weight: 600;
    color: #FE5D37;
    text-decoration: none;
}
.course-data h6 a:hover { color: #0a0b0b; }
.course-meta {
    font-size: 12px; color: #555;
    gap: 8px; display: flex; flex-wrap: wrap;
}
.course-meta span {
    display: inline-flex; align-items: center;
    padding-right: 6px; margin-right: 6px;
    border-right: 1px solid #e0e0e0;
}
.course-meta span:last-child { border-right: none; }
.course-meta i { color: #888; font-size: 12px; margin-right: 4px; }
.badge.badge-sm {
    font-size: 12px; padding: 5px 10px;
    border-radius: 12px; font-weight: 500;
    min-width: 80px;
}
.action-icon {
    color: #FE5D37; font-size: 14px;
    padding: 6px; border-radius: 6px;
    transition: 0.2s;
}
.action-icon:hover { background: #f5eded; color: #000; }
.table thead { background: #fff5f3 !important; }
.table thead th {
    font-weight: 600; color: #333;
    font-size: 14px; border-bottom: none;
}

/* Mobile Table */
/*@media (max-width: 768px) {

  .course-data tr {
      display: block;
      margin-bottom: 15px;
      background: #fff;
      border: 1px solid #eaeaea;
      border-radius: 8px;
      padding: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  .course-data td { display: block; text-align: left; border: none; padding: 8px 0; }
 .course-data .avatar img { width: 100%; height: auto; }
  .course-data h6 { font-size: 16px; margin-top: 10px; }
  .badge.badge-sm { display: inline-block; margin-top: 6px; font-size: 13px; }
  td:last-child { text-align: center; }
}*/
/* Mobile fix - keep same layout as desktop */
@media (max-width: 768px) {
    .table-responsive-sm {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 600px;
    }

    .course-data tr {
        display: table-row;
        border: none;
    }

    .course-data td,
    .course-data th {
        white-space: nowrap;
        vertical-align: middle;
    }

    .course-meta {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .action-icon {
        font-size: 16px;
        padding: 6px;
    }

    .badge.badge-sm {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* -------------------------
   Timeline (Instructor Education)
-------------------------- */
.timeline-flow {
  position: relative;
  z-index: 1;
}
.timeline-flow::before {
  content: "";
  width: 1px; height: 100%;
  border-left: 1px dashed var(--gray-200);
  position: absolute; left: 4px; top: 18px;
  z-index: -1;
}
.timeline-flow::after {
  content: "";
  width: 10px; height: 10px;
  background: #03C95A;
  border-radius: 50%;
  position: absolute; left: 0; top: 15px;
  z-index: -1;
}
.timeline-flow:last-child::before { display: none; }

/* -------------------------
   Course List Page
-------------------------- */
.courses-list-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    padding: 15px;
    margin-bottom: 20px;
    transition: 0.3s;
}
.courses-list-item:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}
.courses-list-item .card-image {
    flex: 0 0 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 10px;
    margin-right: 15px;
}
.courses-list-item .card-image img {
    width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 768px) {
  .courses-list-item .card-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
  }
}

.course-list-contents { flex: 1; }
.course-list-contents .avatar img {
    width: 40px; height: 40px; border-radius: 50%;
}
.course-list-contents p a {
    color: #333; font-weight: 500; font-size: 14px;
    text-decoration: none;
}

.course-list-contents p a:hover { text-decoration: underline; }
.course-list-contents h4 a {
    color: #FE5D37; font-weight: 700; text-decoration: none;
}
p:last-child {
    margin-bottom: 0;
}
.course-list-contents h4 a:hover { color: #dc3545; }
.course-list-contents .dot {
    height: 6px; width: 6px;
    background: #FE5D37; border-radius: 50%;
    margin: 0 8px;
}
.course-list-contents h5 {
    font-size: 18px;
    color: #dc3545 !important;
    font-weight: 700;
}
.course-list-contents .btn-primary {
    background: #FE5D37;
    border: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
}
.course-list-contents .btn-primary:hover { background: #dc3545; }
.course-content .clear-text {
    color: #FE5D37;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
}
.course-content .clear-text:hover { color: #dc3545; }
.like {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff;
    font-size: 16px;
    color: var(--gray-700);
}

.like_home {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #FFF5F3 !important;
    font-size: 26px;
    color: var(--gray-700);
}
