.posts.detail .write-btn-mo {
    display: none;
}

/* 게시글 리스트 */
.posts .title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.posts .title-box h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
}

.posts .title-box .rss {
    font-size: 10px;
    padding: 8px 5px;
    border: 1px solid var(--border-color);
    color: var(--solution-color);
    border-radius: 4px;
}

.posts .dropdown-box {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 32px;
}

.posts .dropdown-box .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
}

.posts .dropdown-box .title p {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.posts .dropdown-box .title p img {
    width: 24px;
    height: 24px;
    transform: scaleX(-1);
    margin-right: 8px;
    vertical-align: text-top;
}

.posts .dropdown-box .content {
    width: 100%;
    overflow: hidden;
    transition: all 0.4s ease-out;
    max-height: 0;
}

.posts .dropdown-box .content p {
    width: 100%;
    padding: 24px;
    background: var(--download-background);
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.5;
}

.posts .dropdown-box .dropdown.show ~ .content {
    max-height: 1000px;
}

.posts .dropdown-box .dropdown p + img {
    transition: all 0.2s ease-out;
}

.posts .dropdown-box .dropdown.show p + img {
    transform: rotate(-180deg);
}

.posts .detail-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.posts .detail-box .total-count {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.posts .detail-box .mobile-search-btn {
    display: none;
}

.posts .detail-box .search-form {
    max-width: 250px;
    margin: 0;
}

.posts .detail-box .search-form input{
    padding: 10px 40px;
    font-size: 14px;
}

.posts .detail-box .search-form button {
    width: 16px;
    height: 16px;
    padding: 0;
    top: 14px;
    left: 14px;
}

.posts .detail-box .search-form button img {
    width: 100%;
    height: 100%;
}

.posts .detail-box .search-form a.reset-button {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    padding: 0;
}

.posts .detail-box .search-form a.reset-button img {
    width: 100%;
    height: 100%;
}

.posts .category-box {
    margin-bottom: 20px;
}

.posts .category-box ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.posts .category-box li a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #999999;
    background-color: var(--light-background);
    padding: 8px 16px;
    border-radius: 10px;
}

.posts .category-box li a.active {
    background-color: var(--secondary-color);
    color: #ffffff;
}

/* 글작성 */
.posts.write label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 16px;
    margin-top: 32px;
}

.posts.write input {
    width: 100%;
    height: 48px;
    line-height: 48px;
    text-align: left;
    box-sizing: border-box;
    padding: 0 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease-out;
}

.posts.write input:focus {
    border-color: var(--primary-color);
}

.posts.write .option-box {
    display: flex;
    align-items: center;
    background-color: var(--download-background);
    border-radius: 10px;
    padding: 16px;
}

.posts.write .option-box span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-right: 48px;
}

.posts.write .option-box label {
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    cursor: pointer;
    padding: 0 8px;
    color: var(--post-category-color);
}

.posts.write .option-box label input {
    width: 16px;
    height: 16px;
    line-height: normal;
    text-align: left;
    box-sizing: border-box;
    padding: 0;
    outline: none;
    transition: none;
    margin-right: 8px;
}

.posts.write .category-select button {
    border: none;
    cursor: pointer;
    background-color: transparent;
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    color: var(--text-color);
    width: 100%;
    text-align: left;
}

.posts.write button img {
    vertical-align: middle;
    margin-right: 8px;
}

.posts.write .title-box {
    position: relative;
}

.posts.write .title-box .tempo-box .dropdown {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
}

.posts.write .title-box .tempo-box .dropdown span {
    color: var(--primary-color);
    font-weight: 500;
}

.posts.write .title-box .tempo-box .tempo-content {
    position: absolute;
    right: 0;
    top: 0;
    background-color: var(--background-color);
    z-index: 99;
    max-width: 400px;
    width: 100%;
    box-shadow: 0px 2px 10px 0px #99999940;
    border-radius: 10px;
    visibility: hidden;
}

.posts.write .title-box .tempo-box .dropdown.show ~ .tempo-content {
    visibility: visible;
    top: 56px;
    right: 0;
}

.posts.write .title-box .tempo-box .dropdown.show ~ .tempo-content::before {
    border-top: 11px solid transparent;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid #99999924;
    content: "";
    position: absolute;
    top: -22px;
    right: 60px;
}

.posts.write .title-box .tempo-box .dropdown.show ~ .tempo-content::after {
    border-top: 10px solid transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--background-color);
    content: "";
    position: absolute;
    top: -20px;
    right: 61px;
}

.posts.write .title-box .tempo-box .tempo-content p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
}

.posts.write .title-box .tempo-box .tempo-content p .close-preview {
    cursor: pointer;
    font-size: 24px;
}

.posts.write .title-box .tempo-box .tempo-content .tempo-list {
    max-height: 563px;
    overflow-y: auto;
}

.posts.write .title-box .tempo-box .tempo-content .tempo-list li a {
    cursor: pointer;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    font-size: 14px;
    font-weight: 400;
    color: var(--solution-color);
}

.posts.write .title-box .tempo-box .tempo-content .tempo-list li a:hover {
    background-color: var(--hover-background);
}

.posts.write .title-box .tempo-box .tempo-content .tempo-list li a span:first-child {
    width: calc(100% - 150px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--intro-color);
}

.posts.write .title-box .tempo-box .tempo-content .tempo-list li a button {
    outline: none;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--solution-color);
}

.close.autosave_close {
    cursor: pointer;
} 


.posts.write .category-select .dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.posts.write .category-select {
    position: relative;
    width: 100%;
}
  
.posts.write .dropdown-menu {
    position: absolute;
    z-index: 2;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: var(--background-color);
    border-radius: 10px;
    transition: border-color 200ms ease-in, padding 200ms ease-in, max-height 200ms ease-in;
    border: 1px solid transparent;
}

.posts.write .dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.posts.write .dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 16px;
}

.posts.write .dropdown-menu::-webkit-scrollbar-track {
    background: var(--download-background);
    border-radius: 16px;
}
  
.posts.write .dropdown.show ~ .dropdown-menu{
    max-height: 280px;
    border: 1px solid var(--border-color);
    overflow-y: auto;
}

.posts.write .dropdown .arrow-img {
    transition: transform 200ms ease-in;
}

.posts.write .dropdown.show .arrow-img {
    transform: rotate(-180deg);
}

.posts.write button.dropdown-option:hover {
    background-color: var(--feed-category-background);
}

.posts.write label[for="content"] {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.posts.write .preview-box .dropdown {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    padding: 8px 16px;
    cursor: pointer;
}

.posts.write label[for="content"] .preview-content {
    display: none;
}

.posts.write label[for="content"] .preview-content {
    display: none;
}

.posts.write label[for="content"] .dropdown.show ~ .preview-content {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    background-color: var(--background-color);
    z-index: 99;
    max-width: 700px;
    width: 100%;
    box-shadow: 0px 2px 10px 0px #99999940;
    border-radius: 10px;
}

.posts.write label[for="content"] .preview-content p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 500;
}

.posts.write label[for="content"] .preview-content p .close-preview {
    cursor: pointer;
    font-size: 24px;
}

.posts.write label[for="content"] .preview-content #preview {
    padding: 16px;
}

.posts.write .form-box .buttons {
    display: flex;
    justify-content: center;
    margin-top: 72px;
    gap: 8px;
}

.posts.write .form-box .buttons button {
    font-size: 18px;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-out;
}

.posts.write .form-box .buttons button.main-btn {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.posts.write .form-box .buttons button.secondary-btn {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    background-color: var(--background-color);
}

.posts.write .form-box .buttons button:hover {
    background-color: #630ABB;
}

.posts.write .form-box .buttons button.secondary-btn:hover {
    background-color: var(--hover-background);
}

.ck-editor__editable {
    min-height: 300px;
}

.cke_notifications_area {
    display: none !important;
}

/* 글 상세페이지 */
.posts.detail .title-box .category {
    font-size: 14px;
    font-weight: 500;
    color: var(--post-category-color);
    margin-bottom: 8px;
}

.posts.detail .title-box .category span {
    font-size: 20px;
    vertical-align: baseline;
    margin: 8px;
}

.posts.detail .title-box {
    margin-bottom: 16px;
}

.posts.detail .title-box h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.posts.detail .detail-box {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    margin-bottom: 24px;
}

.posts.detail .detail-box .profile {
    display: flex;
    align-items: center;
}

.posts.detail .detail-box .profile .profile-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
}

.posts.detail .detail-box .profile .profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.posts.detail .detail-box .profile .profile-txt p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
}

.posts.detail .detail-box .profile .profile-txt span {
   font-size: 12px;
   font-weight: 400;
   color: var(--post-category-color);
}

.posts.detail .detail-box .profile .profile-txt span:first-child {
    margin-right: 12px;
    letter-spacing: 0.5px;
}

.posts.detail .detail-box .profile .profile-txt span img {
    vertical-align: text-bottom;
    margin-right: 4px;
}

.posts.detail .detail-box .func {
    display: flex;
}

.posts.detail .detail-box .func .share-box,
.posts.detail .detail-box .func .menu-box {
    position: relative;
    cursor: pointer;
}

.posts.detail .detail-box .func .share-box .share-content,
.posts.detail .detail-box .func .menu-box .menu-content {
    content: 'URL이 복사되었습니다.'; 
    position: absolute; 
    top: 40px; 
    padding: 5px 10px; 
    background-color: var(--background-color); 
    border: 1px solid var(--border-color);
    color: var(--text-color); 
    border-radius: 5px; 
    font-size: 12px; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.4s ease, visibility 0.4s ease;
    white-space: nowrap;
    z-index: 999;
}

.posts.detail .detail-box .func .share-box .share-content::before {
    border-top: 11px solid transparent;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid var(--border-color);
    content: "";
    position: absolute;
    top: -22px;
    right: 30px;
}

.posts.detail .detail-box .func .menu-box .menu-content::before {
    border-top: 11px solid transparent;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid var(--border-color);
    content: "";
    position: absolute;
    top: -22px;
    right: 8px;
}

.posts.detail .detail-box .func .share-box .share-content::after {
    border-top: 10px solid transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--background-color);
    content: "";
    position: absolute;
    top: -20px;
    right: 31px;
}

.posts.detail .detail-box .func .menu-box .menu-content::after {
    border-top: 10px solid transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--background-color);
    content: "";
    position: absolute;
    top: -20px;
    right: 9px;
}

.posts.detail .detail-box .func .post-dropdown .img {
    display: block;
    padding: 4px 8px;
}

.posts.detail .detail-box .func .share-box .share-content {
    display: flex;
    align-items: center;
    gap: 12px;
    right: -24px; 
    padding: 12px;
}

.posts.detail .detail-box .func .menu-box .menu-content {
    padding: 0;
    right: 0;
    width: 100px;
}

.posts.detail .detail-box .func .menu-box .menu-content ul li a {
    display: block;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
}

.posts.detail .detail-box .func .menu-box .menu-content ul li a:hover {
    background-color: var(--hover-background);
}

.posts.detail .detail-box .func .share-box.show .share-content,
.posts.detail .detail-box .func .menu-box.show .menu-content {
    opacity: 1;
    visibility: visible;
}

.posts.detail .detail-box .func .share-box .share-content a {
    display: inline-block;
    width: 32px;
    height: 32px;
}

.posts.detail .detail-box .func .share-box .share-content #kakaotalk-sharing-btn img {
    width: 100%;
    height: 100%;
}

.posts.detail .content-box .content-area {
    width: auto;
    max-width: 100%;
    color: var(--main-post-text-color);
}

.posts.detail .content-box .content-area p {
    line-height: 1.6;
}

.posts.detail .content-box img {
    max-width: 100%;
    height: auto;
}

.posts.detail .count-box {
    display: flex;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-top: 60px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.posts.detail .count-box div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.posts.detail .count-box span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--post-category-color );
    font-size: 14px;
}

.posts.detail .count-box img {
    height: 100%;
}

.posts.detail .count-box button,
.posts.detail .count-box .comment-icon {
    width: 24px;
    height: 24px;
    padding: 0;
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.posts.detail .count-box .likes img {
    width: 19px;
    height: 18px;
}

.posts.detail .count-box .comment-count img {
    width: 19px;
    height: 17px;
}

.posts.detail .count-box .scraps img {
    width: 16px;
    height: 21px;
}

.posts.detail .fixed-count-box {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 18px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin: 0;
}

.posts.detail .count-box button.report-btn {
    width: 24px;
    height: 24px;
}

.posts.detail .count-box button.report-btn img {
    width: 18px;
    height: 19px;
}

.posts.detail .comment-box h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 24px;
}

.posts.detail .comment-box h3 span {
    color: var(--primary-color);
}

.posts.detail .comment-box .write-wrap {
    display: flex;
    gap: 16px;
}

.posts.detail .comment-box .write-wrap img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.posts.detail .comment-box .write-box {
    width: calc(100% - 46px);
    padding: 16px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.posts.detail .comment-box .write-box .comment-textarea.main {
    position: relative;
}

.posts.detail .comment-box .write-box .comment-textarea.main.empty:before {
    content: '글을 보고 어떤 생각이 드셨나요? 댓글을 자유롭게 남겨보세요!';
    color: #aaa;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* placeholder 텍스트 클릭이 불가능하게 */
  }

.posts.detail .comment-box .write-box .comment-textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    min-height: 64px;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--background-color);
}

.posts.detail .comment-box .write-box .comment-textarea.main.guest:before {
    content: '로그인 후에 댓글 쓰기가 가능합니다.';
    color: #aaa;
    position: absolute;
    top: 0;
    left: 0;

}

.posts.detail .comment-box .write-box .comment-textarea a {
    color: var(--secondary-color);
    font-weight: 600;
}

.posts.detail .comment-box .write-box .func {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.posts.detail .comment-box .write-box .func .emoticon-box {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    outline: none;
    margin-right: auto;
    cursor: pointer;
    color: var(--post-category-color);
}

.posts.detail .comment-box .write-box .func .emoticon-box img {
    width: 19px;
    height: 19px;
}

.posts.detail .comment-box .write-box .func .emoji-list {
    position: absolute;
    left: 0;
    top: 48px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: none;
    z-index: 99;
}

.posts.detail .comment-box .write-box .func .emoji-list.active {
    display: block;
}

.posts.detail .comment-box .write-box .func .emoji-list .tab-buttons {
    display: flex;
    max-width: 320px;
    width: 100%;
}

.posts.detail .comment-box .write-box .func .emoji-list .tab-button {
    flex: 1;
    padding: 12px;
    background: var(--download-background);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    text-align: center;
}

.posts.detail .comment-box .write-box .func .emoji-list .tab-button.active {
    background: var(--background-color);
    border-bottom: 2px solid #007bff;
}

.posts.detail .comment-box .write-box .func .emoji-list .tab-contents {
    max-width: 320px;
    width: 100%;
    padding: 10px;
    height: 320px;
    overflow-y: auto;
}

.posts.detail .comment-box .write-box .func .emoji-list .tab-content {
    display: none;
}

.posts.detail .comment-box .write-box .func .emoji-list .tab-content.active {
    display: block;
}

.posts.detail .comment-box .write-box .func .emoji-list .tab-content ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.posts.detail .comment-box .write-box .func .emoji-list .tab-content ul li {
    width: calc((100% / 3) - 8px);
    text-align: center;
}

.posts.detail .comment-box .write-box .func .emoji-list .tab-content .emoji {
    max-width: 50px;
    max-height: 50px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    cursor: pointer;
}

.posts.detail .comment-box .write-box .func .char-count {
    color: var(--solution-color);
    margin-right: 10px;
}

.posts.detail .comment-box .write-box .func .write-btn {
    border: none;
    background-color: var(--secondary-color);
    padding: 10px 24px 11px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.posts.detail .comment-box .write-box .func .close-btn {
    border: none;
    background-color: var(--light-background);
    padding: 10px 16px 11px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-right: 8px;
}
 
.posts.detail .comment-box .write-box .func .write-btn:hover {
    background-color: #630ABB;
}

.posts.detail .comment-box .top.comment-top,
.posts.detail .comment-box .reply-form {
    margin-top: 24px;
}

.posts.detail .comment-box .comment-username,
.posts.detail .comment-box .reply-username {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.posts.detail .comment-box .comment-username img,
.posts.detail .comment-box .reply-username img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.posts.detail .comment-box .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.posts.detail .comment-box .top .edit {
    position: relative;
    cursor: pointer;
}

.posts.detail .comment-box .top .edit ul {
    width: 100px;
    position: absolute;
    top: 34px;
    right: 0;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
}

.posts.detail .comment-box .top .edit ul::before {
    border-top: 11px solid transparent;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid var(--border-color);
    content: "";
    position: absolute;
    top: -22px;
    right: 2px;
}

.posts.detail .comment-box .top .edit ul::after {
    border-top: 10px solid transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--background-color);
    content: "";
    position: absolute;
    top: -20px;
    right: 3px;
}

.posts.detail .comment-box .top .edit ul li {
    padding: 5px 10px;
    color: var(--text-color);
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
}

.posts.detail .comment-box .top .edit ul li:hover {
    background: var(--hover-background);
}

.posts.detail .comment-box .top .edit.show ul {
    opacity: 1;
    visibility: visible;
}

.posts.detail .comment-box .comment-text,
.posts.detail .comment-box .reply-text {
    margin-top: 4px;
    padding-left: 40px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
}

.posts.detail .comment-box .comment-text img,
.posts.detail .comment-box .reply-text img {
    width: 150px;
    height: 150px;
}

.posts.detail .comment-box .comment-username span.writer, 
.posts.detail .comment-box .reply-username span.writer {
    font-size: 10px;
    font-weight: 400;
    padding: 2px 6px;
    color: #333333;
    background-color: #E3C6FF;
    border-radius: 6px;
    margin-left: -4px;
}

.posts.detail .comment-box .details {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 40px;
    font-size: 12px;
    font-weight: 400;
    color: var(--post-category-color);
    margin-top: 8px;
}

.posts.detail .comment-box .details .counts {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.posts.detail .comment-box .details .count-btn {
    outline: none;
    padding: 0;
}

.posts.detail .count-btn .stroke {
    display: block;
}

.posts.detail .count-btn .fill {
    display: none;
}

.posts.detail .count-btn.clicked .fill {
    display: block;
}

.posts.detail .count-btn.clicked .stroke {
    display: none;
}

.posts.detail .comment-box .details button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--post-category-color);
}

.posts.detail .comment-box .reply-box {
    padding-left: 40px;
}

.posts.detail .comment-box .reply-box .reply-item {
    background-color: var(--download-background);
    padding: 20px;
    margin-top: 12px;
    border-radius: 10px;
}

.posts.detail .comment-box .reply-form {
    display: none;
    padding-left: 40px;
}

.posts.detail .comment-box .reply-form .write-wrap {
    background-color: var(--download-background);
    padding: 20px;
    border-radius: 10px;
}

.posts.detail .comment-box .reply-form.active {
    display: block;
}

.posts.detail #url-copy-btn {
    position: relative;
}

.posts.detail #url-copy-btn::before {
    content: 'URL이 복사되었습니다.'; 
    position: absolute; 
    top: 32px; 
    right: -10px; 
    padding: 5px 10px; 
    background-color: #333; 
    color: #fff; 
    border-radius: 5px; 
    font-size: 14px; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.5s ease, visibility 0.5s ease;
    white-space: nowrap;
    z-index: 999;
}

.posts.detail #url-copy-btn.show-alert::before {
    opacity: 1;
    visibility: visible;
}

.posts.detail .to-list {
    text-align: right;
    margin: 32px 0;
}

.posts.detail .to-list a {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #888888;
    color: #666666;
    border-radius: 8px;
}

.posts.detail .banner-ad-middle {
    position: relative;
    width: 100%;
}

.posts.detail .banner-ad-middle a {
    display: block;
    width: 100%;
    height: auto;
}

.posts.detail .banner-ad-middle a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.posts.detail .banner-ad-middle a.mo {
    display: none;
}

.posts.detail .category-recommend {
    color: var(--text-color);
    margin: 40px 0 24px;
    font-size: 24px;
    font-weight: 600;
}

.posts.detail .comment-box .comments-list .comment-item.hidden,
.posts.detail .comment-box .reply-box .reply-item.hidden {
    display: none;
}

.posts.detail .comment-box .comments-list .show-more-comments-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    width: 100%;
    margin-top: 32px;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.posts.detail .comment-box .reply-box .show-more-replies-btn {
    background-color: transparent;
    border: none;
    margin-top: 16px;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.posts.detail .comment-box .comments-list .show-more-comments-btn:hover,
.posts.detail .comment-box .reply-box .show-more-replies-btn:hover {
    background-color: var(--hover-background);
}

@media (max-width: 1440px) {
    .posts .dropdown-box .title {
        padding: 12px 20px;
    }
    .posts .dropdown-box .title p {
        font-size: 16px;
    }
    .posts .post-box {
        padding: 16px 20px;
    } 
    .posts.write .form-box .buttons button {
        font-size: 16px;
    }
    .posts.detail .category-recommend {
        font-size: 24px;
    }
}

@media (max-width: 800px) {
    .main-page, .posts {
        padding: 32px 16px 200px;
    }
    .posts .title-box h1 {
        font-size: 20px;
    }
    .posts .title-box {
        margin-bottom: 24px;
    }
    .posts .dropdown-box .title p {
        font-size: 14px;
    }
    .posts .detail-box .total-count {
        font-size: 16px;
    }
    .posts .category-box li a {
        font-size: 12px;
    }
    .posts .post-box {
        padding: 0;
    }
    .posts.write .form-box .buttons button {
        font-size: 16px;
        padding: 10px 24px;
    }
    .posts.detail .comment-box .write-box {
        width: 100%;
    }
    .posts.detail .comment-box .write-wrap .user-icon {
        display: none;
    }
    .posts.detail .comment-box .write-box .func .write-btn,
    .posts.detail .comment-box .write-box .func .close-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    .posts.detail .category-recommend {
        font-size: 16px;
    }

    .posts .category-box ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }

    .posts .mobile-layout {
        display: flex;
        flex-direction: column-reverse;    
    }
    
    .posts.list .detail-box {
        flex-wrap: wrap;
    }

    .posts .detail-box .search-form {
        display: none;
        max-width: 100%;
        margin-top: 12px;
    }

    .posts .detail-box .search-form.active {
        display: block;
    }

    .posts .detail-box .mobile-search-btn {
        display: block;
        width: 74px;
        height: 32px;
        line-height: 32px;
        background: var(--secondary-color);
        border-radius: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .posts .detail-box .mobile-search-btn span {
        color: #ffffff;
        font-size: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        cursor: pointer;
    }

    .posts .detail-box .mobile-search-btn span img {
        width: 13px;
        height: 13px;
    }

    .posts .detail-box .mobile-dropdown-layout {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .posts .detail-box .mobile-dropdown-layout .mobile-search-btn span.mobile-search-close {
        display: none;
    }

    .posts .detail-box .mobile-dropdown-layout .mobile-search-btn.open span.mobile-search-on  {
        display: none;
    }

    .posts .detail-box .mobile-dropdown-layout .mobile-search-btn.open span.mobile-search-close {
        display: flex;
    }

    .posts.write .title-box .tempo-box .tempo-content {
        position: fixed;
        bottom: 0;
        right: 0;
        top: auto;
        max-width: 100%;
        max-height: 0;
        transition: all 0.2s ease-out;
        z-index: 9999;
        border-radius: 10px 10px 0 0;
        overflow: hidden;
    }
    .posts.write .title-box .tempo-box .dropdown.show ~ .tempo-content {
        max-height: 100vh;
        top: auto;
    }
    
    .posts.write .title-box .tempo-box .tempo-mobile-black {
        visibility: hidden;
        opacity: 0;
        z-index: 9998;
        position: fixed;
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
        background-color: #00000040;
        transition: all 0.2s ease-out;
    }
    .posts.write .title-box .tempo-box .dropdown.show ~ .tempo-mobile-black {
        visibility: visible;
        opacity: 1;
    }

    .posts.write label[for="content"] .dropdown.show ~ .preview-content {
        max-width: 100%;
        height: 100%;
        position: fixed;
        z-index: 9999;
        border-radius: 0;
    }
    .posts.write label[for="content"] .preview-content #preview {
        height: calc(100% - 55px) !important;
    }
    .posts.write .title-box .tempo-box .dropdown.show ~ .tempo-content::before,
    .posts.write .title-box .tempo-box .dropdown.show ~ .tempo-content::after {
        display: none;
    }
    .posts.detail .comment-box .reply-box,
    .posts.detail .comment-box .reply-form {
        padding-left: 0;
    }

    .posts.detail .fixed-count-box {
        display: flex;
    }
    .posts.detail .fixed-count-box.show {
        opacity: 1;
        visibility: visible;
        display: flex;
        transform: translateY(0);
    }
    
    .posts.detail .fixed-count-box.hide {
        transform: translateY(100%);
    }
    
    .posts.detail .count-box.fixed-count-box.intersect {
        display: none;
    }

    .posts.detail .mo-remove {
        display: none;
    }
    .posts .title-box .rss {
        display: none;
    }
    .posts.detail .banner-ad-middle a.pc {
        display: none;
    }

    .posts.detail .banner-ad-middle a.mo {
        display: block;
    }
    .posts.detail .comment-box .details {
        gap: 4px;
    }
    .posts.detail .comment-box .write-box .func .emoticon-box {
        padding: 2px;
    }
}
