.main-wrapper {
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* main-wrapper는 이제 폭을 잡지 않고 “세로 흐름”만 담당 */
.content > .main-wrapper,
.content > .proj-page {
  max-width: var(--page-max);
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  padding: 20px 24px;
}

/* ------------------------------
   프로필 카드
------------------------------ */
.profile-card {
  display: flex;
  align-items: center;
}

.profile-left {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

/* ✅ 프로필 사진: 원형 → 3:4 직사각형 (이력서 사진 느낌) */
.profile-avatar {
  width: 96px;          /* 3 */
  height: 128px;        /* 4 */
  border-radius: 12px;  /* 너무 각지지 않게 살짝 라운드 */
  background: #eaeaea;
  overflow: hidden;
  flex: 0 0 auto;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-left h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-left p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  margin-top: 4px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
}

/* ------------------------------
   가운데 2열 (데스크톱)
------------------------------ */
.middle-grid {
  display: flex;
  gap: 16px;          /* 20 → 16 : 전체 폭 조금 더 확보 */
  align-items: stretch;
}

/* 각 열: 위아래 카드 있는 컬럼 */
.middle-grid .col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* 왼쪽/오른쪽 비율 */
.middle-grid .col-left {
  flex: 0.8;          /* 0.9 → 0.8 : 왼쪽 조금 좁게 */
}
.middle-grid .col-right {
  flex: 1.2;          /* 1.1 → 1.2 : 오른쪽 넓게 */
}

/* 왼쪽 열: 아래 카드 늘리기 */
.col-left > .card:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 오른쪽 열: 위 카드 늘리기 */
.col-right > .card:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ------------------------------
   Projects
------------------------------ */
.projects-card .project-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-links a {
  display: block;
  background: #fafafa;
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: #000;
  transition: background 0.15s;
}

.project-links a:hover {
  background: #efefef;
}

.project-title {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}

.project-meta {
  display: block;
  font-size: 0.78rem;
  color: #6b6b6b;
  margin-bottom: 3px;
}

/* 새로 추가된 설명 텍스트 */
.project-desc {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.5;
}

.project-date {
  display: block;
  font-size: 0.75rem;
  color: #999;
}

/* ------------------------------
   Certificates
------------------------------ */
.certificates-card {
  /* flex:1 때문에 자동으로 늘어남 */
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-item {
  background: #fafafa;
  border-radius: 12px;
  padding: 12px 14px;
}

.cert-name {
  font-weight: 600;
  margin-bottom: 3px;
}

.cert-meta {
  font-size: 0.74rem;
  color: #6b6b6b;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ------------------------------
   Skills
------------------------------ */
.skills-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skills-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.skills-category {
  background: #fafafa;
  border-radius: 12px;
  padding: 15px 16px 12px;
}

.skills-category h4 {
  margin-bottom: 8px;
  font-weight: 600;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.9rem;
  color: #333;
  transition: all 0.15s;
}

.skill-btn strong {
  font-weight: 700;
}

.skill-btn:hover {
  border-color: #000;
  background: #f7f7f7;
}

/* ------------------------------
   Contact
------------------------------ */
.contact-card {
  /* flex:1 덕분에 높이 늘어남 */
}

.contact-card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.contact-card li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-card a {
  text-decoration: none;
  color: #111;
}
