/* 
* 파일명: style.css
* 파일위치: wp-content/themes/generatepress-child/style.css
* 역할: GeneratePress 자식테마의 메인 스타일시트
* 수정일: 2025-05-01
* 
* Theme Name: GeneratePress Child
* Theme URI: https://url.kr/p/wp-plugin/generatepress-child/
* Template: generatepress
* Author: 호텔천사
* Author URI: https://webworks.co.kr/
* Description: GeneratePress 기본테마를 유료버전처럼 튜닝했습니다.
* Version: 4.5.0
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: generatepress-child
*/

/* 부모 테마 스타일 import */
@import url("../generatepress/style.css");

/* =================================== 
테마 색상 변수 설정
=================================== */
:root {
    --theme-main-color: #18609C;  /* 기본 파란색 */
    --theme-main-color-hover: #1a70b7;  /* 기본 파란색 호버 상태 */
    --theme-secondary-color: rgba(24, 96, 156, 0.2);  /* 투명도 있는 메인 컬러 */
    --theme-secondary-color-hover: rgba(24, 96, 156, 0.3);  /* 투명도 있는 메인 컬러 호버 */
    --theme-text-on-main: #fff;  /* 메인 컬러 위 텍스트 색상 */
}

/* 싱글 포스트 메타 정보 줄바꿈 처리 */
.single .entry-meta {
    display: block !important;
    margin-top: 15px !important;  /* 여백 조정 */
    clear: both !important;  /* float 해제 */
    width: 100% !important;  /* 전체 너비 차지 */
}

/* 리스트와 카테고리 페이지에서는 메타 정보 숨김 (필요한 경우) */
.blog .entry-meta,
.archive .entry-meta,
.category .entry-meta {
    display: none !important;
}


/* 싱글 포스트 헤더 레이아웃 수정 - 세로 배치 */
.single .entry-header {
    display: flex !important;
    flex-direction: column !important; /* 세로 방향으로 요소 배치 */
    align-items: flex-start !important; /* 왼쪽 정렬 */
}

/* 싱글 포스트 메타 정보 스타일 */
.single .entry-meta {
    margin-top: 10px !important;
    font-size: 0.9em !important;
    width: 100% !important;
}

/* 제목 스타일 조정 */
.single .entry-title {
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* 1. 기본 레이아웃 설정
-------------------------------------- */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 15px 0;
}

.container {
    max-width: 1400px;
}

.separate-containers .inside-article {
    max-width: 100%;
    padding-top: 0;
}

/* 2. 헤더 스타일
-------------------------------------- */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 2px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
}

.inside-header {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
}

.admin-bar .site-header {
    top: 32px;
}


/* 메뉴 스타일 추가 */
.main-navigation .main-nav ul li a {
    position: relative !important;
    padding: 2px 15px !important;
    transition: color 0.3s ease !important;
}

.main-navigation .main-nav ul li a::after {
    content: '' !important;
    position: absolute !important;
    width: 0 !important;
    height: 2px !important;
    bottom: 0 !important;
    left: 50% !important;
    background-color: var(--theme-main-color) !important;
    transform: translateX(-50%) !important;
    transition: width 0.3s ease !important;
}

.main-navigation .main-nav ul li a:hover {
    background: transparent !important;
}

.main-navigation .main-nav ul li a:hover::after {
    width: 100% !important;
}

/* 현재 페이지 메뉴 스타일 */
.main-navigation .main-nav ul li.current-menu-item > a::after {
    width: 100% !important;
}


/* 3. 포스트 리스트 스타일
-------------------------------------- */
/* 불필요한 요소 숨김 통합 */
.blog .entry-meta,
.blog .entry-content > *:not(.custom-post-wrap),
.blog .entry-content p:not(.custom-excerpt),
.blog .entry-content img:not(.custom-thumb),
.blog .entry-content a > img,
.blog .entry-footer,
.blog .post-meta,
.blog .post-image,
.blog .featured-image {
    display: none;
}
.blog .inside-article p:not(.custom-excerpt) {
   display: none !important;
}


/* 포스트 컨테이너 간격 제거 */
.site-main > article {
    margin: 0 !important;
    padding: 0 !important;
}

/* 포스트 내부 간격 조정 */
.inside-article {
    margin: 0 !important;
    padding: 0 !important;
}

/* 기본 레이아웃 정리 */
.inside-article {
    padding: 0;
    margin: 0;
    border: none;
}

/* 리스트 제목 스타일 */
.blog .entry-header,
.category .entry-header,
.archive .entry-header {
    padding: 5px 10px !important;
    background-color: var(--theme-secondary-color) !important;
    border-left: 3px solid var(--theme-main-color) !important;
    display: flex !important;
    align-items: center !important; /* 세로 방향 가운데 정렬 */
    min-height: 60px !important; /* 높이 확보를 위한 최소 높이 설정 */
}

.blog .entry-title,
.category .entry-title,
.archive .entry-title {
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.4;
}

.blog .entry-title a,
.category .entry-title a,
.archive .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog .entry-title a:hover,
.category .entry-title a:hover,
.archive .entry-title a:hover {
    color: var(--theme-main-color);
}



/* 커스텀 포스트 레이아웃 */
.custom-post-wrap {
    display: flex !important;
    flex-direction: row !important;  /* row에서 row-reverse로 변경 */
    gap: 20px !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid #eee !important;
}

/* 포스트 간 구분선만으로 간격 조정 */
.site-main article:not(:last-child) .custom-post-wrap {
    border-bottom: 1px solid #eee !important;
}

.site-main article:last-child .custom-post-wrap {
    border-bottom: none !important;
}

.custom-post-thumb {
    flex: 0 0 300px;
}

.custom-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.custom-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 200px;
}

.custom-excerpt {
    margin-bottom: 50px;
}

.custom-post-meta {
    position: absolute;
    bottom: 0;
    right: 0;
}


/* 4. 싱글 포스트 스타일
-------------------------------------- */
.single .entry-header {
    padding: 5px 10px !important;
    background-color: var(--theme-secondary-color) !important;
    border-left: 3px solid var(--theme-main-color) !important;
    display: flex !important;
    align-items: center !important; /* 세로 방향 가운데 정렬 */
    min-height: 60px !important; /* 높이 확보를 위한 최소 높이 설정 */
}

.single .entry-title {
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.4;
}

.single .entry-content {
    padding: 0 10px 15px;
    line-height: 1.5;
    margin-top: 0.5em !important;
}

.single .entry-content p {
    margin-bottom: 1.2em;
}


/* 헤딩 스타일 통합 */
.single .entry-content h2 {
    margin: 1.15em 0 0.6em;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 40px;
    background: var(--theme-main-color);
    padding: 5px 15px;
    color: var(--theme-text-on-main);
    border-radius: 0 10px 0 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 50, 0.5);
}

/* h3 스타일링에서 FAQ 컴포넌트 내의 h3 제외 */
.single .entry-content h3:not(.custom-faq-question h3) {
    color: var(--theme-main-color-hover);
    border-left: var(--theme-main-color) 10px solid;
    padding: 3px 9px;
    margin: 30px 0 20px;
    border-bottom: 2px solid var(--theme-main-color);
    font-size: 1.2em;
    font-weight: 700;
}

/* FAQ 질문 내 h3 태그를 위한 별도 스타일 */
.custom-faq-question h3 {
    flex: 1;
    margin: 0 10px;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: inherit;
    border: none;
    background: none;
    border-left: none;
    border-bottom: none;
}

/* 이미지 스타일 */
.single .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.single .wp-block-image img {
   display: block;
   margin: 0 auto;
}

/* 대표 이미지 숨김 */
.single .post-image,
.single .featured-image,
.single .page-header-image-single {
    display: none !important;
}


/* 링크 스타일 */
.single .entry-content a:not(.gb-button):not(.wp-block-button__link):not(.button):not(.ez-toc-link):not(.ez-toc-list a):not(.wp-block-table a):not([class*="toc"]):not(.my-toc-list a):not(.my-toc-sublist a):not(.active-link) {
  word-break: break-all;
  color: #3e5898;
  background-repeat: no-repeat;
  background-size: 100% 0.2em;
  background-position: 0 100%;
  background-image: linear-gradient(to right,#00BCD4,#5C6BC0);
  transition: all .25s ease-in;
  padding: 2px 0;
}

.single .entry-content a:not(.gb-button):not(.wp-block-button__link):not(.button):not(.ez-toc-link):not(.ez-toc-list a):not(.wp-block-table a):not([class*="toc"]):not(.my-toc-list a):not(.my-toc-sublist a):not(.active-link):hover {
  background-size: 100% 100% !important;
  color: #fff !important;
  border-radius: 10px !important;
}





/* 서브섹션: 싱글 포스트 내 기본 버튼 스타일 */
.single .entry-content .button,
.single .entry-content button:not(.floating-button),
.single .entry-content input[type="button"],
.single .entry-content input[type="submit"],
.single .entry-content .wp-block-button__link {
    background: linear-gradient(135deg, var(--theme-main-color), var(--theme-main-color-hover));
    color: var(--theme-text-on-main);
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    font-weight: 600;
    line-height: normal;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.single .entry-content .button:before,
.single .entry-content button:not(.floating-button):before,
.single .entry-content input[type="button"]:before,
.single .entry-content input[type="submit"]:before,
.single .entry-content .wp-block-button__link:before {
    content: "→";
    margin-right: 8px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.single .entry-content .button:after,
.single .entry-content button:not(.floating-button):after,
.single .entry-content input[type="button"]:after,
.single .entry-content input[type="submit"]:after,
.single .entry-content .wp-block-button__link:after {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    z-index: -1;
    transition: all 0.5s ease;
}

.single .entry-content .button:hover,
.single .entry-content button:not(.floating-button):hover,
.single .entry-content input[type="button"]:hover,
.single .entry-content input[type="submit"]:hover,
.single .entry-content .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.single .entry-content .button:hover:before,
.single .entry-content button:not(.floating-button):hover:before,
.single .entry-content input[type="button"]:hover:before,
.single .entry-content input[type="submit"]:hover:before,
.single .entry-content .wp-block-button__link:hover:before {
    transform: translateX(3px);
}

.single .entry-content .button:hover:after,
.single .entry-content button:not(.floating-button):hover:after,
.single .entry-content input[type="button"]:hover:after,
.single .entry-content input[type="submit"]:hover:after,
.single .entry-content .wp-block-button__link:hover:after {
    left: 100%;
}

.single .entry-content .button:active,
.single .entry-content button:not(.floating-button):active,
.single .entry-content input[type="button"]:active,
.single .entry-content input[type="submit"]:active,
.single .entry-content .wp-block-button__link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}




/* 5. 관련 글 스타일
-------------------------------------- */
.related-posts {
    margin: 10px auto 10px;
    max-width: 95%;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 20px;
    background-color: #fafafa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.related-posts h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.related-posts ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-posts ul li {
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

.related-posts ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #18609C;
}

.related-posts ul li a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.related-posts ul li a:hover {
    color: #18609C;
}



/* 6. 카테고리 및 메타 정보
-------------------------------------- */
/* 카테고리 숨김 처리 */
.cat-links,
.entry-meta .cat-links,
.post-navigation + .cat-links {
    display: none !important;
}

/* last update 부분 */
.entry-meta {
    font-size: 0.85rem;
}

/* tag 부분 좌측 여백주기 */
.entry-meta .tags-links,
.entry-meta .nav-next {
    margin-left:10px;
}

/* 수정일 표시 */
.posted-on .updated {
    display: inline-block;
}

.posted-on .updated + .entry-date {
    display: none;
}

.posted-on .updated:before {
    content: "📆 Last Updated on ";
}


/* =================================== 
7. 버튼 스타일 통합
=================================== */
.btn-primary, .comment-form .submit {
    display: inline-block;
    padding: 8px 25px;
    background-color: var(--theme-main-color);
    color: var(--theme-text-on-main);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--theme-secondary-color);
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .comment-form .submit:hover {
    background-color: var(--theme-main-color-hover);
    box-shadow: 0 4px 8px var(--theme-secondary-color-hover);
    color: var(--theme-text-on-main);
}


/* 다운로드 버튼 */
.download-button {
    display: block;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    color: var(--theme-text-on-main);
    background: linear-gradient(45deg, var(--theme-main-color), var(--theme-main-color-hover));
    border-radius: 50px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--theme-secondary-color-hover);
    text-decoration: none;
    width: 80%;
    max-width: 500px;
    margin: 30px auto;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 96, 156, 0.4);
}

.download-button:active {
    transform: translateY(1px);
}

/* 다운로드 버튼 애니메이션 */
.download-button::after {
    content: "👆";
    margin-left: 8px;
    display: inline-block;
    animation: bounce 1s infinite;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.download-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.download-button:hover::before {
    left: 100%;
}



/* 8. 사이드바 스타일
-------------------------------------- */
#right-sidebar {
    width: 30%;
    padding-left: 10px;
}

.inside-right-sidebar {
    padding: 0;
    background: #fff;
    border-radius: 4px;
}


/* 9. 최신 글 위젯 스타일 통합
-------------------------------------- */
/* 최신글 섹션 타이틀 */
.widget-title {
  font-size: 16px;          /* 글자 크기 */
  font-weight: 600;         /* 글자 두께 */
  letter-spacing: 0;        /* 글자 간격 */
  line-height: 1.5em;       /* 줄 간격 */
  padding-bottom: 15px;     /* 아래 여백 */
  position: relative;       /* 가상 요소 배치 */
}

.widget-title:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 55px;
  background-color: #111;  /* 두꺼운 검은색 바 */
}

.widget-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1px;
  width: 95%;
  max-width: 255px;
  background-color: #333;  /* 얇은 회색 바 */
}


.widget-area .widget {
    padding: 10px;
}

/* 최신글 이미지 옆 제목 */
.post-content h4 { 
   margin: 0 !important;
   font-size: 14px !important;
   line-height: 1.4 !important;
   overflow: hidden !important;
   text-overflow: ellipsis !important;
   display: -webkit-box !important;
   -webkit-line-clamp: 2 !important;
   -webkit-box-orient: vertical !important;
}

.recent-post-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.recent-post-item a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: #333;
}

.post-thumbnail {
    flex: 0 0 90px;
}

.post-thumbnail img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}


/* =================================== 
10. 플로팅 버튼
=================================== */
.floating-buttons {
    position: fixed;
    top:50%;
    right: 20px;
    display: none;  /* 초기에는 숨김 */
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.floating-button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background-color: rgba(33, 37, 41, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-top-button {
    background-color: #4b5563;
}

.share-button {
    background-color: var(--theme-main-color);
}

.floating-button:hover {
    transform: translateX(-5px);
}


/* =================================== 
11. 브레드크럼 스타일
=================================== */
.breadcrumb {
    max-width: 1400px;
    margin: 10px auto 0;  /* 상단 여백 추가 */
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.breadcrumb-item {
    display: inline-block;
}

.breadcrumb-item a {
    color: var(--theme-main-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--theme-main-color-hover);
}

.breadcrumb-separator {
    margin: 0 5px;
    color: #999;
}

.breadcrumb-item.current {
    color: #333;
    font-weight: 500;
}


/* 반응형 스타일 통합
-------------------------------------- */
@media (max-width: 1400px) {
    .site-content,
    .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 768px) {
    /* 헤더 */
    .site-header {
        min-height: 40px;
    }

    .inside-header {
        padding: 0 5px;
    }

    /* 컨텐츠 */
    .site-content {
        padding: 50px 5px 0; /* 모바일에서 상단 패딩 축소 및 좌우 패딩 최소화 */
        display: block;
    }
	
	.separate-containers .inside-article {
        padding-left: 5px !important;  /* 모바일에서 좌우 패딩 최소화 */
        padding-right: 5px !important;
    }

    /* 타이틀 */
    .blog .entry-title,
    .single .entry-title {
        font-size: 1.3em;
    }

    /* 포스트 레이아웃 */
    .custom-post-wrap {
        flex-direction: column !important;
        padding: 10px 5px !important;
        margin-bottom: 5px !important;
        gap: 10px !important;
    }
    
    .custom-post-content {
        order: 1 !important;
    }
    
    .custom-post-thumb {
        order: 0 !important;
        width: 100% !important;
        flex: none !important;
        line-height: 0 !important;
    }

    .custom-post-thumb a {
        display: block !important;
        line-height: 0 !important;
    }

    .custom-post-thumb img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        border-radius: 4px !important;
    }

    /* 사이드바 */
    #right-sidebar {
        width: 100%;
        padding: 0;
        margin-top: 15px;
    }

    /* 플로팅 버튼 */
    .floating-buttons {
        bottom: 15px;
        right: 10px;
    }

    .floating-button {
        width: 35px;
        height: 35px;
    }
	
	/* 브레드 크럼 (breadcrumb) */
	.breadcrumb {
        margin-top: 30px;  /* 모바일 헤더 높이 고려 */
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .breadcrumb::-webkit-scrollbar {
        display: none;  /* 스크롤바 숨김 */
    }
	
	/* 모바일 메뉴 스타일 추가 */
	/* 모바일 메뉴 컨테이너 */
    .main-navigation .main-nav ul {
        padding: 10px 0 !important;
    }
    
    /* 모바일 메뉴 아이템 */
    .main-navigation .main-nav ul li {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* 메뉴 아이템 링크 */
    .main-navigation .main-nav ul li a {
        padding: 8px 15px !important;  /* 상하 패딩 축소 */
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;  /* 구분선 추가 */
		padding-left: 25px !important;  /* 들여쓰기 */
        font-size: 14px !important;  /* 폰트 크기 조정 */
        line-height: 1.4 !important;  /* 줄 간격 축소 */
    }
	
	.main-navigation .main-nav ul li a::after {
        bottom: 5px !important;  /* 모바일에서 위치 조정 */
    }

    /* 마지막 메뉴 아이템의 구분선 제거 */
    .main-navigation .main-nav ul li:last-child a {
        border-bottom: none !important;
    }

    /* 서브메뉴 스타일 */
    .main-navigation .main-nav ul ul {
        padding: 0 !important;
        background: rgba(0,0,0,0.02) !important;  /* 배경색 약간 추가 */
    }

    	
}


@media (max-width: 600px) {
    .admin-bar .site-header {
        position: fixed;
    }
}



/* =================================== 
12. 탭형 위젯 스타일
=================================== */
.tabbed-posts-widget {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.tab-button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #f2f2f2;
    color: #333;
}

.tab-button.active {
    background: #fff;
    color: var(--theme-main-color-hover);
    border-bottom: 2px solid var(--theme-main-color);
}

.tab-content {
    display: none;
    padding: 10px 0;
}

.tab-content.active {
    display: block;
}

.posts-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.no-posts {
    padding: 15px;
    color: #666;
    font-style: italic;
    text-align: center;
}


/* =================================== 
13. 검색 위젯 스타일
=================================== */
.widget_block.widget_search .wp-block-search,
.widget_search .search-form {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.widget_block.widget_search .wp-block-search__label {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.widget_block.widget_search .wp-block-search__input,
.widget_search .search-form .search-field {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: none;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.widget_block.widget_search .wp-block-search__input:focus,
.widget_search .search-form .search-field:focus {
    outline: none;
    background-color: #fff;
}

.widget_block.widget_search .wp-block-search__button,
.widget_search .search-form .search-submit {
    background-color: var(--theme-main-color);
    color: var(--theme-text-on-main);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    font-size: 14px;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
}

.widget_block.widget_search .wp-block-search__button:hover,
.widget_search .search-form .search-submit:hover {
    background-color: var(--theme-main-color-hover);
}

/* 검색 아이콘 추가 */
.widget_block.widget_search .wp-block-search__inside-wrapper::before,
.widget_search .search-form::before {
    content: "\F52A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 15px;
    top: 12px;
    color: var(--theme-main-color);
    font-size: 16px;
    z-index: 1;
}


/* 위젯 제목 스타일 통일 */
.widget_block.widget_search .widget-title,
.widget_search .widget-title {
    background: #f9f9f9;
    padding: 10px 15px;
    margin: 0;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

/* 타이틀 아이콘 */
.widget_block.widget_search .widget-title::before,
.widget_search .widget-title::before {
    content: "\F52A";
    font-family: "bootstrap-icons";
    margin-right: 8px;
    color: var(--theme-main-color);
}

/* 검색 위젯 컨테이너 스타일 */
.widget_block.widget_search {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

/* 검색 입력 필드 컨테이너 */
.widget_block.widget_search .wp-block-search__inside-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* 좌측 여백 명시적 제거 */
.widget_block.widget_search .wp-block-search__inside-wrapper,
.widget_block.widget_search .wp-block-search__button-wrapper,
.widget_block.widget_search .wp-block-search__button {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* 버튼 컨테이너 조정 */
.widget_block.widget_search .wp-block-search__button-wrapper {
    width: 100%;
    display: block;
}

/* 입력 필드 전체 너비 확보 */
.widget_block.widget_search .wp-block-search__input {
    width: 100% !important;
    box-sizing: border-box;
}


/* 서브섹션: 검색 아이콘 조건부 표시 */
body:not(.single) .widget_block.widget_search .wp-block-search__inside-wrapper::before,
body:not(.single) .widget_search .search-form::before {
    content: none; /* 메인 페이지에서 아이콘 제거 */
}

body:not(.single) .widget_block.widget_search .wp-block-search__input,
body:not(.single) .widget_search .search-form .search-field {
    padding-left: 12px; /* 메인 페이지에서 패딩 원래대로 복원 */
}




/* =================================== 
14. 포스트 태그 및 네비게이션 스타일
=================================== */
/* 태그 스타일 */
.single .tags-links {
    display: block;
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid var(--theme-main-color);
}

.single .tags-links a {
    display: inline-block;
    margin: 3px 5px 3px 0;
    padding: 4px 10px;
    background-color: #fff;
    color: #666;
    font-size: 0.85rem;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.single .tags-links a:hover {
    background-color: var(--theme-main-color);
    color: var(--theme-text-on-main);
    border-color: var(--theme-main-color);
}

.single .tags-links::before {
    content: "\F48C";
    font-family: "bootstrap-icons";
    margin-right: 8px;
    color: var(--theme-main-color);
    font-size: 16px;
}

/* 이전글/다음글 네비게이션 스타일 - 화살표 스타일 */
#nav-below.post-navigation {
    margin: 20px 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    background: transparent;
    border: none;
    visibility: visible !important;
    opacity: 1 !important;
}

#nav-below .nav-previous,
#nav-below .nav-next {
    padding: 0;
    margin: 0;
    background: transparent;
    width: 48%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#nav-below .nav-previous a,
#nav-below .nav-next a {
    display: block !important;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center;
}

#nav-below .nav-previous a:hover,
#nav-below .nav-next a:hover {
    background-color: #e9e9e9;
}

/* 기존 아이콘 숨기기 */
#nav-below .nav-previous .gp-icon,
#nav-below .nav-next .gp-icon,
#nav-below .nav-previous svg,
#nav-below .nav-next svg {
    display: none !important;
}

/* 새로운 화살표 추가 */
#nav-below .nav-previous a::before {
    content: "←";
    font-size: 22px;
    font-weight: bold;
    color: #4285f4;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

#nav-below .nav-next a::after {
    content: "→";
    font-size: 22px;
    font-weight: bold;
    color: #4285f4;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}


/* 미디어 쿼리 - 모바일 */
@media (max-width: 768px) {
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        flex: 1 1 100%;
    }
    
    .post-navigation .nav-previous {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}


/* 15. 태그 사이 콤마 제거 및 아이콘 숨기기
-------------------------------------- */
/* 태그 관련 요소에서만 콤마 제거 */
.entry-meta .tags-links,
.footer-meta .tags-links,
.entry-footer .tags-links,
span.tags-links,
.cat-links,
.tag-links {
   font-size: 0 !important; /* 텍스트 노드(콤마) 숨김 */
}

/* 태그 아이템만 보이도록 설정 */
.entry-meta .tags-links a,
.footer-meta .tags-links a,
.entry-footer .tags-links a,
span.tags-links a,
.cat-links a,
.tag-links a {
   font-size: 0.9rem !important; /* 폰트 크기 복원 */
   margin: 0 5px 5px 0 !important; /* 마진으로 간격 조정 */
   display: inline-block !important;
}

/* 태그 아이콘만 선택적으로 숨기기 */
.entry-meta .tags-links svg,
.entry-meta .tags-links .gp-icon,
.cat-links svg,
.cat-links .gp-icon,
.tag-links svg,
.tag-links .gp-icon {
   display: none !important;
}



/* =================================== 
18. 포스트 결론 섹션 스타일
=================================== */
.post-conclusion-card {
    background-color: #fff;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--theme-secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-conclusion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-conclusion-card-header {
    background-color: var(--theme-secondary-color);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--theme-secondary-color-hover);
    /* 모든 카드의 왼쪽 테두리를 더 어두운 색으로 통일 */
    border-left: 4px solid var(--theme-main-color-hover);
}

.post-conclusion-card-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    color: var(--theme-main-color) !important;
    background: transparent !important;
    border: none !important;
}

.post-conclusion-card-header i {
    font-size: 1.4em;
    margin-right: 8px;
    color: var(--theme-main-color);
}

.post-conclusion-card-body {
    padding: 15px 20px;
}

.post-conclusion-card-body p {
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
}

.post-conclusion-card-body p:last-child {
    margin-bottom: 0 !important;
}

.post-conclusion-card-body a {
    color: var(--theme-main-color);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
    font-weight: 500;
}

.post-conclusion-card-body a:hover {
    color: var(--theme-main-color-hover);
    text-decoration: underline;
}

/* 참고 문헌과 관련 자료 목록 스타일 */
.post-references-list,
.post-related-links-list {
    margin: 0 !important;
    padding-left: 20px !important;
}

.post-references-list li,
.post-related-links-list li {
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}

.post-references-list li:last-child,
.post-related-links-list li:last-child {
    margin-bottom: 0 !important;
}

/* 포스트 결론 푸터 (카테고리 더보기 + 업데이트 날짜) */
.post-conclusion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* 카테고리 더보기 링크 */
.post-category-more {
    font-size: 0.9em;
}

.post-category-more a {
    color: var(--theme-main-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.post-category-more a:hover {
    color: var(--theme-main-color-hover);
    text-decoration: underline;
}

.post-category-more i {
    margin-right: 5px;
    font-size: 1.1em;
}

/* 업데이트 날짜 표시 스타일 */
.post-conclusion-update-date {
    text-align: right;
    font-size: 0.9em;
    color: #6c757d;
}

.post-conclusion-update-date i {
    margin-right: 5px;
    color: var(--theme-main-color);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .post-conclusion-card {
        margin-bottom: 15px;
    }
    
    .post-conclusion-card-header {
        padding: 10px 12px;
    }
    
    .post-conclusion-card-header h3 {
        font-size: 1em !important;
    }
    
    .post-conclusion-card-body {
        padding: 12px 15px;
    }
    
    .post-references-list,
    .post-related-links-list {
        padding-left: 15px !important;
    }
    
    /* 모바일에서 푸터 요소 배치 조정 */
    .post-conclusion-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-conclusion-update-date {
        text-align: left;
    }
}