/*
|--------------------------------------------------------------------------
| Blog list (/blogs.html) and single post (/blog/{slug}.html)
|--------------------------------------------------------------------------
*/

.blog-hero {
    background-color: #0d213f;
    color: #fff;
    padding: 56px 0 48px;
}

.blog-hero h1 {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto 12px;
    max-width: 820px;
}

.blog-hero .lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 640px;
}

.blog-hero .breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.blog-hero .breadcrumb a,
.blog-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.blog-hero .breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.blog-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.blog-meta {
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95rem;
    gap: 8px 20px;
    justify-content: center;
}

.blog-meta a {
    color: #fff;
    text-decoration: none;
}

.blog-meta a:hover {
    text-decoration: underline;
}

.blog-meta i {
    margin-right: 6px;
    opacity: 0.8;
}

.blog-section {
    background-color: #f8f9fa;
    padding: 48px 0 64px;
}

/*
|--------------------------------------------------------------------------
| Post cards
|--------------------------------------------------------------------------
*/

.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(13, 33, 63, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover,
.blog-card:focus-within {
    box-shadow: 0 10px 24px rgba(13, 33, 63, 0.14);
    transform: translateY(-3px);
}

.blog-card__image {
    aspect-ratio: 16 / 9;
    background: #e9ecef;
    display: block;
    object-fit: cover;
    width: 100%;
}

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.blog-card__meta {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.blog-card__title {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    overflow: hidden;
}

.blog-card__title a {
    color: #0d213f;
    text-decoration: none;
}

.blog-card__excerpt {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #495057;
    display: -webkit-box;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
    overflow: hidden;
}

.blog-card__more {
    color: #0d213f;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: auto;
}

.blog-card__more i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card__more i {
    transform: translateX(4px);
}

.blog-pagination .pagination {
    justify-content: center;
    margin: 0;
}

.blog-pagination .page-link {
    color: #0d213f;
}

.blog-pagination .page-item.active .page-link {
    background-color: #0d213f;
    border-color: #0d213f;
    color: #fff;
}

/*
|--------------------------------------------------------------------------
| Single post
|--------------------------------------------------------------------------
*/

.blog-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(13, 33, 63, 0.08);
    overflow: hidden;
}

.blog-article__image {
    aspect-ratio: 16 / 9;
    display: block;
    max-height: 460px;
    object-fit: cover;
    width: 100%;
}

.blog-article__body {
    padding: 40px 48px 48px;
}

@media (max-width: 767.98px) {
    .blog-article__body {
        padding: 24px 20px 32px;
    }
}

/* Post content comes from the editor (and old WordPress imports): style plain tags */
.blog-content {
    color: #2b2f36;
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 72ch;
    overflow-wrap: break-word;
}

.blog-content > *:first-child {
    margin-top: 0;
}

.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content blockquote,
.blog-content figure,
.blog-content table,
.blog-content pre {
    margin: 0 0 1.4em;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color: #0d213f;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.8em 0 0.6em;
}

.blog-content h1,
.blog-content h2 {
    font-size: 1.6rem;
}

.blog-content h3 {
    font-size: 1.3rem;
}

.blog-content h4,
.blog-content h5,
.blog-content h6 {
    font-size: 1.1rem;
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.4em;
}

.blog-content li {
    margin-bottom: 0.5em;
}

.blog-content li::marker {
    color: #0d213f;
}

.blog-content a {
    color: #0b5ed7;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content a:hover {
    color: #0d213f;
}

.blog-content strong,
.blog-content b {
    color: #1a1d21;
}

.blog-content blockquote {
    background: #f1f4f9;
    border-left: 4px solid #0d213f;
    border-radius: 0 8px 8px 0;
    color: #3b4250;
    font-style: italic;
    padding: 16px 22px;
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-content img,
.blog-content video,
.blog-content iframe {
    border-radius: 8px;
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
}

.blog-content iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.blog-content figure {
    max-width: 100%;
}

.blog-content figcaption {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 8px;
    text-align: center;
}

.blog-content table {
    border-collapse: collapse;
    display: block;
    font-size: 1rem;
    max-width: 100%;
    overflow-x: auto;
}

.blog-content th,
.blog-content td {
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.blog-content th {
    background: #f1f4f9;
    color: #0d213f;
}

.blog-content hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 2.2em 0;
}

.blog-content pre,
.blog-content code {
    background: #f1f4f9;
    border-radius: 6px;
    font-size: 0.92em;
}

.blog-content code {
    padding: 2px 6px;
}

.blog-content pre {
    overflow-x: auto;
    padding: 14px 16px;
}

.blog-article__footer {
    align-items: center;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
}

.blog-back-link {
    color: #0d213f;
    font-weight: 600;
    text-decoration: none;
}

.blog-back-link:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Sidebar
|--------------------------------------------------------------------------
*/

.blog-sidebar {
    top: 100px;
}

.blog-sidebar__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(13, 33, 63, 0.08);
    padding: 24px;
}

.blog-sidebar__card + .blog-sidebar__card {
    margin-top: 24px;
}

.blog-sidebar__heading {
    border-bottom: 1px solid #e9ecef;
    color: #0d213f;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 12px;
}

.recent-post {
    align-items: flex-start;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
}

.recent-post:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.recent-post img {
    border-radius: 8px;
    flex: 0 0 76px;
    height: 60px;
    object-fit: cover;
    width: 76px;
}

.recent-post__title {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #0d213f;
    display: -webkit-box;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
}

.recent-post:hover .recent-post__title {
    text-decoration: underline;
}

.recent-post__date {
    color: #6c757d;
    font-size: 0.82rem;
    margin-top: 4px;
}

.blog-cta {
    background: #0d213f;
    color: rgba(255, 255, 255, 0.85);
}

.blog-cta h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-cta p {
    font-size: 0.98rem;
    line-height: 1.6;
}

.blog-cta .btn {
    background: #fff;
    border-color: #fff;
    color: #0d213f;
    font-weight: 600;
}

.blog-cta .btn:hover {
    background: #e9ecef;
}
