/* 기본 폰트를 Inter와 Noto Sans KR로 설정합니다. */
html {
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* 메인 콘텐츠 영역 배경색 */
main {
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

/* 콘텐츠 영역의 이미지와 비디오가 부모 요소를 넘어가지 않도록 설정합니다. */
.post-content img,
.post-content video {
    max-width: 100%;
    height: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem; /* 이미지 모서리를 둥글게 처리합니다. */
}

/* ===== 제목 스타일 (H2, H3, H4) ===== */
.post-content h2 {
    font-size: 1.75rem; /* 28px */
    font-weight: 600;
    color: #111827; /* gray-900 */
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    position: relative;
    letter-spacing: -0.025em;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: #3B82F6; /* blue-500 */
    border-radius: 1px;
}

.post-content h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: #1F2937; /* gray-800 */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.025em;
}

.post-content h3::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.25rem;
    width: 3px;
    height: 1.5rem;
    background: #3B82F6; /* blue-500 */
    border-radius: 2px;
}

.post-content h4 {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: #374151; /* gray-700 */
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    letter-spacing: -0.025em;
}

.post-content h4::before {
    content: '•';
    color: #3B82F6; /* blue-500 */
    font-size: 1.5rem;
    position: absolute;
    left: -0.75rem;
    top: -0.125rem;
}

/* ===== 인용 스타일 (Blockquote) ===== */
.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 1rem;
    position: relative;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.7;
}

.post-content blockquote[data-ke-style="style1"] {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); /* amber-100 to amber-200 */
    border-left: 5px solid #F59E0B; /* amber-500 */
    color: #92400E; /* amber-800 */
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.1);
}

.post-content blockquote[data-ke-style="style1"]::before {
    content: '"';
    font-size: 3rem;
    color: #F59E0B; /* amber-500 */
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: serif;
}

.post-content blockquote[data-ke-style="style2"] {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); /* blue-100 to blue-200 */
    border-left: 5px solid #3B82F6; /* blue-500 */
    color: #1E40AF; /* blue-800 */
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.post-content blockquote[data-ke-style="style2"]::before {
    content: '💡';
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.post-content blockquote[data-ke-style="style3"] {
    background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%); /* purple-100 to purple-200 */
    border-left: 5px solid #8B5CF6; /* purple-500 */
    color: #581C87; /* purple-800 */
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.1);
}

.post-content blockquote[data-ke-style="style3"]::before {
    content: '💭';
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ===== 리스트 스타일 ===== */
/* ===== 리스트 스타일 ===== */
.post-content ul[data-ke-list-type="disc"],
.post-content ul[data-ke-list-type="circle"] {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1.5rem 0;
}

.post-content ul[data-ke-list-type="disc"] li,
.post-content ul[data-ke-list-type="circle"] li {
    list-style: none !important;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.post-content ul[data-ke-list-type="disc"] li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: #3B82F6; /* blue-500 */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.post-content ul[data-ke-list-type="circle"] li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: transparent;
    border: 2px solid #10B981; /* emerald-500 */
    border-radius: 50%;
}

/* OL, LI, UL 번호 매기기 개선 */
ol[data-ke-list-type="decimal"] {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

ol[data-ke-list-type="decimal"] > li {
    counter-increment: item;
    margin-bottom: 2rem;
    position: relative;
    display: block;
    overflow: hidden;
}

ol[data-ke-list-type="decimal"] > li::before {
    content: counter(item);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    float: left;
    margin-top: 0.25rem;
}

ol[data-ke-list-type="decimal"] > li > b {
    font-size: 1.125rem;
    color: #1F2937;
    margin-bottom: 0.75rem;
    display: block;
    margin-left: 3.5rem;
    line-height: 1.4;
}

/* 하위 UL 리스트 스타일 */
ol[data-ke-list-type="decimal"] ul[data-ke-list-type="disc"] {
    margin-top: 0.75rem;
    margin-left: 3.5rem;
    list-style-type: none;
    padding-left: 0;
    clear: both;
    border-left: 2px solid #E5E7EB;
    padding-left: 1rem;
}

ol[data-ke-list-type="decimal"] ul[data-ke-list-type="disc"] li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    color: #4B5563;
    line-height: 1.6;
}

ol[data-ke-list-type="decimal"] ul[data-ke-list-type="disc"] li::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.75rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #6B7280;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
}

/* 키보드 단축키 스타일 - b:after 제거 */
/* ol[data-ke-list-type="decimal"] > li > b:after {
    content: attr(data-shortcut);
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #F3F4F6;
    border-radius: 0.375rem;
    border: 1px solid #E5E7EB;
} */

/* 추가: 일반 리스트도 기본 마커 제거 */
.post-content ul,
.post-content ol {
    list-style: none !important;
}

.post-content ul li,
.post-content ol li {
    list-style: none !important;
}

/* ===== 코드 스타일 ===== */
.post-content code {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%); /* gray-800 to gray-700 */
    color: #F9FAFB; /* gray-50 */
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #4B5563; /* gray-600 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.post-content code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EC4899); /* blue-500 to purple-500 to pink-500 */
}

/* 코드 블록 스타일 */
.post-content pre {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); /* slate-900 to slate-800 */
    color: #E2E8F0; /* slate-200 */
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid #334155; /* slate-700 */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.post-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EC4899, #10B981); /* blue-500 to purple-500 to pink-500 to emerald-500 */
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    box-shadow: none;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ===== 추가 트렌디한 요소들 ===== */
/* 강조 텍스트 */
.post-content strong {
    color: #1F2937; /* gray-800 */
    font-weight: 700;
    background: linear-gradient(120deg, #FEF3C7 0%, transparent 100%); /* amber-100 */
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* 링크 스타일 */
.post-content a {
    color: #3B82F6; /* blue-500 */
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.post-content a:hover {
    color: #1D4ED8; /* blue-700 */
    border-bottom-color: #3B82F6; /* blue-500 */
}

/* ===== 테이블 스타일 ===== */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB; /* gray-200 */
}

.post-content table thead {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%); /* slate-50 to slate-100 */
}

.post-content table thead th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #1F2937; /* gray-800 */
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #E5E7EB; /* gray-200 */
    position: relative;
}

.post-content table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6); /* blue-500 to purple-500 */
}

.post-content table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #F3F4F6; /* gray-100 */
}

.post-content table tbody tr:hover {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); /* amber-100 to amber-200 */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-content table tbody tr:last-child {
    border-bottom: none;
}

.post-content table tbody td {
    padding: 1rem 1.5rem;
    color: #374151; /* gray-700 */
    font-size: 0.875rem;
    line-height: 1.5;
    vertical-align: top;
}

.post-content table tbody td:first-child {
    font-weight: 600;
    color: #1F2937; /* gray-800 */
}

/* 테이블 반응형 처리 */
@media (max-width: 768px) {
    .post-content table {
        font-size: 0.75rem;
        border-radius: 0.5rem;
    }
    
    .post-content table thead th,
    .post-content table tbody td {
        padding: 0.75rem 1rem;
    }
}

/* 테이블 캡션 스타일 */
.post-content table caption {
    font-size: 0.875rem;
    color: #6B7280; /* gray-500 */
    text-align: center;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* 테이블 내부 링크 스타일 */
.post-content table a {
    color: #3B82F6; /* blue-500 */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.post-content table a:hover {
    color: #1D4ED8; /* blue-700 */
    text-decoration: underline;
}

/* 테이블 내부 강조 텍스트 */
.post-content table strong {
    color: #1F2937; /* gray-800 */
    font-weight: 600;
}

/* 테이블 내부 코드 */
.post-content table code {
    background: #F3F4F6; /* gray-100 */
    color: #374151; /* gray-700 */
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* ===== 카테고리 글 더보기 스타일 ===== */
.s_article_related {
    margin-top: 2rem;
}

.s_article_related .title span {
    display: block;
    line-height: 1.4;
}

.s_article_related .list_date {
    margin-top: 0.25rem;
}

.s_article_related a:hover {
    text-decoration: none;
}

.s_article_related a:hover .title span {
    color: #2563EB; /* blue-600 */
}

/* 카테고리 글 더보기 리스트 스타일 */
.s_article_related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s_article_related li {
    border-bottom: 1px solid #F3F4F6; /* gray-100 */
}

.s_article_related li:last-child {
    border-bottom: none;
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .s_article_related {
        margin-top: 1.5rem;
    }
    
    .s_article_related .p-6 {
        padding: 1rem;
    }
}

/* 상단 네비게이션(블로그 메뉴) 스타일 */
.blog_menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.blog_menu a {
    color: #6B7280; /* gray-500 */
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    position: relative;
}

.blog_menu a:hover {
    color: #3B82F6; /* blue-500 */
}

.blog_menu a.selected {
    color: #1F2937; /* gray-800 */
    font-weight: 600;
}

/* 모바일 메뉴 스타일 */
@media (max-width: 768px) {
    .blog_menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .blog_menu a {
        width: 100%;
        padding: 0.75rem 1rem;
        background: #F9FAFB; /* gray-50 */
        border-radius: 0.375rem;
        margin-bottom: 0.25rem;
    }
    
    .blog_menu a:hover {
        background: #F3F4F6; /* gray-100 */
    }
    
    .blog_menu a.selected {
        background: #EFF6FF; /* blue-50 */
        color: #1F2937;
    }
}

/* 페이지네이션 현재 페이지 스타일 */
.pagination .selected {
    background-color: #2563EB; /* Tailwind blue-600 */
    color: white;
    border-color: #2563EB;
}

/* 카테고리 리스트 기본 스타일 */
.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 3rem;
    gap: 1rem;
}


/* 카테고리 카운트 배지 고정 위치 */
.category-list .c_cnt {
    font-size: 0.75rem;
    background: #EFF6FF;
    color: #1E40AF;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #DBEAFE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    order: 1;
    margin-right: 0;
}













/* 카테고리 섹션 전체 개선 */
.category-section {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #F3F4F6;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
}

.category-section h4 {
    position: relative;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1F2937;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
    background: #FAFAFA;
}

.category-section h4 svg {
    margin-right: 0.75rem;
    color: #3B82F6;
    flex-shrink: 0;
}

.category-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    width: 2rem;
    height: 2px;
    background: #3B82F6;
    border-radius: 1px;
}

.category-list {
    padding: 0;
    background: white;
}

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

.category-list li {
    margin: 0;
    border-bottom: 1px solid #F3F4F6;
    transition: all 0.2s ease;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li:hover {
    background: #F8FAFC;
}

.category-list li:first-child {
    border-top: 1px solid #F3F4F6;
}

/* 선택된 카테고리 스타일 */
.category-list li.selected {
    background: #EFF6FF;
    border-left: 3px solid #3B82F6;
}

.category-list li.selected a {
    color: #1E40AF;
    font-weight: 600;
}

.category-list li.selected .c_cnt {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

/* 댓글 섹션 스타일 */
.comment-section {
    background: #F8FAFC;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #E2E8F0;
}

/* 댓글 입력 폼 스타일 */
.comment-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
    background: white;
}

.comment-section textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 댓글 입력 필드 스타일 */
.comment-section input[type="text"],
.comment-section input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.comment-section input[type="text"]:focus,
.comment-section input[type="password"]:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 댓글 버튼 스타일 */
.comment-section button[type="submit"],
.comment-section input[type="submit"] {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.comment-section button[type="submit"]:hover,
.comment-section input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* 댓글 리스트 스타일 */
.comment-section .tt-list-reply {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.comment-section .tt-item-reply {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.comment-section .tt-item-reply:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #D1D5DB;
}

/* 댓글 작성자 정보 */
.comment-section .tt-box-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-section .tt-link-user {
    font-weight: 600;
    color: #1F2937;
    text-decoration: none;
}

.comment-section .tt-link-user:hover {
    color: #3B82F6;
}

.comment-section .tt_date {
    font-size: 0.75rem;
    color: #6B7280;
}

/* 댓글 내용 */
.comment-section .tt_desc {
    color: #374151;
    line-height: 1.6;
    margin: 0.5rem 0;
}

/* 댓글 액션 버튼 */
.comment-section .tt-wrap-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #F3F4F6;
}

.comment-section .tt-link-comment {
    color: #6B7280;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.comment-section .tt-link-comment:hover {
    color: #3B82F6;
}

/* 댓글 개수 표시 */
.comment-section .tt-box-total {
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-section .tt_txt_g {
    color: #6B7280;
    font-size: 0.875rem;
}

.comment-section .tt_num_g {
    background: #3B82F6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 댓글 작성 폼 컨테이너 */
.comment-section .tt-area-write {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    margin-top: 1rem;
}

/* 체크박스 스타일 */
.comment-section input[type="checkbox"] {
    margin-right: 0.5rem;
}

.comment-section .tt-xe-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .comment-section {
        padding: 1rem;
    }
    
    .comment-section .tt-item-reply {
        padding: 0.75rem;
    }
    
    .comment-section .tt-wrap-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .category-section h4 {
        padding: 1.25rem 1.25rem 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .category-section h4::after {
        left: 1.25rem;
    }
    
    .category-list li a {
        padding: 0.875rem 1.25rem;
        font-size: 0.8125rem;
        min-height: 2.5rem;
    }
    
    .category-list li a:hover {
        padding-left: 1.5rem;
    }
    
    .category-list .c_cnt {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.4375rem;
        min-width: 1.375rem;
    }
    
    .category-list .new-indicator {
        width: 1.125rem;
        height: 1.125rem;
        font-size: 0.5625rem;
    }
}

/* 카테고리 애니메이션 효과 */
.category-list li {
    margin: 0;
    border-bottom: 1px solid #F3F4F6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-list li:hover {
    background: #F8FAFC;
    transform: translateX(2px);
}

.category-list li a:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3B82F6;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

/* 카테고리 카운트 배지 호버 효과 */
.category-list .c_cnt {
    font-size: 0.75rem;
    background: #EFF6FF;
    color: #1E40AF;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #DBEAFE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-list .c_cnt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.category-list li:hover .c_cnt::before {
    left: 100%;
}

.category-list li:hover .c_cnt {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 새 글 표시 아이콘 호버 효과 */
.category-list .new-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: #F59E0B;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    margin-left: 0.5rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-list li:hover .new-indicator {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.category-list .new-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.category-list li:hover .new-indicator::before {
    left: 100%;
}

/* 티스토리 카테고리 구조에 맞는 스타일 */
.tt_category li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 3rem;
    gap: 1rem;
}

/* 카테고리 이름 영역 */
.tt_category li a .category-name {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 0;
    min-width: 0;
    position: relative;
}

/* N 아이콘을 카테고리 이름 앞에 배치 */
.tt_category li a img[alt="N"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: #F59E0B;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    margin-right: 0.5rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    order: 0;
    /* 기존 인라인 스타일 재정의 */
    vertical-align: middle !important;
    padding-left: 0 !important;
}

/* 카테고리 메타 영역 (글 개수) */
.tt_category li a .c_cnt {
    font-size: 0.75rem;
    background: #EFF6FF;
    color: #1E40AF;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #DBEAFE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    order: 1;
    margin-left: auto;
}

/* 티스토리 카테고리 중첩 구조 스타일 */
.tt_category ul.category_list li a {
    padding-left: 2.5rem;
    font-size: 0.8rem;
}

/* 카테고리 호버 효과 */
.tt_category li a:hover {
    background-color: #F9FAFB;
    padding-left: 2rem;
}

.tt_category li a:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    animation: slideIn 0.3s ease-out;
}

/* N 아이콘 호버 효과 */
.tt_category li a:hover img[alt="N"] {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* 글 개수 호버 효과 */
.tt_category li a:hover .c_cnt {
    transform: scale(1.05);
    border-color: #3B82F6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* 카테고리 관련 글 섹션 스타일링 */
.another_category {
    background: #F9FAFB;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.another_category h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.4;
}

.another_category h4::before {
    display: none; /* 파란색 점 숨김 */
}

.another_category h4 a {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.another_category h4 a:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* 테이블 스타일링 */
.another_category table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #F3F4F6;
}

.another_category table th {
    text-align: left;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #F3F4F6;
    font-weight: 500;
    color: #374151;
    line-height: 1.6;
    vertical-align: top;
    width: 75%;
}

.another_category table td {
    text-align: right;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #F3F4F6;
    color: #6B7280;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    vertical-align: top;
    width: 25%;
}

.another_category table th a {
    color: #1F2937;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.6;
    display: inline; /* inline으로 변경하여 span과 같은 줄에 표시 */
    transition: color 0.2s ease;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.another_category table th a:hover {
    color: #3B82F6;
}

.another_category table th span {
    color: #9CA3AF;
    font-size: 0.875rem;
    font-weight: 400;
    margin-left: 0.5rem;
    white-space: nowrap;
    display: inline; /* inline으로 변경하여 제목과 같은 줄에 표시 */
}

/* 마지막 행 테두리 제거 */
.another_category table tr:last-child th,
.another_category table tr:last-child td {
    border-bottom: none;
}

/* 호버 효과 */
.another_category table tr:hover {
    background-color: #F8FAFC;
}

.another_category table tr:hover th a {
    color: #3B82F6;
}

/* 테이블 행 간격 조정 */
.another_category table tr {
    transition: background-color 0.2s ease;
}

/* 첫 번째 행 상단 여백 */
.another_category table tr:first-child th,
.another_category table tr:first-child td {
    padding-top: 1.5rem;
}

/* 마지막 행 하단 여백 */
.another_category table tr:last-child th,
.another_category table tr:last-child td {
    padding-bottom: 1.5rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .another_category {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .another_category h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .another_category table th,
    .another_category table td {
        padding: 1rem 1.25rem;
    }
    
    .another_category table th a {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .another_category table td {
        font-size: 0.8rem;
    }
    
    .another_category table th span {
        margin-left: 0.25rem;
    }
}

/* ===== 공감/공유/통계 버튼 스타일 ===== */
.container_postbtn {
    margin-top: 3rem;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

/* 공감 버튼 스타일 */
.wrap_btn:first-child {
    order: 1;
}

.postbtn_like .wrap_btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    border-radius: 1rem;
    padding: 0;
    margin: 0 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    transform: scale(1);
}

.postbtn_like .wrap_btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.postbtn_like .btn_post {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.postbtn_like .btn_post:hover {
    background: rgba(255, 255, 255, 0.1);
}

.postbtn_like .ico_like {
    font-size: 1.2rem;
    color: white;
}

.postbtn_like .txt_like {
    color: white;
    font-weight: 600;
}

/* 공유 버튼 스타일 */
.wrap_btn_share {
    order: 2;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    border-radius: 1rem;
    padding: 0;
    margin: 0 0.5rem;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
    transform: scale(1);
}

.wrap_btn_share:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.wrap_btn_share .btn_post {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wrap_btn_share .btn_post:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wrap_btn_share .ico_share {
    color: white;
    font-weight: 600;
}

/* 통계 버튼 스타일 */
.wrap_btn:nth-child(3) {
    order: 3;
    background: linear-gradient(135deg, #A8E6CF 0%, #7FCDCD 100%);
    border-radius: 1rem;
    padding: 0;
    margin: 0 0.5rem;
    box-shadow: 0 4px 15px rgba(168, 230, 207, 0.3);
    transition: all 0.3s ease;
    transform: scale(1);
}

.wrap_btn:nth-child(3):hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(168, 230, 207, 0.4);
}

.wrap_btn:nth-child(3) .btn_post {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wrap_btn:nth-child(3) .btn_post:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wrap_btn:nth-child(3) .ico_statistics {
    color: white;
    font-weight: 600;
}

/* 게시글 관리 버튼 스타일 */
.wrap_btn_etc {
    order: 4;
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
    border-radius: 1rem;
    padding: 0;
    margin: 0 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.3);
    transition: all 0.3s ease;
    transform: scale(1);
}

.wrap_btn_etc:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.4);
}

.wrap_btn_etc .btn_post {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wrap_btn_etc .btn_post:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wrap_btn_etc .ico_etc {
    color: white;
    font-weight: 600;
}

/* 공감 버튼 클릭 효과 */
.postbtn_like .wrap_btn.liked {
    background: linear-gradient(135deg, #FF4757 0%, #FF3742 100%);
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* 공유 레이어 스타일 */
.layer_post {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
    overflow: hidden;
}

.bundle_post {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.btn_mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn_mark:hover {
    background: #F3F4F6;
    color: #1F2937;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container_postbtn {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .postbtn_like .btn_post,
    .wrap_btn_share .btn_post,
    .wrap_btn:nth-child(3) .btn_post,
    .wrap_btn_etc .btn_post {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* 공감 수 표시 스타일 */
.uoc-count {
    font-weight: 700;
    font-size: 1.1rem;
}

/* 호버 시 버튼 전체에 그림자 효과 */
.container_postbtn .wrap_btn {
    position: relative;
    overflow: hidden;
}

.container_postbtn .wrap_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.container_postbtn .wrap_btn:hover::before {
    left: 100%;
}

/* postbtn_like 내부의 container_postbtn border 제거 */
.postbtn_like .container_postbtn {
    border: none !important;
    outline: none !important;
}

/* container_postbtn 내부의 postbtn_like border 제거 */
.container_postbtn .postbtn_like {
    border: none !important;
    outline: none !important;
}

/* 모든 버튼을 동일한 크기로 통일 */
.container_postbtn .wrap_btn {
    width: 120px !important;
    height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container_postbtn .wrap_btn .btn_post {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ===== 방문자 카운터 스타일 (exam.html 참고) ===== */
.module-visitor {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-visitor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.module-visitor .module-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.module-visitor .module-content {
    padding: 1.5rem;
}

.visitor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.visitor-row:last-child {
    border-bottom: none;
}

.visitor-row:hover {
    background: #f8fafc;
    margin: 0 -1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.visitor-cell {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95rem;
}

.visitor-date {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

.visitor-row:nth-child(1) .visitor-date {
    color: #3b82f6; /* blue-600 - 오늘 */
}

.visitor-row:nth-child(2) .visitor-date {
    color: #10b981; /* emerald-600 - 어제 */
}

.visitor-row:nth-child(3) .visitor-date {
    color: #8b5cf6; /* violet-600 - 전체 */
}

/* 기존 카운터 스타일과 호환성을 위한 추가 스타일 */
.bg-white .space-y-3 .flex.justify-between {
    transition: all 0.2s ease;
}

.bg-white .space-y-3 .flex.justify-between:hover {
    background: #f8fafc;
    margin: 0 -1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

/* ===== SEO 최적화 추가 스타일 ===== */

/* 스크린 리더 전용 텍스트 (접근성 향상) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 포커스 표시 개선 (키보드 접근성) */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* 링크 호버 효과 개선 */
a:hover {
    text-decoration: underline;
}

/* 이미지 최적화 */
img {
    max-width: 100%;
    height: auto;
}

/* 로딩 중 이미지 플레이스홀더 */
img[loading="lazy"] {
    background: #f3f4f6;
    min-height: 100px;
}

/* 콘텐츠 가독성 향상 */
.post-content {
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .post-content {
        font-size: 16px; /* 모바일에서 최소 16px 권장 */
        line-height: 1.7;
    }
    
    /* 터치 타겟 크기 최적화 */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 인쇄 스타일 */
@media print {
    .sidebar,
    .mobile-menu,
    .comment-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* 다크 모드 지원 (수동 토글만) */
/* 자동 다크모드 감지는 SEO에 부정적이므로 제거 */

/* 성능 최적화 */
* {
    box-sizing: border-box;
}

/* 애니메이션 최적화 */
.transition-all {
    will-change: transform, opacity;
}

/* 폰트 렌더링 최적화 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== 광고 스타일 ===== */

/* 광고 컨테이너 기본 스타일 */
.ads-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

/* 광고 로딩 중 플레이스홀더 */
.ads-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

.ads-wrap ins {
    position: relative;
    z-index: 2;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 광고 타입별 스타일 */
.ads-wrap.article-top {
    margin-bottom: 2rem;
}

.ads-wrap.article-bottom {
    margin-top: 2rem;
}

.ads-wrap.list-middle {
    margin: 2rem 0;
}

/* 광고 반응형 최적화 */
@media (max-width: 768px) {
    .ads-wrap {
        margin: 1rem 0;
    }
    
    .ads-wrap.article-top,
    .ads-wrap.article-bottom,
    .ads-wrap.list-middle {
        margin: 1rem 0;
    }
}

/* 광고 호버 효과 */
.ads-wrap:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* 광고 로딩 완료 후 플레이스홀더 제거 */
.ads-wrap.loaded::before {
    display: none;
}

/* 광고 에러 상태 */
.ads-wrap.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 2rem;
    text-align: center;
}

.ads-wrap.error::before {
    display: none;
}

/* 광고 접근성 개선 */
.ads-wrap[aria-label] {
    position: relative;
}

.ads-wrap[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    z-index: 3;
}

/* ===== 자동 목차 스타일 ===== */
#auto-toc {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

#auto-toc h3 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

#toc-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #1e40af;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    line-height: 1.4;
    position: relative;
}

#toc-nav a:hover {
    background-color: #dbeafe;
    color: #1e3a8a;
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

#toc-nav a:active {
    transform: translateX(2px);
}

#toc-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #3b82f6;
    transition: height 0.2s ease;
}

#toc-nav a:hover::before {
    height: 100%;
}


/* ===== 목차 반응형 스타일 ===== */
@media (max-width: 768px) {
    #auto-toc {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    #toc-nav a {
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    #auto-toc {
        padding: 0.75rem;
    }
}

/* ===== 목차 애니메이션 ===== */
#auto-toc {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 검색 기능 스타일 ===== */
.search-bar-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-btn {
    color: #6b7280;
    transition: all 0.2s ease;
}

.search-icon-btn:hover {
    color: #3b82f6;
    background-color: #f3f4f6;
}

.dark-mode .search-icon-btn {
    color: #9ca3af;
}

.dark-mode .search-icon-btn:hover {
    color: #60a5fa;
    background-color: #374151;
}

.search-input-container {
    position: relative;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.search-input-container.hidden {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
}

.search-input-container:not(.hidden) {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

#search-input {
    transition: all 0.2s ease;
    padding-right: 2.5rem;
}

#search-input:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark-mode #search-input:focus {
    background-color: #374151;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.search-close-btn {
    transition: all 0.2s ease;
}

.search-close-btn:hover {
    background-color: #f3f4f6;
}

.dark-mode .search-close-btn:hover {
    background-color: #4b5563;
}

/* ===== 방명록 스타일 ===== */
.guestbook-container {
    /* 방명록 컨테이너 기본 스타일 */
}

/* 티스토리 기본 방명록 스타일 개선 */
.tt-comment-cont {
    font-family: inherit;
}

/* 방명록 개수 영역 */
.tt-box-total {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.tt-box-total .tt_txt_g {
    font-weight: 600;
    color: #374151;
}

.tt-box-total .tt_num_g {
    font-weight: 700;
    color: #3b82f6;
    margin-left: 0.5rem;
}

/* 방명록 리스트 영역 */
.tt-area-reply {
    margin-bottom: 2rem;
}

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

.tt-item-reply {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.tt-item-reply:last-child {
    border-bottom: none;
}

/* 방명록 작성폼 영역 */
.tt-area-write {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.tt-box-textarea {
    margin-bottom: 1rem;
}

.tt-cmt {
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tt-cmt:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tt-btn_register {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tt-btn_register:hover:not(:disabled) {
    background-color: #2563eb;
}

.tt-btn_register:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* 이전 댓글 더보기 버튼 */
.tt_btn_prev_more {
    width: 100%;
    padding: 1rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 1rem 0;
}

.tt_btn_prev_more:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

/* 방명록 메타 정보 */
.tt-box-meta {
    margin-bottom: 0.5rem;
}

.tt-link-user {
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
}

.tt-link-user:hover {
    text-decoration: underline;
}

.tt_date {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 방명록 내용 */
.tt_desc {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #374151;
}

/* 다크모드 지원 */
.dark-mode .tt-box-total {
    background-color: #374151;
    border-color: #4b5563;
}

.dark-mode .tt-box-total .tt_txt_g {
    color: #d1d5db;
}

.dark-mode .tt-area-write {
    background-color: #374151;
    border-color: #4b5563;
}

.dark-mode .tt-cmt {
    background-color: #1f2937;
    border-color: #6b7280;
    color: #f9fafb;
}

.dark-mode .tt_btn_prev_more {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #d1d5db;
}

.dark-mode .tt_btn_prev_more:hover {
    background-color: #6b7280;
    border-color: #9ca3af;
}

.dark-mode .tt_desc {
    color: #d1d5db;
}

.dark-mode .tt_date {
    color: #9ca3af;
}

/* 방명록 내부 페이징 스타일 */
/* 티스토리 기본 방명록 내의 모든 페이징 요소 스타일링 */
.guestbook-container .paging,
.guestbook-container div[class*="paging"],
.guestbook-container div[class*="page"],
.guestbook-container .tt-area-reply + .paging,
.guestbook-container .tt-area-reply + div[class*="paging"],
.guestbook-container .tt-area-reply + div[class*="page"],
.guestbook-container .tt_btn_prev_more + .paging,
.guestbook-container .tt_btn_prev_more + div[class*="paging"],
.guestbook-container .tt_btn_prev_more + div[class*="page"],
.guestbook-container .tt-list-reply + .paging,
.guestbook-container .tt-list-reply + div[class*="paging"],
.guestbook-container .tt-list-reply + div[class*="page"] {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    width: 100%;
    display: block !important;
}

.guestbook-container .paging a,
.guestbook-container div[class*="paging"] a,
.guestbook-container div[class*="page"] a,
.guestbook-container .tt-area-reply + .paging a,
.guestbook-container .tt-area-reply + div[class*="paging"] a,
.guestbook-container .tt-area-reply + div[class*="page"] a,
.guestbook-container .tt_btn_prev_more + .paging a,
.guestbook-container .tt_btn_prev_more + div[class*="paging"] a,
.guestbook-container .tt_btn_prev_more + div[class*="page"] a,
.guestbook-container .tt-list-reply + .paging a,
.guestbook-container .tt-list-reply + div[class*="paging"] a,
.guestbook-container .tt-list-reply + div[class*="page"] a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    color: #6b7280;
    text-decoration: none;
}

.guestbook-container .paging a:hover,
.guestbook-container div[class*="paging"] a:hover,
.guestbook-container div[class*="page"] a:hover,
.guestbook-container .tt-area-reply + .paging a:hover,
.guestbook-container .tt-area-reply + div[class*="paging"] a:hover,
.guestbook-container .tt-area-reply + div[class*="page"] a:hover,
.guestbook-container .tt_btn_prev_more + .paging a:hover,
.guestbook-container .tt_btn_prev_more + div[class*="paging"] a:hover,
.guestbook-container .tt_btn_prev_more + div[class*="page"] a:hover,
.guestbook-container .tt-list-reply + .paging a:hover,
.guestbook-container .tt-list-reply + div[class*="paging"] a:hover,
.guestbook-container .tt-list-reply + div[class*="page"] a:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

/* 다크모드 방명록 페이징 */
.dark-mode .guestbook-container .paging,
.dark-mode .guestbook-container div[class*="paging"],
.dark-mode .guestbook-container div[class*="page"],
.dark-mode .guestbook-container .tt-area-reply + .paging,
.dark-mode .guestbook-container .tt-area-reply + div[class*="paging"],
.dark-mode .guestbook-container .tt-area-reply + div[class*="page"],
.dark-mode .guestbook-container .tt_btn_prev_more + .paging,
.dark-mode .guestbook-container .tt_btn_prev_more + div[class*="paging"],
.dark-mode .guestbook-container .tt_btn_prev_more + div[class*="page"],
.dark-mode .guestbook-container .tt-list-reply + .paging,
.dark-mode .guestbook-container .tt-list-reply + div[class*="paging"],
.dark-mode .guestbook-container .tt-list-reply + div[class*="page"] {
    border-top-color: #4b5563;
}

.dark-mode .guestbook-container .paging a:hover,
.dark-mode .guestbook-container div[class*="paging"] a:hover,
.dark-mode .guestbook-container div[class*="page"] a:hover,
.dark-mode .guestbook-container .tt-area-reply + .paging a:hover,
.dark-mode .guestbook-container .tt-area-reply + div[class*="paging"] a:hover,
.dark-mode .guestbook-container .tt-area-reply + div[class*="page"] a:hover,
.dark-mode .guestbook-container .tt_btn_prev_more + .paging a:hover,
.dark-mode .guestbook-container .tt_btn_prev_more + div[class*="paging"] a:hover,
.dark-mode .guestbook-container .tt_btn_prev_more + div[class*="page"] a:hover,
.dark-mode .guestbook-container .tt-list-reply + .paging a:hover,
.dark-mode .guestbook-container .tt-list-reply + div[class*="paging"] a:hover,
.dark-mode .guestbook-container .tt-list-reply + div[class*="page"] a:hover {
    background-color: #4b5563;
    color: #60a5fa;
}

/* ===== 사이드바 목차 스타일 ===== */
#sidebar-toc {
    max-height: 400px;
    overflow-y: auto;
}

#sidebar-toc::-webkit-scrollbar {
    width: 4px;
}

#sidebar-toc::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

#sidebar-toc::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

#sidebar-toc::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.toc-item {
    transition: all 0.2s ease;
}

.toc-item a {
    display: block;
    text-decoration: none;
    word-break: break-word;
    line-height: 1.4;
}

.toc-item a:hover {
    background-color: #f8fafc;
    transform: translateX(2px);
}

/* 목차 접근성 개선 */
#sidebar-toc:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ===== 오른쪽 광고 영역 스타일 ===== */
.ads-wrap.side-right {
    min-height: 384px; /* h-96 = 24rem = 384px */
}

.ads-wrap.page-bottom {
    min-height: 128px; /* h-32 = 8rem = 128px */
}

/* 오른쪽 광고 영역 반응형 */
@media (max-width: 1024px) {
    .ads-wrap.side-right {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .ads-wrap.side-right {
        min-height: 250px;
    }
    
    .ads-wrap.page-bottom {
        min-height: 100px;
    }
}

/* ===== 블로그 제목 스타일 ===== */
header .text-xl.font-bold a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

header .text-xl.font-bold a:hover {
    color: var(--accent-primary);
}

/* ===== 카테고리 메뉴 스타일 ===== */
.category-nav {
    position: relative;
    z-index: 10; /* 상단 헤더보다 낮은 z-index */
}

/* 카테고리 메뉴 컨테이너 */
.category-border {
    position: relative;
    z-index: 10; /* 상단 헤더보다 낮은 z-index */
}

.category-nav ul {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.category-nav ul::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-nav li {
    position: relative;
}

.category-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    position: relative;
}

.category-nav a:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
}

.category-nav a::after {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.category-nav a:hover::after {
    width: 100%;
}

/* 현재 페이지 활성화 스타일 */
.category-nav a.active {
    color: var(--accent-primary);
    background-color: var(--bg-tertiary);
}

.category-nav a.active::after {
    width: 100%;
}

/* ===== 다크모드 CSS 변수 ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --border-primary: #e2e8f0;
    --border-secondary: #f1f5f9;
    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --shadow-primary: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-secondary: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 다크모드 클래스가 적용되었을 때 */
.dark-mode {
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-primary: #374151;
    --border-secondary: #4b5563;
    --accent-primary: #60a5fa;
    --accent-hover: #93c5fd;
    --shadow-primary: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-secondary: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* 다크모드에서 강제로 배경색 적용 */
.dark-mode html,
.dark-mode body,
.dark-mode main {
    background-color: var(--bg-secondary) !important;
}

/* 헤더 스타일 */
.header-main {
    background-color: var(--bg-primary);
    border-color: var(--border-primary);
    transition: all 0.3s ease;
}

/* 상단 고정 헤더 기본 스타일 */
header.fixed {
    background-color: #ffffff;
    border-color: #e2e8f0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* 상단 고정 헤더 스크롤 시 투명 효과 */
header.fixed.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(226, 232, 240, 0.8) !important;
}

/* 다크모드에서 상단 고정 헤더 기본 스타일 */
.dark-mode header.fixed {
    background-color: #1f2937;
    border-color: #374151;
}

/* 다크모드에서 상단 고정 헤더 스크롤 시 투명 효과 */
.dark-mode header.fixed.scrolled {
    background-color: rgba(31, 41, 55, 0.95) !important;
    border-color: rgba(55, 65, 81, 0.8) !important;
}

/* 블로그 제목 스타일 */
.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--accent-primary);
}

/* 다크모드 토글 아이콘 스타일 */
.toggle-icon {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

/* 카테고리 메뉴 스타일 */
.category-border {
    border-color: var(--border-secondary);
}

.category-link {
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.category-link:hover {
    color: var(--accent-primary);
}

/* 광고 컨테이너 스타일 */
.ad-container {
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

/* 광고 플레이스홀더 스타일 */
.ad-placeholder {
    background-color: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

.ad-placeholder-text {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* 포스트 카드 스타일 */
.post-card {
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

/* ===== 아이콘만 남기는 깔끔한 버튼 스타일링 ===== */
.container_postbtn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-secondary);
    margin-top: 2rem;
}

/* wrap_btn 스타일 설정 */
.postbtn_like .wrap_btn,
.postbtn_like .wrap_btn_share {
    margin: 5px !important;
    padding: 5px !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

/* wrap_btn_etc 숨기기 */
.postbtn_like .wrap_btn_etc {
    display: none !important;
}

/* 모든 버튼 공통 스타일 - 아이콘만 표시 */
.postbtn_like .btn_post {
    width: 2.5rem !important;
    height: 2.5rem !important;
    padding: 0 !important;
    border-radius: 0.5rem !important;
    border: 1px solid #e0e0e0 !important;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
}

/* 버튼 호버 효과 */
.postbtn_like .btn_post:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

/* 모든 텍스트 숨기기 - 아이콘만 남기기 (강화) */
.postbtn_like .txt_like,
.postbtn_like .uoc-count,
.postbtn_like .ico_postbtn span:not(.ico_like):not(.ico_share):not(.ico_statistics):not(.ico_etc),
.postbtn_like .wrap_btn .txt_like,
.postbtn_like .wrap_btn .uoc-count,
.postbtn_like .wrap_btn_share .txt_like,
.postbtn_like .wrap_btn_etc .txt_like {
    display: none !important;
}

/* 아이콘만 중앙 정렬 */
.postbtn_like .ico_postbtn,
.postbtn_like .uoc-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}

/* 아이콘 클래스만 보이도록 강제 */
.postbtn_like .ico_like,
.postbtn_like .ico_share,
.postbtn_like .ico_statistics,
.postbtn_like .ico_etc {
    display: inline-block !important;
    font-size: 1rem !important;
    color: #6c757d !important;
}

/* 공유 버튼 특별 스타일 */
.postbtn_like .btn_share {
    position: relative;
}

/* 다크모드에서 버튼 스타일 */
.dark-mode .postbtn_like .btn_post {
    border-color: var(--border-primary);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
}

.dark-mode .postbtn_like .btn_post:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.dark-mode .postbtn_like .uoc-count {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 다크모드에서 버튼들 */
.dark-mode .postbtn_like .btn_post,
.dark-mode .postbtn_like .btn_share,
.dark-mode .postbtn_like .ico_statistics,
.dark-mode .postbtn_like .ico_etc,
.dark-mode .postbtn_like .uoc-icon {
    background-color: #e0e0e0;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark-mode .postbtn_like .uoc-count {
    color: #333;
}

/* ===== 카테고리 메뉴 스타일링 ===== */

/* 티스토리 카테고리 구조 완전 제어 */
.tt_category {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 분류 전체보기만 숨기기 (첫 번째 li의 link_tit만) */
.tt_category > li:first-child > a.link_tit {
    display: none !important;
}

/* 분류 전체보기 li 자체는 숨기되, 내부 category_list는 보이기 */
.tt_category > li:first-child {
    display: block !important;
}

/* 카테고리 리스트 내부 ul을 가로로 배치 */
.tt_category .category_list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 카테고리 링크 스타일 */
.tt_category a,
.tt_category .category_list a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    padding: 0.5rem 0.75rem !important;
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

/* 호버 효과 */
.tt_category a:hover,
.tt_category .category_list a:hover {
    color: var(--accent-primary) !important;
    background-color: var(--bg-tertiary) !important;
    transform: translateY(-1px) !important;
}

/* 카테고리 카운트 스타일 */
.tt_category .c_cnt,
.tt_category .category_list .c_cnt {
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    margin-left: 0.25rem !important;
}

/* New 아이콘 숨기기 */
.tt_category img[alt="N"] {
    display: none !important;
}

/* 링크 제목과 아이템 구분 없애기 */
.tt_category .link_tit,
.tt_category .link_item {
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
}

/* 분류 전체보기 li의 기본 스타일 제거 */
.tt_category > li:first-child {
    margin: 0 !important;
    padding: 0 !important;
}

/* category_list가 첫 번째 li 안에서 제대로 배치되도록 */
.tt_category > li:first-child .category_list {
    margin: 0 !important;
    padding: 0 !important;
}

/* 카테고리 메뉴 반응형 */
@media (max-width: 768px) {
    .category-nav ul {
        padding: 0.5rem 0;
    }
    
    .category-nav a {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* 모바일에서 카테고리 간격 줄이기 */
    .tt_category,
    .tt_category .category_list {
        gap: 1rem !important;
    }
    
    /* 모바일에서 카테고리 링크 패딩 줄이기 */
    .tt_category a,
    .tt_category .category_list a {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    /* 모바일에서 카운트 크기 줄이기 */
    .tt_category .c_cnt,
    .tt_category .category_list .c_cnt {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 640px) {
    /* 작은 화면에서 더 작은 간격 */
    .tt_category,
    .tt_category .category_list {
        gap: 0.75rem !important;
    }
    
    .tt_category a,
    .tt_category .category_list a {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
}
