/* হেডার নেভিগেশন বারের নিচে ঢুকে যাওয়া রোধ করার ফিক্স */
.courses-page-wrapper {
    background-color: #f9fafc !important;
    font-family: 'Inter', sans-serif;
    padding-bottom: 60px;
    padding-top: 90px; /* এই লাইনটি আপনার ফিক্স! নেভিগেশন বারের হাইট অনুযায়ী কন্টেন্ট নিচে নামাবে */
}

/* হেডার সেকশনের প্যাডিং কিছুটা এডজাস্টমেন্ট */
.page-header-premium {
    background-color: #ffffff;
    padding: 40px 0; /* প্যাডিং কিছুটা কমিয়ে ব্যালেন্স করা হয়েছে */
    border-bottom: 1px solid #edf2f7;
    position: relative;
}
.page-title-brand {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 8px 0;
}
.gradient-text {
    background: linear-gradient(90deg, #ff512f, #dd2476);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.results-count-sub {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
}
.header-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff512f, #dd2476);
    opacity: 0.08;
}

/* মেইন লেআউট গ্রিড */
.main-catalog-section {
    padding-top: 40px;
}
.catalog-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ফিল্টার সাইডবার */
.filter-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.filter-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.filter-title-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}
.reset-btn-link {
    background: none;
    border: none;
    color: #dd2476;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.reset-btn-link:hover {
    color: #ff512f;
    text-decoration: underline;
}
.filter-group-heading {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a0aec0;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* কাস্টম চেকবক্স ডিজাইন */
.filter-options-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.filter-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    color: #4a5568;
    width: 100%;
}
.filter-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkbox-custom-box {
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 12px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
}
.filter-checkbox-container:hover input ~ .checkbox-custom-box {
    border-color: #dd2476;
}
.filter-checkbox-container input:checked ~ .checkbox-custom-box {
    background: linear-gradient(90deg, #ff512f, #dd2476);
    border-color: transparent;
}
.checkbox-custom-box:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.filter-checkbox-container input:checked ~ .checkbox-custom-box:after {
    display: block;
}
.filter-count-badge {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: 500;
}

/* কোর্স কার্ড ডিজাইন (Horizontal Layout) */
.courses-content-area {
    display: flex;
    flex-direction: column;
}
.section-title-row {
    margin-bottom: 20px;
}
.sort-title-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}
.course-list-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.course-card-horizontal {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}
.course-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

/* গোল ইমেজ স্টাইল */
.course-img-wrapper {
    flex-shrink: 0;
}
.course-img-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.course-img-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* কোর্স টেক্সট ও কন্টেন্ট এরিয়া */
.course-info-wrapper {
    flex-grow: 1;
}
.course-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.course-card-description {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 16px 0;
}
.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ব্র্যান্ড ম্যাচড গ্রাডিয়েন্ট বাটন */
.btn-brand-gradient {
    background: linear-gradient(90deg, #ff512f, #dd2476);
    color: #ffffff !important;
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(221, 36, 118, 0.25);
}
.btn-brand-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(221, 36, 118, 0.35);
}

/* ব্র্যান্ড ফিল ব্যাজ */
.badge-brand-pill {
    background-color: #fff5f7;
    color: #dd2476;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid #ffe3ec;
}

/* পেজিনেশন স্টাইল ওভাররাইড */
.pagination-wrapper-brand {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.pagination-wrapper-brand .pagination .page-item .page-link {
    border-radius: 8px !important;
    margin: 0 3px;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}
.pagination-wrapper-brand .pagination .page-item.active .page-link {
    background: linear-gradient(90deg, #ff512f, #dd2476) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* রেস্পনসিভ মিডিয়া কোয়েরি */
@media (max-width: 991px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .course-card-horizontal {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .course-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }
    .btn-brand-gradient {
        width: 100%;
        text-align: center;
    }
}