:root {
  --ew-teal: #205287;
  --ew-teal-d: #1a4270;
  --ew-teal-dd: #133257;
  --ew-teal-l: #d0edfe;
  --ew-teal-ll: #e8f5ff;
  --ew-accent: #d0edfe;
  --ew-grey: #63666b;
  --ew-dark: #1a1d22;
  --ew-off: #f4f6f7;
  --ew-white: #ffffff;
  --ew-border: #dde3e6;
}

/* HERO */
.page-header {
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
  isolation: isolate;
  background: #205287;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32, 82, 135, 0.88);
}
.page-header::before {
  display: none;
}
.page-header::after {
  display: none;
}
.page-header-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(208, 237, 254, 0.15);
  border: 1px solid rgba(208, 237, 254, 0.45);
  color: #d0edfe;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 0.38rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.3rem;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0edfe;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.page-header h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.page-header h1 em {
  font-style: normal;
  color: #d0edfe;
  -webkit-text-fill-color: #d0edfe;
}
.page-header .sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 0;
}

.hero-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 0.38rem 0.85rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}
.hero-pill i {
  color: var(--ew-accent);
}

/* Hero info card */
.hero-logo-card {
  background: #ffffff;
  border: 1px solid rgba(208, 237, 254, 0.6);
  border-radius: 16px;
  padding: 2.2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-logo-card::before {
  display: none;
}
.hero-logo-card img {
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.hero-logo-card .card-divider {
  width: 40px;
  height: 2px;
  background: #205287;
  margin: 1.2rem auto 0.9rem;
  border-radius: 2px;
}
.hero-logo-stat {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.hero-logo-stat .stat {
  text-align: center;
}
.hero-logo-stat .stat-val {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: #205287;
}
.hero-logo-stat .stat-lbl {
  font-size: 0.7rem;
  color: #63666b;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.hero-info-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(208, 237, 254, 0.35);
  border-radius: 16px;
  padding: 2rem 2rem 1.8rem;
  position: relative;
  overflow: hidden;
}
.hero-info-card::before {
  display: none;
}
.card-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d0edfe;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(208, 237, 254, 0.3);
}

.module-preview {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}
.module-preview li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
}
.module-preview li:last-child {
  border-bottom: none;
}
.mp-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ew-teal);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mp-dur {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--ew-accent);
  font-weight: 700;
  background: rgba(0, 153, 176, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

.hero-stat-row {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}
.hero-stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat:last-child {
  border-right: none;
}
.hero-stat-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ew-accent);
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.breadcrumb-bar {
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 0;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}
.breadcrumb-bar a {
  color: var(--ew-accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.breadcrumb-bar a:hover {
  text-decoration: underline;
}
.breadcrumb-bar .sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.45rem;
  font-size: 0.82rem;
}
.breadcrumb-bar .current {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

/* LAYOUT */
.course-layout {
  padding: 2.5rem 0 3.5rem;
}

/* SIDEBAR */
.course-sidebar {
  background: var(--ew-white);
  border-radius: 12px;
  border: 1px solid var(--ew-border);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.sidebar-thumb {
  background: #fbfeff;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
}
.sidebar-thumb img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}
.sidebar-body {
  padding: 1.4rem;
}
.sidebar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ew-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.sidebar-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.sidebar-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ew-grey);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--ew-border);
}
.sidebar-meta li:last-child {
  border-bottom: none;
}
.sidebar-meta li i {
  color: var(--ew-teal);
  width: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.btn-ew {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--ew-teal);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.1s;
  border: none;
}
.btn-ew:hover {
  background: var(--ew-teal-d);
  transform: translateY(-1px);
}
.btn-ew i {
  margin-right: 0.4rem;
}

/* CARDS */
.course-card {
  background: var(--ew-white);
  border-radius: 12px;
  border: 1px solid var(--ew-border);
  padding: 1.8rem 2rem;
  margin-bottom: 1.5rem;
}
.course-card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ew-dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.course-card h2 i {
  color: var(--ew-teal);
  font-size: 1rem;
}

.stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--ew-border);
  border-bottom: 1px solid var(--ew-border);
  margin-bottom: 1.4rem;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-item i {
  color: var(--ew-teal);
  font-size: 0.9rem;
}
.stat-item span {
  font-size: 0.85rem;
  color: var(--ew-grey);
}

/* ACCORDION */
.module-accordion .module-header {
  background: var(--ew-off);
  border: 1px solid var(--ew-border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: background 0.2s;
  margin-bottom: 0.5rem;
}
.module-accordion .module-header:hover {
  background: var(--ew-teal-ll);
}
.module-accordion .module-header.open {
  background: #205287;
  color: #fff;
  border-color: #1a4270;
}
.module-accordion .module-header.open .mod-title {
  color: #fff;
}
.module-accordion .module-header.open .mod-meta {
  color: rgba(255, 255, 255, 0.7);
}
.module-accordion .module-header.open .mod-ico {
  background: var(--ew-accent);
  color: var(--ew-teal-dd);
}
.module-accordion .module-header.open .dur-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.module-accordion .module-header.open .mod-chevron {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.8);
}

.mod-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ew-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.mod-info {
  flex: 1;
}
.mod-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ew-dark);
  margin-bottom: 0.15rem;
}
.mod-meta {
  font-size: 0.78rem;
  color: var(--ew-grey);
}
.mod-chevron {
  color: var(--ew-grey);
  transition: transform 0.25s;
}
.dur-badge {
  background: var(--ew-teal-l);
  color: var(--ew-teal-d);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.session-list {
  padding: 0.4rem 0 0.8rem 1rem;
  display: none;
}
.session-list.open {
  display: block;
}
.session-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.session-item:hover {
  background: var(--ew-teal-ll);
}
.session-num {
  background: var(--ew-teal-l);
  color: var(--ew-teal-d);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}
.session-title {
  font-size: 0.88rem;
  color: var(--ew-dark);
  line-height: 1.4;
}
.session-icon {
  color: var(--ew-teal);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.sub-item {
  color: var(--ew-grey) !important;
  font-size: 0.84rem !important;
}
.sub-item strong {
  color: var(--ew-dark);
}

/* RATINGS */
.stars {
  color: var(--ew-teal);
}
.star-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.bar-track {
  flex: 1;
  height: 6px;
  background: var(--ew-border);
  border-radius: 3px;
}
.bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #205287;
}
.bar-pct {
  font-size: 0.75rem;
  color: var(--ew-grey);
  width: 30px;
  text-align: right;
}
/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.55s ease forwards;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 991px) {
  .course-sidebar {
    position: static;
    margin-bottom: 1.5rem;
  }
}
