.teacher-public-page {
    background: linear-gradient(180deg, #f3f6ff 0%, #fdfdff 60%, #f7fbff 100%);
    padding: 56px 16px 90px;
}

.teacher-public-container {
    max-width: 1160px;
    margin: 0 auto;
}

.teacher-public-hero {
    background: #0d1330;
    border-radius: 6px;
    padding: 36px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    color: #f1f5ff;
    box-shadow: 0 28px 70px rgba(7, 15, 40, 0.45);
    align-items: normal;
}

.teacher-hero-left {
    flex: 1 1 45%;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.teacher-identity {
    display: flex;
    align-items: center;
    gap: 24px;
}

.teacher-avatar {
    flex-shrink: 0;
}

.teacher-avatar img,
.teacher-avatar .avatar-placeholder {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    object-fit: cover;
    display: block;
    box-shadow: 0 16px 36px rgba(8, 16, 44, 0.55);
}

.teacher-avatar .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
}

.teacher-hero-info h1 {
    font-size: 20px;
    margin: 0px 0 10px;
}

.teacher-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: #94a3c5;
}

.teacher-bio {
    margin: 0 0 10px;
    color: #c6d5ff;
    font-size: 13px;
    line-height: 1.6;
}

.teacher-hero-meta {
    display: flex;
    gap: 16px;
    width: 100%;
    flex-wrap: nowrap;
}

.teacher-hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8ff;
    flex: 1 1 0;
    min-height: 64px;
}

.teacher-hero-meta .meta-item.stacked {
    align-items: center;
}

.meta-item .meta-label {
    display: block;
    font-size: 11px;
    color: #94a3c5;
    text-transform: capitalize;
    margin-bottom: -5px;
}

.teacher-hero-meta strong {
    font-size: 12px;
    color: #f8fbff;
}

.teacher-hero-meta svg {
    color: #6fd3ff;
}

.teacher-hero-right {
    flex: 1 1 52%;
    max-width: 52%;
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 16px;
    align-items: stretch;
    min-width: 260px;
}

.teacher-stat-card {
    background: rgba(15, 23, 55, 0.6);
    border-radius: 20px;
    padding: 18px 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    justify-content: center;
}

.teacher-stat-card span {
    color: #9fb3d9;
    letter-spacing: 0.16em;
    font-size: 11px;
    text-transform: uppercase;
}

.teacher-stat-card strong {
    display: block;
    font-size: 28px;
    margin-top: 0;
}

.teacher-stat-card .stat-rating {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: anchor-center;
}

.stat-rating-count {
    font-size: 12px;
    color: #94a3c5;
}

.teacher-course-section {
    margin-top: 44px;
    padding: 0px;
}

.teacher-course-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
}

.teacher-course-header h2 {
    font-size: 26px;
    margin: 0;
    color: #0f172a;
}

.teacher-course-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.teacher-course-list .info-before-description {
    margin: 6px 0;
}

.teacher-course-list .etinion-course-info {
    margin-bottom: 4px;
}

.teacher-course-list .etinion-course-meta-inline,
.teacher-course-list .etinion-course-footer-inline {
    display: none;
}

.teacher-empty-state {
    border: 1px dashed #cbd5f5;
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
    color: #475569;
    background: #f8fbff;
}

.teacher-empty-state svg {
    color: #94a3b8;
    margin-bottom: 16px;
}

.teacher-course-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.teacher-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    color: #4c51bf;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.teacher-pill.subtle {
    background: rgba(148, 163, 184, 0.25);
    color: #475569;
}

.teacher-course-pagination {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 6px 14px;
}

.pagination-pages a,
.pagination-pages span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    color: #0f172a;
}

.pagination-pages .active {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.pagination-link {
    color: #0f172a;
    font-weight: 600;
}

.teacher-public-empty {
    padding: 80px 16px;
}

.teacher-empty-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.1);
}

.teacher-empty-card h1 {
    margin-bottom: 8px;
}

.teacher-empty-card p {
    color: #64748b;
}

@media (max-width: 1024px) {
    .teacher-public-hero {
        padding: 30px;
    }

    .teacher-hero-left,
    .teacher-hero-right {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }

    .teacher-identity {
        align-items: flex-start;
    }

    .teacher-hero-meta {
        flex-wrap: wrap;
    }

    .teacher-hero-right {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

    .teacher-hero-meta {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }

    .teacher-avatar img,
    .teacher-avatar .avatar-placeholder {
        width: 88px;
        height: 88px;
    }

    .teacher-course-section {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .teacher-public-page {
        padding: 40px 12px 72px;
    }

    .teacher-public-hero {
        padding: 28px;
        flex-direction: column;
    }

    .teacher-avatar img,
    .teacher-avatar .avatar-placeholder {
        width: 72px;
        height: 72px;
    }

    .teacher-identity {
        flex-direction: row;
        gap: 12px;
    }

    .teacher-hero-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .teacher-hero-meta .meta-item {
        flex: 1 1 160px;
    }

    .teacher-hero-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .teacher-hero-right {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
        width: 100%;
    }

    .teacher-course-section {
        padding: 0px;
    }

    .teacher-course-pagination {
        flex-direction: column;
    }

    .teacher-course-list .etinion-course-card.list-mode {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0px 0 !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .teacher-course-list .etinion-course-card.list-mode .etinion-course-cover {
        width: 120px !important;
        min-width: 120px !important;
        height: 120px !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    .teacher-course-list .etinion-course-card.list-mode .etinion-course-cover img {
        object-fit: cover !important;
    }

    .teacher-course-list .etinion-course-card.list-mode .etinion-course-body {
        padding: 0 !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    .teacher-course-list .etinion-course-card.list-mode .etinion-course-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .teacher-course-list .etinion-course-card.list-mode .etinion-course-info,
    .teacher-course-list .etinion-course-card.list-mode .etinion-course-description,
    .teacher-course-list .etinion-course-card.list-mode .etinion-course-meta-info {
        display: none !important;
    }

    .teacher-course-list .etinion-course-meta-inline {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 10px !important;
        color: #4b5563 !important;
    }

    .teacher-course-list .etinion-meta-inline-item {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .teacher-course-list .etinion-meta-inline-item svg {
        width: 10px !important;
        height: 10px !important;
    }

    .teacher-course-list .etinion-course-footer-inline {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .teacher-course-list .etinion-course-pricing {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .teacher-course-list .etinion-course-price-rating {
        display: none !important;
    }

    .teacher-course-list .etinion-course-rating.inline-rating {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .teacher-course-list .etinion-course-rating.inline-rating .rating-star {
        width: 12px !important;
        height: 12px !important;
    }

    .teacher-course-list .etinion-course-rating.inline-rating .rating-inline-count {
        font-size: 10px !important;
        color: #6b7280 !important;
    }

    .teacher-course-list .etinion-course-cover .etinion-course-category-badge {
        top: 6px !important;
        left: 6px !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    .teacher-course-card .etinion-course-rating {
    flex-direction: row !important;
    margin-right: 10px !important;
}
}

@media (max-width: 768px) {
      .teacher-hero-right {
        grid-template-columns: repeat(1, minmax(140px, 1fr));
    }
}