@charset "utf-8";

/* 실무 가이드 스킨 기본 스타일 */
a {text-decoration: none; color: #1a3a6d;}
.text-center {text-align: center;}

.guide-view {
    padding: 60px 0 !important;
    background: #fff;
}

/* 카테고리 스타일 */
.guide-filter {
    padding: 40px 0;
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 12px 24px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #2a5298;
    color: #fff;
    border-color: #2a5298;
    box-shadow: 0 4px 8px rgba(42,82,152,0.2);
}

/* 가이드 카드 스타일 */
.guide-grid {
    padding: 60px 0;
}

.guides-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.guide-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-content {
    padding: 0 30px 30px;
}

.guide-icon {
    width: 60px;
    height: 60px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px;
}

.guide-icon i {
    font-size: 24px;
    color: #2a5298;
}

.category-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f4ff;
    color: #2a5298;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.guide-content h3 {
    font-size: 1.4rem;
    color: #1a3a6d;
    margin-bottom: 15px;
}

.guide-content h3 a {
    color: #1a3a6d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-content h3 a:hover {
    color: #2a5298;
}

.description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.guide-list li {
    padding: 8px 0;
    color: #444;
    position: relative;
    padding-left: 20px;
}

.guide-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2a5298;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.update-date {
    color: #888;
    font-size: 0.9rem;
}

.view-guide {
    color: #2a5298;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-guide i {
    transition: transform 0.3s ease;
}

.view-guide:hover i {
    transform: translateX(5px);
}

.guide-more {
    text-align: center;
    margin-top: 40px;
}

.more-button {
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #2a5298;
    border-radius: 30px;
    color: #2a5298;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.more-button:hover {
    background: #2a5298;
    color: #fff;
}

.popular-guides {
    background: #f8f9fa;
    padding: 80px 0;
}

.popular-guides h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a3a6d;
    margin-bottom: 40px;
}

.popular-list {
    max-width: 800px;
    margin: 0 auto;
}

.popular-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.popular-item:hover {
    transform: translateX(10px);
}

.rank {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #2a5298;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
}

.title {
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.popular-item i {
    margin-left: 10px;
    color: #2a5298;
    transition: transform 0.3s ease;
}

.popular-item:hover i {
    transform: translateX(5px);
}

/* 페이지 타이틀 스타일 */
.page-title {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    color: #fff;
    text-align: center;
    position: relative;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26,58,109,0.8), rgba(42,82,152,0.8));
}

.page-title .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-title p {
    font-size: 1.4rem;
    opacity: 0.9;
}

.mobile-page-title {
    position: relative;
    height: 200px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-title-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/thema/tax/assets/img/top/sub3-1-1.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.7);
}

.mobile-title-content {
    position: relative;
    z-index: 1;
}

.mobile-page-title h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.mobile-title-desc {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 가이드 상세보기 스타일 */
.guide-view {
    padding: 60px 0;
}

.guide-view .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px;
}

.post-header {
    border-bottom: 1px solid #f0f4ff;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.post-title {
    font-size: 2.2rem;
    color: #1a3a6d;
    margin: 15px 0 25px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f4ff;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.author-position {
    color: #717171;
    font-size: 0.9rem;
}

.post-info {
    display: flex;
    gap: 15px;
    color: #717171;
}

.post-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.post-info i {
    color: #2a5298;
}

.post-content {
    line-height: 1.8;
    color: #333;
}

.content-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
}

.content-body {
    margin-bottom: 40px;
}

.content-body h3 {
    color: #1a3a6d;
    font-size: 1.5rem;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f4ff;
}

.content-body h4 {
    color: #2a5298;
    font-size: 1.3rem;
    margin: 25px 0 15px;
}

.content-body p {
    margin-bottom: 20px;
}

.content-body ul,
.content-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-body li {
    margin-bottom: 10px;
}

.highlight-box {
    background: #f0f4ff;
    border-left: 4px solid #2a5298;
    padding: 25px;
    border-radius: 5px;
    margin: 30px 0;
}

.highlight-box h4 {
    color: #1a3a6d;
    margin-top: 0;
}

.highlight-box ul {
    padding-left: 20px;
}

.highlight-box li {
    color: #333;
    margin-bottom: 10px;
    position: relative;
}

.highlight-box li::before {
    content: '✓';
    color: #2a5298;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 40px;
}

.tag {
    padding: 6px 12px;
    background: #f0f4ff;
    color: #2a5298;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    text-decoration: none;
}

.tag:hover {
    background: #e0e8ff;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 40px;
    border-top: 1px solid #f0f4ff;
    border-bottom: 1px solid #f0f4ff;
    padding: 20px 0;
}

.prev-post,
.next-post {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 45%;
    text-decoration: none;
    color: #495057;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.prev-post:hover,
.next-post:hover {
    background: #f8f9fa;
}

.nav-content {
    display: flex;
    flex-direction: column;
}

.nav-content .label {
    font-size: 0.8rem;
    color: #868e96;
    margin-bottom: 5px;
}

.nav-content .title {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.post-buttons {
    text-align: center;
    margin-top: 40px;
}

.list-button {
    padding: 12px 30px;
    background: #2a5298;
    color: #fff;
    border-radius: 30px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.list-button:hover {
    background: #1a3a6d;
    transform: translateY(-2px);
}

/* 미디어 쿼리 */
@media (max-width: 768px) {
    .page-title {
        padding: 80px 0;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .page-title p {
        font-size: 1rem;
    }

    .guide-view {
        padding: 40px 0;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .prev-post,
    .next-post {
        max-width: 100%;
    }

    .prev-post {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.5rem;
    }

    .author-info {
        width: 100%;
    }

    .post-info {
        width: 100%;
        flex-wrap: wrap;
    }

    .content-summary {
        padding: 15px;
        font-size: 1rem;
    }

    .content-body h3 {
        font-size: 1.3rem;
    }

    .content-body h4 {
        font-size: 1.1rem;
    }

    .guide-view .container {
        padding: 20px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .guides-wrapper {
        grid-template-columns: 1fr;
    }

    .guide-more {
        margin-top: 30px;
    }

    .more-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .popular-guides h2 {
        font-size: 1.5rem;
    }

    .rank {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .title {
        font-size: 1rem;
    }
}

/* 필터링 옵션 스타일 */
.filter-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.category-filter {
    flex-grow: 1;
}

.sort-options {
    flex-shrink: 0;
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #495057;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23495057' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 8px;
    padding-right: 35px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sort-select:focus {
    border-color: #2a5298;
    outline: none;
}

@media (max-width: 768px) {
  .filter-options {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-options {
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }
}

/* 글쓰기 폼 스타일 */
.write-form {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.write-section-title {
    color: #1a3a6d;
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f4ff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required-mark {
    color: #e74c3c;
    margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s ease;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42,82,152,0.1);
    outline: none;
}

.form-help {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.form-file {
    width: 100%;
    padding: 10px 0;
}

.existing-file {
    margin-top: 10px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.file-name {
    flex-grow: 1;
    font-size: 0.9rem;
    color: #495057;
}

.write-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.cancel-button {
    padding: 12px 30px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background: #e9ecef;
}

.submit-button {
    padding: 12px 40px;
    background: #2a5298;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #1a3a6d;
    transform: translateY(-2px);
}

/* 에디터 스타일 개선 */
#wr_content {
    min-height: 300px;
    margin-bottom: 20px;
}

.smarteditor2 {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
