/* General */
body {
    /* font-family: 'Nanum Gothic', sans-serif; */
    margin: 0;
    padding: 0;
    background-color: #F9F9F9;
    color: #444444;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400; /* 기본 가중치 설정 */
    line-height: 1.6; /* 가독성을 위한 줄 간격 */
}



/* 가이드 카드 */
.guide-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    background: white;
    text-align: left;
    padding: 10px; /* 전체 패딩 감소 */
}

/* 가이드 정보 */
.guide-info {
    flex: 1;
    padding-right: 10px;
}

/* 가이드 이름 */
.guide-name {
    font-size: 1.1rem; /* 기존보다 줄임 */
    font-weight: bold;
    color: #333;
    margin-bottom: 2px; /* 이름과 설명 사이 간격 줄임 */
}

/* 가이드 설명 */
.guide-description {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.3;
    max-height: 3.6em; /* 3줄까지만 표시 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 5px; /* 버튼과 간격 줄이기 */
}

/* 가이드 이미지 컨테이너 */
.guide-image-container {
    width: 70px;
    height: 70px; /* 이미지 크기 줄이기 */
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.guide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}
/* 예약 버튼 스타일 */
.guide-button {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: white;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 버튼 호버 효과 */
.guide-button:hover {
    background: #f8f8f8;
    border-color: #bbb;
}

/* 버튼 아이콘 스타일 */
.guide-button i {
    color: #2db400; /* 네이버 컬러 */
    font-size: 1.2rem;
}

/* 버튼 컨테이너 (Details & Schedules) */
.card-footer {
    display: flex;
    justify-content: space-between;
    padding: 3px 10px; /* 버튼과 카드 간격 조정 */
    margin-top: 3px; /* description과 버튼 사이 간격 줄이기 */
}



/* Back Button Styling */
.btn.fixed-top {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 999;
    border-radius: 5px;
}

/* Footer */
/* .footer {
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px 0;
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 1; /* Ensure footer is above the main content */
*/

/* .content {
    flex: 1;
    padding-bottom: 80px; /* Space for the bottom navigation bar */
} */

/* Footer positioning fix */
.footer {
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px 0;
    text-align: center;
    margin-top: 10px; /* Changed from auto to a specific smaller value */
    margin-bottom: 20px; /* Changed from auto to a specific smaller value */
    position: relative;
    z-index: 1;
}

/* Reduce bottom space in content area */
.content {
    flex: 1;
    padding-bottom: 10px; /* Reduced from 80px */
}

/* Reduce any bottom margins across the site */
.mb-4, .mb-5, .my-4, .my-5 {
    margin-bottom: 1rem !important;
}

/* Fix for overlapping footer */
@media (max-width: 768px) {
    .footer {
        position: static;
    }
}

/* 홈 페이지 h1 스타일 */
h1.home-title {
    color: white; /* 기본 검정색 */
}
h1, h2, h3 {
    color: #0da6c5; /* 헤딩 타이틀에 새로운 색상 적용 */
    font-weight: bold; /* 볼드체 적용 */
}

/* Navigation Bar */
.navbar {
    height: 60px; /* 네비게이션 바 높이 줄이기 */
    padding: 5px 15px; /* 내부 패딩 줄이기 */
    background-color: white; /* 배경색 유지 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    width: 50px; /* 로고 크기 조정 */
    margin-right: 8px;
}

.navbar-brand {
    font-weight: bold;
    color: #444444;
    font-size: 1.1rem; /* 기존보다 크기 줄이기 */
    padding: 0;
}

.nav-item a {
    color: #444444;
    font-size: 0.9rem;
    margin-right: 10px;
    transition: color 0.3s;
}

.nav-item a:hover {
    color: #50C878; /* 에메랄드 그린 포인트 */
}

/* 네비게이션 메뉴 간격 줄이기 */
.navbar-nav .nav-item {
    margin: 0 6px; /* 항목 간 간격 축소 */
}

/* 네비게이션 메뉴의 글꼴 크기 줄이기 */
.navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 6px 8px; /* 메뉴 항목의 패딩 줄이기 */
}

/* 햄버거 메뉴 크기 조정 */
.navbar-toggler {
    padding: 3px 8px;
    border: none;
    background: transparent;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
}

/* 모바일 화면에서 햄버거 메뉴 확장 스타일 */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: white; /* 확장 시 배경 유지 */
        padding: 10px;
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000000; /* 검정색 */
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.bottom-nav .nav-item {
    text-align: center;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
}

.bottom-nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.8rem;
}

.bottom-nav a:hover {
    color: #63b2a3; /* 호버 시 포인트 컬러 */
}

.nav-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 3px;
}

.nav-label {
    font-size: 0.75rem;
    line-height: 1;
}

/* Hero Section */
.hero {
    background-image: url('../images/logo5.png');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}
/* Hero 이미지 컨테이너 */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 60vh; /* 기본 이미지 높이 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-image-container.logged-in {
    height: 40vh; /* 로그인 상태에서 이미지 높이 */
}

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

/* Hero 텍스트 */
.hero-text {
    position: absolute;
    top: 50%; /* 텍스트 수직 중앙 정렬 */
    left: 50%; /* 텍스트 수평 중앙 정렬 */
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    width: 100%;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.hero-text p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* 버튼 스타일 */
.d-flex .btn {
    width: 150px;
    padding: 10px 15px;
}

.btn-secondary {
    background-color: #444444; /* Sign Up 버튼 배경색 */
    color: #ffffff; /* Sign Up 버튼 텍스트 색 */
    border: none;
    text-shadow: none; /* 그림자 제거 */
    font-weight: bold;
}

.btn-secondary:hover {
    background-color: #222222; /* Hover 상태에서 더 진한 배경 */
    color: #ffffff;
}

/* Divider 아래 콘텐츠 여백 */
.divider {
    margin-top: 10px;
    border-top: 1px solid #ccc;
}

/* Buttons */
.btn-primary {
    background-color: rgb(63, 89, 246); /* 메인 버튼 색상 */
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: rgba(63, 89, 246, 0.8); /* 살짝 어두운 블루 */
}

.btn-secondary {
    background-color: #E0E7FF; /* 서브 버튼 밝은 회색 계열 */
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    color: rgb(63, 89, 246); /* 메인 버튼 색상과 조화 */
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #D6DEFF; /* 서브 버튼 hover 색상 */
    color: white; /* hover 시 텍스트 색상 변경 */
}

.card-img-top {
    width: 100%; /* 카드의 너비에 맞게 이미지 조정 */
    height: auto; /* 이미지 비율 유지 */
    max-height: 200px; /* 최대 높이 제한 */
    object-fit: cover; /* 비율 유지하며 이미지를 자름 */
    object-position: top; /* 이미지의 위쪽을 고정, 아래쪽이 잘림 */
    border-radius: 10px; /* 이미지 모서리를 둥글게 처리 */
}
/* Card */
.card-header {
    font-weight: bold;
    text-align: center;
}

.card-header2 {
    font-weight: bold;
    text-align: center;
    background-color: #d7e5e7;
    color: #000000;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    border: none; /* 테두리 제거 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 기존 그림자 유지 */
}

.card-descrition {
    white-space: pre-line;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

.card-header {
    background-color: #343a40; /* 어두운 회색 */
    color: #ffffff; /* 흰색 텍스트 */
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #495057;
}

/* 전체 페이지 로드시 페이드인 효과 */
.fade-in {
    opacity: 0;
    animation: fadeIn ease-in 1s forwards;
}

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

/* 네비게이션 바 애니메이션 */
.animate-nav {
    transform: translateY(-100%);
    animation: slideDown 0.8s ease-out forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 하단 네비게이션 바 애니메이션 */
.slide-up {
    transform: translateY(100%);
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 네비게이션 아이템 호버 효과 */
.scale-on-hover {
    transition: transform 0.2s ease-in-out;
}

.scale-on-hover:hover {
    transform: scale(1.1);
}

/* 컨텐츠 페이드인 */
.fade-in-content {
    opacity: 0;
    animation: fadeInContent 1.2s ease-in-out forwards;
}

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

/* 버튼 클릭 시 살짝 눌리는 효과 */
button:active, .btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* IQ Test 용 css */
.chart-container {
    position: relative;
    width: 100%;
    height: 500px; /* 그래프 높이 증가 */
}

.iq-test-body {
    background-color: #F9F9F9;
    font-family: 'Nanum Gothic', sans-serif;
}

.iq-card {
    max-width: 600px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
    text-align: center;
}

.iq-result-title {
    color: #0da6c5;
    font-size: 1.5rem;
    font-weight: bold;
}

figure {
    display: block;
    margin: 1em 0;
    text-align: center; /* 기본 중앙 정렬 */
}

figure.image.image-style-side {
    float: right; /* CKEditor에서 "우측 정렬"을 적용한 경우 */
    margin-left: 1em;
    max-width: 50%;
}

figure img {
    max-width: 100%; /* 이미지를 컨테이너 크기에 맞게 조정 */
    height: auto;
}

figcaption {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 0.5em;
}


/* 데이터용 폰트 크기 */
.font-size-small { font-size: 12px; }
.font-size-medium { font-size: 16px; }
.font-size-large { font-size: 20px; }
.font-size-huge { font-size: 24px; }

/* 데이터용 폰트 색상 */
.text-red { color: red; }
.text-blue { color: blue; }
.text-green { color: green; }
.text-orange { color: orange; }
.text-black { color: #000000;}