/**
 * Pollster Education - Course Detail Page Redesign Stylesheet
 * High-Converting, Clean, Executive Study Abroad Course UI
 */

:root {
  --pe-primary: #d75f07;
  --pe-primary-dark: #b84f05;
  --pe-primary-light: #fff5ee;
  --pe-navy: #0b132b;
  --pe-navy-soft: #1c2541;
  --pe-navy-gradient: linear-gradient(135deg, #0b132b 0%, #1c2541 60%, #172554 100%);
  --pe-slate: #475569;
  --pe-slate-light: #64748b;
  --pe-border: #e2e8f0;
  --pe-border-light: #f1f5f9;
  --pe-surface: #ffffff;
  --pe-bg-soft: #f8fafc;
  --pe-radius-xl: 20px;
  --pe-radius-lg: 16px;
  --pe-radius-md: 12px;
  --pe-radius-sm: 8px;
  --pe-shadow-sm: 0 2px 8px rgba(11, 19, 43, 0.05);
  --pe-shadow-card: 0 10px 30px -10px rgba(11, 19, 43, 0.08);
  --pe-shadow-hover: 0 20px 40px -15px rgba(245, 134, 52, 0.2);
}

.pe-course-detail-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--pe-slate);
  background-color: var(--pe-bg-soft);
}

.pe-course-detail-page p {
  text-align: left !important;
  color: var(--pe-slate);
  line-height: 1.7;
  font-size: 0.96rem;
}

.pe-course-detail-page ul,
.pe-course-detail-page ol {
  text-align: left !important;
  color: var(--pe-slate);
  line-height: 1.7;
  padding-left: 1.25rem;
}

.pe-course-detail-page li {
  margin-bottom: 0.45rem;
}

/* ========================================================
   HERO BANNER
======================================================== */

.pe-course-hero {
  position: relative;
  background: var(--pe-navy-gradient);
  color: #ffffff;
  padding: 2.75rem 0 5rem;
  overflow: hidden;
}

.pe-course-hero .hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(1px);
  pointer-events: none;
}

.pe-course-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.25rem;
}

.pe-course-hero .breadcrumb-item a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.pe-course-hero .breadcrumb-item a:hover {
  color: #ffffff;
}

.pe-course-hero .breadcrumb-item.active {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.pe-course-hero .breadcrumb-item + .breadcrumb-item::before {
  color: #64748b;
}

.pe-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.pe-hero-badge-primary {
  background: linear-gradient(135deg, var(--pe-primary) 0%, var(--pe-primary-dark) 100%);
  border-color: rgba(245, 134, 52, 0.4);
  color: #ffffff;
}

.pe-hero-badge-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.pe-course-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.2;
  margin: 0.85rem 0 0.65rem;
}

.pe-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.pe-hero-uni-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease;
}

.pe-hero-uni-link:hover {
  color: var(--pe-primary);
}

.pe-hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
}

/* ========================================================
   KEY FACTS / QUICK METRIC CARDS BAR
======================================================== */

.pe-quick-facts-bar {
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

.pe-facts-card {
  background: #ffffff;
  border-radius: var(--pe-radius-lg);
  box-shadow: 0 10px 30px -5px rgba(11, 19, 43, 0.1);
  border: 1px solid var(--pe-border);
  padding: 1.5rem 1.25rem;
}

.pe-fact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  min-width: 0;
}

.pe-fact-text {
  min-width: 0;
  flex: 1;
}

.pe-fact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pe-fact-icon-orange {
  background: #fff5ee;
  color: #f58634;
}

.pe-fact-icon-blue {
  background: #eff6ff;
  color: #3b82f6;
}

.pe-fact-icon-green {
  background: #ecfdf5;
  color: #10b981;
}

.pe-fact-icon-purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

.pe-fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pe-slate-light);
  margin-bottom: 0.15rem;
  white-space: nowrap;
}

.pe-fact-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pe-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.pe-fact-sub {
  font-size: 0.78rem;
  color: var(--pe-slate-light);
  margin-top: 0.15rem;
  white-space: nowrap;
}

/* ========================================================
   STICKY SUB-NAVIGATION TABS
======================================================== */

.pe-course-nav-tabs {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pe-border);
  box-shadow: 0 4px 16px rgba(11, 26, 48, 0.06);
  padding: 0.6rem 0;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.pe-nav-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.pe-nav-pills-row::-webkit-scrollbar {
  display: none;
}

.pe-nav-pill-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pe-slate);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
}

.pe-nav-pill-btn i {
  font-size: 1.05rem;
  color: var(--pe-slate-light);
}

.pe-nav-pill-btn:hover {
  background: #f1f5f9;
  color: var(--pe-navy);
}

.pe-nav-pill-btn.active {
  background: var(--pe-primary);
  color: #ffffff !important;
}
.pe-nav-pill-btn.active i {
  color: #ffffff;
}

/* ========================================================
   CONTENT CARDS
======================================================== */

.pe-content-card {
  background: #ffffff;
  border-radius: var(--pe-radius-lg);
  border: 1px solid var(--pe-border);
  box-shadow: var(--pe-shadow-sm);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease;
}

.pe-content-card:hover {
  box-shadow: var(--pe-shadow-card);
}

.pe-section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--pe-navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

.pe-section-heading i {
  font-size: 1.6rem;
  color: var(--pe-primary);
}

.pe-highlights-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--pe-radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.pe-score-highlight {
  background: linear-gradient(135deg, #fff9f5 0%, #fff2e8 100%);
  border: 1px solid rgba(215, 95, 7, 0.22);
  border-radius: var(--pe-radius-md);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.pe-score-badge,
.pe-score-badge-circle {
  min-width: 76px;
  min-height: 72px;
  padding: 0.5rem 0.65rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pe-primary, #d75f07) 0%, #b84f05 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(215, 95, 7, 0.25);
}

.pe-score-exam {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.95;
  line-height: 1.1;
  margin-bottom: 2px;
}

.pe-score-val {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pe-score-val-single {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.pe-score-lbl,
.pe-score-badge-circle small {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin-top: 2px;
  line-height: 1;
}

/* ========================================================
   STICKY SIDEBAR APPLICATION CARD
======================================================== */

.pe-sticky-apply-card {
  position: sticky;
  top: 90px;
  z-index: 10;
  background: #ffffff;
  border-radius: var(--pe-radius-lg);
  border: 1px solid var(--pe-border);
  box-shadow: var(--pe-shadow-card);
  overflow: hidden;
  margin-bottom: 2rem;
}

.pe-apply-header {
  background: var(--pe-navy-gradient);
  color: #ffffff;
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
}

.pe-apply-header h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.pe-apply-header p {
  font-size: 0.8rem;
  color: #cbd5e1 !important;
  margin-bottom: 0;
  text-align: center !important;
}

.pe-apply-body {
  padding: 1.5rem;
}

.pe-apply-body .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pe-navy);
  margin-bottom: 0.25rem;
}

.pe-apply-body .form-control,
.pe-apply-body .form-select {
  font-size: 0.88rem;
  border-radius: var(--pe-radius-sm);
  border: 1px solid var(--pe-border);
  padding: 0.55rem 0.85rem;
  transition: all 0.2s ease;
}

.pe-apply-body .form-control:focus,
.pe-apply-body .form-select:focus {
  border-color: var(--pe-primary);
  box-shadow: 0 0 0 3px rgba(245, 134, 52, 0.15);
}

.pe-btn-apply {
  background: linear-gradient(135deg, var(--pe-primary) 0%, var(--pe-primary-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(245, 134, 52, 0.35);
  transition: all 0.2s ease;
}

.pe-btn-apply:hover {
  background: linear-gradient(135deg, var(--pe-primary-dark) 0%, #b85710 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 134, 52, 0.45);
  color: #ffffff;
}

.pe-whatsapp-btn {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
  margin-top: 0.75rem;
}

.pe-whatsapp-btn:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-1px);
}

.pe-trust-badges {
  border-top: 1px solid var(--pe-border-light);
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
}

.pe-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--pe-slate);
  margin-bottom: 0.35rem;
}

.pe-trust-item i {
  color: #10b981;
  font-size: 1rem;
}

/* ========================================================
   SIMILAR COURSES CARDS
======================================================== */

.pe-sim-course-card {
  background: #ffffff;
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius-md);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}

.pe-sim-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(11, 19, 43, 0.1);
  border-color: var(--pe-primary);
}

.pe-sim-course-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pe-navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.pe-sim-course-desc {
  font-size: 0.82rem;
  color: var(--pe-slate-light);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .pe-course-title {
    font-size: 1.85rem;
  }
  .pe-quick-facts-bar {
    margin-top: -2rem;
  }
  .pe-content-card {
    padding: 1.5rem;
  }
  .pe-sticky-apply-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .pe-quick-facts-bar {
    margin-top: -1.5rem;
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .pe-facts-card {
    padding: 0.75rem;
    border-radius: 16px;
  }
  .pe-fact-item {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    gap: 0.85rem;
  }
  .pe-fact-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
    border-radius: 12px;
  }
  .pe-fact-label {
    font-size: 0.68rem;
    white-space: normal;
  }
  .pe-fact-value {
    font-size: 1.15rem;
    white-space: normal;
    word-break: break-word;
  }
  .pe-fact-sub {
    font-size: 0.75rem;
    white-space: normal;
  }
  .pe-score-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }
}
