:root {
  /* Edgewell brand */
  --ew-teal: #205287;
  --ew-teal-d: #007a8e;
  --ew-teal-l: #e0f5f8;
  --ew-grey: #63666b;
  --ew-dark: #1a1d22;
  --ew-off: #f4f6f7;
  --ew-white: #ffffff;
  --ew-border: #dde3e6;

  /* Hawaiian Tropic — new brand palette */
  --ht-primary: #aa9d7e; /* primary */
  --ht-primary-d: #8c806a; /* darker shade for hover/depth */
  --ht-primary-dd: #6e6050; /* deepest shade */
  --ht-secondary: #ffefd5; /* secondary / cream */
  --ht-secondary-d: #f0d9b0; /* slightly deeper cream */
  --ht-grad: linear-gradient(90deg, #8c806a 0%, #aa9d7e 50%, #c4b898 100%);
  --ht-hero-overlay: linear-gradient(
    110deg,
    rgba(30, 26, 20, 0.7) 0%,
    rgba(80, 70, 50, 0.55) 20%,
    rgba(120, 105, 75, 0.1) 70%,
    rgba(170, 157, 126, 0) 100%
  );
}

.logo-img {
  max-height: 44px;
}
/* ── PAGE HEADER ── */
.page-header {
  position: relative;
  padding: 150px 0px 150px 0px;
  overflow: hidden;
  isolation: isolate;
  background: #1e1a14;
  align-items: right center;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-header-bg-overlay {
  position: absolute;
  inset: 0;
  transform: scaleX(-1);
}
.page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ht-hero-overlay);
}
/* Decorative glow — warm sand tone */
.page-header::before {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(170, 157, 126, 0.22) 0%,
    transparent 65%
  );
  z-index: 0;
  pointer-events: none;
}
.page-header::after {
  content: "";
  position: absolute;
  top: -100px;
  left: 40%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 239, 213, 0.06) 0%,
    transparent 65%
  );
  z-index: 0;
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 1;
}

/* Eyebrow pill */
.page-header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(170, 157, 126, 0.15);
  border: 1px solid rgba(170, 157, 126, 0.45);
  color: var(--ht-secondary);
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.38rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.3rem;
}
.page-header-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ht-secondary);
  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-family: "Poppins", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}
.page-header h1 em {
  font-style: normal;
  background: var(--ht-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header .sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 0;
}

/* Hero pills */
.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-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 0.38rem 0.85rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}
.hero-pill i {
  color: var(--ht-secondary);
}

/* Hero logo card — cream background */
.hero-logo-card {
  background: linear-gradient(
    135deg,
    var(--ht-secondary) 0%,
    var(--ht-secondary-d) 100%
  );
  border: 1px solid rgba(170, 157, 126, 0.45);
  border-radius: 20px;
  padding: 2.2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(170, 157, 126, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.hero-logo-card img {
  max-width: 200px;
  max-height: 85px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}
.hero-logo-card .card-divider {
  width: 40px;
  height: 2px;
  background: var(--ht-grad);
  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-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(
    90deg,
    var(--ht-primary-dd) 0%,
    var(--ht-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-logo-stat .stat-lbl {
  font-family: "Poppins", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--ht-primary-d);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* Breadcrumb */
.breadcrumb-bar {
  background: rgba(0, 0, 0, 0.3);
  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(--ht-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}
.breadcrumb-bar a:hover {
  text-decoration: underline;
}
.breadcrumb-bar .sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.45rem;
  font-size: 0.8rem;
}
.breadcrumb-bar .current {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* ── 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: var(--ht-secondary);
  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: 1rem;
  font-weight: 700;
  color: var(--ew-dark);
  margin-bottom: 1rem;
  line-height: 1.35;
}
.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.85rem;
  font-weight: 400;
  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(--ht-primary);
  width: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.btn-ht {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--ht-primary);
  color: #fff !important;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.1s;
}
.btn-ht:hover {
  background: var(--ht-primary-d);
  transform: translateY(-1px);
}
.btn-ht i {
  margin-right: 0.4rem;
}

/* ── COURSE 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.15rem;
  font-weight: 700;
  color: var(--ew-dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.course-card h2 i {
  color: var(--ht-primary);
  font-size: 1rem;
}

/* Stats row */
.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(--ht-primary);
  font-size: 0.9rem;
}
.stat-item span {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--ew-grey);
}

/* ── MODULE 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(--ht-secondary);
}
.module-accordion .module-header.open {
  background: linear-gradient(
    100deg,
    var(--ht-primary-dd) 0%,
    var(--ht-primary) 100%
  );
  color: #fff;
  border-color: var(--ht-primary-d);
}
.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(--ht-secondary);
  color: var(--ht-primary-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(--ht-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.mod-info {
  flex: 1;
}
.mod-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ew-dark);
  margin-bottom: 0.15rem;
}
.mod-meta {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ew-grey);
}
.mod-chevron {
  color: var(--ew-grey);
  transition: transform 0.25s;
}
.dur-badge {
  background: #f2ead8;
  color: var(--ht-primary-dd);
  font-size: 0.7rem;
  font-weight: 700;
  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(--ht-secondary);
}
.session-num {
  background: #f2ead8;
  color: var(--ht-primary-d);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}
.session-title {
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--ew-dark);
  line-height: 1.4;
}
.session-icon {
  color: var(--ht-primary);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.sub-item {
  color: var(--ew-grey) !important;
}
.sub-item strong {
  color: var(--ew-dark);
  font-weight: 600;
}

/* ── RATINGS ── */
.stars {
  color: var(--ht-primary);
}
.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: var(--ht-grad);
}
.bar-pct {
  font-size: 0.74rem;
  color: var(--ew-grey);
  width: 30px;
  text-align: right;
}
.rating-num {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--ew-dark);
  line-height: 1;
}
/* ── 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;
  }
}
