/* ================= PARTNER DETAILS VIEW STYLES ================= */

/* Breadcrumb Navigation */
.partner-details-breadcrumb {
    background: #f8fafc;
    padding: 20px 0;
    border-bottom: 1px solid rgba(12, 37, 59, 0.05);
}

.partner-details-breadcrumb__container {
    width: min(1440px, calc(100% - 60px));
    margin: 0 auto;
}

.partner-details-breadcrumb__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.partner-details-breadcrumb__item a {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.partner-details-breadcrumb__item a:hover {
    color: #f47429;
}

.partner-details-breadcrumb__item.active {
    color: #0b1f2e;
    font-size: 14px;
    font-weight: 600;
}

.partner-details-breadcrumb__separator {
    color: #a0aec0;
    display: flex;
    align-items: center;
}

[dir="rtl"] .partner-details-breadcrumb__separator svg {
    transform: rotate(180deg);
}

/* Partner Header Section */
.partner-header {
    background: #fff;
    padding: 60px 0;
    border-bottom: 1px solid rgba(12, 37, 59, 0.05);
}

.partner-header__container {
    width: min(1440px, calc(100% - 60px));
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
}

.partner-header__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #0C3B66;
    /* blue brand color */
    line-height: 1.2;
    margin-bottom: 16px;
}

.partner-header__desc {
    font-size: 15.5px;
    line-height: 1.65;
    color: #4a5568;
    max-width: 850px;
}

.partner-header__media {
    display: flex;
    justify-content: flex-end;
    order: -1;
    /* Puts the logo card on the left side of text */
}

[dir="rtl"] .partner-header__media {
    justify-content: flex-start;
}

.partner-header__logo-frame {
    background: #fff;
    border-radius: 16px;
    padding: 16px 24px;
    border: 1px solid rgba(12, 37, 59, 0.06);
    box-shadow: 0 10px 30px rgba(12, 37, 59, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 120px;
}

.partner-header__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-header__no-logo {
    font-size: 18px;
    font-weight: 700;
    color: #a0aec0;
    text-align: center;
}

/* Course Catalog Layout */
.partner-courses {
    background: #f8fafc;
    padding: 60px 0 100px;
}

.partner-courses__container {
    width: min(1440px, calc(100% - 60px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Filters */
.partner-sidebar {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(12, 37, 59, 0.04);
    box-shadow: 0 10px 30px rgba(12, 37, 59, 0.02);
    padding: 30px;
    position: sticky;
    top: calc(var(--header-height, 73px) + 20px);
}

.filter-group__title {
    font-size: 16px;
    font-weight: 700;
    color: #0C3B66;
    /* blue brand color */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid rgba(12, 37, 59, 0.06);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group__options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: color 0.2s ease;
}

.filter-option:hover {
    color: #f47429;
}

.filter-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    margin-inline-end: 10px;
    cursor: pointer;
    accent-color: #f47429;
    flex-shrink: 0;
}

.filter-option__label {
    flex-grow: 1;
    font-weight: 500;
}

.filter-option__count {
    font-size: 12px;
    color: #a0aec0;
    margin-inline-start: 8px;
}

/* Content Area */
.partner-content__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(12, 37, 59, 0.05);
    padding-bottom: 15px;
}

.partner-content__title {
    font-size: 20px;
    font-weight: 700;
    color: #0C3B66;
    /* blue brand color */
}

.partner-content__count {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

/* Grid & Cards (inherits .cardfo from main stylesheet) */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.partner-grid__empty {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    color: #718096;
    border: 1px solid rgba(12, 37, 59, 0.04);
}

/* Pagination container */
.partner-pagination {
    display: flex;
    justify-content: center;
}

/* Responsive design */
@media (max-width: 991px) {
    .partner-header__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .partner-header__media {
        justify-content: flex-start;
        order: -1;
    }

    .partner-courses__container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .partner-sidebar {
        position: relative;
        top: 0;
        padding: 24px;
    }
}

@media (max-width: 575px) {
    .partner-grid {
        grid-template-columns: 1fr;
    }
}