/* Main Container */
.cca-course-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* CSS Variable for Header Height - Default 80px */
:root {
    --cca-header-height: 80px;
}

.cca-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Left Sidebar - Sticky Positioning */
.cca-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky!important;
    align-self: flex-start;
    display: flex;
    align-items: flex-start;
    z-index: 10;
}

.cca-sidebar-inner {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - var(--cca-header-height, 80px) - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c7d7e2 transparent;
    display: flex;
    flex-direction: column;
}

.cca-sidebar-inner::-webkit-scrollbar {
    width: 6px;
}

.cca-sidebar-inner::-webkit-scrollbar-thumb {
    background: #c7d7e2;
    border-radius: 999px;
}

.cca-sidebar-inner::-webkit-scrollbar-track {
    background: transparent;
}

.cca-sidebar-title {
    font-size: 1.5em;
    margin-bottom: 30px!important;
	margin:0px;
    padding: 30px 15px;
    border-bottom: 2px solid #e0e0e0;
    color: #fff;
    text-align: center;
    background: linear-gradient(to right, #576094, #915ebd);
	border-radius: 6px;align-content
}

.cca-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.cca-category-item {
    margin-bottom: 8px;
}

.cca-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #555;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.cca-category-link:hover {
    background: #f5f5f5;
    color: #0073aa;
}

.cca-category-item.active .cca-category-link {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

.cca-category-count {
    font-size: 0.85em;
    opacity: 0.7;
}

.cca-category-item.active .cca-category-count {
    opacity: 1;
}

/* Right Content Area */
.cca-content {
    flex: 1;
    min-width: 0;
}

/* Search and Filter Bar - Combined in Single Box */
.cca-filter-bar {
    background: linear-gradient(to right, #576094, #915ebd);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.cca-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
    max-width: 500px;
    margin: 0;
}

.cca-search-icon {
    position: absolute;
    left: 15px;
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.cca-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
    background: #fff;
}

.cca-search-input:focus {
    outline: none;
    border-color: #0073aa;
}

.cca-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 1;
}

.cca-search-clear:hover {
    color: #333;
}

.cca-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cca-filter-group label {
    font-weight: 600;
    color: #333;
	color:#ffffff;
}

.cca-sort-select {
    padding: 10px 35px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95em;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    position: relative;
}

.cca-sort-select:hover {
    border-color: #0073aa;
}

.cca-sort-select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cca-sort-select:active {
    border-color: #0073aa;
}

/* Courses Grid */
.cca-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cca-course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    padding-top: 10px;
}

.cca-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.cca-course-thumbnail {
    width: calc(100% - 20px);
    height: 180px;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 4px;
    margin: 0 auto 0 auto;
}

.cca-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cca-course-content {
    padding: 15px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.cca-course-title {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.4;
    height: 2.8em;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.cca-course-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.cca-course-title a:hover {
    color: #0073aa;
}

.cca-course-excerpt {
    margin: 10px 0 12px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 4.5em;
    position: relative;
}

.cca-excerpt-text {
    color: #666;
    line-height: 1.6;
    margin: 0 0 8px 0;
    font-size: 0.9em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.32em;
}

.cca-read-more {
    background: none;
    border: none;
    color: #1472ba;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
    align-self: flex-start;
    margin-top: 4px;
    display: inline-block;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    line-height: 1.5;
}

.cca-read-more:hover {
    color: #005a8f;
    text-decoration: underline;
}

.cca-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.cca-course-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 1em;
    flex: 1;
}

.cca-duration-copy {
    display: inline;
    font-size: 1em;
    line-height: 1.5;
}

.cca-duration-copy strong {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.cca-course-duration svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cca-course-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #1472ba;
    text-align: right;
    flex-shrink: 0;
}

.cca-course-link {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: #0073aa;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 0.95em;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.cca-course-link:hover {
    background: #1472ba;
}

.cca-no-courses {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
}

/* Pagination */
.cca-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.cca-pagination-wrapper {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cca-page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.cca-page-numbers li {
    margin: 0;
}

.cca-page-number,
.cca-page-prev,
.cca-page-next {
    display: inline-block;
    padding: 8px 14px;
    text-decoration: none;
    color: #555;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.cca-page-number:hover,
.cca-page-prev:hover,
.cca-page-next:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.cca-page-number.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: 600;
}

.cca-page-dots {
    padding: 8px 5px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1366px) {
    .cca-course-thumbnail {
        height: 160px;
    }
    
    .cca-course-title {
        font-size: 1.05em;
        min-height: 2.6em;
    }
    
    .cca-course-excerpt {
        min-height: 4.2em;
    }
}

@media (max-width: 1024px) {
    .cca-wrapper {
        flex-direction: column;
    }
    
    .cca-sidebar {
        width: 100%;
        max-height: calc(100vh - var(--cca-header-height, 80px) - 40px);
        align-items: stretch;
    }
    
    .cca-sidebar-inner {
        max-height: calc(100vh - var(--cca-header-height, 80px) - 40px);
    }
}

@media (max-width: 768px) {
    .cca-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .cca-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cca-search-wrapper {
        max-width: 100%;
    }
    
    .cca-filter-group {
        width: 100%;
    }
    
    .cca-sort-select {
        width: 100%;
    }
    
    .cca-page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cca-course-archive-container {
        padding: 15px 10px;
    }
    
    .cca-courses-grid {
        gap: 20px;
    }
}

