/* =========================================================
   PURPLE BUSINESS ELEMENTS — COURSE REVIEWS GRID STYLES
   ========================================================= */

.pbe-course-grid-wrapper {
  width: 100%;
  padding: 60px 0 80px;
  background-color: #fcfaff;
  color: #1e1b4b;
  position: relative;
  overflow: hidden;
}

.pbe-course-grid-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.pbe-grid-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.pbe-grid-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #f5f0ff 0%, #efe7ff 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #7c3aed;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pbe-grid-hero h2 {
  font-size: 38px;
  font-weight: 800;
  color: #0f0728;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.pbe-grid-gradient-text {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pbe-grid-hero p {
  font-size: 16.5px;
  color: #64748b;
  line-height: 1.65;
}

/* Filter Pills */
.pbe-grid-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.pbe-filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #ebdffc;
  color: #1e1b4b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(15, 7, 40, 0.05);
}

.pbe-filter-btn:hover,
.pbe-filter-btn.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

/* Course Group Section */
.pbe-course-group {
  margin-bottom: 70px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pbe-course-header-banner {
  border-radius: 24px;
  padding: 30px 36px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 16px 40px rgba(23, 9, 56, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.pbe-course-header-banner.theme-purple {
  background: linear-gradient(135deg, #170938 0%, #2e0e5e 50%, #4c1d95 100%);
}

.pbe-course-header-banner.theme-violet {
  background: linear-gradient(135deg, #1e1033 0%, #3b1078 50%, #7e22ce 100%);
}

.pbe-course-header-banner.theme-cyan {
  background: linear-gradient(135deg, #0f2b38 0%, #164e63 50%, #0e7490 100%);
}

.pbe-course-header-banner.theme-amber {
  background: linear-gradient(135deg, #331e08 0%, #63330e 50%, #9a3412 100%);
}

.pbe-course-header-left {
  max-width: 800px;
}

.pbe-course-badge-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  margin-bottom: 10px;
  color: #fde047;
}

.pbe-course-banner-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.pbe-course-banner-desc {
  font-size: 14.5px;
  color: #e2d4f8;
  line-height: 1.6;
}

.pbe-course-banner-btn {
  padding: 12px 26px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pbe-course-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

/* Reviews Grid Layout (NO SLIDER) */
.pbe-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Review Card inside Grid */
.pbe-grid-card {
  background: #ffffff;
  border: 1px solid #ebdffc;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pbe-grid-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(124, 58, 237, 0.16);
  border-color: rgba(124, 58, 237, 0.4);
}

.pbe-grid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pbe-grid-card-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pbe-grid-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.pbe-grid-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f0728;
  margin: 0;
  line-height: 1.3;
}

.pbe-grid-card-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #7c3aed;
  background: #f4ebff;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 3px;
}

.pbe-grid-card-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
}

.pbe-grid-card-img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #f1e7fe;
  background: #0b141a;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pbe-grid-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}

.pbe-grid-card:hover .pbe-grid-card-img-wrap img {
  transform: scale(1.04);
}

.pbe-grid-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 7, 40, 0.48);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pbe-grid-card:hover .pbe-grid-zoom-overlay {
  opacity: 1;
}

.pbe-grid-zoom-badge {
  background: #ffffff;
  color: #581c87;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.pbe-grid-card:hover .pbe-grid-zoom-badge {
  transform: translateY(0);
}

.pbe-grid-card-quote {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  font-style: italic;
  background: #faf8ff;
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 3px solid #7c3aed;
  margin-top: auto;
}

/* Bottom CTA Box */
.pbe-grid-bottom-cta {
  background: linear-gradient(135deg, #7c3aed 0%, #581c87 100%);
  border-radius: 36px;
  padding: 56px 40px;
  color: #ffffff;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
  box-shadow: 0 25px 60px rgba(124, 58, 237, 0.25);
}

.pbe-grid-bottom-cta h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
}

.pbe-grid-bottom-cta p {
  font-size: 16.5px;
  color: #e2d4f8;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.pbe-grid-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #170938 !important;
  font-size: 16px;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}

.pbe-grid-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%);
}

/* =========================================================
   COMPREHENSIVE MOBILE RESPONSIVE OPTIMIZATIONS
   ========================================================= */

@media (max-width: 991px) {
  .pbe-course-grid-wrapper {
    padding: 50px 0 65px;
  }
  .pbe-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .pbe-course-header-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .pbe-grid-hero h2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .pbe-course-grid-container {
    padding: 0 16px;
  }
  .pbe-grid-hero h2 {
    font-size: 26px;
  }
  .pbe-grid-hero p {
    font-size: 14.5px;
  }
  .pbe-grid-filters {
    gap: 8px;
    margin-bottom: 32px;
  }
  .pbe-filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  .pbe-course-header-banner {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .pbe-course-banner-title {
    font-size: 22px;
  }
  .pbe-course-banner-desc {
    font-size: 13.5px;
  }
  .pbe-course-banner-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .pbe-course-grid-wrapper {
    padding: 40px 0 50px;
  }
  .pbe-grid-hero {
    margin-bottom: 26px;
  }
  .pbe-grid-tag {
    font-size: 12.5px;
    padding: 6px 14px;
    margin-bottom: 12px;
  }
  .pbe-grid-hero h2 {
    font-size: 23px;
    letter-spacing: -0.2px;
    margin-bottom: 10px;
  }
  .pbe-grid-filters {
    gap: 7px;
    margin-bottom: 28px;
  }
  .pbe-filter-btn {
    padding: 7px 14px;
    font-size: 12.5px;
  }
  .pbe-course-group {
    margin-bottom: 45px;
  }
  .pbe-course-header-banner {
    padding: 18px 16px;
    border-radius: 18px;
    margin-bottom: 20px;
  }
  .pbe-course-badge-pill {
    font-size: 11px;
    padding: 3px 10px;
    margin-bottom: 8px;
  }
  .pbe-course-banner-title {
    font-size: 19px;
  }
  .pbe-course-banner-desc {
    font-size: 13px;
    line-height: 1.55;
  }
  .pbe-course-banner-btn {
    padding: 11px 18px;
    font-size: 13px;
  }
  .pbe-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pbe-grid-card {
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.08);
  }
  .pbe-grid-card-avatar {
    width: 38px;
    height: 38px;
    font-size: 13.5px;
  }
  .pbe-grid-card-name {
    font-size: 15px;
  }
  .pbe-grid-card-badge {
    font-size: 11px;
    padding: 2px 7px;
  }
  .pbe-grid-card-stars {
    font-size: 12.5px;
  }
  .pbe-grid-card-img-wrap {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  .pbe-grid-zoom-badge {
    padding: 6px 14px;
    font-size: 12px;
  }
  .pbe-grid-card-quote {
    font-size: 12.5px;
    padding: 8px 12px;
    line-height: 1.55;
  }
  .pbe-grid-bottom-cta {
    padding: 36px 18px;
    border-radius: 22px;
    margin-top: 36px;
  }
  .pbe-grid-bottom-cta h3 {
    font-size: 21px;
    line-height: 1.35;
  }
  .pbe-grid-bottom-cta p {
    font-size: 14px;
    margin-bottom: 22px;
  }
  .pbe-grid-cta-btn {
    width: 100%;
    max-width: 290px;
    justify-content: center;
    padding: 14px 22px;
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .pbe-grid-hero h2 {
    font-size: 21px;
  }
  .pbe-course-banner-title {
    font-size: 18px;
  }
  .pbe-grid-card {
    padding: 14px;
  }
}
