.blogs-details {
    --bd-title: #1b1b2f;
    --bd-text: #374151;
    --bd-line: #e5e7eb;
    --bd-hover: #ff5800;
    --bd-muted: #6b7280;

    width: 100%;
    padding-bottom: 60px;
    box-sizing: border-box;
}

.blogs-details *,
.blogs-details *::before,
.blogs-details *::after {
    box-sizing: border-box;
}

/* ---------- Banner ---------- */
.blogs-details .bd-banner {
    width: 100%;
    height: 750px;
    overflow: hidden;
    background: #e5e7eb;
}

.blogs-details .bd-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Two columns: 70% / 30% ---------- */
.blogs-details .bd-container {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 15px 0;
}

.blogs-details .bd-main {
    width: 70%;
    padding-right: 40px;
}

.blogs-details .bd-sidebar {
    width: 30%;
}

/* ---------- Article ---------- */
.blogs-details .bd-title {
    margin: 0 0 12px;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bd-title);
}

.blogs-details .bd-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 28px;
}

.blogs-details .bd-meta-text {
    font-size: 14px;
    color: var(--bd-muted);
}

.blogs-details .bd-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.blogs-details .bd-badge--green  { background: #3db62b; color: #14290f; }
.blogs-details .bd-badge--orange { background: #ff8a00; color: #2a1700; }
.blogs-details .bd-badge--blue   { background: #0b63d6; }
.blogs-details .bd-badge--purple { background: #8a00ff; }

.blogs-details .bd-draft-note {
    margin-bottom: 20px;
    padding: 10px 14px;
    font-size: 14px;
    color: #7a4b00;
    background: #fff4dc;
    border-radius: 6px;
}

.blogs-details .bd-content p {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--bd-text);
}

.blogs-details .bd-content p:last-child {
    margin-bottom: 0;
}

.blogs-details .bd-content h2 {
    margin: 36px 0 14px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bd-title);
}

.blogs-details .bd-content h3 {
    margin: 28px 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bd-title);
}

.blogs-details .bd-content ul {
    margin: 0 0 22px;
    padding-left: 22px;
}

.blogs-details .bd-content li {
    font-size: 17px;
    line-height: 1.85;
    color: var(--bd-text);
}

.blogs-details .bd-content a {
    color: var(--bd-hover);
    text-decoration: underline;
}

/* Tags under the article */
.blogs-details .bd-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0 0;
    padding: 24px 0 0;
    list-style: none;
    border-top: 1px solid var(--bd-line);
}

.blogs-details .bd-back {
    display: inline-block;
    margin-top: 28px;
    font-weight: 700;
    color: var(--bd-title);
    text-decoration: none;
}

.blogs-details .bd-back:hover {
    color: var(--bd-hover);
}

.blogs-details .bd-notfound {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 15px 60px;
    text-align: center;
}

.blogs-details .bd-notfound p {
    font-size: 17px;
    color: var(--bd-muted);
}

/* ---------- Sidebar: Most Read Blogs ---------- */
.blogs-details .bd-sidebar-title {
    margin: 0 0 24px;
    padding-bottom: 14px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bd-title);
    border-bottom: 1px solid var(--bd-line);
}

.blogs-details .bd-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blogs-details .bd-card + .bd-card {
    margin-top: 20px;
}

.blogs-details .bd-card a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.blogs-details .bd-card-img {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    background: #e5e7eb;
}

.blogs-details .bd-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blogs-details .bd-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--bd-title);
    transition: color .2s ease;
}

.blogs-details .bd-card a:hover .bd-card-title {
    color: var(--bd-hover);
}

/* ---------- Sidebar: Categories (below Most Read Blogs) ---------- */
.blogs-details .bd-categories {
    margin-top: 44px;
}

.blogs-details .bd-cat-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blogs-details .bd-cat-item {
    border-bottom: 1px solid var(--bd-line);
}

.blogs-details .bd-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: var(--bd-title);
    text-decoration: none;
    transition: color .2s ease;
}

.blogs-details .bd-cat-link:hover {
    color: var(--bd-hover);
}

.blogs-details .bd-cat-count {
    flex: 0 0 auto;
    min-width: 40px;
    padding: 3px 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: #fff;
    border-radius: 4px;
}

.blogs-details .bd-cat-count--green  { background: #3db62b; color: #14290f; }
.blogs-details .bd-cat-count--orange { background: #ff8a00; color: #2a1700; }
.blogs-details .bd-cat-count--blue   { background: #0b63d6; }
.blogs-details .bd-cat-count--purple { background: #8a00ff; }

/* Tag cloud */
.blogs-details .bd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.blogs-details .bd-tag {
    display: inline-block;
    padding: 6px 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: #1f2230;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s ease;
}

.blogs-details .bd-tag:hover {
    background: var(--bd-hover);
    color: #fff;
}

/* ---------- Tablet / mobile: stack the columns ---------- */
@media (max-width: 991.98px) {
    .blogs-details .bd-banner {
        height: 300px;
    }

    .blogs-details .bd-container {
        flex-direction: column;
        padding-top: 36px;
    }

    .blogs-details .bd-main,
    .blogs-details .bd-sidebar {
        width: 100%;
    }

    .blogs-details .bd-main {
        padding-right: 0;
    }

    .blogs-details .bd-sidebar {
        position: static;
        margin-top: 50px;
    }

    .blogs-details .bd-title {
        font-size: 30px;
    }
}

@media (max-width: 575.98px) {
    .blogs-details .bd-banner {
        height: 220px;
    }

    .blogs-details .bd-title {
        font-size: 25px;
    }

    .blogs-details .bd-content p,
    .blogs-details .bd-content li {
        font-size: 16px;
        line-height: 1.75;
    }

    .blogs-details .bd-content h2 {
        font-size: 23px;
    }
}
/*  */
/* Blog "Leave A Reply" form */

.blog-form {
    --bf-heading: #1b1b2f;
    --bf-text: #4b5563;
    --bf-border: #e0e1ec;
    --bf-focus: #ff5800;
    --bf-button: #20232e;

    max-width: 860px;
    padding: 24px 0;
    box-sizing: border-box;
}

.blog-form *,
.blog-form *::before,
.blog-form *::after {
    box-sizing: border-box;
}

.blog-form .bf-title {
    margin: 0 0 18px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bf-heading);
}

.blog-form .bf-note {
    margin: 0 0 40px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--bf-text);
}

/* Name / Email / Website in one row */
.blog-form .bf-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 18px;
}

.blog-form .bf-field {
    min-width: 0;
}

.blog-form .bf-label {
    display: block;
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--bf-text);
}

.blog-form .bf-input,
.blog-form .bf-textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px;
    color: var(--bf-heading);
    background: #fff;
    border: 2px solid var(--bf-border);
    border-radius: 6px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.blog-form .bf-input {
    height: 50px;
}

.blog-form .bf-textarea {
    height: 150px;
    resize: vertical;
}

.blog-form .bf-input:focus,
.blog-form .bf-textarea:focus {
    outline: none;
    border-color: var(--bf-focus);
    box-shadow: 0 0 0 3px rgba(255, 88, 0, .12);
}

.blog-form .bf-submit {
    height: 48px;
    margin-top: 26px;
    padding: 0 32px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
    background: var(--bf-button);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s ease;
}

.blog-form .bf-submit:hover {
    background: var(--bf-focus);
}

.blog-form .bf-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* Tablet / mobile */
@media (max-width: 767.98px) {
    .blog-form .bf-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-form .bf-title {
        font-size: 26px;
    }

    .blog-form .bf-note {
        margin-bottom: 28px;
    }
}

/* Blog comments list (with one level of replies) */

.blogs-details-commets {
    --bdc-heading: #1b1b2f;
    --bdc-name: #1f2937;
    --bdc-text: #4b5563;
    --bdc-muted: #6b7280;
    --bdc-line: #e5e7eb;
    --bdc-reply-bg: #f6f7f9;
    --bdc-link: #a35a00;

    max-width: 860px;
    padding: 24px 0;
    box-sizing: border-box;
}

.blogs-details-commets *,
.blogs-details-commets *::before,
.blogs-details-commets *::after {
    box-sizing: border-box;
}

.blogs-details-commets .bdc-title {
    margin: 0 0 36px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bdc-heading);
}

/* Lists */
.blogs-details-commets .bdc-list,
.blogs-details-commets .bdc-replies {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* One top-level comment (avatar + body) */
.blogs-details-commets .bdc-item,
.blogs-details-commets .bdc-reply {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.blogs-details-commets .bdc-item + .bdc-item {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--bdc-line);
}

/* Avatar: grey circle with a person icon (swap for an <img> if you have photos) */
.blogs-details-commets .bdc-avatar {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 50%;
    background: #e5e7eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Crect width='56' height='56' fill='%23e5e7eb'/%3E%3Ccircle cx='28' cy='22' r='9' fill='%23a3a9b3'/%3E%3Cpath d='M9 56c0-12 8-20 19-20s19 8 19 20z' fill='%23a3a9b3'/%3E%3C/svg%3E") center / cover no-repeat;
}

.blogs-details-commets .bdc-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blogs-details-commets .bdc-body {
    flex: 1 1 auto;
    min-width: 0;
}

/* Name / date / Reply */
.blogs-details-commets .bdc-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 8px;
}

.blogs-details-commets .bdc-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--bdc-name);
}

.blogs-details-commets .bdc-date {
    font-size: 14px;
    color: var(--bdc-muted);
}

.blogs-details-commets .bdc-reply-link {
    font-size: 14px;
    color: var(--bdc-link);
    text-decoration: none;
}

.blogs-details-commets .bdc-reply-link:hover {
    text-decoration: underline;
}

.blogs-details-commets .bdc-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--bdc-text);
}

/* Reply box */
.blogs-details-commets .bdc-replies {
    margin-top: 22px;
}

.blogs-details-commets .bdc-reply {
    padding: 22px 24px;
    background: var(--bdc-reply-bg);
    border-radius: 8px;
}

.blogs-details-commets .bdc-reply + .bdc-reply {
    margin-top: 14px;
}

.blogs-details-commets .bdc-reply .bdc-avatar {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
}

/* Mobile */
@media (max-width: 575.98px) {
    .blogs-details-commets .bdc-title {
        font-size: 26px;
        margin-bottom: 26px;
    }

    .blogs-details-commets .bdc-item,
    .blogs-details-commets .bdc-reply {
        gap: 12px;
    }

    .blogs-details-commets .bdc-avatar {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .blogs-details-commets .bdc-reply {
        padding: 16px;
    }

    .blogs-details-commets .bdc-reply .bdc-avatar {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .blogs-details-commets .bdc-text {
        font-size: 15px;
        line-height: 1.7;
    }
}