.hero-bg-wrapper {
  width: 100%;
  position: relative;
}

.hero-bg-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px 20px;
  background: transparent;
  position: relative;
  z-index: 10;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 1280px) {
  .topbar {
    padding: 14px 12px 8px 12px;
  }
}

.topbar .logo {
  width: 180px;
  margin-bottom: 0;
}
.topbar .login-btn {
  position: static;
  margin-left: auto;
  background: #888;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.85;
  text-decoration: none;
}

/* Course completion indicator */
.course-card.is-completed {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
  position: relative;
}

.course-card.is-completed .course-completed-badge {
  position: absolute;
  left: 12px;
  bottom: 5px;

  display: inline-block;
  margin-top: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
  pointer-events: none;
}
.card-check {
  filter: brightness(0) saturate(100%);
}
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
}

.hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(21, 22, 41, 0.7);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  margin: 100px auto 150px auto;
  padding: 40px 32px 80px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content > *:not(:last-child) {
  margin-bottom: 0 !important;
}

.audio-training-path ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.audio-training-path li {
  margin-bottom: 0 !important;
}

.hero-content h1 {
  color: #fff;
  font-size: 4.2rem;
  font-weight: 400;
  margin: 0 0 16px 0;
  max-width: 505px;
}
.hero-subtitle {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 24px;
  max-width: 380px;
}

.ol-bullets {
  list-style-type: disc;
}
.get-started-btn {
  background: #c0182c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 35px;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 50px 0 32px 0;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.get-started-btn:hover {
  background: #a01525;
}
.audio-training-path {
  position: absolute;
  top: 60px;
  right: 32px;
  margin-top: 30px;
  background: rgba(142, 139, 137, 0.6);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 4px 24px rgba(142, 139, 137, 0.1);
}
.audio-training-path h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 16px 0;
  color: #ffffff;
  text-align: center;
}
.audio-training-path ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.audio-training-path li {
  background: #393837;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}
.checkmark-img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
}

.info-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #fff;
  padding: 48px 0 32px 0;
  gap: 60px;
}
.info-block {
  flex: 1 1 0;
  max-width: 600px;
  padding: 0 24px;
}
.info-block h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 18px;
  text-align: center;
}
.info-block p {
  font-size: 1.1rem;
  margin-bottom: 12px;
  text-align: center;
}

.course-categories-section {
  background: #ededed;
  padding: 48px 20px 48px 20px;
  text-align: center;
}
.course-categories-section h2 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 8px;
}
.course-categories-section .subtitle {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 40px;
}
.course-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.category-card {
  background: #c0182c;
  color: #fff;
  border-radius: 12px;
  padding: 28px 24px 24px 24px;
  max-width: 340px;
  min-width: 340px;
  flex: 1 1 260px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: left;
}
.category-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
}
.category-card p {
  font-size: 1rem;
  margin-bottom: 16px;
}
.category-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-card li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 8px;
}

.cta-section {
  background: #c0182c;
  color: #fff;
  text-align: center;
  padding: 64px 0 80px 0;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 18px;
}
.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.cta-btn {
  background: #fff;
  color: #c0182c;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  text-decoration: none;
}
.cta-btn:hover {
  background: #ededed;
  color: #a01525;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: black;
  padding: 10px 20px 10px 20px;
}
.footer .logo {
  height: 50px;
}
.footer .copyright {
  color: white;
  font-size: 0.7rem;
  margin-left: 16px;
}

.gray-header h3 {
  padding-left: 10px;
}

/* Expectations Section */
.expectations-section {
  background-color: #f3f4f6;
  padding: 60px 20px;
  text-align: center;
  max-width: 100%;
}

.expectations-section h2 {
  font-size: 2rem;
  font-weight: 300;
  color: #1f2937;
  margin-bottom: 40px;
}

.expectations-container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.expectations-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 250px;
  max-width: 340px;
  text-align: left;
}

.expectations-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #c0182c;
  margin-bottom: 15px;
}

.expectations-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expectations-card li {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.dashboard-header {
  background-color: #ffffff;
  border-bottom: 5px solid;
  border-image: linear-gradient(90deg, #5b73e7 0%, #c0182c 100%) 1;

  margin-bottom: 20px;
  background: transparent;
  position: relative;
}

.dashboard-header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px;
  box-sizing: border-box;
  gap: 10px;
}

.dashboard-logo {
  justify-self: start;
}

.dashboard-logo-img {
  width: 100px;
}
.dashboard-title h1 {
  justify-self: center;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 10px;
}
.dashboard-title h1 a {
  -webkit-background-clip: text;
  background-clip: text;
  color: #393837;
  text-decoration: none;
  font-weight: 1000;
  font-size: 1.7rem;
  font-style: normal;
  letter-spacing: 15px;
}

.logout-btn {
  background-color: transparent;
  color: #1f2937;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
  justify-self: end;
}

.logout-btn:hover {
  opacity: 0.8;
}

/* Main Content */
.dashboard-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

@media (max-width: 1280px) {
  .dashboard-main {
    margin: 0;
    padding: 0;
  }
}

.courses-container {
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
  padding: 0 30px 30px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.courses-heading {
  font-size: 2rem;
  color: #393837;
  font-weight: 700;
  margin: 0 auto 20px auto;
}

.course-intro-section {
  flex: 1;
  min-width: 250px;
  max-width: 600px;
}
.courses-subheading {
  font-size: 1.2rem;
  color: #1f2937;
  margin: 0 0 25px 0;
  font-weight: 700;
  text-align: center;
  padding-bottom: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
/* Course Tabs */
.course-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.course-tabs-dropdown {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-left: 0;
  margin-right: auto;
  align-self: flex-start;
  box-sizing: border-box;
  flex-basis: 100%;
  order: 3;
}

.course-tabs-dropdown:focus {
  outline: 2px solid #c0182c;
}

.course-tabs-greeting {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  flex-basis: 100%;
  order: 0;
  box-sizing: border-box;
}

.course-tabs-greeting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-tabs-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.course-tabs-admin-link:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.course-tabs-admin-link:focus-visible {
  outline: 2px solid #c0182c;
  outline-offset: 2px;
}

.course-tabs-greeting-meta {
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6b7280;
}

.course-tabs-greeting-bold {
  color: #111827;
}

.course-tabs-greeting-name {
  color: #c0182c;
}

.course-tabs-summary {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  gap: 12px;
  flex-basis: 100%;
  order: 1;
  box-sizing: border-box;
}

/* Force the dropdown to always start on a new row under the summary */
.course-tabs::after {
  content: "";
  flex-basis: 100%;
  width: 100%;
  height: 0;
  order: 2;
}

.course-tabs-summary-box {
  flex: 1 1 0;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #1f2937;
  font-weight: 700;
}

.course-tabs-summary-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin: 2px 0 8px 0;
}

.course-tabs-summary-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.course-tabs-summary-value {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}

.course-tabs-current-goal-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 140ms ease,
    transform 140ms ease,
    background-color 140ms ease;
}

.course-tabs-current-goal-link:hover,
.course-tabs-current-goal-link:focus-visible {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.course-tabs-current-goal-link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.7;
  box-shadow: none;
}

.course-tabs-current-goal-link[aria-disabled="true"]:hover,
.course-tabs-current-goal-link[aria-disabled="true"]:focus-visible {
  transform: none;
  background: #ffffff;
  box-shadow: none;
}

.cert-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  --cert-gap: 15px;
  gap: var(--cert-gap);
  flex-wrap: wrap;
}

/* Each icon becomes a flex item; chevron is attached to the icon on its left */
.cert-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cert-node .cert-icon,
.cert-node .cert-event,
.cert-node .cert-role {
  position: relative;
  z-index: 1;
}

.cert-node.has-chevron .cert-chevron {
  position: absolute;
  top: 50%;
  left: calc(100% + (var(--cert-gap) / 2));
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  z-index: 0;
  pointer-events: none;
}

.cert-chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cert-icon {
  width: 37px;
  height: 37px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  color: #9ca3af;
  font-weight: 900;
  font-size: 0.85rem;
  user-select: none;
}

.cert-event {
  width: 75px;
  height: 37px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  color: #9ca3af;
  font-weight: 900;
  font-size: 0.85rem;
  user-select: none;
}

.cert-role {
  width: 150px;
  height: 37px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  color: #9ca3af;
  font-weight: 900;
  font-size: 0.85rem;
  user-select: none;
}

.cert-icon.is-active {
  background: rgb(124, 164, 124);
  color: #ffffff;
}

.cert-event.is-active,
.cert-role.is-active {
  background: #2e7d32;
  color: #ffffff;
}

.cert-icon.is-next:not(.is-active),
.cert-event.is-next:not(.is-active),
.cert-role.is-next:not(.is-active) {
  background: #fbbf24;
  color: #5f6166;
}

.cert-divider {
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: #e5e7eb;
  border-radius: 1px;
}

.tab-btn {
  display: none;
  background: none;
  border: none;
  padding: 15px 16px 0 16px;
  font-size: 1.2rem;
  color: #6b7280;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  align-items: center;
  order: 1;
}

.tab-btn:hover {
  color: #1f2937;
}

.tab-btn.active {
  color: #c0182c;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #c0182c;
}

/* Course Grid */
.courses-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 5px;
}

.courses-page-body .course-card {
  background-color: #f9fafb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}

.courses-page-body .course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.courses-page-body .course-card.locked {
  opacity: 0.7;
  pointer-events: none;
}

.courses-page-body .course-card-body {
  padding: 0;
}

/* Reserve space so the absolutely-positioned completed badge doesn't overlap text */
.courses-page-body .course-card.is-completed .course-card-body {
  padding-bottom: 32px;
}

.courses-page-body .course-card-body h3 {
  background-color: #c0182c;
  color: #e5e7eb;
  margin: 0;
  padding: 10px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0 0 7px 7px;
  text-align: center;
}

.courses-page-body .course-card-body p {
  padding: 20px;
  margin: 0;
}

.courses-page-body .course-description {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

.courses-page-body .course-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 15px;
}

/* Course Definition List Styles */
.course-definition-list {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.gray-header {
  background-color: #e5e7eb;
  border-radius: 7px;
}
.course-definition-list li {
  padding: 15px 0;
}
.last {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}
.course-definition-list h4 {
  margin: 0 0 8px 0;
  color: #1f2937;
  padding-left: 10px;
}

.course-definition-list p {
  margin: 0 0 0 20px;
  color: #6b7280;
  font-size: 1rem;
}

/* Course Page Component Styles */
.back-btn-wrapper {
  margin-bottom: 20px;
}

.back-btn {
  background: none;
  border: none;
  color: #c0182c;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
}

.back-btn:hover {
  opacity: 0.8;
}

.back-btn::before {
  content: "❮"; /* unicode arrow */
  display: inline-block;
  line-height: 1;
  vertical-align: 1px;
  margin-right: 6px;
}

.course-intro-section {
  border-radius: 0 8px 8px 0;
  padding: 0 30px 0 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid #d1d5db;
  background: linear-gradient(135deg, #f0f9ff 0%, #e4e4e4 100%);
  border-left: 4px solid #c0182c;
}

.course-intro-section h4 {
  margin-top: 0;
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: bold;
}

.course-intro-section p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 1.1rem;
}

.course-content-wrapper {
  width: 100%;
  padding: 10px 20px 40px 20px;
  box-sizing: border-box;
  position: relative;
}

.course-content-wrapper h2 {
  text-align: center;
  font-size: 1.9rem;
}

.course-content {
  text-align: center;
}

.course-card-body h3 {
  color: #c0182c;
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid #a1a1a1;
  margin-bottom: 20px;
}

/* Same idea for non-`.courses-page-body` contexts (course fragments, list pages, etc.) */
.course-card.is-completed .course-card-body {
  padding-bottom: 32px;
}

.course-cards-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 700px;
  margin: 0 auto;
}

.course-card-item {
  background-color: #f9fafb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

/* When course cards are anchors, prevent default link styling. */
a.course-card-item,
a.course-card-item:visited,
a.course-card-item:hover,
a.course-card-item:active {
  color: inherit;
  text-decoration: none;
}

/* Anchors are inline by default; make them behave like tiles. */
a.course-card-item {
  display: block;
}

.course-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-card-item h4 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: #1f2937;
  font-weight: 600;
}

.course-card-item p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

.course-info-box {
  margin-top: 20px;
  padding: 20px;
  background-color: #dfdfdf;
  border-radius: 8px;
  border-left: 4px solid #c0182c;
}

.course-info-box p {
  margin: 0;
  color: #1f2937;
}
@media (max-width: 1280px) {
  .course-info-box {
    margin: 0 20px 20px 20px;
  }
}

.course-card-body-padding {
  padding: 20px;
}
.quiz-btn {
  display: block;
  background: #c0182c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 35px;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 10px auto 50px auto;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  text-align: center;
  width: fit-content;
}
.quiz-btn:hover {
  background: #a01525;
}
.training-img {
  width: 350px;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 20px 10px 20px 10px;
  object-fit: contain;
}

.training-img.tall-img {
  width: 200px;
}
.training-img-small {
  width: 350px;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 20px 10px 20px 10px;
  object-fit: cover;
}
.spl-img {
  width: 700px;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 20px 10px 20px 10px;
  object-fit: contain;
}

.img-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.course-completion {
  border-radius: 8px;
  margin: 20px auto;
  padding: 15px 20px 15px 20px;
  text-align: center;
  width: fit-content;
}

/* Course Header Styles */
.course-header {
  position: relative;
  padding: 40px 20px;
  margin-bottom: 20px;
}

.course-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50px;
  right: 50px;
  height: 1px;
  background-color: #e5e7eb;
}

.course-header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.course-header-icon {
  font-size: 50px;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-header-icon-large {
  font-size: 50px;
  width: 150px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.course-header-text {
  min-width: 0;
}

.course-header-text h1 {
  margin: 0 0 8px 0;
  font-size: 3rem;
  color: #1f2937;
  font-weight: 700;
  white-space: wrap;
}

.course-header-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 1.1rem;
  white-space: wrap;
  text-align: left;
}

/* Course Goal Section */
.course-goal-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
  position: relative;
}

.course-goal-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.goal-icon-section {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  vertical-align: middle;
  gap: 10px;
}

.goal-icon-section > h2 {
  min-width: 80px;
  text-align: center;
}

.course-goal-icon {
  width: 30px;
  height: 25px;
  margin: 0 10px;
}

.course-goal-text {
  flex: 1;
}

.course-requirements-icon {
  width: 30px;
  height: 25px;
  margin: 0 10px;
  filter: brightness(0) saturate(100%) invert(24%) sepia(97%) saturate(2237%)
    hue-rotate(359deg) brightness(103%) contrast(107%);
}

.course-goal-label {
  margin: 0 0 10px 0;
  color: #3b82f6;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-goal-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
}

.course-goal-text h2 {
  margin: 0 0 0 0;
  font-size: 1.2rem;
  color: #1f2937;
}

.course-goal-description {
  margin-bottom: 20px;
  color: #1f2937;
  line-height: 1.6;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 1000;
  letter-spacing: 0.05rem;
}

.course-requirements-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-requirements-section h2 {
  margin: 0;
  font-size: 1rem;
  color: #1f2937;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.requirement-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.requirement-row img {
  display: inline-block;
  vertical-align: middle;
}

.course-header::after {
  content: "";
  position: absolute;

  left: 50px;
  right: 50px;
  height: 1px;
  background-color: #e5e7eb;
}

.course-content-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50px;
  right: 50px;
  height: 1px;
  background-color: #e5e7eb;
}

/* Fullscreen Image Modal */
.fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.fullscreen-modal.active {
  display: flex;
}

.fullscreen-modal img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

.fullscreen-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
  transition: opacity 0.2s;
}

.fullscreen-modal .close-btn:hover {
  opacity: 0.7;
}

.fullscreen-img {
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.fullscreen-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.legal-info {
  display: flex;
  margin: 50px 20px 20px auto;
  color: #e5e7eb;
  border: solid 1px #e5e7eb;
  padding: 0 5px;
  border-radius: 5px;
  white-space: nowrap;
  width: fit-content;
  height: fit-content;
  cursor: pointer;
}
.legal-info h3 {
  margin: 0;
}

.legal-info h3 a {
  color: #e5e7eb;
}

.course-tabs-info {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Responsive Styles */

@media (max-width: 950px) {
  .course-header-icon {
    width: 70px;
    height: 70px;
    font-size: 40px;
  }

  .course-header-text h1 {
    font-size: 2.8rem;
  }

  .course-goal-icon {
    width: 30px;
    height: 25px;
    font-size: 30px;
  }

  .dashboard-title h1 a {
    font-size: 1.3rem;
    letter-spacing: 12px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .courses-container {
    display: block;
    padding: 0 20px 20px 20px;
  }
  .courses-heading {
    background-color: #ffffff;
    margin: 20px auto 20px auto;
    text-align: center;
  }
  .course-intro-section {
    margin: 0 auto 0 auto;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
  }
  .course-intro-section-title-small {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .course-intro-section-title-small h2 {
    display: inline-block;
    margin: 0;
    flex-wrap: wrap;
  }

  .course-into-section-gray {
    background-color: #000000;
  }
  .small-h2 {
    font-size: 1rem;
  }

  .info-section {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
    align-items: center;
  }
  .audio-training-path {
    position: static;
    margin-top: 32px;
    min-width: unset;
    max-width: 320px;
  }
  .hero-content {
    align-items: center;
    padding: 32px 8px 60px 8px;
    margin: 25px auto 150px auto;
  }
  .hero-content h1 {
    text-align: center;
  }
  .course-cards {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .hero-subtitle {
    text-align: center;
  }
}

@media (max-width: 800px) {
  .spl-img {
    width: 350px;
  }

  .dashboard-title h1 a {
    font-size: 1.1rem;
    letter-spacing: 8px;
  }
}

@media (max-width: 750px) {
  .dashboard-header-content {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 12px 12px;
  }

  .dashboard-logo-img {
    width: 70px;
  }

  .course-header {
    padding: 30px 15px;
  }

  .course-header-top {
    text-align: center;
  }

  .course-header-text h1 {
    font-size: 2.2rem;
    text-align: left;
  }

  .course-header-subtitle {
    font-size: 1rem;
  }

  .course-goal-section {
    flex-direction: column;
    gap: 15px;
  }

  .goal-icon-section {
    flex-wrap: wrap;
  }

  .goal-icon-section > :nth-child(n + 3) {
    flex-basis: 100%;
  }

  .goal-icon-section > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .course-requirements-icon {
    width: 20px;
  }

  .course-requirements-section {
    flex-basis: 100%;
  }
  .course-requirements-section h2 {
    font-size: 1.1rem !important;
  }

  .course-goal-icon {
    width: 20px;
    height: 21px;
    font-size: 25px;
  }

  .course-goal-text h2 {
    font-size: 1.3rem;
  }

  .course-requirements-icon {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    filter: brightness(0) saturate(100%) invert(24%) sepia(97%) saturate(2237%)
      hue-rotate(359deg) brightness(103%) contrast(107%);
  }

  .logout-btn {
    font-size: 0.8rem;
  }

  /* Ensure the dashboard title is centered on narrow screens */
  .dashboard-title {
    justify-self: center;
    text-align: center;
    width: 100%;
  }

  .dashboard-title h1 a {
    display: inline-block;
    letter-spacing: 5px;
    text-align: center;
    font-size: 1rem;
  }

  /* Stack summary boxes (Current Goal under Certified) */
  .course-tabs-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .course-tabs-summary-box {
    flex: none;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-content h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 450px) {
  .dashboard-header-content {
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    padding: 10px 8px;
  }

  .dashboard-title h1 a {
    font-size: 0.9rem;
    letter-spacing: 4px;
  }

  .dashboard-logo-img {
    width: 50px;
  }

  .logout-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}
