/* ================= SHARED COURSE PAGES ================= */
.course-page-hero {
  background: #1b3f4a;
  padding: 110px 0;
  color: #fff;
  text-align: center;
}

.course-page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.course-breadcrumb {
  font-size: 14px;
  color: #cbd5e1;
}

.course-breadcrumb a {
  color: #38bdf8;
  text-decoration: none;
}

/* Course list (Used in some listing pages) */
.course-list-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
  transition: all .3s ease;
  position: relative;
}

.course-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.course-list-card img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: contain;
  background: #e6f6ff;
  padding: 12px;
}

.course-list-content h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.course-list-content .count {
  font-weight: 400;
  color: #64748b;
  margin-left: 6px;
}

/* ==========================
   COURSE LISTING PAGE STYLES
========================== */
.course-results {
  padding: 80px 0;
  background: #ffffff;
}

.course-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.course-toolbar span {
  color: #374151;
  font-size: 14px;
}

.course-toolbar .form-select {
  min-width: 200px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

/* Course Card (Grid/List style in listing pages) */
.course-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: .3s;
  }

  .course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
  }

  /* Image */
  .course-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: #e6f6ff;
    padding: 24px;
  }

  /* Body */
  .course-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .course-card-body h6 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
  }

  .course-card-body p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .btn-course {
    display: inline-block;
    margin-top: auto;
    padding: 12px 24px;
    border-radius: 8px;
    background: #6366f1;
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all .3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    position: relative;
    z-index: 10;
  }

  .btn-course:hover {
    background: #4f46e5;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  }

  .btn-course:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
  }

/* ==========================
   COURSE DETAIL PAGE STYLES
========================== */
.course-content {
  padding: 80px 0;
  background: #ffffff;
}

/* IMAGE */
.course-image-container {
  margin-bottom: 30px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.course-image-container img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #e6f6ff;
  padding: 40px;
}

/* INFO CARD */
.course-info-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.course-info-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.course-info-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 35px 0 15px;
}

.course-info-card p {
  color: #4b5563;
  line-height: 1.7;
}

.course-info-card ul {
  list-style: none;
  padding-left: 0;
}

.course-info-card ul li {
  padding-left: 28px;
  margin-bottom: 10px;
  position: relative;
}

.course-info-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

/* VENUE INFO */
.venue-box {
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  font-size: 14px;
}

/* SIDEBAR */
.sidebar-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  position: sticky;
  top: 100px;
}

.sidebar-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.info-item {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item strong {
  display: block;
  margin-bottom: 5px;
}

.info-item span {
  font-size: 14px;
  color: #6b7280;
}

/* BUTTONS */
.btn-enroll,
.btn-contact,
.btn-course {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: 6px; /* Rectangular design */
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-enroll,
.btn-course {
  background: #2563eb;
  color: #ffffff !important;
  margin-bottom: 15px;
}

.btn-enroll:hover,
.btn-course:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-contact {
  border: 2px solid #2563eb;
  color: #2563eb !important;
  background: transparent;
}

.btn-contact:hover {
  background: #2563eb;
  color: #ffffff !important;
}

/* Mobile */
@media (max-width: 575px) {
  .course-list-card,
  .course-card {
    flex-direction: column;
    text-align: center;
  }
}
