 *{
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

.ocs-wrapper {
    display: flex;
    gap: 20px;
}

.ocs-sidebar {
    width: 25%;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
}
 
 
.ocs-course-card-link {
    text-decoration: none;
    color: #000000;
    display: block;
    font-weight: 500 !important;
}

.ocs-course-card-link:hover,
.ocs-course-card-link:focus,
.ocs-course-card-link:active {
    color: #000000;
    text-decoration: none;
    font-weight: 500 !important;
}

.ocs-sidebar h4 {
    font-size: 20px !important;
    line-height: 24px !important;
    font-weight: 600;
    margin-bottom: 10px;
    color: #3D3D3D;
    /* border-bottom: 1px solid #FF9B26; */
}

.ocs-filter-header {
    background: #FFECD5;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color :#FEA742;
}

.filter-icon {
    color: #FEA742 !important;
    font-size: 16px;
}

.ocs-filter-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #FF9B26;
}



/* Section Title */
.ocs-filter-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #3D3D3D;
    padding-bottom: 10px;
}


.ocs-results {
    width: 75%;
}

.ocs-course-card {
    padding: 10px;
    margin-bottom: 10px;
}


.ocs-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
}

/* Card */
.ocs-course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    border: 1px solid #FF9B26;
}

.ocs-course-card:hover {
    transform: translateY(-6px);
}

/* Thumbnail */
.ocs-thumbnail {
    position: relative;
}

.ocs-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ocs-image-top {
    padding-top: 10px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Category Tag */
.ocs-category-tag {
    /* position: absolute; */
    bottom: 15px;
    left: 15px;
    padding: 0px 12px;
    font-size: 12px;
    font-weight: 600;
    color:#FC1A65;
}
.category-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
}
.ocs-duration-tag {
   
    color: #6d6d6d;
    padding: 0px 12px;
    font-size: 12px;
    font-weight: 500;
    align-items: center !important;
}
.duration-icon {
    width: 13px;
    height: 13px;
    display: inline-block;
}

/* Content */
.ocs-content {
    padding: 5px ;
}

.ocs-title {
    font-size: 19px !important;
    font-weight: 600;
    line-height: 24px !important;
   display: -webkit-box !important;   
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
   overflow: hidden !important;
}

.ocs-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-number {
    font-weight: 600;
    margin-right: 6px;
    color:#3FC89E;
}

.star {
    position: relative;
    font-size: 16px;
}

.star.full {
    color: #FF9B26;
}

.star.empty {
    color: #ddd;
}

.star.half {
    color: #ddd;
}

.star.half::before {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #FF9B26 !important;
}

.ocs-description {
    font-size: 12px;
    color: #696984;
    font-weight: 400;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.ocs-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Instructor */
.ocs-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ocs-instructor img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Price */
.old-price {
    text-decoration: line-through;
    color: #6D6D6D;
    font-size: 12px;
    font-weight: 300;
    margin-right: 5px;
}

.new-price {
    color: #18A250;
    font-weight: 700;
    font-size: 20px;
}


/* Price Section */
.ocs-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

/* Custom Checkbox */
.ocs-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 15px;
    position: relative;
}

.ocs-checkbox input {
    display: none;
}

.ocs-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #FEA742;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
}

/* When Checked */
.ocs-checkbox input:checked + .checkmark {
    background: #FEA742;
}

/* Arrow */
.ocs-arrow {
    color: #FEA742;
    font-size: 16px;
}

.ocs-level-options label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}


/*  Rating Section */
/* Wrapper */
.ocs-select-wrapper {
    position: relative;
    width: 100%;
}

/* Select */
.ocs-select {
    width: 100%;
    padding: 10px 40px 10px 14px; /* space for arrow */
    border: 1px solid #FF9B26 !important;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #555;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Arrow Proper Position */
.ocs-select-wrapper .ocs-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #FEA742;
    pointer-events: none;
}




/* ===============================
   RESPONSIVE DESIGN
================================== */

/* Tablet */
@media (max-width: 1024px) {

    .ocs-wrapper {
        flex-direction: column;
    }

    .ocs-sidebar {
        width: 50%;
        margin-bottom: 20px;
    }

    .ocs-results {
        width: 100%;
    }

    .ocs-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}


/* Mobile */
@media (max-width: 768px) {

    .ocs-wrapper {
        display: flex;
        flex-direction: column;
        padding: 15px;
    }

    /* Sidebar full width */
    .ocs-sidebar {
        width: 50%;
        padding: 15px;
        border-radius: 10px;
    }

    .ocs-filter-header {
        font-size: 18px;
        margin-bottom: 0;
    }

    .ocs-filter-section h4 {
        font-size: 16px;
        padding-bottom: 0px !important;
    }
    
     .ocs-filter-section {
    margin-bottom: 5px;      
    padding-bottom: 7px;     
  }
  
  .ocs-filter-section .ocs-filter-content {
        display: flex;
        gap: 20px;          
        flex-wrap: nowrap;  
    }

    .ocs-filter-section .ocs-checkbox {
        white-space: nowrap; 
        margin-bottom: 6px;
    }
    
    .ocs-select {
        padding: 5px 10px 5px 10px; 
        
    }
    
       .ocs-level-options {
        display: flex;
        flex-wrap: wrap;
    }

    .ocs-level-options label {
        width: 50%;
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        gap: 5px;
    }

    /* Grid becomes 1 column */
    .ocs-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .ocs-course-card {
        border-radius: 12px;
    }

    .ocs-thumbnail img {
        width: 100%;
        height: auto;
        border-radius: 10px 10px 0 0;
    }

    .ocs-content {
        padding: 10px;
    }

    .ocs-title {
        font-size: 18px;
    }

    .ocs-description {
        font-size: 14px;
    }

    .ocs-footer {
         display: flex;
        align-items: center;
        justify-content: space-between !important;
        gap: 10px;
        width: 100%;
    }

    .ocs-instructor img {
        width: 30px;
        height: 30px;
    }

    .ocs-price {
        font-size: 16px;
    }
}


/* Small Mobile */
@media (max-width: 480px) {

    .ocs-wrapper {
        padding: 10px;
    }

    .ocs-sidebar {
        padding: 12px;
        width: 100%;
    }

    .ocs-content {
        padding: 12px;
    }

    .ocs-title {
        font-size: 16px;
    }

    .ocs-description {
        font-size: 13px;
    }

    .ocs-price {
        font-size: 14px;
    }

}








/* ===============================
   FILTER COURSE GRID RESPONSIVE
================================== */

/* 768px to 1000px → 3 Cards */
@media (min-width: 768px) and (max-width: 1000px) {

    .ocs-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }

}

/* 1001px to 1024px → 4 Cards */
@media (min-width: 1001px) and (max-width: 1024px) {

    .ocs-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

}

/* Below 768px → 1 Card */
@media (max-width: 767px) {

    .ocs-grid {
        grid-template-columns: 1fr !important;
    }

}




/*  Course Tabs CSS   */


/* Tabs */
.ocs-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom:1px solid #6D6D6D;

}

.ocs-tab-btn {
    background: none !important;
    border: none !important;
    /* padding: 10px 0; */
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    cursor: pointer;
    color: #6D6D6D !important;
    border-radius: 0px !important;
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 15px;

}

.ocs-tab-btn.active {
    color: #FF9B26 !important;
    border-bottom: 2px solid #FF9B26 !important;
    border-radius: 0px !important;
}






/* 4 Column Grid */
.ocs-course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.ocs-course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.ocs-course-card:hover {
    transform: translateY(-5px);
}

.ocs-course-card img {
    width: 100%;
}

.ocs-content {
    padding: 10px;
}

.ocs-rating {
    margin: 8px 0;
}

.ocs-price del {
    color: #999;
    margin-right: 5px;
}

.ocs-price strong {
    color: green;
    font-size: 18px;
}



/* =========================
   TAB RESPONSIVE (NO SCROLL)
========================= */

/* Tablet */
@media (max-width: 1024px) {

    .ocs-course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ocs-tabs {
        flex-wrap: wrap;   /* Allow wrapping */
        gap: 20px;
    }

    .ocs-tab-btn {
        font-size: 16px;
        padding-bottom: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .ocs-tabs {
        flex-wrap: wrap;     /* Tabs go to next line */
        gap: 10px;
        border-bottom: 0px;
    }

    .ocs-tab-btn {
        font-size: 15px;
        padding-bottom: 10px;
        padding-left: 20px;
        
    }

    .ocs-course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* 768px to 1000px → 3 Cards */
@media (min-width: 768px) and (max-width: 1000px) {

    .ocs-course-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }

}

/* 1001px to 1024px → 2 Cards (optional safety) */
@media (min-width: 1001px) and (max-width: 1024px) {

    .ocs-course-grid {
        grid-template-columns: repeat(4, 1fr)!important;
    }

}

/* Small Mobile */
@media (max-width: 480px) {

    .ocs-tab-btn {
        font-size: 14px;
    }

    .ocs-course-grid {
        gap: 15px;
    }
}

