/* Blog: listing (/blog) and posts (/blog/{slug}). Brand colours follow style.css. */

.blog-section {
    max-width: 80rem;
    margin-inline: auto;
    padding: 3rem 1rem 4rem;
}

/* Cards on the listing page */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.25rem 1.5rem;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.5rem 0 0.75rem;
}

.blog-card-title a {
    color: #0f172a;
    text-decoration: none;
}

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

.blog-card-excerpt {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    color: #ea580c;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.blog-read-more:hover {
    color: #c2410c;
}

/* Date / author / tags row */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    color: #64748b;
    font-size: 0.85rem;
}

.blog-meta i {
    color: #f97316;
    margin-right: 0.3rem;
}

.blog-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.blog-sidebar-title {
    background: linear-gradient(to right, #f97316, #ea580c);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.1rem;
    margin: 0;
}

.blog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-sidebar-list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-top: 1px solid #f1f5f9;
}

.blog-sidebar-list li:first-child {
    border-top: 0;
}

.blog-sidebar-rank {
    color: #f97316;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.3;
}

.blog-sidebar-list a {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.4;
    text-decoration: none;
}

.blog-sidebar-list a:hover {
    color: #ea580c;
}

.blog-sidebar-cta {
    padding: 1.25rem 1.1rem;
    color: #475569;
    font-size: 0.92rem;
}

/* Single post */
.blog-post {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.blog-post-image {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-body {
    padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 992px) {
    .blog-post-body {
        padding: 2.5rem 3rem 3rem;
    }
}

.blog-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 1.1rem;
}

.blog-content h2 {
    color: #0f172a;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 2.25rem 0 1rem;
}

.blog-content h3 {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.6rem;
}

/* The base stylesheet resets list markers, so restore them inside articles */
.blog-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.1rem;
}

.blog-content ol {
    list-style: decimal;
    padding-left: 1.25rem;
    margin-bottom: 1.1rem;
}

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

.blog-content li {
    margin-bottom: 0.6rem;
}

.blog-content a {
    color: #ea580c;
    font-weight: 600;
}

.blog-content hr {
    margin: 2rem 0;
    border-color: #e5e7eb;
    opacity: 1;
}

.blog-callout {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.blog-callout p {
    margin: 0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.blog-tags span {
    border: 1px solid #fed7aa;
    color: #c2410c;
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.btn-outline-brand {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #082448;
    color: #082448;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background: #082448;
    color: #ffffff;
}

.blog-empty {
    text-align: center;
    color: #64748b;
    padding: 3rem 1rem;
}
