/* ==========================================================================
   FinVeda Master Minds - Coursera Style Certified Courses Showcase
   Matches User's Reference Screenshots (Desktop & Mobile)
   ========================================================================== */

.fn-coursera-wrapper {
  margin: 40px 0 60px;
  font-family: 'Inter', 'Plus Jakarta Sans', 'Poppins', -apple-system, sans-serif;
}

/* Big Top Gradient Banner */
.fn-coursera-main-banner {
  background: linear-gradient(105deg, #1e40af 0%, #2563eb 25%, #0ea5e9 60%, #10b981 100%);
  border-radius: 28px;
  padding: 36px 36px 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px -10px rgba(30, 64, 175, 0.35);
}

/* Banner Top Header & Filter Pills */
.fn-coursera-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.fn-coursera-hero-text {
  max-width: 480px;
}

.fn-coursera-hero-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.fn-coursera-hero-text p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  line-height: 1.5;
}

.fn-btn-explore-programs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1e40af;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fn-btn-explore-programs:hover {
  background: #f8fafc;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Category Filter Pills (Coursera Pill Style) */
.fn-coursera-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.fn-coursera-pill {
  background: #ffffff;
  color: #334155;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.fn-coursera-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: translateY(-1px);
}

.fn-coursera-pill.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* Course Cards Grid Layout inside Banner (Supports 5 Career Tracks) */
.fn-coursera-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 1400px) {
  .fn-coursera-cards-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.fn-coursera-card-wrapper {
  display: flex;
  height: 100%;
}

/* Individual Card (Coursera Card Architecture) */
.fn-coursera-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  text-decoration: none;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.fn-coursera-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px -5px rgba(0, 0, 0, 0.2);
  color: #0f172a;
  text-decoration: none;
}

/* Card Image Thumbnail */
.fn-coursera-card-img {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
  margin-bottom: 12px;
}

.fn-coursera-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fn-coursera-card:hover .fn-coursera-card-img img {
  transform: scale(1.05);
}

.fn-coursera-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

/* Card Content Details */
.fn-coursera-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fn-coursera-card-org {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

.fn-coursera-org-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #1e40af;
  font-weight: 800;
}

.fn-coursera-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 10px;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fn-coursera-card-rating-row {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
}

.fn-coursera-rating {
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fn-coursera-rating i {
  color: #f59e0b;
}

.fn-coursera-cert-type {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.fn-coursera-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
}

.fn-coursera-price {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.fn-coursera-price small {
  font-size: 11px;
  color: #64748b;
  font-weight: normal;
}

.fn-coursera-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e40af;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.fn-coursera-card:hover .fn-coursera-card-btn {
  background: #059669;
}

/* ================= BOTTOM DUAL PROMO BANNERS ================= */
.fn-coursera-dual-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.fn-promo-card {
  border-radius: 24px;
  padding: 34px 34px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  min-height: 200px;
}

/* Left Promo: Coursera Plus Style */
.fn-promo-card.plus {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #1d4ed8 100%);
  box-shadow: 0 12px 30px -5px rgba(2, 132, 199, 0.35);
}

/* Right Promo: Coursera for Business Style */
.fn-promo-card.business {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.4);
}

.fn-promo-content {
  max-width: 320px;
  z-index: 2;
}

.fn-promo-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.fn-promo-brand-pill .badge-box {
  background: #ffffff;
  color: #0284c7;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.fn-promo-card.business .fn-promo-brand-pill .badge-box {
  color: #0f172a;
}

.fn-promo-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 16px;
}

.fn-promo-btn-link {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}

.fn-promo-btn-link:hover {
  color: #ffffff;
  border-color: #ffffff;
  gap: 10px;
}

.fn-promo-img-wrap {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.fn-promo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* ================= RESPONSIVE MOBILE STYLING ================= */
@media (max-width: 1199px) {
  .fn-coursera-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .fn-coursera-main-banner {
    padding: 24px 20px 28px;
    border-radius: 20px;
  }
  
  .fn-coursera-hero-text h2 {
    font-size: 22px;
  }
  
  .fn-coursera-cards-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    gap: 14px;
  }

  .fn-coursera-card-wrapper {
    min-width: 260px;
    max-width: 270px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .fn-coursera-card {
    width: 100%;
    min-width: 100%;
  }

  .fn-coursera-dual-banners {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fn-promo-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .fn-promo-img-wrap {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 576px) {
  .fn-coursera-pills-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .fn-coursera-pill {
    white-space: nowrap;
    font-size: 12.5px;
    padding: 6px 14px;
  }
}
