﻿@charset "utf-8";

/* ============================================================
   /css/content.css
   STEP26 - 공지 / FAQ / 약관 / 정책
   ============================================================ */

.content-page {
    padding-top: 8px;
    padding-bottom: 20px;
}

.container.content-page {
    padding-right: 16px;
    padding-left: 16px;
}

.content-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #2f64d6;
}

.content-page-head h1 {
    margin: 0;
    color: #222a35;
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -0.6px;
}

.content-page-head p {
    margin: 6px 0 0;
    color: #7b8490;
    font-size: 13px;
}

.content-search {
    display: flex;
    gap: 7px;
    width: min(100%, 440px);
}

.content-search .form-control {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
}

.content-search .btn {
    flex: 0 0 auto;
    min-width: 64px;
    white-space: nowrap;
}

.content-list {
    border-top: 1px solid #cfd5df;
}

.content-list-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 90px 88px;
    align-items: center;
    min-height: 58px;
    border-bottom: 1px solid #e8ebf0;
    background: #fff;
}

.content-list-item:hover {
    background: #fafbfc;
}

.content-list-number,
.content-list-date,
.content-list-view {
    padding: 10px 12px;
    color: #7b8490;
    font-size: 12px;
    text-align: center;
}

.content-list-title {
    min-width: 0;
    padding: 10px 12px;
}

.content-list-title a {
    display: block;
    overflow: hidden;
    color: #303a46;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-list-title a:hover {
    color: #2f64d6;
    text-decoration: none;
}

.content-list-title .notice-pin {
    display: inline-flex;
    min-height: 21px;
    align-items: center;
    margin-right: 7px;
    padding: 0 7px;
    border-radius: 10px;
    background: #eef4ff;
    color: #2d61bd;
    font-size: 10px;
    font-weight: 700;
    vertical-align: 1px;
}

.content-empty {
    padding: 70px 20px;
    border: 1px solid #e5e8ed;
    background: #fafbfc;
    color: #838b95;
    text-align: center;
}

.content-detail {
    border-top: 2px solid #2f64d6;
    border-bottom: 1px solid #dfe4ea;
    background: #fff;
}

.content-detail-head {
    padding: 22px 22px 18px;
    border-bottom: 1px solid #e6e9ee;
}

.content-detail-head h1 {
    margin: 0;
    color: #27313c;
    font-size: 22px;
    line-height: 1.45;
    letter-spacing: -0.5px;
}

.content-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
    color: #858e99;
    font-size: 12px;
}

.content-detail-body,
.static-content-body,
.faq-answer {
    color: #424d59;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.content-detail-body {
    min-height: 240px;
    padding: 28px 24px 36px;
}

.content-detail-body img,
.static-content-body img,
.faq-answer img {
    max-width: 100%;
    height: auto !important;
}

.content-detail-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.faq-list {
    display: grid;
    border-top: 1px solid #d6dbe3;
}

.faq-item {
    border-bottom: 1px solid #e5e8ed;
    background: #fff;
}

.faq-item summary {
    position: relative;
    padding: 17px 48px 17px 50px;
    color: #303b47;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    position: absolute;
    top: 15px;
    left: 18px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf3ff;
    color: #2f64d6;
    font-size: 11px;
    font-weight: 800;
    content: "Q";
}

.faq-item summary::after {
    position: absolute;
    top: 17px;
    right: 19px;
    color: #8c95a0;
    font-size: 18px;
    content: "+";
}

.faq-item[open] summary {
    background: #fafbfc;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    position: relative;
    padding: 20px 22px 24px 50px;
    border-top: 1px solid #edf0f3;
    background: #fcfcfd;
}

.faq-answer::before {
    position: absolute;
    top: 19px;
    left: 18px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f3f5;
    color: #68727e;
    font-size: 11px;
    font-weight: 800;
    content: "A";
}

.static-content-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.static-content-tabs a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #dce1e8;
    border-radius: 4px;
    background: #fff;
    color: #5a6571;
    font-size: 12px;
}

.static-content-tabs a:hover,
.static-content-tabs a.is-active {
    border-color: #2f64d6;
    background: #f6f9ff;
    color: #2f64d6;
    text-decoration: none;
}

.static-content-card {
    border: 1px solid #e0e4ea;
    border-radius: 6px;
    background: #fff;
}

.static-content-head {
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e7eaee;
}

.static-content-head h1 {
    margin: 0;
    color: #27313d;
    font-size: 22px;
    line-height: 1.4;
}

.static-content-head p {
    margin: 8px 0 0;
    color: #8a929c;
    font-size: 12px;
}

.static-content-body {
    min-height: 280px;
    padding: 28px 24px 38px;
}

.static-content-empty {
    padding: 70px 20px;
    color: #8a929c;
    text-align: center;
}

@media (max-width: 760px) {

    .container.content-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .content-page-head {
        gap: 14px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .content-page-head h1 {
        font-size: 22px;
    }

    .content-page-head p {
        font-size: 12px;
    }

    .content-search {
        gap: 6px;
    }

    .content-search .btn {
        min-width: 60px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .content-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .content-search {
        width: 100%;
    }

    .content-list-item {
        grid-template-columns: 54px minmax(0, 1fr) 76px;
    }

    .content-list-view {
        display: none;
    }

    .content-list-number,
    .content-list-date {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 11px;
    }

    .content-list-title {
        padding-right: 7px;
        padding-left: 7px;
    }

    .content-detail-head {
        padding: 18px 16px 15px;
    }

    .content-detail-head h1 {
        font-size: 19px;
    }

    .content-detail-body,
    .static-content-body {
        padding: 22px 16px 30px;
    }

    .faq-item summary {
        padding-right: 42px;
        padding-left: 46px;
    }

    .faq-item summary::before,
    .faq-answer::before {
        left: 13px;
    }

    .faq-answer {
        padding-right: 15px;
        padding-left: 46px;
    }
}
