/* Training View (Catalog) - Courses / Certifications tabs, Grid / List layouts */

.tv-catalog {
    --tv-text: #111827;
    --tv-muted: #6b7280;
    --tv-subtle: #9ca3af;
    --tv-border: #e5e7eb;
    --tv-surface: #ffffff;
    --tv-surface-alt: #f3f4f6;
    --tv-primary: #1d64f2;
    --tv-primary-soft: #eaf1ff;
    --tv-rating: #f08c00;
    font-family: "Montserrat-Regular", Arial, sans-serif;
    color: var(--tv-text);
    padding-top: 28px;
    padding-bottom: 32px;
}

.tv-catalog button,
.tv-catalog input {
    font-family: "Montserrat-Regular", Arial, sans-serif !important;
}

.tv-catalog svg {
    flex-shrink: 0;
}

/* ---------- Header ---------- */
.tv-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.tv-title {
    font-family: "Montserrat-Bold", Arial, sans-serif !important;
    font-size: 26px;
    line-height: 1.2;
    color: var(--tv-text);
    margin: 0 0 8px;
}

.tv-subtitle {
    font-size: 15px;
    color: var(--tv-muted);
    margin: 0;
}

.tv-type-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    background: var(--tv-surface-alt);
    border: 1px solid var(--tv-border);
    border-radius: 12px;
}

.tv-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 22px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4b5563;
    font-size: 14px;
    font-weight: 400 !important;
    cursor: pointer;
    transition: background-color .15s, color .15s, box-shadow .15s;
}

.tv-type-tab:hover {
    color: var(--tv-text);
}

.tv-type-tab.active {
    background: var(--tv-surface);
    color: var(--tv-text);
    box-shadow: 0 1px 3px rgba(17, 24, 39, .12);
}

/* No focus ring when a control is clicked; keyboard focus stays visible */
.tv-catalog button:focus,
.tv-catalog button:active {
    outline: none !important;
    box-shadow: none;
}

.tv-catalog .tv-type-tab:focus-visible,
.tv-catalog .tv-view-btn:focus-visible,
.tv-catalog .tv-filter-toggle:focus-visible,
.tv-catalog .tv-search-clear:focus-visible {
    outline: 2px solid var(--tv-primary) !important;
    outline-offset: 2px;
}

/* ---------- Sidebar: search + filters ---------- */
.tv-sidebar {
    padding-right: 8px;
}

.tv-search {
    margin-bottom: 14px;
}

.tv-search-label {
    display: block;
    font-size: 14px;
    color: var(--tv-text) !important;
    margin-bottom: 8px;
}

.tv-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.tv-search-icon {
    position: absolute;
    left: 14px;
    color: var(--tv-subtle);
    pointer-events: none;
}

/* The id is part of the selector so the theme rules for input#SearchStringCatalog
   (left-only rounding, brand border colour) do not apply to the sidebar search */
.tv-search .tv-search-box input#SearchStringCatalog.form-control {
    height: 40px;
    padding: 8px 40px 8px 40px;
    border: 1px solid var(--tv-border) !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--tv-text);
    box-shadow: none;
}

.tv-search-box input.form-control::placeholder {
    color: var(--tv-subtle);
}

.tv-search .tv-search-box input#SearchStringCatalog.form-control:focus {
    border-color: var(--tv-primary) !important;
    box-shadow: 0 0 0 3px var(--tv-primary-soft);
}

.tv-search-clear {
    position: absolute;
    right: 6px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--tv-subtle);
    cursor: pointer;
}

.tv-search-clear:hover {
    color: var(--tv-text);
}

.tv-search-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    padding: 0;
}

.tv-filter {
    border: 0;
}

.tv-filter-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 16px 0;
    border: 0;
    background: transparent;
    color: var(--tv-text);
    font-size: 14px;
    font-weight: 400 !important;
    letter-spacing: .01em;
    text-align: left;
    cursor: pointer;
}

.tv-filter-caret {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 7px solid var(--tv-text);
    transition: transform .15s;
}

.tv-filter-toggle[aria-expanded="true"] .tv-filter-caret {
    transform: rotate(90deg);
}

.tv-filter-panel[hidden] {
    display: none;
}

.tv-filter-body {
    padding: 0 0 12px;
}

.tv-filter-body table {
    width: 100%;
}

.tv-filter-body td {
    padding: 4px 0;
    vertical-align: top;
}

.tv-filter-body td:first-child {
    width: 26px;
}

.tv-filter-body input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--tv-primary);
    cursor: pointer;
}

.tv-filter-body label {
    font-size: 13px;
    color: #374151 !important;
    margin: 0;
}

.tv-filter-body .clsSeeMore,
.tv-filter-body .clsSeeLess {
    font-size: 13px;
    color: var(--tv-primary);
}

.tv-filter-body .cls-date {
    display: flex;
    gap: 8px;
}

.tv-catalog .cata-left div#divDateRange input#startDate,
.tv-catalog .cata-left div#divDateRange input#endDate {
    width: 50%;
    font-size: 13px;
    border-color: var(--tv-border);
}

.tv-catalog .cata-left .stars {
    margin: 0;
}

.tv-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.tv-filter-actions button {
    flex: 1;
    height: 38px;
    border-radius: 6px !important;
    font-size: 13px;
    cursor: pointer;
}

.tv-filter-actions #btnApplyFilter {
    border: 1px solid var(--tv-primary);
    background: var(--tv-primary);
    color: #fff;
}

.tv-filter-actions #btnResetFilter {
    border: 1px solid var(--tv-border);
    background: var(--tv-surface);
    color: var(--tv-text);
}

/* ---------- Results toolbar ---------- */
.tv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 18px;
}

.tv-count {
    font-size: 14px;
    color: #5b7083;
}

.tv-view-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--tv-border);
    border-radius: 8px;
    background: var(--tv-surface);
}

.tv-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 36px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--tv-muted);
    cursor: pointer;
}

.tv-view-btn.active {
    background: var(--tv-primary);
    color: #fff;
}

.tv-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 12px;
    border-radius: 999px;
    background: var(--tv-primary-soft);
    color: var(--tv-primary);
    font-size: 13px;
}

.tv-chip button {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.tv-chip button:hover {
    background: rgba(29, 100, 242, .12);
}

/* ---------- Results: shared card ---------- */
.tv-results {
    display: grid;
    gap: 26px;
}

.tv-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--tv-surface);
    border: 1px solid var(--tv-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}

.tv-card:hover {
    box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}

.tv-card[hidden] {
    display: none !important;
}

.tv-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b3d91;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(94, 234, 255, .55), transparent 45%),
        linear-gradient(135deg, #062a6b 0%, #0b56c9 55%, #19b4f0 100%);
    color: rgba(255, 255, 255, .9);
    text-decoration: none !important;
}

.tv-card.cls-purple .tv-card-media {
    background-image:
        radial-gradient(circle at 80% 20%, rgba(216, 180, 254, .55), transparent 45%),
        linear-gradient(135deg, #2e1065 0%, #6d28d9 55%, #a78bfa 100%);
}

.tv-card.cls-red .tv-card-media {
    background-image:
        radial-gradient(circle at 80% 20%, rgba(254, 202, 202, .5), transparent 45%),
        linear-gradient(135deg, #5f0f18 0%, #b91c1c 55%, #f87171 100%);
}

.tv-card.cls-orange .tv-card-media {
    background-image:
        radial-gradient(circle at 80% 20%, rgba(254, 215, 170, .55), transparent 45%),
        linear-gradient(135deg, #7c2d12 0%, #ea580c 55%, #fdba74 100%);
}

.tv-card-media-icon {
    display: inline-flex;
    opacity: .9;
}

.tv-card-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--tv-text);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.tv-card-body {
    flex: 1;
    min-width: 0;
}

.tv-card-head {
    display: flex;
    gap: 12px;
}

.tv-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--tv-rating);
    font-size: 13px;
    white-space: nowrap;
}

/* Level badge + rating, top right of the card body */
.tv-card-aside {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.tv-card-level {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--tv-primary-soft);
    color: var(--tv-primary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.tv-card-title {
    display: block;
    color: var(--tv-text) !important;
    font-size: 17px;
    line-height: 1.35;
    text-decoration: none !important;
    word-break: break-word;
}

.tv-card-title:hover {
    color: var(--tv-primary) !important;
}

.tv-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--tv-muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 8px 0 0;
}

.tv-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    color: var(--tv-muted);
    font-size: 13px;
}

.tv-card-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.tv-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tv-card-tag {
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--tv-surface-alt);
    color: #4b5563;
    font-size: 12px;
}

.tv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    border-top: 1px solid var(--tv-border);
}

.tv-card-price {
    color: var(--tv-text);
    font-size: 13px;
}

.tv-card-price .cls-po-dv {
    display: inline;
}

.tv-card-price .cls-po-dv + .cls-po-dv::before {
    content: " ";
}

.tv-card-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
}

.tv-card-links a.tv-link {
    color: var(--tv-primary);
}

.tv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 6px;
    background: var(--tv-primary);
    color: #fff !important;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none !important;
    white-space: nowrap;
}

.tv-btn:hover {
    background: #1553cc;
}

.tv-empty {
    grid-column: 1 / -1;
    padding: 48px 16px;
    border: 1px dashed var(--tv-border);
    border-radius: 10px;
    color: var(--tv-muted);
    text-align: center;
}

.tv-empty[hidden] {
    display: none;
}

.tv-note {
    margin-top: 28px;
}

/* ---------- Grid view ---------- */
.tv-results.tv-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.tv-grid .tv-card-media {
    height: 188px;
}

.tv-grid .tv-card-content {
    padding: 18px 18px 0;
}

.tv-grid .tv-card-head {
    flex-direction: column-reverse;
}

.tv-grid .tv-card-aside {
    align-self: flex-end;
    min-height: 22px;
    margin-bottom: 4px;
}

.tv-grid .tv-card-desc {
    -webkit-line-clamp: 2;
}

.tv-grid .tv-card-footer {
    margin: 16px -18px 0;
    padding: 12px 18px;
}

/* ---------- List view ---------- */
.tv-results.tv-list {
    grid-template-columns: 1fr;
    gap: 16px;
}

.tv-list .tv-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 17px;
    gap: 20px;
}

.tv-list .tv-card-media {
    width: 200px;
    height: 135px;
    border-radius: 6px;
    flex: 0 0 200px;
}

.tv-list .tv-card-badge {
    left: 8px;
    bottom: 8px;
    font-size: 11px;
}

.tv-list .tv-card-head {
    align-items: flex-start;
    justify-content: space-between;
}

/* Rating is a grid-view detail only */
.tv-list .tv-card-rating {
    display: none;
}

/* Certification Questions / Certified counts are list-view details only */
.tv-grid .tv-list-only {
    display: none;
}

/* Level badge: list view shows it at the right end of the meta row instead of beside the title */
.tv-list .tv-card-aside .tv-card-level {
    display: none;
}

.tv-list .tv-card-meta-level {
    margin-left: auto;
}

.tv-list .tv-card-desc {
    -webkit-line-clamp: 2;
    max-width: 780px;
}

.tv-list .tv-card-footer {
    margin-top: 14px;
    padding-top: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .tv-header {
        margin-bottom: 28px;
    }

    .tv-sidebar {
        padding-right: 0;
        margin-bottom: 24px;
    }
}

@media (max-width: 575px) {
    .tv-type-tabs {
        width: 100%;
    }

    .tv-type-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
    }

    .tv-list .tv-card {
        flex-direction: column;
    }

    .tv-list .tv-card-media {
        width: 100%;
        flex-basis: auto;
    }
   
}
/*css by chathuranga s */
a.tv-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

p.tv-subtitle {
    color: #707e8f;
    font-size: .875rem;
}

button:focus,
button:focus-visible {
    outline: none;
    box-shadow: none;
}

.tv-card.cls-red .tv-card-media {
    background-size: cover !important;
}

a.tv-card-media {
    background-size: cover !important;
}

.tv-results.tv-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 2fr)) !important;
    gap: 20px !important;
}

.container {
    padding: 18px 32px 32px;
    max-width: 1320px;
    margin: 0 auto;
    max-width: 83rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: unset;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.tv-sidebar {
    padding-left: 0px;
    padding-right: 0px;
}

aside.cata-left.tv-sidebar {
    width: 100%;
}

.container.tv-catalog .col-lg-9 {
    padding-left: 0px;
    /* padding-right: 0px; */
}



.container.tv-catalog .col-lg-3 {
    padding-right: 0px;
    width: auto !important;
    max-width: 291px !important;
    width: 267px !important;
    padding-right: 18px;
}

.tv-grid .tv-card-media {
    background-size: cover !important;
}

a.tv-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

p.tv-subtitle {
    color: #707e8f;
    font-size: .875rem;
}

button:focus,
button:focus-visible {
    outline: none;
    box-shadow: none;
}

nav.navbar.navbar-expand-md.navbar-light {
    max-width: 83rem;
    margin-left: auto !important;
    margin-right: auto !important;
    background-position-x: 1%;
    padding-top: 12px;
    padding-bottom: 20px;
}

.container-fluid.not-padding.menubar-css {
    padding-bottom: 0px;
}

a.navbar-brand {
}

    a.navbar-brand img {
        width: 109px;
    }

.navbar-light .navbar-brand {
    padding-top: 0px;
}

.tv-card-desc {
    font-size: 13px !important;
}

button.tv-filter-toggle span {
    font-weight: 800;
    color: #555 !important;
    font-size: 0.75rem !important;
    /* border-left: 7px solid #555; */
}

.tv-filter-caret {
    border-left: 6px solid #555;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}
.container.tv-catalog {
    min-height: 798px !important;
}
/*css by chathuranga e*/
