@charset "utf-8";

/*-----------------------------------------------------------------------------------------
-- NTM MODERN SHARED BOARD STYLES
-----------------------------------------------------------------------------------------*/

/* List Container */
.bo_modern_wrap {
    margin-bottom: 50px;
}

.bo_modern_header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.bo_modern_title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.bo_modern_title p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Table Style (Basic) */
.bo_modern_table_wrap {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.bo_modern_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.bo_modern_table th {
    background: var(--light);
    padding: 18px 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

.bo_modern_table td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--table-border);
    font-size: 0.92rem;
    vertical-align: middle;
}

.bo_modern_table tr:last-child td {
    border-bottom: none;
}

.bo_modern_table tr:hover {
    background: #f8fafc;
}

.td_num {
    width: 80px;
    text-align: center;
    color: var(--text-muted);
}

.td_subject {
    padding-left: 20px !important;
}

.td_name {
    width: 120px;
    text-align: center;
}

.td_date {
    width: 110px;
    text-align: center;
    color: var(--text-muted);
}

.td_hit {
    width: 80px;
    text-align: center;
    color: var(--text-muted);
}

.bo_modern_subject_link {
    display: inline-flex;
    align-items: center;
    color: var(--text-main);
    font-weight: 500;
}

.bo_modern_subject_link:hover {
    color: var(--primary);
}

.bo_notice td {
    background: #fffcf0;
}

.bo_notice .td_num {
    color: #f59e0b;
    font-weight: 800;
}

/* Badges & Meta */
.modern_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 5px;
    height: 18px;
    line-height: 1;
    text-transform: uppercase;
}

.badge_comment {
    background: transparent;
    color: var(--primary);
    font-family: 'Inter';
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 4px;
    border: none;
}

.badge_comment::before {
    content: "[";
}

.badge_comment::after {
    content: "]";
}

.badge_new {
    background: #ff4d4d;
    color: #fff;
    font-size: 0.6rem;
    border-radius: 2px;
    padding: 1px 4px;
    margin-left: 8px;
}

.badge_video {
    background: #000;
    color: #fff;
}

.badge_file {
    background: #64748b;
    color: #fff;
}

/* Gallery Style */
.bo_modern_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gall_modern_item {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.gall_modern_item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.gall_modern_img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f1f5f9;
    --badge-new: #ff4d4d;
    --badge-hot: #ff9900;
    --badge-comment: #3b82f6;
    --table-header-bg: #fdfdfe;
    --table-border: #f1f5f9;
}

.gall_modern_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.gall_modern_item:hover .gall_modern_img img {
    transform: scale(1.1);
}

.gall_modern_text {
    padding: 25px;
}

.gall_modern_title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.gall_modern_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 15px;
    border-top: 1px solid var(--border);
    margin-top: 15px;
}

/* Video Style */
.bo_modern_video {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.video_modern_card {
    background: transparent;
    border: none;
}

.video_modern_thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video_modern_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: 0.4s;
}

.video_modern_card:hover .video_modern_thumb img {
    filter: brightness(0.6) scale(1.05);
}

.btn_play_overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 60px;
    opacity: 0.8;
    transition: 0.3s;
}

.video_modern_card:hover .btn_play_overlay {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video_modern_content {
    padding: 20px 0;
}

.video_modern_title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Webzine Style */
.bo_modern_webzine {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.webzine_modern_item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    transition: var(--transition);
}

.webzine_modern_item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.webzine_modern_img {
    width: 300px;
    min-width: 300px;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.webzine_modern_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.webzine_modern_item:hover .webzine_modern_img img {
    transform: scale(1.1);
}

.webzine_modern_text {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.webzine_modern_title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.webzine_modern_desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 20px;
}

.webzine_modern_meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Inquiry / Q&A Style */
.inquiry_status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status_waiting {
    background: #fef3c7;
    color: #d97706;
}

.status_complete {
    background: #dcfce7;
    color: #16a34a;
}

.inquiry_row_private {
    opacity: 0.6;
}

/* FAQ Accordion */
.faq_modern_list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq_modern_item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq_modern_q {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq_modern_q:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.faq_modern_a {
    padding: 0 30px;
    height: 0;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fbfcfe;
    border-top: 0px solid var(--border);
}

.faq_modern_item.active .faq_modern_a {
    padding: 30px;
    height: auto;
    border-top-width: 1px;
}

.faq_modern_item.active .faq_modern_q {
    color: var(--primary);
    font-weight: 700;
}

.faq_icon_q {
    color: var(--primary);
    font-family: 'Montserrat';
    font-weight: 900;
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Pagination Modern */
.bo_modern_paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.bo_modern_paging a,
.bo_modern_paging b {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    background: #fff;
}

.bo_modern_paging b {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.bo_modern_paging a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Buttons & Utils */
.bo_modern_btns {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.ml-auto {
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {

    .td_date,
    .td_hit,
    .td_num {
        display: none;
    }

    .td_subject {
        padding: 20px !important;
    }

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