:root {
    --main: #006400;
    --main-dark: #004b00;
    --main-soft: rgba(0, 100, 0, 0.08);
    --main-soft-2: rgba(0, 100, 0, 0.045);

    --text: #151515;
    --text-2: #333;
    --sub: #666;
    --muted: #999;

    --line: #e7e7e7;
    --line-2: #d8d8d8;

    --white: #fff;
    --bg: #f7f9f7;

    --shadow-xs: 0 4px 14px rgba(0, 0, 0, 0.045);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 18px 46px rgba(0, 0, 0, 0.13);
    --shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    background: #fff;
}

.instructor-page {
    position: relative;
    padding: 56px 22px 92px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(0, 100, 0, 0.08), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(0, 100, 0, 0.055), transparent 25%),
        linear-gradient(180deg, #fff 0%, #f8faf8 100%);
}

.instructor-page::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 30px;
    width: min(760px, 88vw);
    height: min(760px, 88vw);
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 100, 0, 0.035), transparent 64%);
    pointer-events: none;
}

.instructor-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.instructor-hero {
    margin-bottom: 30px;
    text-align: center;
    animation: fadeUp 0.65s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 0 15px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--main-soft);
    color: var(--main);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.055em;
}

.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--main);
    box-shadow: 0 0 0 6px rgba(0, 100, 0, 0.12);
}

.instructor-hero h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(31px, 4vw, 50px);
    font-weight: 950;
    letter-spacing: -0.075em;
    line-height: 1.12;
}

.instructor-hero p {
    max-width: 690px;
    margin: 13px auto 0;
    color: var(--sub);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.72;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.instructor-filter-panel {
    position: sticky;
    top: 0;
    z-index: 40;
    margin-bottom: 24px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.055);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: fadeUp 0.75s ease both;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.22s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 100, 0, 0.32);
    color: var(--main);
    box-shadow: var(--shadow-xs);
}

.filter-btn.active {
    background: var(--main);
    border-color: var(--main);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 100, 0, 0.24);
}

.instructor-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--sub);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.04em;
    animation: fadeUp 0.85s ease both;
}

.status-left strong {
    color: var(--main);
    font-weight: 950;
}

.status-right {
    color: var(--muted);
}

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    animation: fadeUp 0.95s ease both;
}

.instructor-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.052);
    cursor: pointer;
    isolation: isolate;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease;
}

.instructor-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 100, 0, 0.24);
    box-shadow: var(--shadow-md);
}

.card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eef1ee;
}

.card-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.13) 55%, rgba(0, 0, 0, 0.78) 100%);
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.card-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.01);
    transition: transform 0.42s ease, filter 0.42s ease;
}

.instructor-card:hover .card-photo img {
    transform: scale(1.075);
    filter: brightness(0.88) saturate(1.03);
}

.card-top-badge {
    position: absolute;
    left: 13px;
    top: 13px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--main);
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: 0.03em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-4px);
    opacity: 0.95;
    transition: 0.25s ease;
}

.instructor-card:hover .card-top-badge {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.94);
}

.card-name-area {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 52px 14px 14px;
    color: #fff;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.teacher-name {
    display: block;
    color: #fff;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.07em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.teacher-sub {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11.5px;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.photo-profile-action {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--main);
    font-size: 12.5px;
    font-weight: 950;
    letter-spacing: -0.04em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(54px);
    transition:
        transform 0.32s cubic-bezier(.2, .9, .2, 1),
        opacity 0.24s ease,
        background 0.24s ease;
}

.photo-profile-action span:last-child {
    transition: transform 0.25s ease;
}

.instructor-card:hover .photo-profile-action,
.instructor-card:focus-visible .photo-profile-action {
    opacity: 1;
    transform: translateY(0);
}

.instructor-card:hover .photo-profile-action span:last-child {
    transform: translateX(3px);
}

.instructor-card:hover .card-name-area {
    transform: translateY(-42px);
}

.card-body {
    padding: 14px 15px 15px;
}

.card-summary {
    min-height: 64px;
    color: #3d3d3d;
    font-size: 13.8px;
    font-weight: 550;
    line-height: 1.58;
    letter-spacing: -0.045em;
    word-break: keep-all;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-summary:empty {
    display: none;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.card-meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--main);
    box-shadow: 0 0 0 5px rgba(0, 100, 0, 0.08);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 76px 20px;
    border: 1px dashed var(--line-2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    text-align: center;
    color: var(--sub);
    box-shadow: var(--shadow-xs);
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 42px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 13.5px;
    font-weight: 850;
    text-decoration: none;
    transition: 0.2s ease;
}

.pagination a:hover {
    transform: translateY(-2px);
    border-color: var(--main);
    color: var(--main);
}

.pagination a.active {
    background: var(--main);
    border-color: var(--main);
    color: #fff;
    box-shadow: 0 7px 18px rgba(0, 100, 0, 0.24);
}

.profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.profile-overlay.show {
    display: block;
    opacity: 1;
}

.profile-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    display: none;
    width: min(1040px, calc(100% - 34px));
    max-height: min(88vh, 860px);
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.profile-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    max-height: min(88vh, 860px);
    overflow: hidden;
}

.modal-image-side {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 34%),
        #111;
}

.modal-image-side::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.74) 100%),
        radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.16), transparent 34%);
    pointer-events: none;
}

.modal-image-side img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.01);
    animation: imageIn 0.58s ease both;
}

.modal-image-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
}

.modal-kicker {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.055em;
    backdrop-filter: blur(10px);
}

.modal-image-caption h3 {
    margin: 0;
    color: #fff;
    font-size: 38px;
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.075em;
}

.modal-image-caption p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.48;
    letter-spacing: -0.04em;
}

.modal-content-side {
    position: relative;
    max-height: min(88vh, 860px);
    overflow-y: auto;
    padding: 34px 38px 36px;
    background:
        radial-gradient(circle at top right, rgba(0, 100, 0, 0.05), transparent 32%),
        #fff;
}

.modal-content-side::-webkit-scrollbar {
    width: 8px;
}

.modal-content-side::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content-side::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 100, 0, 0.23);
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 8;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(244, 245, 244, 0.94);
    color: #222;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: 0.22s ease;
}

.modal-close:hover {
    background: var(--main);
    color: #fff;
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    z-index: 7;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%);
    transition: 0.22s ease;
}

.modal-nav:hover {
    background: var(--main);
    color: #fff;
}

.modal-prev {
    left: 18px;
}

.modal-next {
    right: 18px;
}

.modal-mobile-title {
    display: none;
    margin-bottom: 18px;
    padding-right: 50px;
}

.modal-mobile-title h3 {
    margin: 0;
    color: var(--text);
    font-size: 32px;
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.075em;
}

.modal-mobile-title p {
    margin: 7px 0 0;
    color: var(--sub);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: -0.04em;
}

.modal-summary {
    display: none;
    padding: 18px 20px;
    margin-bottom: 23px;
    border: 1px solid rgba(0, 100, 0, 0.13);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(0, 100, 0, 0.09), rgba(0, 100, 0, 0.025));
    color: #252525;
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.75;
    letter-spacing: -0.045em;
    word-break: keep-all;
}

.modal-summary p {
    margin: 0 0 8px;
}

.modal-summary p:last-child {
    margin-bottom: 0;
}

.modal-section {
    padding-top: 23px;
    margin-top: 23px;
    border-top: 1px solid #ededed;
    animation: sectionIn 0.38s ease both;
}

.modal-section:first-child {
    margin-top: 0;
}

.modal-section h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    color: var(--text);
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.modal-section h4::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--main);
    box-shadow: 0 0 0 5px rgba(0, 100, 0, 0.09);
}

.section-body {
    color: #333;
    font-size: 15.3px;
    font-weight: 500;
    line-height: 1.85;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.section-body p {
    margin: 0 0 10px;
}

.section-body p:last-child {
    margin-bottom: 0;
}

.section-body strong,
.section-body b {
    display: inline-block;
    margin-top: 10px;
    color: #111;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.section-body p:first-child strong,
.section-body p:first-child b {
    margin-top: 0;
}

.section-body ul,
.section-body ol {
    margin: 8px 0 12px;
    padding-left: 20px;
}

.section-body li {
    margin: 4px 0;
}

.section-body br {
    line-height: 1.9;
}

.section-body a {
    color: var(--main);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-body h1,
.section-body h2,
.section-body h3,
.section-body h4 {
    margin: 16px 0 8px;
    color: #111;
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1.3;
}

.section-body h1:first-child,
.section-body h2:first-child,
.section-body h3:first-child,
.section-body h4:first-child {
    margin-top: 0;
}

.section-body blockquote {
    margin: 12px 0;
    padding: 12px 15px;
    border-left: 4px solid var(--main);
    border-radius: 0 12px 12px 0;
    background: #f6f8f6;
    color: #333;
}

.modal-empty {
    display: none;
    padding: 24px;
    border-radius: 18px;
    background: #f6f8f6;
    color: var(--sub);
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.6;
    letter-spacing: -0.04em;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 10px;
    padding-top: 22px;
    margin-top: 28px;
    border-top: 1px solid #ededed;
}

.modal-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: -0.04em;
    cursor: pointer;
    transition: 0.22s ease;
}

.modal-action:hover {
    transform: translateY(-2px);
    border-color: var(--main);
    color: var(--main);
    box-shadow: var(--shadow-xs);
}

.modal-action.primary {
    background: var(--main);
    border-color: var(--main);
    color: #fff;
}

.modal-action.primary:hover {
    background: var(--main-dark);
    color: #fff;
}

body.modal-open {
    overflow: hidden;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageIn {
    from {
        transform: scale(1.08);
        filter: brightness(0.82);
    }

    to {
        transform: scale(1.01);
        filter: brightness(1);
    }
}

@keyframes sectionIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1280px) {
    .instructor-container {
        max-width: 1180px;
    }

    .instructor-grid {
        gap: 16px;
    }

    .teacher-name {
        font-size: 19px;
    }
}

@media (max-width: 1080px) {
    .instructor-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 15px;
    }

    .modal-layout {
        grid-template-columns: 340px 1fr;
    }

    .modal-image-side,
    .modal-image-side img {
        min-height: 520px;
    }
}

@media (max-width: 900px) {
    .instructor-page {
        padding: 44px 18px 76px;
    }

    .instructor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card-summary {
        font-size: 13.2px;
        -webkit-line-clamp: 2;
        min-height: 42px;
    }

    .profile-modal {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-layout {
        display: block;
        max-height: none;
        overflow: visible;
    }

    .modal-image-side {
        min-height: auto;
        max-height: none;
        aspect-ratio: 3 / 3.15;
    }

    .modal-image-side img {
        min-height: auto;
        max-height: none;
        height: 100%;
    }

    .modal-image-caption {
        display: none;
    }

    .modal-mobile-title {
        display: block;
    }

    .modal-content-side {
        max-height: none;
        overflow: visible;
        padding: 26px 24px 28px;
    }

    .modal-nav {
        top: 160px;
    }
}

@media (max-width: 720px) {
    .instructor-page {
        padding: 34px 12px 62px;
    }

    .instructor-hero {
        margin-bottom: 20px;
    }

    .hero-badge {
        min-height: 30px;
        padding: 0 12px;
        font-size: 10.5px;
    }

    .instructor-hero h1 {
        font-size: 30px;
    }

    .instructor-hero p {
        max-width: 350px;
        font-size: 14px;
        line-height: 1.62;
    }

    .instructor-filter-panel {
        margin-left: -12px;
        margin-right: -12px;
        padding: 9px 12px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        overflow-x: auto;
    }

    .filter-row {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .filter-row::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        min-height: 35px;
        padding: 0 13px;
        font-size: 13px;
    }

    .instructor-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        margin-bottom: 13px;
        font-size: 13px;
    }

    .status-right {
        display: none;
    }

    .instructor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .instructor-card {
        border-radius: 17px;
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.06);
    }

    .instructor-card:hover {
        transform: translateY(-3px);
    }

    .card-photo {
        aspect-ratio: 3 / 3.65;
    }

    .card-photo::after {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.76) 100%);
    }

    .card-top-badge {
        left: 9px;
        top: 9px;
        min-height: 21px;
        padding: 0 8px;
        font-size: 9px;
    }

    .card-name-area {
        padding: 38px 10px 48px;
        transform: none;
    }

    .instructor-card:hover .card-name-area {
        transform: none;
    }

    .teacher-name {
        font-size: 15.8px;
        line-height: 1.12;
    }

    .teacher-sub {
        display: none;
    }

    .photo-profile-action {
        left: 9px;
        right: 9px;
        bottom: 9px;
        min-height: 32px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 11px;

        opacity: 1;
        transform: translateY(0);

        background: rgba(255, 255, 255, 0.94);
        color: var(--main);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    }

    .photo-profile-action span:last-child {
        transform: translateX(0);
    }

    .card-body {
        padding: 9px 10px 10px;
    }

    .card-summary {
        display: -webkit-box;
        min-height: 58px;
        color: #444;
        font-size: 12.6px;
        font-weight: 550;
        line-height: 1.52;
        letter-spacing: -0.045em;
        word-break: keep-all;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .card-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 8px;
        min-height: 26px;
        color: var(--main);
        font-size: 11.2px;
        font-weight: 900;
        letter-spacing: -0.04em;
    }

    .card-meta-dot {
        width: 5px;
        height: 5px;
        box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.08);
    }

    .profile-modal {
        width: calc(100% - 18px);
        max-height: 92vh;
        overflow-y: auto;
        border-radius: 24px;
        -webkit-overflow-scrolling: touch;
    }

    .modal-layout {
        display: block;
        max-height: none;
        overflow: visible;
    }

    .modal-image-side {
        width: 100%;
        min-height: auto;
        max-height: none;
        aspect-ratio: 3 / 3.05;
        background: #111;
    }

    .modal-image-side img {
        width: 100%;
        height: 100%;
        min-height: auto;
        max-height: none;
        object-fit: cover;
        object-position: center top;
    }

    .modal-image-caption {
        display: none;
    }

    .modal-content-side {
        max-height: none;
        overflow: visible;
        padding: 21px 18px 22px;
    }

    .modal-mobile-title {
        display: block;
        margin-bottom: 15px;
        padding-right: 44px;
    }

    .modal-mobile-title h3 {
        font-size: 27px;
    }

    .modal-mobile-title p {
        font-size: 13.2px;
    }

    .modal-close {
        position: fixed;
        right: 18px;
        top: 18px;
        width: 39px;
        height: 39px;
        font-size: 24px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    }

    .modal-nav {
        position: absolute;
        top: 145px;
        width: 38px;
        height: 38px;
        font-size: 21px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-summary {
        padding: 15px;
        margin-bottom: 19px;
        border-radius: 16px;
        font-size: 14px;
        line-height: 1.68;
    }

    .modal-section {
        padding-top: 18px;
        margin-top: 18px;
    }

    .modal-section h4 {
        font-size: 15.5px;
        margin-bottom: 11px;
    }

    .section-body {
        font-size: 14px;
        line-height: 1.75;
    }

    .section-body p {
        margin-bottom: 8px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 24px;
    }

    .modal-action {
        min-height: 43px;
        font-size: 13.5px;
    }

    .pagination {
        margin-top: 30px;
    }

    .pagination a {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .instructor-page {
        padding: 31px 10px 58px;
    }

    .instructor-filter-panel {
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .instructor-grid {
        gap: 9px;
    }

    .instructor-card {
        border-radius: 15px;
    }

    .card-photo {
        aspect-ratio: 3 / 3.42;
    }

    .card-top-badge {
        display: none;
    }

    .card-name-area {
        padding: 32px 9px 44px;
    }

    .teacher-name {
        font-size: 14.6px;
    }

    .photo-profile-action {
        left: 8px;
        right: 8px;
        bottom: 8px;
        min-height: 29px;
        padding: 0 9px;
        font-size: 10.3px;
    }

    .card-body {
        padding: 8px 8px 9px;
    }

    .card-summary {
        min-height: 54px;
        font-size: 12.2px;
        line-height: 1.48;
        -webkit-line-clamp: 3;
    }

    .card-meta {
        margin-top: 7px;
        font-size: 10.8px;
    }

    .profile-modal {
        width: calc(100% - 14px);
        border-radius: 22px;
    }

    .modal-image-side {
        aspect-ratio: 3 / 2.85;
    }

    .modal-content-side {
        padding: 19px 16px 20px;
    }

    .modal-nav {
        top: 125px;
    }

    .modal-mobile-title h3 {
        font-size: 25px;
    }

    .modal-mobile-title p {
        font-size: 13px;
    }
}

@media (max-width: 340px) {
    .instructor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .card-photo {
        aspect-ratio: 3 / 3.25;
    }

    .card-name-area {
        padding: 30px 8px 42px;
    }

    .teacher-name {
        font-size: 13.6px;
    }

    .photo-profile-action {
        min-height: 28px;
        font-size: 9.8px;
    }

    .card-summary {
        min-height: 50px;
        font-size: 11.7px;
        line-height: 1.44;
    }

    .card-meta {
        font-size: 10.2px;
    }

    .modal-mobile-title h3 {
        font-size: 23px;
    }

    .section-body {
        font-size: 13.6px;
    }
}