/* 공통 스타일 */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa; /* 부드러운 배경색 */
}

/* 네비게이션 바 스타일 */
.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.nav-link {
    transition: color 0.3s; /* Smooth color transition */
}

.nav-link:hover {
    color: #ffc107; /* Highlight color on hover */
}

.post-container {
    padding: 4rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    border-radius: 10px;
}

.post-content {
    line-height: 1.7;
    color: #333;
    font-size: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7; /* 줄 간격 */
    margin-left: 2rem;  /* 기본 들여쓰기 */
}

/* span 내부의 텍스트도 들여쓰기 적용 */
.post-content p span {
    display: inline-block;  /* inline-block으로 변경하여 margin이 적용되게 함 */
}

/* 빈 <p> 태그에 스타일 추가 */
.post-content p:empty {
    margin: 1rem 0; /* 빈 단락에 여백 추가 */
    display: block; /* 블록 요소 유지 */
    content: "\00a0"; /* 공백 문자 추가 */
}

.post-content a {
    color: #007bff;
    text-decoration: underline;
}

.post-content a:hover {
    color: #0056b3;
}

/* 모든 리스트(ul, ol)를 bullet 스타일로 변경 */
.post-content ul,
.post-content ol {
    margin-bottom: 1.0rem;
    padding-left: 3rem;
    list-style-type: disc; /* 디스크 bullet 스타일 */
}


/* Quill에서 제공하는 indent 클래스를 활용한 들여쓰기 */
/* ql-indent-1: 1단계 들여쓰기 */
.post-content li.ql-indent-1 {
    margin-left: 2rem;
}
/* ql-indent-2: 2단계 들여쓰기 */
.post-content li.ql-indent-2 {
    margin-left: 4rem;
}
/* ql-indent-3: 3단계 들여쓰기 */
.post-content li.ql-indent-3 {
    margin-left: 6rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content h1,
.post-content h2 {
    margin-bottom: 1.0rem;    
}

.post-content h2 {
    font-size: 1.5rem !important; /* h2 글자 크기 조정 - !important로 전역 스타일 덮어쓰기 */
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-top: 2rem; /* 위쪽 마진 늘림 */
}

.post-content h3 {
    font-size: 1.2rem !important; /* h3는 기본 텍스트보다 크게 */
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 1.0rem;    
    margin-left: 1.0rem;    
    margin-top: 1.2rem;
}


iframe {
    width: 100%; /* 부모 요소의 너비를 기준으로 반응형 */
    /* height: 400px;
    max-width: 800px;  */
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .post-container {
        padding: 1rem;
    }

    .post-content {
        font-size: 0.9rem;
    }

    .post-content ul,
    .post-content ol {
        padding-left: 1.5rem;
    }
    
    .post-content h2 {
        font-size: 1.4rem !important; /* 모바일에서 h2 글자 크기 조정 */
        margin-top: 1.5rem; /* 모바일에서 위쪽 마진 조정 */
    }
    
    .post-content h3 {
        font-size: 1.1rem !important; /* 모바일에서 h3 글자 크기 */
        margin-top: 1rem;
    }
}


table {
    border-collapse: collapse;
    width: 100%;
}

table th,
table td {
    border: none;
    border-bottom: 1px solid #ccc; /* 회색 가로선 */
    padding: 0.5rem;
}

.ql-code-block-container {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin: 10px 0;
}
.ql-code-block {
    font-family: monospace;
    white-space: pre-wrap;
    line-height: 1.5;
    display: block; /* highlight.js가 블록 요소로 인식하도록 */
}

/* 게시글 목록 스타일 */
.post-list img {
    max-width: 100%;
    height: auto;
}

.post-list .blog-card {
    background-color: #f8f9fa !important;  /* 공개글은 베이지색 배경 */
}

.post-list .blog-card.private-post {
    background-color: #ffffff !important;  /* 비공개글은 흰색 배경 */
}

.post-list .card {
    transition: all 0.3s ease;
}

.post-list .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 히어로 섹션 스타일 */
.bg-hero-150 {
    position: relative;
    padding: 150px 0;
    background-size: cover !important;
    background-position: center center;
    width: 100%;
    display: table;
}

.bg-overlay {
    background-color: rgba(22, 28, 45, 0.3);
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* 오버레이를 배경 위, 텍스트 아래로 설정 */
}

/* 텍스트 컨테이너 스타일 */
.container {
    position: relative;
    z-index: 2; /* 텍스트와 버튼이 오버레이 위에 오도록 설정 */
}

/* Quill 에디터 스타일 통일 */
.ql-editor {
    line-height: 1.7;
    color: #333;
    font-size: 1rem;
}

.ql-editor p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    margin-left: 2rem;
}

.ql-editor h2 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.ql-editor h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    margin-left: 1rem;
}

.ql-editor ul,
.ql-editor ol {
    margin-bottom: 1.0rem;
    padding-left: 3rem;
    list-style-type: disc;
}

.ql-editor li {
    margin-bottom: 0.5rem;
}

.ql-editor li.ql-indent-1 {
    margin-left: 2rem;
}

.ql-editor li.ql-indent-2 {
    margin-left: 4rem;
}

.ql-editor li.ql-indent-3 {
    margin-left: 6rem;
}

.ql-editor a {
    color: #007bff;
    text-decoration: underline;
}

.ql-editor a:hover {
    color: #0056b3;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
}

.ql-editor .ql-code-block-container {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin: 10px 0;
}

.ql-editor .ql-code-block {
    font-family: monospace;
    white-space: pre-wrap;
    line-height: 1.5;
    display: block;
}

/* Quill 에디터 반응형 */
@media (max-width: 768px) {
    .ql-editor {
        font-size: 0.9rem;
    }
    
    .ql-editor ul,
    .ql-editor ol {
        padding-left: 1.5rem;
    }
    
    .ql-editor h2 {
        font-size: 1.4rem !important;
        margin-top: 1.5rem;
    }
    
    .ql-editor h3 {
        font-size: 1.1rem !important;
        margin-top: 1rem;
    }
}




