/* ==========================================================================
   Blog — editorial redesign (listing, single post, shared sidebar/cards)
   Reuses --primary-color / --primary-hover / --primary-light from new-header.css
   ========================================================================== */

.blog-page-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.blog-page-head h1 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    color: #101828;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

.blog-page-head p {
    color: #6b7280;
    font-size: 1.05rem;
}

.blog-search {
    max-width: 420px;
    margin: 1.75rem auto 0;
}

.blog-search .form-control {
    border-radius: 999px 0 0 999px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.blog-search .btn {
    border-radius: 0 999px 999px 0;
    background: var(--primary-color, #2464ee);
    color: #fff;
    border: 1px solid var(--primary-color, #2464ee);
}

.blog-search .btn:hover {
    background: var(--primary-hover, #1a52c4);
}

/* ---------- Cards (listing grid) ---------- */

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.blog-card__thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.05);
}

.blog-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color, #2464ee);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.blog-card__featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.35rem 1.35rem 1.5rem;
}

.blog-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

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

.blog-card__title a:hover {
    color: var(--primary-color, #2464ee);
}

.blog-card__excerpt {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f2f4;
}

.blog-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef1f6;
}

.blog-card__meta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.blog-card__author {
    font-size: 0.82rem;
    font-weight: 600;
    color: #344054;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card__submeta {
    font-size: 0.76rem;
    color: #98a2b3;
}

/* ---------- Sidebar (shared: listing + single post) ---------- */

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

.blog-widget {
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-widget__title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #101828;
    margin-bottom: 1.1rem;
}

.blog-widget--newsletter {
    background: linear-gradient(160deg, var(--primary-light, #e8f0fe) 0%, #fff 65%);
    border-color: var(--primary-light, #e8f0fe);
}

.blog-widget__newsletter-sub {
    font-size: 0.87rem;
    color: #475467;
    line-height: 1.55;
    margin-bottom: 1.1rem;
}

.blog-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.blog-newsletter-form .form-control {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
}

.blog-newsletter-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color, #2464ee);
    box-shadow: 0 0 0 3px var(--primary-light, #e8f0fe);
}

.blog-newsletter-form .btn {
    background: var(--primary-color, #2464ee);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.blog-newsletter-form .btn:hover {
    background: var(--primary-hover, #1a52c4);
}

.blog-newsletter-alert {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.blog-newsletter-alert--success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.blog-newsletter-alert--error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.blog-widget__recent-item {
    display: flex;
    gap: 0.85rem;
    text-decoration: none;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f2f4;
}

.blog-widget__recent-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-widget__recent-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef1f6;
}

.blog-widget__recent-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #101828;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.blog-widget__recent-item:hover .blog-widget__recent-title {
    color: var(--primary-color, #2464ee);
}

.blog-widget__recent-date {
    font-size: 0.76rem;
    color: #98a2b3;
}

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

.blog-widget__category-list li {
    margin-bottom: 0.15rem;
}

.blog-widget__category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.15rem;
    color: #344054;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px dashed #f1f2f4;
}

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

.blog-widget__category-list a:hover {
    color: var(--primary-color, #2464ee);
}

.blog-widget__category-list .count {
    font-size: 0.76rem;
    color: #98a2b3;
    background: #f8f9fb;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
}

/* ---------- Single post ---------- */
/* Clean editorial header — plain white background, no colored band.
   Uses the same sitewide .pt-6 utility as the blog listing page for
   fixed-header clearance, so it never needs a custom offset hack. */

.blog-post-head {
    margin-bottom: 2rem;
}

.blog-post-head__category {
    display: inline-block;
    background: var(--primary-light, #e8f0fe);
    color: var(--primary-color, #2464ee);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
    text-decoration: none;
}

.blog-post-head__title {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    color: #101828;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.28;
    margin-bottom: 1.4rem;
    max-width: 820px;
}

.blog-post-head__byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-post-head__byline .blog-avatar {
    width: 44px;
    height: 44px;
}

.blog-post-head__byline-name {
    color: #101828;
    font-weight: 600;
    font-size: 0.95rem;
}

.blog-post-head__byline-sub {
    font-size: 0.82rem;
    color: #667085;
}

.blog-featured-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 2rem;
    background: #f3f4f6;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.blog-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #101828;
    margin-bottom: 2rem;
}

.blog-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.blog-faq {
    margin: 2.5rem 0;
    padding-top: 1.75rem;
    border-top: 1px solid #edf0f4;
}

.blog-faq h3 {
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.blog-faq__item {
    border: 1px solid #edf0f4;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.blog-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #fff;
    border: 0;
    text-align: left;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.98rem;
    color: #101828;
    cursor: pointer;
}

.blog-faq__question i {
    color: #98a2b3;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.blog-faq__item.is-open .blog-faq__question i {
    transform: rotate(180deg);
    color: var(--primary-color, #2464ee);
}

.blog-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: #fafbfc;
}

.blog-faq__item.is-open .blog-faq__answer {
    max-height: 600px;
}

.blog-faq__answer p {
    padding: 0 1.25rem 1.1rem;
    margin: 0;
    color: #475467;
    font-size: 0.92rem;
    line-height: 1.6;
}

.blog-article {
    font-size: 1.06rem;
    line-height: 1.85;
    color: #344054;
}

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

.blog-article h1,
.blog-article h2,
.blog-article h3,
.blog-article h4 {
    color: #101828;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-tags {
    margin: 2.5rem 0;
    padding-top: 1.75rem;
    border-top: 1px solid #edf0f4;
}

.blog-tags__label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #98a2b3;
    margin-bottom: 0.75rem;
}

.blog-tags a {
    display: inline-block;
    background: #f8f9fb;
    color: #344054;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin: 0 0.4rem 0.4rem 0;
    text-decoration: none;
}

.blog-tags a:hover {
    background: var(--primary-light, #e8f0fe);
    color: var(--primary-color, #2464ee);
}

/* Author bio card, end of article */

.blog-author-card {
    display: flex;
    gap: 1.25rem;
    background: #f8f9fb;
    border-radius: 14px;
    padding: 1.75rem;
    margin: 2.5rem 0;
}

.blog-author-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef1f6;
}

.blog-author-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #98a2b3;
    margin-bottom: 0.35rem;
}

.blog-author-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #101828;
    text-decoration: none;
}

.blog-author-card__name:hover {
    color: var(--primary-color, #2464ee);
}

.blog-author-card__role {
    font-size: 0.85rem;
    color: #667085;
    margin-bottom: 0.5rem;
}

.blog-author-card__bio {
    font-size: 0.92rem;
    color: #475467;
    line-height: 1.6;
    margin-bottom: 0;
}

.blog-author-card__social {
    margin-top: 0.75rem;
}

.blog-author-card__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #667085;
    margin-right: 0.5rem;
    text-decoration: none;
    border: 1px solid #edf0f4;
    font-size: 0.85rem;
}

.blog-author-card__social a:hover {
    background: var(--primary-color, #2464ee);
    color: #fff;
    border-color: var(--primary-color, #2464ee);
}

/* Related posts strip */

.blog-related {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #edf0f4;
}

.blog-related h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .blog-sidebar {
        position: static;
        margin-top: 2.5rem;
    }
}

.blog-preview-banner {
    background: #fffbeb;
    color: #92400e;
    border-bottom: 1px solid #fde68a;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-preview-banner i {
    margin-right: 0.4rem;
}
