/* Drugvigil Learning - Courses Page Styles */

/* Hero Section */
.courses-hero {
  background: #0e1a14;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.courses-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(41, 184, 139, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.courses-hero .badge-label {
  display: inline-block;
  background: rgba(41, 184, 139, 0.15);
  color: #29b88b;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.courses-hero h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.courses-hero h1 span {
  color: #29b88b;
}

.courses-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  max-width: 600px;
}

/* Hero Reviews Background Ticker */
.courses-hero {
  position: relative;
  overflow: hidden;
}

.hero-reviews-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
  pointer-events: none;
}

.reviews-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-row {
  display: flex;
  gap: 16px;
  white-space: nowrap;
  will-change: transform;
}

.review-row-left {
  animation: scrollLeft 45s linear infinite;
}

.review-row-right {
  animation: scrollRight 50s linear infinite;
}

.review-row-left-slow {
  animation: scrollLeft 60s linear infinite;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.review-bubble {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 22px;
  min-width: 320px;
  max-width: 380px;
  white-space: normal;
}

.review-bubble .rb-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
}

.review-bubble .rb-stars i {
  color: #00b67a;
  font-size: 12px;
}

.review-bubble p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 6px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-bubble .rb-author {
  color: rgba(0, 182, 122, 0.8);
  font-size: 12px;
  font-weight: 700;
}

/* Overlay - soft tint so reviews are visible but don't overpower hero content */
.hero-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(14, 26, 20, 0.55);
  pointer-events: none;
}

/* Hero content sits above reviews */
.hero-content-z {
  position: relative;
  z-index: 2;
}

/* Pause animation on hover for readability */
.courses-hero:hover .review-row {
  animation-play-state: paused;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .review-row-left,
  .review-row-right,
  .review-row-left-slow {
    animation: none;
  }
}

/* Hero Trustpilot Card */
.hero-trustpilot {
  display: flex;
  justify-content: flex-end;
}

.hero-tp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 35px 45px;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hero-tp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 182, 122, 0.08), rgba(255, 255, 255, 0.03));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-tp-card:hover::before {
  opacity: 1;
}

.hero-tp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 182, 122, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 182, 122, 0.1);
  text-decoration: none;
}

.hero-tp-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.hero-tp-logo {
  height: 30px;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.hero-tp-card:hover .hero-tp-logo {
  opacity: 1;
}

.hero-tp-stars {
  display: flex;
  gap: 5px;
}

.hero-tp-stars .tp-star {
  width: 36px;
  height: 36px;
  background: #00b67a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.hero-tp-card:hover .tp-star {
  transform: scale(1.08);
}

.hero-tp-card:hover .tp-star:nth-child(1) { transition-delay: 0s; }
.hero-tp-card:hover .tp-star:nth-child(2) { transition-delay: 0.05s; }
.hero-tp-card:hover .tp-star:nth-child(3) { transition-delay: 0.1s; }
.hero-tp-card:hover .tp-star:nth-child(4) { transition-delay: 0.15s; }
.hero-tp-card:hover .tp-star:nth-child(5) { transition-delay: 0.2s; }

.hero-tp-stars .tp-star i {
  color: #ffffff;
  font-size: 16px;
}

.hero-tp-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.hero-tp-text i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.hero-tp-card:hover .hero-tp-text {
  color: #00b67a;
}

.hero-tp-card:hover .hero-tp-text i {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .hero-trustpilot {
    justify-content: center;
    margin-top: 35px;
  }

  .hero-tp-card {
    padding: 28px 38px;
  }
}

@media (max-width: 575px) {
  .hero-tp-card {
    padding: 24px 30px;
    width: 100%;
  }

  .hero-tp-stars .tp-star {
    width: 32px;
    height: 32px;
  }
}

/* Hero Breadcrumb - pill style inside cover */
.hero-breadcrumb {
  margin-bottom: 18px;
}

.hero-breadcrumb ul {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  margin: 0;
  padding: 10px 20px;
  list-style: none;
}

.hero-breadcrumb ul li,
.hero-breadcrumb ul li a {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero-breadcrumb ul li a:hover {
  color: #ffffff;
}

.hero-breadcrumb ul li.active,
.hero-breadcrumb ul li.separator {
  color: #29b88b;
  font-weight: 700;
}

.hero-breadcrumb ul li::before {
  content: none;
}

/* Course Cards */
.courses-section {
  padding: 80px 0;
  background: #f8fafb;
}

.courses-section .section-title {
  margin-bottom: 50px;
}

.courses-section .section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.courses-section .section-title p {
  color: #415674;
  font-size: 17px;
}

.course-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.course-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-card-image img {
  transform: scale(1.05);
}

.course-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #29b88b;
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-card-badge.beginner {
  background: #29b88b;
}

.course-card-badge.intermediate {
  background: #f0a500;
}

.course-card-badge.advanced {
  background: #e74c3c;
}

.course-card-badge.comprehensive {
  background: linear-gradient(135deg, #1b2336, #29b88b);
}

.course-card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-card-body h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #1b2336;
}

.course-card-body p {
  color: #415674;
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #415674;
}

.course-meta-item i {
  color: #29b88b;
  font-size: 14px;
}

.course-card-footer {
  padding: 20px 25px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-price {
  font-size: 24px;
  font-weight: 800;
  color: #1b2336;
  font-family: 'Montserrat', sans-serif;
}

.course-price small {
  font-size: 14px;
  font-weight: 400;
  color: #415674;
}

.course-enroll-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #29b88b;
  color: #ffffff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.course-enroll-btn:hover {
  background: #1b9b72;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(41, 184, 139, 0.3);
}

/* Why Learn With Us */
.why-learn-section {
  padding: 80px 0;
  background: #ffffff;
}

.why-learn-card {
  text-align: center;
  padding: 40px 25px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.why-learn-card:hover {
  background: #f8fafb;
}

.why-learn-card i {
  font-size: 40px;
  color: #29b88b;
  margin-bottom: 20px;
  display: block;
}

.why-learn-card h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-learn-card p {
  color: #415674;
  font-size: 15px;
}

/* Trustpilot Advert Section */
.trustpilot-advert-section {
  padding: 80px 0;
  background: #ffffff;
}

.trustpilot-advert-card {
  background: linear-gradient(135deg, #0b3b2f 0%, #1b2336 60%, #0d2920 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
}

.trustpilot-advert-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 182, 122, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.trustpilot-advert-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(41, 184, 139, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.trustpilot-advert-content {
  padding: 50px 50px 50px 50px;
  position: relative;
  z-index: 1;
}

.trustpilot-advert-label {
  margin-bottom: 20px;
}

.trustpilot-advert-label .tp-logo {
  height: 28px;
  opacity: 0.9;
}

.trustpilot-advert-content h2 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.trustpilot-advert-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 480px;
}

.trustpilot-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 25px;
}

.trustpilot-stars i {
  font-size: 22px;
  color: #00b67a;
  background: #00b67a;
  color: #ffffff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 14px;
}

.trustpilot-advert-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #00b67a;
  color: #ffffff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.trustpilot-advert-btn:hover {
  background: #00a06b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 182, 122, 0.35);
}

.trustpilot-advert-btn i {
  transition: transform 0.3s ease;
}

.trustpilot-advert-btn:hover i {
  transform: translateX(4px);
}

.trustpilot-widget-wrapper {
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 1;
}

.trustpilot-widget-wrapper .tp-carousel {
  margin-top: 10px;
}

@media (max-width: 991px) {
  .trustpilot-advert-content {
    padding: 40px 30px 20px;
  }

  .trustpilot-advert-content h2 {
    font-size: 26px;
  }

  .trustpilot-widget-wrapper {
    padding: 20px 30px 40px;
  }
}

@media (max-width: 575px) {
  .trustpilot-advert-content {
    padding: 30px 20px 15px;
  }

  .trustpilot-advert-content h2 {
    font-size: 22px;
  }

  .trustpilot-widget-wrapper {
    padding: 15px 20px 30px;
  }
}

/* Homepage Courses Section */
.home-courses-section {
  padding: 80px 0;
  background: #f8fafb;
}

.home-courses-section .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.home-courses-section .section-title h2 {
  margin-bottom: 15px;
}

.home-courses-section .section-title p {
  color: #415674;
  font-size: 17px;
}

.view-all-courses {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 36px;
  background: #29b88b;
  color: #ffffff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-courses:hover {
  background: #1b9b72;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(41, 184, 139, 0.3);
}

/* CTA Section */
.courses-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #0b3b2f 0%, #1b2336 100%);
  text-align: center;
}

.courses-cta h2 {
  color: #ffffff;
  font-size: 36px;
  margin-bottom: 15px;
}

.courses-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin-bottom: 30px;
}

.courses-cta .default-btn {
  background: #29b88b;
  color: #ffffff;
}

/* Coming Soon Badge */
.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-overlay span {
  background: #1b2336;
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 767px) {
  .courses-hero {
    padding: 130px 0 60px;
  }

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

  .course-card-image {
    height: 180px;
  }

  .course-card-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
