.cert-instructors-section {
    padding: 68px 0;
    background: #101b2d;
}

.cert-instructors-heading {
    margin-bottom: 34px;
}

.cert-instructors-heading .subtitle {
    color: #a9bfd9;
}

.cert-instructors-heading .rbt-title {
    margin: 10px 0;
    color: #fff;
}

.cert-instructors-heading p {
    margin: 0;
    color: #bdc9d8;
}

.cert-instructor-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 12px;
    background: rgb(255 255 255 / 6%);
}

.cert-instructor-card__profile,
.cert-instructor-card__initials {
    display: grid;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
}

.cert-instructor-card__profile {
    background: #253750;
}

.cert-instructor-card__profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-instructor-card__initials,
.about-us-instructors__placeholder {
    display: grid;
    place-items: center;
    background: #f9ecef;
    color: var(--color-primary, #ba213f);
    font-weight: 600;
}

.cert-instructor-card__initials {
    font-size: 1.4rem;
}

.cert-instructor-card__body {
    min-width: 0;
}

.cert-instructor-card__body h3 {
    margin: 2px 0 5px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

.cert-instructor-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.cert-instructor-card__body h3 a:hover,
.cert-instructor-card__body h3 a:focus-visible {
    color: #f1b6c2;
}

.cert-instructor-card__title,
.cert-instructor-card__bio,
.cert-instructor-card__experience {
    color: #c3cedb;
    font-size: 0.88rem;
}

.cert-instructor-card__title {
    margin: 0 0 10px;
}

.cert-instructor-card__specialization {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgb(157 192 235 / 14%);
    color: #d7e8ff;
    font-size: 0.75rem;
}

.cert-instructor-card__bio {
    margin: 0 0 10px;
    line-height: 1.55;
}

.cert-instructor-card__experience {
    margin: 0 0 12px;
}

.cert-instructor-card__course,
.cert-instructor-card__profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f1b6c2;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.cert-instructor-card__course:hover,
.cert-instructor-card__profile-link:hover {
    color: #fff;
}

.cert-instructor-card__profile-link {
    margin-top: 12px;
}

.about-us-instructors__placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    font-size: 3rem;
}

.cert-instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.cert-instructor-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
}

.cert-instructor-photo--placeholder {
    display: grid;
    place-items: center;
    background: #f9ecef;
    color: var(--color-primary, #ba213f);
    font-size: 1.7rem;
    font-weight: 600;
}

.cert-instructor-grid .cert-instructor-card {
    border-color: #e7e9ed;
    background: #fff;
    color: #343a46;
}

.cert-instructor-grid .cert-instructor-card__body h3 {
    color: #171d2d;
}

.cert-instructor-grid .cert-instructor-card__title,
.cert-instructor-grid .cert-instructor-card__bio,
.cert-instructor-grid .cert-instructor-card__experience {
    color: #687184;
}

.cert-instructor-grid .cert-instructor-card__course {
    color: var(--color-primary, #ba213f);
}

.instructor-profile {
    --instructor-primary: var(--color-primary, #ba213f);
    --instructor-green: var(--color-secondary, #7db329);
    --instructor-ink: #191d27;
    --instructor-muted: #666b75;
    --instructor-border: #dedfe2;
    color: var(--instructor-ink);
    font-family: var(--font-primary, "Cabin", sans-serif);
    font-size: 14px;
}

.instructor-profile .cert-course-banner__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.instructor-profile .cert-course-banner__title {
    margin: 0;
    max-width: 100%;
    font-weight: 600;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.instructor-profile .cert-course-banner__summary {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgb(255 255 255 / 90%);
    font-size: 18px;
    line-height: 1.65;
    text-shadow: 0 2px 10px rgb(0 0 0 / 35%);
}

.instructor-profile .cert-course-banner__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.instructor-profile .cert-course-banner__facts span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 999px;
    background: rgb(255 255 255 / 12%);
    color: #fff;
    font-weight: 600;
    line-height: 1.25;
    backdrop-filter: blur(7px);
}

.instructor-profile .cert-course-banner__facts i {
    color: #f5d6a1;
    font-size: 0.82rem;
}

.instructor-profile__body {
    padding: 0 0 52px;
    background: #fff;
}

.instructor-profile__content {
    min-width: 0;
    padding: 32px 18px 0;
}

.instructor-profile .cert-tabs {
    padding-right: 18px;
    padding-left: 18px;
}

.instructor-profile__intro .cert-intro__content h1 {
    margin: 0;
    color: #182132;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 600;
    line-height: 1.15;
}

.instructor-profile__portrait-card {
    position: relative;
    width: min(100%, 270px);
    height: 300px;
    justify-self: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f3f5;
    box-shadow: 0 18px 45px rgb(24 33 50 / 12%);
}

.instructor-profile__portrait-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.instructor-profile__portrait-caption {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 11px 13px;
    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 8px;
    background: rgb(255 255 255 / 90%);
    box-shadow: 0 6px 18px rgb(24 33 50 / 10%);
    backdrop-filter: blur(8px);
}

.instructor-profile__portrait-caption strong {
    display: block;
    margin-bottom: 5px;
    color: #182132;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.instructor-profile__portrait-caption p {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    color: #596579;
    line-height: 1.35;
}

.instructor-profile__portrait-caption p i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--instructor-primary);
}

.instructor-profile__tab-panel {
    min-width: 0;
}

.instructor-profile__tab-panel[hidden] {
    display: none !important;
}

.instructor-profile .cert-tabs .cert-top-tab:focus-visible {
    outline: 2px solid var(--instructor-primary);
    outline-offset: -2px;
}

.instructor-profile__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #f8e9ed, #e8eff7);
    color: var(--instructor-primary);
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 600;
}

.instructor-profile__biography {
    color: #5e626b;
    font-size: 0.9rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.instructor-profile__biography > :first-child {
    margin-top: 0;
}

.instructor-profile__biography > :last-child {
    margin-bottom: 0;
}

.instructor-profile__biography h2,
.instructor-profile__biography h3,
.instructor-profile__biography h4 {
    margin: 23px 0 10px;
    color: #252a34;
    font-size: 1.08rem;
    font-weight: 600;
}

.instructor-profile__biography ul,
.instructor-profile__biography ol {
    padding-left: 1.3rem;
}

.instructor-profile__biography li {
    margin: 0 0 9px;
    padding-left: 4px;
    font-size: 15px;
}

.instructor-profile__biography li::marker {
    color: var(--instructor-primary);
}

.instructor-profile__empty {
    color: var(--instructor-muted);
}

.instructor-profile__connect {
    margin-top: 26px;
}

.instructor-profile__connect h2,
.instructor-profile__biography-panel h2 {
    margin-bottom: 16px;
    color: #182132;
    font-size: 1.35rem;
    font-weight: 600;
}

.instructor-profile__links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.instructor-profile__links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #dedfe2;
    border-radius: 5px;
    background: #fff;
    color: #4a505b;
    text-decoration: none;
}

.instructor-profile__links a i {
    color: var(--instructor-primary);
}

.instructor-profile__links a:hover {
    border-color: #e3a8b4;
    color: var(--instructor-primary);
}

.instructor-profile__expertise-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e0e1e3;
    border-radius: 6px;
    background: #fff;
}

.instructor-profile__expertise-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #fff0f2;
    color: var(--instructor-primary);
}

.instructor-profile__expertise-card p {
    margin: 7px 0 0;
    color: #505560;
    line-height: 1.6;
}

.instructor-profile__credentials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.instructor-profile__credentials li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid #e0e1e3;
    border-radius: 5px;
    background: #fff;
    color: #555b65;
    line-height: 1.5;
}

.instructor-profile__credentials i {
    margin-top: 2px;
    color: var(--instructor-primary);
}

.instructor-profile-course {
    height: 100%;
}

.instructor-profile-course .thumbnail {
    aspect-ratio: 4 / 3;
}

.instructor-profile-course .thumbnail a,
.instructor-profile-course .thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
}

.instructor-profile-course .thumbnail img {
    object-fit: cover;
    transition: transform 0.2s ease;
}

.instructor-profile-course:hover .thumbnail img {
    transform: scale(1.03);
}

.instructor-profile-course .content .title {
    line-height: 1.35;
    font-weight: 600;
}

.instructor-profile-course .content .title a {
    color: #292e37;
    text-decoration: none;
}

.instructor-profile-course .content .title a:hover {
    color: var(--instructor-primary);
}

.instructor-profile-course__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: #667085;
    font-size: 0.78rem;
}

@media (max-width: 991.98px) {
    .instructor-profile .cert-course-banner__facts {
        gap: 7px;
    }

    .instructor-profile .cert-course-banner__facts span {
        font-size: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .instructor-profile .cert-course-banner__summary {
        margin-top: 14px;
        font-size: 0.9rem;
    }

    .instructor-profile .cert-course-banner__facts {
        gap: 6px;
        margin-top: 15px;
    }

    .instructor-profile .cert-course-banner__facts span {
        min-height: 30px;
        padding: 5px 9px;
        font-size: 0.7rem;
    }

    .instructor-profile__body {
        padding-bottom: 36px;
    }

    .instructor-profile__content {
        padding: 24px 0 0;
    }

    .instructor-profile .cert-tabs {
        gap: 20px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .instructor-profile__credentials {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .instructor-profile__portrait-card {
        width: min(100%, 180px);
        height: 210px;
    }

    .instructor-profile__portrait-caption {
        right: 6px;
        bottom: 6px;
        left: 6px;
        padding: 9px 10px;
    }

    .instructor-profile__portrait-caption strong {
        font-size: 0.9rem;
    }

    .instructor-profile__portrait-caption p {
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .instructor-profile-course .thumbnail img {
        transition: none;
    }
}
