:root {
    --blog-bg: #ffffff;
    --card-bg: #ffffff;
    --line: #e2e8f0;
    --ink-900: #092b57;
    --ink-700: #334155;
    --ink-500: #64748b;
    --brand: #008080;
    --brand-hover: #006666;
    --teal-subtle: #e6f7f7;
    --radius: 14px;
}

body.page-blogs,
body.page-blog-details {
    background: #ffffff;
    color: var(--ink-700);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.blog-body-wrapper {
    padding: 20px 0 60px;
    background: #ffffff;
}

.blog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.category-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 6px 2px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroller::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    font-size: 13.5px;
    color: var(--ink-500);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
}

.category-tab:hover,
.category-tab.active {
    background: #092b57;
    color: #ffffff;
    border-color: #092b57;
}

.blog-search {
    flex-shrink: 0;
}

.search-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px 6px 4px 14px;
}

.search-wrap input {
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 14px;
    color: var(--ink-900);
    outline: none;
    min-width: 180px;
}

.search-wrap button {
    background: #008080;
    color: #ffffff;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.toolbar-meta-row {
    margin-top: 14px;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: var(--ink-500);
}

.blog-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(9, 43, 87, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(9, 43, 87, 0.09);
    border-color: rgba(0, 128, 128, 0.35);
}

.blog-card-image-wrap {
    height: 210px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.04);
}

.blog-card-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #092b57, #008080);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6f7f7;
    color: #008080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.author-name {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-900);
}

.author-meta {
    margin: 0;
    font-size: 12px;
    color: var(--ink-500);
}

.blog-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink-900);
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #008080;
}

.blog-card-excerpt {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.6;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.read-link {
    font-size: 13.5px;
    font-weight: 700;
    color: #008080;
    text-decoration: none;
    transition: color 0.2s ease;
}

.read-link:hover {
    color: #006666;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
}

.page-btn,
.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink-900);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-btn:hover,
.page-number:hover,
.page-number.active {
    background: #092b57;
    color: #ffffff;
    border-color: #092b57;
}

.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Share Dropdown */
.share-wrap {
    position: relative;
    display: inline-block;
}

.share-toggle {
    background: #ffffff;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.share-toggle:hover {
    background: #f8fafc;
    border-color: #008080;
}

.share-toggle span {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #64748b;
    pointer-events: none;
}

.share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(9, 43, 87, 0.12);
    padding: 6px;
    z-index: 50;
    min-width: 140px;
}

.share-wrap.is-open .share-menu {
    display: block;
}

.share-copy {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.share-copy:hover {
    background: #f0fdfa;
    color: #008080;
}

/* Detail layout */
.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
}

.blog-detail-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(9, 43, 87, 0.04);
}

.blog-detail-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--ink-900);
    margin: 20px 0 24px;
    line-height: 1.25;
}

.detail-cover-wrap {
    margin: 0 0 32px;
    border-radius: 12px;
    overflow: hidden;
}

.detail-cover {
    width: 100%;
    height: auto;
    display: block;
}

.tag-pill {
    display: inline-block;
    background: #e6f7f7;
    color: #008080;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    margin-right: 8px;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    border-top: 1px solid var(--line, #eee);
    padding-top: 20px;
}

.meta-link {
    font-size: 13.5px;
    font-weight: 700;
    color: #008080;
    text-decoration: none;
}

.card-stats {
    display: inline-flex;
    align-items: center;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    line-height: 1;
}

.stat-pill svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 980px) {
    .blog-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .blog-body-wrapper main.site-container {
        margin-top: 16px !important;
        margin-bottom: 36px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
    }

    .blog-detail-card {
        padding: 20px 14px !important;
        border: 1px solid var(--line, #e2e8f0);
        border-radius: 12px;
        box-shadow: none;
    }

    .blog-detail-title {
        font-size: 21px !important;
        margin: 14px 0 16px !important;
        line-height: 1.28 !important;
    }

    .detail-cover-wrap {
        margin-bottom: 20px !important;
        border-radius: 8px;
    }

    .blog-content {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }
}

@media (max-width: 640px) {
    .blog-main-grid {
        grid-template-columns: 1fr;
    }
}
