/* 전체 페이지 기본 설정 */
body {
  margin: 0;
  padding-top: 20px; /* ⬆ 상단 여백 */
  font-family: 'Arial', sans-serif;
  background-color: #ffffff;
}

/* === 상단 영역 === */

/* 헤더 전체 구조: 로고 / 검색바 / 로그인 버튼 */
.header-wrapper {
  display: flex;
  justify-content: space-between; /* 좌/우 정렬 */
  align-items: center;            /* 수직 가운데 정렬 */
  max-width: 1200px;              /* ⬅ 전체 너비 제한 */
  margin: 0 auto;
  padding: 20px;                  /* ⬅ 상하좌우 여백 */
  gap: 20px;                      /* 요소 간 간격 */
  margin-bottom: 10px;			/* 검색바 아래 여백 추가 */
}

/* 로고 이미지 크기 */
.logo-area img {
  height: 45px; /* ⬆ 로고 높이 고정 */
}

/* 검색바를 가운데 정렬하는 wrapper */
.search-bar {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* 검색창 바깥 껍데기 (배경, 라운드, 그림자 등) */
.search-inner {
  width: 100%;                   /* ⬅ 가로 100% */
  max-width: 720px;              /* ⬅ 최대 너비 제한 */
  background: #ffffff;
  border-radius: 999px;          /* ⭕ 완전 둥근 모양 */
  padding: 6px 12px;             /* ⬆ 상하 6px, 좌우 12px */
  box-shadow: 
	  0 6px 10px rgba(0, 0, 0, 0.2),
	  0 0px 10px rgba(0, 0, 0, 0.1);
}

/* 로그인 / 회원가입 버튼 그룹 */
.auth-menu {
  display: flex;
  gap: 10px; /* ⬅ 버튼 간 간격 */
}

/* 각 버튼 스타일 */
.auth-menu a {
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
  font-size: 0.95em;
  padding: 6px 12px;            /* ⬆ 버튼 크기 (내부 간격) */
  border: 1px solid #0077cc;
  border-radius: 999px;
  transition: 0.2s;             /* ⏳ hover 부드럽게 */
}

/* 버튼 hover 효과 */
.auth-menu a:hover {
  background-color: #0077cc;
  color: #fff;
}

/* === 상단 메뉴 (구글/쿠팡 등 링크) === */

.menu-bar {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 6px; /* ⬆ 위쪽 간격 */
  justify-content: space-between;
  background: #ffffff;
}

/* 왼쪽 메뉴 링크 묶음 */
.menu-left {
  width: 7200px; /* ⬅ 메뉴 최대 너비 제한 */
}

.menu-left a {
  margin-right: 20px; /* ⬅ 링크 간 여백 */
  text-decoration: none;
  color: #333;
  font-weight: 300;
  font-size: 1.1em;
}

.menu-left a:hover {
  text-decoration: underline;
}

/* 메뉴 아래 경계선 */
.divider {
  border-top: 1px solid #ddd;
  width: 100%;
}

/* === 본문 영역 === */

.content-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px; /* ⬆ 콘텐츠 여백 */
  gap: 30px;
  background-color: #ffffff;
}

/* 수직 라인 (검색결과와 배너 사이) */
.vertical-divider {
  width: 1px;                 /* 수직선 두께 */
  background-color: #ccc;     /* 색상 */
  margin: 0px 10px;          /* ⬆ 위아래 여백, ⬅ 좌우 공간 여백 */
}

/* 왼쪽 검색결과 박스 */
.search-results {
  width: 720px; /* ⬅ 검색 결과 너비 */
  background-color: #ffffff;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* 오른쪽 사이드 배너 */
.side-banner {
  flex: 1;
  min-width: 200px; /* ⬅ 최소 배너 폭 */
  background-color: #ffffff;
}

.side-banner .ad-box {
	margin-bottom:40px;
	}

/* 배너 박스 스타일 */
.side-banner .ad-box_isdel {
  background: #ffffff;
  height: 300px; /* ⬆ 고정 높이 */
  margin-bottom: 20px; /* ⬇ 배너 간격 */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ccc;
  color: #888;
}

/* === Google Custom Search 스타일 === */

/* 검색창 전체 구조 */
.gsc-control-cse {
  font-family: 'Arial' !important;
  padding: 0 !important;
  background: transparent !important;
  width: 100% !important;
}

/* 검색 input 바깥쪽 */
.gsc-input-box {
  border: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  padding: 6px 10px !important;
  width: 100% !important;
}

/* 실제 input */
input.gsc-input {
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  font-size: 1.3em !important;     /* ⬆ 글자 크기 */
  letter-spacing:2px;
  width: 100% !important;          /* ⬅ 가득 차도록 */
  min-width: 0 !important;
}

/* 돋보기 버튼 */
.gsc-search-button-v2 {
  border-radius: 0 999px 999px 0 !important; /* ⭕ 오른쪽 둥글게 */
  background-color: #0077cc !important;
  color: white !important;
  border: 1px solid #0077cc !important;
  border-left: 1px solid #ccc !important; /* ⬅ 좌측 구분선 */
  padding: 12px 20px !important; /* ⬆ 버튼 크기 확대 */
  font-size: 1.3em !important;
  cursor: pointer;
  margin-top:4px;
}

.gsc-search-button-v2:hover {
  background-color: #005fa3 !important;
}


.gsc-control-cse {	
  font-size: 1.1em !important;	/* 검샐결과 페이지 폰트 */
}



/* 페이지네이션 전체 wrapper를 가운데 정렬 */
.gsc-cursor-box {
  text-align: center !important;
  margin-top: 40px !important;
  margin-bottom: 80px !important;
}

/* 페이지 번호 링크 */
.gsc-cursor-page {
  display: inline-block !important;
  margin: 0 6px !important;        /* 좌우 여백 */
  padding: 8px 14px !important;    /* 내부 여백 */
  font-size: 1.1em !important;     /* 글자 크기 */
  color: #333 !important;
  background-color: #f8f8f8 !important;
  border-radius: 8px !important;   /* 둥근 모서리 */
  border: 1px solid #ddd !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 현재 선택된 페이지 */
.gsc-cursor-page.gsc-cursor-current-page {
  background-color: #0077cc !important;
  color: #fff !important;
  font-weight: bold !important;
  border-color: #0077cc !important;
}

/* 마우스 오버 효과 */
.gsc-cursor-page:hover {
  background-color: #e0f0ff !important;
  border-color: #0077cc !important;
  color: #0077cc !important;
}



/* === 반응형 === */

@media screen and (max-width: 1024px) {
  .header-wrapper {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .search-bar {
    width: 90%;
  }

  .search-inner {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
  }

  .auth-menu {
    justify-content: center;
    margin-top: 10px;
  }

  .menu-bar {
    flex-direction: column;
    gap: 10px;
  }

  .menu-left, .search-results {
    width: 100%;
  }

  .content-wrapper {
    flex-direction: column;
    padding: 20px;
  }
}
