/* ===================================================
   Category Sidebar - Professional & Formal Replica
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.course-all-category {
    font-family: 'Inter', sans-serif !important;
    margin-top: 0;
    background-color: #ffffff;
    border: 1px solid #f3f1f8;
    box-shadow: 0px 4px 20px rgba(100, 100, 111, 0.08) !important;
    border-radius: 12px;
    padding: 24px;
}

/* Accordion item */
.course-all-category .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.course-all-category .accordion-item:last-child {
    border: none !important;
    padding-bottom: 0;
}

/* Accordion button */
.course-all-category .accordion-button {
    padding: 0;
    font-weight: 600;
    font-size: 18px;
    background-color: transparent;
    box-shadow: none;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-all-category .accordion-button:not(.collapsed) {
    color: #0f172a;
    background-color: transparent;
    box-shadow: none;
}

.course-all-category .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f172a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    background-size: 14px;
    width: 14px;
    height: 14px;
    margin-left: auto;
}

.course-all-category .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.course-all-category .accordion-item h3 {
    margin: 0 0 16px 0;
}

.course-all-category .accordion-body {
    padding: 0;
}

/* Search box */
.course-all-category .form-group {
    position: relative;
    margin-bottom: 24px;
}

.course-all-category .form-group .form-control {
    font-size: 15px;
    color: #0f172a;
    padding: 12px 16px 12px 40px;
    /* Space for icon on left */
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    height: 48px;
    box-shadow: none !important;
}

.course-all-category .form-group .form-control::placeholder {
    color: #64748b;
    font-weight: 400;
}

.course-all-category .form-group button {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    z-index: 9;
    background-color: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    color: #64748b;
}

.course-all-category .form-group .form-control:focus {
    border-color: #e11d48;
}

/* Form Check Container */
.course-all-category .form-check {
    padding: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.course-all-category .form-check:last-child {
    margin-bottom: 0;
}

/* Radio inputs */
.course-all-category .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background-color: #f8fafc;
    margin-top: 0;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.course-all-category .form-check-input:checked {
    border-color: #e11d48;
    background-color: #ffffff;
}

.course-all-category .form-check-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #e11d48;
    border-radius: 50%;
}

.course-all-category .form-check-input:focus {
    box-shadow: none;
    outline: none;
}

/* Category label */
.course-all-category .form-check-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    margin-bottom: 0;
}

.course-all-category .category-heading {
    display: flex;
    align-items: center;
}

.course-all-category .category-heading a {
    text-decoration: none;
    color: #475569;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s;
}

.course-all-category .form-check-label.active a,
.course-all-category .form-check-label a:hover {
    color: #0f172a;
    font-weight: 500;
}

.course-all-category .form-check-label span {
    font-size: 15px !important;
    font-weight: 400;
    color: #475569;
}

.course-all-category .form-check-label.active span {
    color: #0f172a;
    font-weight: 500;
}

/* Sub-category list */
.course-all-category ul {
    list-style: none;
    padding-left: 32px;
    margin-top: -8px;
    margin-bottom: 16px;
}

.course-all-category ul li {
    padding: 0;
    margin: 0;
}

.course-all-category ul li .form-check {
    margin-bottom: 12px;
}

/* Show more / less toggle - exact max-height logic */
.course-all-category .webdesign {
    overflow: hidden;
}

.course-all-category .webdesign.less {
    max-height: 280px;
    transition: max-height 0.3s ease-out;
}

/* Show more / Show less button */
.course-all-category .show-more {
    margin-top: 16px;
}

.course-all-category .show-more a {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}

.course-all-category .show-more a:hover {
    color: #e11d48;
}

/* ===================================================
   Category Page Layout Polish
   =================================================== */

/* Sidebar sticky on desktop */
@media (min-width: 992px) {
    .category-sidebar-sticky {
        position: sticky;
        top: 24px;
        z-index: 10;
    }
}

/* Equal height course cards in the grid */
.it-course-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.it-course-item:hover {
    transform: translateY(-4px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.05);
}

.it-course-item .it-course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.it-course-item .it-course-btn {
    margin-top: auto;
}

.it-course-thumb {
    overflow: hidden;
}

.it-course-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.it-course-item:hover .it-course-thumb img {
    transform: scale(1.05);
}

/* Course title and text */
.it-course-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

.it-course-title a {
    color: #0f172a;
    text-decoration: none;
}

.it-course-title a:hover {
    color: #e11d48;
}

/* Price block */
.it-course-price-box {
    margin-bottom: 12px;
}

.it-course-price-box .price {
    font-size: 20px;
    font-weight: 700;
    color: #e11d48;
    margin: 0;
}

.it-course-price-box del {
    color: #94a3b8;
    font-size: 14px;
    margin-right: 8px;
}

/* Button style */
.it-btn-yellow {
    display: block;
    text-align: center;
    background-color: #facc15;
    color: #0f172a;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.it-btn-yellow:hover {
    background-color: #eab308;
    color: #0f172a;
}

/* Gap between sidebar and courses */
.it-course-area .gx-35 {
    --bs-gutter-x: 32px;
}

@media (max-width: 991px) {

    .it-course-area .col-xl-3,
    .it-course-area .col-lg-4 {
        margin-bottom: 40px;
    }
}

.it-course-inner-v1-style {
    background-color: #f8fafc;
    padding-top: 60px;
    padding-bottom: 60px;
}