/* ═══════════════════════════════════════════════════════════════════
   Training Portal — Frontend Widget Styles
   Theme: Doodle Elementor (Arial, #1c3867 primary)
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --tp-primary: #1c3867;
    --tp-primary-light: #576BB2;
    --tp-accent: #E8A020;
    --tp-text: #1A1A2E;
    --tp-text-muted: #64748B;
    --tp-bg: #FFFFFF;
    --tp-bg-alt: #F8FAFC;
    --tp-border: #E2E8F0;
    --tp-radius: 8px;
    --tp-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    --tp-transition: .25s ease;
}

/* ─── Filter Bar ─────────────────────────────────────────────────── */

.tp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: "Arial", sans-serif;
}

.tp-filter-bar select,
.tp-filter-bar input[type="text"] {
    flex: 1 1 180px;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    background-color: var(--tp-bg-alt);
    color: var(--tp-text);
    font-family: "Arial", sans-serif;
    font-size: 14px;
    transition: border-color var(--tp-transition), box-shadow var(--tp-transition);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.tp-filter-bar select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.tp-filter-bar select:focus,
.tp-filter-bar input[type="text"]:focus {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(28, 56, 103, 0.1);
}

.tp-filter-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    background-color: var(--tp-primary);
    color: #fff;
    border: none;
    border-radius: var(--tp-radius);
    cursor: pointer;
    font-family: "Arial", sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: background-color var(--tp-transition), transform var(--tp-transition);
    min-width: 150px;
}

.tp-filter-btn:hover {
    background-color: var(--tp-primary-light);
    transform: translateY(-1px);
}

.tp-filter-btn:active {
    transform: translateY(0);
}

.tp-filter-btn svg {
    flex-shrink: 0;
}

/* ─── Course Grid ────────────────────────────────────────────────── */

.tp-course-grid-wrap {
    position: relative;
}

.tp-course-grid {
    display: grid;
    grid-template-columns: repeat(var(--tp-cols, 3), 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .tp-course-grid {
        --tp-cols: 2;
    }
}

@media (max-width: 640px) {
    .tp-course-grid {
        --tp-cols: 1;
    }
}

/* ─── Course Card ────────────────────────────────────────────────── */

.tp-course-card {
    display: flex;
    flex-direction: column;
    background: var(--tp-bg);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow);
    overflow: hidden;
    transition: transform var(--tp-transition), box-shadow var(--tp-transition);
    font-family: "Arial", sans-serif;
}

.tp-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.tp-hover-scale:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.tp-course-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.tp-course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tp-transition);
}

.tp-course-card:hover .tp-course-card__image img {
    transform: scale(1.05);
}

.tp-badge-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.tp-course-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tp-course-card__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--tp-primary);
    margin-bottom: 4px;
}

.tp-course-card__ref {
    font-size: 11px;
    font-weight: 700;
    color: var(--tp-text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tp-course-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tp-text);
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.tp-course-card__title a {
    color: var(--tp-primary);
    text-decoration: none;
    transition: color var(--tp-transition);
}

.tp-course-card__title a:hover {
    color: var(--tp-primary-light);
}

.tp-course-card__duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tp-text-muted);
    margin-bottom: 12px;
}

.tp-course-card__duration svg {
    flex-shrink: 0;
    color: var(--tp-primary);
}

/* ─── Schedule Badges ────────────────────────────────────────────── */

.tp-schedule-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.tp-schedule-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--tp-text-muted);
    padding: 6px 10px;
    background: var(--tp-bg-alt);
    border-radius: 6px;
}

.tp-schedule-badge__date,
.tp-schedule-badge__loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tp-schedule-badge svg {
    flex-shrink: 0;
    color: var(--tp-primary);
}

.tp-schedule-more {
    font-size: 12px;
    color: var(--tp-primary);
    font-weight: 600;
    cursor: pointer;
}

/* ─── Buttons ────────────────────────────────────────────────────── */

.tp-course-card__actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-btn-register,
.tp-btn-inhouse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 12px;
    border-radius: var(--tp-radius);
    font-family: "Arial", sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--tp-transition), color var(--tp-transition), transform var(--tp-transition);
    border: none;
    line-height: 1.4;
}

.tp-btn-register {
    background: var(--tp-primary);
    color: #fff;
}

.tp-btn-register:hover {
    background: var(--tp-primary-light);
    color: #fff;
    transform: translateY(-1px);
}

.tp-btn-inhouse {
    background: transparent;
    color: var(--tp-primary);
    border: 2px solid var(--tp-primary);
}

.tp-btn-inhouse:hover {
    background: var(--tp-primary);
    color: #fff;
}

.tp-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.tp-btn-full {
    width: 100%;
}

/* ─── Register Button Widget ────────────────────────────────────── */

.tp-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--tp-primary);
    color: #fff;
    border: none;
    border-radius: var(--tp-radius);
    font-family: "Arial", sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--tp-transition), transform var(--tp-transition);
}

.tp-register-btn:hover {
    background: var(--tp-primary-light);
    color: #fff;
    transform: translateY(-1px);
}

.tp-register-btn svg {
    flex-shrink: 0;
}

/* ─── Virtual Badge ──────────────────────────────────────────────── */

.tp-virtual-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #EFF6FF;
    color: #1D4ED8;
    padding: 3px 8px;
    border-radius: 20px;
}

/* ─── Category Sidebar ───────────────────────────────────────────── */

.tp-category-sidebar {
    font-family: "Arial", sans-serif;
}

.tp-category-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: var(--tp-radius);
    transition: background-color var(--tp-transition);
    user-select: none;
}

.tp-cat-item:hover {
    background: var(--tp-bg-alt);
}

.tp-cat-item.active {
    background: var(--tp-primary);
    color: #fff;
}

.tp-cat-item.active .tp-cat-name {
    color: #fff;
}

.tp-cat-item.active .tp-cat-code {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.tp-cat-item.active .tp-cat-count {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.tp-cat-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-cat-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tp-cat-code {
    font-size: 11px;
    font-weight: 700;
    background: var(--tp-bg-alt);
    color: var(--tp-primary);
    padding: 2px 7px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

.tp-cat-name {
    font-size: 13px;
    flex: 1;
    color: var(--tp-text);
}

.tp-cat-count {
    font-size: 11px;
    font-weight: 600;
    background: var(--tp-bg-alt);
    color: var(--tp-text-muted);
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* ─── Course Hero ────────────────────────────────────────────────── */

.tp-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: var(--tp-primary);
    overflow: hidden;
}

.tp-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 56, 103, 0.85);
    z-index: 1;
}

.tp-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    color: #fff;
}

.tp-hero__breadcrumb {
    font-size: 13px;
    margin-bottom: 16px;
    opacity: .8;
}

.tp-hero__breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity var(--tp-transition);
}

.tp-hero__breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.tp-sep {
    margin: 0 8px;
    opacity: .5;
}

.tp-hero__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px 0;
    font-family: "Arial", sans-serif;
}

.tp-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.tp-hero__next-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    opacity: .9;
}

.tp-hero__locations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tp-hero__pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    color: var(--tp-primary);
    border-radius: var(--tp-radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color var(--tp-transition), transform var(--tp-transition);
}

.tp-hero__pdf-btn:hover {
    background: #f0f4f8;
    transform: translateY(-1px);
}

/* ─── Schedule Table (Div Based) ─────────────────────────────────── */

.tp-schedule-grid-wrap {
    width: 100%;
    overflow: hidden;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    border-radius: var(--tp-radius);
    border: 1px solid var(--tp-border);
}

.tp-schedule-grid-header {
    display: flex;
    background: var(--tp-primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.tp-schedule-grid-th {
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
    flex: 1;
}

.tp-schedule-grid-row {
    display: flex;
    border-top: 1px solid var(--tp-border);
    transition: background-color var(--tp-transition);
}

.tp-schedule-grid-row:nth-child(even) {
    background: var(--tp-bg-alt);
}

.tp-schedule-grid-row:hover {
    background: rgba(28, 56, 103, 0.04);
}

.tp-schedule-grid-td {
    padding: 12px 16px;
    color: var(--tp-text);
    display: flex;
    align-items: center;
    flex: 1;
    word-break: break-word;
}

/* Adjust column widths for specific columns if desired */
.tp-schedule-grid-th.col-ref,
.tp-schedule-grid-td.col-ref {
    flex: 0.8;
}

.tp-schedule-grid-th.col-name,
.tp-schedule-grid-td.col-name {
    flex: 2;
}

.tp-schedule-grid-th.col-date,
.tp-schedule-grid-td.col-date {
    flex: 1.2;
}

.tp-schedule-grid-th.col-days,
.tp-schedule-grid-td.col-days {
    flex: 0.6;
    text-align: center;
    justify-content: center;
}

.tp-schedule-grid-th.col-action,
.tp-schedule-grid-td.col-action {
    flex: 1.5;
    justify-content: center;
}

.tp-schedule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

@media (max-width: 1024px) {
    .tp-schedule-grid-header {
        display: none;
    }

    .tp-schedule-grid-row {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .tp-schedule-grid-td {
        padding: 0;
        width: 100%;
        align-items: flex-start;
    }

    .tp-schedule-grid-td::before {
        content: attr(data-label);
        font-weight: 600;
        min-width: 120px;
        color: var(--tp-primary);
        display: inline-block;
        padding-right: 12px;
    }

    .tp-schedule-actions {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .tp-schedule-grid-td.col-days,
    .tp-schedule-grid-td.col-action {
        justify-content: flex-start;
    }
}

/* ─── Schedule Cards ─────────────────────────────────────────────── */

.tp-schedule-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tp-schedule-card {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    transition: box-shadow var(--tp-transition);
}

.tp-schedule-card:hover {
    box-shadow: var(--tp-shadow);
}

.tp-schedule-card__dates,
.tp-schedule-card__location,
.tp-schedule-card__duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--tp-text);
}

.tp-schedule-card__dates svg,
.tp-schedule-card__location svg,
.tp-schedule-card__duration svg {
    color: var(--tp-primary);
    flex-shrink: 0;
}

.tp-schedule-card__action {
    margin-left: auto;
}

/* ─── Schedule List ──────────────────────────────────────────────── */

.tp-schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-schedule-list-item {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tp-border);
    font-size: 14px;
}

.tp-schedule-list__date {
    font-weight: 600;
    color: var(--tp-text);
}

.tp-schedule-list__location {
    color: var(--tp-text-muted);
}

/* ─── Schedule Empty ─────────────────────────────────────────────── */

.tp-schedule-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--tp-text-muted);
    background: var(--tp-bg-alt);
    border-radius: var(--tp-radius);
}

/* ─── Registration Template ──────────────────────────────────────── */

.tp-registration-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.tp-registration-summary {
    background: var(--tp-bg-alt);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.tp-registration-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tp-primary);
    margin: 0 0 16px 0;
}

.tp-registration-info {
    width: 100%;
    border-collapse: collapse;
}

.tp-registration-info th {
    text-align: left;
    padding: 8px 16px 8px 0;
    color: var(--tp-text-muted);
    font-weight: 600;
    font-size: 13px;
    width: 120px;
    white-space: nowrap;
}

.tp-registration-info td {
    padding: 8px 0;
    color: var(--tp-text);
    font-size: 14px;
}

/* ─── No Results ─────────────────────────────────────────────────── */

.tp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--tp-text-muted);
}

.tp-no-results p {
    font-size: 16px;
    margin: 0;
}

/* ─── Loading Overlay ────────────────────────────────────────────── */

.tp-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--tp-radius);
}

.tp-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--tp-border);
    border-top-color: var(--tp-primary);
    border-radius: 50%;
    animation: tp-spin .7s linear infinite;
}

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

/* ─── Load More ──────────────────────────────────────────────────── */

.tp-load-more-wrap {
    text-align: center;
    margin-top: 32px;
}

.tp-btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: transparent;
    color: var(--tp-primary);
    border: 2px solid var(--tp-primary);
    border-radius: var(--tp-radius);
    font-family: "Arial", sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--tp-transition);
}

.tp-btn-load-more:hover {
    background: var(--tp-primary);
    color: #fff;
}

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .tp-filter-bar {
        flex-direction: column;
    }

    .tp-filter-bar select,
    .tp-filter-bar input[type="text"],
    .tp-filter-btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .tp-hero__title {
        font-size: 24px;
    }

    .tp-hero__content {
        padding: 40px 20px;
    }

    .tp-schedule-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .tp-schedule-card__action {
        margin-left: 0;
        width: 100%;
    }

    .tp-schedule-card__action .tp-btn-register {
        width: 100%;
    }
}

/* ─── Registration Form Enhancements ────────────────────────────── */

.tp-prefilled {
    background-color: #f0f7ff !important;
    border-color: #bcd9ff !important;
}

.tp-schedule-select {
    width: 100%;
    margin-bottom: 15px;
}

.tp-form-notice {
    padding: 10px;
    background: #fff4e5;
    border-left: 4px solid #ffa117;
    font-size: 13px;
    margin-bottom: 15px;
}

/* ─── Category Grid Scroll ────────────────────────────────────── */

.tp-category-grid-scroll-wrap {
    position: relative;
    padding: 0 10px;
}

.tp-category-grid-scroll-wrap .swiper-container,
.tp-category-grid-scroll-wrap .swiper {
    padding: 10px 0 40px;
    overflow: hidden;
}

.tp-category-grid-scroll-wrap .swiper-button-next,
.tp-category-grid-scroll-wrap .swiper-button-prev {
    top: 40%;
    background: var(--tp-primary);
    color: #fff;
}

.tp-category-grid-scroll-wrap .swiper-button-next::after,
.tp-category-grid-scroll-wrap .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* ─── Category List ───────────────────────────────────────────── */

.tp-category-list-wrap {
    /* Variable inherited from {{WRAPPER}} */
}

.tp-category-list {
    display: grid;
    grid-template-columns: repeat(var(--tp-list-cols, 1), 1fr);
    gap: 30px;
}

.tp-category-list-item {
    position: relative;
    height: 100%;
}

.tp-category-list-item-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px dashed #E2E8F0;
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.tp-category-list-item-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 56, 103, 0.02) 0%, rgba(28, 56, 103, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tp-category-list-item-link:hover {
    border-style: solid;
    border-color: var(--tp-primary);
    box-shadow: 0 15px 30px rgba(28, 56, 103, 0.08);
    transform: translateY(-5px);
}

.tp-category-list-item-link:hover::before {
    opacity: 1;
}

.tp-category-list-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    border-radius: 50%;
    transition: all 0.4s ease;
    z-index: 1;
}

.tp-category-list-item-link:hover .tp-category-list-icon {
    background: var(--tp-primary);
    color: #fff;
    transform: scale(1.1);
}

.tp-category-list-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.tp-category-list-item-link:hover .tp-category-list-icon img {
    filter: brightness(0) invert(1);
}

.tp-category-list-content {
    flex: 1;
    z-index: 1;
}

.tp-category-list-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.tp-category-list-count-badge {
    display: inline-flex;
    align-items: center;
    background: #F1F5F9;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tp-category-list-item-link:hover .tp-category-list-count-badge {
    background: rgba(28, 56, 103, 0.05);
}

.tp-category-list-count {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Overrides for Category List */
@media (max-width: 1024px) {
    .tp-category-list {
        grid-template-columns: repeat(var(--tp-list-cols, 2), 1fr);
    }
}

@media (max-width: 768px) {
    .tp-category-list {
        grid-template-columns: repeat(var(--tp-list-cols, 1), 1fr);
    }
}

/* ─── Course Grid Scroll ────────────────────────────────────── */

.tp-course-grid-scroll-wrap {
    position: relative;
}

.tp-course-grid-scroll-wrap .swiper-container,
.tp-course-grid-scroll-wrap .swiper {
    padding: 10px 5px 50px;
    overflow: hidden;
}

.tp-course-grid-scroll-wrap .swiper-button-next,
.tp-course-grid-scroll-wrap .swiper-button-prev {
    top: 40%;
    background: var(--tp-primary);
    color: #fff;
}

.tp-course-grid-scroll-wrap .swiper-pagination-bullet-active {
    background: var(--tp-primary);
}