/* Article Page Layout */
.article-page-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0;
    max-width: 1160px;
    margin: 0 auto;
    align-items: start;
    padding: 0 20px;
}

/* Sidebar */
.toc-sidebar {
    order: 2;
    padding: 40px 0 40px 28px;
}
.toc-box {
    position: sticky;
    top: 90px;
    background: #f4fbfc;
    border: 1px solid #b2ebf2;
    border-radius: 10px;
    padding: 20px 18px;
}
.toc-title {
    font-size: 0.88em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1cb9c8;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b2ebf2;
}
.toc-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.toc-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}
.toc-list li a {
    font-size: 0.82em;
    color: #1a3e42;
    text-decoration: none;
    transition: color 0.2s;
}
.toc-list li a::before {
    content: '→ ';
    color: #1cb9c8;
    font-weight: 600;
}
.toc-list li a:hover {
    color: #1cb9c8;
}

/* Main content takes full width inside grid */
.article-page-wrap .story-wrap {
    order: 1;
    max-width: 100%;
    padding: 40px 28px 80px 0;
    margin: 0;
}

@media (max-width: 900px) {
    .article-page-wrap {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .toc-sidebar {
        order: 1;
        padding: 24px 0 0 0;
    }
    .toc-box {
        position: static;
    }
    .article-page-wrap .story-wrap {
        order: 2;
        padding: 24px 0 60px 0;
    }
}

/* Sidebar blog boxes */
.blog-sidebar-box {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}
.blog-sidebar-box h2 {
    font-size: 1em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1cb9c8;
    color: #0d2b2e;
}
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.88em;
}
.cat-item:last-child { border-bottom: none; }
.recent-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.recent-post-item img {
    width: 65px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.blogshare {
    padding: 14px;
    border-radius: 5px;
    font-size: 1.2em;
    color: #fff;
    opacity: 1;
}
.blogshare:hover { opacity: 0.7; }
.recblogtitle { color: #000; }
.recblogtitle:hover { color: #1cb9c8; }
.recblogatag { color: #616161; }
.recblogatag:hover { color: #1cb9c8; }
.blog-detail-recent-small { color: #616161; }

/* Table */
.article-table-wrap {
    overflow-x: auto;
    margin: 20px 0 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    min-width: 520px;
}
.article-table thead tr {
    background: #0d2b2e;
    color: #fff;
}
.article-table th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.92em;
}
.article-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e8f4f5;
    color: #444;
    vertical-align: top;
}
.article-table tbody tr:nth-child(even) {
    background: #f4fbfc;
}
.article-table tbody tr:hover {
    background: #e0f7fa;
}
.article-table td:first-child {
    font-weight: 600;
    color: #1a3e42;
    white-space: nowrap;
}
