.programming-system {
    width: 1200px;
    max-width: 100%;
    margin: auto;
    padding: 180px 20px 20px;

    .system-header {
        margin-bottom: 18px;
        text-align: center;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        border: 1px solid #e7eaee;
        border-radius: 20px;
        padding: 18px 22px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        position: relative;
        overflow: hidden;

        &::before,
        &::after {
            content: "";
            position: absolute;
            width: 220px;
            height: 220px;
            border-radius: 999px;
            filter: blur(20px);
            opacity: 0.18;
            pointer-events: none;
        }

        &::before {
            top: -120px;
            right: -120px;
            background: rgba(255, 122, 0, 1);
        }

        &::after {
            bottom: -140px;
            left: -140px;
            background: rgba(16, 185, 129, 1);
        }

        h1 {
            width: fit-content;
            display: block;
            font-size: 34px;
            line-height: 1.25;
            margin: 0 auto;
            padding-bottom: 10px;
            font-weight: 900;
            letter-spacing: -0.2px;
            position: relative;

            /* effect half width underline in center */
            &::before {
                content: "";
                width: 50%;
                height: 5px;
                position: absolute;
                bottom: 0;
                left: 50%;
                opacity: 0.5;
                border-radius: 5px;
                transform: translateX(-50%);
                background-color: var(--light-main-color);
            }
        }

        .system-sub {
            color: #6b7280;
            font-size: 14px;
            margin-top: 10px;
        }
    }
}

.system-card {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 18px;
    padding: 18px;
    margin: 16px auto;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);

    .system-card-kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 122, 0, 0.1);
        color: #ff7a00;
        font-weight: 700;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .system-card-title {
        font-size: 20px;
        margin: 0;
        font-weight: 800;
    }

    .system-slider {
        position: relative;
    }

    .system-slider-prev,
    .system-slider-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.55);
        background: rgba(17, 24, 39, 0.35);
        color: #fff;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        display: grid;
        place-items: center;
        transition:
            transform 0.15s ease,
            background 0.15s ease;
    }

    .system-slider-prev {
        left: 12px;
    }

    .system-slider-viewport {
        width: 100%;
        overflow: hidden;
        background: #f8fafc;
    }

    .system-slider-track {
        display: flex;
        width: 100%;
        transition: transform 0.55s ease;
    }

    .system-slide {
        flex: 0 0 100%;
        position: relative;
        aspect-ratio: 16 / 9;
        background: #ffffff;
        min-height: 320px;
        max-height: 480px;
        padding: 0 10px;
        box-sizing: border-box;

        & img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            display: block;
            transform: none;
            animation: none;
        }
    }
}

.system-article {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin: 20px 0 10px 0;
        font-weight: 800;
        color: #1f2937;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        margin: 10px 0;
    }

    ul,
    ol {
        margin: 15px 0;
        padding-right: 30px;
    }

    li {
        margin: 8px 0;
    }

    a {
        color: #ff7a00;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }

    strong {
        font-weight: 800;
        color: #1f2937;
    }

    br {
        display: block;
        content: "";
        margin: 10px 0;
    }
}

.system-actions button {
    appearance: none;
    border: none;
    border-radius: 12px;
    background: #ff7a00;
    color: #fff;
    font-weight: 800;
    padding: 12px 16px;
    cursor: pointer;
    margin-top: 30px;
    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.system-modal-layer {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;

    &.hidden {
        display: none;
    }

    .system-modal-panel {
        width: min(900px, 100%);
        background: #fff;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
        border: 1px solid #eef1f6;

        .system-modal-head {
            padding: 14px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #fff7ed;
            border-bottom: 1px solid #ffe5cc;

            .system-modal-title {
                font-weight: 900;
                font-size: 16px;
            }

            .system-modal-close {
                width: 38px;
                height: 38px;
                border-radius: 12px;
                border: 1px solid #ffe5cc;
                background: #fff;
                cursor: pointer;
                font-size: 20px;
            }
        }

        .system-modal-content {
            padding: 16px;
            max-height: 70vh;
            overflow: auto;
            line-height: 1.95;

            &::-webkit-scrollbar {
                width: 4px;
            }

            &::-webkit-scrollbar-thumb {
                border-radius: 4px;
                background-color: var(--color-gray-400);
            }
        }
    }
}

.system-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;

    .system-feature {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 14px 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.65);
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
        backdrop-filter: blur(10px);

        .system-feature-icon {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            background: rgba(17, 24, 39, 0.06);
            border: 1px solid rgba(17, 24, 39, 0.08);
            display: grid;
            place-items: center;
            overflow: hidden;
            flex: 0 0 44px;

            & img {
                object-fit: contain;
            }

            .system-feature-dot {
                width: 12px;
                height: 12px;
                border-radius: 999px;
                background: rgba(17, 24, 39, 0.35);
            }
        }
    }
}

.system-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    .system-tag {
        display: inline-flex;
        align-items: center;
        padding: 8px 10px;
        border-radius: 999px;
        background: rgba(17, 24, 39, 0.06);
        border: 1px solid rgba(17, 24, 39, 0.08);
        color: #0f172a;
        font-weight: 700;
        font-size: 12px;
    }
}

@media (max-width: 980px) {
    .system-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .programming-system {
        padding: 120px 16px 16px;
    }

    .system-card {
        .system-slide {
            min-height: auto;
        }

        .system-slider-prev,
        .system-slider-next {
            width: 30px;
            height: 30px;
            font-size: 18px;
        }
    }
}

@media (max-width: 520px) {
    .system-features-grid {
        grid-template-columns: 1fr;
    }
}
