@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #1688d9;
    --blue2: #0870bd;
    --cyan: #19b8e8;
    --orange: #f26522;
    --navy: #071528;
    --navy2: #0c1d34;
    --text: #172235;
    --muted: #6c7a8d;
    --light: #f5f8fc;
    --border: #e4eaf1;
    --white: #fff;
}

/* ==============================
   TEACHER DETAILS SECTION
================================ */

.teacher-details-section {
    padding: 85px 0;
    background: var(--light);
    font-family: "DM Sans", sans-serif;
    overflow: hidden;
}

.teacher-details-container {
    width: 100%;
    max-width: 1150px;
    padding: 0 20px;
    margin: auto;
}

/* Breadcrumb */

.teacher-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--muted);
}

.teacher-breadcrumb a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    transition: .3s;
}

.teacher-breadcrumb a:hover {
    color: var(--orange);
}

.teacher-breadcrumb span {
    color: var(--muted);
}

/* ==============================
   PROFILE CARD
================================ */

.teacher-profile-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(7, 21, 40, .06);
}

/* Image */

.teacher-profile-image {
    position: relative;
    min-height: 520px;
    background: #eaf2fa;
    overflow: hidden;
}

.teacher-profile-image img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center top;
    transition: transform .5s ease;
}

.teacher-profile-card:hover .teacher-profile-image img {
    transform: scale(1.04);
}

.teacher-image-overlay {
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(transparent, rgba(7, 21, 40, .35));
    pointer-events: none;
}

/* Profile Content */

.teacher-profile-content {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.teacher-profile-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 9px 17px;
    border-radius: 30px;
    color: var(--blue);
    background: rgba(22, 136, 217, .09);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.teacher-profile-content h1 {
    font-family: "Manrope", sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 12px;
}

.teacher-designation {
    color: var(--orange);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
}

.teacher-subject-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 15px;
}

.teacher-subject-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(22, 136, 217, .1);
    color: var(--blue);
    border-radius: 10px;
    font-size: 19px;
}

.teacher-subject-box strong {
    display: block;
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 3px;
}

.teacher-subject-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

/* Experience */

.teacher-experience-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(242, 101, 34, .07);
    border: 1px solid rgba(242, 101, 34, .15);
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 25px;
}

.teacher-experience-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(242, 101, 34, .12);
    color: var(--orange);
    font-size: 19px;
}

.teacher-experience-box strong {
    display: block;
    color: var(--navy);
    font-size: 14px;
}

.teacher-experience-box span {
    color: var(--muted);
    font-size: 13px;
}

/* Short Description */

.teacher-short-description {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
    margin: 0;
}

/* ==============================
   ABOUT TEACHER
================================ */

.teacher-about-section {
    margin-top: 35px;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(7, 21, 40, .03);
}

.teacher-about-heading {
    margin-bottom: 20px;
}

.teacher-about-heading span {
    display: inline-block;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.teacher-about-heading h2 {
    font-family: "Manrope", sans-serif;
    color: var(--navy);
    font-size: 27px;
    font-weight: 800;
    margin: 0;
}

.teacher-about-content {
    color: var(--muted);
    font-size: 15px;
    line-height: 2;
    overflow-wrap: anywhere;
}

/* ==============================
   BACK BUTTON
================================ */

.teacher-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    padding: 13px 24px;
    color: var(--white);
    background: var(--blue);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

.teacher-back-btn:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==============================
   RESPONSIVE
================================ */

@media(max-width: 991px) {

    .teacher-profile-card {
        grid-template-columns: 330px 1fr;
    }

    .teacher-profile-content {
        padding: 35px 28px;
    }

    .teacher-profile-content h1 {
        font-size: 30px;
    }

    .teacher-profile-image {
        min-height: 480px;
    }

}

@media(max-width: 767px) {

    .teacher-details-section {
        padding: 55px 0;
    }

    .teacher-profile-card {
        grid-template-columns: 1fr;
    }

    .teacher-profile-image {
        min-height: 0;
        height: 400px;
    }

    .teacher-profile-content {
        padding: 30px 25px;
    }

    .teacher-profile-content h1 {
        font-size: 29px;
    }

    .teacher-about-section {
        padding: 28px 23px;
        margin-top: 25px;
    }

    .teacher-about-heading h2 {
        font-size: 23px;
    }

}

@media(max-width: 480px) {

    .teacher-profile-image {
        height: 330px;
    }

    .teacher-profile-content {
        padding: 25px 20px;
    }

    .teacher-profile-content h1 {
        font-size: 25px;
    }

    .teacher-breadcrumb {
        font-size: 12px;
    }

    .teacher-about-section {
        padding: 23px 18px;
    }

    .teacher-about-content {
        font-size: 14px;
    }

}


/* ==============================
   CONNECT WITH TEACHER
================================ */

.teacher-connect-section {
    margin-top: 35px;
    padding: 55px 30px;
    border-radius: 22px;
    background: linear-gradient(
        120deg,
        var(--navy),
        var(--navy2)
    );
    text-align: center;
    position: relative;
    overflow: hidden;
}

.teacher-connect-section::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    top: -140px;
    right: -70px;
}

.teacher-connect-section::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    bottom: -120px;
    left: -60px;
}

.teacher-connect-content {
    max-width: 700px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.teacher-connect-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: rgba(25,184,232,.15);
    color: var(--cyan);
    font-size: 25px;
}

.teacher-connect-label {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.teacher-connect-section h2 {
    font-family: "Manrope", sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin: 15px 0;
}

.teacher-connect-section h2 span {
    color: var(--cyan);
}

.teacher-connect-section p {
    max-width: 580px;
    margin: 0 auto;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.9;
}

.teacher-connect-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.teacher-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

.primary-btn {
    background: var(--blue);
    color: #fff;
}

.primary-btn:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-4px);
}

.secondary-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
}

.secondary-btn:hover {
    background: #fff;
    color: var(--navy);
    transform: translateY(-4px);
}

@media(max-width: 575px) {

    .teacher-connect-section {
        padding: 40px 20px;
        margin-top: 25px;
    }

    .teacher-connect-section h2 {
        font-size: 26px;
    }

    .teacher-connect-section p {
        font-size: 14px;
    }

    .teacher-connect-buttons {
        flex-direction: column;
    }

    .teacher-connect-btn {
        width: 100%;
    }
}