/* 전역 스타일 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, '맑은 고딕', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* 컨테이너 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 헤더 스타일 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo img {
}

.logo h1 {
    margin-left: 0.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo:hover h1 {
    color: #3498db;
}

/* 네비게이션 */
nav {
    display: flex;
    align-items: center;
    position: relative; /* 모바일 서브메뉴를 위한 상대 위치 */
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #fff;
    background-color: #3498db;
}

/* 서브메뉴 스타일 */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%; /* 가운데 정렬을 위한 시작점 */
    transform: translateX(-50%) translateY(-10px); /* 가운데 정렬 + 초기 위치 */
    background-color: #fff;
    width: max-content; /* 콘텐츠에 맞는 동적 크기 */
    max-width: 90vw; /* 최대 크기 제한 */
    min-width: 200px; /* 최소 크기 설정 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 1rem;
    display: flex; /* 가로 배치 */
    flex-wrap: wrap; /* 줄바꿈 허용 */
    gap: 1rem;
    justify-content: center; /* 내부 아이템 가운데 정렬 */
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* 가운데 정렬 유지 */
}

.submenu li {
    margin: 0;
    flex: 0 0 auto; /* 유연한 크기 */
    min-width: 160px; /* 최소 폭 줄임 */
    max-width: 250px; /* 최대 폭 설정 */
}

.submenu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.3s;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    text-align: center; /* 텍스트 가운데 정렬 */
}

.submenu li a:hover {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* 서브메뉴 화면 범위 조정 */
@media (max-width: 1200px) {
    .submenu {
        max-width: 95vw;
        min-width: 300px;
    }
    
    .submenu li {
        min-width: 140px;
    }
}

@media (max-width: 992px) {
    .submenu {
        max-width: 90vw;
        min-width: 250px;
    }
    
    .submenu li {
        min-width: 120px;
        max-width: 200px;
    }
}

/* 모바일 메뉴 토글 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 메인 배너 섹션 - 메인페이지 전용 */
.main-hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 4rem;
}

/* 서브페이지 헤더 */
.page-header-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 2rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* 메인 히어로 컨텐츠 - 메인페이지에서만 사용 */
.main-hero-section .hero-banner-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

/* 서브페이지 히어로 컨텐츠 - 서브페이지에서만 사용 */
.page-header-section .hero-content {
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.page-header-section .hero-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.page-header-section .hero-content p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* 배너 슬라이더 */
.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 5;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 오버레이 및 컨텐츠 */
.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.hero-content {
    color: white;
    text-align: left;
    max-width: 480px;
    width: 100%;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-meta {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* MORE INFO 버튼 */
.btn-more {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border: 2px solid #fff;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-more:hover {
    background-color: #fff;
    color: #333;
    transform: translateY(-2px);
}

/* 좌우 화살표 버튼 */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.hero-arrow:hover {
    background-color: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 2rem;
}

.hero-arrow-next {
    right: 2rem;
}

/* 원래 btn-primary 스타일 (다른 곳에서 사용) */
.btn-primary {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 섹션 공통 스타일 */
.section {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

/* 카드 그리드 레이아웃 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 강의 페이지 전용 2열 그리드 */
.card-grid-lectures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #666;
    margin-bottom: 1rem;
}

.card-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.card-link:hover {
    text-decoration: underline;
}

/* 주요 프로그램 카드 전체 링크 */
.card-link-wrapper {
    display: block;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.card-link-wrapper:hover {
    text-decoration: none;
}

/* 리스트 뷰 스타일 - 기본 (뉴스용) */
.list-view {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.list-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.list-item:hover {
    background-color: #f8f9fa;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.list-item-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* 연수 페이지 전용 리스트 뷰 스타일 */
.training-list-view {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.training-list-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
    align-items: flex-start;
}

.training-list-item:hover {
    background-color: #f8f9fa;
}

.training-list-item:last-child {
    border-bottom: none;
}

.training-list-item-image {
    width: 300px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.training-list-item-content {
    flex: 1;
}

.training-list-item-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.training-list-item-meta {
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.training-list-item-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 상세보기 페이지 */
.detail-header {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.detail-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    gap: 2rem;
    color: #666;
}

.detail-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* 푸터 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem 0;
    margin-top: 4rem;
}
footer.mt0 {
    margin-top: 0 !important;
}

.footer-compact {
    text-align: center;
}


.footer-info {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-line {
    margin-bottom: 0.3rem;
}

.footer-line:last-child {
    margin-bottom: 0;
}

.footer-copyright {
    display: flex;
    justify-content: center;
    font-size: 0.85rem;
    color: #bdc3c7;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright a {
    text-decoration: none;
    color: #bdc3c7;
    margin-left: .5rem;

}
/* 푸터 반응형 디자인 */
@media (max-width: 768px) {
    .footer-info {
        margin-bottom: 0.5rem;
        text-align: center;
        font-size: 0.85rem;
    }

    .footer-line {
        margin-bottom: 0.2rem;
    }
    
    /* 연수 페이지 전용 반응형 */
    .training-list-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .training-list-item-image {
        width: 100%;
        height: 200px;
    }
    
    .training-list-item-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1rem 0;
    }

    .footer-info {
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .footer-copyright {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .card-grid-lectures {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100%;
        background: #fff;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: block;
        z-index: 1000;
    }
    
    nav.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-grid-lectures {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    background-color: #fff;
    color: #3498db;
    text-decoration: none;
    border: 1px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s;
    margin: 0 2px;
}

.pagination a:hover,
.pagination a.active {
    background-color: #3498db;
    color: #fff;
}

/* .pageingWrap 클래스도 지원 */
.pageingWrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 2rem;
}

.pageingWrap a {
    padding: 0.5rem 1rem;
    background-color: #fff;
    color: #3498db;
    text-decoration: none;
    border: 1px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s;
    margin: 0 2px;
}

.pageingWrap a:hover,
.pageingWrap a.active {
    background-color: #3498db;
    color: #fff;
}

/* 로딩 스피너 */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* 폼 스타일 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: #3498db;
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #2980b9;
}

/* 갤러리 전용 스타일 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #bdc3c7;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* 프로필 페이지 스타일 */
.profile-section {
    background-color: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-info h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.profile-info .subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.profile-info .contact-info {
    display: flex;
    gap: 2rem;
    color: #666;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3498db;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #3498db;
}

.timeline-date {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: #666;
}

/* 메인 페이지 뉴스 리스트 스타일 */
.news-list-main {
    margin-top: 2rem;
}

.news-item-main {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.news-item-main:hover {
    background-color: #f8f9fa;
    margin: 0 -1rem;
    padding: 1.5rem 1rem;
}

.news-item-main:last-child {
    border-bottom: none;
}

.news-thumbnail-main {
    flex-shrink: 0;
    width: 140px;
    height: 105px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    order: 1;
}

.news-content-main {
    flex: 1;
    order: 2;
}

.news-title-main {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-title-main a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title-main a:hover {
    color: #d4181e;
}

.news-meta-main {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.news-meta-main span {
    font-size: 0.85rem;
    color: #6c757d;
}

.news-summary-main {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-thumbnail-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item-main:hover .news-thumbnail-main img {
    transform: scale(1.05);
}

/* 카테고리 태그 스타일 - 메인페이지용 */
.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.category-tag.notice {
    background-color: #fff3cd;
    color: #856404;
}

.category-tag.event {
    background-color: #d1ecf1;
    color: #0c5460;
}

.category-tag.press {
    background-color: #d4edda;
    color: #155724;
}

/* 공통 유틸리티 클래스 */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.p-2 {
    padding: 2rem;
}

.bg-light {
    background-color: #f8f9fa;
}

.rounded {
    border-radius: 10px;
}

/* 메인 페이지 뉴스 반응형 디자인 */
@media (max-width: 768px) {
    .news-item-main {
        flex-direction: column;
        gap: 1rem;
    }

    .news-item-main:hover {
        margin: 0;
        padding: 1.5rem 0;
    }

    .news-thumbnail-main {
        width: 100%;
        height: 160px;
        order: 1;
    }

    .news-content-main {
        order: 2;
    }

    .news-title-main {
        font-size: 1rem;
    }

    .news-meta-main {
        gap: 0.5rem;
    }

    .news-meta-main span {
        font-size: 0.8rem;
    }

    .news-summary-main {
        font-size: 0.9rem;
    }
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.p-2 {
    padding: 2rem;
}

.bg-light {
    background-color: #f8f9fa;
}

.rounded {
    border-radius: 10px;
}

/* 뉴스 카테고리 태그 */
.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: white;
}

.category-tag.notice {
    background-color: #e74c3c;
}

.category-tag.event {
    background-color: #3498db;
}

.category-tag.press {
    background-color: #27ae60;
}

/* 탭 버튼 스타일 */
.tab-button {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover {
    background-color: #bdc3c7;
}

.tab-button.active {
    background-color: #3498db;
    color: white;
}

/* 검색 폼 */
.search-form {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
}

.search-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 300px;
}

/* 정보 박스 */
.info-box {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.info-box h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-box h4 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 리스트 스타일 개선 */
.styled-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.styled-list li {
    margin-bottom: 0.5rem;
}

/* 수평선 스타일 */
.divider {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

/* 리스트 아이템 개선 */
.list-item.highlight {
    background-color: #f8f9fa;
}

.list-borderless {
    list-style: none;
    padding: 0;
}

.list-borderless li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.list-borderless li:last-child {
    border-bottom: none;
}

/* 강조 텍스트 */
strong {
    font-weight: 600;
}

/* 페이지 헤더 스타일 - 서브 페이지용 (레거시 지원) */
.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 2rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.page-header .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.page-header .hero-content h2,
.hero-section.page-header .hero-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header .hero-content p,
.hero-section.page-header .hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 반응형 - 페이지 헤더 */
@media (max-width: 768px) {
    .page-header,
    .hero-section.page-header {
        padding: 1.5rem 0;
    }
    
    .page-header .hero-content h2,
    .hero-section.page-header .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .page-header .hero-content p,
    .hero-section.page-header .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .page-header .hero-content h2,
    .hero-section.page-header .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .page-header .hero-content p,
    .hero-section.page-header .hero-content p {
        font-size: 0.9rem;
    }
}

/* 반응형 개선 */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-form {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 상세 페이지 공통 스타일 ========== */

/* 브레드크럼 네비게이션 */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #3498db;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: #999;
}

/* ========== 도서 상세 페이지 스타일 ========== */

.book-detail-hero {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.book-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.book-detail-main {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.book-detail-image-wrapper {
    position: relative;
}

.book-detail-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.book-detail-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge-bestseller,
.badge-new {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.badge-bestseller {
    background-color: #e74c3c;
}

.badge-new {
    background-color: #27ae60;
}

.book-detail-info {
    padding: 1rem 0;
}

.book-detail-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.book-detail-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.book-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-label {
    font-weight: 600;
    color: #666;
    min-width: 70px;
}

.meta-value {
    color: #2c3e50;
}

.book-detail-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.price-label {
    font-size: 1rem;
    color: #666;
}

.price-value {
    font-size: 1.8rem;
    color: #e74c3c;
    font-weight: 700;
}

.book-detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-purchase,
.btn-preview,
.btn-share {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-purchase {
    background-color: #3498db;
    color: white;
    flex: 1;
}

.btn-purchase:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-preview {
    background-color: #ecf0f1;
    color: #2c3e50;
    flex: 1;
}

.btn-preview:hover {
    background-color: #bdc3c7;
}

.btn-share {
    background-color: #fff;
    color: #666;
    border: 2px solid #ddd;
    padding: 0.8rem 1.5rem;
}

.btn-share:hover {
    border-color: #3498db;
    color: #3498db;
}

/* 탭 네비게이션 */
.tab-navigation {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: #3498db;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* 탭 콘텐츠 */
.tab-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.content-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content-subtitle {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.content-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

/* 미리보기 이미지 */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.preview-image:hover {
    transform: scale(1.05);
}

/* 목차 */
.contents-list {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.chapter-item:last-child {
    border-bottom: none;
}

.chapter-number {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.chapter-title {
    color: #2c3e50;
    font-size: 1.1rem;
}

/* 저자 프로필 */
.author-profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.author-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.author-name {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.author-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.author-books h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.author-books ul {
    list-style: none;
    padding: 0;
}

.author-books li {
    padding: 0.5rem 0;
    color: #666;
}

/* 서평 */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-item {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
}

.review-rating {
    color: #f39c12;
    font-size: 1.2rem;
}

.review-content {
    color: #666;
    line-height: 1.8;
    font-style: italic;
}

/* 관련 도서 */
.related-books {
    margin-top: 4rem;
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.book-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.book-card-small {
    background-color: #fff;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.book-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.book-card-small img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.book-card-small h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    height: 2.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-card-small p {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.1rem;
}

/* 반응형 디자인 - 히어로 배너 */
@media (max-width: 1200px) {
    .main-hero-section .hero-overlay {
        width: 40%;
        padding: 0 1.5rem;
    }
    
    .main-hero-section .hero-content {
        padding: 1.8rem;
    }
    
    .main-hero-section .hero-content h2 {
        font-size: 2.5rem;
    }

    .main-hero-section .hero-content p {
        display: none !important;
    }
}

@media (max-width: 968px) {
    .main-hero-section {
        height: 500px;
    }
    
    .main-hero-section .hero-overlay {
        width: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
        justify-content: center;
        text-align: center;
        padding: 0 2rem;
    }
    
    .main-hero-section .hero-content {
        text-align: center;
        max-width: 600px;
        background: rgba(0, 0, 0, 0.4);
        padding: 2rem;
    }
    
    .main-hero-section .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
    }
    
    .hero-arrow-prev {
        left: 1rem;
    }
    
    .hero-arrow-next {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
        background: unset !important;
    }

    .main-hero-section {
        height: 40vh !important;
        margin-bottom: 0 !important;
    }
    
    .main-hero-section .hero-content {
        padding: 1.5rem;
    }
    
    .main-hero-section .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .main-hero-section .hero-content p {
        font-size: 1rem;
        display: none;
    }
    
    .main-hero-section .hero-content p:first-of-type {
        display: block;
    }
    
    .main-hero-section .hero-meta {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-more {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .main-hero-section {
        height: 350px;
        margin-bottom: 4rem;
    }
    
    .main-hero-section .hero-overlay {
        padding: 0 1rem;
    }
    
    .main-hero-section .hero-content {
        padding: 1.2rem;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .main-hero-section .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .main-hero-section .hero-content p:first-of-type {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .hero-arrow {
        display: none;
    }
}

/* 반응형 디자인 - 기타 요소 */
@media (max-width: 1024px) {
    .book-detail-main {
        grid-template-columns: 1fr;
    }
    
    .book-detail-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .book-detail-main {
        padding: 1rem;
    }
    
    .book-detail-title {
        font-size: 1.5rem;
    }
    
    .book-detail-meta {
        grid-template-columns: 1fr;
    }
    
    .book-detail-actions {
        flex-direction: column;
    }
    
    .btn-purchase,
    .btn-preview {
        width: 100%;
    }
    
    .tab-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 0.8rem 1.5rem;
    }
    
    .author-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-image {
        margin: 0 auto;
    }
    
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .book-detail-subtitle {
        font-size: 1rem;
    }
    
    .price-value {
        font-size: 1.5rem;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        grid-template-columns: 1fr;
    }
}

/* 메인 페이지 뉴스 반응형 디자인 - 추가 */
@media (max-width: 768px) {
    .news-item-main {
        flex-direction: column;
        gap: 1rem;
    }

    .news-item-main:hover {
        margin: 0;
        padding: 1.5rem 0;
    }

    .news-thumbnail-main {
        width: 100%;
        height: 160px;
        order: 1;
    }

    .news-content-main {
        order: 2;
    }

    .news-title-main {
        font-size: 1rem;
    }

    .news-meta-main {
        gap: 0.5rem;
    }

    .news-meta-main span {
        font-size: 0.8rem;
    }

    .news-summary-main {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-thumbnail-main {
        height: 140px;
    }

    .news-title-main {
        font-size: 0.95rem;
    }
}

/* 원격연수 이미지 리스트 스타일 */
.training-image-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.training-image-item {
    width: 100%;
}

.training-image-link {
    display: block;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.training-image-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.training-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .training-image-list {
        gap: 1.5rem;
    }
    
    .training-image-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
}

/* 원격연수 상세 페이지 - 단순 버전 */
.training-detail-simple {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.training-detail-image-container {
    margin-bottom: 3rem;
}

.training-detail-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.training-detail-image:hover {
    transform: scale(1.02);
}

.training-detail-actions {
    display: flex;
    justify-content: center;
}

.btn-back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-back-to-list:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-back-to-list .btn-icon {
    font-size: 1.3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .training-detail-simple {
        padding: 0 1rem;
    }
    
    .training-detail-image-container {
        margin-bottom: 2rem;
    }
    
    .btn-back-to-list {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* 카카오톡 상담 버튼 */
.kakao-consultation {
    position: fixed;
    top: 70%;
    right: 30px;
    transform: translateY(-50%);
    text-align: center;
    z-index: 1000;
    display: block;
}

.kakao-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFE812;
    color: #000;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.kakao-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.kakao-text span {
    font-size: 14px;
    font-weight: 600;
}

.kakao-text small {
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.8;
}

.kakao-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.kakao-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* 원격연수 리스트 한 줄 레이아웃 */
.training-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Remote training list specific styles */
.remote-training-list .training-card {
    overflow: hidden;
}

.remote-training-list .training-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 연수 프로그램 카드 스타일 */
.training-info {
    margin: 1rem 0;
}

.training-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.training-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.training-value {
    font-weight: 500;
    color: #2c3e50;
}

.training-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.btn-training-video {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-training-video:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .kakao-consultation {
        top: 90%;
        right: 20px;
        transform: translateY(-50%);
    }

    .phone-number,
    .kakao-button {
        padding: 7px 7px;
    }

    .kakao-text small {
        margin-top: 0;
    }
    
    .training-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-training-video {
        width: 100%;
        justify-content: center;
    }

    .logo h1 {
        font-size: 1rem;
    }
    
    .training-list {
        padding: 0 1rem;
    }
    
    .training-item {
        margin-bottom: 1rem;
    }
    
    .training-item img {
        width: 100%;
        height: auto;
    }

    .tab-content {
        padding: 0;
        box-shadow: unset;
    }
}

/* 원격연수 이미지 라운드 처리 */
.training-item img {
    border-radius: 8px;
}

.training-item {
    margin-bottom: 1rem;
}

/* 모바일 서브메뉴 스타일 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
        z-index: 1002;
    }

    nav {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
    }

    .nav-menu {
        position: fixed !important;
        top: var(--header-height, 100px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        background-color: #f8f9fa !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        flex-direction: column !important;
        padding: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        z-index: 1001 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        gap: 0 !important;
        display: block !important;
        margin-top: 0 !important;
    }

    .nav-menu.active,
    nav.active .nav-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: calc(100vh - var(--header-height, 100px)) !important;
        overflow-y: auto !important;
        margin-top: 0 !important;
    }

    body.menu-open {
        overflow: hidden !important;
    }
    
    .nav-menu li {
        width: 100% !important;
        text-align: left !important;
        border-bottom: 1px solid #f0f0f0 !important;
        display: block !important;
    }
    
    .nav-menu li:last-child {
        border-bottom: none !important;
    }
    
    .nav-menu li a {
        display: block !important;
        padding: 1rem !important;
        border-radius: 0 !important;
        background-color: transparent !important;
        border: none !important;
        width: 100% !important;
        text-align: left !important;
        color: #2c3e50 !important;
    }
    
    .nav-menu li a:hover,
    .nav-menu li a.active {
        background-color: #f8f9fa !important;
        color: #3498db !important;
    }
    
    /* PC에서 가로 배치된 서브메뉴를 모바일에서 세로로 변경 */
    .has-submenu .submenu {
        position: static !important;
        opacity: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transform: none !important;
        transition: all 0.3s ease !important;
        background-color: #f8f9fa !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        display: block !important;
        min-width: auto !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .has-submenu.mobile-submenu-open .submenu {
        opacity: 1 !important;
        max-height: 500px !important;
        padding: 0 !important;
        visibility: visible !important;
    }

    .has-submenu.mobile-submenu-open > a {
        background-color: #f8f9fa !important;
        color: #2c3e50 !important;
    }
    
    .submenu li {
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
        flex: none !important;
        border-bottom: 1px solid #e9ecef !important;
        display: block !important;
    }
    
    .submenu li:last-child {
        border-bottom: none !important;
    }
    
    .submenu li a {
        padding: 0.75rem 2rem !important;
        font-size: 0.9rem !important;
        color: #666 !important;
        border: none !important;
        background-color: transparent !important;
        text-align: left !important;
        border-radius: 0 !important;
        display: block !important;
    }
    
    .submenu li a:hover {
        background-color: #e9ecef !important;
        color: #3498db !important;
    }
    
    /* 모바일 서브메뉴 토글 화살표 */
    .has-submenu > a::after {
        content: '▼' !important;
        font-size: 0.7em !important;
        margin-left: 0.5rem !important;
        transition: transform 0.3s ease !important;
        float: right !important;
    }
    
    .has-submenu.mobile-submenu-open > a::after {
        transform: rotate(180deg) !important;
    }
    
    /* 데스크톱 전용 서브메뉴 숨기기 */
    .has-submenu:hover:not(.mobile-submenu-open) .submenu {
        opacity: 0 !important;
        visibility: hidden !important;
    }
}
@media (max-width: 768px) {
    .news-body img,
    .content-description img,
    .content-body img {
        max-width: 95%;
        height: auto;
    }

    .logo img {
        margin: .5rem 0;
        height: 2.5rem;
    }
}

/* Lecture list clickable cards */
.card-grid-lectures .lecture-card-link {
    cursor: pointer;
}

/* Mobile layout enhancements for lecture view */
@media (max-width: 768px) {
    /* Tab menu: two rows, last cell blank */
    .lecture-content .tab-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        border-bottom: none;
    }

    .lecture-content .tab-menu .tab-link {
        width: 100%;
        border-bottom: 2px solid #dee2e6;
    }

    .lecture-content .tab-menu::after {
        content: '';
    }

    /* Curriculum table mobile styling */
    .curriculum-table thead {
        display: none;
    }

    .curriculum-table tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #dee2e6;
    }

    .curriculum-table tbody td {
        display: block;
        border: none;
        padding: 10px;
    }

    .curriculum-table .topic-cell {
        background: #f8f9fa;
        font-weight: 600;
    }

    /* Content items vertical layout */
    .content-items,
    .content-items tbody,
    .content-items tr,
    .content-items td {
        display: block;
        width: 100%;
    }

    .content-items tr {
        margin-bottom: 10px;
        border: 1px solid #dee2e6;
    }

    .content-item {
        display: flex;
        flex-direction: column;
    }

    .content-item .text-cell {
        order: 1;
    }

    .content-item .image-cell {
        order: 2;
    }

    .content-item .image-cell img {
        width: 100%;
        height: auto;
    }
}
