/* News / blog — aligned with site (pages.css + brand orange/blue) */

.blog-page-hero .page-hero-card {
    grid-template-columns: 1fr;
}

.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.blog-toolbar h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.blog-toolbar-meta {
    font-size: 0.9rem;
    color: #64748b;
}

.blog-search {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 220px;
    max-width: 360px;
}

.blog-search input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}

.blog-search input:focus {
    outline: 2px solid #4c68d7;
    outline-offset: 1px;
}

.blog-search button {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    padding-bottom: 3rem;
}

.blog-feed {
    min-width: 0;
}

/* Post cards */
.blog-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.25rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.blog-card.has-thumb {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
}

.blog-card-media {
    display: block;
    overflow: hidden;
    background: #e2e8f0;
    min-height: 180px;
}

.blog-card.has-thumb .blog-card-media {
    min-height: 100%;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.04);
}

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

.blog-tag {
    display: inline-block;
    align-self: flex-start;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 0.65rem;
    transition: background 0.2s ease;
}

.blog-tag:hover {
    background: #ffedd5;
    color: #9a3412;
}

.blog-card-title {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

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

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

.blog-card-excerpt {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0 0 1rem;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #64748b;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ff6b35;
    text-decoration: none;
    white-space: nowrap;
}

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

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: calc(88px + env(safe-area-inset-top, 0px));
}

.blog-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.blog-widget-title {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

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

.blog-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s ease;
}

.blog-categories li:last-child a {
    border-bottom: none;
}

.blog-categories a:hover,
.blog-categories a.is-active {
    color: #4c68d7;
}

.blog-categories a.is-active {
    font-weight: 700;
}

.blog-count {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    background: #f1f5f9;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}

.blog-recent a {
    display: block;
    padding: 0.55rem 0;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.blog-recent li:last-child a {
    border-bottom: none;
}

.blog-recent-title {
    display: block;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.blog-recent a:hover .blog-recent-title {
    color: #4c68d7;
}

.blog-recent-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.blog-widget-cta p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.btn-sm-block {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
}

/* Empty state */
.blog-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

.blog-empty i {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.blog-empty h3 {
    margin: 0 0 0.5rem;
    color: #0f172a;
}

.blog-empty p {
    color: #64748b;
    margin: 0;
}

/* Single article */
.article-shell {
    padding-bottom: 3rem;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-tag {
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    font-size: 0.9rem;
    color: #64748b;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-featured {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.article-featured img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.article-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.article-prose {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
    line-height: 1.75;
    color: #334155;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
    color: #0f172a;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
}

.article-prose p {
    margin-bottom: 1rem;
}

.article-prose ul,
.article-prose ol {
    margin: 0 0 1rem 1.25rem;
}

.article-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-prose a {
    color: #4c68d7;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
}

.article-back:hover {
    color: #ff6b35;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
    }

    .blog-sidebar .blog-widget {
        margin-bottom: 0;
    }

    .blog-card.has-thumb {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .blog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search {
        max-width: none;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
