.lfr-layout-structure-item-container {padding: 0;} .lfr-layout-structure-item-row {overflow: hidden;} .portlet-borderless .portlet-content {padding: 0;}/* 공통 레이아웃 (기존 유지) */
.credit-guide-container {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 테이블 스타일 (기존 유지) */
.calc-table-wrap { overflow-x: auto; }
.calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.calc-table th {
    background-color: #f1f5fb;
    color: #004098;
    padding: 12px;
    border-top: 2px solid #004098;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    text-align: left;
}
.calc-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #444;
}

/* ▼▼▼ [신규] 팝업 버튼 스타일 ▼▼▼ */
.btn-ects-popup {
    background-color: #ffffff;
    border: 1px solid #004098;
    color: #004098;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-ects-popup:hover {
    background-color: #004098;
    color: white;
}

/* 모달(팝업) 배경 */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* 모달 창 본체 */
.modal-window {
    background-color: #fefefe;
    margin: 5% auto; /* 상단 여백 */
    border-radius: 12px;
    width: 90%;
    max-width: 600px; /* 표가 넓어지도록 최대 너비 늘림 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s;
    overflow: hidden; /* 둥근 모서리 유지 */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 15px 20px;
    background-color: #004098;
    color: white;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-title { margin: 0; font-size: 1.1rem; font-weight: bold; }
.close-btn { color: white; font-size: 24px; cursor: pointer; }

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid #004098; /* 포인트 디자인 */
}

/* ▼▼▼ [핵심 수정] 팝업 내부 테이블 스타일 ▼▼▼ */
.modal-table {
    width: 100%; /* 가로 꽉 채우기 */
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed; /* 셀 너비를 균등하게 강제 분배 */
}

/* 테이블 헤더 */
.modal-table th {
    background-color: #eef4ff; /* 아주 연한 블루 */
    color: #004098;
    padding: 12px 5px;
    border: 1px solid #dce8f7;
    text-align: center; /* 가운데 정렬 */
    font-weight: 700;
}

/* 테이블 데이터 셀 (공통) */
.modal-table td {
    padding: 10px 5px;
    border: 1px solid #eee;
    text-align: center; /* 가운데 정렬 */
    color: #333;
}

/* ▼▼▼ 열(Column)별 색상 구분 ▼▼▼ */

/* 1번째, 3번째 열 (ECTS) -> 흰색 배경 */
.modal-table td:nth-child(1),
.modal-table td:nth-child(3) {
    background-color: #ffffff;
    font-weight: 400;
}

/* 2번째, 4번째 열 (환산 학점) -> 연한 파란색 배경 + 강조 */
.modal-table td:nth-child(2),
.modal-table td:nth-child(4) {
    background-color: #f7fbff; /* 눈에 띄는 연한 배경색 */
    color: #004098; /* 글자색 파란색 */
    font-weight: 700; /* 굵게 강조 */
}/* 공통 레이아웃 */
.credit-guide-container {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
}
.text-alert { color: #e03e2d; font-weight: 600; }

/* 유의사항 박스 스타일 */
.alert-box {
    background-color: #fff5f5; /* 연한 붉은 배경 */
    border: 1px solid #ffcaca;
    border-radius: 12px;
    padding: 25px;
    color: #333;
}

/* 제목 텍스트 스타일 */
.alert-title {
    color: #e03e2d; /* 붉은색 글씨 */
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    
    /* 아이콘과 텍스트 수직 정렬을 위해 flex 사용 */
    display: flex; 
    align-items: center; 
}

/* ▼▼▼ [핵심] 경고 아이콘(!) 만들기 ▼▼▼ */
.alert-title::before {
    content: '!'; /* 느낌표 텍스트 */
    
    /* 원형 모양 만들기 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #e03e2d; /* 빨간 배경 */
    color: white; /* 흰색 글씨 */
    border-radius: 50%; /* 둥근 원 */
    
    /* 폰트 및 간격 설정 */
    font-size: 14px;
    font-weight: 800;
    margin-right: 10px; /* 텍스트와의 간격 */
    flex-shrink: 0; /* 원이 찌그러지지 않게 고정 */
}/* 전체 컨테이너: 여백 제거 및 너비 100% */
.credit-timeline-container {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.35;
    width: 100%;
    margin: 0;
    padding: 0;
    /* 테두리나 배경이 없도록 확실히 설정 */
    border: none;
    background: transparent;
}

/* 리스트 스타일 */
.cp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* 개별 단계 (Flexbox) */
.cp-item {
    display: flex;
    position: relative;
    padding-bottom: 30px; /* 항목 간 간격 */
}

.cp-item:last-child {
    padding-bottom: 0;
}

/* 숫자 원 (보내주신 코드와 동일) */
.cp-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: #004098;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
    position: relative;
}

/* ▼▼▼ [핵심] 연결 선 (보내주신 로직 적용) ▼▼▼ */
/* 컨테이너에 선을 긋지 않고, 아이템 내부에 선을 그어 원을 관통시킵니다. */
.cp-item:not(:last-child)::after {
    content: '';
    position: absolute;
    /* 원의 바로 아래(28px)부터 시작 */
    top: 28px; 
    /* 원의 정중앙 (28px의 절반 = 14px, 선두께 2px 고려하여 13px) */
    left: 13px;  
    bottom: 0;
    width: 2px;
    background-color: #e5e5e5;
    z-index: 1;
}

/* 텍스트 내용 영역 */
.cp-content {
    padding-left: 15px; /* 원과의 간격 */
    padding-top: 3px;   /* 원 높이와 시각적 보정 */
    width: 100%;
}

/* 단계 제목 */
.cp-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

/* 설명 텍스트 */
.cp-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* 하위 리스트 (전공/교양 등) */
.cp-sub-list {
    margin: 5px 0 0 0px;
    font-size: 0.9rem;
    color: #666;
    list-style-type: disc;
}

/* --- 추가된 요소 스타일 (버튼, 위치박스) --- */

/* 파견수기 바로가기 버튼 */
.cp-btn-link {
    display: inline-block;
    margin-top: 8px;
    background-color: #004098;
    color: white !important;
    padding: 6px 14px;
    border-radius: 50px; /* 둥근 캡슐형 */
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}
.cp-btn-link:hover {
    background-color: #002a65;
}

/* 제출처 위치 박스 */
.cp-loc-box {
    margin-top: 8px;
    background-color: #f0f6ff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #004098;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .cp-item { padding-bottom: 25px; }
}.lfr-layout-structure-item-e118c822-680b-45a1-b4c5-e90c35eadeab {
background-position: 50% 50%; background-repeat:no-repeat; background-size: cover; background-image: var(--lfr-background-image-e118c822-680b-45a1-b4c5-e90c35eadeab) !important;
}
/* 공통 레이아웃 */
.credit-guide-container {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 그리드 레이아웃 */
.period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 카드 스타일 */
.period-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* 헤더 */
.period-header {
    background-color: #004098;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* 본문 영역 */
.period-body {
    padding: 25px 20px;
}

/* 박스 내부 여백 및 간격 */
.period-step {
    margin-bottom: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px 24px; 
    display: flex; 
    align-items: center; 
    gap: 11px; 
}
.period-step:last-child { margin-bottom: 0; }

/* 뱃지 (1차/2차) */
.step-badge {
    flex-shrink: 0;
    background-color: #004098;
    color: white;
    font-weight: bold;
    border-radius: 30px;
    text-align: center;
    font-size: 0.9rem; 
    padding: 4px 14px; 
}

/* 흐름도 영역 */
.step-flow {
    flex-grow: 1;
    display: flex;
    align-items: center; 
    /* justify-content 제거 (flex:1로 제어) */
}

/* 흐름 박스 (신청/인정) */
.flow-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* [핵심] PC/모바일 모두 강제로 1:1 비율 유지 */
    flex: 1; 
    width: 0; 
}

.flow-label {
    color: #666;
    margin-bottom: 4px; 
    font-size: 0.9rem; 
    line-height: 1.2;
}
.flow-date {
    font-weight: 700;
    color: #333;
    word-break: keep-all;
    font-size: 1.0rem; 
    line-height: 1.2;
}

/* 강조 색상 */
.flow-box.confirm .flow-date { color: #004098; }

/* 화살표 */
.flow-arrow {
    color: #ccc;
    font-size: 1.4rem;
    padding-top: 0; 
    margin: 0 8px; 
    line-height: 1; 
    flex-shrink: 0; 
}

/* 하단 유의사항 (붉은색) */
.period-note-clean {
    text-align: center;
    color: #e03e2d;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ▼▼▼ [수정됨] 모바일 대응 ▼▼▼ */
@media (max-width: 500px) {
    .period-step {
        flex-direction: column; 
        align-items: center; 
        padding: 16px; 
    }
    .step-flow {
        width: 100%;
        margin-top: 10px;
        /* 여기서는 justify-content를 쓰지 않고 flex:1 설정을 유지합니다 */
    }
    
    /* [수정] 모바일에서도 텍스트 박스가 1:1 비율을 유지하도록 강제함 (기존 auto 삭제) */
    .flow-box {
        flex: 1; 
        width: 0;
    }
    
    .flow-arrow {
        padding-top: 0; 
    }
}.lfr-layout-structure-item-6b3bf05d-2b53-fb1a-afb6-03ade1415dd1 {
padding-bottom: var(--spacer-5,3rem) !important;
}
/* 공통 레이아웃: 좌측 여백 제거 및 꽉 채우기 */
.credit-guide-container {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 텍스트 색상 유틸리티 */
.text-alert { color: #e03e2d; font-weight: 600; }
.text-blue { color: #004098; font-weight: 600; }

/* 카드 그리드 스타일 */
.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.principle-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.p-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #004098;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.p-list {
    padding-left: 20px;
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}
.p-list li { margin-bottom: 6px; }

/* Fail 규정 박스 */
.fail-notice-box {
    background-color: #fff9f9;
    border: 1px solid #ffd6d6;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: flex-start;
}
.fail-icon {
    margin-right: 10px;
    color: #e03e2d;
    font-weight: bold;
    font-size: 1.1rem;
}