/*
Theme Name: he
Author: he
Description: he
Version: 1.0
*/

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


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



body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.region-buttons {
    position: sticky;
    top: 56.8px; 
    width: 100%;
    background-color: #ffffff;
    padding: 15px 0;
    overflow-x: auto;
    white-space: nowrap;
    z-index: 10;
    text-align: center;
	border-bottom: 0.5px solid #BDBDBD;
}

.region-buttons ul {
    list-style: none;
    display: inline-flex;
    justify-content: center;
}

.region-buttons li {
    margin: 0 15px;
}

.region-buttons a {
    position: relative; 
	background-color: #2c82ce;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
	font-weight: 300;
	font-size: 14px;
	border: 1px solid #083862;
    padding: 5px 20px;
    border-radius: 20px;
    margin: 5px;

}

.region-buttons a:hover {
    color: #8C8C8C;
}

header {
    width: 100%;
    background-color: #ffffff;
    z-index: 10;
    text-align: center;
}

.title-wrapper {
	padding-left: 15px;
    display: flex;
    align-items: center; /* 가운데 정렬 */
}

.the-content {
    border: 0.5px solid #0072bb;
    border-radius: 10px;
    background: #fff;
    padding: 20px;
    margin-top: 30px;
}

/* ✅ 모바일에서는 테두리만 제거 */
@media (max-width: 767px) {
    .the-content {
        border: none;
		padding: 0px;
    }
}


@media (min-width: 880px) {
    .title-wrapper {
        display: flex;
        align-items: center;
        padding-left: 10px;
        padding-right: 10px;
        flex-direction: row; /* 태블릿 이상에서 가로로 배치 */
        max-width: 60%; /* 너비 제한 */
        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;
}

.index-title1 {
    margin-top: 10px; /* 제목과 그리드 사이의 간격 조정 */
	max-width: 1200px; /* 최대 너비 설정 */
    margin: 20px auto 0 auto; /* 가운데 정렬을 위한 자동 마진, 아래 간격 포함 */
	padding-left: 15px;
}

.grid-container-premium {
    padding: 30px 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.swiper-container {
    width: 100%;
    height: 100%;
	overflow: hidden; /* 오버플로우 숨기기 */
}

.swiper-wrapper {
    width: 100%; /* 슬라이드들이 컨테이너 안에서 정렬되도록 설정 */
}

.swiper-pagination {
     position: static !important; /* 또는 필요한 포지션 속성으로 설정 */
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.grid-item {
    width: 100%; /* 슬라이드의 너비를 100%로 설정 */
    cursor: pointer;
}

.grid-item-content {
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mhr {
    margin: 10px 0;
}

.situation {
    display: flex;
    align-items: center;
}

.situation i {
    margin-right: 5px;
}

.grid-container {
	padding: 30px 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.grid-item-content {
    padding: 15px 20px 20px;
}

@media screen and (max-width: 600px) {
    .grid-item-content {
		padding: 10px 10px 10px;
    }
}

.grid-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    aspect-ratio: 1 / 0.7;
    border-top-left-radius: 8.8px;
    border-top-right-radius: 8.8px;
}

.grid-item h2 {
    margin-top: 10px;
    font-size: 16px;
	text-align: left;
}

.grid-item h3 {
    font-size: 14px;
	text-align: left;
	font-weight: 400;
}

@media screen and (max-width: 600px) {
	.grid-item h2 {
		margin-top: 10px;
		font-size: 14px;
		text-align: left;
	}

	.grid-item h3 {
		font-size: 12px;
		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 (min-width: 768px) {
    #map {
        height: 550px;
    }
}

@media (max-width: 767px) {
    #map {
        height: 350px;
    }
}

@media screen and (max-width: 1024px) {
    .grid-container-premium {
        grid-template-columns: repeat(1, 1fr);
		padding: 10px 10px;
    }
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
		padding: 10px 10px;
    }
}

@media screen and (max-width: 600px) {
    .grid-container-premium {
        grid-template-columns: repeat(2, 1fr);
		padding: 10px 10px;
		gap: 5px;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
		padding: 10px 10px;
		gap: 5px;
    }
}

.main-content {
    padding: 30px 0px;
    max-width: 1200px;
    margin: 0 auto;

}

.main-h1 {

    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 16px;
    text-align: center; /* 이 줄 추가 */
}

.main-h1::after {
    content: "";
    display: block;
    max-width: 120px;
    height: 3px;
    background-color: #0072bb;
    margin: 8px auto 0;
    border-radius: 2px;
}

.post-meta-value {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    word-break: keep-all;
    background: #f9f9f9;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: table; /* 가운데 정렬 */
    margin-left: auto;
    margin-right: auto;
}

/* 모바일용 스타일 */
@media (max-width: 768px) {
	.main-h1 {
		font-size: 12px; /* 모바일에서 작게 */
	}
}

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

.main-content-featured-image {
    width: 100%;
    height: auto;
}

.main-grid-title {
	font-size: 20px;
	padding-left: 20px;
	font-weight: bold;
	color: #333;
}


@media (max-width: 768px) {
	.main-grid-item-content {
		font-size: 14px;
	}
}

.field-label {
	font-weight: bold;
	min-width: 80px;
    display: inline-block;
	padding-bottom: 10px;
}



.search-button:hover {
    color: #777; /* 호버 시 색상 변화 */
}

.search-button i {
    font-size: 18px;
}

.screen-reader-text {
    display: none; /* 스크린 리더용 텍스트 숨김 */
}

.search-field::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

@media screen and (max-width: 768px) {
    .search-form {

    }

    .search-field {
        width: 200px;
        margin-right: 10px;
    }

}

@media screen and (max-width: 1024px) {
    .main-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 750px) {
    .main-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.logo {
	width: 100px;
	height: auto;
}

@media (max-width: 767px) {
    .logo {
    width: 80px;
	height: auto;
    }
}

/* 페이지네이션 컨테이너 스타일 */
.pagination {
    text-align: center;
    margin-top: 30px; /* 페이지네이션과 콘텐츠 간의 여백 */
	margin-bottom: 30px;
}

/* 페이지네이션의 각 페이지 버튼 스타일 */
.pagination a, .pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #f0f0f0; /* 배경색 */
    border-radius: 5px;
    color: #333; /* 글자 색 */
    text-decoration: none;
    font-size: 16px;
}

/* 페이지네이션 링크 hover 효과 */
.pagination a:hover {
    background-color: #0073e6; /* 호버 시 배경색 */
    color: #fff; /* 호버 시 글자색 */
    transition: background-color 0.3s ease;
}

/* 현재 페이지 스타일 */
.pagination .current {
    background-color: #0073e6; /* 현재 페이지의 배경색 */
    color: #fff; /* 현재 페이지 글자색 */
    font-weight: bold; /* 현재 페이지는 굵은 글씨 */
}

/* 이전/다음 버튼 스타일 */
.pagination .prev, .pagination .next {
    font-weight: bold;
}

/* 이전/다음 버튼 hover 스타일 */
.pagination .prev:hover, .pagination .next:hover {
    background-color: #0073e6;
    color: #fff;
}

/* 비활성화된 버튼 스타일 (예: 첫 페이지의 이전 버튼) */
.pagination .disabled {
    background-color: #e0e0e0;
    color: #b0b0b0;
    cursor: not-allowed;
}