@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');
body { font-family: 'Noto Sans KR', sans-serif; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #f4f4f4;
/* overflow-x: auto; ✅ 스크롤 허용 +lecture_detail.js 일부 기능이 먹히지 않아 주석 처리 -phj  */
}

/* 전체 감싸는 wrap (네이버 구조처럼) */
#wrap {
  width: 100%;
  background: #ffffff;
  min-height: 100vh;
}

#container {
  width: 1900px;      /* 중앙 고정 */
    height:auto;
  margin: 0 auto;     /* 화면 중앙 정렬 */
  padding: 0 250px;   /* 좌우 패딩 250px */
  background: #ffffff;
  min-height: 900px; /* 헤더+푸터 높이 제외 */
  background-color: rgb(255, 255, 255);
}

/* ✅ 콘텐츠 박스 (확인용) */
.center-box {
  width: 100%;
  background-color: rgb(255, 255, 255);
  min-height:500px;
}

#header {
  width: 100%;
  height: 65px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;        /* 상단 고정 */
  top: 0;
  left: 0;
  z-index: 1000;
}

#footer {
  width: 100%;
  height: 150px;
  background-color: #ffffff;
  color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid rgba(85, 26, 139, 0.4);
}

#content {
  background-color: #ffffff;
  height: auto;
  min-height: 600px;
  border-radius: 10px;
  color: #333;
    margin-top:60px;
    margin-bottom:30px;
}

.header-container{
  width:1900px;
  height:58px;
  background-color: orange;
  display:flex;
  justify-content: center;
  flex-direction: row;
}

.header-logo{
  display:flex;
  width:100%;
  height:58px;
  background-color: rgb(255, 255, 255);
  justify-content: flex-start;
  align-items: center;
  padding-left:250px;
}

.header-search {
  display: inline-flex;
  width: 100%;
  height: 58px;
  background-color: #fff;
  align-items: center;
  position: relative;
}



#searchInput {
  width: 400px;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s ease;
}

#searchInput:focus {
  border-color: #551A8B;
  outline: none;
  box-shadow: 0 0 4px rgba(85, 26, 139, 0.3);
}



.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}




/* 🔘 검색 버튼 */
#searchBtn {
  margin-left:15px;
}

#searchBtn:hover {
  transform: translateY(-2px);
}

#searchBtn:active {
  transform: translateY(0);
  opacity: 0.9;
}

.svg-search{
  width:40px;
  height:40px;
}

.svg-login{
  width:45px;
  height:45px;
    opacity: 85%;
}




.header-info{
  display:flex;
  width:100%;
  height:58px;
  background-color: rgb(255, 255, 255);
  justify-content: flex-end;
  align-items: center;
  padding-right:270px;
}

#loginModalBtn {
  display: inline-block;
  background-color: #ffffff;  
  color: white;               
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;       /* 밑줄 제거 */
  transition: all 0.2s ease-in-out;
  margin-top:5px;
    height:auto;
    margin-left:10px;
}

#loginModalBtn:hover {
  transform: translateY(-2px);
}

#loginModalBtn:active {
  transform: translateY(0);
  opacity: 0.9;
}

#logo{
  height:58px;
}

.svg-list{
  width:55px;
  height:55px;
    margin-left:18px;
    opacity: 75%;
}

button {
  all: unset;             
  cursor: pointer;       
  display: inline-flex;  
  align-items: center;
  justify-content: center;
}



.modal-bg {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ✅ 모달창 */
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  height:400px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content h2 {
  margin-bottom: 20px;
}

.modal-content input {
  width: 80%;
  margin: 5px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content button {
  width: 75%;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  margin-top: 5px;
}

.modal-content button:hover {
  background-color: #000;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  color: #333;
  cursor: pointer;
}

.resister-box {
  margin-top: 10px;
  font-size: 14px; 
}

.divider-line{
  width: 80%;
  height:10px;
  background-color: #ffffff;
}

a {
  text-decoration: none;
}




/* ✅ 검색 결과 박스 */
.search-results {
  position: absolute;
  top: calc(100% - 10px); /* input 아래 */
  left: 50%;             /* 화면 중앙 기준 */
  transform: translateX(-50%); /* 정확히 가운데 정렬 */
  width: 400px;
  left:200px;
  background: white;
  border: 1px solid #000000;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  display: none;  /* 처음엔 숨김 */
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
}

.search-result-item {
  padding: 10px 15px;
  border-bottom: 1px solid #000000;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: 'Noto Sans KR', sans-serif;
}

.search-result-item:hover {
  background-color: darkseagreen;
}

.search-result-item:last-child {
  border-bottom: none;
}

.nav{
  margin-bottom:5px;
}

.nav a{
    margin: 0 5px;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    transition: color 0.2s ease;
    border:1px solid black;
    padding:0px 10px;
    border-radius:20px;
}

.nav a:hover{
    color: #551A8B;
    border:1px solid #551A8B;
    background-color: orange;
    transition: all 0.5s ease;
}

.header-logo {
    cursor: pointer;
}


/* 애러 메세지 */

.text-error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

.text-error-center {
    color: red;
    font-size: 18px;
    margin-top: 10px;
    min-height: 20px;
    text-align: center;
}