body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f5f7fb;
  color: #222;
}

.topbar {
  background: #1f2933;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .logo {
  font-weight: 700;
}

.topbar nav a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
}

.topbar .logo img {
  width: 36px;   /* Adjust size here */
  height: 36px;
  object-fit: contain;
  display: block;
}

.container {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 15px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.course-card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.course-card h2 {
  margin-top: 0;
}

.btn, button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover, button:hover {
  background: #1d4ed8;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.badge-pending { background: #fbbf24; color: #111; }
.badge-complete { background: #22c55e; color: #fff; }
.badge-rejected { background: #ef4444; color: #fff; }

/*.auth-container {
  max-width: 400px;
  margin: 60px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
*/

.auth-container {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
}

.auth-form label {
  display: block;
  margin-top: 10px;
}

.auth-form input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
}

.error { color: #ef4444; }
.success { color: #22c55e; }

.quiz-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.quiz-question {
  margin-bottom: 20px;
}

.quiz-option {
  display: block;
  margin: 5px 0;
}


.auth-container h1 {
  margin-top: 0;
}

.auth-container label {
  display: block;
  margin-top: 10px;
}

.auth-container input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  box-sizing: border-box;
}

.error, .alert {
  background: #fee2e2;
  color: #b91c1c;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.module-block {
  margin-top: 25px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
}

.lesson-list {
  list-style: none;
  padding-left: 0;
  font-size:1.2rem;
}

.lesson-list li {
  margin: 5px 0;
}

.lesson-content img, .lesson-content iframe, .lesson-content video {
  max-width: 100%;
}

.public-header {
  background: #1f2937;
  color: #fff;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.public-header .logo {
  font-size: 22px;
  font-weight: 700;
}

.public-header nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-size: 15px;
}

.public-header nav a:hover {
  color: #60a5fa;
}

.public-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-header .logo img {
  width: 36px;   /* Perfect size for your dark header */
  height: 36px;
  object-fit: contain;
  display: block;
}

.public-header .logo span {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}



.public-footer {
  background: #111827;
  color: #9ca3af;
  text-align: center;
  padding: 20px;
  margin-top: 40px;course-card
  font-size: 14px;
}

.hero-banner {
  background: url('../images/banner-desktop.png') center/cover no-repeat;
  padding: 120px 20px;
  text-align: center;
  color: #fff;
}

.hero-banner-nopic {
  padding: 20px 20px;
  text-align: center;
  color: blue;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.hero-btn {
  background: #2563eb;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
}

.hero-btn:hover {
  background: #1d4ed8;
}

/* Mobile Banner */
@media (max-width: 768px) {
  .hero-banner {
    background: url('../images/banner-mobile.png') center/cover no-repeat;
    padding: 80px 20px;
  }

  .hero-content h1 {
    font-size: 32px;
  }
}

@media (prefers-color-scheme: dark) {
  .hero-banner {
    background: url('../images/banner-dark.png') center/cover no-repeat;
  }
}

.progress-container {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #2563eb;
  transition: width .3s ease;
}

/* DASHBOARD LAYOUT */
.dashboard-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

/* Dashboard cards (Continue Learning + Available Courses) */
.dashboard-card {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* GRID FOR COURSES */
.dashboard-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* INDIVIDUAL COURSE CARDS */
.dashboard-course-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

/* Progress bar 
.progress-bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
}
*/
/* ================================
   SPARKACADEMY CURRICULUM SECTION
   ================================ */

.curriculum-section {
    margin-top: 30px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.curriculum-section h2 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

/* Accordion container */
.curriculum-accordion {
    border-top: 1px solid #e5e7eb;
}

/* Module block */
.module-item {
    border-bottom: 1px solid #e5e7eb;
}

/* Module header */
.module-header {
    width: 100%;
    background: #f9fafb;
    border: none;
    padding: 14px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #1f2937;
    border-radius: 6px;
    transition: background .2s ease;
}

.module-header:hover {
    background: #f3f4f6;
}

.module-title {
    font-weight: 600;
}

.module-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-toggle-icon {
    font-size: 12px;
    transition: transform .2s ease;
}

/* Expanded state */
.module-item.active .module-toggle-icon {
    transform: rotate(180deg);
}

/* Module body */
.module-body {
    display: none;
    padding: 10px 12px 15px 12px;
    background: #fff;
}

.module-item.active .module-body {
    display: block;
}

/* Lesson row */
.lesson-row {
    display: flex;
    align-items: center;
    padding: 8px 6px;
    border-radius: 6px;
    text-decoration: none;
    color: #1f2937;
    transition: background .2s ease;
}

.lesson-row:hover {
    background: #f3f4f6;
}

.lesson-icon {
    margin-right: 10px;
    font-size: 16px;
}

.lesson-title {
    font-size: 15px;
}

/* Empty lesson placeholder */
.empty-lesson {
    padding: 8px 4px;
    color: #6b7280;
    font-size: 14px;
}

.instructor-card {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.instructor-card h2 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.instructor-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.instructor-photo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
}

.instructor-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.instructor-info p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

/* ADMIN TABLE FIXES */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Forces consistent column widths */
}

.admin-table th, 
.admin-table td {
    padding: 10px;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
    word-wrap: break-word;
}

/* Column width control */
.admin-table th:nth-child(1) { width: 50px; }   /* ID */
.admin-table th:nth-child(2) { width: 100px; }  /* Thumbnail */
.admin-table th:nth-child(3) { width: 180px; }  /* Title */
.admin-table th:nth-child(4) { width: 120px; }  /* Category */
.admin-table th:nth-child(5) { width: 150px; }  /* Instructor */
.admin-table th:nth-child(6) { width: 250px; }  /* Description */
.admin-table th:nth-child(7) { width: 140px; }  /* Actions */

/* Thumbnail images */
.admin-table img {
    width: 80px;
    height: auto;
    border-radius: 4px;
}

/* Fix overlapping buttons */
.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-actions .btn {
    white-space: nowrap;
    padding: 6px 10px;
}

/* Make table scrollable on smaller screens */
@media (max-width: 900px) {
    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.collapsible-content {
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease;
}

.collapsible.open .collapsible-content {
    height: auto;
}

.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Collapsible arrow icon */
.collapse-icon {
    font-size: 14px;
    transition: transform .2s ease;
}

/* Rotate arrow when open */
.collapsible.open .collapse-icon {
    transform: rotate(180deg);
}

.site-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.site-header .logo {
    width: 48px;      /* Adjust size here */
    height: 48px;
    object-fit: contain;
}

.site-header .site-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
}


