/* ─────────────────────────────────────────────
   디자인 변수 (전역 설정)
   ───────────────────────────────────────────── */
:root {
    /* 기본 색상 */
    --background-light: #f7f7f7;
    --text-dark: #333333;
    --text-light: #6c757d;
    --accent-color: #007bff;
    --border-radius: 16px;

    /* 그라데이션 컬러 */
    --primary-color: #764ba2;
    --primary-rgb: 118, 75, 162;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --nav-gradient-start: #2c3e50;
    --nav-gradient-end: #3498db;
}

/* ─────────────────────────────────────────────
   이미지 최적화 스타일
   ───────────────────────────────────────────── */

/* Lazy Loading 이미지 기본 스타일 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.lazy.loaded {
    opacity: 1;
}

/* 이미지 로딩 중 플레이스홀더 */
img.lazy:not(.loaded) {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* LQIP (Low Quality Image Placeholder) 스타일 */
img.lqip-loading {
    filter: blur(10px);
    transform: scale(1.05);
    transition: filter 0.3s ease, transform 0.3s ease;
}

img.lqip-loaded {
    filter: blur(0);
    transform: scale(1);
}

/* 이미지 최적화 - 반응형 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 이미지 컨테이너 aspect ratio 유지 */
.img-container {
    position: relative;
    overflow: hidden;
}

.img-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 비율 */
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 이미지 에러 처리 */
img.image-error {
    opacity: 0.5;
}

/* 저대역폭 환경 대응 */
.low-bandwidth img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* WebP 지원 시 최적화 */
.webp .no-webp-only {
    display: none;
}

.no-webp .webp-only {
    display: none;
}

/* 이미지 페이드인 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

img.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 프린트 시 이미지 최적화 */
@media print {
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    img {
        image-rendering: auto;
    }
}

/* Retina 디스플레이 최적화 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ─────────────────────────────────────────────
   기본 타이포그래피
   ───────────────────────────────────────────── */
body {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-stretch: 90%;      /* 장평 90% */
    letter-spacing: -0.5px;   /* 자간 -0.5px */
    line-height: 2;
    color: var(--text-dark);
    background-color: #f2effa; /* 연한 보라색 배경 추가 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Noto Sans KR', 'Tuffy', 'Apple SD Gothic Neo', 'Nanum Gothic',  sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ─────────────────────────────────────────────
   네비게이션 바 컴포넌트
   ───────────────────────────────────────────── */
/* .navbar, .navbar-brand, .nav-link, .navbar-toggler, .navbar-toggler-icon, .dropdown-menu, .dropdown-item 등 내브바 관련 기존 스타일은 주석 처리됨 */

/* ─────────────────────────────────────────────
   확장된 푸터 스타일
   ───────────────────────────────────────────── */
.expanded-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #667eea 100%);
    color: white;
    padding: 4rem 0 1rem;
    margin-top: 3rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #bdc3c7;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* 소셜 링크 */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* 푸터 링크 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ecf0f1;
}

/* 방문자 통계 스타일 */
.visitor-stats-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #f39c12;
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 강의 정보 */
.course-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.course-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
    margin-right: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.course-label {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 푸터 하단 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
}

.copyright-text {
    margin: 0;
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-tagline {
    margin: 0;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .expanded-footer {
        padding: 3rem 0 1rem;
    }
    
    .visitor-stats-footer {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .course-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .course-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
    }
    
    .course-number {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}

/* ─────────────────────────────────────────────
   랜딩 섹션
   ───────────────────────────────────────────── */
.landing-section {
    background-image: url('/images/main_ai.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    position: relative;
    height: 50vh;
    overflow: hidden;
}

.landing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 검정색 배경 */
    z-index: 1;
}

.landing-section .container {
    position: relative;
    z-index: 2;
}

/* 인덱스 랜딩 섹션 (index.ejs) - 개선된 디자인 */
#landing {
    background-image: url('/images/main_ai.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* 그라데이션 오버레이 - 다크 블루/네이비 톤으로 세련되게 */
.landing-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 60, 114, 0.5) 0%,
        rgba(42, 82, 152, 0.55) 50%,
        rgba(24, 48, 88, 0.6) 100%
    );
    z-index: 1;
}

/* 파티클 배경 효과 */
.landing-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
    z-index: 2;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-20px); }
}

/* landing 전용 텍스트 묶음에만 슬라이드·페이드인 */
.landing-container {
    position: relative;
    z-index: 3;
    opacity: 0;
    animation: slideFadeIn 1s ease-out 0.3s forwards;
}

/* AI 아이콘 래퍼 */
.landing-icon-wrapper {
    margin-bottom: 2rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* AI 아이콘 스타일 */
.landing-icon {
    display: inline-block;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.1),
            0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow:
            0 15px 50px rgba(0, 0, 0, 0.4),
            inset 0 0 30px rgba(255, 255, 255, 0.2),
            0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.landing-icon i {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: iconRotate 4s linear infinite;
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* landing 텍스트 스타일 개선 */
#landing h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(118, 75, 162, 0.5);
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

#landing p {
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* 스크롤 인디케이터 */
.landing-scroll-indicator {
    margin-top: 3rem;
    animation: scrollBounce 2s ease-in-out infinite;
    cursor: pointer;
}

.landing-scroll-indicator i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.landing-scroll-indicator:hover i {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #landing {
        height: 70vh;
        min-height: 400px;
    }

    .landing-icon {
        width: 70px;
        height: 70px;
    }

    .landing-icon i {
        font-size: 2rem;
    }

    #landing h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    #landing p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .landing-scroll-indicator {
        margin-top: 2rem;
    }

    .landing-scroll-indicator i {
        font-size: 1.5rem;
    }
}

/* 카드 스타일 - 개선된 현대적 디자인 */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    margin-bottom: 0.5rem;
    height: 100px;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 카드 헤더 - 개선된 그라데이션과 그림자 */
.card-header-custom {
    padding: 0.5rem 0.25rem 0.5rem 1.25rem;
    border-bottom: none;
    position: relative;
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: all 0.4s ease;
}

.card:hover .card-header-custom {
    background-position: 100% 50%;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.card-header-custom.basic {
    background: linear-gradient(135deg, 
        var(--basic-start) 0%, 
        var(--basic-end) 50%, 
        #9a76c2 100%);
}

.card-header-custom.intermediate {
    background: linear-gradient(135deg, 
        var(--intermediate-start) 0%, 
        var(--intermediate-end) 50%, 
        #8660b8 100%);
}

.card-header-custom.practical {
    background: linear-gradient(135deg, 
        var(--practical-start) 0%, 
        var(--practical-end) 50%, 
        #7248a3 100%);
}

.card-header-custom.advanced {
    background: linear-gradient(135deg, 
        var(--advanced-start) 0%, 
        var(--advanced-end) 50%, 
        #64308e 100%);
}

.card-header-custom.expert {
    background: linear-gradient(135deg, 
        var(--expert-start) 0%, 
        var(--expert-end) 50%, 
        #5e1879 100%);
}

.card-header-custom.special {
    background: linear-gradient(135deg, 
        var(--special-start) 0%, 
        var(--special-end) 50%, 
        #b8860b 20%, 
        #9964c4 100%);
}

/* 헤더의 강의 제목 - 개선된 타이포그래피 */
.card-title-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding-right: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.02em;
}

/* 헤더의 아이콘 - 개선된 디자인 */
.card-header-icon {
    position: absolute;
    top: 0.5rem;
    right: 1.25rem;
    width: 23px;
    height: 23px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover .card-header-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 0.5rem 1rem 1rem 1rem;
    position: relative;
    z-index: 2;
    height: calc(100% - 65px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

/* 개선된 작은 테두리 버튼 */
.btn-outline-small {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.8rem !important;
    border-radius: 25px !important;
    border: 2px solid rgba(108, 117, 125, 0.3) !important;
    color: #495057 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: auto !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.btn-outline-small:hover {
    border-color: #495057 !important;
    color: white !important;
    background: #495057 !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 16px rgba(73, 80, 87, 0.3) !important;
}

.card .btn-outline-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.card .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* 애니메이션 키프레임 */
@keyframes fadeInBackground {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────────
   강의 헤더
   ───────────────────────────────────────────── */
.lecture-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.8rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.lecture-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1z'%3E%3C/path%3E%3C/svg%3E");
}

.lecture-header h1 {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.lecture-header .lead {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────
   컨텐츠 카드
   ───────────────────────────────────────────── */
.content-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* lecture01에서는 content-card 안에 content-card가 있으므로 중첩된 경우 처리 */
.content-card .content-card {
    padding: 1rem;
    box-shadow: none;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
}

/* 주요 주제 영역 컨텐츠 카드 */
.content-card.mb-3 {
    padding: 0 1.5rem 1rem 1.5rem;
    margin-bottom: 2rem;
}

.content-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* 모든 h5 기본 스타일 */
.content-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* 주요 주제 영역의 h5 태그 */
.content-card.mb-3 h5.d-flex.align-items-center.py-2 {
    margin: 0;
    padding-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    cursor: default;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

/* 주요 주제 영역의 h5 태그에서 before 가상 요소 명시적 제거 */
.content-card.mb-3 h5.d-flex.align-items-center.py-2::before {
    content: none;
    display: none;
}

/* 주요 주제 영역의 내부 여백 조정 */
.content-card.mb-3 .py-2 {
    padding-top: 0.75rem !important;
    padding-bottom: 0 !important;
}

/* 슬라이드 보기 버튼 영역 여백 관리 */
.content-card.mb-3 .text-end {
    margin-top: 0.5rem;
}

/* 실제 컨텐츠 영역의 h5 */
.content-card:not(.mb-3) h5 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    cursor: default;
}

/* 토글 가능한 h5에만 커서 포인터 적용 */
.content-card h5.toggle-head {
    cursor: pointer;
    margin-top: 1.5rem;
}

/* 기본적으로 모든 h5의 before 가상 요소 제거 */
.content-card h5::before {
    content: none;
}

/* 토글 가능한 h5에만 화살표 아이콘 표시 */
.content-card h5.toggle-head::before {
    content: '▶';
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

/* 토글 활성화 시 화살표 회전 */
.content-card h5.toggle-head.active::before,
.content-card h5.active::before {
    transform: rotate(90deg);
}

.content-card h5 + * {
    display: block;
}

.content-card h5.active + * {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 주제 리스트 스타일 */
.topic-item:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.subtopic-list {
    list-style-type: none;
}

.content-card h5 .text-warning {
    color: #f8c51c !important;
}

.content-card .fa-check-circle.text-primary {
    color: #2196F3 !important;
}

.content-card .fa-check-circle {
    color: #28a745;
}

.content-card .list-group-item {
    border: none;
    padding: 1rem;
    background: var(--background-light);
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.content-card .list-group-item:hover {
    transform: translateX(5px);
    background: #f8f9fa;
}

/* ─────────────────────────────────────────────
   페르소나 카드
   ───────────────────────────────────────────── */
.persona-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.persona-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.persona-img {
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.persona-title {
    color: #2c3e50;
    font-weight: 600;
}

.persona-details p {
    color: #555;
    line-height: 1.6;
}

.persona-details strong {
    color: #2c3e50;
}

/* ─────────────────────────────────────────────
   설정 카드
   ───────────────────────────────────────────── */
.settings-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: auto;
    min-height: 100px;
}

.settings-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.settings-card .card-title {
    color: #2c3e50;
    font-weight: 600;
}

.settings-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────
   사이드바
   ───────────────────────────────────────────── */
.sidebar .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.sidebar .card-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border-radius: 12px 12px 0 0;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.95rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0.2rem 0;
}

/* 강의 목차(사이드바)의 강의 번호 스타일 */
.sidebar .nav-link .lecture-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-right: 0.8rem;
    min-width: 24px;
    display: inline-block;
    text-align: center;
}

.sidebar .nav-link .lecture-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white !important;
}

.sidebar .nav-link.active .lecture-number {
    color: white;
}

.sidebar .nav-link:hover {
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateX(3px);
    color: var(--text-dark) !important;
}

.sidebar .nav-link:hover .lecture-number {
    color: var(--primary-color);
}

.sidebar .card-body {
    padding: 0.8rem;
}

/* ─────────────────────────────────────────────
   기타 유틸리티
   ───────────────────────────────────────────── */
.highlight-box {
    background: linear-gradient(135deg, rgba(246, 211, 101, 0.2) 0%, rgba(253, 160, 133, 0.2) 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    color: var(--text-dark);
}

.table-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--accent-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   토글 컴포넌트
   ───────────────────────────────────────────── */
.toggleable {
    margin-bottom: 1rem;
}

.toggleable .toggle-head {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 1.5rem;
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.toggleable .toggle-head::before {
    content: '▶';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.toggleable .toggle-head.active::before {
    transform: rotate(90deg);
}

.toggleable .toggle-content {
    display: none;
    overflow: hidden;
    padding-left: 1.5rem;
    padding-top: 0.2rem;
    transition: max-height 0.3s ease;
}

.toggleable .toggle-head.active + .toggle-content {
    display: block;
    animation: fadeIn 0.5s ease;
} 

/* ─────────────────────────────────────────────
   기존 아이덴티티 유지 + 미묘한 차이 시스템
   ───────────────────────────────────────────── */

:root {
    /* 기존 아이덴티티 컬러를 베이스로 미묘한 변화 */
    --base-start: #667eea;    /* 기존 메인 컬러 */
    --base-end: #764ba2;      /* 기존 메인 컬러 */
    
    /* 기초: 약간 밝은 톤 (10% 밝게) */
    --basic-start: #7b8ceb;
    --basic-end: #8560b2;
    
    /* 중급: 표준 색상 (기존 아이덴티티) */
    --intermediate-start: #667eea;
    --intermediate-end: #764ba2;
    
    /* 활용: 약간 더 진함 (10% 어둡게) */
    --practical-start: #5a70e9;
    --practical-end: #68428d;
    
    /* 고급: 더 깊은 톤 (20% 어둡게) */
    --advanced-start: #4e62e8;
    --advanced-end: #5a3678;
    
    /* 전문: 가장 진한 톤 (30% 어둡게) */
    --expert-start: #4054e7;
    --expert-end: #4c2a63;
    
    /* 특별 (Q&A): 기존 색상에 골드 힌트 */
    --special-start: #7b84ea;
    --special-end: #8654a8;
}

/* 섹션 헤더 스타일 - 개선된 현대적 디자인 */
/* ─────────────────────────────────────────────
   섹션 헤더 및 단계별 타이틀 스타일 (2024 리뉴얼)
   ───────────────────────────────────────────── */
.section-header {
    margin: 3.2rem 0 1.6rem 0;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    width: 100%;
}

/* ─────────────────────────────────────────────
   섹션 타이틀 - 구분선형 스타일 (2024 리뉴얼)
   ───────────────────────────────────────────── */
.section-title {
    width: 100%;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: -0.01em;
    padding: 0.25rem 0 0.5rem 0;
    background: none;
    color: #3e2763;
    position: relative;
    margin-bottom: 1.3rem;
    border-radius: 0 !important;
    box-shadow: none;
    border: none;
    transition: none;
    /* 구분선: 아래쪽 border */
    border-bottom: 3px solid #c0b3e6;
}
.section-title.basic {
    border-bottom-color: #7b8ceb;
}
.section-title.intermediate {
    border-bottom-color: #667eea;
}
.section-title.practical {
    border-bottom-color: #5a70e9;
}
.section-title.advanced, .section-title.expert {
    border-bottom-color: #f8b500;
}
.section-title .section-icon {
    font-size: 1.5rem;
    margin-right: 1.2rem;
    filter: none;
    flex-shrink: 0;
    /* 색 강조 (단계별 바꿔도 됨) */
    color: #a987ee;
}

/* 반응형 디자인 - 개선된 모바일 최적화 */
@media (max-width: 768px) {
    .section-title {
        font-size: 1rem;
        padding: 0.15rem 0 0.3rem 0;
        border-bottom-width: 2px;
    }
    .card {
        height: 200px;
        margin-bottom: 1.25rem;
        border-radius: 16px;
    }
    .card-header-custom {
        padding: 1rem 1.25rem 0.75rem 1.25rem;
    }
    .card-title-header {
        font-size: 1rem;
        padding-right: 40px;
        line-height: 1.3;
    }
    .card-header-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        top: 1rem;
        right: 1rem;
        border-radius: 10px;
    }
    .card-body {
        padding: 1rem 1.25rem 1.25rem 1.25rem;
        height: calc(100% - 55px);
    }
    .card-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .card-meta {
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }
    .meta-item {
        padding: 0.2rem 0.6rem;
        gap: 0.3rem;
    }
    .btn-outline-small {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
    }
    .lecture-number {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
        bottom: 0.75rem;
        right: 1rem;
        border-radius: 11px;
    }
}

/* 카드 메타 정보 - 개선된 디자인 */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    opacity: 1;
    transform: translateY(0);
    padding: 0.5rem 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #718096;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    border: 1px solid rgba(113, 128, 150, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #4a5568;
    transform: translateY(-1px);
}

.meta-item i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 강의 번호 표시 - 개선된 디자인 */
.lecture-number {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: #2d3748;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.card:hover .lecture-number {
    opacity: 1;
    transform: scale(1.15) rotate(-5deg);
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 애니메이션 키프레임 추가 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 - 컴팩트 버전 */
@media (max-width: 768px) {
    .section-title {
        font-size: 1rem;
        padding: 0.3rem 1.2rem;
    }
    
    .card {
        height: 180px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .card-title {
        padding-right: 35px !important;
        font-size: 1rem !important;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
    
    .card-meta {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .card .btn-outline-primary {
        padding: 0.4rem 1rem !important;
        font-size: 0.75rem !important;
    }
    
    .lecture-number {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        bottom: 0.5rem;
        right: 0.75rem;
    }
}

/* 강의 섹션 - 개선된 레이아웃 */
#lectures {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* 카드 그리드 개선 */
.lectures-grid {
    margin-bottom: 1.5rem;
}

/* 개선된 마진 */
.mb-3 {
    margin-bottom: 1rem !important;
}

/* 카드 그룹별 애니메이션 딜레이 */
.row .col-md-6:nth-child(1) .card { animation-delay: 0.1s; }
.row .col-md-6:nth-child(2) .card { animation-delay: 0.2s; }
.row .col-md-6:nth-child(3) .card { animation-delay: 0.3s; }
.row .col-md-6:nth-child(4) .card { animation-delay: 0.4s; }

/* 카드 등장 애니메이션 */
.card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 텍스트 개선 */
.card-title, .card-text {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

/* 사이드바 강의번호 항상 노출, 카드 스타일 무력화 */
.sidebar .nav-link .lecture-number {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    display: inline-block !important;
    align-items: unset !important;
    justify-content: unset !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    margin-right: 0.8rem !important;
    min-width: 24px !important;
    text-align: center !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}
.sidebar .nav-link.active .lecture-number {
    color: white !important;
}

.persona-card {
    height: auto !important;
    min-height: 180px;
}



/* 내브바 스타일 우선순위 보장: 항상 마지막에 선언 */
.navbar {
    background: #fff !important;
    border-bottom: 2.5px solid #e2e8f0 !important;
    box-shadow: none !important;
    padding: 1.2rem 1rem;
    height: 93px;
    display: flex;
    align-items: center;
    z-index: 10;
}

/* 내브바 브랜드 및 링크 폰트 스타일 교체 및 letter-spacing/font-size 조정 */
.navbar-brand {
    font-family: 'Pretendard', 'Noto Sans KR', 'Segoe UI', 'Apple SD Gothic Neo', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #764ba2 !important;
    letter-spacing: -0.01em;
    transition: color 0.22s;
}

.navbar-brand:hover {
    color: #49306b !important;
}

.nav-link {
    font-family: 'Pretendard', 'Noto Sans KR', 'Segoe UI', 'Apple SD Gothic Neo', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #3e2763 !important;
    margin: 0 0.35rem;
    padding: 0.1rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(118, 75, 162, 0.15);
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active,
.nav-link:hover {
    background-color: rgba(118, 75, 162, 0.08) !important;
    color: #764ba2 !important;
    border-color: rgba(118, 75, 162, 0.3);
    transform: translateY(-1px);
}

.nav-link.active {
    font-weight: 700;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12)) !important;
    border-color: rgba(118, 75, 162, 0.35);
}

.nav-link.active::before {
    width: 80%;
}

.navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none;
    background: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,\
      <svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'>\
        <path stroke='rgba(120, 75, 162, 0.8)' stroke-width='2' \
          d='M4 7h22M4 15h22M4 23h22'/>\
      </svg>");
}

.dropdown-menu {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(102, 126, 234, 0.08);
    border: 1px solid #f2eaff;
    padding: 0.3rem 0;
}
.dropdown-item {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.97rem;
    color: #3e2763;
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    transition: background 0.19s, color 0.18s;
}
.dropdown-item:hover,
.dropdown-item.active {
    background: #f5f2fa;
    color: #764ba2;
}

/* 반응형 */
@media (max-width: 991.98px) {
    .navbar {
        height: auto;
        min-height: 56px;
        border-bottom-width: 1.5px;
    }
}
/* 모달 스타일 오버라이드 - 카드 스타일 충돌 방지 */
.modal .quote-item {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    background: white !important;
    border: none !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
}

.modal .quote-item:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.modal .quotes-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal .quotes-container::-webkit-scrollbar {
    width: 6px;
}

.modal .quotes-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal .quotes-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.modal .quotes-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 모달 백드롭 스타일 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* 모달 자체 스타일 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-lg {
    max-width: 800px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

body.modal-open {
    overflow: hidden;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
    
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
    
    .modal-lg {
        max-width: 800px;
    }
}

/* 모달 다이얼로그 애니메이션 */
.modal-dialog {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
    transition: all 0.2s ease-out;
}

.modal.show .modal-dialog {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* 모달 백드롭 애니메이션 개선 */
.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* 스크롤 방지 시 body 스타일 */
body.modal-open {
    overflow: hidden;
    padding-right: 0px; /* 스크롤바 자리 보정 */
}

/* 모달 중앙 정렬 보정 - 그리드 시스템 무시 */
#simpleModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1050 !important;
}

#simpleModal .modal-dialog {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 800px !important;
    width: 90% !important;
}

#simpleModal .modal-dialog-centered {
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    min-height: unset !important;
}

@media (max-width: 768px) {
    #simpleModal .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }
}

/* ─────────────────────────────────────────────
   런칭 팝업 스타일
   ───────────────────────────────────────────── */
#launchPopup .modal-content {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
}

#launchPopup .bg-gradient-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#launchPopup .modal-header {
    padding: 1.5rem 2rem;
    border-bottom: none;
}

#launchPopup .modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

#launchPopup .modal-body {
    padding: 2rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9ff 100%);
}

#launchPopup .service-icon i {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(118, 75, 162, 0.3));
}

#launchPopup .feature-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(118, 75, 162, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

#launchPopup .feature-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--gradient-end);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.15);
}

#launchPopup .feature-item i {
    font-size: 1.5rem;
}

#launchPopup .feature-item h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

#launchPopup .launch-badge .badge {
    font-weight: 600;
    border-radius: 25px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

#launchPopup .modal-footer {
    padding: 1.5rem 2rem 2rem;
    background: linear-gradient(to top, #f8f9ff 0%, #ffffff 100%);
    border-top: none;
    gap: 1rem;
}

#launchPopup .btn-lg {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
}

#launchPopup .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.3);
}

#launchPopup .btn-outline-secondary {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#launchPopup .btn-outline-secondary:hover {
    background-color: #6c757d;
    transform: translateY(-1px);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    #launchPopup .modal-dialog {
        margin: 1rem;
    }
    
    #launchPopup .modal-header,
    #launchPopup .modal-body,
    #launchPopup .modal-footer {
        padding: 1.5rem;
    }
    
    #launchPopup .modal-title {
        font-size: 1.2rem;
    }
    
    #launchPopup .service-icon i {
        font-size: 2.5rem;
    }
    
    #launchPopup .feature-item {
        margin-bottom: 1rem;
    }
    
    #launchPopup .modal-footer {
        flex-direction: column;
    }
    
    #launchPopup .modal-footer .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}
