.teachin-detail-main {
    background-color: #f5f7fa;
    min-height: calc(100vh - 200px);
    padding-bottom: 1rem;
}

.teachin-sign-result-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    margin-bottom: 2rem;
    padding: 2rem;
}

.teachin-sign-result-heading {
    align-items: center;
    border-bottom: 1px solid #edf0f4;
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.teachin-sign-result-heading h1 {
    color: #1f2937;
    font-size: 24px;
    margin: 0 0 0.35rem;
}

.teachin-sign-result-heading p {
    color: #64748b;
    margin: 0;
}

.teachin-sign-result-icon {
    align-items: center;
    background: #e8f7ee;
    border-radius: 50%;
    color: #16803c;
    display: flex;
    flex: 0 0 54px;
    font-size: 30px;
    font-weight: 700;
    height: 54px;
    justify-content: center;
}

.teachin-sign-result-card.status-error .teachin-sign-result-icon {
    background: #fff1f0;
    color: #cf1322;
}

.teachin-sign-result-section {
    border-bottom: 1px solid #edf0f4;
    padding: 1.5rem 0;
}

.teachin-sign-result-section h2 {
    color: #1f2937;
    font-size: 17px;
    margin: 0 0 1rem;
}

.teachin-sign-result-grid {
    display: grid;
    gap: 1rem 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.teachin-sign-result-grid > div {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 84px minmax(0, 1fr);
}

.teachin-sign-result-grid dt {
    color: #64748b;
}

.teachin-sign-result-grid dd {
    color: #1f2937;
    margin: 0;
    overflow-wrap: anywhere;
}

.teachin-sign-result-actions {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    padding-top: 1.5rem;
}

.teachin-sign-result-back {
    color: #64748b;
    text-decoration: none;
}

.teachin-sign-result-back:hover {
    color: var(--portal-accent-link, #0066cc);
}

@media (max-width: 768px) {
    .teachin-sign-result-grid {
        grid-template-columns: 1fr;
    }
}

.breadcrumb {
    color: #666;
    font-size: 14px;
    margin-bottom: 1.5rem;
    padding: 1rem 0 0;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--portal-accent-link, #0066cc);
}

.separator {
    color: #999;
    margin: 0 0.5rem;
}

.current {
    color: var(--portal-accent-link, #0066cc);
    font-weight: 500;
}

.teachin-banner {
    background: #ffffff;
    border-radius: 8px;
    color: #333;
    margin-bottom: 1.5rem;
    padding: 2rem 2rem;
    min-height: 90px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.apply-btn {
    display: inline-block;
    flex-shrink: 0;
    padding: 0.55rem 1.4rem;
    background-color: var(--portal-accent-primary, #0066cc);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
}

.apply-btn:hover {
    background-color: var(--portal-accent-primary-hover, #0052a3);
}

.apply-btn.disabled {
    background-color: #eef2f7;
    color: #98a2b3;
    cursor: default;
}

.banner-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.banner-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.view-count {
    font-size: 12px;
    color: #666;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.share-btn:hover {
    border-color: var(--portal-accent-primary, #0066cc);
    color: var(--portal-accent-primary, #0066cc);
}

.banner-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    align-self: center;
}

.teachin-detail-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    padding: 2rem;
}

.safety-tip {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
}

.tip-title {
    color: #e65100;
    font-weight: 600;
}

.teachin-meta {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.meta-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1rem;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.25rem;
}

.meta-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.meta-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    word-break: break-all;
}

.teachin-source {
    border-bottom: 1px dashed #d9e1ef;
    border-top: 1px dashed #d9e1ef;
    color: #666;
    font-size: 14px;
    margin-bottom: 1.5rem;
    padding: 0.85rem 0;
}

.source-label {
    color: #333;
    font-weight: 500;
}

.teachin-source a {
    color: var(--portal-accent-link, #0066cc);
    text-decoration: none;
}

.teachin-source a:hover {
    text-decoration: underline;
}

.section-title {
    border-bottom: 2px solid var(--portal-accent-border, #0066cc);
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.8rem;
}

.content-body {
    color: #333;
    line-height: 1.8;
}

.content-body p {
    margin-bottom: 1rem;
}

.content-body img {
    height: auto;
    max-width: 100%;
}

.content-body table {
    border-collapse: collapse;
    width: 100%;
}

.content-body th,
.content-body td {
    border: 1px solid #ddd;
    padding: 0.65rem;
}

.btn-registration {
    border: none;
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 1rem;
    padding: 0.9rem 1.25rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.student-reg {
    background-color: var(--portal-accent-primary, #0066cc);
}

.btn-registration:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.article-action-row {
    margin-top: 1.5rem;
    text-align: center;
}

.back-link {
    color: var(--portal-list-link-color, var(--portal-accent-link, #0066cc));
    text-decoration: none;
}

.back-link:hover {
    color: var(--portal-list-link-hover-color, var(--portal-accent-link-hover, #0052a3));
    text-decoration: underline;
}

.divider {
    background-color: #e9ecef;
    height: 1px;
    margin: 2rem 0;
}

.teachin-jobs-section {
    margin-top: 1.75rem;
}

.teachin-jobs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.teachin-jobs-count {
    color: #667085;
    font-size: 13px;
    margin-bottom: 1.25rem;
}

.teachin-job-table-wrap {
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    overflow-x: auto;
}

.teachin-job-table {
    background: #fff;
    border-collapse: collapse;
    min-width: 680px;
    width: 100%;
}

.teachin-job-table thead {
    background-color: #f6f8fb;
}

.teachin-job-table th {
    border-bottom: 1px solid #e8edf4;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 16px;
    text-align: left;
    white-space: nowrap;
}

.teachin-job-table td {
    border-bottom: 1px solid #eef2f6;
    color: #667085;
    font-size: 14px;
    padding: 16px;
    vertical-align: middle;
}

.teachin-job-table tbody {
    counter-reset: teachin-job-row;
}

.teachin-job-table tbody tr {
    counter-increment: teachin-job-row;
}

.teachin-job-table tbody tr:hover {
    background-color: #fafcff;
}

.teachin-job-table tbody tr:last-child td {
    border-bottom: none;
}

.teachin-job-col-index,
.teachin-job-index {
    text-align: center;
    white-space: nowrap;
    width: 72px;
}

.teachin-job-col-major {
    width: 220px;
}

.teachin-job-col-action,
.teachin-job-action {
    text-align: center;
    white-space: nowrap;
    width: 130px;
}

.teachin-job-index-value {
    color: #101828;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    min-width: 2ch;
}

.teachin-job-index-value::before {
    content: counter(teachin-job-row, decimal-leading-zero);
}

.teachin-job-title a,
.teachin-job-title span {
    color: #101828;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}

.teachin-job-title a {
    color: var(--portal-accent-link, #0066cc);
}

.teachin-job-title a:hover {
    color: var(--portal-accent-link-hover, #0052a3);
    text-decoration: underline;
}

.teachin-job-meta {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 0.35rem;
    line-height: 1.5;
    margin-top: 0.35rem;
}

.teachin-job-meta span {
    position: relative;
}

.teachin-job-meta span:not(:last-child)::after {
    color: #c2cad6;
    content: "|";
    margin-left: 0.35rem;
}

.teachin-job-salary {
    color: #f08c00;
    font-weight: 700;
}

.teachin-job-major {
    color: #344054;
    line-height: 1.6;
}

.teachin-job-apply {
    background: var(--portal-accent-primary, #0066cc);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    min-width: 92px;
}

.teachin-job-apply.is-applied,
.teachin-job-apply:disabled {
    background: #c5ced8;
    cursor: not-allowed;
}

.teachin-job-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 0.45rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #97a1ad;
    font-size: 13px;
}

.teachin-job-expired {
    background: #eef1f4;
    border-color: #d7dde5;
    color: #8a94a3;
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 18px;
    }

    .meta-row {
        grid-template-columns: 1fr;
    }

    .teachin-jobs-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .teachin-jobs-count {
        margin-bottom: 0;
    }

    .teachin-job-table th,
    .teachin-job-table td {
        padding: 12px;
    }

    .teachin-job-col-index,
    .teachin-job-index {
        width: 60px;
    }
}
