/* Lightweight blog styles layered on top of split public.styles.* bundles */

/* 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: #4b5563;
    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-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: #4b5563;
}
.blog-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: none;
}
.blog-card {
    border-radius: 12px;
    padding: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* Keep class compatibility from template */
.blog-card-has-thumb {
    display: block;
}

.blog-card-has-thumb .blog-card-main {
    padding: 0.9rem 1rem 1.1rem;
}

.blog-card-no-thumb .blog-card-main {
    padding: 0.9rem 1rem 1.1rem;
}

.blog-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
}

.blog-card-thumb-link {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
}

.blog-card-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(135deg, #5a6985 0%, #455983 45%, #1f2937 100%);
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    object-fit: cover;
    box-shadow: none;
}

.blog-card-thumb-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(17, 24, 39, 0.7) 0%,
        rgba(17, 24, 39, 0.25) 38%,
        rgba(17, 24, 39, 0) 70%
    );
}

.blog-card-thumb-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(17, 24, 39, 0.62) 0%,
        rgba(17, 24, 39, 0.24) 42%,
        rgba(17, 24, 39, 0.06) 100%
    );
}

.blog-card-overlay {
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.65rem;
    z-index: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.blog-card-overlay-kicker {
    display: inline-block;
    width: fit-content;
    font-size: 0.64rem;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(17, 24, 39, 0.9);
    padding: 0.2rem 0.35rem;
}

.blog-card-overlay-title {
    font-size: 1.25rem;
    line-height: 1.02;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-category {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ef4444;
}

/* When using full-height thumbnail layout, stretch image to card height */
.blog-card-has-thumb .blog-card-thumb img {
    height: 100%;
}
.blog-card-header h2 {
    font-size: 1.28rem;
    margin-bottom: 0.45rem;
    text-align: left;
    line-height: 1.25;
}
.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.82rem;
    color: #6b7280;
}
.blog-post-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.blog-post-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}

.blog-post-meta-sep {
    color: #9ca3af;
    font-weight: 400;
}

.blog-post-author {
    font-weight: 700;
    color: #111827;
}

.blog-post-date {
    color: #6b7280;
}

.blog-post-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-share-label {
    font-size: 0.82rem;
    color: #6b7280;
}

.blog-post-share-link {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.blog-post-share-link:hover {
    color: #111827;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.blog-post-meta-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 0.9rem 0 0;
}
.blog-card-excerpt {
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #4b5563;
    line-height: 1.5;
    font-size: 0.96rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1400px) {
    .blog-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .blog-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-list {
        grid-template-columns: 1fr;
    }
}
/* 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;
    /* Space above title/meta (breadcrumb → card, or hero → title) */
    padding-top: 1rem;
}
.blog-post-header h2 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    padding-bottom: 1.2rem;
    text-align: left;
}

.blog-post-title-line2 {
    display: inline-block;
    margin-left: 0.75em;
    padding-bottom: 1.2rem;
}
/* When hero sits above the title, spacing below the image is on the figure (not double-counted with header padding) */
.blog-post-hero + .blog-post-header {
    padding-top: 0;
}
/* Top-of-article featured image (above title): room inside the card above & below the image */
.blog-post-full > .blog-post-hero {
    margin-top: 2rem;
    margin-bottom: 2.25rem;
}
.blog-post-hero {
    margin-top: 0;
    margin-bottom: 0;
}
.blog-post-hero img {
    width: 100%;
    max-height: 240px;
    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;
    transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
    filter: saturate(1.03) contrast(1.03);
}

.blog-post-hero {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.blog-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(90, 105, 133, 0.12), rgba(69, 89, 131, 0));
    z-index: 1;
}

.blog-post-hero:hover img {
    transform: scale(1.015);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    filter: saturate(1.08) contrast(1.05);
}
/* Featured image placed after intro paragraph(s) inside the article body */
.blog-post-body .blog-post-hero--inline {
    margin: 3rem 0;
}
.blog-post-body .blog-post-hero--inline img {
    max-height: 315px;
}
.blog-post-body {
    margin-top: 2.75rem;
    padding-left: 3rem;
    padding-right: 3rem;
    line-height: 1.65;
    font-size: 1rem;
    color: #111827;
    text-align: left;
}
.blog-post-body p {
    margin-bottom: 0.9rem;
    text-align: justify;
}
.blog-post-body p:first-of-type {
    font-weight: 700;
}
.blog-post-body h2 {
    text-align: left;
    margin-bottom: 0.3rem;
    margin-top: 1.75rem;
    line-height: 1.4;
}
.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: 1.7rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}
.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.65;
}
.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);
}

@media (max-width: 768px) {
    .blog-post-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
}

/* Blog cards use full width - single column layout for better readability */

