/* online_consultation.css - 온라인 상담 페이지 */

/* notice 스타일 공유 */
/* ============================================
   Notice Board Table
   ============================================ */

.notice-board-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
}

.notice-board-table thead {
    background: #00a79d;
    color: #fff;
}

.notice-board-table thead th {
    padding: 15px 10px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    border-bottom: 2px solid #008c84;
}

.notice-board-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.notice-board-table tbody tr:hover {
    background-color: #f8f9fa;
}

.notice-board-table tbody tr.notice-row {
    background-color: #f0fffe;
}

.notice-board-table tbody tr.notice-row:hover {
    background-color: #e6fffd;
}

.notice-board-table tbody td {
    padding: 15px 10px;
    text-align: center;
    font-size: var(--text-xs);
    color: #333;
}

.notice-board-table .num {
    width: 100px;
}

.notice-board-table .subject {
    text-align: left;
    width: auto;
}

.notice-board-table .name {
    width: 150px;
}

.notice-board-table .date {
    width: 120px;
    color: #999;
}

.notice-board-table .hit {
    width: 100px;
    color: #999;
}

.notice-board-table .notice-title {
    color: #333;
    text-decoration: none;
    font-weight: var(--font-normal);
    transition: color 0.2s;
}

.notice-board-table .notice-title:hover {
    color: #00a79d;
}

.notice-board-table .notice-title .fa-bullhorn {
    color: #ff6b6b;
    margin-right: 5px;
}

/* Badge Notice */
.badge-notice {
    display: inline-block;
    padding: 4px 12px;
    background: #ff6b6b;
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    border-radius: 3px;
}

/* Responsive Design for Notice Board */
@media screen and (max-width: 768px) {
    .notice-board-table {
        font-size: 12px;
    }

    .notice-board-table thead th {
        padding: 10px 5px;
        font-size: 12px;
    }

    .notice-board-table tbody td {
        padding: 10px 5px;
        font-size: 12px;
    }

    .notice-board-table .num,
    .notice-board-table .hit {
        display: none;
    }

    .notice-board-table .date {
        width: 90px;
        font-size: 11px;
    }

    .notice-board-table .name {
        display: none;
    }

    .badge-notice {
        padding: 3px 8px;
        font-size: 11px;
    }
}


/* ============================================
   Notice Table Styles
   ============================================ */

#notice_main .container .wrapper .content {
    padding-top: 0 !important;
}

.notice-header-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0px 20px;
    margin-bottom: 20px;
}

.notice-main-title {
    font-family: var(--font-body), sans-serif !important;
    font-weight: var(--font-bold) !important;
    font-size: var(--text-sm) !important;
    line-height: 19px !important;
    margin: 0 !important;
    color: #000000 !important;
    text-transform: uppercase;
}

.notice-search-wrapper {
    position: relative;
    width: 220px;
    height: 34px;
}

.notice-search-input {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 8px 40px 8px 12px;
    border: 1px solid #E5E5E5;
    font-family: var(--font-body), sans-serif;
    font-weight: var(--font-normal);
    font-size: var(--text-xs);
    line-height: 17px;
    color: #333;
}

.notice-search-input::placeholder {
    color: #999999;
}

.notice-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.notice-search-btn img {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.notice-search-btn:hover img {
    opacity: 1;
}

.notice-table-container {
    margin: 30px 0;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.notice-table thead {
    background: #00a79d;
    color: #fff;
}

.notice-table thead th {
    padding: 15px 10px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    border-bottom: 2px solid #008c84;
    text-align: center;
}

.notice-table thead .col-num {
    width: 80px;
}

.notice-table thead .col-title {
    width: auto;
    text-align: left;
}

.notice-table thead .col-author {
    width: 150px;
}

.notice-table thead .col-date {
    width: 120px;
}

.notice-table thead .col-views,
.notice-table thead .col-likes {
    width: 100px;
}

.notice-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.notice-table tbody tr:hover {
    background-color: #f8f9fa;
}

.notice-table tbody td {
    padding: 15px 10px;
    text-align: center;
    font-size: var(--text-xs);
    color: #333;
}

.notice-table tbody .col-title {
    text-align: left;
}

.notice-table tbody .col-title a {
    color: #333;
    text-decoration: none;
    font-weight: var(--font-normal);
    transition: color 0.2s;
}

.notice-table tbody .col-title a:hover {
    color: #00a79d;
}

.notice-table tbody .col-date,
.notice-table tbody .col-views,
.notice-table tbody .col-likes {
    color: #999;
}

/* Pagination */
.notice-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-size: var(--text-xs);
}

.pagination-btn:hover {
    background: #f0f0f0;
    border-color: #00a79d;
}

.pagination-btn.active {
    background: #00a79d;
    border-color: #00a79d;
    color: #fff;
}

/* Write Button */
.notice-write-btn-wrapper {
    text-align: right;
    margin-top: 20px;
}

.notice-write-btn {
    padding: 10px 20px;
    background: #666;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: var(--text-xs);
    transition: background 0.2s;
}

.notice-write-btn:hover {
    background: #555;
}

/* Responsive Design for Notice Table */
@media screen and (max-width: 768px) {
    .notice-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .notice-main-title {
        font-size: 30px;
    }

    .notice-search-input {
        width: 150px;
    }

    .notice-table-container {
        overflow-x: auto;
    }

    .notice-table {
        font-size: 12px;
    }

    .notice-table thead th {
        padding: 10px 5px;
        font-size: 12px;
    }

    .notice-table tbody td {
        padding: 10px 5px;
        font-size: 12px;
    }

    .notice-table thead .col-author,
    .notice-table thead .col-views,
    .notice-table thead .col-likes {
        display: none;
    }

    .notice-table tbody .col-author,
    .notice-table tbody .col-views,
    .notice-table tbody .col-likes {
        display: none;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .notice-write-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

