/* ==========================================================================
   Black Friday Styles - Base & Promotion Banner
   ========================================================================== */

.bf-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px;
  background: #181920;
  color: #fff;
  border-bottom: 1px solid rgba(164, 38, 44, 0.4);
}

.bf-banner a {
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 0;
  color: #fca5a5;
  font-weight: 600;
  transition: color 0.2s ease;
}

.bf-banner a:hover {
  color: #fff;
}

.bf-banner a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.bf-original-price {
  font-size: .85em;
  font-weight: 400;
  margin-right: 8px;
  color: #6b7280;
}

.bf-sale-price {
  font-weight: 800;
  white-space: nowrap;
}

.bf-discount {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  background: #a4262c;
  color: #fff;
  font-size: .8em;
  font-weight: 800;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .bf-banner {
    justify-content: flex-start;
    gap: 4px;
  }

  .bf-banner span {
    flex-basis: 100%;
  }
}

/* ==========================================================================
   Black Friday Dedicated Landing Page (.bf-page)
   ========================================================================== */


body.bf-page {
  --bf-bg: #090a0e;
  --bf-surface: #11131c;
  --bf-surface-card: #151824;
  --bf-surface-hover: #1c2030;
  --bf-border: rgba(255, 255, 255, 0.08);
  --bf-border-subtle: rgba(255, 255, 255, 0.04);
  --bf-red: #A4262C;
  --bf-red-vivid: #e11d48;
  --bf-red-glow: rgba(225, 29, 72, 0.35);
  --bf-text: #f8fafc;
  --bf-text-muted: #94a3b8;
  --bf-gold: #f59e0b;

  background-color: var(--bf-bg) !important;
  color: var(--bf-text) !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */

body.bf-page .hero {
  background: radial-gradient(circle at 50% -30%, #3a0d11 0%, #170709 45%, #090a0e 85%) !important;
  color: #fff !important;
  padding: 0 20px !important;
  border-bottom: 1px solid rgba(164, 38, 44, 0.25);
  position: relative;
}

body.bf-page .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1000px);
  height: 350px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Top Nav Bar in Black Friday */
body.bf-page .bf-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

body.bf-page .bf-nav-bar .logo img {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

body.bf-page .bf-nav-bar .logo {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

body.bf-page .bf-nav-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #cbd5e1 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  border-radius: 10px !important;
  backdrop-filter: blur(8px) !important;
  transition: all 0.25s ease !important;
}

body.bf-page .bf-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Centered & Harmonious Hero Content */
body.bf-page .bf-hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 56px;
  position: relative;
  z-index: 2;
}

/* Badge Pill in Hero */
.bf-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(164, 38, 44, 0.2);
  border: 1px solid rgba(164, 38, 44, 0.5);
  padding: 6px 16px;
  border-radius: 9999px;
  margin: 0 auto 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(164, 38, 44, 0.25);
}

.bf-fire-icon {
  font-size: 1rem;
}

.bf-badge-text {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
}

.bf-badge-sub {
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a4262c, #e11d48);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
}

body.bf-page .hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -1px !important;
  margin: 0 0 16px !important;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 45%, #fda4af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

body.bf-page .bf-hero-desc {
  color: #e2e8f0 !important;
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  max-width: 680px;
  margin: 0 auto 8px !important;
  text-align: center;
}

body.bf-page .bf-hero-dates {
  color: #94a3b8 !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  max-width: 680px;
  margin: 0 auto 16px !important;
  text-align: center;
}

/* Status Notifications */
.bf-status-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 12px;
  margin: 14px 0 18px;
  backdrop-filter: blur(8px);
}

.bf-status-banner .hero-sub {
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 500;
}

.bf-status-upcoming {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.bf-status-upcoming .hero-sub {
  color: #fde68a !important;
}

.bf-status-upcoming .bf-status-indicator {
  background-color: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.bf-status-active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.bf-status-active .hero-sub {
  color: #a7f3d0 !important;
}

.bf-status-active .bf-status-indicator {
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.bf-status-ended {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.4);
}

.bf-status-ended .hero-sub {
  color: #cbd5e1 !important;
}

.bf-status-ended .bf-status-indicator {
  background-color: #94a3b8;
  box-shadow: 0 0 8px #94a3b8;
}

.bf-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: bfPulseGlow 2s infinite ease-in-out;
}

@keyframes bfPulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Countdown Card */
.bf-countdown-card {
  background: rgba(17, 19, 28, 0.85);
  border: 1px solid rgba(164, 38, 44, 0.35);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 20px 0 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(164, 38, 44, 0.15);
  display: inline-block;
  backdrop-filter: blur(12px);
}

.bf-countdown-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fda4af;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bf-countdown-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bf-time-box {
  background: linear-gradient(180deg, #1c1f2e 0%, #10111a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  min-width: 68px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bf-time-num {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: block;
}

.bf-time-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  display: block;
}

.bf-time-dots {
  font-size: 1.8rem;
  font-weight: 900;
  color: #e11d48;
  padding: 0 2px 12px;
  animation: bfPulseColon 1.5s infinite;
}

@keyframes bfPulseColon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Hero Action Buttons */
.bf-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px auto 26px;
  align-items: center;
  justify-content: center;
}

body.bf-page .bf-hero-search {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

body.bf-page .bf-primary-btn {
  background: linear-gradient(135deg, #a4262c 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  padding: 14px 30px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.bf-page .bf-primary-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.6) !important;
  color: #ffffff !important;
}

body.bf-page .bf-secondary-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 14px 24px !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.bf-page .bf-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* Search bar on Dark Hero */
body.bf-page .search {
  max-width: 640px;
}

body.bf-page .search input {
  background: rgba(17, 19, 28, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s ease;
}

body.bf-page .search input::placeholder {
  color: #64748b;
}

body.bf-page .search input:focus {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25) !important;
  outline: none !important;
}

body.bf-page .search button {
  background: linear-gradient(135deg, #a4262c, #e11d48) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  transition: all 0.2s ease;
}

body.bf-page .search button:hover {
  opacity: 0.95;
  transform: scale(1.02);
}



/* --------------------------------------------------------------------------
   Carousel & Value Pillars in Black Friday Mode
   -------------------------------------------------------------------------- */

body.bf-page .carousel-container {
  background: linear-gradient(145deg, #151824 0%, #0d0e15 100%) !important;
  border: 1px solid rgba(164, 38, 44, 0.35) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(164, 38, 44, 0.15) !important;
}

body.bf-page .carousel-title {
  color: #ffffff !important;
}

body.bf-page .carousel-caption {
  background: linear-gradient(to top, rgba(9, 10, 14, 0.95) 0%, rgba(9, 10, 14, 0.7) 65%, transparent 100%) !important;
}

body.bf-page .carousel-caption h3 {
  color: #ffffff !important;
}

body.bf-page .carousel-btn {
  background: linear-gradient(135deg, #a4262c 0%, #e11d48 100%) !important;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.4) !important;
  border-radius: 8px !important;
}

body.bf-page .carousel-price {
  background: rgba(15, 17, 26, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
}

body.bf-page .carousel-price .bf-original-price {
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
  margin-right: 0 !important;
}

body.bf-page .carousel-price .bf-sale-price {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}

body.bf-page .carousel-price .bf-discount {
  background: linear-gradient(135deg, #a4262c, #e11d48) !important;
  color: #ffffff !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  margin-left: 0 !important;
}

body.bf-page .second-content .article-second-content {
  background: #11131c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
}

body.bf-page .second-content .article-second-content:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(164, 38, 44, 0.45) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5) !important;
}

body.bf-page .second-content .article-second-content h2 {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}

body.bf-page .second-content .article-second-content p {
  color: #94a3b8 !important;
  line-height: 1.6 !important;
}

body.bf-page .second-content .article-second-content img {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(225, 29, 72, 0.3));
}

/* --------------------------------------------------------------------------
   Course Grid Section & Cards
   -------------------------------------------------------------------------- */

body.bf-page main.container h2 {
  color: #ffffff !important;
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  text-align: center;
  margin: 48px 0 20px;
  letter-spacing: -0.5px;
}

body.bf-page .card {
  background: #13151f !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
}

body.bf-page .card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(225, 29, 72, 0.5) !important;
  box-shadow: 0 22px 45px -10px rgba(225, 29, 72, 0.35), 0 0 25px rgba(164, 38, 44, 0.18) !important;
}

body.bf-page .card-media {
  transition: transform 0.4s ease;
}

body.bf-page .card:hover .card-media {
  transform: scale(1.03);
}

/* Badge Top Over Course Cards */
.bf-card-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.bf-badge-promo {
  background: linear-gradient(135deg, #a4262c, #e11d48);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.45);
}

.bf-badge-exec {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

body.bf-page .card-start-date {
  background: rgba(11, 13, 18, 0.88) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
}

body.bf-page .card-body {
  padding: 20px !important;
}

body.bf-page .card-title {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
}

body.bf-page .badge {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.bf-page .badge.primary {
  background: rgba(164, 38, 44, 0.22) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(164, 38, 44, 0.4) !important;
}

body.bf-page .price {
  color: #ffffff !important;
}

body.bf-page .bf-sale-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
}

body.bf-page .bf-discount {
  background: linear-gradient(135deg, #a4262c, #e11d48) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

body.bf-page .card-actions .btn {
  background: linear-gradient(135deg, #a4262c 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(164, 38, 44, 0.4) !important;
  transition: all 0.3s ease !important;
}

body.bf-page .card-actions .btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.55) !important;
}

body.bf-page .card-actions .btn2 {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

body.bf-page .card-actions .btn2:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}



/* --------------------------------------------------------------------------
   Footer Styling in Black Friday
   -------------------------------------------------------------------------- */

body.bf-page .footer_wrapper {
  background: #07080b !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.bf-page #footer h2 {
  color: #ffffff !important;
}

body.bf-page #footer a {
  color: #cbd5e1 !important;
  transition: color 0.2s ease;
}

body.bf-page #footer a:hover {
  color: #f43f5e !important;
}

body.bf-page .footer_data {
  color: #64748b !important;
}

body.bf-page .footer_data a {
  color: #94a3b8 !important;
}

body.bf-page .empty {
  background: #11131c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  border-radius: 16px !important;
  padding: 40px !important;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  body.bf-page .hero-inner {
    padding: 40px 0 !important;
  }

  body.bf-page .hero-title {
    font-size: 2.1rem !important;
  }

  .bf-time-box {
    min-width: 56px;
    padding: 8px 4px;
  }

  .bf-time-num {
    font-size: 1.6rem;
  }

  .bf-time-dots {
    font-size: 1.4rem;
  }

  .bf-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .bf-hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* Keep controls and prices usable on narrow screens and with reduced motion. */
body.bf-page .bf-countdown-card {
  max-width: 100%;
  box-sizing: border-box;
}

body.bf-page .bf-countdown-label {
  line-height: 1.5;
}

body.bf-page .bf-countdown-display {
  width: 100%;
}

body.bf-page .card-title {
  height: auto;
  min-height: 42px;
  overflow: visible;
}

body.bf-page .card-meta,
body.bf-page .carousel-price {
  flex-wrap: wrap;
}

body.bf-page .card-meta .price {
  flex-basis: 100%;
  margin-left: 0;
}

body.bf-page a:focus-visible,
body.bf-page button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  body.bf-page .bf-nav-bar {
    flex-wrap: wrap;
    gap: 16px;
  }

  body.bf-page .bf-nav-bar .logo {
    margin: 0;
  }

  body.bf-page .bf-countdown-card {
    padding: 16px 12px;
  }

  body.bf-page .bf-countdown-display {
    gap: 4px;
  }

  body.bf-page .bf-time-box {
    min-width: 0;
    flex: 1;
  }

  body.bf-page .bf-time-num {
    font-size: 1.4rem;
  }

  body.bf-page .bf-time-dots {
    padding-inline: 0;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bf-page *,
  body.bf-page *::before,
  body.bf-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  body.bf-page .card {
    opacity: 1;
    transform: none !important;
  }
}
