/* ==========================================================================
   PAID COURSES PAGE STYLES (4-CARD 2x2 GRID + TOP PAGINATION)
   ========================================================================== */

/* HERO SECTION */
.courses-hero {
  position: relative;
  padding: 130px 24px 40px;
  text-align: center;
  background-color: #0f172a;
  color: #f8fafc;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.courses-hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

.courses-hero-container {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.courses-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #6366f1;
  border-radius: 50%;
}

.courses-hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.courses-hero p {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
}

/* SECTION WRAPPER */
.courses-section {
  padding: 10px 24px 100px;
  background-color: #0f172a;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.courses-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

/* TOP PAGINATION */
.courses-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-info {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.page-link:hover:not(.disabled) {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.page-link.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.page-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* 2x2 GRID CONTAINER */
.courses-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* COURSE CARD */
.course-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.12);
  background: rgba(30, 41, 59, 0.85);
}

/* THUMBNAIL */
.course-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #1e293b;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CARD BODY */
.course-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.course-body p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* BULLET LIST */
.course-list {
  padding-left: 20px;
  margin: 0 0 24px 0;
  color: #cbd5e1;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.course-list li {
  line-height: 1.5;
}

/* BUTTON */
.course-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.25s ease;
  margin-top: auto;
}

.course-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.45);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .courses-hero {
    padding: 110px 20px 30px;
  }

  .courses-hero h1 {
    font-size: 32px;
  }

  .courses-pagination {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .courses-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}