.single-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 0;
    font-family: "Trebuchet MS", sans-serif;
}

.single-blog-content .entry-title {
    margin-bottom: 10px;
}

.single-blog-content .post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Remove the old small author avatar/name from the meta */
.single-blog-content .post-meta .post-author {
    display: none;
}

/* -------------------------------------------------------
 * Full Author Block - Top of Article
 * ------------------------------------------------------- */
.top-author-profile-block {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 10px 0 30px;
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
}

.top-author-profile-block .author-profile-image img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.top-author-profile-block .author-profile-content h3 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.3;
}

.top-author-profile-block .author-profile-content p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.top-author-profile-block .author-linkedin {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #41a8f5;
}

/* Hide any old bottom author block if it uses this class */
.single-blog-content .author-profile-block {
    display: none !important;
}

/* -------------------------------------------------------
 * Featured Image
 * ------------------------------------------------------- */
.single-blog-content .post-thumbnail {
    margin-bottom: 25px;
}

.single-blog-content .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.single-blog-content .page-content {
    line-height: 1.8;
}

.post-tags {
    margin-top: 20px;
}

/* -------------------------------------------------------
 * D5 FIX: Shared sidebar styles, matching /blog
 * ------------------------------------------------------- */
.lcs-archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lcs-sidebar-box {
    background: #FFFFFF;
    border: 1px solid #D6E2EF;
    border-radius: 14px;
    padding: 24px;
    font-family: "Trebuchet MS", sans-serif;
}

.lcs-sidebar-title {
    margin: 0 0 16px;
    color: #003466;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Categories */
.lcs-categories-list,
.lcs-categories-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lcs-categories-list li {
    border-bottom: 1px solid #EEF3F8;
    padding: 10px 0;
    color: #8A9BB0;
    font-size: 13.5px;
}

.lcs-categories-list li:first-child {
    padding-top: 0;
}

.lcs-categories-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.lcs-categories-list a {
    color: #586A7B;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.lcs-categories-list a:hover {
    color: #298CD8;
}

/* Popular Posts */
.lcs-popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lcs-popular-item {
    border-bottom: 1px solid #EEF3F8;
    padding-bottom: 15px;
}

.lcs-popular-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.lcs-popular-item a {
    display: block;
    color: #003466;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.lcs-popular-item a:hover {
    color: #298CD8;
}

.lcs-popular-date {
    display: block;
    margin-top: 5px;
    color: #8A9BB0;
    font-size: 12px;
}

/* CTA */
.lcs-cta-box {
    background: linear-gradient(160deg, #003466 0%, #002344 100%);
    border-radius: 14px;
    padding: 28px 24px;
    color: #FFFFFF;
    font-family: "Trebuchet MS", sans-serif;
}

.lcs-cta-box h4 {
    margin: 0 0 12px;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.lcs-cta-box p {
    margin: 0 0 18px;
    color: #CFE0F1;
    font-size: 13.5px;
    line-height: 1.6;
}

.lcs-cta-box .lcs-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #298CD8;
    color: #FFFFFF;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.lcs-cta-box .lcs-cta-button:hover {
    background: #41A8F5;
    color: #FFFFFF;
}

.lcs-cta-box .lcs-cta-note {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
    color: #8FB3D6;
    font-size: 12px;
}

/* Newsletter */
.lcs-newsletter-text {
    color: #586A7B;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.lcs-newsletter-form .wpcf7-form p {
    margin: 0;
}

.lcs-newsletter-form .wpcf7-form label {
    display: block;
    font-size: 0;
    line-height: 0;
    color: transparent;
}

.lcs-newsletter-form .wpcf7-form-control-wrap {
    display: block;
}

.lcs-newsletter-form input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #D6E2EF;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 8px;
    outline: none;
    color: #003466;
    background: #FFFFFF;
    box-sizing: border-box;
}

.lcs-newsletter-form input[type="email"]:focus {
    border-color: #298CD8;
    box-shadow: 0 0 0 3px rgba(41, 140, 216, 0.12);
}

.lcs-newsletter-form input[type="submit"] {
    width: 100%;
    padding: 11px;
    background: #298CD8;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.lcs-newsletter-form input[type="submit"]:hover {
    background: #41A8F5;
}

.lcs-newsletter-form .wpcf7-spinner {
    display: none;
}

.lcs-newsletter-form .wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 4px;
}

.lcs-newsletter-form .wpcf7-response-output {
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
}

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

@media (max-width: 600px) {
    .top-author-profile-block {
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .top-author-profile-block .author-profile-image img {
        width: 70px;
        height: 70px;
    }

    .top-author-profile-block .author-profile-content h3 {
        font-size: 20px;
    }

    .lcs-sidebar-box,
    .lcs-cta-box {
        padding: 22px;
    }
}

/* -------------------------------------------------------
 * Elementor version
 * ------------------------------------------------------- */
.lcs-single-elementor {
    font-family: "Trebuchet MS", sans-serif;
}

.lcs-el-stack > .elementor-widget-wrap > .elementor-widget:not(:last-child),
.lcs-el-stack > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget:not(:last-child) {
    margin-bottom: 0;
    margin-block-end: 0;
}

.lcs-el-gap > .elementor-widget-wrap > .elementor-widget:not(:last-child),
.lcs-el-gap > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget:not(:last-child) {
    margin-bottom: 20px;
    margin-block-end: 20px;
}

/* Same 992px breakpoint as the coded template */
@media (max-width: 992px) {
    .lcs-single-elementor .elementor-container,
    .lcs-single-elementor .elementor-row {
        flex-wrap: wrap;
    }

    .lcs-single-elementor .elementor-column.lcs-col-main,
    .lcs-single-elementor .elementor-column.lcs-col-side {
        width: 100% !important;
    }

    .lcs-single-elementor .lcs-col-main > .elementor-widget-wrap,
    .lcs-single-elementor .lcs-col-main > .elementor-column-wrap {
        padding-right: 0 !important;
    }

    .lcs-single-elementor .lcs-col-side > .elementor-widget-wrap,
    .lcs-single-elementor .lcs-col-side > .elementor-column-wrap {
        padding-left: 0 !important;
        padding-top: 40px !important;
    }
}

/* Sticky sidebar (desktop). Top offset is set by assets/js/sticky-sidebar.js */
@media (min-width: 993px) {
    .lcs-archive-sidebar,
    .lcs-col-side > .elementor-widget-wrap,
    .lcs-col-side > .elementor-column-wrap {
        position: sticky;
        top: var(--lcs-sticky-top, 100px);
        align-self: start;
    }

    .lcs-col-side > .elementor-widget-wrap,
    .lcs-col-side > .elementor-column-wrap {
        align-self: flex-start;
    }
}
