/*
Theme Name: GTHEME
Author: Geeat
Description: Great-Theme
Version: 1.0
*/

/* 여기에 스타일을 추가하실 수 있습니다. */

/* Noto Sans KR 폰트를 불러오기 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

/* 본문과 제목에 Noto Sans KR 폰트 적용하기 */
body,
h1, h2, h3, h4, h5, h6, p {
    font-family: 'Noto Sans KR', sans-serif;

}

/* Reset */
body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote {
    margin: 0;
    padding: 0;
}

/* Body & Wrapper */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 20px 0;
}

p {
	padding: 10px;
	line-height: 2; /* 기본 글꼴 크기의 1.5 배를 줄 간격으로 설정 */
}

/* Logo */
header h2 {
    z-index: 11; /* 사이트 제목이 메뉴 위에 오지 않게 함 */
    position: relative;
}

header h2 a {
    color: #333;
    text-decoration: none;
}

/* Navigation */
nav {
    position: sticky;
    top: 58.2px; 
    width: 100%;
    background-color: #ffffff;
    padding: 15px 0;
    overflow-x: auto;
    white-space: nowrap;
    z-index: 10;
    text-align: center; /* 추가된 부분 */
	border-top: 0.5px solid #BDBDBD;
	border-bottom: 0.5px solid #BDBDBD;
}

nav ul {
    list-style: none;
    display: inline-flex;
    justify-content: center; /* 추가된 부분 */
}

nav li {
    margin: 0 15px;
}

nav a {
    position: relative; 
    color: #000000; /* 하얀색 글씨 */
    text-decoration: none;
    transition: color 0.3s; /* 마우스 호버 시의 부드러운 색상 전환 */
	padding-bottom: 5px; /* 여기에 패딩을 추가하여 간격을 조절하였습니다. */
	font-weight: 300;
	font-size: 14px;
}

nav a:hover {
    color: #8C8C8C; /* 마우스를 올렸을 때의 색상 */
}

.footer {
    text-align: center;
	color: #BDBDBD;
    padding: 10px;
	background-color: #191919;
    /* 다른 스타일 속성 추가 가능 */
}

header {
    position: sticky;
    top: 0; 
    width: 100%;
    background-color: #ffffff;
    padding: 10px 0;
    z-index: 10;
    text-align: center;
}

.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 가운데 정렬에서 왼쪽과 오른쪽 정렬로 변경 */
	padding-left: 10px;
	padding-right: 10px;
}


@media (min-width: 768px) {
    .title-wrapper {
        max-width: 40%; /* 전체 폭을 줄임 */
		margin: 0 auto; /* 가운데 정렬을 위한 자동 마진 추가 */
    }
}

.additional-text {
    margin-right: 10px; /* 추가 텍스트를 오른쪽 정렬로 이동 */
    display: inline-block;
    padding: 5px 5px;
    color: red;
    text-decoration: none;
    border: 1px solid;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px; 
}

.additional-text a {
    text-decoration: none; /* 하이퍼링크의 밑줄 제거 */
    color: red;
}

.additional-icon {
    color: red;
}


.grid-container {
	padding: 30px 10px; /* 위 아래 30px, 좌 우 10px 패딩 */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4개의 동일한 너비의 열 */
    gap: 20px; /* 그리드 아이템 사이의 간격 */
    max-width: 1200px; /* 그리드 전체 가로폭 제한 */
    margin: 0 auto; /* 수평 가운데 정렬 */
}

.grid-item {
    text-align: center;
	border: 1px solid #e8e8e8;
	box-shadow: 2px 2px 10px rgba(0,0,0,.05);
}

.grid-item-content {
    padding: 15px 20px 20px; /* 위 15px, 좌우 20px, 아래 20px 패딩 */
}

.grid-item img {
    width: 100%; /* 이미지를 그리드 아이템 너비에 맞게 조정 */
    height: auto; /* 이미지 비율 유지 */
    max-width: 100%; /* 이미지가 너무 크면 최대 너비를 그리드 아이템 너비에 맞게 조정 */
    display: block; /* 인라인 요소를 블록 요소로 변환하여 중앙 정렬을 용이하게 함 */
    margin: 0 auto; /* 이미지를 수평으로 중앙 정렬 */
    aspect-ratio: 1 / 1.414; /* 이미지 비율을 1:0.7로 고정하여 출력 */
}

.grid-item h2 {
    margin-top: 10px; /* 제목 위 여백 추가 */
    font-size: 18px; /* 제목 폰트 크기 조정 */
	text-align: left;
}

.grid-item h3 {
    font-size: 14px; /* 제목 폰트 크기 조정 */
	text-align: left;
	font-weight: 400;
}


.mhr {
	border:1px solid #e8e8e8;
}

.situation {
    font-size: 14px; /* 제목 폰트 크기 조정 */
	text-align: left;
	color: #4C4C4C;
}

.situation .fa-star {
    color: #FFDF24; /* 아이콘 색상 지정 */
}



/* 미디어 쿼리를 사용하여 반응형 그리드 열 조정 */
@media screen and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 테블릿: 2개의 열 */
		padding: 10px 10px;
    }
}

@media screen and (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr); /* 모바일: 1개의 열 */
		padding: 10px 10px;
    }
}

.main-content {
    padding: 30px 0;
    max-width: 1200px; /* ← 충분히 넓게! */
    margin: 0 auto;
}


.main-h1 {
	text-align: center;
	padding-bottom: 10px;
	padding-left: 10px;
	padding-right: 10px;
}

.entry-header {
	margin-bottom: 20px;
}

.main-content-featured-image {
    width: 100%; /* 이미지를 부모 요소에 맞추기 위해 너비를 100%로 지정할 수 있습니다 */
    height: auto; /* 이미지의 높이를 자동으로 조정하여 가로세로 비율을 유지합니다 */
}

.main-grid-title {
	font-size: 26px;
	padding-left: 20px;
}

.main-grid-container {
	padding-top: 10px;
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 4개의 동일한 너비의 열 */
    gap: 20px; /* 그리드 아이템 사이의 간격 */
    max-width: 1200px; /* 그리드 전체 가로폭 제한 */
    margin: 0 auto; /* 수평 가운데 정렬 */
}

.main-grid-item {
	border: 1px solid #e8e8e8;
	border-radius:10px;
	box-shadow: 2px 2px 10px rgba(0,0,0,.05);
}

.main-grid-item-content {
    padding: 15px 20px 20px; /* 위 15px, 좌우 20px, 아래 20px 패딩 */
}

.field-label {
	font-weight: bold;
	min-width: 90px; /* 최소 가로폭을 설정하세요 */
    display: inline-block; /* 인라인 요소를 블록 요소로 변환하여 최소 가로폭이 적용되도록 합니다. */
	padding-bottom: 10px;
}

.search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.search-field {
    padding: 10px; /* 입력 필드의 여백 */
    border: 1px solid #ccc; /* 테두리 스타일 */
    border-radius: 5px; /* 테두리를 둥글게 만듦 */
    font-size: 16px; /* 글꼴 크기 */
    width: 300px; /* 입력 필드의 너비 */
    margin-right: 10px;
}

.search-submit {
    padding: 10px 20px; /* 버튼의 여백 */
    background-color: #0D3EA3; /* 배경색 */
    color: #fff; /* 글꼴색 */
    border: none; /* 테두리 제거 */
    border-radius: 5px; /* 테두리를 둥글게 만듦 */
    font-size: 16px; /* 버튼의 글꼴 크기 */
    cursor: pointer; /* 포인터로 변경하여 클릭 가능한 상태로 표시 */
    transition: background-color 0.3s ease; /* 배경색 변경 시 부드럽게 전환 */
}

.search-submit:hover {
    background-color: #0056b3; /* 마우스 오버 시 배경색 변경 */
}

/* 테블릿 및 모바일에서 검색 폼 조정 */
@media screen and (max-width: 768px) {
    .search-form {

    }

    .search-field {
        width: 200px; /* 검색 필드의 너비 조정 */
        margin-right: 10px; /* 오른쪽 여백 제거 */
    }

    .search-submit {
        width: 100px; /* 버튼의 너비 조정 */
    }
}


/* 미디어 쿼리를 사용하여 반응형 그리드 열 조정 */
@media screen and (max-width: 1024px) {
    .main-grid-container {
        grid-template-columns: repeat(2, 1fr); /* 테블릿: 2개의 열 */
    }
}

@media screen and (max-width: 750px) {
    .main-grid-container {
        grid-template-columns: repeat(1, 1fr); /* 모바일: 1개의 열 */
    }
}

.pagination {
    text-align: center; /* 페이지 네비게이션 버튼 가운데 정렬 */
    margin-top: 20px; /* 페이지 네비게이션과 그리드 간의 간격 조절 */
	padding-bottom: 30px;
}

.pagination .page-numbers {
    padding: 5px 10px; /* 버튼의 여백 */
    margin: 0 3px; /* 버튼 간의 간격 조절 */
    background-color: #f2f2f2; /* 배경색 */
    color: #333; /* 글꼴색 */
    border: 1px solid #ccc; /* 테두리 스타일 */
    border-radius: 5px; /* 테두리를 둥글게 만듦 */
    font-size: 14px; /* 글꼴 크기 */
    cursor: pointer; /* 포인터로 변경하여 클릭 가능한 상태로 표시 */
    transition: background-color 0.3s ease; /* 배경색 변경 시 부드럽게 전환 */
}

.pagination .page-numbers:hover {
    background-color: #ddd; /* 마우스 오버 시 배경색 변경 */
}

.pagination .page-numbers.current {
    background-color: #007bff; /* 현재 페이지 버튼의 배경색 */
    color: #fff; /* 현재 페이지 버튼의 글꼴색 */
}

.main-content {
    padding: 30px 0;
    width: 100%;
}

.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap; /* 모바일 대응을 위해 wrap 사용 */
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.content-left {
    width: 70%;
    padding: 15px;
    border: 0.5px solid #bdbdbd;
    box-sizing: border-box;
}

.content-right {
    width: 30%;
    padding: 15px;
    position: sticky;
    top: 120px;
    box-sizing: border-box;
}

/* 모바일에서는 세로 정렬로 변경 */
@media (max-width: 768px) {
    .content-left,
    .content-right {
        width: 100%;
        padding: 10px;
    }
}



}