/* LMS SECTION */
.lms-block {
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.lms-block:first-child {
    padding-top: 0px;
}

.lms-block:last-child {
    border-bottom: 0;
}

.lms-block.reverse .lms-text {
    order: 2;
}

.lms-block.reverse .lms-image {
    order: 1;
}

.lms-text {
    min-width: 0;
    max-width: 520px;
}

.lms-block.reverse .lms-text {
    justify-self: end;
}

/* TEXT */
.lms-text .section-title {
    margin: 0 0 24px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -1.8px;
    color: var(--section-text);
    word-break: keep-all;
}

.lms-text .section-desc {
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--section-sub);
    word-break: keep-all;
}

.section-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    padding: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #687584;
    word-break: keep-all;
}

.section-item::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--section-light);
}

/* PREVIEW */
.lms-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border: 1px solid #e8ebef;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(28, 43, 61, .09);
    transition: transform .35s ease, box-shadow .35s ease;
}

.device:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 65px rgba(28, 43, 61, .13);
}

.device-top {
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #eef0f2;
    background: #fff;
}

.dots {
    display: flex;
    gap: 7px;
}

.dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dfe3e7;
}

.device-body {
    padding: 22px;
    background: linear-gradient(180deg, var(--section-soft) 0%, #fff 32%);
}

.screen-title {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 800;
    color: #354457;
}

/* COMMON UI */
.pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.pill {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f4f6f8;
    color: #78828d;
    font-size: 12px;
    font-weight: 600;
}

.pill.active {
    background: var(--section-soft);
    color: var(--section-light);
}

.card {
    padding: 16px;
    border: 1px solid #edf0f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(26, 39, 53, .04);
}

.mini-title {
    margin-bottom: 6px;
    font-size: 12px;
    color: #7f8994;
}

.sub {
    font-size: 12px;
    color: #9aa2aa;
}

.course-list,
.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    background: #fff;
}

.list-item.align-top {
    align-items: flex-start;
}

.list-left {
    min-width: 0;
}

.list-name {
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 700;
    color: #364557;
    word-break: keep-all;
}

.list-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #9aa2aa;
    word-break: keep-all;
}

.status {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.status.done {
    background: #eefaf2;
    color: #2c9b57;
}

.status.submit,
.status.notice {
    background: #fff6db;
    color: #c99400;
}

.status.miss,
.status.archive {
    background: #f8edf5;
    color: var(--section-light);
}

.status.class-tag {
    background: var(--section-soft);
    color: var(--section-light);
}

/* BAR */
.bar-group {
    margin-top: 8px;
}

.bar-label {
    margin-bottom: 5px;
}

.bar {
    height: 9px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f2;
}

.bar>span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--section-light), var(--section-light));
}

/* CODING STATS */
.stats-wrap {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.circle-card {
    flex: 1;
    padding: 14px;
    border: 1px solid #edf0f2;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 50%;
    color: #364557;
    font-size: 16px;
    font-weight: 800;
}

.circle.pink {
    background: conic-gradient(var(--section-light) 0 82%,
            #edf0f2 82% 100%);
}

.circle.yellow {
    background: conic-gradient(var(--section-light) 0 50%, #edf0f2 50% 100%);
}

.circle-label {
    font-size: 13px;
    font-weight: 700;
    color: #465465;
}

.circle-sub {
    margin-top: 3px;
    font-size: 11px;
    color: #9aa2aa;
}

/* PORTFOLIO */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.portfolio-card {
    padding: 14px;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    background: #fff;
}

.thumb {
    height: 86px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--section-soft), #fff);
}

.thumb.blue,
.thumb.mint,
.thumb.lav {
    background: linear-gradient(135deg, var(--section-soft), #fff);
}

.mt-12 {
    margin-top: 12px;
}

/* TABLET */
@media (max-width: 1024px) {
    .lms-block {
        gap: 55px;
        padding: 75px 0;
    }

    .lms-text .section-title {
        font-size: 34px;
    }

    .device {
        max-width: 440px;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .lms-block,
    .lms-block.reverse {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 55px 0;
    }

    .lms-block:first-child {
        padding-top: 0px;
    }

    .lms-block .lms-text,
    .lms-block .lms-image,
    .lms-block.reverse .lms-text,
    .lms-block.reverse .lms-image {
        order: initial;
        justify-self: stretch;
    }

    .lms-text {
        width: 100%;
        max-width: none;
    }

    .lms-text .section-title {
        margin-bottom: 18px;
        font-size: 28px;
        line-height: 1.45;
        letter-spacing: -1.2px;
    }

    .lms-text .section-desc {
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.8;
    }

    .section-list {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .section-item {
        width: auto;
        margin: 0;
        padding: 7px 11px;
        border-radius: 20px;
        background: var(--section-soft);
        color: var(--section-light);
        font-size: 12px;
        font-weight: 600;
    }

    .section-item::before {
        display: none;
    }

    .device {
        max-width: none;
        border-radius: 20px;
        box-shadow: 0 14px 35px rgba(31, 45, 61, .08);
    }

    .device-top {
        display: none;
    }

    .device-body {
        padding: 20px 16px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .stats-wrap {
        flex-direction: column;
    }
}

/* =========================
   META SCORE UI
========================= */
.score-screen {
    padding: 22px 24px 24px;
}

.subject-tabs {
    display: flex;
    padding: 4px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #f4f2f6;
}

.subject-tab {
    flex: 1;
    padding: 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #9c97a1;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.subject-tab.active {
    background: #fff;
    color: var(--section-light);
    box-shadow: 0 2px 7px rgba(74, 54, 98, .08);
}

.score-chart-card {
    padding: 14px;
    border: 1px solid #eeeaf2;
    border-radius: 11px;
    background: #fff;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.chart-area {
    display: flex;
    height: 125px;
}

.y-axis {
    width: 27px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 5px;
    color: #b1acb5;
    font-size: 7px;
    text-align: right;
}

.graph {
    position: relative;
    flex: 1;
}

.grid-line {
    position: absolute;
    left: 0;
    width: 100%;
    border-top: 1px dashed #eeeaf2;
}

.line-100 {
    top: 0;
}

.line-90 {
    top: 25%;
}

.line-80 {
    top: 50%;
}

.line-70 {
    top: 75%;
}

.line-60 {
    top: 100%;
}

.score-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.score-line {
    fill: none;
    stroke: var(--section-light);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.score-area {
    fill: rgba(104, 70, 157, .12);
}

.score-point {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 3px solid var(--section-light);
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.score-tooltip {
    position: absolute;
    top: -27px;
    left: 50%;
    padding: 4px 6px;
    border-radius: 5px;
    background: var(--section-light);
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    white-space: nowrap;
    transform: translateX(-50%);
    opacity: 0;
}

.score-point.last .score-tooltip,
.score-point:hover .score-tooltip {
    opacity: 1;
}

.x-axis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 6px;
    margin-left: 27px;
}

.x-axis div {
    text-align: center;
}

.x-axis span {
    display: block;
    color: #b2adb6;
    font-size: 7px;
}

.x-axis strong {
    color: #77717d;
    font-size: 8px;
}

/* =========================
   ATTENDANCE UI
========================= */
.attendance-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border-radius: 12px;
    background: #faf9fb;
}

.circle-progress {
    --value: 0;
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: conic-gradient(var(--section-light) calc(var(--value) * 1%),
            #ece8f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-progress.participation {
    background: conic-gradient(var(--section-light) calc(var(--value) * 1%),
            #ece8f0 0);
}

.circle-inner {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
}

.circle-inner strong {
    color: #574f5d;
    font-size: 16px;
}

.circle-desc {
    margin-top: 3px;
    color: #aaa5ae;
    font-size: 7px;
}

.summary-divider {
    width: 1px;
    height: 80px;
    background: #ece8ef;
}

.learning-card {
    margin-top: 12px;
    padding: 13px;
    border: 1px solid #eeeaf2;
    border-radius: 11px;
    background: #fff;
}

.learning-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 11px;
}

.monthly-bars {
    display: grid;
    gap: 8px;
}

.month-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-name {
    width: 23px;
    color: #8f8994;
    font-size: 8px;
}

.month-bar {
    flex: 1;
    height: 6px;
    border-radius: 10px;
    background: #efecf1;
    overflow: hidden;
}

.month-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--section-light), var(--section-light));
}

.month-row strong {
    width: 28px;
    color: #665c6b;
    font-size: 8px;
    text-align: right;
}

/* =========================
   AWARD UI
========================= */
.award-list {
    display: grid;
    gap: 7px;
}

.award-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eeeaf2;
    border-radius: 10px;
    background: #fff;
}

.award-icon {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    border-radius: 9px;
    font-size: 12px;
}

.award-icon.gold {
    background: #fff5d8;
    color: #c89829;
}

.award-icon.silver {
    background: #f0f1f4;
    color: #8c929d;
}

.award-icon.bronze {
    background: #f9eee5;
    color: #b97952;
}

.award-info {
    flex: 1;
}

.award-name {
    color: #554f59;
    font-size: 9px;
    font-weight: 700;
}

.award-detail {
    margin-top: 3px;
    color: #918b96;
    font-size: 7px;
}

.award-date {
    color: #aaa5ae;
    font-size: 7px;
}

/* =========================
   MOBILE DETAIL UI
========================= */
@media (max-width: 768px) {
    .score-screen {
        padding: 20px 16px;
    }

    .subject-tab {
        padding: 9px 5px;
        font-size: 10px;
    }

    .score-chart-card {
        padding: 12px 9px 14px;
    }

    .chart-area {
        height: 105px;
    }

    .y-axis {
        width: 23px;
        font-size: 6px;
    }

    .x-axis {
        margin-left: 23px;
    }

    .circle-progress {
        width: 68px;
        height: 68px;
    }

    .circle-inner {
        width: 52px;
        height: 52px;
    }

    .summary-divider {
        height: 72px;
    }

    .award-item {
        position: relative;
        padding: 12px 10px;
    }

    .award-date {
        position: absolute;
        top: 13px;
        right: 10px;
    }
}