/* Popular Courses — Homepage Section */

.pc-courses {
  background: var(--white, #FFFFFF);
  padding: 90px 0 0;
  overflow: hidden;
}

.pc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.pc-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.pc-header-left {
  flex: 1;
  min-width: 260px;
}

.pc-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FF6B00;
  background: rgba(255, 107, 0, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.pc-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #0A1F44;
  line-height: 1.2;
}

.pc-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #FF6B00;
  white-space: nowrap;
  transition: gap 0.25s ease, color 0.25s ease;
}

.pc-view-all:hover {
  gap: 12px;
  color: #E05E00;
}

.pc-view-all i {
  font-size: 13px;
  transition: transform 0.25s ease;
}

.pc-view-all:hover i {
  transform: translateX(3px);
}

/* Cards grid */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.pc-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.pc-card:hover {
  box-shadow: 0 16px 48px rgba(10, 31, 68, 0.12);
  transform: translateY(-6px);
}

.pc-card-top {
  position: relative;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-card-top--orange { background: linear-gradient(135deg, #FF6B00, #FF8A33); }
.pc-card-top--navy { background: linear-gradient(135deg, #0A1F44, #1a3a6e); }
.pc-card-top--teal { background: linear-gradient(135deg, #0D9488, #14B8A6); }
.pc-card-top--purple { background: linear-gradient(135deg, #7C3AED, #A78BFA); }

.pc-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 24px;
}

.pc-popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0A1F44;
  background: #FFFFFF;
  padding: 5px 10px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pc-card-body {
  padding: 22px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pc-card-body h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0A1F44;
  margin-bottom: 14px;
}

.pc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.pc-pill {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #6B7280;
  background: #F4F6F9;
  padding: 5px 10px;
  border-radius: 6px;
  line-height: 1.3;
}

.pc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
}

.pc-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #0A1F44;
}

.pc-rating .pc-stars {
  color: #F59E0B;
  font-size: 12px;
}

.pc-students {
  font-size: 12px;
  color: #6B7280;
}

.pc-fee {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #FF6B00;
  margin-bottom: 18px;
}

.pc-fee span {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
}

.pc-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.pc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-align: center;
}

.pc-btn-enroll {
  background: #FF6B00;
  color: #FFFFFF;
  border-color: #FF6B00;
}

.pc-btn-enroll:hover {
  background: #E05E00;
  border-color: #E05E00;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35);
}

.pc-btn-demo {
  background: transparent;
  color: #0A1F44;
  border-color: rgba(10, 31, 68, 0.2);
}

.pc-btn-demo:hover {
  border-color: #FF6B00;
  color: #FF6B00;
}

/* Navy CTA strip */
.pc-strip {
  margin-top: 48px;
  background: #0A1F44;
  border-radius: 16px 16px 0 0;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}

.pc-strip-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 2.5vw, 17px);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.5;
}

.pc-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: #FF6B00;
  border: 2px solid #FF6B00;
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.pc-strip-btn:hover {
  background: #E05E00;
  border-color: #E05E00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4);
}

/* Tablet: 2 columns */
@media (max-width: 1100px) {
  .pc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile: horizontal scroll */
@media (max-width: 640px) {
  .pc-courses {
    padding: 60px 0 0;
  }

  .pc-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .pc-view-all {
    align-self: flex-start;
  }

  .pc-grid {
    display: flex;
    grid-template-columns: unset;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: thin;
    scrollbar-color: #FF6B00 rgba(10, 31, 68, 0.08);
  }

  .pc-grid::-webkit-scrollbar {
    height: 6px;
  }

  .pc-grid::-webkit-scrollbar-thumb {
    background: #FF6B00;
    border-radius: 50px;
  }

  .pc-card {
    flex: 0 0 85%;
    max-width: 320px;
    scroll-snap-align: start;
  }

  .pc-strip {
    margin-top: 32px;
    border-radius: 12px 12px 0 0;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .pc-actions {
    flex-direction: column;
  }
}
