@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --text-dark: #1e1e1e;
  --text-gray: #585858;
  --text-light: #9ca3af;
  --border-color: #eaeaea;
  --bg-light: #f7f7f8;
  --white: #ffffff;
  --success: #10b981;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

.cr-courses-container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 120px 15px 0;
}

.cr-search-courses-area {
  display: flex;
  flex-direction: row-reverse;
  gap: 24px;
  padding: 30px 0 50px;
  align-items: flex-start;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iosSpringCenter {
  0% {
    opacity: 0;
    transform: scale(1.25) translateY(100px);
  }
  40% {
    opacity: 1;
    transform: scale(0.96) translateY(-2px);
  }
  70% {
    transform: scale(1.01) translateY(0);
  }
  96% {
    transform: scale(1.002) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes iosSpringRight {
  0% {
    opacity: 0;
    transform: scale(1.25) translateX(120px) translateY(80px);
  }
  40% {
    opacity: 1;
    transform: scale(0.96) translateX(3px) translateY(2px);
  }
  70% {
    transform: scale(1.01) translateX(0) translateY(0);
  }
  96% {
    transform: scale(1.002) translateX(0) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0) translateY(0);
  }
}

@keyframes iosSpringLeft {
  0% {
    opacity: 0;
    transform: scale(1.25) translateX(-120px) translateY(80px);
  }
  40% {
    opacity: 1;
    transform: scale(0.96) translateX(-3px) translateY(2px);
  }
  70% {
    transform: scale(1.01) translateX(0) translateY(0);
  }
  96% {
    transform: scale(1.002) translateX(0) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0) translateY(0);
  }
}

@keyframes iosSpringCenterReverse {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  4% {
    transform: scale(1.002) translateY(0);
  }
  30% {
    transform: scale(1.01) translateY(0);
  }
  60% {
    opacity: 1;
    transform: scale(0.96) translateY(-2px);
  }
  100% {
    opacity: 0;
    transform: scale(1.25) translateY(100px);
  }
}

@keyframes iosSpringRightReverse {
  0% {
    opacity: 1;
    transform: scale(1) translateX(0) translateY(0);
  }
  4% {
    transform: scale(1.002) translateX(0) translateY(0);
  }
  30% {
    transform: scale(1.01) translateX(0) translateY(0);
  }
  60% {
    opacity: 1;
    transform: scale(0.96) translateX(-2px) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.25) translateX(120px) translateY(80px);
  }
}

@keyframes iosSpringLeftReverse {
  0% {
    opacity: 1;
    transform: scale(1) translateX(0) translateY(0);
  }
  4% {
    transform: scale(1.002) translateX(0) translateY(0);
  }
  30% {
    transform: scale(1.01) translateX(0) translateY(0);
  }
  60% {
    opacity: 1;
    transform: scale(0.96) translateX(2px) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.25) translateX(-120px) translateY(80px);
  }
}

@keyframes fadeInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px) translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

[x-cloak] {
  display: none !important;
}

.cr-vertical-filter-trigger {
  position: fixed !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 16px 0 0 16px;
  padding: 24px 12px;
  cursor: pointer;
  box-shadow: -6px 0 20px rgba(94, 63, 215, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
  will-change: transform, padding;
  visibility: visible;
  opacity: 1;
}

.cr-vertical-filter-trigger:hover {
  padding-right: 16px;
}

.cr-filter-trigger-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cr-filter-trigger-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font: 600 0.875rem/1.4 "Readex Pro", sans-serif;
  color: var(--white);
  letter-spacing: 1px;
}

.cr-filter-trigger-arrow {
  color: var(--white);
  transition: transform 0.3s ease;
}

.cr-filter-drawer {
  position: fixed;
  right: -320px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  max-height: 500px;
  background: var(--white);
  border-radius: 16px 0 0 16px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 16px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cr-filter-drawer[x-cloak] {
  display: none !important;
}

.cr-filter-drawer.open {
  right: 0;
}

.cr-filter-drawer-body {
  padding: 0;
}

.cr-filter-section-drawer {
  margin-bottom: 0;
}

.cr-drawer-enter {
  transition: transform 0.3s ease-out;
}

.cr-drawer-enter-start {
  transform: translateX(100%) translateY(-50%);
  opacity: 0;
}

.cr-drawer-enter-end {
  transform: translateX(0) translateY(-50%);
  opacity: 1;
}

.cr-drawer-leave {
  transition: transform 0.3s ease-in;
}

.cr-drawer-leave-start {
  transform: translateX(0) translateY(-50%);
  opacity: 1;
}

.cr-drawer-leave-end {
  transform: translateX(100%) translateY(-50%);
  opacity: 0;
}

.accordion {
  border: none;
}

.accordion-item {
  border: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.accordion-item:first-child {
  padding-top: 0;
}

.accordion-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.accordion-header {
  border: none;
}

.accordion-button {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none !important;
  font: 600 0.875rem/1.4 "Readex Pro", sans-serif;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--primary-color);
}

.accordion-button::after {
  display: none;
}

.accordion-button i {
  font-size: 14px;
  transition: transform 0.3s ease;
  color: var(--text-gray);
}

.accordion-button:not(.collapsed) i {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.accordion-body {
  padding: 12px 0 0;
}

.cr-filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cr-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.cr-filter-option:hover {
  background: var(--bg-light);
}

.cr-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  background: var(--white);
}

.cr-checkbox:checked {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(94, 63, 215, 0.3);
}

.cr-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.cr-checkbox:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.cr-option-details {
  flex: 1;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.cr-option-label {
  font: 500 0.875rem/1.4 "Readex Pro", sans-serif;
  color: var(--text-dark);
}

.cr-option-count {
  margin-left: auto;
  font: 400 0.8125rem/1.4 "Readex Pro", sans-serif;
  color: var(--text-light);
}

.cr-clear-button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--danger);
  font: 600 0.875rem/1.4 "Readex Pro", sans-serif;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cr-clear-button:hover {
  background: var(--danger);
  color: var(--white);
}

.cr-search-results-wrapper {
  flex: 1;
  min-width: 0;
}

.cr-search-results-container {
  margin-bottom: 24px;
}

.cr-results-summary {
  padding: 16px 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: var(--radius-lg);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  animation: scaleIn 0.6s ease-out 0.2s both;
}

.cr-results-text {
  font: 500 0.875rem/1.4 "Readex Pro", sans-serif;
  opacity: 0.95;
}

.cr-results-count {
  font: 700 1.5rem/1.2 "Readex Pro", sans-serif;
  letter-spacing: -0.02em;
}

.cr-results-listing {
  font: 600 0.875rem/1.4 "Readex Pro", sans-serif;
}

.cr-search-list-container {
  margin-top: 20px;
}

.cr-search-list-container .row {
  align-items: start !important;
}

.cr-search-list-container .row > div > a {
  display: block;
}

.cr-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  position: relative;
}

/* Dynamic Color Circle Effect */
.cr-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  background: radial-gradient(circle at center, 
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0.05) 15%,
      rgba(0, 0, 0, 0.04) 30%,
      rgba(0, 0, 0, 0.03) 45%,
      rgba(0, 0, 0, 0.02) 60%,
      rgba(0, 0, 0, 0.01) 75%,
      transparent 90%);
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  border-radius: 50%;
  filter: blur(15px);
}

.cr-card.has-dynamic-color::after {
  background: radial-gradient(circle at center, 
      var(--card-color-intense) 0%,
      var(--card-color-medium) 10%,
      var(--card-color-light) 25%,
      var(--card-color-lighter) 40%,
      var(--card-color-lightest) 60%,
      var(--card-color-faint) 80%,
      transparent 100%);
}

.cr-card:hover::after {
  opacity: 1;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  transform: translate(-50%, -50%) scale(1.1);
  transition: opacity 0.5s ease, transform 0.3s ease;
}

.cr-card > * {
  position: relative;
  z-index: 2;
}

.cr-search-list-container .row > div:nth-child(3n + 1) .cr-card {
  animation: iosSpringRight 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 0.12s;
}

.cr-search-list-container .row > div:nth-child(3n + 1) .cr-background-image {
  animation-delay: 0.12s;
}

.cr-search-list-container .row > div:nth-child(1) .cr-benefits-section {
  animation-delay: calc(1.1s + 0.12s + 0.2s);
}
.cr-search-list-container
  .row
  > div:nth-child(1)
  .cr-benefit-item:nth-child(1) {
  animation-delay: calc(1.1s + 0.12s + 0.2s);
}

.cr-search-list-container .row > div:nth-child(4) .cr-benefits-section {
  animation-delay: calc(1.1s + 0.12s + 0.2s + 0.6s);
}
.cr-search-list-container
  .row
  > div:nth-child(4)
  .cr-benefit-item:nth-child(1) {
  animation-delay: calc(1.1s + 0.12s + 0.2s + 0.6s);
}

.cr-search-list-container .row > div:nth-child(7) .cr-benefits-section {
  animation-delay: calc(1.1s + 0.12s + 0.2s + 1.2s);
}
.cr-search-list-container
  .row
  > div:nth-child(7)
  .cr-benefit-item:nth-child(1) {
  animation-delay: calc(1.1s + 0.12s + 0.2s + 1.2s);
}

.cr-search-list-container .row > div:nth-child(3n + 2) .cr-card {
  animation: iosSpringCenter 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 0s;
}

.cr-search-list-container .row > div:nth-child(3n + 2) .cr-background-image {
  animation-delay: 0s;
}

.cr-search-list-container .row > div:nth-child(2) .cr-benefits-section {
  animation-delay: calc(1.1s + 0s + 0.2s + 0.2s);
}
.cr-search-list-container
  .row
  > div:nth-child(2)
  .cr-benefit-item:nth-child(1) {
  animation-delay: calc(1.1s + 0s + 0.2s + 0.2s);
}

.cr-search-list-container .row > div:nth-child(5) .cr-benefits-section {
  animation-delay: calc(1.1s + 0s + 0.2s + 0.8s);
}
.cr-search-list-container
  .row
  > div:nth-child(5)
  .cr-benefit-item:nth-child(1) {
  animation-delay: calc(1.1s + 0s + 0.2s + 0.8s);
}

.cr-search-list-container .row > div:nth-child(8) .cr-benefits-section {
  animation-delay: calc(1.1s + 0s + 0.2s + 1.4s);
}
.cr-search-list-container
  .row
  > div:nth-child(8)
  .cr-benefit-item:nth-child(1) {
  animation-delay: calc(1.1s + 0s + 0.2s + 1.4s);
}

.cr-search-list-container .row > div:nth-child(3n + 3) .cr-card {
  animation: iosSpringLeft 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 0.12s;
}

.cr-search-list-container .row > div:nth-child(3n + 3) .cr-background-image {
  animation-delay: 0.12s;
}

.cr-search-list-container .row > div:nth-child(3) .cr-benefits-section {
  animation-delay: calc(1.1s + 0.12s + 0.2s + 0.4s);
}
.cr-search-list-container
  .row
  > div:nth-child(3)
  .cr-benefit-item:nth-child(1) {
  animation-delay: calc(1.1s + 0.12s + 0.2s + 0.4s);
}

.cr-search-list-container .row > div:nth-child(6) .cr-benefits-section {
  animation-delay: calc(1.1s + 0.12s + 0.2s + 1s);
}
.cr-search-list-container
  .row
  > div:nth-child(6)
  .cr-benefit-item:nth-child(1) {
  animation-delay: calc(1.1s + 0.12s + 0.2s + 1s);
}

.cr-search-list-container .row > div:nth-child(9) .cr-benefits-section {
  animation-delay: calc(1.1s + 0.12s + 0.2s + 1.6s);
}
.cr-search-list-container
  .row
  > div:nth-child(9)
  .cr-benefit-item:nth-child(1) {
  animation-delay: calc(1.1s + 0.12s + 0.2s + 1.6s);
}

.cr-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.cr-card-skeleton {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}

.row > div:nth-child(3n + 1) .cr-card-skeleton {
  animation: iosSpringRightReverse 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation-delay: 0s;
}

.row > div:nth-child(3n + 2) .cr-card-skeleton {
  animation: iosSpringCenterReverse 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation-delay: 0.12s;
}

.row > div:nth-child(3n + 3) .cr-card-skeleton {
  animation: iosSpringLeftReverse 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 0s;
}

.cr-card-skeleton .cr-image-wrapper-skeleton {
  position: relative;
  width: calc(100% - 20px);
  margin: 10px 10px 0 10px;
  padding-top: 56.25%;
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 600px;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-md);
}

.cr-card-skeleton .cr-course-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cr-card-skeleton .cr-instructor-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cr-card-skeleton .cr-instructor-details {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.cr-card-skeleton .cr-instructor-avatar-skeleton {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 600px;
  animation: shimmer 1.5s infinite linear;
  flex-shrink: 0;
}

.cr-card-skeleton .cr-instructor-name-skeleton {
  width: 80px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 600px;
  animation: shimmer 1.5s infinite linear;
  display: block;
}

.cr-card-skeleton .cr-bookmark-button-skeleton {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 600px;
  animation: shimmer 1.5s infinite linear;
  display: block;
  flex-shrink: 0;
}

.cr-card-skeleton .cr-course-title-skeleton {
  width: 100%;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 600px;
  animation: shimmer 1.5s infinite linear;
}

.cr-card-skeleton .cr-course-features {
  margin-bottom: 12px;
}

.cr-card-skeleton .cr-lesson-count-skeleton {
  width: 90px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 600px;
  animation: shimmer 1.5s infinite linear;
  display: inline-block;
}

.cr-card-skeleton .cr-price-container {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.cr-card-skeleton .cr-price-info-skeleton {
  width: 100px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 600px;
  animation: shimmer 1.5s infinite linear;
  display: block;
}

.cr-image-wrapper {
  position: relative;
  width: calc(100% - 20px);
  margin: 10px 10px 0 10px;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  animation: imageZoomOut 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes imageZoomOut {
  0% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.cr-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cr-image-wrapper:hover .cr-background-image {
  transform: scale(1.05);
}

.cr-image-wrapper figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.cr-image-wrapper figcaption span {
  background: var(--danger);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font: 700 0.8125rem/1.3 "Readex Pro", sans-serif;
  box-shadow: var(--shadow-md);
}

.cr-image-wrapper figcaption button {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cr-image-wrapper figcaption button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.cr-course-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cr-instructor-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cr-instructor-details {
  flex: 1;
  min-width: 0;
}

.cr-instructor-name {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font: 500 0.8125rem/1.4 "Readex Pro", sans-serif;
  color: var(--text-gray);
  transition: color 0.2s ease;
}

.cr-instructor-name:hover {
  color: var(--primary-color);
}

.cr-instructor-avatar,
.cr-instructor-name img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cr-bookmark-button {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cr-bookmark-button:hover {
  background: #fef2f2;
}

.cr-bookmark-button.cr-likedcard {
  background: #fee2e2;
}

.cr-bookmark-button svg {
  display: block;
}

.cr-course-title {
  margin: 0 0 12px;
}

.cr-course-title a {
  font: 600 1.5rem/1.4 "Readex Pro", sans-serif;
  color: #764ba2;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  text-shadow: 0 2px 8px rgba(118, 75, 162, 0.15);
  transition: all 0.3s ease;
  background: linear-gradient(
    rgba(118, 75, 162, 0.08),
    rgba(118, 75, 162, 0.08)
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
}

.cr-course-title a::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: titleShine 3s infinite;
  pointer-events: none;
  border-radius: 6px;
  z-index: 1;
}

@keyframes titleShine {
  0% {
    right: -100%;
  }
  100% {
    right: 100%;
  }
}

.cr-course-title a:hover {
  color: #764ba2;
  background: linear-gradient(
    rgba(118, 75, 162, 0.12),
    rgba(118, 75, 162, 0.12)
  );
  transform: translateY(-2px);
}

.cr-lesson-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.8125rem/1.4 "Readex Pro", sans-serif;
  color: var(--text-gray);
}

.cr-lesson-count i {
  font-size: 14px;
}

.cr-price-container {
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cr-price-label {
  font: 700 1.35rem/1.2 "Readex Pro", sans-serif;
  color: #764ba2;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 8px rgba(118, 75, 162, 0.15);
}

@keyframes priceSlide {
  0%,
  100% {
    background-position: 0% 50%;
    transform: scale(1);
  }
  50% {
    background-position: 100% 50%;
    transform: scale(1.05);
  }
}

.cr-price-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cr-original-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 500 0.875rem/1.4 "Readex Pro", sans-serif;
  color: var(--text-light);
  position: relative;
}

.cr-original-price .riyal-icon {
  width: 12px !important;
  height: 12px !important;
  position: static !important;
  transform: none !important;
  filter: none !important;
}

.cr-original-price .riyal-icon path {
  fill: var(--text-light) !important;
}

.cr-original-price svg:not(.riyal-icon) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cr-discounted-price {
  display: flex;
  align-items: center;
}

.cr-price-amount {
  font: 700 1.45rem/1.2 "Readex Pro", sans-serif;
  color: #764ba2;
  display: inline-block;
  text-shadow: 0 2px 8px rgba(118, 75, 162, 0.15);
}

.cr-price-amount * {
  color: #764ba2;
}

.cr-courses-emptycase {
  width: 100%;
  padding: 80px 20px;
  text-align: center;
}

.cr-no-record-container {
  max-width: 420px;
  margin: 0 auto;
}

.cr-no-record-container figure {
  margin: 0 0 20px;
}

.cr-no-record-container img {
  max-width: 180px;
  margin: 0 auto;
  opacity: 0.5;
}

.cr-no-record-container h6 {
  font: 600 1.125rem/1.5 "Readex Pro", sans-serif;
  color: var(--text-gray);
  margin: 0;
}

.cr-video-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.cr-video-modal.am-waiting {
  background: rgba(0, 0, 0, 0.95);
}

.am-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.cr-benefits-section {
  margin-top: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid var(--border-color);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform-origin: top;
  animation: expandBenefits 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes expandBenefits {
  0% {
    max-height: 0;
    opacity: 0;
    transform: scaleY(0.8);
  }
  100% {
    max-height: 300px;
    opacity: 1;
    transform: scaleY(1);
  }
}

.cr-benefits-title {
  font: 600 0.875rem/1.4 "Readex Pro", sans-serif;
  color: #5a3a7a;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  text-shadow: 0 2px 8px rgba(90, 58, 122, 0.15);
  background: rgba(123, 86, 160, 0.055);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.cr-benefits-title::before,
.cr-benefits-title::after {
  content: "✦";
  font-size: 1rem;
  background: linear-gradient(135deg, #6171bb 0%, #825dac 50%, #697ac5 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: starRotate 4s linear infinite, starGlow 3s ease-in-out infinite;
  display: inline-block;
}

@keyframes starRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes starGlow {
  0%,
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.3);
  }
}

.cr-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cr-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font: 400 0.8125rem/1.5 "Readex Pro", sans-serif;
  color: var(--text-gray);
  opacity: 0;
  transform: translateX(10px);
}

.cr-benefit-item:nth-child(1) {
  animation: slideInBenefit 0.4s ease-out forwards;
  animation-delay: inherit;
}

.cr-benefit-item:nth-child(2) {
  animation: slideInBenefit 0.4s ease-out forwards;
  animation-delay: calc(var(--card-delay, 0s) + 0.15s);
}

.cr-benefit-item:nth-child(3) {
  animation: slideInBenefit 0.4s ease-out forwards;
  animation-delay: calc(var(--card-delay, 0s) + 0.3s);
}

.cr-benefit-item:nth-child(4) {
  animation: slideInBenefit 0.4s ease-out forwards;
  animation-delay: calc(var(--card-delay, 0s) + 0.45s);
}

.cr-benefit-item:nth-child(5) {
  animation: slideInBenefit 0.4s ease-out forwards;
  animation-delay: calc(var(--card-delay, 0s) + 0.6s);
}

@keyframes slideInBenefit {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cr-benefit-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: none;
}

.cr-benefit-item::before {
  content: "✦";
  font-size: 1.125rem;
  background: #825dac;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  margin-top: -3px;
}

@keyframes benefitStarRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cr-benefit-item span {
  flex: 1;
}

.am-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .cr-filters-sidebar-wapper {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .cr-courses-container,
  .cr-search-courses-area,
  .cr-search-results-wrapper,
  .cr-search-list-container {
    overflow-x: hidden !important;
  }

  @keyframes iosSpringCenterMobile {
    0% {
      opacity: 0;
      transform: scale(1.15) translateY(60px);
    }
    40% {
      opacity: 1;
      transform: scale(0.97) translateY(-1px);
    }
    70% {
      transform: scale(1.01) translateY(0);
    }
    96% {
      transform: scale(1.002) translateY(0);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  @keyframes iosSpringCenterReverseMobile {
    0% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
    4% {
      transform: scale(1.002) translateY(0);
    }
    30% {
      transform: scale(1.01) translateY(0);
    }
    60% {
      opacity: 1;
      transform: scale(0.97) translateY(-1px);
    }
    100% {
      opacity: 0;
      transform: scale(1.15) translateY(60px);
    }
  }

  .cr-vertical-filter-trigger {
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .cr-vertical-filter-trigger.mobile-hidden {
    right: -36px !important;
  }

  .cr-vertical-filter-trigger:not(.mobile-hidden) {
    right: 0 !important;
  }

  .cr-course-title a {
    font: 600 1.4rem/1.4 "Readex Pro", sans-serif !important;
  }

  .cr-search-list-container .row > div:nth-child(3n + 1) .cr-card,
  .cr-search-list-container .row > div:nth-child(3n + 2) .cr-card,
  .cr-search-list-container .row > div:nth-child(3n + 3) .cr-card {
    animation: iosSpringCenterMobile 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      both !important;
  }

  .cr-search-list-container .row > div:nth-child(1) .cr-card {
    animation-delay: 0s !important;
  }

  .cr-search-list-container .row > div:nth-child(2) .cr-card {
    animation-delay: 0.08s !important;
  }

  .cr-search-list-container .row > div:nth-child(3) .cr-card {
    animation-delay: 0.16s !important;
  }

  .cr-search-list-container .row > div:nth-child(4) .cr-card {
    animation-delay: 0.24s !important;
  }

  .cr-search-list-container .row > div:nth-child(5) .cr-card {
    animation-delay: 0.32s !important;
  }

  .cr-search-list-container .row > div:nth-child(6) .cr-card {
    animation-delay: 0.4s !important;
  }

  .row > div:nth-child(3n + 1) .cr-card-skeleton,
  .row > div:nth-child(3n + 2) .cr-card-skeleton,
  .row > div:nth-child(3n + 3) .cr-card-skeleton {
    animation: iosSpringCenterReverseMobile 1.1s
      cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
  }

  .row > div:nth-child(1) .cr-card-skeleton {
    animation-delay: 0.4s !important;
  }

  .row > div:nth-child(2) .cr-card-skeleton {
    animation-delay: 0.32s !important;
  }

  .row > div:nth-child(3) .cr-card-skeleton {
    animation-delay: 0.24s !important;
  }

  .row > div:nth-child(4) .cr-card-skeleton {
    animation-delay: 0.16s !important;
  }

  .row > div:nth-child(5) .cr-card-skeleton {
    animation-delay: 0.08s !important;
  }

  .row > div:nth-child(6) .cr-card-skeleton {
    animation-delay: 0s !important;
  }
}

@media (max-width: 991px) {
  .cr-search-courses-area {
    flex-direction: column;
  }

  .cr-filters-sidebar-wapper {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .cr-courses-container {
    padding: 80px 12px 0;
  }

  .cr-search-courses-area {
    padding: 20px 0 40px;
    gap: 20px;
  }

  .cr-filter-section {
    flex-wrap: wrap;
  }

  .cr-filter-sidebar {
    padding: 16px;
  }

  .cr-results-count {
    font-size: 1.25rem;
  }

  .cr-card {
    margin-bottom: 16px;
  }
}

@media (max-width: 575px) {
  .cr-courses-container {
    padding: 80px 12px 0;
  }

  .cr-course-card {
    padding: 14px;
  }

  .cr-course-title a {
    font-size: 0.9375rem;
  }

  .cr-price-amount {
    font-size: 1.125rem;
  }
}

[dir="rtl"] .am-searchinput_icon {
  right: auto;
  left: 14px;
}

[dir="rtl"] .am-searchinput input {
  padding: 0 14px 0 40px;
}

[dir="rtl"] .cr-option-count {
  margin-left: 0;
  margin-right: auto;
}

/* =============================================
   Category Cards - Browse Sections Page
   ============================================= */

.cr-categories-page {
  padding: 30px 0 60px;
}

.cr-categories-header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease-out both;
}

.cr-categories-title {
  font: 800 2.5rem/1.4 "Readex Pro", sans-serif;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  padding-bottom: 6px;
}

.cr-categories-subtitle {
  font: 400 1.125rem/1.6 "Readex Pro", sans-serif;
  color: var(--text-gray);
  margin: 0;
}

/* Category Grid */
.cr-categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 100%;
  margin: 0 auto;
}

.cr-categories-grid > .cr-category-card,
.cr-categories-grid > .cr-category-card-skeleton {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 280px;
}

/* Category Card */
.cr-category-card {
  position: relative;
  border-radius: 20px;
  padding: 36px 32px;
  cursor: pointer;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: categoryCardIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  border: 2px solid color-mix(in srgb, var(--gradient-from) 25%, transparent);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--gradient-from) 10%, transparent);
}

.cr-category-card:nth-child(1) { animation-delay: 0.05s; }
.cr-category-card:nth-child(2) { animation-delay: 0.12s; }
.cr-category-card:nth-child(3) { animation-delay: 0.19s; }
.cr-category-card:nth-child(4) { animation-delay: 0.26s; }
.cr-category-card:nth-child(5) { animation-delay: 0.33s; }

@keyframes categoryCardIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Card Background */
.cr-category-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--gradient-from), var(--gradient-to));
  opacity: 0.12;
  transition: opacity 0.4s ease;
  border-radius: 20px;
  z-index: 0;
}

.cr-category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.85)
  );
  z-index: 0;
  transition: all 0.4s ease;
}

.cr-category-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: color-mix(in srgb, var(--gradient-from) 60%, transparent);
  box-shadow: 
    0 20px 40px -10px color-mix(in srgb, var(--gradient-from) 18%, transparent),
    0 8px 20px -5px color-mix(in srgb, var(--gradient-from) 12%, transparent);
}

.cr-category-card:hover .cr-category-card-bg {
  opacity: 0.22;
}

.cr-category-card:hover::before {
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.90),
    rgba(255, 255, 255, 0.75)
  );
}

.cr-category-card:hover .cr-category-icon-wrapper {
  transform: scale(1.15) rotate(-5deg);
}

.cr-category-card:hover .cr-category-arrow {
  opacity: 1;
  width: 24px;
  margin-inline-end: 2px;
}

.cr-category-card:hover .cr-category-name {
  color: var(--gradient-from);
}

/* Card Content */
.cr-category-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.cr-category-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--gradient-from), var(--gradient-to));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15);
}

.cr-category-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cr-category-svg-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cr-category-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.cr-category-name {
  font: 700 1.5rem/1.4 "Readex Pro", sans-serif;
  color: var(--text-dark);
  margin: 0;
  transition: color 0.3s ease;
}

.cr-category-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cr-category-course-count {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font: 500 0.9375rem/1.4 "Readex Pro", sans-serif;
  color: var(--text-gray);
  background: rgba(0, 0, 0, 0.04);
  padding: 5px 16px;
  border-radius: 20px;
}

.cr-category-arrow {
  display: flex;
  align-items: center;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--gradient-from);
  flex-shrink: 0;
}

.cr-category-arrow svg {
  flex-shrink: 0;
}

/* Decorative Circles */
.cr-category-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
}

.cr-category-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gradient-from), var(--gradient-to));
  opacity: 0.06;
  transition: all 0.6s ease;
}

.cr-circle-1 {
  width: 120px;
  height: 120px;
  top: -40px;
  right: -30px;
}

.cr-circle-2 {
  width: 80px;
  height: 80px;
  bottom: -20px;
  left: -20px;
}

.cr-circle-3 {
  width: 50px;
  height: 50px;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
}

.cr-category-card:hover .cr-circle-1 {
  opacity: 0.12;
  transform: scale(1.2);
}

.cr-category-card:hover .cr-circle-2 {
  opacity: 0.10;
  transform: scale(1.15);
}

.cr-category-card:hover .cr-circle-3 {
  opacity: 0.08;
  transform: translate(-50%, -50%) scale(1.3);
}

/* Skeleton Loading for Categories */
.cr-category-card-skeleton {
  border-radius: 20px;
  background: var(--white);
  border: 2px solid var(--border-color);
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.cr-skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 600px;
  animation: shimmer 1.5s infinite linear;
}

/* =============================================
   Category Courses Page (after selecting)
   ============================================= */

.cr-category-courses-page {
  padding: 20px 0 60px;
}

/* Breadcrumb / Back Navigation */
.cr-gradient-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--radius-lg);
  animation: scaleIn 0.5s ease-out both;
}

.cr-gradient-bar-clickable {
  cursor: pointer;
  transition: all 0.25s ease;
}

.cr-gradient-bar-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.cr-gradient-bar-back {
  font: 700 1.125rem/1.4 "Readex Pro", sans-serif;
  color: var(--white);
  margin-left: 4px;
}

.cr-gradient-bar-arrow {
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.cr-gradient-bar-clickable:hover .cr-gradient-bar-arrow {
  transform: translateX(3px);
}

.cr-gradient-bar-text {
  font: 700 1.125rem/1.4 "Readex Pro", sans-serif;
  color: var(--white);
}

.cr-gradient-bar-count {
  font: 500 0.9375rem/1.4 "Readex Pro", sans-serif;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 14px;
  border-radius: 20px;
}

/* Back to Categories button in empty state */
.cr-back-to-categories-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font: 600 1rem/1.4 "Readex Pro", sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.cr-back-to-categories-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

/* =============================================
   Responsive - Categories
   ============================================= */

@media (max-width: 991px) {
  .cr-categories-grid {
    gap: 20px;
  }

  .cr-categories-grid > .cr-category-card,
  .cr-categories-grid > .cr-category-card-skeleton {
    flex: 0 1 calc(50% - 10px);
    min-width: 260px;
  }

  .cr-categories-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .cr-categories-page {
    padding: 20px 0 40px;
  }

  .cr-categories-header {
    margin-bottom: 32px;
  }

  .cr-categories-title {
    font-size: 1.75rem;
  }

  .cr-categories-subtitle {
    font-size: 1rem;
  }

  .cr-categories-grid {
    gap: 22px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4px;
  }

  .cr-categories-grid > .cr-category-card,
  .cr-categories-grid > .cr-category-card-skeleton {
    flex: 0 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .cr-category-card {
    min-height: 160px;
    padding: 24px 20px;
  }

  .cr-category-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .cr-category-icon {
    font-size: 1.75rem;
  }

  .cr-category-name {
    font-size: 1.125rem;
  }

  .cr-gradient-bar {
    padding: 12px 16px;
    gap: 8px;
  }

  .cr-gradient-bar-text {
    font-size: 1rem;
  }

  .cr-category-courses-page {
    padding: 15px 0 40px;
  }
}

@media (max-width: 575px) {
  .cr-categories-grid {
    max-width: 100%;
    gap: 20px;
    padding: 0 2px;
  }

  .cr-categories-grid > .cr-category-card,
  .cr-categories-grid > .cr-category-card-skeleton {
    max-width: 100%;
  }

  .cr-category-card {
    min-height: 140px;
    padding: 20px 16px;
  }

  .cr-category-name {
    font-size: 1.25rem;
  }
}
