@import url("../components/board.css");
@import url("../components/pagination.css");

/* ==== Content01 ==== */
.cont1 .faq-list {
    border-top: 2px solid var(--color-black);
    border-bottom: 2px solid var(--color-black);
}

.faq-list details {
    border-bottom: 1px solid #E3E3E3;
}

.faq-list summary {
    padding: 23px 40px;
    display: flex;
    align-items: center;
    background: white;
    cursor: pointer;
}

.faq-list summary .q-label {
    margin-right: 20px;
    color: #666;
    font-size: var(--font-xl);
}

.faq-list summary .question-text {
    flex: 1;
    font-size: var(--font-lg);
}

.faq-list details[open] summary {
    background: #F5F9FF;
    border-bottom: 1px solid #0464FF;
}

.faq-list details[open] summary .q-label {
    color: rgba(0, 77, 206, 0.8);
    font-weight: 500;
}

.faq-list details[open] summary .question-text {
    color: #08429F;
    font-weight: 600;
}

.faq-list summary i {
    margin-left: 20px;
    color: #777;
    transition: transform 0.3s;
}

.faq-list details[open] summary i {
    transform: rotate(180deg);
    color: #08429F;
}

.faq-list .answer {
    padding: 30px 40px 40px;
    background: #F9F9F9;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px solid #D0D0D0;
}

.faq-list .a-label {
    color: #004ECE;
    font-size: var(--font-xl);
    font-weight: 800;
}

.faq-list .answer p {
    font-size: var(--font-lg);
    line-height: 1.6;
}

.faq-contact {
    margin-top: 40px;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #D0D0D0;
    border-radius: 10px;
}

.faq-contact .contact-message {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

.faq-contact .contact-message img {
    width: 50px;
    height: 50px;
}

.faq-contact .contact-message p {
    font-size: var(--font-lg);
    font-weight: 500;
}

@media (max-width:1280px) {
    .faq-list summary {
        padding: 26px 32px;
    }

    .faq-list summary .q-label,
    .faq-list summary .question-text {
        font-size: var(--font-lg);
    }

    .faq-list .answer {
        padding: 32px 32px 64px;
        gap: 16px;
    }

    .faq-list .a-label {
        font-size: var(--font-lg);
    }

    .faq-list .answer p {
        font-size: var(--font-lg);
    }

    .faq-contact {
        padding: 24px 32px;
    }

    .faq-contact .contact-message p {
        font-size: var(--font-base);
    }

    .faq-contact .contact-message img {
        width: 46px;
        height: 46px;
    }
}

@media (max-width:1024px) {
    .faq-list summary {
        padding: 22px 24px;
        gap: 12px;
    }

    .faq-list summary i {
        margin-left: 12px;
        font-size: 14px;
    }

    .faq-list .answer {
        padding: 28px 24px 48px;
    }

    .faq-contact {
        padding: 22px 24px;
        gap: 16px;
    }

    .faq-contact .contact-message {
        gap: 20px;
    }

    .faq-contact .contact-message p {
        line-height: 1.6;
    }
}

@media (max-width:768px) {

    .faq-list summary {
        padding: 18px 18px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        row-gap: 8px;
    }

    .faq-list summary .q-label {
        margin-right: 12px;
        font-size: var(--font-base);
    }

    .faq-list summary .question-text {
        font-size: var(--font-base);
        line-height: 1.5;
    }

    .faq-list summary i {
        font-size: 13px;
    }

    .faq-list .answer {
        padding: 20px 18px 32px;
        gap: 12px;
    }

    .faq-list .a-label {
        font-size: var(--font-base);
    }

    .faq-list .answer p {
        font-size: var(--font-base);
        line-height: 1.7;
    }

    .faq-contact {
        margin-top: 24px;
        padding: 18px;
        gap: 14px;
    }

    .faq-contact .contact-message {
        gap: 12px;
    }

    .faq-contact .contact-message img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width:480px) {

    .faq-list summary {
        padding: 14px;
        grid-template-columns: 1rem 1fr auto;
        row-gap: 10px;
    }

    .faq-list summary .q-label {
        margin-right: 8px;
        font-weight: 600;
    }

    .faq-list summary i {
        transform-origin: 50% 50%;
    }

    .faq-list .answer {
        padding: 16px;
        gap: 10px;
    }

    .faq-list .a-label {
        line-height: 1;
        margin-top: 4px;
    }

    .faq-contact {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        border-radius: 8px;
    }

    .faq-contact .contact-message img {
        width: 36px;
        height: 36px;
    }

    .cont1 .btn-type04 {
        width: 100%;
        justify-content: space-between;
        padding: 7px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-list summary i {
        transition: none;
    }
}

/* ==== Content02 ==== */
.board {
    border-top: 1px solid #414141;
}

.board tbody tr:last-child,
.board .board-row:last-child {
    border-bottom: 1px solid #414141;
}

.board-head {
    padding: 15px 20px;
}

.board-row {
    padding: 20px 20px;
}

.board-head .board-cell {
    font-size: var(--font-base);
}

.board-row .col-1 {
    color: #004ECE;
    font-size: var(--font-base);
}

.board-row .col-2 {
    font-size: var(--font-lg);
}

.board-row .col-3,
.board-row .col-4 {
    font-size: var(--font-base);
}

.cont2 .btn-wrapper {
    text-align: right;
    margin-top: 20px;
}

@media (max-width:768px) {

    .board tbody tr:last-child,
    .board .board-row:last-child {
        border-bottom: 1px solid #D0D0D0;
    }

    .cont2 .board {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 2fr));
        gap: 12px;
        border-top: 0;
        border-bottom: 0;
    }

    .cont2 .board-head {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .cont2 .board-row {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "no title author"
            "no date  author";
        align-items: start;
        padding: 16px 14px;
        gap: 4px 10px;
        border: 1px solid #D0D0D0;
        border-radius: 10px;
        background: #fff;
    }

    .cont2 .board .board-cell {
        width: auto !important;
    }

    .cont2 .board-row .col-2 {
        padding: 0;
    }

    .cont2 .board-row .col-1 {
        grid-area: no;
    }

    .cont2 .board-row .col-2 {
        grid-area: title;
    }

    .cont2 .board-row .col-3 {
        grid-area: date;
    }

    .cont2 .board-row .col-4 {
        grid-area: author;
        justify-self: end;
        align-self: end;
        white-space: nowrap;
    }

    .cont2 .board-row .col-1 {
        margin-top: 5px;
        font-size: var(--font-sm);
        color: #2563eb;
        background: #ECF3FF;
        border: 1px solid #D8E6FF;
        padding: 3px 6px;
        border-radius: 999px;
        line-height: 1;
    }

    .cont2 .board-row .col-2 {
        font-size: var(--font-lg);
        font-weight: 700;
        line-height: 1.5;
        color: #111;
    }

    .cont2 .board-row .col-2 a {
        text-align: left;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
        text-decoration: none;
    }

    .cont2 .board-row .col-3 {
        padding: 3px 0;
        font-size: var(--font-sm);
        color: #707070;
        text-align: left;
    }

    .cont2 .board-row .col-4 {
        font-size: 11px;
        padding: 3px 6px;
        color: #0046B8;
        background: #F5F9FF;
        border: 1px solid #E3EDFF;
        border-radius: 999px;
        line-height: 1;
    }

    .board-row .col-4::after,
    .board-row .col-4::before {
        display: none;
    }
}

@media (max-width:480px) {
    .cont2 .board {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cont2 .board-row {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "no title author"
            "no date  author";
        padding: 14px 12px;
        gap: 4px 8px;
    }

    .cont2 .board-row .col-2 {
        font-size: var(--font-base);
    }

    .cont2 .board-row .col-4 {
        padding: 3px 6px;
    }
}

/* ==== Password Modal ==== */
#modal-post-password .modal-dialog {
    max-width: 460px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
    padding-top: 26px;
}

#modal-post-password .modal-close {
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
}

#modal-post-password .modal-close .icon-x {
    width: 18px;
    height: 18px;
}

#modal-post-password .receipt-head {
    padding: 32px 40px 24px;
    align-items: center;
    gap: 16px;
    text-align: center;
    border-bottom: 1px solid #E5EBF5;
}

.password-modal-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ECF2FF;
    color: #0046B8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
}

#modal-post-password .title {
    font-size: clamp(24px, 5vw, 30px);
    border-bottom: 0;
    padding: 0;
    margin-top: 6px;
}

#modal-post-password .sub {
    color: #4B5563;
    font-size: clamp(14px, 3.5vw, 16px);
    margin: 12px auto 0;
    line-height: 1.5;
}

#modal-post-password .sub {
    color: #4B5563;
    font-size: var(--font-base);
    margin-top: 8px;
}

#modal-post-password .receipt-panel {
    border-top: none;
    padding: 28px 40px 36px;
}

#modal-post-password .password-form .input {
    height: 54px;
    border-color: #CBD5F5;
    border-radius: 12px;
}

.password-hint {
    margin: 12px 0 4px;
    font-size: clamp(13px, 3.3vw, 14px);
    color: #64748B;
    text-align: left;
}

.password-error {
    min-height: 20px;
    font-size: clamp(13px, 3.3vw, 14px);
    font-weight: 500;
    color: #0046B8;
}

#modal-post-password .actions {
    margin-top: 32px;
}

#modal-post-password .actions .password-submit {
    min-width: 170px;
}

@media (max-width: 768px) {
    #modal-post-password .modal-dialog {
        max-width: 92vw;
        border-radius: 14px;
        padding-top: 20px;
    }

    #modal-post-password .modal-close {
        top: 16px;
        right: 16px;
        width: 28px;
        height: 28px;
    }

    #modal-post-password .receipt-head {
        padding: 28px 28px 20px;
        gap: 12px;
    }

    #modal-post-password .receipt-panel {
        padding: 24px 28px 30px;
    }

    .password-modal-icon {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }

    #modal-post-password .title {
        font-size: var(--font-xl);
    }

    #modal-post-password .password-form .input {
        height: 50px;
    }

    #modal-post-password .actions {
        margin-top: 10px;
    }

    #modal-post-password .actions .password-submit {
        width: 100%;
    }

    .modal-dialog .btn.primary {
        padding: 9px 16px;
        font-size: var(--font-md);
    }
}

@media (max-width: 480px) {
    #modal-post-password .modal-dialog {
        max-width: none;
        width: calc(100vw - 24px);
        border-radius: 12px;
    }

    #modal-post-password .title {
        margin-top: 0;
        font-size: var(--font-lg);
    }

    #modal-post-password .receipt-head {
        gap: 3px;
        padding: 24px 20px 16px;
    }

    #modal-post-password .receipt-panel {
        padding: 20px 20px 26px;
    }

    .password-modal-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        margin-bottom: 8px;
    }

    #modal-post-password .modal-close {
        top: 12px;
        right: 12px;
    }

    #modal-post-password .sub {
        margin-top: 8px;
    }

    #modal-post-password .receipt-panel {
        padding-bottom: 22px;
    }

    .modal-dialog .btn.primary {
        padding: 9px 16px;
        font-size: var(--font-base);
    }
}