:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --primary-bg: #f5f3ff;
    --secondary-color: #a78bfa;
    --dark-color: #2C3E50;
    --light-color: #F7F9FC;
}

html, body {
    height: 100%; /* html과 body의 높이를 100%로 설정 */
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(124, 58, 237, 0.1);
    color: var(--primary-color) !important;
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
    margin-right: 20px;
}

/* Search Bar Styles */
.search-bar {
    max-width: 200px;
    width: 100%;
}

.search-bar .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.search-bar .btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
}

.search-bar .btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Content Area Styles */
.content-area {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
                url('https://www.mapbox.com/help/img/screenshots/mapbox-studio/studio_screenshot.png');
    background-size: cover;
    background-position: center;
    flex: 1; /* flex-grow를 사용하여 남은 공간을 채움 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.content-area h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

/* Button Styles */
.btn {
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.small-btn {
    transform: scale(0.9); /* 버튼 크기를 70%로 줄임 */
    transform-origin: center; /* 변환의 기준점을 중앙으로 설정 */
    padding: 0.375rem 0.75rem; /* 기본 패딩을 유지하기 위해 조정 */
}



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

.nav-menu a {
    text-decoration: none;
    color: black;
}

.academy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Noto Sans KR', sans-serif;
}

.examlistbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #444;
    font-size: 1.1rem;
}

.table-container {
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.exam-table {
    width: 100%;
    border-collapse: separate;
    background-color: white;
}

.exam-table th,
.exam-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.exam-table thead {
    background-color: #f0f0f0;
}

.exam-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.exam-table tbody tr:hover {
    background-color: #f5f5f5;
}

.review-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.review-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.review-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.review-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
}

.review-textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    margin-bottom: 15px;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

.review-list {
    margin-top: 30px;
}

.review-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.review-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer {
    font-weight: bold;
}

.review-date {
    color: #666;
}

.review-text {
    color: #333;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
}


.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}


/* 각 라벨 섹션 스타일 */
.section {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 체크박스 숨기기 (스크린 리더 접근 가능) */
.screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 체크박스 스타일 커스텀 */
.label-box {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.check-icon {
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    display: inline-block;
    margin-right: 5px;
}

/* 체크되었을 때 스타일 */
.screen-reader:checked + .label-box .check-icon {
    background-color: #333;
}

.academy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Noto Sans KR', sans-serif;
}
.examlistbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.no-data-message {
    text-align: center;  /* 수평 가운데 정렬 */
    font-weight: bold;   /* 글자를 굵게 */
    font-size: 18px;     /* 글자 크기 조정 */
    margin-top: 200px;   /* 위쪽 간격 추가 (필요하면 조절) */
}

.content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: Arial, sans-serif;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
}

h1, h2, h3, h4, h5, h6 {
  padding: 0;
  margin: 0;
  font-weight: 300; }



/* Home Page List/Table */
.home-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.home-header {
    margin-bottom: 2rem;
}

.home-header h2 {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.home-header .subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

.home-section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-header h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    font-size: 1.35rem;
}

.section-header .section-desc {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

.menu-grid {
    margin-top: 0;
}

.menu-card {
    display: block;
    background: white;
    padding: 1.75rem 1.25rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    height: 100%;
    position: relative;
}

.menu-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
    color: var(--dark-color);
}

.menu-card-icon {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.menu-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--dark-color);
}

.menu-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.menu-card.coming-soon {
    opacity: 0.75;
}

.menu-card.coming-soon::before {
    content: '준비중';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-bg);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Big top-level menu cards on homepage */
.home-menu-grid {
    margin-top: 2rem;
}

.big-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    border: 2px solid #e5e7eb;
    transition: all 0.25s ease;
    min-height: 280px;
    height: 100%;
    position: relative;
}

.big-menu-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
    transform: translateY(-4px);
    background: var(--primary-bg);
    color: var(--dark-color);
}

.big-menu-card .big-menu-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.big-menu-card .big-menu-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.big-menu-card h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.big-menu-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.big-menu-card .big-menu-arrow {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.big-menu-card:hover .big-menu-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Back link on sub-pages */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.quick-search {
    background: var(--primary-bg);
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0 1.75rem;
}

.quick-search label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
    margin: 0 0.25rem;
}

.quick-search .form-select-sm,
.quick-search .btn-sm {
    border-radius: 6px;
    font-size: 0.9rem;
}

.exam-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.exam-grid thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.9rem 0.5rem;
    text-align: center;
    border: none;
    font-size: 0.95rem;
}

.exam-grid thead th:first-child {
    text-align: left;
    padding-left: 1.5rem;
}

.exam-grid tbody td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.exam-grid tbody td:first-child {
    text-align: left;
    padding-left: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.exam-grid tbody tr:last-child td {
    border-bottom: none;
}

.exam-grid tbody tr:hover {
    background-color: var(--primary-bg);
}

.exam-grid .btn-exam {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.9rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-block;
}

.exam-grid .btn-exam:hover {
    background: var(--primary-color);
    color: white;
}

.exam-grid .btn-exam-all {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.exam-grid .btn-exam-all:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Footer Styles */
footer {
    background-color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
    margin-top: auto; /* footer를 페이지 하단에 고정 */
}

footer p {
    margin: 0;
    color: var(--dark-color);
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .content-area h1 {
        font-size: 2rem;
    }

    .search-bar {
        margin: 1rem 0;
    }
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border-radius: 0.5rem !important; /* 둥근 모서리 */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important; /* 부드러운 그림자 */
    background-color: var(--light-color) !important; /* 배경색 변경 */
    border: none !important; /* 테두리 제거 */
}
.dropdown-item {
    transition: background-color 0.2s ease !important; /* 배경색 전환 효과 */
    padding: 0.75rem 1.5rem !important; /* 패딩 조정 */
    font-weight: 500 !important; /* 글꼴 두께 조정 */
    color: var(--dark-color) !important; /* 글꼴 색상 */
}
.dropdown-item:hover {
    background-color: rgba(124, 58, 237, 0.1) !important; /* 호버 시 배경색 변경 */
    color: var(--primary-color) !important; /* 호버 시 글꼴 색상 변경 */
}
