.lfr-layout-structure-item-container {padding: 0;} .lfr-layout-structure-item-row {overflow: hidden;} .portlet-borderless .portlet-content {padding: 0;}/* =========================================================
   강의 바로가기(lec-ctrl) + 강의 카드(lec-item) 통합 스타일
   붙여넣는 곳: HTML 프레그먼트(lec-ctrl) → 고급 탭 → 사용자 정의 CSS
   ========================================================= */

/* [0] 디자인 토큰 */
.lec-ctrl-root,
.lec-ctrl-float,
.lec-item {
    --lec-blue: #1164B1;
    --lec-sky: #4facfe;
    --lec-ink: #1A2B4C;
    --lec-ink-hover: #1a4f99;
    --lec-grad: linear-gradient(135deg, rgba(17, 100, 177, 0.92), rgba(72, 118, 239, 0.85));
    --lec-grad-hover: linear-gradient(135deg, rgba(14, 86, 155, 0.96), rgba(60, 104, 225, 0.92));
    --lec-glass: linear-gradient(135deg, rgba(236, 245, 255, 0.85), rgba(255, 255, 255, 0.6));
    --lec-line: rgba(17, 100, 177, 0.16);
    --lec-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --lec-morph: 0.52s;
}

/* [1] 스크립트 준비 전 깜빡임 방지 (투명 처리 — 영상 크기 계산은 정상 진행) */
html.lec-js [class*="lec-item-"]:not(.lec-ready),
html.lec-js [class*="lect-item-"]:not(.lec-ready),
html.lec-js [class*="lec_item_"]:not(.lec-ready) {
    max-height: 80px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* [2] 화면낭독기 전용 텍스트 */
.lec-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ================= 상단 바로가기 패널 ================= */
.lec-ctrl-root .lec-ctrl-panel {
    position: relative;
    margin: 0 0 24px;
    padding: 22px 24px 24px;
    border-radius: 20px;
    background: var(--lec-glass);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--lec-line);
    box-shadow: 0 10px 40px rgba(17, 100, 177, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lec-ctrl-root .lec-ctrl-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lec-ctrl-root .lec-ctrl-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.lec-ctrl-root .lec-ctrl-title-text {
    display: inline-block;
    background: linear-gradient(-120deg, #1164B1 15%, #4facfe 50%, #1164B1 85%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1164B1;
    animation: lec-ctrl-flow 4s linear infinite;
}

@keyframes lec-ctrl-flow {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

.lec-ctrl-root .lec-ctrl-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.lec-ctrl-root .lec-ctrl-all {
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(17, 100, 177, 0.35);
    color: var(--lec-blue);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.lec-ctrl-root .lec-ctrl-all:hover {
    background: var(--lec-grad);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(17, 100, 177, 0.25);
}

.lec-ctrl-root .lec-ctrl-all:active {
    transform: scale(0.97);
}

.lec-ctrl-root .lec-ctrl-guide {
    margin: 8px 0 18px;
    color: #4a5d7e;
    font-size: 15px;
    line-height: 1.5;
}

.lec-ctrl-root .lec-ctrl-note {
    margin: 14px 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 196, 0, 0.14);
    border: 1px solid rgba(214, 160, 0, 0.25);
    color: #6b4e00;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.lec-ctrl-root .lec-ctrl-note[hidden] {
    display: none;
}

.lec-ctrl-root .lec-ctrl-list {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    justify-items: center;
    gap: 14px 10px;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.lec-ctrl-root .lec-ctrl-li {
    margin: 0;
    padding: 0;
}

.lec-ctrl-root .lec-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 2px solid rgba(17, 100, 177, 0.55);
    color: var(--lec-blue);
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(17, 100, 177, 0.08);
    transition: background 0.3s var(--lec-ease), color 0.3s ease, transform 0.3s var(--lec-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.lec-ctrl-root .lec-nav-btn:hover {
    background: var(--lec-grad);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 100, 177, 0.3), inset 0 0 12px rgba(255, 255, 255, 0.3);
}

.lec-ctrl-root .lec-nav-btn.is-current {
    background: var(--lec-grad);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 100, 177, 0.3), inset 0 0 12px rgba(255, 255, 255, 0.3);
}

.lec-ctrl-root .lec-nav-btn.is-current:hover {
    background: var(--lec-grad-hover);
}

.lec-ctrl-root .lec-nav-btn:active {
    transform: scale(0.94);
}

.lec-ctrl-root .lec-nav-btn:focus-visible,
.lec-ctrl-root .lec-ctrl-all:focus-visible {
    outline: 3px solid var(--lec-sky);
    outline-offset: 3px;
}

/* ================= 강의 카드: 접힘(글라스 막대) → 펼침(하얀 팝업 카드) 모핑 ================= */
.lec-item.lec-ready {
    display: block !important;
    box-sizing: border-box !important;
    position: relative;
    margin: 0 10px 14px !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 1 !important;
    max-height: none !important;
    border-radius: 16px;
    background: var(--lec-glass);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--lec-line);
    box-shadow: 0 6px 20px rgba(17, 100, 177, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition:
        height var(--lec-morph) var(--lec-ease),
        margin var(--lec-morph) var(--lec-ease),
        border-radius var(--lec-morph) var(--lec-ease),
        box-shadow var(--lec-morph) var(--lec-ease),
        background 0.4s ease,
        border-color 0.4s ease;
}

.lec-item.lec-ready.is-open {
    margin: 6px 0 26px !important;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(17, 100, 177, 0.12);
    box-shadow: 0 24px 60px rgba(17, 40, 80, 0.14), 0 4px 12px rgba(17, 40, 80, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* 머리줄 */
.lec-item .lec-head {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 18px 22px;
    border: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    color: var(--lec-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 -1px 0 rgba(17, 100, 177, 0);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.4s ease;
}

.lec-item .lec-head:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--lec-ink-hover);
}

.lec-item.is-open .lec-head {
    background: transparent;
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 rgba(17, 100, 177, 0.1);
}

.lec-item.is-open .lec-head:hover {
    background: rgba(17, 100, 177, 0.035);
    color: var(--lec-ink-hover);
}

.lec-item .lec-head:focus-visible {
    outline: 3px solid var(--lec-sky);
    outline-offset: -3px;
}

.lec-item .lec-head-no {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--lec-grad);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 4px 10px rgba(17, 100, 177, 0.25), inset 0 0 8px rgba(255, 255, 255, 0.25);
}

.lec-item .lec-head-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.2px;
    word-break: keep-all;
}

.lec-item .lec-head-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(17, 100, 177, 0.3);
    color: var(--lec-blue);
    transition: transform var(--lec-morph) var(--lec-ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lec-item .lec-head:hover .lec-head-icon {
    background: var(--lec-grad);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.lec-item.is-open .lec-head-icon {
    transform: rotate(180deg);
    background: var(--lec-grad);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* 카드 내부 조각: 좌우 여백 + 펼칠 때 살짝 내려오며 나타남 */
.lec-item.lec-ready > .lec-part {
    margin: 18px 28px 0 !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.35s var(--lec-ease);
}

.lec-item.lec-ready > .lec-part-first {
    margin-top: 24px !important;
}

.lec-item.lec-ready > .lec-part-last {
    margin-bottom: 28px !important;
}

.lec-item.lec-ready.is-open > .lec-part {
    opacity: 1;
    transform: none;
    transition: opacity 0.35s ease 0.14s, transform 0.5s var(--lec-ease) 0.1s;
}

.lec-item .lec-is-dup {
    display: none !important;
}

/* 설명: 연한 블루 안내 박스 */
.lec-item .lec-desc {
    position: relative;
    box-sizing: border-box;
    padding: 18px 22px 18px 24px !important;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(232, 243, 255, 0.92), rgba(244, 249, 255, 0.8));
    border: 1px solid rgba(17, 100, 177, 0.1);
    border-left: 4px solid var(--lec-blue);
    color: #33415c;
    font-size: 16px;
    line-height: 1.75;
    word-break: keep-all;
}

.lec-item .lec-desc p {
    margin: 0 0 6px;
}

.lec-item .lec-desc p:last-child {
    margin-bottom: 0;
}

/* 영상: 최대 960px 가운데 + 인셋 카드 프레임 */
.lec-item.lec-ready > .lec-part.lec-video {
    margin-left: max(28px, calc((100% - 960px) / 2)) !important;
    margin-right: max(28px, calc((100% - 960px) / 2)) !important;
}

.lec-item .lec-video:not(.lec-part) {
    max-width: 960px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.lec-item .video-url {
    margin: 0;
}

.lec-item .video-url .video {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    background: #0f1b2d;
    border: 1px solid rgba(17, 100, 177, 0.14);
    box-shadow: 0 16px 40px rgba(17, 40, 80, 0.16), 0 3px 8px rgba(17, 40, 80, 0.08);
}

.lec-item .video-url video {
    display: block;
    border-radius: 15px;
}

/* ================= 떠 있는 '목차' 버튼 ================= */
.lec-ctrl-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 990;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--lec-grad);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(17, 100, 177, 0.35), inset 0 0 12px rgba(255, 255, 255, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s var(--lec-ease), visibility 0.3s, background 0.3s ease;
}

.lec-ctrl-float.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lec-ctrl-float:hover {
    background: var(--lec-grad-hover);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.lec-ctrl-float:focus-visible {
    outline: 3px solid var(--lec-sky);
    outline-offset: 3px;
}

/* ================= 반응형 ================= */
@media (max-width: 768px) {
    .lec-ctrl-root .lec-ctrl-panel {
        padding: 18px 16px 20px;
    }
    .lec-ctrl-root .lec-ctrl-title {
        font-size: 19px;
    }
    .lec-ctrl-root .lec-ctrl-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px 8px;
    }
    .lec-ctrl-root .lec-nav-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    .lec-item.lec-ready {
        margin: 0 4px 12px !important;
    }
    .lec-item.lec-ready.is-open {
        margin: 4px 0 20px !important;
    }
    .lec-item .lec-head {
        gap: 10px;
        padding: 14px 16px;
    }
    .lec-item .lec-head-title {
        font-size: 16px;
    }
    .lec-item.lec-ready > .lec-part {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }
    .lec-item.lec-ready > .lec-part-first {
        margin-top: 18px !important;
    }
    .lec-item.lec-ready > .lec-part-last {
        margin-bottom: 20px !important;
    }
    .lec-item.lec-ready > .lec-part.lec-video {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }
    .lec-item .lec-desc {
        padding: 14px 16px 14px 18px !important;
        font-size: 15px;
    }
    .lec-item .video-url .video {
        border-radius: 12px;
    }
    .lec-item .video-url video {
        border-radius: 11px;
    }
    .lec-ctrl-float {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 420px) {
    .lec-ctrl-root .lec-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
}

/* 움직임 줄이기 설정 사용자 배려 */
@media (prefers-reduced-motion: reduce) {
    .lec-ctrl-root .lec-ctrl-title-text {
        animation: none;
    }
    .lec-ctrl-root .lec-nav-btn,
    .lec-ctrl-root .lec-ctrl-all,
    .lec-item.lec-ready,
    .lec-item.lec-ready > .lec-part,
    .lec-item .lec-head,
    .lec-item .lec-head-icon,
    .lec-ctrl-float {
        transition: none;
    }
}