* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Banner */
.page-banner {
    background-image: url('/image/category_banner.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    width: 100%;
    aspect-ratio: 4.13 / 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px 40px;
    min-height: 300px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

/* Detail Section */
.detail-section {
    padding: 60px 0 80px;
    background-color: #fff;
}

/* Policy Header */
.policy-header {
    border-bottom: 2px solid #333;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.policy-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
}

.policy-meta {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Policy Info */
.policy-info {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-label {
    width: 120px;
    flex-shrink: 0;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.info-content {
    flex: 1;
    font-size: 15px;
    color: #666;
}

/* Hashtags */
.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag {
    display: inline-block;
    padding: 6px 14px;
    background-color: #e8f4fd;
    color: #1064D9;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Attachments */
.attachments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-item {
    display: flex;
    align-items: center;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.attachment-link:hover {
    background-color: #e8f4fd;
    color: #1064D9;
}

.attachment-link svg {
    flex-shrink: 0;
}

.file-size {
    font-size: 13px;
    color: #999;
}

/* External Link */
.external-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1064D9;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.external-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Policy Content */
.policy-content {
    margin-bottom: 40px;
}

.content-body {
    padding: 30px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    line-height: 1.8;
    font-size: 16px;
    color: #444;
    min-height: 200px;
}

.content-body img {
    max-width: 100%;
    height: auto;
}

/* Policy Actions */
.policy-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-list {
    display: inline-block;
    padding: 14px 40px;
    background-color: #fff;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-list:hover {
    border-color: #1064D9;
    color: #1064D9;
}

.admin-btns {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-delete {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-edit {
    background-color: #1064D9;
    color: white;
    border: none;
}

.btn-edit:hover {
    background-color: #0d53b3;
}

.btn-delete {
    background-color: #fff;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-delete:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
    .page-title {
        font-size: 40px;
    }

    .page-banner {
        padding: 30px 20px 40px;
    }
}

@media (max-width: 900px) {
    .page-title {
        font-size: 38px;
    }

    .page-banner {
        padding: 25px 20px 40px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        background-image: url('/image/m_category_banner.png');
        aspect-ratio: 4.13 / 1;
        min-height: 200px;
        padding: 30px 15px 30px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .detail-section {
        padding: 40px 0 60px;
    }

    .policy-title {
        font-size: 22px;
    }

    .policy-meta {
        flex-wrap: wrap;
        gap: 15px;
    }

    .policy-info {
        padding: 20px;
    }

    .info-row {
        flex-direction: column;
        gap: 8px;
    }

    .info-label {
        width: auto;
    }

    .content-body {
        padding: 20px;
        font-size: 15px;
    }

    .policy-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-list {
        width: 100%;
        text-align: center;
    }

    .admin-btns {
        width: 100%;
    }

    .btn-edit,
    .btn-delete {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 350px) {
    .container {
        padding: 0 15px;
    }

    .page-banner {
        min-height: 150px;
        padding: 25px 10px 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .policy-title {
        font-size: 20px;
    }

    .policy-info {
        padding: 15px;
    }

    .hashtag {
        padding: 5px 10px;
        font-size: 13px;
    }

    .content-body {
        padding: 15px;
        font-size: 14px;
    }

    .btn-list,
    .btn-edit,
    .btn-delete {
        padding: 12px 20px;
        font-size: 14px;
    }
}
