body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
}

/* 상세커리큘럼 관련사항 */

.modal-body {
 	min-height: 200px; 
    overflow-x: hidden; 
    display: block !important;
    visibility: visible !important;
}
.modal-content{
	max-width:860px !important;
	margin: 0 auto;
	height: 650px;
	overflow: hidden;
    overflow-y: auto; 
}
.modal-content img {
    max-width: 100% !important; 
    opacity: 1 !important;
    display: block; 
    margin: 0 auto; 
    object-fit: contain;
}



.edu-img{
    opacity: 1 !important;
    width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 330px;
    /*background: linear-gradient(135deg, #0e2175 0%, #1a3db3 100%);*/
    background-image: url('http://choongang.kbsn.or.kr/upload/promo1.jpg');
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('http://127.0.0.1:5500/images/hero-pattern.png') repeat; */
    opacity: 0.1;
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-top: 1rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.sub-text {
    color: #fff;
    margin-top: -20px;
}

/* 플로팅 메뉴 스타일 */
.floating-menu {
    position: fixed;
    top: 60%;
    right: 4%;
    transform: translateY(-50%) translateX(0);
    background: white;
    color: #333;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    width: 90px;
    max-width: 90vw;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.floating-menu.collapsed {
    transform: translateY(-50%) translateX(calc(100% - 40px));
}

/* 플로팅 메뉴 헤더 */
.excellent-institution-badge {
    background-color: #015e18;
    color: white;
    padding: 15px 10px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    position: relative;
    box-sizing: border-box;
}

.badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 메뉴 아이템 */
.floating-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 5px;
    border-bottom: 1px solid #9e9d9d;
    gap: 4px;
    position: relative;
    text-align: center;
    width: 90px;
    height: 60px;
    justify-content: center;
}

.floating-menu-item:last-of-type {
    border-bottom: none;
}

.floating-menu-item:hover {
    background: #f8f9fa;
    transform: translateX(-3px);
}

.floating-menu-item i {
    font-size: 18px;
    color: #666;
    margin-bottom: 4px;
    text-align: center;
    transition: color 0.3s ease;
}

.floating-menu-item:hover i {
    color: #666;
}

.floating-menu-item span {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    line-height: 1.2;
    text-align: center;
}

/* 특별한 메뉴 아이템 스타일 */
.floating-menu-item.info-inquiry {
    background: white;
    color: #666;
}

.floating-menu-item.info-inquiry i {
    color: #666;
}

.floating-menu-item.education-inquiry {
    background: white;
    color: #666;
}

.floating-menu-item.education-inquiry i {
    color: #666;
}

.floating-menu-item.kakao-consultation {
    background: white;
    color: #666;
}

.floating-menu-item.kakao-consultation i {
    color: #666;
    background: #fbbf24;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.floating-menu-item.phone-number {
    background: white;
    color: #666;
}

.floating-menu-item.phone-number i {
    color: #666;
}

.phone-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}


.cart-height {
	height: 93px;
}

@media (max-width:900px) {
    .footer-1 {
        width: 100% !important; 
        text-align: center;
        justify-content: center;
    }

    .footer-2{
        width: 50% !important; 
        text-align: center;
    }

    .footer-3{
        width: 50% !important; 
        text-align: center;
    }

    .footer-4{
        width: 50% !important; 
        text-align: center;
    }
}

/* 모바일에서는 플로팅 메뉴 숨김 */
@media (max-width: 768px) {
    .floating-menu {
        display: none !important;
    }
    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* 모바일 드롭다운 메뉴 스타일 */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        box-shadow: none;
        display: none; /* 기본적으로 숨김 */
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block !important; /* show 클래스가 있을 때만 표시 */
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .navbar-nav .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: #e9ecef;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }
}

/* 네비게이션 스타일 */
.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 15px 20px !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #015e18 !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #015e18;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.contact-info i {
    margin-right: 5px;
    color: #007bff;
}

.social-links a {
    color: #666;
    margin-left: 15px;
    font-size: 18px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #007bff;
}

/* K-디지털 트레이닝 섹션 스타일 */
#k-digital-schedule {
    background: #f8f9fa;
    padding: 80px 0;
}

.course-tabs-wrapper {
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
    border: 1px solid #e0e6f0;
}

.course-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-tab {
    flex: 1;
    min-width: 150px;
    border: none;
    background: #f5f7fb;
    color: #0f2a5f;
    padding: 18px 20px 14px;
    border-radius: 14px;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: inset 0 -4px 0 rgba(17, 94, 164, 0.15);
}

.course-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.25s ease, width 0.25s ease;
}

.course-tab.active,
.course-tab:hover {
    background: linear-gradient(135deg, #0b6d2f 0%, #16a64a 100%);
    color: #fff;
    box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.25);
}

.course-tab.active::after,
.course-tab:hover::after {
    background: rgba(255, 255, 255, 0.9);
    width: 34px;
}

.course-tab-title {
    font-size: 0.95rem;
    display: block;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.course-tab-desc {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.course-tab.active .course-tab-desc,
.course-tab:hover .course-tab-desc {
    color: rgba(255, 255, 255, 0.95);
}

.course-card-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .course-tabs {
        flex-direction: column;
    }
    
    .course-tab {
        text-align: center;
    }
}

/* Footer Info */
.footer-info {
    background: rgb(244, 255, 244);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.footer-title {
    color: rgb(0, 128, 128);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}



.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 45%;
    width: 150px;
    height: 3px;
    /* background: linear-gradient(45deg, #007bff, #0056b3); */
    border-radius: 2px;
}

/* 카드 스타일 */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.card-img-top {
    position: relative;
    overflow: hidden;
}

.edu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .edu-img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* 버튼 스타일 */


/* 버튼 그룹 스타일 */
.btn-group {
    display: flex;
    gap: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.btn-group .btn {
    border-radius: 0;
    border: none;
    flex: 1;
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.btn-group .btn:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.btn-group .btn-success {
    background: #198754;
    color: white;
}

.btn-group .btn-success:hover {
    background: #157347;
    color: white;
}

.btn-group .btn-outline-primary {
    background: transparent;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    box-sizing: border-box;
    border-left: 1px solid #0d6efd !important;
    border-right: 1px solid #0d6efd !important;
    border-bottom: 1px solid #0d6efd !important;
    margin-left: 1px !important;
    
}

.btn-group .btn-outline-primary:hover {
    background: #0d6efd;
    color: white;
}

.btn-group .btn-outline-info {
    background: transparent;
    color: #f57804;
    border: 1px solid #f57804;
    box-sizing: border-box;
    border-left: 1px solid #f57804 !important;
    border-right: 1px solid #f57804 !important;
    margin-left: 1px !important;
}

.btn-group .btn-outline-info:hover {
    background: #f57804;
    color: white;
    box-sizing: border-box;
}

/* 배지 스타일 */
.badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    background: #007bff !important;
}

/* 푸터 스타일 */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%) !important;
}

footer h5, footer h6 {
    margin-bottom: 1rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

.font-color-yellow {
    color: #ffeb3b;
}  

.font-color-green {
    color: #7ff87b;
}  

.font-color-white {
    color: #ffffff; 
}

.operimg{
    filter: brightness(0) invert(1);
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    #k-digital-schedule {
        padding: 60px 0;
    }
    
    /* 모바일에서 버튼 그룹 세로 배치 */
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        border-radius: 0.5rem !important;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-group .btn:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    #k-digital-schedule {
        padding: 40px 0;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 스크롤 애니메이션 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 접근성 개선 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 네비게이션 스크롤 효과 */
.navbar {
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(228, 233, 233, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* 이미지 로딩 효과 */
img {
    transition: opacity 0.3s ease;
}

img:not(.loaded) {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

.img-fluid {
    opacity: 1 !important;
}

/* 커리큘럼 모달 스타일 */
.curriculum-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.curriculum-content::-webkit-scrollbar {
    width: 6px;
}

.curriculum-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.curriculum-content::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.curriculum-content::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.week-section {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
  /*   transition: all 0.3s ease; */
}

.week-section:hover {
    background: #e9ecef;
  /*  transform: translateX(5px); */
}

.week-title {
    color: #007bff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.week-title::before {
    content: "📚";
    margin-right: 10px;
    font-size: 1.2rem;
}

.week-content ul {
    margin: 0;
    padding-left: 0;
}

.week-content li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
   /*  transition: all 0.3s ease; */
}

.week-content li:last-child {
    border-bottom: none;
}
/*
.week-content li:hover {
    background: #fff;
    padding-left: 10px;
    border-radius: 5px;
}
*/
.week-content li i {
    font-size: 0.9rem;
}

.additional-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #dee2e6;
}

.additional-info h6 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.additional-info h6::before {
    content: "⭐";
    margin-right: 8px;
    font-size: 1.1rem;
}

.additional-info ul {
    margin: 0;
    padding-left: 0;
}

.additional-info li {
    margin-bottom: 10px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.additional-info li:hover {
    background: #fff;
    padding-left: 10px;
    border-radius: 5px;
}

.additional-info li i {
    font-size: 0.9rem;
}

/* 모달 헤더 스타일 */
.modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.btn-close {
    filter: invert(1);
}

/* 카테고리 스타일 */
.edu_cate {
    width: 100%;
    height: auto; 
    margin-bottom: 4%;
}

.edu_cate > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap; 
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 0; /* 기본 패딩 제거 */
}

.edu_cate > ul > li {
    list-style: none;
    min-height: 65px; 
    align-content: center;
    border: 2px solid rgb(23, 123, 36);
    padding: 10px 10px;
    border-radius: 5px;
    font-size: 13px;
    flex: 1 1 200px;
    max-width: 300px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; 
}

.edu_cate > ul > li:hover{
	background-color: rgb(23, 123, 36);
	color: white;
}

.active {
    background-color: rgb(23, 123, 36);
    color: white;
}

/* 모달 푸터 스타일 */
.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 10px 10px;
}

/* 반응형 모달 스타일 */
@media (max-width: 768px) {
	.edu_cate > ul > li {
        flex: 1 1 45%; /* 한 줄에 2개씩 배치 */
        min-width: unset; 
        font-size: 13px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .curriculum-content {
        max-height: 60vh;
    }
    
    .week-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .week-title {
        font-size: 1rem;
    }
    
    .additional-info {
        padding: 20px;
    }
    .cart-height {
	height: 220px;
	}
}

@media (max-width: 576px) {
	
	.edu_cate > ul > li {
        flex: 1 1 100%; /* 한 줄에 1개씩 꽉 차게 배치 */
        margin-bottom: 5px;
    }
    
    .modal-dialog {
        margin: 5px;
    }
    
    .curriculum-content {
        max-height: 50vh;
    }
    
    .week-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .week-title {
        font-size: 0.95rem;
    }
    
    .additional-info {
        padding: 15px;
    }
    .cart-height {
	height: 220px;
	}
}

/* 프린트 스타일 */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container-fluid {
        max-width: none;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
