/* Instructor pages: list and profile layouts */

:root {
    --ins-page-bg: #f6f7fb;
    --ins-surface: #ffffff;
    --ins-border: #e9edf3;
    --ins-primary: #0f4c81;
    --ins-text: #1f2937;
    --ins-muted: #6b7280;
    --ins-accent: #f0ad28;
}

/* Shared page spacing */
.ins-page {
    background: var(--ins-page-bg);
    min-height: 100vh;
    padding: 28px 0 56px;
}
.fa-envelope:before {
    content: "\f0e0";
    font-size: 15px;
}

.ins-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.ins-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.ins-head h1 {
    margin: 0;
    color: var(--ins-text);
    font-size: 25px;
    font-weight: 800;
}

.ins-head p {
    margin: 8px 0 0;
    color: var(--ins-muted);
    font-size: 16px;
    font-weight: 600;
}

/* Instructors list page */
.ins-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
}

.ins-filter-box,
.ins-list-wrap {
    border: 1px solid var(--ins-border);
    border-radius: 14px;
    background: var(--ins-surface);
}

.ins-filter-box {
    border-color: #e5e8ed;
    padding: 20px 18px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.ins-filter-title {
    margin: 0 0 18px;
    color: var(--ins-primary);
    font-size: 20px;
    font-weight: 800;
    text-align: right;
    letter-spacing: 0.01em;
}

.ins-filter-field {
    margin-bottom: 14px;
}

.ins-filter-field--last {
    margin-bottom: 0;
}

.ins-filter-field label {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    line-height: 1.35;
}

/* Black arrow on the field left side (RTL) — matches the design behavior */
.ins-filter-field select {
    width: 100%;
    max-width: 100%;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    padding-block: 11px;
    padding-inline: 12px 36px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    background-color: #fff;
    text-align: right;
    direction: rtl;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231f2937' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 10px 6px;
}

.ins-filter-field select option {
    color: #374151;
    background: #fff;
}

/* When a real option is selected, the text becomes darker like the UI */
.ins-filter-field select.ins-select-has-value {
    color: #4b5563;
    font-weight: 600;
}

.ins-list-wrap {
    padding: 10px 16px;
    border: 1px solid var(--ins-border);
    border-radius: 14px;
}

.ins-teacher-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--ins-border);
    border-radius: 15px;
    margin-bottom: 12px;
}

.ins-teacher-item:last-child {
    border-bottom: 0;
}

.ins-card-header {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0;
}

.ins-profile-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.ins-profile-image {
    width: 300px;
    height: 299px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* Start with a soft shadow */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.ins-profile-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(15, 76, 129, 0.2); /* Float effect with brand blue tint */
}

.ins-teacher-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.ins-teacher-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.ins-teacher-exp-under {
    background: linear-gradient(135deg, var(--ins-primary), #00416a);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    box-shadow: 0 10px 18px rgba(15, 76, 129, 0.18);
    line-height: 1.1;
}

.ins-teacher-name {
    margin: 0 0 3px;
    color: var(--ins-text);
    font-size: 16px;
    font-weight: 700;
}

.ins-teacher-role {
    margin: 0;
    padding: 0;
    color: var(--ins-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.ins-teacher-bio {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.ins-teacher-main .ins-teacher-bio {
    margin: 0;
    padding: 0;
    width: auto;
    padding-inline-start: 0;
}

.ins-teacher-role + .ins-teacher-bio {
    margin-top: 0;
    padding-top: 0;
}

.ins-rate {
    color: var(--ins-accent);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 6px;
    direction: rtl;
    text-align: left;
    justify-self: start;
}

.ins-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 1;
}

.ins-teacher-main {
    flex: 1 1 0;
    min-width: 0;
    text-align: right;
}

.ins-teacher-side {
    width: 100%;
    display: flex;
    /* Keep the CTA on the right for RTL pages */
    direction: rtl;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    /* Keep "More" aligned across cards */
    margin-top: auto;
}

.ins-more-link {
    color: #f09a1a;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    margin-inline-end: 0;
    order: 2;
}

.ins-more-link i {
    margin-inline-start: 6px;
    color: #f4951f;
    width: 24px;
    height: 24px;
    font-size: 15px;
    line-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ins-teacher-item > .ins-teacher-bio {
    width: 100%;
    margin-top: 15px;
    padding-inline-start: 96px;
    padding-inline-end: 4px;
    text-align: right;
}

.ins-btn {
    border: 1px solid #c6d2df;
    color: #0f4c81;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ins-item-actions .ins-btn:not(.icon) {
    border-color: #0f4c81;
    border-width: 1.5px;
    min-width: 84px;
    justify-content: center;
}

.ins-btn.icon {
    width: 34px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f4951f;
    border-color: #f4951f;
}

.ins-plus-circle {
    width: 19px;
    height: 19px;
    border: 1px solid #0f4c81;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

.ins-load-more-wrap {
    text-align: center;
    padding: 18px 0 14px;
}

.ins-load-more {
    border: 1px solid #c6d2df;
    color: #f09a1a;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 8px 14px;
}

/* Instructor profile page */
.ins-page-profile {
    background: #ffffff;
    min-height: 100vh;
}

.ins-page-profile .ins-shell {
    width: 100%;
    max-width: 100%;
    padding: 0 50px;
    margin: 0;
}

.ins-profile-hero-wrapper {
    background-color: #fafbfc;
    background: #FAFBFD;
    border-radius: 0px;
    padding-top: 50px;
    padding-bottom: 60px;
    margin-bottom: 50px;
}

.ins-profile-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr); /* Image on right, Text on left in RTL */
    gap: 60px;
    align-items: start;
}

.ins-profile-image {
    width: 300px;
    height: 299px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.ins-profile-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(15, 76, 129, 0.2); 
}

.ins-profile-text-content {
    display: flex;
    flex-direction: column;
}

.ins-profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.ins-profile-name {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    color: var(--ins-text);
}
.ins-courses-title {
    font-size: 20px !important;
    font-weight: 700 !important;
}

.mc-badge--live {
    background: #eaf4f3 !important;
    color: #028E7C !important;
    border: 1px solid rgba(2, 142, 124, 0.2) !important;
    font-size: 13px;
}

/* Course card badge (matches static template) */
.ins-page-profile .mc-badge {
    position: absolute;
    top: 8px;
    right: auto;
    left: auto;
    inset-inline-start: 8px;
    inset-inline-end: auto;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.15;
    z-index: 2;
    white-space: nowrap;
    justify-content: flex-end;
    direction: rtl;
    text-align: right;
}

.ins-page-profile .mc-badge--offline {
    background: #fff4e6;
    color: #d97706;
    border: 1px solid rgba(230, 126, 34, 0.18);
    font-size: 13px;
}

.ins-page-profile .mc-badge-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex: 0 0 14px;
    display: block;
}

.ins-page-profile .mc-badge--live .mc-badge-icon {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
}

.ins-profile-header-row .ins-rate {
    font-size: 15px;
    margin-top: 10px;
}

.mc-category-strip {
    background: #EBF1FF;
}
.ins-profile-role {
    color: var(--ins-primary);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 24px;
    margin-top: 5px;
}

.ins-profile-quote {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 100%;
}

.ins-profile-section-title {
    font-size: 20px;
    font-weight: 900;
    color: #000;
    margin-bottom: 16px;
}

.ins-profile-bio {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.95;
    margin-bottom: 35px;
    max-width: 100%;
}

.ins-profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    max-width: 100%;
}

.ins-profile-image {
    width: 300px;
    height: 299px;
    object-fit: cover;
    border-radius: 24px;
}

.ins-courses-wrap {
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.ins-courses-title {
    margin: 0 0 30px;
    color: var(--ins-text);
    font-size: 22px;
    font-weight: 900;
        margin-bottom: 57px;
 
}
.ins-courses-title span {
    color: var(--ins-primary);
}

.ins-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 296px); /* Exact width from Figma */
    gap: 14px;
    margin-bottom: 100px;
    justify-content: start;
}

.ins-page-profile .mc-card {
    width: 296px;
    height: 350px;
    border-radius: 8px;
    border: 1px solid var(--ins-border);
    padding-bottom: 16px;
}

.ins-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px 30px;
}
.ins-empty2 {
    display:block !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px 30px;
}

.ins-empty img {
    width: 200px;
    max-width: 70%;
    margin-bottom: 12px;
}

.ins-empty h3 {
    margin: 0 0 6px;
    color: var(--ins-text);
    font-size: 30px;
    font-weight: 900;
}

.ins-empty p {
    margin: 0;
    color: var(--ins-muted);
    font-size: 22px;
    font-weight: 600;
}

.ins-page.is-empty .ins-course-grid {
    display: none;
}

.ins-page.is-empty .ins-empty {
    display: flex;
}

/* Responsive rules */
@media (max-width: 1200px) {
    .ins-layout {
        grid-template-columns: 1fr;
    }

    .ins-filter-box {
        position: static;
    }

    .ins-profile-hero {
        grid-template-columns: 1fr;
    }

    .ins-profile-name {
        font-size: 34px;
    }

    .ins-profile-role {
        font-size: 22px;
    }

    .ins-profile-text {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .ins-card-header {
        align-items: center;
    }

    .ins-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ins-shell {
        width: calc(100% - 24px);
    }

    .ins-layout {
        grid-template-columns: 1fr;
    }

    .ins-filter-title {
        font-size: 18px;
    }

    .ins-filter-field label {
        font-size: 13px;
    }

    .ins-filter-field select {
        font-size: 13px;
    }

    .ins-teacher-name {
        font-size: 22px;
    }

    .ins-teacher-role {
        font-size: 14px;
    }

    .ins-teacher-bio {
        font-size: 13px;
    }

    .ins-more-link {
        font-size: 14px;
    }

    .ins-btn {
        font-size: 13px;
        padding: 7px 10px;
    }

    .ins-head h1 {
        font-size: 24px;
    }

    .ins-course-grid {
        grid-template-columns: 1fr;
    }

    .ins-profile-name {
        font-size: 28px;
    }

    .ins-profile-role {
        font-size: 18px;
    }

    .ins-profile-text {
        font-size: 15px;
    }
}
.mc-category-strip {
    
    font-weight: 700 !important;}
    .ins-profile-name {
     font-size: 24px !important;
    font-weight: 700;
 }