/* ============================
   Course Catalog
   ============================ */

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}

.course-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #eee);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.course-card-image {
  position: relative;
  height: 170px;
  background: #eef1f6 center / cover no-repeat;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7ccd6;
  font-size: 42px;
  background: #f3f5f8;
}

.course-wishlist {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0a500;
  cursor: pointer;
  border: none;
}

.course-card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-rating {
  color: #f0a500;
  font-size: 13px;
  margin-bottom: 10px;
}

.course-rating .far {
  color: #e2c477;
}

.course-card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.course-instructor {
  font-size: 13px;
  color: var(--muted, #777);
  margin-bottom: 8px;
}

.course-instructor strong {
  color: inherit;
}

.course-category {
  font-size: 13px;
  color: var(--muted, #777);
  margin-bottom: 14px;
}

.course-category strong {
  color: inherit;
}

.course-stats {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--muted, #777);
  margin-bottom: 16px;
}

.course-stats span i {
  margin-right: 6px;
  color: #f0a500;
}

.course-price-row {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 20px;
}

.course-price-row .free {
  color: #1d9c5b;
}

.course-price-row .strike {
  text-decoration: line-through;
  color: var(--muted, #999);
  font-weight: 500;
  font-size: 15px;
  margin-right: 8px;
}

.course-card-body .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.course-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0 10px;
}

.course-filters button {
  border: 1px solid var(--border, #ddd);
  background: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
}

.course-filters button.active {
  background: var(--primary, #2563eb);
  color: #fff;
  border-color: var(--primary, #2563eb);
}

/* ============================
   Auth Pages (Login / Signup)
   ============================ */

.auth-wrapper {
  max-width: 420px;
  margin: 60px auto;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #eee);
  border-radius: 16px;
  padding: 40px 36px;
}

.auth-wrapper h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-wrapper .auth-subtitle {
  text-align: center;
  color: var(--muted, #777);
  margin-bottom: 30px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
}

.auth-error {
  display: none;
  background: #fdecea;
  color: #b3261e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-wrapper .btn {
  width: 100%;
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  margin-top: 22px;
  color: var(--muted, #777);
}

/* ============================
   Dashboard
   ============================ */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0 10px;
}

@media (max-width: 700px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

.dashboard-stat-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #eee);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}

.dashboard-stat-card h2 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.my-course-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.my-course-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #eee);
  border-radius: 14px;
  padding: 16px;
}

.my-course-row img {
  width: 90px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.my-course-info {
  flex: 1;
  min-width: 0;
}

.my-course-info h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.progress-bar-track {
  background: #eef1f6;
  border-radius: 20px;
  height: 8px;
  width: 100%;
  max-width: 280px;
}

.progress-bar-fill {
  background: var(--primary, #2563eb);
  height: 100%;
  border-radius: 20px;
}

.progress-label {
  font-size: 12px;
  color: var(--muted, #777);
  margin-top: 6px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted, #777);
}

/* ============================
   Navbar fix — Courses/Login/Signup pages
   (extra nav items + 2 auth buttons need more room
   than the original single "Book Demo" button)
   ============================ */

.header .container {
  overflow: visible !important;
  max-width: 100% !important;
}

.navbar {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100%;
  overflow: visible !important;
}

.navbar .nav-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 28px !important;
  flex-shrink: 1;
}

.navbar .nav-menu li > a {
  white-space: nowrap !important;
}

.navbar .nav-buttons {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.navbar .nav-buttons a.btn {
  white-space: nowrap !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
}

@media (max-width: 1500px) and (min-width: 993px) {
  .navbar .nav-menu {
    gap: 18px !important;
    font-size: 13px !important;
  }

  .navbar .nav-buttons a.btn {
    padding: 7px 12px !important;
    font-size: 13px !important;
  }
}

/* Below this width, let the site's existing slide-out mobile menu
   (position:fixed + .active class, handled by main.js / responsive.css)
   work as normal — we only needed extra room on desktop widths above. */

/* ============================
   Google Sign-in Button
   ============================ */

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: var(--muted, #999);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border, #e5e5e5);
}

.auth-divider span {
  padding: 0 12px;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border, #ddd);
  background: #fff;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-google:hover {
  background: #f7f8f8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}