:root {
    --p-brown: #b1593f; /* navbar/footer tonuna yakın */
    --p-orange: #c04f2d; /* buton/şerit */
    --p-cream: #fff7f3; /* açık zemin */
    --p-ink: #1f1f1f;
    --p-muted: rgba(31,31,31,.65);
}

.teacher-hero {
    position: relative;
    color: #1f1f1f;
    background: #f7f1ec;
    padding: 42px 0 32px;
    border-bottom: 1px solid rgba(192, 79, 45, 0.05);
    overflow: hidden;
}

.teacher-hero::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    top: -210px;
    right: -120px;
    background: radial-gradient(circle, rgba(192,79,45,0.10) 0%, rgba(192,79,45,0.00) 68%);
    pointer-events: none;
}

.teacher-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    left: -120px;
    bottom: -200px;
    background: radial-gradient(circle, rgba(250,165,85,0.08) 0%, rgba(250,165,85,0.00) 70%);
    pointer-events: none;
}

    .teacher-hero .container {
        position: relative;
        z-index: 1;
        max-width: 980px;
        margin: 0 auto;
        text-align: center;
        padding: 0 16px;
    }


.teacher-hero-inner {
    display: block;
}

.teacher-title {
    color: #1b1b1b;
    margin: 0 0 10px;
    font-size: clamp(1.95rem, 2.6vw, 2.7rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
}

.teacher-sub {
    color: #4a4643;
    font-size: 16px;
    line-height: 1.65;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.teacher-list {
    padding: 22px 0 60px;
    background: #fcfbfa;
}


@media (max-width: 768px) {
    .teacher-hero {
        padding: 34px 0 24px;
    }

    .teacher-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .teacher-sub {
        font-size: 15px;
        line-height: 1.55;
        max-width: 100%;
    }
}


/* Card */
.teacher-card {
    height: 100%;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(177,89,63,.20);
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.teacher-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.teacher-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

/* Avatar */
.teacher-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.teacher-avatar {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(192,79,45,.46), rgba(177,89,63,.30));
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    background: #fff;
}

.teacher-avatar-chip {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.18);
    color: var(--p-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

.teacher-avatar-fallback {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f1f1f;
    background: #fff;
    border: 1px solid rgba(192,79,45,.14);
    box-shadow: 0 8px 18px rgba(0,0,0,.07);
}

/* Info + strip */
.teacher-info {
    flex: 1 1 auto;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.teacher-strip {
    width: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(192,79,45,.55), rgba(192,79,45,.12));
    box-shadow: 0 0 0 6px rgba(192,79,45,.08);
    flex: 0 0 auto;
}

.teacher-text {
    min-width: 0;
}

.teacher-name {
    font-size: 1rem;
    font-weight: 750;
    color: var(--p-ink);
    line-height: 1.15;
}

.teacher-meta {
    font-weight: 700;
    color: var(--p-brown);
    margin-top: 3px;
    font-size: .92rem;
}

.teacher-area {
    margin-top: 4px;
    color: var(--p-muted);
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teacher-branch {
    margin-top: 8px;
    display: inline-flex;
    font-size: .82rem;
    color: rgba(31,31,31,.75);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px dashed rgba(177,89,63,.35);
    background: rgba(255,255,255,.55);
}

/* Detail button */
.teacher-detail-btn {
    display: inline-flex; /* <-- kritik */
    align-items: center; /* şimdi çalışacak */
    justify-content: center;
    gap: 6px; /* margin yerine daha temiz */
    white-space: nowrap; /* ok alt satıra düşmesin */

    padding: .35rem .80rem;
    border-radius: 999px;
    border: 1px solid #1f1f1f;
    background: transparent;
    color: #1f1f1f;
    font-weight: 500;
    font-size: .95rem; /* .99 yerine bir tık küçült, sığma artar */
    line-height: 1;
    box-shadow: none;
}

.teacher-detail-btn:hover {
    background: rgba(192,79,45,.12);
    transform: translateX(1px);
    border-color: #c04f2d;
    color: #c04f2d;
}

.teacher-detail-btn .arrow {
    margin-left: 0; /* gap kullanıyoruz */
    font-weight: 400;
    opacity: .85;
    line-height: 1;
    transform: translateY(1px);
}

/* Modal */
.teacher-modal {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(177,89,63,.25);
}

.teacher-modal-header {
    background: linear-gradient(90deg, rgba(177,89,63,.14), rgba(192,79,45,.10));
    border-bottom: 1px solid rgba(177,89,63,.18);
}

.teacher-modal-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--p-ink);
}

.teacher-modal-sub {
    color: rgba(31,31,31,.70);
    font-weight: 700;
    margin-top: 2px;
}

.teacher-modal-body {
    background: #fff;
}

.teacher-modal-photo {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.teacher-modal-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.teacher-modal-section {
    margin-bottom: 14px;
}

.sec-title {
    font-weight: 900;
    color: var(--p-brown);
    margin-bottom: 6px;
}

.sec-value {
    font-weight: 800;
    color: var(--p-ink);
}

.sec-p {
    margin: 0;
    color: rgba(31,31,31,.78);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(192,79,45,.10);
    border: 1px solid rgba(192,79,45,.22);
    color: var(--p-brown);
    font-weight: 800;
    font-size: .84rem;
}

.teacher-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.teacher-cta {
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--p-orange);
    border: 1px solid rgba(0,0,0,.06);
    color: #fff;
    font-weight: 900;
}

.teacher-cta:hover {
    color: #fff;
    filter: brightness(.97);
}

.teacher-ghost {
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid rgba(177,89,63,.28);
    background: #fff;
    color: var(--p-brown);
    font-weight: 900;
}

/* Responsive */
@media (max-width: 576px) {
    .teacher-card-body {
        padding: 14px;
        gap: 12px;
    }

    .teacher-avatar {
        width: 76px;
        height: 76px;
    }

    .teacher-detail-btn {
        padding: 10px 12px;
    }

    .teacher-modal-photo img {
        height: 260px;
    }
}
