/* LearnPress Single Course Styles to match site design */

.single-learnpress-course {
  background: var(--background-color);
}

/* Hero Section - mirrors single-utbildning-hero */
.single-utbildning-hero {
  position: relative;
  height: 600px;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 var(--spacing-3xl);
  overflow: hidden;
}

.single-utbildning-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #132938;
  background: linear-gradient(
    90deg,
    rgba(19, 41, 56, 1) 0%,
    rgba(255, 255, 255, 0) 96%
  );
  z-index: 1;
}

.hero-content-container {
  position: relative;
  z-index: 2;
}

.single-utbildning-hero .hero-title {
  font-size: var(--h1-lg-size);
  color: var(--text-white);
  margin: 0;
  line-height: 1.2;
}

.single-utbildning-hero .hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--text-white);
  margin: 0;
  margin-top: 1rem;
  opacity: 0.9;
  font-weight: 400;
}

@media (max-width: 767px) {
  .single-utbildning-hero .hero-subtitle {
    font-size: var(--font-size-md);
  }
}

/* Content background consistent with single-utbildningar */
.course-content {
  background: var(--color-green-light);
  padding-block: var(--spacing-3xl);
}

/* Two-column layout (matches single-utbildningar) */
.course-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: var(--spacing-8xl);
  align-items: start;
}

.course-sidebar {
  position: sticky;
  top: var(--spacing-2xl);
  z-index: 10;
}

/* Sidebar card */
.course-sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: var(--spacing-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Adjust LP price + buttons inside sidebar */
.course-sidebar .course-price, /* common LP markup */
.course-sidebar .lp-course-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.course-sidebar .lp-course-buttons .lp-button,
.course-sidebar .lp-button,
.course-sidebar .button {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--accent-color, var(--primary-color));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.course-sidebar .lp-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Space elements nicely */
.course-sidebar .lp-course-buttons > * + *,
.course-sidebar .course-sidebar-card > * + * {
  margin-top: var(--spacing-md);
}

/* Headings inside main content to match typography */
.course-main h2 {
  font-size: var(--h3-lg-size);
  margin-bottom: var(--spacing-xl);
}

.course-main .course-text,
.course-main p {
  font-size: var(--font-size-md);
  line-height: 1.7;
  color: var(--text-color);
}

.course-sidebar-top {
  position: absolute;
  top: 6rem;
}

.meta-item-categories,
.meta-item-student,
.meta-item-instructor,
.meta-item-quiz,
.meta-item-level {
  display: none !important;
}
