/* ========================================================
   [1] 블로그 제목 강제 중앙 정렬 (끝판왕 버전)
   ======================================================== */
/* 상단 헤더 영역을 강제로 화면 전체 폭으로 늘리고 중앙 배치 */
.site-header, #masthead, .header-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100vw !important; /* 화면 끝까지 */
    text-align: center !important;
    padding-top: 20px !important;
}

/* 제목 박스 */
.site-branding, .site-title-wrapper, .site-branding-container {
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    display: block !important;
    text-align: center !important;
}

/* 제목 글씨 */
.site-title {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

.site-title a {
    font-size: 32px !important;
    font-family: 'Nanum Myeongjo', serif !important;
    font-weight: 700 !important;
    color: #000 !important;
    text-decoration: none !important;
    display: inline-block !important; /* 가운데 정렬 핵심 */
}

/* 메뉴바 중앙 정렬 */
.main-navigation, #site-navigation {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
}
.main-navigation ul, .menu {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}


/* ========================================================
   [2] 댓글창 완벽 정리 (요청사항 반영)
   ======================================================== */
/* 1. 불필요한 텍스트 숨김 (이메일 공개X, 필수필드 등) */
.comment-notes, 
.logged-in-as,
.required-field-message,
.comment-form-email label, /* 이메일 라벨 숨김 */
.comment-form-author label, /* 이름 라벨 숨김 */
.comment-form-url {         /* 웹사이트 입력란 숨김 */
    display: none !important;
}

/* 2. 이름/이메일 입력칸 자체를 숨김 (1단계 설정해제 필수) */
.comment-form-author,
.comment-form-email {
    display: none !important;
}

/* 3. 댓글 입력창 좌우 100% 확장 */
.comments-area, 
.comment-respond, 
.comment-form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 0 !important;
}

.comment-form-comment textarea {
    width: 100% !important;
    box-sizing: border-box !important; /* 테두리 포함 크기 계산 */
    height: 150px !important;
}

/* 댓글 목록 스타일 정리 */
.comment-list { padding: 0 !important; list-style: none !important; }
.comment-body { margin-bottom: 20px !important; border-bottom: 1px solid #eee; padding-bottom: 20px; }


/* ========================================================
   [3] 배너 및 본문 스타일 (기존 유지)
   ======================================================== */
/* 브라우저 공백 제거 */
html, body { margin: 0 !important; padding: 0 !important; overflow-x: hidden !important; }

/* 배너 꽉 채우기 */
.site-header img, #masthead img {
    width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: cover !important;
    display: block !important;
}

/* 포스팅 내부 여백 확보 */
.single .entry-content, .single .entry-header {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 25px !important; /* 좌우 여백 */
    box-sizing: border-box !important;
}

/* 포스팅 내부 이미지 크기 제한 */
.single .entry-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 30px auto !important;
}

/* 리스트 디자인 */
.custom-article {
    display: flex !important;
    padding: 30px 25px !important;
    border-bottom: 1px solid #eee !important;
    align-items: center !important;
}
.text-area { flex: 1 !important; padding-right: 30px !important; }
.image-area { flex: 0 0 120px !important; }
.image-area img { width: 100%; height: auto; max-height: 100px; object-fit: contain; border-radius: 5px; }

/* 모바일 대응 */
@media (max-width: 600px) {
    .image-area { flex: 0 0 90px !important; }
    .site-header img { max-height: 150px !important; }
    .single .entry-content img { max-height: 250px !important; }
}
