/* ===================================
   CSS Variables
   =================================== */
:root {
  --color-primary: #2563eb;
  --color-secondary: #7c3aed;
  --color-accent: #f59e0b;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;
  --color-white-rgb: 255, 255, 255;
  --color-glossy-border-rgb: var(--color-white-rgb);

  --opacity-100: 100%;
  --opacity-80: 80%;
  --opacity-50: 50%;
  --opacity-13: 13%;
  --opacity-0: 0;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  --radius: 0.5rem;
  --border-radius-full: 1000px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===================================
   Fonts used in Figma design
   =================================== */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===================================
   Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background: var(--color-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope';
}

/* ===================================
   Header & Navigation
   =================================== */
[data-anchor] {
  scroll-margin-top: 80px; /* height of the sticky nav + .5rem */
}

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: var(--spacing-sm);
  flex: 1;
}

.header-actions {
  margin-left: auto;
}

/* ===================================
   Menu Item Component
   =================================== */
.menuitem {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.menuitem:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.menuitem--active {
  background: var(--color-primary);
  color: white;
}

.menuitem__icon {
  font-size: 1.2rem;
}

/* ===================================
   Search Box Component
   =================================== */
.searchbox {
  display: flex;
  align-items: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.searchbox__input {
  border: none;
  background: transparent;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.95rem;
  outline: none;
  min-width: 200px;
}

.searchbox__button {
  background: transparent;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  cursor: pointer;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
}

.searchbox__button:hover {
  color: var(--color-primary);
}

/* ===================================
   Button Component
   =================================== */
.button {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.button--primary {
  background: var(--color-primary);
  color: white;
}

.button--primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.button--secondary:hover {
  background: var(--color-primary);
  color: white;
}

.btn-outline-primary-soft {
  --bs-btn-border-color: var(--bs-soft-primary);
  --bs-btn-hover-color: var(--bs-btn-color);
  --bs-btn-hover-bg: var(--bs-soft-primary);
}

.btn-outline-primary {
  --bs-btn-border-color: rgba(6, 106, 201, 0.35);
  --bs-btn-hover-border-color: rgba(6, 106, 201, 0.35);
  --bs-btn-active-border-color: rgba(6, 106, 201, 0.35);
  --bs-btn-disabled-border-color: rgba(6, 106, 201, 0.35);
}

/* ===================================
   Borders
   =================================== */
.border-wrapper {
  --border-size: 1px;
  --radius: .5rem;
  --background: transparent;
  --color-start: rgba(var(--color-glossy-border-rgb), var(--opacity-80));
  --color-stop: rgba(var(--color-glossy-border-rgb), var(--opacity-0));
  position: relative;
  border-radius: var(--radius);
  overflow: auto;
}

.border-wrapper::before {
  --negative-position: calc(var(--border-size) - (var(--border-size) * 2));
  content: '';
  position: absolute;
  inset: calc(var(--negative-position) * -1);
  pointer-events: none;
  padding: var(--border-size);
  border-radius: var(--radius);
  background: linear-gradient(
    to bottom right,
    var(--color-start) 10%,
    var(--color-stop) 100%
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.border-wrapper-content  {
  padding: 1.5rem;
  height: 100%;
  background: rgba(255, 255, 255, .13);
}

.border-soft.border-wrapper {
  --color-start: color-mix(in srgb, var(--color-primary) var(--opacity-50), transparent);
  --color-stop: color-mix(in srgb, var(--color-primary) var(--opacity-50), transparent);
}

/* ===================================
   Card Component
   =================================== */
.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

/* .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
} */

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__content {
  padding: var(--spacing-md);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.card__text {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.card__link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.card__link:hover {
  text-decoration: underline;
}

/* ===================================
   Grid Layouts
   =================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

/* ===================================
   Hero Section
   =================================== */
.home-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.hero__title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.home-hero .button {
  margin: 0 var(--spacing-xs);
}

/* ===================================
   Sections
   =================================== */
.home-features,
.home-content {
  padding: var(--spacing-xl) 0;
}

.home-features h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}


/* ===================================
    Review cards
   =================================== */
.review-stats {
  max-height: 77px;
  width: 77px;
}

.review-card {
  background: white;
  min-width: 300px;
  flex: 0 0 calc(50% - 16px);
  /* 2 cards next to each other*/
  border-radius: 12px;
  padding: 24px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Card Content Styling */
.review-card > .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-left: 0;
  padding-right: 0px;
}

.review-card > .name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #111;
}

.review-card > .review-text {
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  color: var(--color-text);
  height: 155px;
  max-height: 155px;
  overflow-y: hidden;
}

.review-card > .review-text-full {
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  color: var(--color-text);
  height: 155px;
  overflow-y: auto;
}

.review-card > .read-more {
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
  display: inline-block;

}

.review-card>.show-more {
  min-height: 2rem;
}

.review-card>.card-footer {
  margin-top: auto;
  color: #888;
  font-size: 0.85rem;
  border-top: 1px solid #eee;
  padding-top: 16px;
  padding-left: 0;
  padding-right: 0;
}
/* ===================================
    Carousel buttons - make them overlay a bit with the edge
   =================================== */
/*prev button*/
.tns-controls>button:nth-child(1) {
  margin: 0px;
  margin-left: 5px;
}

/*next button*/
.tns-controls>button:nth-child(2) {
  margin: 0px;
  margin-right: 5px;
}

/*fix blur*/
.arrow-blur [data-controls] {
    -webkit-backdrop-filter: blur(0px);
     backdrop-filter: blur(0px);
}
/* ===================================
    Golden stars on reviews
   =================================== */
/* Container for the stars row */
.star-rating {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

/*
 Because we use the free version of font-awesome, for half-filled stars
 we have to stack 2 stars mn top of each other
*/
.star-stack {
  display: inline-grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

.star-stack>i {
  grid-area: 1 / 1 / 2 / 2;
  width: auto;
}

/* color the stars yellow or "gold" */
.star-filled , .star-empty {
  color: var(--bs-yellow);
}
/* ===================================
   Page Layout
   =================================== */
.page {
  padding: var(--spacing-xl) 0;
}

.page__header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-border);
}

.page__header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.page__description {
  font-size: 1.25rem;
  color: var(--color-text-light);
}

.page__content {
  max-width: 800px;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  text-align: center;
  color: var(--color-text-light);
}

/* ===================================
   ads-word
   =================================== */
.min-h-3-lines {
  min-height: 3lh;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__title {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

.letter-container {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.letter-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
}

.letter-divider {
  flex-grow: 1;
  border-top: 1.5px solid #ccc;
  margin: 0;
}

.bg-soft-primary {
  background: var(--bs-soft-primary);
}

.sticky-menu-host {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: block;
}

@media (min-width: 1200px) {
  .sticky-menu-host {
    top: 66px;
  }
}

#sticky-menu-wrapper {
  background: #fff;
  overflow-x: auto;
  padding: 16px 0px;
}

#sticky-menu-wrapper .sticky-menu {
  padding: 0;
}

.gradient-box {
  width: 100%;
  padding: 20px;
  min-height: 100px;
  text-align: left;
  box-sizing: border-box;
  display: block;
  border: 2px solid transparent;
  border-radius: 8px;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-repeat: no-repeat;
}

.course-card-image {
  object-fit: cover;
  width: 100%;
  max-height: 225px;
  min-height: 142px;
}

/* Pagination */
#coursePaginationControls .btn {
  background: transparent;
  transition: transform 0.2s ease;
}

#coursePaginationControls .btn:hover {
  transform: scale(1.2);
}

.pagination .page-item .page-link {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 500;
  border: none;
}

.page-link:hover {
  background-color: var(--bs-soft-primary);
  color: var(--bs-primary);
}

.page-num.active {
  background-color: var(--bs-primary);
  color: white;
}

.pagination-ellipsis {
  cursor: default;
  padding: 0 5px;
}

.theme-checkbox-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.theme-checkbox-field .form-check {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 0.25rem;
  margin-bottom: 0;
}

.theme-checkbox-field .form-check .form-check-label {
  width: 100%;
}

.theme-checkbox-field:has(input[type="checkbox"]:checked) {
  background-color: var(--bs-primary-bg-subtle) !important;
  color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity)) !important;
}

.theme-checkbox-field:has(input[type="checkbox"]:checked) .form-check-label {
  color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity)) !important;
}

.theme-checkbox-field {
  transition: background-color 0.2s, color 0.2s;
}

.stat-value {
  display: inline-block;
  width: 1.2rem;
  text-align: center;
  font-weight: 600;
}

.course-stats-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
}

.stat-item:not(:last-child)::after {
  content: "|";
  margin: 0 8px;
  color: var(--bs-gray-400);
}

.icon-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: var(--bs-border-radius);
  flex-shrink: 0;
}

.icon-badge-primary {
  background-color: var(--bs-soft-primary);
}

.icon-badge-primary svg {
  stroke: var(--bs-primary);
}

.responsive-banner {
  width: 100%;
  max-height: 152px;
  margin: 0 auto;
}

.responsive-banner img {
  width: 100%;
  height: 100%;
  display: block;
  max-height: inherit;
}

@media (min-width: 576px) {
  .responsive-banner {
    max-height: 300px;
  }
}

@media (min-width: 1200px) {
  .responsive-banner {
    max-width: 1200px;
    padding: 0 var(--spacing-md);
  }

  .responsive-banner img {
    height: 300px;
    border-radius: 1rem;
  }
}


.skeleton-video-container {
  background-color: #e2e8f0;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.skeleton-shimmer {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeleton-play-button {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

details.details-wrapper {
  margin-bottom: 1rem;
}

details.details-wrapper summary {
  list-style: none;
  cursor: pointer;
  color: #007bff;
  outline: none;
  padding-top: 5px;
  display: inline-flex;
  align-items: center;
}

details.details-wrapper summary::-webkit-details-marker {
  display: none;
}

details.details-wrapper summary::before {
  content: attr(data-read-more);
}

details.details-wrapper[open] summary::before {
  content: attr(data-read-less);
}

details.details-wrapper .caret-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

details.details-wrapper[open] .caret-icon {
  transform: rotate(180deg);
}

.overflow-ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ratio-10x3 {
  aspect-ratio: 10 / 3;
}

@media (max-width: 767.98px) {
  body.has-mobile-filter footer {
    padding-bottom: 90px !important;
  }
}

lo-page-filter:not(.hydrated) {
  display: block;
}

@media (min-width: 768px) {
  lo-page-filter:not(.hydrated) {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
  }

  lo-page-filter:not(.hydrated)::before {
    content: "";
    width: 360px;
    min-height: 500px;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    flex-shrink: 0;
    display: block;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%
    ), #f8f9fa;
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: shimmer 1.5s infinite;
  }
}