/* ========================= */
/*  COMMON INSIGHT CSS BASE  */
/* ========================= */
:root {
    --gold-main: #E0C78F;
    --gold-hover: #F3DFA2;
    --text-light: #B0A28C;
    --bg-dark: #191919;
    --bg-gradient: linear-gradient(145deg, #191919, #222222);
    --box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
    --border-light: rgba(255, 255, 255, 0.08);
}

.insight-container {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 15px 20px;
    transition: all 0.3s ease-in-out;
}
.insight-title {
    color: var(--gold-main);
    font-weight: bold;
    text-shadow: 0px 0px 6px rgba(224, 199, 143, 0.2);
    transition: color 0.3s ease-in-out;
}
.insight-title:hover {
    color: var(--gold-hover);
    text-shadow: 0px 0px 8px rgba(224, 199, 143, 0.4);
}
.insight-text {
    color: var(--text-light);
    font-size: 1em;
    line-height: 1.6;
    transition: color 0.3s ease-in-out;
}
.insight-date, .insight-author {
    color: var(--text-light);
    font-size: 0.85em;
    margin-bottom: 10px;
}
.insight-button {
    background-color: transparent;
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.3s;
}
.insight-button:hover {
    background-color: var(--gold-main);
    color: #000;
}

.insight-detail.article-content table {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: linear-gradient(180deg, rgba(26, 22, 18, 0.96) 0%, rgba(18, 16, 13, 0.98) 100%) !important;
    border: 1px solid rgba(220, 188, 113, 0.38) !important;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    color: #E7DCC5 !important;
    font-size: 15px;
    line-height: 1.6;
}

.insight-detail.article-content .insight-table-wrap {
    width: 100%;
    margin: 32px 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.insight-detail.article-content .insight-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.insight-detail.article-content .insight-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
}

.insight-detail.article-content .insight-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(201, 183, 147, 0.38);
    border-radius: 999px;
}

.insight-detail.article-content .insight-table-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 215, 168, 0.55);
}

.insight-detail.article-content table caption {
    caption-side: top;
    margin-bottom: 14px;
    color: #BFAE8A;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-align: left;
}

.insight-detail.article-content table thead th {
    padding: 7px 12px !important;
    background: linear-gradient(180deg, rgba(52, 44, 33, 0.95) 0%, rgba(36, 30, 23, 0.98) 100%) !important;
    color: #F2D99C !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: right;
    border: 0 !important;
    line-height: 1.2 !important;
    border-bottom: 1px solid rgba(220, 188, 113, 0.28) !important;
}

.insight-detail.article-content table thead th:first-child {
    text-align: left;
    padding-left: 20px !important;
}

.insight-detail.article-content table thead th + th {
    border-left: 1px solid rgba(220, 188, 113, 0.16) !important;
}

.insight-detail.article-content table tbody th,
.insight-detail.article-content table tbody td {
    padding: 8px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(220, 188, 113, 0.12) !important;
    vertical-align: middle;
    line-height: 1.3 !important;
    font-size: 14px !important;
}

.insight-detail.article-content table tbody th {
    padding-left: 20px !important;
    color: #F0E2BF !important;
    font-weight: 600 !important;
    text-align: left;
    white-space: normal;
}

.insight-detail.article-content table tbody td {
    color: #E7DCC5 !important;
    text-align: right;
}

.insight-detail.article-content table tbody td:first-child,
.insight-detail.article-content table tbody th:first-child {
    text-align: left !important;
}

.insight-detail.article-content table tbody td:not(:first-child),
.insight-detail.article-content table tbody th:not(:first-child) {
    text-align: right !important;
}

.insight-detail.article-content table tbody td + td,
.insight-detail.article-content table tbody th + td,
.insight-detail.article-content table tbody td + th {
    border-left: 1px solid rgba(220, 188, 113, 0.1) !important;
}

.insight-detail.article-content table tbody tr:nth-child(odd) th,
.insight-detail.article-content table tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.015) !important;
}

.insight-detail.article-content table tbody tr:nth-child(even) th,
.insight-detail.article-content table tbody tr:nth-child(even) td {
    background: rgba(220, 188, 113, 0.03) !important;
}

.insight-detail.article-content table tbody tr:last-child th,
.insight-detail.article-content table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.insight-detail.article-content table p {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.insight-detail.article-content table b,
.insight-detail.article-content table strong {
    color: inherit;
}

.insight-pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none !important;
}

.insight-pagination > li {
    display: block;
    margin: 0 !important;
    list-style: none !important;
}

.insight-pagination > li::marker {
    content: "";
}

.insight-pagination > li > a,
.insight-pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(176, 162, 140, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #d8c7a3;
    text-decoration: none;
    line-height: 1;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.insight-pagination > li > a:hover {
    background: rgba(232, 215, 168, 0.08);
    border-color: rgba(232, 215, 168, 0.3);
    color: #f5d29b;
    transform: translateY(-1px);
}

.insight-pagination > li.active > span {
    background: #dcbc71;
    border-color: #dcbc71;
    color: #181512;
    font-weight: 700;
}

.insight-pagination > li.page-info {
    margin-right: 6px !important;
}

.insight-pagination > li.page-info > span {
    min-width: 0;
    padding: 0 18px;
    background: transparent;
    border-color: rgba(176, 162, 140, 0.14);
    color: #b8aa90;
    font-size: 0.96rem;
    font-weight: 500;
}

.insight-pagination > li.disabled > span,
.insight-pagination > li.disabled > a {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .insight-detail.article-content table {
        width: max-content !important;
        max-width: none !important;
        min-width: 640px;
        font-size: 14px;
    }

    .insight-detail.article-content table thead th,
    .insight-detail.article-content table tbody th,
    .insight-detail.article-content table tbody td {
        padding: 7px 10px !important;
    }
}

@media (max-width: 767.98px) {
    .insight-pagination {
        gap: 8px;
        margin-top: 28px;
    }

    .insight-pagination > li.page-info {
        width: 100%;
        margin-right: 0 !important;
    }

    .insight-pagination > li.page-info > span {
        width: 100%;
        height: 40px;
    }

    .insight-pagination > li > a,
    .insight-pagination > li > span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
    }
}
