@charset "utf-8";

/* ========================================
   CARNA AI Partner Learning Center
   Theme: Dark Header + White Body + Orange Accent
   ======================================== */

@import url('https://hangeul.pstatic.net/hangeul_static/css/nanum-square-neo.css');

:root {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-light: rgba(249, 115, 22, 0.08);
  --primary-glow: rgba(249, 115, 22, 0.15);
  --bg-white: #ffffff;
  --bg-light: #f0f1f3;
  --bg-section: #f5f6f8;
  --header-bg: #1e293b;
  --header-text: #f1f5f9;
  --nav-bg: #ffffff;
  --text-dark: #111827;
  --text-body: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-placeholder: #bbb;
  --border: #d1d5db;
  --border-light: #e5e7eb;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.16);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 6px;
  --font: 'NanumSquareNeo', -apple-system, 'Malgun Gothic', sans-serif;
  --transition: all 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ========== 로그인 / 회원가입 (동영상 배경) ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  position: relative;
  overflow: hidden;
}

.auth-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.auth-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.auth-container {
  position: relative;
  z-index: 2;
  width: 420px;
  padding: 44px 36px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.auth-container.wide {
  width: 520px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 6px;
}

.auth-logo h1 {
  font-size: 30px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -1px;
}

.auth-logo h1 span {
  color: var(--primary);
}

.auth-subtitle {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 32px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.auth-form .form-group input,
.auth-form .form-group select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #1a1a1a;
  font-size: 14px;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  background: #fff;
}

.auth-form .form-group input::placeholder {
  color: #ccc;
}

.auth-form .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.auth-form .form-group select option {
  background: #fff;
  color: #1a1a1a;
}

.auth-form .form-row {
  display: flex;
  gap: 12px;
}

.auth-form .form-row .form-group {
  flex: 1;
}

.auth-form .form-group textarea {
  width: 100%;
  height: 80px;
  padding: 12px 14px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #1a1a1a;
  font-size: 14px;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.auth-form .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  background: #fff;
}

.auth-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
}

.auth-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.auth-error {
  margin-top: 14px;
  padding: 11px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #dc2626;
  font-size: 13px;
  display: none;
}

.auth-error.show {
  display: block;
}

.auth-success {
  padding: 14px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  color: #16a34a;
  font-size: 13px;
  line-height: 1.6;
}

.auth-links {
  margin-top: 24px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.auth-links a {
  color: #999;
  font-size: 13px;
  transition: var(--transition);
}

.auth-links a:hover {
  color: var(--primary);
}

.auth-links .divider {
  color: #ddd;
}

.auth-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 11px;
  color: #ccc;
}

/* ========== 탭 전환 UI (아이디/패스워드 찾기) ========== */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #aaa;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab:hover {
  color: #666;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
}

/* ========== 닫기 / 뒤로가기 버튼 ========== */
.auth-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  color: #999;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.auth-close-btn:hover {
  background: #f5f5f5;
  color: #333;
  border-color: #ccc;
}

.auth-back {
  margin-top: 16px;
  text-align: center;
}

.auth-back-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #f0f1f3;
  color: #555;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  transition: var(--transition);
}

.auth-back-btn:hover {
  background: #e5e7eb;
  color: #333;
}

/* ========== 정보수정 (프로필) ========== */
.profile-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.profile-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.profile-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.profile-section h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

.profile-row {
  margin-bottom: 14px;
}

.profile-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}

.profile-row label .required {
  color: #dc2626;
}

.profile-row input,
.profile-row select,
.profile-row textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #1a1a1a;
  font-size: 14px;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}

.profile-row textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.profile-row input:focus,
.profile-row select:focus,
.profile-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  background: #fff;
}

.profile-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.profile-value {
  padding: 10px 14px;
  background: #f0f1f3;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
}

.profile-row-group {
  display: flex;
  gap: 12px;
}

.profile-row-group .profile-row {
  flex: 1;
}

.profile-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.profile-actions .btn-save {
  padding: 12px 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.profile-actions .btn-save:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.profile-actions .btn-cancel {
  padding: 12px 36px;
  background: #f0f1f3;
  color: #555;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
}

.profile-actions .btn-cancel:hover {
  background: #e5e7eb;
  color: #333;
}

@media (max-width: 640px) {
  .profile-form-wrap {
    padding: 20px 16px;
  }
  .profile-row-group {
    flex-direction: column;
    gap: 0;
  }
}

/* ========== 메인 레이아웃 (화이트 테마) ========== */
.partner-body {
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--text-body);
  min-height: 100vh;
}

/* 헤더 */
.partner-header {
  background: var(--header-bg);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.partner-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 24px;
}

.partner-header .logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--header-text);
}

.partner-header .logo h1 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}

.partner-header .logo h1 span {
  color: var(--primary);
}

.partner-header .logo .badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.2);
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 1.5px;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.header-user .company-name {
  color: #fff;
  font-weight: 700;
}

.header-user .partner-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.header-user .partner-type.odm {
  background: #eff6ff;
  color: #2563eb;
}

.header-user .partner-type.distributor {
  background: #f5f3ff;
  color: #7c3aed;
}

.header-user .partner-type.dealer {
  background: #f0fdf4;
  color: #16a34a;
}

.header-user .partner-type.agent {
  background: #fff7ed;
  color: #ea580c;
}

.profile-btn {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  transition: var(--transition);
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
}

.profile-btn:hover,
.profile-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(249, 115, 22, 0.1);
}

.logout-btn {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  transition: var(--transition);
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
}

.logout-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(249, 115, 22, 0.1);
}

/* 햄버거 버튼 (모바일 전용) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 모바일 오버레이 */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 149;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.show {
  opacity: 1;
}

/* 모바일 네비 하단 (데스크탑에서 숨김) */
.mobile-nav-footer {
  display: none;
}

/* 네비게이션 */
.partner-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.partner-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
}

.partner-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.partner-nav a:hover {
  color: var(--text-dark);
  background: var(--bg-section);
}

.partner-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 900;
  background: var(--primary-light);
}

.partner-nav a .nav-icon {
  font-size: 15px;
}

/* 컨텐츠 영역 */
.partner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* ========== 대시보드 ========== */
.dashboard-welcome {
  background: linear-gradient(135deg, var(--header-bg) 0%, #334155 100%);
  border: none;
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.dashboard-welcome::before {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.dashboard-welcome::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.dashboard-welcome h2 {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
}

.dashboard-welcome h2 span {
  color: var(--primary);
}

.dashboard-welcome p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

/* 카테고리 카드 */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dashboard-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: var(--transition);
  cursor: pointer;
  display: block;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.dashboard-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.dashboard-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dashboard-card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.card-icon.notice {
  background: #eff6ff;
}

.card-icon.news {
  background: #f5f3ff;
}

.card-icon.report {
  background: #f0fdf4;
}

.card-icon.update {
  background: #fff7ed;
}

.card-icon.materials {
  background: #fdf2f8;
}

.card-icon.qna {
  background: #ecfeff;
}

.dashboard-card .card-count {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-dark);
}

.dashboard-card .card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.dashboard-card .card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 최신 글 리스트 */
.dashboard-latest {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.latest-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.latest-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}

.latest-section .section-header h3 {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-dark);
}

.latest-section .section-header a {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.latest-section .section-header a:hover {
  text-decoration: underline;
}

.latest-list {
  padding: 0;
  margin: 0;
}

.latest-list li {
  padding: 11px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.latest-list li:last-child {
  border-bottom: 0;
}

.latest-list li:hover {
  background: var(--bg-section);
}

.latest-list li a {
  color: var(--text-body);
  font-size: 13px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 10px;
  transition: var(--transition);
}

.latest-list li a:hover {
  color: var(--primary);
}

.latest-list li .date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.latest-list .pinned {
  color: var(--primary) !important;
  font-weight: 700;
}

.latest-list .pinned::before {
  content: '[필독] ';
  font-size: 11px;
}

.latest-list .empty-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 28px 20px;
}

/* ========== 게시판 ========== */
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.board-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.board-header .board-count {
  font-size: 13px;
  color: var(--text-muted);
}

.board-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.board-search select {
  height: 38px;
  padding: 0 30px 0 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-body);
  font-family: var(--font);
  font-size: 13px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
}

.board-search select:focus {
  border-color: var(--primary);
}

.board-search input[type="text"] {
  height: 38px;
  padding: 0 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 13px;
  width: 250px;
  font-family: var(--font);
  outline: none;
}

.board-search input[type="text"]:focus {
  border-color: var(--primary);
}

.board-search input[type="text"]::placeholder {
  color: var(--text-placeholder);
}

.board-search button {
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.board-search button:hover {
  background: var(--primary-hover);
}

.board-table {
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.board-table thead th {
  padding: 14px 14px;
  background: #f8f9fb;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

.board-table tbody td {
  padding: 14px 14px;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.board-table tbody tr:last-child td {
  border-bottom: none;
}

.board-table tbody tr:hover td {
  background: var(--bg-section);
}

.board-table .td-title {
  text-align: left;
  max-width: 0;
}

.board-table .td-title a {
  color: var(--text-body);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: var(--transition);
}

.board-table .td-title a:hover {
  color: var(--primary);
}

.board-table .td-num {
  width: 60px;
  color: var(--text-muted);
}

.board-table .td-author {
  width: 100px;
  color: var(--text-secondary);
}

.board-table .td-date {
  width: 100px;
  color: var(--text-muted);
  font-size: 13px;
}

.board-table .td-views {
  width: 70px;
  color: var(--text-muted);
}

.board-table .td-file {
  width: 50px;
}

.board-table .pinned-row td {
  background: var(--primary-light);
}

.board-table .pinned-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.board-table .new-badge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.file-icon {
  color: var(--text-muted);
  font-size: 15px;
}

.board-empty {
  text-align: center;
  padding: 60px 20px !important;
  color: var(--text-muted) !important;
  font-size: 14px;
}

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

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 800;
}

/* ========== 게시판 상세 ========== */
.board-view {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.board-view-header {
  padding: 28px 30px 20px;
  border-bottom: 1px solid var(--border-light);
}

.board-view-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.board-view-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.board-view-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.board-view-content {
  padding: 30px;
  min-height: 300px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

.board-view-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.board-view-file {
  padding: 16px 30px;
  background: var(--bg-section);
  border-top: 1px solid var(--border-light);
}

.board-view-file h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.board-view-file a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  font-size: 13px;
  transition: var(--transition);
}

.board-view-file a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.board-view-footer {
  padding: 16px 30px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  gap: 10px;
}

.board-nav-prev-next {
  padding: 0 30px;
  border-top: 1px solid var(--border-light);
}

.board-nav-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.board-nav-item .nav-label {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 50px;
}

.board-nav-item a {
  color: var(--text-body);
  font-size: 14px;
  transition: var(--transition);
}

.board-nav-item a:hover {
  color: var(--primary);
}

.btn-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  background: var(--bg-white);
  cursor: pointer;
  font-family: var(--font);
}

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

/* ========== Q&A ========== */
.qna-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.qna-write-btn:hover {
  background: var(--primary-hover);
}

.qna-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.qna-status.waiting,
.qna-status.qna-waiting {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.qna-status.answered,
.qna-status.qna-answered {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.qna-status.qna-closed {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* Q&A 답변 영역 */
.qna-answer-section {
  margin-top: 24px;
  border-top: 2px solid var(--primary);
  padding-top: 20px;
}

.qna-answer {
  background: #fef7f0;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

.qna-answer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.qna-answer-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.qna-answer-writer {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.qna-answer-date {
  font-size: 12px;
  color: var(--text-muted);
}

.qna-answer-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
}

.qna-no-answer {
  margin-top: 20px;
  padding: 20px;
  text-align: center;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
}

/* Q&A 작성 폼 (board-view 내부) */
.qna-write-form .form-group {
  margin-bottom: 18px;
}

.qna-write-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.qna-write-form .form-group input[type="text"] {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
}

.qna-write-form .form-group input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.qna-write-form .form-group textarea {
  width: 100%;
  height: 250px;
  padding: 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
  font-family: var(--font);
  resize: vertical;
  line-height: 1.7;
  outline: none;
}

.qna-write-form .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.qna-write-form .form-group input::placeholder,
.qna-write-form .form-group textarea::placeholder {
  color: var(--text-placeholder);
}

/* board-header 우측 영역 */
.board-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Q&A 작성 폼 (기존) */
.qna-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.qna-form .form-group {
  margin-bottom: 18px;
}

.qna-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.qna-form .form-group input[type="text"] {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
}

.qna-form .form-group input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.qna-form .form-group textarea {
  width: 100%;
  height: 250px;
  padding: 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
  font-family: var(--font);
  resize: vertical;
  line-height: 1.7;
  outline: none;
}

.qna-form .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.qna-form .form-group input::placeholder,
.qna-form .form-group textarea::placeholder {
  color: var(--text-placeholder);
}

.qna-form .form-actions {
  text-align: center;
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.qna-form .btn-submit {
  padding: 11px 36px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.qna-form .btn-submit:hover {
  background: var(--primary-hover);
}

.qna-form .btn-cancel {
  padding: 11px 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.qna-form .btn-cancel:hover {
  border-color: var(--text-muted);
  color: var(--text-dark);
}

/* 파일 입력 */
.file-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
}

.file-input:hover {
  border-color: var(--primary);
}

.file-help {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.file-list {
  margin-top: 8px;
  padding: 0;
}

.file-list li {
  padding: 6px 12px;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  list-style: none;
}

.file-list li::before {
  content: '\1f4ce ';
}

/* Q&A 답변 */
.qna-answer {
  margin-top: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  border-left: 3px solid var(--primary);
}

.qna-answer h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qna-answer .answer-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
}

.qna-answer .answer-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== 푸터 ========== */
.partner-footer {
  background: var(--header-bg);
  border-top: none;
  padding: 32px 0;
  margin-top: 48px;
}

.partner-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.partner-footer p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1.8;
}

.partner-footer .footer-logo {
  font-size: 16px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.partner-footer .footer-logo span {
  color: var(--primary);
}

/* ========== 알림 ========== */
.alert {
  padding: 13px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 18px;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--success);
}

/* ========== 유틸리티 ========== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

/* ========== 온라인강의 ========== */
.lecture-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.lecture-cat-btn {
  display: inline-block;
  padding: 7px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.lecture-cat-btn:hover,
.lecture-cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.lecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lecture-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: block;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.lecture-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.lecture-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #f0f0f0;
  overflow: hidden;
}

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

.lecture-thumb-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.lecture-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.lecture-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
}

.lecture-progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s;
}

.lecture-card-body {
  padding: 14px 16px;
}

.lecture-card-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lecture-instructor {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.lecture-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.lecture-badge.completed {
  background: #f0fdf4;
  color: #16a34a;
}

.lecture-badge.in-progress {
  background: #fff7ed;
  color: #ea580c;
}

.lecture-empty {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* 강의 플레이어 */
.lecture-player-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.lecture-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.lecture-player iframe,
.lecture-player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lecture-no-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 16px;
  background: #f0f0f0;
}

.lecture-info {
  padding: 24px 28px;
}

.lecture-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.lecture-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.lecture-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
}

.lecture-chapters {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.lecture-chapters h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.lecture-chapters ul {
  list-style: none;
}

.lecture-chapters li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lecture-chapters li:last-child {
  border-bottom: none;
}

.chapter-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 50px;
  text-align: center;
}

/* ========== 테스트 ========== */
.test-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.test-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.test-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.test-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.test-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
}

.test-item-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.test-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.test-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.test-result {
  font-size: 14px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 6px;
}

.test-result.passed {
  background: #f0fdf4;
  color: #16a34a;
}

.test-result.failed {
  background: #fef2f2;
  color: #dc2626;
}

.test-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.test-btn:hover {
  background: var(--primary-hover);
  color: #fff;
}

.test-btn.retry {
  background: var(--bg-white);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.test-btn.retry:hover {
  background: var(--primary);
  color: #fff;
}

.test-empty,
.cert-empty {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 20px;
  text-align: center;
}

.test-empty-icon,
.cert-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.test-empty p,
.cert-empty p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.cert-empty h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.text-muted {
  color: var(--text-muted) !important;
  font-size: 13px !important;
}

/* 테스트 응시 폼 */
.test-header-info {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.test-header-info h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.test-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.test-timer {
  position: sticky;
  top: 61px;
  z-index: 50;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.test-timer.warning {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

.test-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-question {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.question-number {
  min-width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.question-content {
  flex: 1;
}

.question-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 14px;
}

.question-image {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.option-label:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.option-label input {
  display: none;
}

.option-label input:checked+.option-marker {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.option-label input:checked~.option-text {
  color: var(--primary);
  font-weight: 700;
}

.option-marker {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.option-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  transition: var(--transition);
}

.test-submit-wrap {
  text-align: center;
  padding: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.test-submit-btn {
  padding: 14px 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.test-submit-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* 테스트 결과 */
.test-result-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.test-result-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 60px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.test-result-card.passed {
  border-color: #bbf7d0;
}

.test-result-card.failed {
  border-color: #fecaca;
}

.result-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.test-result-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.test-result-card.passed h2 {
  color: #16a34a;
}

.test-result-card.failed h2 {
  color: #dc2626;
}

.result-score {
  margin-bottom: 12px;
}

.score-number {
  font-size: 56px;
  font-weight: 900;
  color: var(--text-dark);
}

.score-label {
  font-size: 20px;
  color: var(--text-muted);
  margin-left: 4px;
}

.result-info {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-actions {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ========== 수료증 ========== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cert-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cert-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.cert-card-top {
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
}

.cert-badge {
  font-size: 32px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffbeb;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cert-card-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cert-course {
  font-size: 13px;
  color: var(--text-muted);
}

.cert-card-meta {
  padding: 14px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cert-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-value {
  font-size: 13px;
  color: var(--text-body);
  font-weight: 700;
}

.cert-card-actions {
  padding: 14px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

.cert-download-btn,
.cert-preview-btn {
  flex: 1;
  text-align: center;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.cert-download-btn {
  background: var(--primary);
  color: #fff;
}

.cert-download-btn:hover {
  background: var(--primary-hover);
  color: #fff;
}

.cert-preview-btn {
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.cert-preview-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========== 수강일정 상태 ========== */
.schedule-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.schedule-open {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.schedule-closed {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.schedule-ongoing {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.schedule-completed {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

/* ========== 반응형 ========== */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-latest {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .auth-container {
    width: 92%;
    padding: 32px 24px;
  }

  .auth-container.wide {
    width: 92%;
  }

  .auth-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  /* 헤더: 햄버거 왼쪽, 로고 중앙, 사용자정보 숨김 */
  .partner-header-inner {
    height: 54px;
    padding: 0 16px;
    position: relative;
  }

  .header-right {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .partner-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* 네비: 왼쪽 사이드 드로어 */
  .partner-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    z-index: 150;
    border-bottom: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-white);
  }

  .partner-nav.open {
    left: 0;
  }

  .partner-nav-inner {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .partner-nav-inner::before {
    content: 'CARNA AI';
    display: block;
    padding: 20px 24px 16px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.5px;
  }

  .partner-nav a {
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .partner-nav a.active {
    border-bottom: none;
    border-left-color: var(--primary);
    background: var(--primary-light);
    font-weight: 900;
  }

  .partner-nav a:hover {
    background: var(--bg-section);
  }

  .partner-nav a .nav-icon {
    font-size: 17px;
    width: 26px;
    text-align: center;
  }

  /* 모바일 네비 하단 표시 */
  .mobile-nav-footer {
    display: block;
    margin-top: auto;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }

  .mobile-nav-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
  }

  .mobile-nav-user .company-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
  }

  .mobile-nav-user span {
    font-size: 12px;
    color: var(--text-muted);
  }

  .mobile-nav-logout {
    display: block;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
  }

  .mobile-nav-logout:hover {
    color: var(--primary);
  }

  /* 오버레이 */
  .mobile-nav-overlay {
    display: block;
    pointer-events: none;
  }

  .mobile-nav-overlay.show {
    pointer-events: auto;
  }

  /* 스크롤 잠금 */
  body.nav-open {
    overflow: hidden;
  }

  .board-table .td-author,
  .board-table .td-views {
    display: none;
  }

  .lecture-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .test-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .test-item-right {
    width: 100%;
    justify-content: flex-end;
  }

  .test-question {
    flex-direction: column;
  }

  .test-result-card {
    padding: 32px 24px;
  }

  .cert-card-meta {
    grid-template-columns: 1fr;
  }
}

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

  .test-header-meta {
    flex-direction: column;
    gap: 6px;
  }
}