@charset "UTF-8";

/* ==========================================================================
   1. 기본 설정 및 유틸리티 (Global & Utilities)
   ========================================================================== */
:root {
  --brand-primary: #1d4ed8;
  --brand-secondary: #0ea5e9;
  --bg-body: #f8fafc;
  --header-height: 76px;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Noto Sans KR", sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
  color: #0f172a;
  padding-top: var(--header-height);
  overflow-x: hidden;
}

/* 텍스트 및 배경 유틸리티 */
.text-brand { color: var(--brand-primary) !important; }
.bg-brand-gradient {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #2563eb 60%, var(--brand-secondary) 120%);
}
.z-20 { z-index: 20 !important; }
.blind {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
}

/* ==========================================================================
   2. 헤더 및 네비게이션 (Header & Navbar)
   ========================================================================== */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

/* 브랜드 로고 박스 (라운드 축소: 10px -> 5px) */
.brand-logo-box {
  width: 38px; height: 38px;
  border-radius: 5px; 
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-logo-box::after {
  content: ""; position: absolute; inset: -40% -30% auto auto;
  width: 120%; height: 120%;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 60%);
  transform: rotate(20deg);
}

/* 네비게이션 링크 (라운드 축소: 0.75rem -> 0.375rem) */
.nav-link {
  font-size: 0.95rem; font-weight: 500; color: #334155;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important; 
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { 
  background-color: #f1f5f9; 
  color: #0f172a; 
  font-weight: 600; 
}

/* ==========================================================================
   3. 공통 컴포넌트 (UI Components)
   ========================================================================== */

/* 버튼 스타일 (라운드 축소 적용) */
.btn-brand {
  background: var(--brand-primary); color: white;
  border: none; padding: 0.6rem 1.25rem; 
  border-radius: 0.425rem; 
  box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.2);
}
.btn-brand:hover { 
  background: #1e40af; color: white; 
  box-shadow: 0 10px 15px -3px rgba(29, 78, 216, 0.3); 
}

/* 폼 스타일 (라운드 축소 적용) */
.form-control, .form-select {
  border-radius: 0.425rem; 
  padding: 0.75rem 1rem;
  border-color: #e2e8f0; font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* 카드 공통 스타일 (라운드 축소: 1.25rem -> 0.625rem) */
.custom-card, .project-card {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 0.625rem; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background: #fff;
  backface-visibility: hidden;
}
.custom-card:hover, .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

/* 썸네일 영역 (공통) - 가로세로 비율(aspect-ratio) 적용 */
.thumb-area {
  width: 100%;
  aspect-ratio: 16 / 10; /* PC/모바일 공통 비율 유지 */
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* 상태 뱃지 (모집중/마감) */
.status-badge {
  position: absolute;
  top: 0; left: 0; /* 여백 제거 */
  padding: 0.35rem 0.75rem; 
  border-radius: 0 0 10px 0; /* 오른쪽 하단만 둥글게 처리 */
  font-size: 0.75rem; font-weight: 700; color: white;
  letter-spacing: 0.5px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1); /* 그림자 추가 */
  backdrop-filter: blur(8px);
  z-index: 10;
}
.status-badge.ing { background: rgba(29, 78, 216, 0.95); }
.status-badge.end { background: rgba(100, 116, 139, 0.95); }

/* 태그 (#국비교육 등) */
.tag-pill {
  font-size: 0.75rem; padding: 0.35rem 0.75rem;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; /* 라운드 축소 */
  color: #475569;
}

/* 부트스트랩 유틸리티 오버라이드 (라운드 축소 통합) */
.rounded-4 { border-radius: 0.5rem !important; }
.rounded-5 { border-radius: 1rem !important; }
.rounded-pill { border-radius: 50rem !important; }

/* 전화번호 링크 제어 (PC 클릭 방지) */
.tel-link {
  pointer-events: none;
  cursor: default;
}

/* ==========================================================================
   4. 메인 섹션 스타일 (Sections)
   ========================================================================== */

/* Hero Section (라운드 축소: 24px -> 12px) */
.hero-section {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-top: 1rem;
}
.carousel-item { height: 420px; background-color: #0b1220; }
.carousel-item img { object-fit: cover; height: 100%; width: 100%; }

/* Hero Controls */
.hero-controls-container {
  opacity: 0.8;
  transition: opacity 0.3s ease;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  z-index: 30 !important;
  padding-bottom: 1.5rem !important;
  padding-left: 3rem !important;
}
.hero-controls-container:hover { opacity: 1; }
.hero-btn-nav { transition: all 0.2s; cursor: pointer; }
.hero-btn-nav:hover { transform: scale(1.1); color: #fff; opacity: 1; }
.progress-track, #heroProgress { border-radius: 5px !important; }

/* 협약기업 로고 (라운드 축소: 16px -> 8px) */
#partners { background-color: #ffffff; border-top: 1px solid #e2e8f0; }
.partner-logo {
  height: 100px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 8px; 
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}
.partner-logo:hover {
  border-color: #cbd5e1;
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.partner-logo img { width: 100%; height: 100%; max-width: 70%; max-height: 70%; object-fit: contain; transition: transform 0.3s ease; }
.partner-logo:hover img { transform: scale(1.05); }
.partner-logo.s img { width: 120%; height: 120%; max-width: 120% !important; max-height: 120% !important; cursor: pointer; }

/* 수강 후기 (Reviews) */
.review-viewport { overflow: hidden; width: 100%; padding: 1rem 0.5rem 2rem 0.5rem; }
#reviewList { display: flex; flex-wrap: nowrap; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.review-item { flex: 0 0 100%; padding: 0 10px; }
.review-item .card {
  border: 1px solid #e2e8f0 !important;
  background-color: #f8fafc;
  border-radius: 0.75rem !important; /* 라운드 축소 */
  transition: all 0.3s ease;
}
.review-item .card:hover {
  background: #fff; transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.review-quote-icon {
  position: absolute; top: 1.5rem; left: 1.5rem;
  opacity: 0.1; font-size: 5rem; line-height: 1; color: var(--brand-primary);
  font-family: serif; z-index: 0;
}
.review-content { position: relative; z-index: 10; padding-top: 2rem; }
.review-text-clamp {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; height: 4.8em; margin-bottom: 1.5rem !important;
}

/* 리뷰 페이징 */
.review-slide-paging { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.review-slide-paging .btn-prev, .review-slide-paging .btn-next {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #cbd5e1; background: white; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.review-slide-paging .btn-prev:hover:not(:disabled), .review-slide-paging .btn-next:hover:not(:disabled) {
  background: var(--brand-primary); color: white; border-color: var(--brand-primary); transform: scale(1.05);
}
.review-slide-paging .btn-prev:disabled, .review-slide-paging .btn-next:disabled {
  opacity: 0.4; cursor: not-allowed; background: #f8fafc; border-color: #e2e8f0;
}
.review-slide-paging .pages { font-size: 1.1rem; font-weight: 500; color: #94a3b8; letter-spacing: 2px; }
.review-slide-paging .pages .curr { font-weight: 800; color: var(--brand-primary); font-size: 1.2rem; }

/* Footer */
footer { border-top: 1px solid #353634; background: #353634 !important; margin-top: 4rem; color: white; }
footer .text-muted { color: #cbd5e1 !important; }
footer .text-dark { color: #ffffff !important; }
footer a { color: #e2e8f0 !important; text-decoration: none; }
footer hr.border-light { border-color: rgba(255,255,255,0.1) !important; }

/* 서브페이지 요소들 (라운드 축소 적용) */
.page-header { background: var(--bg-body); padding: 3rem 0; border-bottom: 1px solid #e2e8f0; margin-bottom: 3rem; }
.course-content-body { font-size: 1rem; line-height: 1.8; color: #334155; }
.course-content-body p { text-align: center; margin-bottom: 1.5rem; word-break: keep-all; }
.course-content-body img {
  max-width: 100% !important; height: auto !important;
  border-radius: 1rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 0.5rem; display: inline-block;
}
.map-container, .facility-card { border-radius: 0.75rem; }
.value-card { border-radius: 0.5rem; }
.feature-icon { border-radius: 8px; }

/* ==========================================================================
   5. 반응형 미디어 쿼리 (Responsive Styles)
   ========================================================================== */

/* --- Tablet Devices (768px ~ 991px) --- */
@media (min-width: 768px) and (max-width: 991px) {
  .thumb-area { height: 200px; } /* 태블릿 높이 보정 */
  .carousel-item { height: 360px; }
  .review-item { flex: 0 0 50%; max-width: 50%; }
  .partner-logo { height: 90px; padding: 15px; }
  h2 { font-size: 1.75rem; }
}

/* --- Desktop Devices (992px 이상) --- */
@media (min-width: 992px) {
  .review-item { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .thumb-area { height: 260px; } /* PC 높이 */
  .border-start-lg { border-left: 1px solid #e2e8f0; }
}

/* ==========================================================================
   [반응형 테이블 최적화 추가] ddddddddddddddddddddddddddddddddddddddddddddddddddddd
   ========================================================================== */

/* 1. 기본 테이블 스크롤 처리 (Bootstrap 부모 컨테이너가 있을 경우) */
.table-responsive {
  border-radius: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 600px; /* 모바일에서도 최소 너비를 유지하여 텍스트 깨짐 방지 */
}

/* --- Mobile Devices (767px 이하) --- */
@media (max-width: 767px) {
  .table {
    font-size: 0.8rem !important; /* 폰트 크기 축소 */
  }
  
  .table th, .table td {
    padding: 0.6rem 0.4rem !important; /* 여백 축소 */
    white-space: nowrap; /* 텍스트 줄바꿈 방지하여 스크롤 유도 */
  }

  /* 3. 특정 테이블을 세로로 쌓고 싶을 때 (Optional: 클래스 부여 시 작동)
     HTML 예시: <table class="table table-responsive-stack"> */
  .table-responsive-stack tr {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #fff;
  }
  
  .table-responsive-stack td {
    display: flex;
    justify-content: space-between;
    border: none !important;
    padding: 0.3rem 0 !important;
    white-space: normal; /* 세로형일 때는 줄바꿈 허용 */
  }

  /* 테이블 내 뱃지 크기 조정 */
  .table .badge {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.4rem !important;
  }
  /* ddddddddddddddddddddddddddddddddddddddddddddddddd*/
  /* 1. 레이아웃 & 기본 설정 */
  .container-xl { padding-left: 1rem; padding-right: 1rem; }
  .navbar-brand .fs-6 { font-size: 0.9rem !important; }
  
  .hero-section {
    border-radius: 0; margin-top: 0;
    margin-left: -1rem; margin-right: -1rem;
  }
  .carousel-item { height: 280px; }
  .hero-controls-container {
    padding-left: 1.25rem !important; padding-bottom: 1rem !important;
  }
  .progress-track { display: none; }

  /* --------------------------------------------------------
     [교육과정 카드 스타일 (Course List)]
  -------------------------------------------------------- */
  .custom-card {
    height: 230px !important; /* 높이 유지 */
    display: flex; flex-direction: column;
  }

  /* 썸네일 (비율 유지) */
  .thumb-area { 
    height: auto !important; 
    aspect-ratio: 16 / 10; 
    flex-shrink: 0;
  }

  /* ★★★ [수정 1] 모집 상태 뱃지: 모서리에 완전 밀착 (Corner Flush) ★★★ */
  .status-badge {
    display: inline-block !important;
    font-size: 0.6rem !important;
    padding: 0.15rem 0.4rem !important;
    top: 0 !important;        /* 상단 여백 제거 */
    left: 0 !important;       /* 좌측 여백 제거 */
    /* 좌측 상단 라운드만 제거하여 모서리에 딱 맞게 설정 (우하단만 둥글게) */
    border-radius: 0 0 8px 0 !important; 
    z-index: 5;
  }

  /* 본문 영역 */
  .custom-card .card-body { 
    padding: 0.6rem !important;
    flex: 1; display: flex; flex-direction: column;
    justify-content: flex-start !important; 
    gap: 0.2rem; /* 간격 최소화 */
  }

  /* 상단 태그 뱃지(K디지털...) */
  .custom-card .mb-2 {
    margin-bottom: 0 !important; 
    display: block !important;
  }
  .badge {
    font-size: 0.65rem !important;
    padding: 0.25rem 0.5rem !important;
    display: inline-block;
  }

  /* ★★★ [수정 2] 제목 폰트 약간 축소 ★★★ */
  .custom-card .card-title { 
    font-size: 0.85rem !important; /* 0.9rem -> 0.85rem */
    margin-bottom: 0 !important;
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.5px;
  }

  /* 기간(Date): 한 줄 표시 강제 & 폰트 축소 */
  .custom-card .mt-auto { 
    margin-top: 0 !important; 
    padding-top: 0.2rem; width: 100%; 
  }
  .custom-card .date {
    font-size: 0.7rem !important;       
    white-space: nowrap !important;     
    letter-spacing: -0.8px !important;  
    overflow: hidden;
    text-overflow: ellipsis;            
    color: #64748b;
  }

  /* 하단 영역: '자세히보기' 숨기고 '태그(#)'는 유지 */
  .custom-card .border-top {
    display: flex !important;
    padding-top: 0.3rem !important;
    margin-top: auto !important;
    border: none !important;
  }
  .custom-card .border-top small { display: none !important; }
  .custom-card .border-top .tag-pill {
    display: inline-block !important;
    font-size: 0.7rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  /* --------------------------------------------------------
     [훈련생 프로젝트 리스트 전용 스타일]
  -------------------------------------------------------- */
  /* 높이 축소 유지 (155px) */
  .project-list .custom-card {
    height: 180px !important;
  }
  
  .project-list .thumb-area {
    height: auto !important; aspect-ratio: 16 / 10;
  }

  /* 프로젝트 하단 영역 */
  .project-list .custom-card .border-top {
    display: flex !important;
    padding-top: 0.3rem !important;
    margin-top: auto !important;
    border-top: 1px solid #e2e8f0 !important;
  }
  
  /* 내부 여백 더 축소 */
  .project-list .card-body { 
    padding: 0.4rem !important; 
    gap: 0 !important; 
  }
  
  /* 포트폴리오 텍스트 스타일 */
  .project-list .custom-card .border-top span {
    font-size: 0.65rem !important;
    white-space: normal !important; 
    letter-spacing: -0.5px !important;
  }
  .project-list .custom-card .border-top small, 
  .project-list .custom-card .border-top span {
      display: inline-block !important;
  }
  .project-list .custom-card .border-top i {
    display: inline-block !important; font-size: 0.7rem; margin-right: 0.1rem;
  }

  #projects .card{height:200px !important;}
  /* --------------------------------------------------------
     [기타 모바일 전용 UI]
  -------------------------------------------------------- */
  #moreList { padding: 0.4rem 1.2rem !important; font-size: 0.8rem !important; width: auto; }
  
  .section-more-btn {
    white-space: nowrap; flex-shrink: 0;
    padding: 0.2rem 0.6rem !important; font-size: 0.75rem !important;
    margin-left: 0.5rem; border-width: 1px !important;
  }
  
  .scrollbar-hide::-webkit-scrollbar { display: none; }
  .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
  .fs-7 { font-size: 0.8rem !important; }
  
  .tel-link { pointer-events: auto !important; cursor: pointer; }
  
  .partner-logo { height: 70px; padding: 8px; border-radius: 6px; }
  h2 { font-size: 1.5rem; }
  .footer-toggle {
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0; margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .footer-toggle .bi-chevron-down { transition: transform 0.3s ease; }
  .footer-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
  .footer-menu-list { padding: 1rem 0; background: rgba(0,0,0,0.1); margin: 0 -1rem; padding-left: 1rem;}
  
  /* ★★★ [추가] 상담 섹션 '채팅상담' 버튼 최적화 ★★★ */
  #counsel .btn-brand {
    font-size: 1rem !important;       /* 폰트 크기 축소 (기존 btn-lg 해제 효과) */
    padding: 0.8rem 2rem !important;  /* 좌우 여백 대폭 축소 (px-5 -> 줄임) */
    white-space: nowrap !important;   /* ★ 핵심: 절대 줄바꿈 하지 않음 */
    width: auto !important;           /* 버튼 너비 자동 맞춤 */
  }
}

/*dddddddddddddddddddddddddddddddddddd*/
/* 4. PDF 정보(자기부담금 표)처럼 중요한 정보는 가로 스크롤 시 '스크롤 힌트' 제공 */
.table-responsive::after {
  content: '← 가로로 스크롤하여 확인하세요 →';
  display: block;
  text-align: center;
  font-size: 0.65rem;
  color: #94a3b8;
  padding: 0.5rem 0;
}
@media (min-width: 768px) {
  .table-responsive::after { display: none; }
  .table-responsive table { min-width: 100%; }
}
/*dddddddddddddddddddddddddddddddddddd*/
/* --- Small Mobile (576px 이하) - 1차 축소 --- */
@media (max-width: 576px) {
  .carousel-item { height: 240px; }
  .brand-logo-box { width: 32px; height: 32px; }
  .custom-card .card-title { font-size: 0.9rem !important; }
}

/* --- Ultra Small Mobile (400px 이하) - 2차 축소 --- */
@media (max-width: 400px) {
  /* 섹션 버튼 최적화 */
  .section-more-btn {
    font-size: 0.65rem !important; padding: 0.15rem 0.5rem !important; letter-spacing: -0.5px !important;
  }
  /* 카테고리 필터 버튼 축소 */
  .fs-7 { font-size: 0.75rem !important; }
  .d-flex.overflow-x-auto .btn { padding-left: 0.6rem !important; padding-right: 0.6rem !important; }
  
  /* 검색창 축소 */
  #searchForm .btn {
    padding-left: 1rem !important; padding-right: 1rem !important; font-size: 0.85rem !important;
  }
  
  /* 프로젝트 리스트 하단 텍스트 축소 */
  .project-list .custom-card .border-top span {
    font-size: 0.7rem !important; letter-spacing: -1px !important;
  }
}

/* 훈련생 프로젝트 썸네일 처리 */
/* ==========================================================================
   [추가/수정] 6. 프로젝트 리스트 & 상세페이지 이미지 최적화
   ========================================================================== */

/* 6-1. 프로젝트 목록 썸네일 (List) */
.project-list .thumb-area {
  width: 100%;
  aspect-ratio: 16 / 10; /* 권장 사이즈 800:500 비율 유지 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f1f5f9;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  height: auto !important; /* 모바일에서 억지로 180px로 잡는 것 방지 */
}

/* 6-2. 프로젝트 상세페이지 배너 (Detail) */
.project-banner {
  width: 100%;
  /* 모바일 기본 비율 */
  aspect-ratio: 16 / 10; 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f1f5f9;
  transition: all 0.3s ease;
}

/* --------------------------------------------------------
   [반응형 미디어 쿼리 추가 - 모바일 대응]
-------------------------------------------------------- */

/* --- Tablet & Desktop (768px 이상) --- */
@media (min-width: 768px) {
  .project-banner {
    /* 데스크탑에서는 너무 길어지지 않게 고정 높이 부여 */
    aspect-ratio: auto;
    height: 500px; 
    max-height: 500px;
  }
  
}

/* --- Mobile Devices (767px 이하) --- */
@media (max-width: 767px) {
  /* 1. 모바일에서 썸네일 잘림 방지 */
  .project-banner {
    aspect-ratio: 16 / 10 !important; /* 비율 강제 유지 */
    height: auto !important;           /* 고정 높이 해제 */
    border-radius: 12px !important;    /* 모바일에서는 라운드 강조 */
  }

  /* 2. 프로젝트 상세 제목 영역 간격 조정 */
  .page-header {
    padding: 2rem 0 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important; /* 제목 크기 축소 */
    line-height: 1.4;
  }

  /* 3. 상세페이지 내 텍스트 컨텐츠 여백 */
  .content-area {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  
  /* 4. 상세페이지 내 이미지 자동 리사이징 (중요) */
  .content-area img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
  }
  .project-list .custom-card {
    height: auto !important; /* 고정 높이 제거하여 텍스트 길이에 대응 */
    margin-bottom: 1rem;
  }
}

/* --- Ultra Small Mobile (400px 이하) --- */
@media (max-width: 400px) {
  .project-banner {
    aspect-ratio: 4 / 3 !important; /* 아주 작은 화면에선 세로를 조금 더 확보 */
  }
}


/*훈련생프로젝트 상세페이지 */
/* ==========================================================================
   [수정/추가] 프로젝트 상세페이지 본문 스타일링 (Content Typography)
   ========================================================================== */

.content-area {
  color: #334155;            /* 가독성이 좋은 짙은 회색 */
  line-height: 1.8;          /* 줄 간격을 넓혀 시원한 느낌 부여 */
  word-break: keep-all;      /* 한글 단어가 끊기지 않도록 처리 */
  letter-spacing: -0.01em;   /* 자간을 살짝 좁혀 전문적인 느낌 부여 */
}

/* 제목 스타일 (h1~h4) */
.content-area h2, .content-area h3 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--brand-primary); /* 강조 선 추가 */
}

/* 강조 텍스트 */
.content-area strong, .content-area b {
  color: #1e293b;
  font-weight: 700;
  background: linear-gradient(to top, rgba(59, 130, 246, 0.1) 40%, transparent 40%); /* 형광펜 효과 */
}

/* 리스트 스타일 */
.content-area ul, .content-area ol {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.content-area li {
  margin-bottom: 0.5rem;
}

/* 인용문 스타일 (Blockquote) */
.content-area blockquote {
  border-left: none;
  background: #f8fafc;
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  font-style: italic;
  color: #64748b;
  margin: 2.5rem 0;
  position: relative;
}

.content-area blockquote::before {
  content: '"';
  font-family: serif;
  font-size: 3rem;
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  opacity: 0.1;
}

/* 모바일 대응 */
@media (max-width: 767px) {
  .content-area {
    font-size: 0.95rem !important;
    line-height: 1.7;
  }
  .content-area h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }
}
