body {
  margin: 0;
}

.nav {
  display    : flex;
  padding    : 15px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  /* background : white; */
}
.nav a {
  margin-right: 0;
}

.logo {
  font-weight: bold;
}

.hr {
  margin-top: 30px
}

a {
  color          : inherit;
  text-decoration: none;
}

.grey-bg {
  background: #eee;
}

.white-bg {
  background   : white;
  margin       : 20px auto;
  border-radius: 5px;
  max-width    : 400px;
  width        : 100%;
}

.detail-bg {
  background: white;
  padding: 15px;
  margin-top: 10px;
}

/* .white-bg {
  background   : white;
  margin       : 20px;
  border-radius: 5px;
  padding      : 16px;
  width        : 100%;
  max-width    : 600px;
} */

.high-five img {
  height: 60vh;          /* 세로 화면 꽉 채움 */
  object-fit: cover;      /* 비율 유지하면서 꽉 채움 (잘릴 수 있음) */
  width: 100%;            /* 가로 100%로 확장 */
  display: block;         /* 이미지 하단에 생길 수 있는 공백 제거 */
  object-position: top; /* 이미지 중앙 정렬 */
}

.main-image img {
  width: 100%;
  /* height: 80vh; */
  height: auto;
  max-height: 60vh;
  /* object-fit: cover; */
  object-fit: contain;
  display: block;
  margin: 0 auto;              /* 중앙 정렬 */
  object-position: right bottom;      /* 이미지 중앙 정렬 */
  background-color: #dfe4dc; /* 배경색 추가 */
}

.home-image-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

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

.ml-20 {
  margin-left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.error-text {
  font-size: 12px;
  color: red;
  font-family: Arial;
  min-height: 14px;        /* ✅ 고정된 최소 높이 확보 */
  visibility: hidden;      /* ✅ 공간은 유지하면서 보이지 않게 */
  margin-top: 2px;
}

.error-text.show {
  visibility: visible;     /* ✅ 텍스트가 생기면 보여줌 */
}

.text-box {
  text-align: center;
  padding: 20px 0;
}

.text-box h2 {
  margin: 0;
}

.search {
  margin-left: 20px;
  padding    : 5px;
}

.search-btn {
  padding: 6px 10px;
  background: lightgray;
  border: none;
  border-radius: 5px;
  vertical-align: middle;
}

.grey-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #afb0b1;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

input,div {
  box-sizing: border-box;
}

input {
  width: 100%;
  max-width: 400px;
}

.form-box {
  /* background   : white; */
  padding      : 25px;
  margin       : 20px auto;
  border-radius: 8px;
  width        : 100%;
  max-width    : 400px;
  display      : flex;
  flex-direction: column;
  align-items   : center;
}

/* Projects 페이지 전용 2컬럼 레이아웃 */
.form-box.projects-grid {
  max-width: 960px;
  align-items: stretch;
}

.projects-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

.projects-column {
  flex: 1;
  min-width: 280px;
}
.projects-column-save {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.form-box input {
  padding : 10px;
  font-size: 16px;
  width: 100%;
  border: 1px solid black;
  border-radius: 5px;
  /* margin-bottom: 10px; */
}

.form-button {
  padding: 10px;
  border: none;
  background-color: #D3D3D3;
  border-radius: 5px;
  text-decoration: none;
  color: black;
  display: inline-block;
  text-align: center;
  font-family: Arial;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.button-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.button-row .form-button,
.button-row .grey-btn {
  margin: 0;
}

.list-box {
  padding      : 10px;
  border-bottom: 1px solid#eee;
}

.list-box h4{
  font-size: 16px;
  margin: 5px;
}

.list-box p {
  font-size: 13px;
  margin: 5px;
  color: grey;
}

.form-group {
  margin-bottom: 24px;
  width: 100%;
}

.form-group label {
  display      : block;
  margin-bottom: 10px;
  margin-left  : 0;
  font-weight  : bold;
}

.input-grid {
  display: grid;
  gap: 8px;
  max-width: 500px;
}

.input-grid input {
  margin-left: 0;
}

.textarea-box {
  width: 100%;
  max-width: 400px;
  height: 120px;
  margin-left: 0;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;

  resize: none;         /* 크기 조절 막기 */
  overflow-y: auto;     /* 세로 스크롤만 허용 */
  overflow-x: hidden;   /* 가로 스크롤 방지 */
  white-space: pre-wrap; /* 자동 줄바꿈 */
  word-break: break-word; /* 단어가 길면 줄바꿈 */
}

.phone-wrapper {
  margin-left: 0;
}

/* 전화번호 입력 UI의 최상위 wrapper */
.iti {
  width: 100%;
  position: relative;
  font-family: Arial, sans-serif !important;
}

/* 국가 리스트 드롭다운 영역 */
.iti__country-list {
  margin-top: 4px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border-radius: 6px !important;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 280px !important;
  box-sizing: border-box !important;
}

/* 검색 입력창 영역 */
.iti__search-input {
  margin: 0 !important;
  padding: 6px 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-family: Arial, sans-serif !important;
  font-size: 14px;
}

.chat-screen { width: 100%; }
.chat-box { margin-top: 15px; display: flex; }
.chat-box span { padding: 10px; background: #eee; }
.mine { justify-content: end; }
.chat-input {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
}
.chat-button {
  padding: 10px;
  border : none;
  background : lightgrey;
  border-radius: 5px;
}

/* 사이드바 레이아웃 */
.page-container {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.sidebar-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.refresh-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.refresh-btn:hover {
  background-color: #f0f0f0;
}

.refresh-btn:active {
  transform: rotate(180deg);
  transition: transform 0.3s;
}

.refresh-btn.loading {
  opacity: 0.5;
  cursor: not-allowed;
}

.news-item, .job-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child, .job-item:last-child {
  border-bottom: none;
}

.news-item a, .job-item a {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.news-item a:hover, .job-item a:hover {
  text-decoration: underline;
}

.news-meta, .job-meta {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 8px;
  align-items: center;
}

.job-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.job-company {
  color: #666;
  font-size: 13px;
}

.job-location {
  color: #999;
  font-size: 12px;
}

/* Global loading spinner */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #4CAF50;
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

/* GitHub Summary용 소형 스피너 */
.mini-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #ccc;
  border-top-color: #4CAF50;
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
  display: none;
}

@keyframes spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* 모바일 반응형 */
@media (max-width: 968px) {
  .page-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: static;
  }
}
