@charset "utf-8";

/* ==========================================================================
   웹퍼블리셔 (HTML/CSS/JS) 과정 전용 커스텀 스타일
   ========================================================================== */

/* 코딩 실습 프로세스 카드 효과 */
.web-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.web-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 26, 53, 0.08) !important;
    border-color: #001a35 !important;
}

/* 기술 스택 뱃지 디자인 */
.tech-badge-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tech-html { background-color: #f06529; color: #fff; }
.tech-css { background-color: #2965f1; color: #fff; }
.tech-js { background-color: #f7df1e; color: #333; }
.tech-bs { background-color: #7952b3; color: #fff; }

/* 퍼블리셔 전용 아코디언 헤더 포인트 */
.pub-accordion .accordion-button:not(.collapsed) {
    background-color: #f8faff;
    color: #001a35;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.pub-accordion .accordion-button::after {
    filter: sepia(100%) hue-rotate(190deg) saturate(500%);
}

/* 상단 비주얼 배너 영역 스타일 */
.sub-visual-web {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden; /* 내부 요소가 넘치지 않도록 설정 */
    background-color: #000; /* 로딩 전 배경색 */
    border-bottom: 2px solid #001a35;
}

/* 1. 배경 이미지 확대 애니메이션 (Zoom-in) */
.sub-visual-web::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pro_banner02.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomEffect 10s infinite alternate; /* 10초 동안 서서히 커졌다 작아졌다 반복 */
    z-index: 1;
}

@keyframes zoomEffect {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.1); }
}

/* 2. 빛이 지나가는 효과 (Shine Effect) */
.sub-visual-web::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* 화면 왼쪽 밖에서 시작 */
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); /* 사선 모양 */
    animation: shineEffect 4s infinite; /* 4초마다 빛이 지나감 */
    z-index: 2;
}

@keyframes shineEffect {
    0% { left: -150%; }
    20% { left: 150%; } /* 빠르게 지나감 */
    100% { left: 150%; } /* 잠시 쉼 */
}

/* 모바일 환경 대응 */
@media (max-width: 768px) {
    .sub-visual-web {
        height: 180px;
    }
}

/* ==========================================================================
   C언어 과정 전용 추가 스타일 (로드맵 & 공지사항)
   ========================================================================== */

/* 로드맵 원형 숫자 효과 */
.c-step-card .step-num {
    width: 35px; height: 35px;
    background-color: #001a35; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 8px rgba(0,26,53,0.2);
}

.c-step-card {
    border-top: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.c-step-card:hover {
    border-top-color: #001a35 !important;
}

/* 팁 섹션 리스트 효과 */
.hover-bg-light:hover {
    background-color: #f8faff !important;
    transform: translateX(5px);
}
.transition {
    transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   Java 과정 전용 추가 스타일 (Pro_java.php)
   ========================================================================== */

/* Java 전용 배너 이미지 (경로는 서버 설정에 맞춰 수정) */
.sub-visual-java::before {
    background-image: url('../images/pro_banner02.jpg'); /* 준비된 배너 이미지로 교체 */
}

/* Java 전용 로드맵 카드 효과 */
.java-step-card .step-num {
    width: 35px; height: 35px;
    background-color: #001a35; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 8px rgba(0,26,53,0.2);
}

.java-step-card {
    border-top: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.java-step-card:hover {
    border-top-color: #f89820 !important; /* 자바 공식 색상 오렌지 계열 포인트 */
}


/* ==========================================================================
   파이썬 과정 전용 추가 스타일 (Pro_python.php)
   ========================================================================== */

/* 파이썬 전용 비주얼 배너 이미지 */
.sub-visual-python::before {
    background-image: url('../images/pro_banner02.jpg'); /* 파이썬 테마 이미지로 교체 */
}

/* 파이썬 전용 로드맵 단계 효과 */
.py-step-card .step-num {
    width: 35px; height: 35px;
    background-color: #3776ab; color: #fff; /* 파이썬 공식 블루 컬러 */
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 8px rgba(55,118,171,0.3);
}

.py-step-card {
    border-top: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.py-step-card:hover {
    border-top-color: #ffd43b !important; /* 파이썬 공식 옐로우 포인트 */
}

/* 기술 뱃지 추가 컬러 (파이썬/Django 전용) */
.tech-badge[style*="#092e20"] { background-color: #092e20 !important; } /* Django Green */
.tech-badge[style*="#3776ab"] { background-color: #3776ab !important; } /* Python Blue */

/* ==========================================================================
   풀스택 홈페이지 제작 과정 전용 스타일 (Pro_pullst.php)
   ========================================================================== */

/* 풀스택 전용 배너 이미지 */
.sub-visual-fullstack::before {
    background-image: url('../images/pro_banner02.jpg'); /* 풀스택 테마 이미지 */
}

/* 풀스택 로드맵 단계별 아이콘 효과 */
.full-step-card .step-num {
    width: 35px; height: 35px;
    background-color: #001a35; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 8px rgba(0,26,53,0.2);
}

.full-step-card {
    border-top: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.full-step-card:hover {
    border-top-color: #df2222 !important; /* 풀스택 과정의 경우 레드 포인트를 주어 강렬함을 표시 */
}

/* ==========================================================================
   안드로이드 전용 & 무한 루프 쇼케이스 스타일
   ========================================================================== */

/* 1. 무한 루프 컨테이너 */
.portfolio-flow-container {
    overflow: hidden;
    padding: 20px 0;
}

.flow-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    width: max-content; /* 내부 콘텐츠만큼 늘어남 */
}

/* 2. 카드 디자인 */
.flow-card {
    flex: 0 0 300px; /* 카드 너비 고정 */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card-img-area {
    height: 180px;
    overflow: hidden;
}

.card-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flow-card:hover img {
    transform: scale(1.1);
}

.card-info-area {
    padding: 1.25rem;
    text-align: left;
}

/* 3. 애니메이션 효과 (무한 루프) */
.flow-to-right {
    animation: scrollRight 30s linear infinite;
}

.flow-to-left {
    animation: scrollLeft 30s linear infinite;
}

/* 마우스 올리면 정지 */
.portfolio-flow-container:hover .flow-row {
    animation-play-state: paused;
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 4. 안드로이드 전용 배너 */
.sub-visual-andro::before {
    background-image: url('../images/pro_banner02.jpg');
}

/* 5. 로드맵 포인트 */
.andro-step-card .step-num { background-color: #3ddc84; color: #000; }


/* ==========================================================================
   정보처리 자격증 과정 전용 스타일 (Pro_jungbo.php)
   ========================================================================== */

/* 정보처리 전용 배너 이미지 */
.sub-visual-jungbo::before {
    background-image: url('../images/pro_banner02.jpg'); /* 준비된 배너 이미지로 교체 */
}

/* 테이블 헤더 강조 */
.table thead th {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* 리스트 전환 효과 */
.hover-bg-light:hover {
    background-color: #f8faff !important;
    transform: translateX(5px);
}
.transition {
    transition: all 0.2s ease-in-out;
}

/* 등급별 카드 호버 */
.bg-white.shadow-sm.h-100:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,26,53,0.1) !important;
}