/* Lightweight blog styles built on top of public.styles.css */

/* Breadcrumbs */
.blog-breadcrumbs {
    margin-bottom: 1.5rem;
}

.blog-breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-breadcrumb-item {
    display: flex;
    align-items: center;
}

.blog-breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.blog-breadcrumb-link:hover {
    color: var(--primary-purple);
}

.blog-breadcrumb-item.active span {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.blog-breadcrumb-separator {
    color: #999;
    font-size: 0.75rem;
    margin: 0 0.25rem;
}

.blog-breadcrumb-separator i {
    font-size: 0.7rem;
}

.blog-header {
    text-align: left;
    margin-bottom: 2.5rem;
}
.blog-header h1 {
    font-size: 2.35rem;
    margin-bottom: 0.5rem;
}
.blog-tagline {
    font-size: 1rem;
    color: #555;
}
.blog-alert {
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.blog-alert-warning {
    background: #fff7e6;
    border: 1px solid #fbbf24;
    color: #92400e;
}
.blog-empty {
    font-size: 1rem;
    color: #666;
}
.blog-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    max-width: none;
}
.blog-card {
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

/* Variant when card has a left thumbnail that should touch the card edge */
.blog-card-has-thumb {
    display: flex;
    padding: 0;
    overflow: hidden;
    align-items: stretch;
}

.blog-card-has-thumb .blog-card-main {
    flex: 1 1 auto;
    padding: 0 1.6rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.blog-card-thumb {
    flex: 0 0 32%;
    max-width: 260px;
}

.blog-card-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.blog-card-main {
    flex: 1 1 auto;
}

/* When using full-height thumbnail layout, stretch image to card height */
.blog-card-has-thumb .blog-card-thumb img {
    height: 100%;
    border-radius: 14px 0 0 14px;
    box-shadow: none;
}

@media (max-width: 768px) {
    .blog-card-has-thumb {
        flex-direction: column;
    }

    .blog-card-thumb {
        flex-basis: auto;
        max-width: none;
        width: 100%;
    }

    .blog-card-has-thumb .blog-card-thumb img {
        height: auto;
        border-radius: 14px 14px 0 0;
    }
}
.blog-card-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    text-align: left;
}
.blog-card-header h2 a {
    color: #111827;
    text-decoration: none;
}
.blog-card-header h2 a:hover {
    color: var(--primary-purple);
}
.blog-card-meta,
.blog-post-meta {
    font-size: 0.85rem;
    color: #6b7280;
}
.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.blog-card-excerpt {
    margin-top: 0.7rem;
    margin-bottom: 0.9rem;
    color: #4b5563;
    line-height: 1.7;
}
.blog-card-footer {
    display: flex;
    justify-content: flex-start;
}
.blog-read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-read-more:hover {
    color: var(--primary-purple);
    text-decoration: none;
}
/* White background wrapper for single blog post (similar to terms-content) */
.blog-post-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    padding: 0 0 2.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post-full {
    max-width: none;
    margin: 0;
}
.blog-post-header {
    padding-left: 3rem;
    padding-right: 3rem;
}
.blog-post-header h2 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    text-align: left;
}
.blog-post-hero {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.blog-post-hero img {
    width: 100%;
    max-height: 320px;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
    object-position: center center;
}
.blog-post-body {
    margin-top: 1.5rem;
    padding-left: 3rem;
    padding-right: 3rem;
    line-height: 2;
    font-size: 1rem;
    color: #111827;
    text-align: left;
}
.blog-post-body p {
    margin-bottom: 0.5rem;
    text-align: justify;
}
.blog-post-body h2 {
    text-align: left;
    margin-bottom: 0.3rem;
    margin-top: 1.75rem;
}
.blog-post-body h2:first-child {
    margin-top: 1.75rem;
}
.features h2:first-of-type {
    margin-top: 1.75rem;
    margin-bottom: 0.3rem;
}
.blog-post-body h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}
.blog-post-body ul,
.blog-post-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-position: outside;
}
.blog-post-body ul {
    list-style-type: disc;
}
.blog-post-body ol {
    list-style-type: decimal;
}
.blog-post-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.blog-post-back {
    margin-top: 2.5rem;
    padding-left: 3rem;
}

/* Links inside blog post body styled similar to footer legal links */
.blog-post-body a {
    color: var(--text-dark);
    text-decoration: none;
    opacity: 0.9;
    border-bottom: 1px solid rgba(107, 114, 128, 0.35);
    transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-post-body a:hover {
    opacity: 1;
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

/* Blog cards use full width - single column layout for better readability */

