/* =========================================================
   Base / Layout (GLOBAL)
========================================================= */
* { box-sizing: border-box; }

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background: #ffffff;
}

/* ✅ 기본 페이지 레이아웃 */
main{
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 24px;
}

h1,h2,h3{ margin-top: 0; }

footer{
  text-align: center;
  padding: 20px 0 30px;
  font-size: 0.8rem;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
  margin-top: 40px;
}

/* =========================================================
   Header / Nav (GLOBAL)
   - ✅ 로고(이미지+텍스트)는 왼쪽
   - ✅ 메뉴(nav)는 오른쪽 끝
========================================================= */
.site-header{
  background: #111827;
  color: #fff;
  padding: 12px 40px;

  display: flex;
  align-items: center;
  justify-content: space-between; /* 양끝 정렬 */
  gap: 20px;
}

/* ---- Brand (logo image + text) ---- */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: #fff;

  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.brand-logo{
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: contain;
  display: block;
}


.brand-text{
  display: inline-block;
}

/* ---- Nav ---- */
.site-nav{
  margin-left: auto;          /* 🔥 nav를 오른쪽으로 밀기 */
  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex-wrap: wrap;
  gap: 16px;
}

.site-nav a{
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 2px;
}

.site-nav a:hover{
  color: #ffffff;
  text-decoration: underline;
}

/* =========================================================
   Buttons (GLOBAL)
========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover{
  background: #f8fafc;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px){
  .site-header{
    padding: 12px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav{
    margin-left: 0;
    justify-content: flex-start;
    gap: 12px;
  }

  main{
    padding: 22px 16px;
  }
}
