/**
 * Public teacher profile (/main/ogretmen/{id}) — RTL, CyberQtech
 */

.cyberqtech-site.cq-teacher-profile-page .teacher-public {
    --tp-font: var(--apprimaxlms-font);
    --tp-heading: #0f172a;
    --tp-muted: #475569;
    --tp-surface: #f8fafc;
    font-family: var(--tp-font);
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(180deg, var(--tp-surface) 0%, #f1f5f9 42%, #ffffff 100%);
    position: relative;
    overflow: clip;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 75% 48% at 100% 0%, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 55% 40% at 0% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public > * {
    position: relative;
    z-index: 1;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public .container {
    max-width: 1140px;
}

/* —— Toolbar: breadcrumb + back —— */
.cyberqtech-site.cq-teacher-profile-page .teacher-public__toolbar {
    padding: 1rem 0 0.25rem;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__toolbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__breadcrumb {
    margin: 0;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0.45rem 0.85rem;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tp-muted);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__crumbs a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__crumbs a:hover {
    color: var(--color-heading);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__crumbs li:not(:last-child)::after {
    content: "/";
    margin-inline-start: 0.5rem;
    color: #94a3b8;
    font-weight: 400;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__crumbs li[aria-current="page"] {
    color: var(--tp-heading);
    font-weight: 600;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tp-muted);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__back:hover {
    color: var(--color-primary);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__back i {
    font-size: 1.1rem;
}

/* —— Main layout —— */
.cyberqtech-site.cq-teacher-profile-page .teacher-public__section {
    padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2.25rem);
    align-items: start;
}

@media (min-width: 992px) {
    .cyberqtech-site.cq-teacher-profile-page .teacher-public__shell {
        grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 2.75rem);
    }
}

/* —— Photo / avatar —— */
.cyberqtech-site.cq-teacher-profile-page .teacher-public__photo-card {
    padding: 0.25rem;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__avatar-ring {
    padding: 4px;
    border-radius: 24px;
    background: linear-gradient(
        145deg,
        rgba(var(--color-primary-rgb), 0.35) 0%,
        rgba(99, 102, 241, 0.2) 50%,
        rgba(14, 165, 233, 0.15) 100%
    );
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__photo-inner {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 380px;
    background: #e2e8f0;
    border: 3px solid #fff;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* —— Sidebar stats —— */
.cyberqtech-site.cq-teacher-profile-page .teacher-public__stats {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    font-size: 1.15rem;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
    flex-shrink: 0;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__stat-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tp-muted);
    line-height: 1.4;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__stat-text strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--tp-heading);
}

/* —— Content panel —— */
.cyberqtech-site.cq-teacher-profile-page .teacher-public__panel {
    border-radius: 22px;
    padding: clamp(1.35rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.98);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 12px 36px rgba(15, 23, 42, 0.07),
        0 0 0 1px rgba(15, 23, 42, 0.04);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__intro {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.08);
    border-radius: 999px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.14);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__title {
    margin: 0;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--tp-heading);
}

/* —— Content blocks —— */
.cyberqtech-site.cq-teacher-profile-page .teacher-public__block {
    margin-bottom: 1.75rem;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__block:last-of-type {
    margin-bottom: 0;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__block-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tp-heading);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__block-title i {
    font-size: 1.2rem;
    color: var(--color-primary);
    opacity: 0.9;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio p {
    margin-bottom: 0.85rem;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio p:last-child {
    margin-bottom: 0;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio ul,
.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio ol {
    margin: 0 0 0.85rem 1.15rem;
    padding: 0;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio li {
    margin-bottom: 0.35rem;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio a:hover {
    color: var(--color-heading);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio h2,
.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio h3,
.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio h4 {
    margin: 1rem 0 0.45rem;
    font-weight: 700;
    color: var(--tp-heading);
    line-height: 1.35;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio h2:first-child,
.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio h3:first-child,
.cyberqtech-site.cq-teacher-profile-page .teacher-public__bio h4:first-child {
    margin-top: 0;
}

/* —— Courses list —— */
.cyberqtech-site.cq-teacher-profile-page .teacher-public__courses {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-card {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem;
    text-decoration: none !important;
    color: inherit !important;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 16px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-card:hover {
    background: #fff;
    border-color: rgba(var(--color-primary-rgb), 0.22);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-thumb {
    flex-shrink: 0;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-title {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--tp-heading);
    line-height: 1.35;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-card:hover .teacher-public__course-title {
    color: var(--color-primary);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--tp-muted);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-cta i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__course-card:hover .teacher-public__course-cta i {
    transform: translateX(-3px);
}

/* —— Contact —— */
.cyberqtech-site.cq-teacher-profile-page .teacher-public__block--contact {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 576px) {
    .cyberqtech-site.cq-teacher-profile-page .teacher-public__contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tp-heading);
    text-decoration: none !important;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__contact-link:hover {
    background: rgba(var(--color-primary-rgb), 0.05);
    border-color: rgba(var(--color-primary-rgb), 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    font-size: 1.1rem;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.22);
    flex-shrink: 0;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__contact-icon--mail {
    background: linear-gradient(145deg, #da074c 0%, #b8063f 100%);
    box-shadow: 0 4px 12px rgba(218, 7, 76, 0.25);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__contact-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tp-muted);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__contact-value {
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-word;
}

/* —— Footer actions —— */
.cyberqtech-site.cq-teacher-profile-page .teacher-public__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 12px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__btn--ghost {
    color: var(--tp-muted);
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__btn--ghost:hover {
    color: var(--color-primary);
    border-color: rgba(var(--color-primary-rgb), 0.3);
    background: rgba(var(--color-primary-rgb), 0.04);
}

.cyberqtech-site.cq-teacher-profile-page .teacher-public__btn--primary {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .cyberqtech-site.cq-teacher-profile-page .teacher-public__contact-link:hover,
    .cyberqtech-site.cq-teacher-profile-page .teacher-public__course-card:hover {
        transform: none;
    }

    .cyberqtech-site.cq-teacher-profile-page .teacher-public__course-card:hover .teacher-public__course-cta i {
        transform: none;
    }
}
