header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: black;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
}

.left-section {
  display: flex;
  align-items: center;
  padding-left: 0;
}

.logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border-style: solid;
  border-color: white;
  border-width: 2px;
  cursor: pointer;
}

.website-title {
  color: white;
  font-size: 30px;
  margin-left: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}


.right-section {
  display: flex;
  align-items: center;
  padding-right: 0;
}

.submit {
  font-weight: 500;
  width: 150px;
  height: 48px;
  font-size: 20px;
  background-color: black;
  color: white;
  border-color: white;
  border-style: solid;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap; /* 추가: 텍스트 줄바꿈 방지 */
  overflow: hidden;    /* 추가: 넘치는 텍스트 숨김 */
  text-overflow: ellipsis; /* 추가: 말줄임표 처리 */
}

.submit:hover {
  background-color: white;
  color: black;
}

.submit:active {
  background-color: rgb(189, 189, 189);
  color: white;
} 

.inquiry {
  font-weight: 500;
  width: 150px;
  height: 48px;
  font-size: 20px;
  background-color: black;
  color: white;
  border-color: white;
  border-style: solid;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  margin-left: 20px;
}

.inquiry:hover {
  background-color: white;
  color: black;
}

.inquiry:active {
  background-color: rgb(189, 189, 189);
  color: white;
} 

.main-title {
  color: white;
  font-size: 60px;
  font-weight: 500;
  text-align: center;
  margin-top: 0; /* Adjusted to account for fixed header */
  margin-bottom: 20px;
}

.category {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.category-btn {
  color: white;
  font-size: 18px;
  background-color: black;
  margin-right: 10px;
  border: 1.5px solid white;
  padding: 5px 10px;
  border-radius: 21px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  width: auto;
  min-width: 85px;
  height: 42px;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.category-btn:hover {
  background-color: white;
  color: black;
}

.category-btn:active {
  background-color: rgb(189, 189, 189);
  color: white;
}

/* 태블릿 */
@media (max-width: 900px) {
  .header-inner {
    padding: 0 15px;
    height: 90px;
  }
  
  .website-title {
    font-size: 26px;
    margin-left: 10px;
  }
  
  .logo {
    width: 60px;
    height: 60px;
  }
  
  .submit, .inquiry {
    width: 120px;
    height: 42px;
    font-size: 18px;
  }
  
  .main-title {
    font-size: 48px;
  }
  
  .category {
    padding: 0 10px;
    row-gap: 8px;
  }
  
  .category-btn {
    font-size: 18px;
    margin-right: 8px;
  }
}

/* 모바일 */
@media (max-width: 600px) {
  .header-inner {
    padding: 0 10px;
    height: 80px;
  }
  
  .website-title {
    font-size: 22px;
    margin-left: 8px;
  }
  
  .logo {
    width: 50px;
    height: 50px;
  }
  
  .submit, .inquiry {
    width: 100px;
    height: 38px;
    font-size: 16px;
    margin-left: 10px;
    white-space: nowrap; /* 추가: 텍스트 줄바꿈 방지 */
    overflow: hidden;    /* 추가: 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 추가: 말줄임표 처리 */
    padding: 0 6px;      /* 추가: 좌우 패딩으로 글자 잘림 방지 */
  }
  
  .main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  
  .category {
    padding: 0 5px;
    row-gap: 6px;
  }
  
  .category-btn {
    font-size: 16px;
    margin-right: 6px;
    margin-bottom: 6px;
    min-width: 70px;
  }
}

/* 아주 작은 모바일 */
@media (max-width: 400px) {
  .right-section {
    flex-direction: column;
    gap: 5px;
  }
  
  .submit, .inquiry {
    width: 90px;
    height: 35px;
    font-size: 14px;
    margin-left: 0;
  }
  
  .website-title {
    font-size: 18px;
  }
  
  .main-title {
    font-size: 28px;
  }
}