/* Blog listing, category, and detail */

.btn.btn-blog-success {
    background-color: #148f77;
    border: 0 none;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    border-radius: 4px;
    padding: 8px 18px;
    display: inline-block;
}
.btn.btn-blog-success:hover,
.btn.btn-blog-success:focus {
    background-color: #32bea6;
    color: #fff;
    text-decoration: none;
}

.blog-layout {
    margin-top: 28px;
    margin-bottom: 40px;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.blog-card {
    display: flex;
    gap: 22px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e6ecea;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
    border-color: #b8ddd4;
    box-shadow: 0 8px 24px rgba(13, 33, 55, 0.08);
}

.blog-card-media {
    flex: 0 0 38%;
    max-width: 320px;
    display: block;
    overflow: hidden;
    background: #edf4f2;
    aspect-ratio: 16 / 10;
    align-self: stretch;
}
.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-media img {
    transform: scale(1.04);
}

.blog-card-body {
    flex: 1;
    padding: 18px 20px 18px 0;
    min-width: 0;
}
.blog-card-meta {
    font-size: 12px;
    color: #6a7a84;
    margin-bottom: 8px;
}
.blog-card-meta .blog-card-sep {
    margin: 0 6px;
    opacity: 0.5;
}
.blog-card-cat {
    color: #148f77;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
}
.blog-card-cat:hover {
    color: #0d2137;
    text-decoration: underline;
}
.blog-card-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}
.blog-card-title a {
    color: #1a2b36;
    text-decoration: none;
}
.blog-card-title a:hover {
    color: #148f77;
}
.blog-card-excerpt {
    color: #4a5a64;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
}

.blog-empty {
    padding: 30px;
    color: #6a7a84;
    text-align: center;
}

.blog-load-more-wrap {
    text-align: center;
    margin: 36px 0 10px;
}
.blog-load-more {
    min-width: 160px;
}
.blog-load-more:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Sidebar */
.blog-aside {
    margin-top: 0;
}
.blog-sidebar-block {
    margin-bottom: 28px;
}
.blog-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-recent-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e8eeec;
}
.blog-recent-item:last-child {
    border-bottom: 0;
}
.blog-recent-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #edf4f2;
}
.blog-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-recent-content {
    min-width: 0;
}
.blog-recent-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a2b36;
    text-decoration: none;
}
.blog-recent-title:hover {
    color: #148f77;
}
.blog-recent-date {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #8a9aa4;
}
.blog-recent-date a {
    color: #148f77;
    text-decoration: none;
}
.blog-recent-date a:hover {
    text-decoration: underline;
}

/* Detail */
.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13px;
    color: #6a7a84;
    margin-bottom: 18px;
}
.blog-detail-meta a {
    color: #148f77;
    font-weight: 600;
    text-decoration: none;
}
.blog-detail-meta a:hover {
    text-decoration: underline;
}
.blog-detail-meta i {
    margin-right: 5px;
    color: #9aaba4;
}

.blog-detail-featured {
    margin: 0 0 24px;
    border-radius: 10px;
    overflow: hidden;
    background: #edf4f2;
    text-align: center;
}
.blog-detail-featured img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.blog-detail-content {
    font-size: 15px;
    line-height: 1.7;
    color: #2a3a44;
    margin-bottom: 28px;
}
.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.blog-detail-content h2,
.blog-detail-content h3 {
    margin-top: 1.4em;
    color: #1a2b36;
}

/* Content tables (imported WP / Gutenberg) */
.blog-detail-content .wp-block-table,
.blog-detail-content figure.wp-block-table {
    margin: 1.5em 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.blog-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
    line-height: 1.45;
    background: #fff;
    border: 1px solid #dce6e2;
    border-radius: 8px;
    overflow: hidden;
}
.blog-detail-content table thead th,
.blog-detail-content table th {
    background: #0d2137;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid #148f77;
    vertical-align: middle;
}
/* Gutenberg/WP often puts headers in the first row as <td><strong>…</strong></td> */
.blog-detail-content table:not(:has(thead)) > tbody > tr:first-child > td,
.blog-detail-content table:not(:has(thead)) > tr:first-child > td {
    background: #0d2137;
    color: #fff;
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 2px solid #148f77;
    vertical-align: middle;
}
.blog-detail-content table:not(:has(thead)) > tbody > tr:first-child > td a,
.blog-detail-content table:not(:has(thead)) > tr:first-child > td a,
.blog-detail-content table:not(:has(thead)) > tbody > tr:first-child > td strong,
.blog-detail-content table:not(:has(thead)) > tr:first-child > td strong {
    color: #fff;
}
.blog-detail-content table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e6ecea;
    vertical-align: top;
    color: #2a3a44;
}
.blog-detail-content table tbody tr:nth-child(even):not(:first-child) td,
.blog-detail-content table:not(:has(thead)) > tbody > tr:nth-child(even):not(:first-child) td {
    background: #f4faf8;
}
.blog-detail-content table tbody tr:hover:not(:first-child) td,
.blog-detail-content table:has(thead) tbody tr:hover td {
    background: #eaf6f2;
}
.blog-detail-content table tbody tr:last-child td {
    border-bottom: 0;
}
.blog-detail-content table a {
    color: #148f77;
    word-break: break-all;
    text-decoration: none;
    font-weight: 500;
}
.blog-detail-content table a:hover {
    color: #0d2137;
    text-decoration: underline;
}
.blog-detail-content table td:first-child {
    min-width: 55%;
}
.blog-detail-content table td:last-child {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .blog-detail-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .blog-detail-content table th,
    .blog-detail-content table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

.blog-section-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #1a2b36;
    border-bottom: 2px solid #e6ecea;
    padding-bottom: 10px;
    margin: 32px 0 18px;
    position: relative;
}
.blog-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 72px;
    height: 2px;
    background: #148f77;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.blog-related-card {
    display: block;
    text-decoration: none;
    border: 1px solid #e6ecea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-related-card:hover {
    border-color: #b8ddd4;
    box-shadow: 0 6px 18px rgba(13, 33, 55, 0.08);
}
.blog-related-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #edf4f2;
    overflow: hidden;
}
.blog-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-related-title {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a2b36;
}

/* Legacy bits still used by comments */
.divider_h, .hr_horiznt_dotted {
    border-bottom: 1px dotted #aaacaf;
}
.mr_top30 {
    margin-top: 25px;
    margin-bottom: 30px;
}
.comment-here {
    color: #252c34;
    margin-bottom: 4px;
}
.font_14 {
    font-size: 14px;
}
.posts_1 {
    margin-top: 12px;
}
.posts_1 h5 {
    color: #545e6a;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
    text-transform: uppercase;
}
.posts_1 h5 span {
    font-weight: 300;
}
.fz14 {
    font-size: 14px;
}

@media (max-width: 991px) {
    .blog-card {
        flex-direction: column;
    }
    .blog-card-media {
        max-width: none;
        flex-basis: auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .blog-card-body {
        padding: 16px 18px 20px;
    }
    .blog-aside {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .blog-card-title {
        font-size: 18px;
    }
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
    .blog-detail-meta {
        gap: 6px 12px;
    }
}
