/* ============================================================
   직업능력개발본부(CR) 스타일시트
   - 레이아웃/색상은 Tailwind(CDN)로 처리. 본 파일은 보조 스타일만 담당.
   ============================================================ */

/* 고정 헤더 높이만큼 앵커 스크롤 보정 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* 부드러운 폰트 렌더링 */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* (legacy) 아래 .cr-* 클래스들은 구버전 잔재이며 현재 마크업에서 사용되지 않습니다. */

:root {
  --cr-primary: #2563eb;
  --cr-primary-dark: #1e40af;
  --cr-secondary: #64748b;
  --cr-accent: #f59e0b;
  --cr-dark: #1e293b;
  --cr-light: #f1f5f9;
  --cr-white: #ffffff;
  --cr-gray: #94a3b8;
  --cr-border: #e2e8f0;
}

.cr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   헤더
   ============================================================ */
.cr-top-bar {
  background: var(--cr-dark);
  color: var(--cr-white);
  font-size: 13px;
  padding: 8px 0;
}

.cr-top-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.cr-top-left span {
  color: rgba(255,255,255,0.7);
}

.cr-top-left i {
  margin-right: 6px;
  color: var(--cr-primary);
}

.cr-header {
  background: var(--cr-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.cr-header-inner {
  border-bottom: 1px solid var(--cr-border);
}

.cr-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.cr-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.cr-logo-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-primary-dark) 100%);
  color: var(--cr-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.cr-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cr-logo-main {
  font-size: 16px;
  font-weight: 600;
  color: var(--cr-dark);
}

.cr-logo-sub {
  font-size: 12px;
  color: var(--cr-gray);
}

.cr-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cr-nav a {
  text-decoration: none;
  color: var(--cr-dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.cr-nav a:hover {
  color: var(--cr-primary);
}

.cr-header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cr-btn-primary {
  background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-primary-dark) 100%);
  color: var(--cr-white);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.cr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.cr-btn-secondary {
  background: var(--cr-white);
  color: var(--cr-primary);
  border: 2px solid var(--cr-primary);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.cr-btn-secondary:hover {
  background: var(--cr-primary);
  color: var(--cr-white);
}

.cr-btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.cr-btn-full {
  width: 100%;
  justify-content: center;
}

.cr-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--cr-dark);
  cursor: pointer;
}

/* 모바일 메뉴 */
.cr-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.cr-mobile-overlay.active {
  opacity: 1;
}

.cr-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--cr-white);
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  z-index: 999;
  transition: right 0.3s;
  overflow-y: auto;
}

.cr-mobile-nav.active {
  right: 0;
}

.cr-mobile-header {
  padding: 20px;
  border-bottom: 1px solid var(--cr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cr-mobile-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--cr-dark);
  cursor: pointer;
}

.cr-mobile-menu {
  list-style: none;
  padding: 20px;
}

.cr-mobile-menu li {
  margin-bottom: 16px;
}

.cr-mobile-menu a {
  text-decoration: none;
  color: var(--cr-dark);
  font-weight: 500;
  font-size: 16px;
  display: block;
  padding: 12px 0;
  transition: color 0.2s;
}

.cr-mobile-menu a:hover {
  color: var(--cr-primary);
}

/* ============================================================
   히어로 섹션
   ============================================================ */
.cr-hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 80px 0 100px;
}

.cr-hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cr-white);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  color: var(--cr-primary);
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cr-hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--cr-dark);
}

.cr-highlight {
  background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cr-hero-desc {
  font-size: 18px;
  color: var(--cr-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.cr-hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.cr-hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.cr-stat {
  text-align: center;
}

.cr-stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--cr-primary);
  margin-bottom: 8px;
}

.cr-stat-label {
  font-size: 14px;
  color: var(--cr-secondary);
}

/* ============================================================
   공통 섹션
   ============================================================ */
.cr-section {
  padding: 80px 0;
}

.cr-section-dark {
  background: var(--cr-dark);
  color: var(--cr-white);
}

.cr-section-light {
  background: var(--cr-light);
}

.cr-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.cr-section-badge {
  display: inline-block;
  background: var(--cr-primary);
  color: var(--cr-white);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cr-section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.cr-section-subtitle {
  font-size: 16px;
  color: var(--cr-gray);
  max-width: 600px;
  margin: 0 auto;
}

.cr-section-dark .cr-section-subtitle {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   본부 소개
   ============================================================ */
.cr-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.cr-intro-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--cr-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cr-intro-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.cr-intro-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-primary-dark) 100%);
  color: var(--cr-white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.cr-intro-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cr-intro-item p {
  font-size: 14px;
  color: var(--cr-secondary);
  line-height: 1.6;
}

/* ============================================================
   본부원
   ============================================================ */
.cr-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.cr-team-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
  cursor: pointer;
}

.cr-team-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.1);
}

.cr-team-front h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cr-team-role {
  font-size: 14px;
  color: var(--cr-accent);
  margin-bottom: 16px;
}

.cr-team-contact {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

/* ============================================================
   사업 영역
   ============================================================ */
.cr-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.cr-service-card {
  background: var(--cr-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cr-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cr-service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-primary-dark) 100%);
  color: var(--cr-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.cr-service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cr-service-subtitle {
  font-size: 13px;
  color: var(--cr-gray);
  margin-bottom: 16px;
  font-style: italic;
}

.cr-service-desc {
  font-size: 14px;
  color: var(--cr-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.cr-service-list {
  list-style: none;
  margin-bottom: 24px;
}

.cr-service-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--cr-border);
  font-size: 14px;
  color: var(--cr-dark);
}

.cr-service-list li:last-child {
  border-bottom: none;
}

.cr-service-link {
  color: var(--cr-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.cr-service-link:hover {
  color: var(--cr-primary-dark);
}

/* ============================================================
   사업 실적
   ============================================================ */
.cr-portfolio-list {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.cr-portfolio-item {
  background: var(--cr-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cr-portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.cr-portfolio-badge {
  background: var(--cr-primary);
  color: var(--cr-white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.cr-portfolio-year {
  color: var(--cr-gray);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.cr-portfolio-item h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--cr-dark);
  flex: 1;
}

/* ============================================================
   CTA
   ============================================================ */
.cr-cta {
  background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-primary-dark) 100%);
  color: var(--cr-white);
  text-align: center;
}

.cr-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cr-cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cr-cta-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  line-height: 1.8;
}

.cr-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cr-cta .cr-btn-primary {
  background: var(--cr-white);
  color: var(--cr-primary);
}

.cr-cta .cr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255,255,255,0.3);
}

.cr-cta .cr-btn-secondary {
  border-color: var(--cr-white);
  color: var(--cr-white);
}

.cr-cta .cr-btn-secondary:hover {
  background: var(--cr-white);
  color: var(--cr-primary);
}

/* ============================================================
   문의하기
   ============================================================ */
.cr-contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.cr-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cr-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cr-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--cr-dark);
}

.cr-required {
  color: #ef4444;
}

.cr-input {
  padding: 12px 16px;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.cr-input:focus {
  outline: none;
  border-color: var(--cr-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cr-char-count {
  font-size: 12px;
  color: var(--cr-gray);
  text-align: right;
}

.cr-contact-info-wrap h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.cr-contact-info {
  list-style: none;
}

.cr-contact-info li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.cr-info-icon {
  width: 40px;
  height: 40px;
  background: var(--cr-primary);
  color: var(--cr-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cr-contact-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cr-contact-info p {
  font-size: 13px;
  color: var(--cr-secondary);
  line-height: 1.6;
  margin: 0;
}

.cr-contact-info a {
  color: var(--cr-primary);
  text-decoration: none;
}

.cr-contact-info a:hover {
  text-decoration: underline;
}

/* ============================================================
   푸터
   ============================================================ */
.cr-footer {
  background: var(--cr-dark);
  color: var(--cr-white);
  padding: 60px 0 32px;
}

.cr-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.cr-footer-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.cr-footer-title {
  font-size: 18px;
  font-weight: 700;
}

.cr-footer-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.cr-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  line-height: 1.6;
}

.cr-footer-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.cr-footer-link:hover {
  color: rgba(255,255,255,0.8);
}

.cr-footer-heading {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cr-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cr-footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.cr-footer-nav a:hover {
  color: var(--cr-white);
}

.cr-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cr-contact-list li {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.cr-contact-list i {
  color: var(--cr-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.cr-contact-list a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.cr-contact-list a:hover {
  color: var(--cr-white);
}

.cr-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cr-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.cr-footer-meta {
  display: flex;
  gap: 24px;
}

.cr-footer-meta a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.cr-footer-meta a:hover {
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 768px) {
  .cr-nav,
  .cr-header-cta {
    display: none;
  }

  .cr-mobile-toggle,
  .cr-mobile-overlay,
  .cr-mobile-nav {
    display: block;
  }

  .cr-hero-title {
    font-size: 32px;
  }

  .cr-hero-desc {
    font-size: 16px;
  }

  .cr-hero-cta {
    flex-direction: column;
  }

  .cr-hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .cr-section-title {
    font-size: 28px;
  }

  .cr-contact-grid,
  .cr-footer-grid {
    grid-template-columns: 1fr;
  }

  .cr-form-row {
    grid-template-columns: 1fr;
  }

  .cr-cta-title {
    font-size: 28px;
  }

  .cr-cta-buttons {
    flex-direction: column;
  }

  .cr-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cr-footer-meta {
    flex-direction: column;
    gap: 12px;
  }
}
