@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url("https://cdn.jsdelivr.net/npm/@xz/fonts@1/serve/metropolis.min.css");
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    /* ========== Background Colors ========== */
    --background-color-primary: rgba(238, 242, 247, 1);
    --background-color-primary-soft: rgba(227, 238, 255, 1);
    --background-color-secondary: rgba(226, 232, 240, 1);
    --background-color-tertiary: rgba(71, 85, 105, 1);
    --background-color-quaternary: rgba(51, 59, 69, 1);
    --background-color-blue: rgba(0, 51, 132, 1);
    --background-color-white: rgba(246, 248, 251, 1);
    --background-color-black: #000000;

    /* ========== Border Colors ========== */
    --border-color-primary: rgba(183, 214, 255, 1);
    --border-color-secondary: rgba(203, 213, 225, 1);
    --border-color-tertiary: rgba(47, 102, 184, 1);
    --border-color-quaternary: rgba(95, 149, 220, 1);
    --border-color-warning: rgba(253, 186, 116, 1);
    --border-color-danger: rgba(248, 113, 113, 1);
    --border-color-error: rgba(155, 44, 44, 1);
    --border-color-muted: rgba(229, 231, 235, 1);

    /* ========== Font Colors ========== */
    --text-primary-color: rgba(30, 41, 59, 1);
    --text-secondary-color: rgba(71, 85, 105, 1);
    --text-tertiary-color: rgba(59, 130, 246, 1);
    --text-quaternary-color: rgba(55, 65, 81, 1);
    --text-primary-white: rgba(246, 248, 251, 1);
    --text-primary-black: rgba(16, 16, 16, 1);
    --text-color-disabled: rgba(148, 163, 184, 1);
    --text-color-error: rgba(155, 44, 44, 1);

    /* ========== Font Sizes ========== */
    --text-size-xxs: 14px;
    --text-size-xs: 16px;
    --text-size-sm: 20px;
    --text-size-md: 28px;
    --text-size-lg: 40px;
    --text-size-xl: 60px;

     /* ========== Padding Sizes ========== */
    --padding-xl: 128px;
    --padding-lg: 100px;
    --padding-md: 80px;
    --padding-sm: 40px;
    --padding-xs: 20px;

    /* ========== Font Wieghts ========== */
    --text-weight-light: 400;
    --text-weight-regular: 400;
    --text-weight-bold: 700;
    --text-weight-bold: 700;

    /* ========== Font Family ========== */
    --text-primary-family: Tahoma, Geneva, Verdana, sans-serif;
    --text-secondary-family: 'Inter', sans-serif;
    --text-tertiary-family: Arial, Helvetica, sans-serif;

    /* ========== Radius ========== */
    --btn-radius: 4px;
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-xxl: 20px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color-primary);
    font-family: var(--text-primary-family) !important;
}

.page-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50vh;
}

.page-loading .spinner-border {
    color: var(--text-secondary-color);
    width: 3.5rem;
    height: 3.5rem;
}

.card {
    border-top: 1px solid var(--border-color-secondary);
    border-radius: var(--radius-xl);
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    padding: 24px;
    background-color: white;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    padding: 20px;
    aspect-ratio: 1 !important;
    max-width: fit-content;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.original-price {
  text-decoration: line-through;
  color: gray;
  margin-right: 8px;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Prices with a leading "$" (or other currency symbol) reorder incorrectly
   in RTL (Arabic/Urdu) contexts without this -- the symbol and digits are
   both "neutral"/"weak" per the Unicode bidi algorithm and get pulled into
   the surrounding paragraph direction unless explicitly isolated as LTR. */
.course-price,
.price-amount,
.plan-price,
[data-summary],
[data-form="total"] {
  direction: ltr;
  unicode-bidi: isolate;
}

.hidden {
    display: none !important;
}

/* ============
 * Scroll Bar
 * ============
 */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(183, 214, 255, 1);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(160, 200, 255, 1);
}

/* ============
 * Buttons
 * ============
 */

 /* Primary */
.btn.btn-primary {
    background-color: var(--background-color-blue);
    border: none;
}

.btn.btn-primary a {
    color: var(--text-primary-white);
}

.btn.btn-primary:hover {
    background-color: var(--background-color-blue);
}

.btn-primary:active {
    background-color: var(--background-color-blue) !important;
}

 /* Outline Primary */
.btn.btn-outline-primary {
    border: 1px solid var(--background-color-blue);
    color: var(--background-color-blue) !important;
    background-color: transparent;
}

.btn.btn-outline-primary svg {
    fill: var(--background-color-blue);
}

.btn-outline-primary a {
    color: var(--text-primary-black);
}

.btn.btn-outline-primary:hover {
    border: 1px solid var(--background-color-blue);
    background-color: var(--background-color-blue);
    color: var(--text-primary-white) !important;
    fill: var(--text-primary-white) !important;
}

.btn-outline-primary:hover a {
    color: var(--text-primary-white);
}

.btn.btn-outline-primary:hover svg {
    fill: var(--text-primary-white);
}

.btn-outline-primary:active {
    border: 1px solid var(--background-color-blue);
    background-color: var(--background-color-blue);
    color: var(--text-primary-white);
    fill: var(--text-primary-white);
}

/* Outline Secondary */
.btn-outline-secondary {
    border: 1px solid var(--border-color-secondary) !important;
    background-color: transparent !important;
    fill: var(--background-color-blue);
    color: var(--background-color-blue);
}

.btn.btn-outline-primary.disabled {
    border: 1px solid var(--border-color-secondary);
    fill: var(--border-color-secondary);
    color: var(--border-color-secondary);
}

.btn.btn-outline-primary.disabled:hover {
    background-color: var(--border-color-secondary) !important;
    color: var(--text-primary-white) !important;
    fill: var(--text-primary-white) !important;
}

/* General */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--text-primary-family);
    color: var(--background-color-white);
    fill: var(--background-color-white);
    font-weight: var(--text-weight-regular);
    font-size: var(--text-size-xs);
    border-radius: var(--radius-sm);
}

.btn.disabled:hover {
    cursor: not-allowed;
}

.btn-nan {
    border: none;
    background-color: transparent;
}

.btn a {
    text-decoration: none;
}

.btn-xs {
    padding: 7px 12px;
}

.btn-sm {
    padding: 7px 24px;
}

.btn-md {
    padding: 16px 24px;
}

.btn-lg {
    padding: 16px 100px;
}

[dir="rtl"] .btn-close {
    margin-left: 0 !important;
    margin-right: auto;
}

.tag {
    color: var(--text-tertiary-color);
    background-color: rgba(227, 238, 255, 1);
    border-radius: var(--radius-xl);
    padding: 2px 8px;
}

/* ============
 * Links
 * ============
 */

.action {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    text-decoration: none;
    height: 24px;
}

.action-text {
    font-family: var(--text-primary-family);
    color: var(--background-color-blue);
    font-weight: var(--text-weight-regular);
    font-size: var(--text-size-xs);
    line-height: 150%;
}

.action-icon {
    fill: var(--background-color-blue);
}

/* ============
 * Text
 * ============
 */

.title {
    font-family: var(--text-primary-family);
    font-weight: var(--text-weight-bold);
    font-size: var(--text-size-md);
    margin: 0;
}

.text {
    font-family: var(--text-secondary-family);
    color: var(--text-secondary-color);
    font-weight: var(--text-weight-regular);
    font-size: var(--text-size-xs);
    margin: 0;
}

/* ============
 * Input
 * ============
 */

.input-error {
    border: 1px solid var(--border-error, rgba(155, 44, 44, 1)) !important;
    color: var(--text-color-error) !important;
}


.form-label {
    font-weight: var(--text-weight-regular);
    font-size: var(--text-size-xs);
    color: rgba(102, 102, 102, 1);
}

.form-control,
.form-select {
    height: 56px;
    background-color: transparent;
    border: 1px solid rgba(102, 102, 102, 0.35);
    border-radius: var(--radius-lg);
}

.form-control:focus,
.form-select:focus {
    background-color: transparent;
    box-shadow: none;
    border: 1px solid rgba(102, 102, 102, .5);
}

.navbar .form-select {
    color: var(--background-color-blue);
    border: 1px solid var(--border-color-secondary);
    border-radius: var(--radius-sm);
    width: fit-content;
    height: 40px;
}

.navbar .form-select:focus {
    border: 1px solid var(--border-color-secondary);
    box-shadow: unset;
}


/* ============
 * Video
 * ============
 */

video:hover {
    cursor: pointer;
}

/* ============
 * Cards Collection Section
 * ============
 */

.collection {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: var(--padding-lg) var(--padding-md);
}

.collection-header {
    display: flex;
}

.collection-heading {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collection-title {
    font-weight: var(--text-weight-bold);
    font-size: var(--text-size-md);
    line-height: 130%;
}

.collection-description {
    line-height: 130%;
}

.collection-filters {
    display: flex;
    gap: 8px;
    list-style-type: none;
    padding: 0;
}

.collection-body {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 20px;
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.collection-body.slider {
    display: flex;
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.collection-body.slider::-webkit-scrollbar {
    display: none;
}

.collection-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ============
 * Product Card
 * ============
 */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px;
    border: 1px solid var(--border-color-primary);
    border-radius: var(--radius-xl);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.25);
    width: calc((100vw - 160px - 60px - 12px) / 4); /* 12px scrollbar width */
    min-width: calc((100vw - 160px - 60px - 12px) / 4); /* 12px scrollbar width */
}

/* Makes the entire card clickable, not just the small action link/text;
   inner links (e.g. the action link) stay above it so they keep working
   and remain individually focusable/readable for accessibility. */
.product-card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.product-card-image__wrapper,
.product-card-content,
.product-card-meta,
.product-card-link.action {
    position: relative;
    z-index: 2;
}

.product-card-status-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: var(--text-size-xxs);
    font-weight: var(--text-weight-medium);
    color: var(--text-secondary-color);
    background-color: var(--background-color-grey, rgba(0, 0, 0, 0.05));
    border-radius: var(--radius-md);
    padding: 4px 10px;
}

.product-card-image__wrapper {
    position: relative;
}

.product-card-discount {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 4px;
    font-size: var(--text-size-xxs);
    color: var(--text-primary-white);
    background-color: var(--background-color-blue);
    border-bottom-right-radius: var(--radius-md);
    padding: 12px 9px;
}

.product-card-image {
    width: 100%;
    height: 212px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.product-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card-title {
    font-family: var(--text-primary-family);
    color: var(--text-primary-color);
    font-weight: var(--text-weight-bold);
    font-size: var(--text-size-sm);
    line-height: 150%;
}

.product-card-description {
    font-size: var(--text-size-xxs);
    line-height: 180%;
}

.product-card-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary-color);
    font-weight: var(--text-weight-regular);
    font-size: var(--text-size-xxs);
    line-height: 130%;
}

.progress-bar {
    position: relative;
    height: 14px;
    background-color: var(--background-color-white) !important;
    border-radius: var(--radius-md);
}

.progress-bar-fill {
    position: absolute;
    height: 14px;
    background-color: var(--border-color-quaternary) !important;
}

.progress-bar-fill.warning {
    background-color: var(--border-color-warning) !important;
}

.progress-bar-fill.danger {
    background-color: var(--border-color-danger) !important;
}

.collection-body.slider .product-card {
    width:  calc(25vw - 40px - 60px / 4);
}

.product-card-meta {
    border-top: 1px solid rgba(203, 213, 225, 1);
    padding-top: 8px;
}

.product-card-created-at {
    color: rgba(148, 163, 184, 1);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    
}

.tags .tag {
    color: black;
    text-wrap: nowrap;
}

/* ============
 * Filter Section
 * ============
 */

.filter-section {
    display: flex;
    gap: 20px;
    padding: 60px 80px;
    padding-bottom: 0;
}

/* Filters */
#filtersSidebar {
    flex: .246;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-form {
    
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-list {
    display: flex;
    flex-direction: column;
}

.filter-item {
    border-top: 1px solid var(--border-color-secondary);
}

.filter-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.filter-form-title {
    font-size: var(--text-size-xxs);
    font-weight: var(--text-weight-bold);
    color: var(--text-secondary-color);
    margin: 0;
}

.filter-form-clear {
    font-size: var(--text-size-xxs);
}

.filter-form-count {
    font-size: var(--text-size-xxs);
    line-height: 150%;
}

.filter-tabs {
    list-style-type: none;
    padding: 0;
}

.filter-tab {
    padding: 8px 12px;
    border-radius: var(--radius-lg);
}

.filter-tab-active,
.filter-tab:hover {
    background-color: var(--background-color-blue);
    color: var(--text-primary-white);
    cursor: pointer;
}

.filter-item-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.filter-item-header {
    padding: 20px 0;
    margin: 0;
}

.filter-item-label {
    font-size: var(--text-size-xs);
}

.filter-item-body {
    padding-bottom: 20px;
}

/* Filter Products */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.grid-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#gridSection {
    flex: 1.076;
}

#productsSection {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.results-title {
    font-size: var(--text-size-xs);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.results-grid .product-card {
    width: 100%;
    max-width: unset;
}

/* Pagination */
.pagination  {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link,
.pagination-link:focus {
    font-family: 'Inter';
    border: 1px solid var(--border-color-secondary);
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary-black);
    background-color: transparent;
    box-shadow: none;
}

.pagination-link svg {
    fill: var(--text-primary-black);
}

.active .pagination-link,
.pagination-link:hover {
    border: 1px solid var(--background-color-blue);
    background-color: var(--background-color-blue);
    color: var(--text-primary-white);
}

.pagination-link__nav,
.pagination-link__nav:focus {
    border: 1px solid var(--background-color-blue);
}

/* Lighter Blue (< Back, Next >)
.pagination-link__nav:hover {
    border: 1px solid var(--background-color-blue);
    background-color: var(--background-color-blue);
    color: var(--text-primary-white);
}
*/

.pagination-link__nav:hover svg {
    fill: var(--text-primary-white);
}

.disabled .pagination-link {
    color: var(--text-color-disabled);
    background-color: rgba(226, 232, 240, 1);
    border-radius: var(--radius-sm);
    border: 1px solid var(--text-color-disabled);
}

.disabled .pagination-link svg {
    fill: var(--text-color-disabled);
}

/* ============
 * CTA Section
 * ============
 */

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 32px;
    background-color: var(--background-color-tertiary);
    padding: 112px 80px;
}

.cta-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cta-section .cta-title {
    color: var(--text-primary-white);
    font-size: var(--text-size-lg);
    line-height: 120%;
}

.cta-section .cta-description {
    color: var(--text-primary-white);
    line-height: 150%;
}

.cta-button {
    height: 56px;
    width: 178px;
}


/* ============
 * Key points list
 * ============
 */

.keypoints-list {
    display: flex;
    gap: 20px;
}

.keypoint-item {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px !important;
}

.keypoint-icon.icon-wrapper {
    padding: 12px;
}

.keypoint-title.title {
    font-size: var(--text-size-xs);
}

.keypoint-description.text {
    font-size: var(--text-size-xxs);
}

/* ============
 * Star rating
 * ============
 */

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
    gap: 8px
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: transparent;
    -webkit-text-stroke: 2.67px rgba(209, 213, 220, 1);
    cursor: pointer;
    font-size: 32px;
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f7b731;
    -webkit-text-stroke: 2.67px #f7b731;
}

.overall-rating .star-rating label {
    -webkit-text-stroke: 4px rgba(209, 213, 220, 1);
    font-size: 42px;
}

.overall-rating .star-rating label:hover,
.overall-rating .star-rating label:hover ~ label,
.overall-rating .star-rating input:checked ~ label {
    -webkit-text-stroke: 4px #f7b731;
}

/* ============
 * Review
 * ============
 */

.rating-section,
.detailed-rating-items,
.rating-item, 
.feedback-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-section,
.feedback-textareas {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detailed-ratings,
.user-feedback {
    padding-top: 16px;
    border-top: 1px solid rgba(229, 231, 235, 1);
}

.feedback-textarea.form-control,
.feedback-textarea.form-control:focus {
    background-color: rgba(248, 249, 251, 1);
    border: 1px solid rgba(229, 231, 235, 1);
    height: 100px ;
    margin-bottom: 6px;
    resize: none;
    font-size: 14px;
}

.rating-title {
    font-family: var(--text-secondary-family);
    font-size: 20px;
}

.rating-subtitle,
.feedback-title {
    font-family: var(--text-secondary-family);
    font-size: 16px;
}

.rating-label,
.feedback-label {
    font-size: 14px;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.form-note {
    font-family: var(--text-tertiary-family);
    font-size: 12px;
}

/**/
.qas-form {
  flex: .83;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--background-color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-coloor-muted);
  box-shadow: 0px 2px 3px -1px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
  padding: 28px;
}

.qas-form-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qas-form-section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qas-form-section-title.title {
  font-size: var(--text-size-xs);
  line-height: 40px;
  padding: 12px 0;
}

.qas-form-field-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.qas-form-field {
  width: 100%;
}

.qas-form-actions {
  margin-left: auto;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.password-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(102, 102, 102, 0.8);
    border: none;
    background-color: transparent;
    padding-right: 9px;
}

.toggle-password-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-password-icon svg {
    width: 16px;
    height: 16px;
    fill: #666666;
    opacity: .8;
    transform: scaleX(-1);
}

.valid-feedback {
    font-family: var(--text-secondary-family);
    font-weight: var(--text-weight-regular);
    font-size: var(--text-size-xs);
    color: rgba(102, 102, 102, 1);
}

/* Mobile */
@media (max-width: 600px) {
  /* Mobile CSS */
    .collection {
        padding: var(--padding-lg) var(--padding-xs);
    }

    .collection-body {
        overflow-x: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .collection-body .product-card {
        min-width: 305px;
    }

    .results-grid  {
        grid-template-columns: repeat(1, 1fr);
    }

    .page-section {
        padding: var(--padding-xs);
    }
    
    .filter-section {
        flex-direction: column;
        gap: 20px;
        padding: var(--padding-xs)
    }

    #gridSection {
        flex: 1 1 100%;
        width: 100%;
    }

    .cta-section {
        padding: var(--padding-xs);
    }

    .keypoints-list {
        flex-direction: column;
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
  /* Tablet CSS */
    .collection-body {
        overflow-x: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .collection-body .product-card {
        min-width: 305px;
    }

    .results-grid  {
        grid-template-columns: repeat(2, 1fr);
    }

    .keypoints-list {
        flex-wrap: wrap;
    }

    .filter-section {
        flex-direction: column;
        gap: 20px;
    }

    #gridSection {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ============
 * Mobile / tablet filter toolbar + drawers (courses/blogs filter sidebar)
 * ============ */

.filter-mobile-toolbar {
    display: none;
}

.filters-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    .filter-mobile-toolbar {
        display: flex;
        gap: 12px;
    }

    .filter-toolbar-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 1;
        min-height: 44px;
        padding: 12px 16px;
        border: 1px solid var(--border-color-secondary);
        border-radius: var(--radius-md);
        background-color: var(--background-color-primary);
        font-family: var(--text-primary-family);
        font-size: var(--text-size-xs);
        color: var(--text-primary-color);
    }

    .filter-toolbar-btn:active {
        background-color: var(--background-color-secondary);
    }

    #filtersSidebar {
        flex: 0 0 auto;
    }

    .filters-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(360px, 88vw);
        background-color: var(--background-color-primary);
        z-index: 1600;
        overflow-y: auto;
        padding: 20px;
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    [dir="rtl"] .filters-drawer {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.12);
    }

    .filters-drawer.is-open {
        transform: translateX(0);
    }

    .filters-drawer-header {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-color-secondary);
    }

    .filters-drawer-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        border-radius: var(--radius-md);
        color: var(--text-primary-color);
    }

    .filters-drawer-close:active {
        background-color: var(--background-color-secondary);
    }

    .filters-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1500;
        background-color: rgba(15, 23, 42, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .filters-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    body.drawer-open {
        overflow: hidden;
    }
}

/* Desktop */
@media (min-width: 1025px) {
  /* Desktop CSS */
    .filters-drawer-header {
        display: none;
    }
}

[dir="rtl"] .btn svg,
[dir="rtl"] .action svg,
[dir="rtl"] .page-link svg {
    transform: scaleX(-1);
}

[dir="rtl"] .course-modal-close {
    margin-right: auto;
    margin-left: unset;
}
/* Forces LTR rendering for numeric/phone/date/code content embedded in RTL
   (Arabic/Urdu) pages -- prevents the Unicode bidi algorithm from reordering
   digit groups around neutral characters like "+", "-", "$", "%". */
.ltr-text {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Shared "nothing to show" state - reused by course detail, blog detail,
   the blogs listing, and the dashboard whenever there's genuinely nothing
   to render instead of silently leaving the page blank. */
.course-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 80px 20px;
}

.dashboard-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 120px 20px;
}
