/*==================================================
ARTICLE PAGE
PART 1
==================================================*/

:root {
    --primary-dark: #b21c2b;

    --black: #111111;
    --text: #333333;
    --light-text: #666666;

    --white: #ffffff;
    --bg: #f5f5f5;

    --border: #e5e5e5;

    --transition: .3s ease;

}

/*==================================================
PAGE
==================================================*/

.article-page {

    background: var(--bg);

    padding: 40px 0 80px;

}

.article-page .container {

    width: min(1500px, 95%);

    margin: auto;

}

/*==================================================
BREADCRUMB
==================================================*/

.breadcrumb-section {

    margin-bottom: 30px;

}

.breadcrumb {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    font-size: 14px;

}

.breadcrumb a {

    text-decoration: none;

    color: var(--primary);

    font-weight: 600;

    transition: var(--transition);

}

.breadcrumb a:hover {

    color: var(--primary-dark);

}

.breadcrumb span {

    color: #777;

}

/*==================================================
MAIN SECTION
==================================================*/

.article-main-section {

    margin-bottom: 80px;

}

.article-wrapper {

    display: grid;

    grid-template-columns: minmax(0, 2.2fr) 380px;

    gap: 40px;

    align-items: start;

}

.article-content {

    min-width: 0;

}

.article-sidebar {

    position: sticky;

    top: 110px;

    display: flex;

    flex-direction: column;

    gap: 30px;

}

/*==================================================
ARTICLE HEADER
==================================================*/

.article-header {

    background: var(--white);

    border: 1px solid var(--border);

    padding: 40px;

    margin-bottom: 35px;

}

.article-category {

    display: inline-flex;

    align-items: center;

    padding: 8px 16px;

    background: var(--primary);

    color: #fff;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .5px;

    margin-bottom: 20px;

}

.article-header h1 {

    font-size: 48px;

    line-height: 1.25;

    color: var(--black);

    margin-bottom: 20px;

}

.article-short-description {

    color: var(--light-text);

    font-size: 18px;

    line-height: 1.9;

    margin-bottom: 35px;

}

/*==================================================
META
==================================================*/

.article-meta {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 25px;

    padding-top: 25px;

    border-top: 1px solid var(--border);

}

.author-box {

    display: flex;

    align-items: center;

    gap: 15px;

}

.author-box img {

    width: 60px;

    height: 60px;

    border-radius: 50%;

    object-fit: cover;

}

.author-box span {

    display: block;

    color: var(--light-text);

    font-size: 13px;

    margin-bottom: 4px;

}

.author-box strong {

    color: var(--black);

    font-size: 16px;

}

.meta-item {

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--light-text);

    font-size: 15px;

}

.meta-item svg {

    color: var(--primary);

}

/*==================================================
FEATURE IMAGE
==================================================*/

.article-feature-image {

    background: var(--white);

    border: 1px solid var(--border);

    padding: 20px;

    margin-bottom: 35px;

}

.article-feature-image img {

    width: 100%;

    display: block;

    object-fit: cover;

}

.article-feature-image figcaption {

    margin-top: 15px;

    text-align: center;

    color: var(--light-text);

    font-size: 14px;

    font-style: italic;

}

/*==================================================
SIDEBAR
==================================================*/

.sidebar-widget {

    background: var(--white);

    border: 1px solid var(--border);

    padding: 25px;

    transition: var(--transition);

}

.sidebar-widget:hover {

    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);

}

.sidebar-title {

    font-size: 24px;

    color: var(--black);

    margin-bottom: 25px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--border);

}

/*==================================================
SEARCH
==================================================*/

.sidebar-search-form {

    display: flex;

    flex-direction: column;

    gap: 15px;

}

.sidebar-search-form input {

    width: 100%;

    height: 48px;

    padding: 0 16px;

    border: 1px solid var(--border);

    background: #fff;

    color: var(--text);

    outline: none;

    transition: var(--transition);

}

.sidebar-search-form input:focus {

    border-color: var(--primary);

}

.sidebar-search-form button {

    height: 48px;

    border: none;

    background: var(--primary);

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);

}

.sidebar-search-form button:hover {

    background: var(--primary-dark);

}

/*==================================================
SIDEBAR POSTS
==================================================*/

.sidebar-post-list {

    display: flex;

    flex-direction: column;

    gap: 18px;

}

.sidebar-post {

    border-bottom: 1px solid var(--border);

    padding-bottom: 18px;

}

.sidebar-post:last-child {

    border-bottom: none;

    padding-bottom: 0;

}

.sidebar-post a {

    display: flex;

    gap: 15px;

    text-decoration: none;

    color: inherit;

}

.sidebar-post img {

    width: 95px;

    height: 75px;

    object-fit: cover;

    transition: .4s;

}

.sidebar-post:hover img {

    transform: scale(1.05);

}

.sidebar-post h4 {

    color: var(--black);

    font-size: 15px;

    line-height: 1.5;

    margin-bottom: 8px;

    transition: var(--transition);

}

.sidebar-post:hover h4 {

    color: var(--primary);

}

.sidebar-post time {

    color: var(--light-text);

    font-size: 13px;

}

/*==================================================
CATEGORY LIST
==================================================*/

.category-list {

    display: flex;

    flex-direction: column;

}

.category-item {

    display: block;

    padding: 16px 0;

    text-decoration: none;

    border-bottom: 1px solid var(--border);

    transition: var(--transition);

}

.category-item:last-child {

    border-bottom: none;

}

.category-item span {

    display: block;

    color: var(--black);

    font-weight: 600;

    margin-bottom: 6px;

    transition: var(--transition);

}

.category-item small {

    display: block;

    color: var(--light-text);

    line-height: 1.5;

}

.category-item:hover {

    padding-left: 8px;

}

.category-item:hover span {

    color: var(--primary);

}

/*==================================================
ADVERTISEMENT
==================================================*/

.sidebar-ad {

    background: #fafafa;

    border: 2px dashed #d6d6d6;

    min-height: 600px;

    display: flex;

    justify-content: center;

    align-items: center;

    color: #999;

    font-size: 22px;

    font-weight: 700;

}

.sidebar-ad img {

    width: 100%;

    display: block;

}

/*==================================================
ARTICLE PAGE
PART 2
ARTICLE BODY
==================================================*/

/*==================================================
ARTICLE BODY
==================================================*/

.article-body {

    background: var(--white);

    border: 1px solid var(--border);

    padding: 45px;

    font-size: 17px;

    line-height: 2;

    color: var(--text);

}

.article-body>*:first-child {

    margin-top: 0;

}

.article-body>*:last-child {

    margin-bottom: 0;

}

/*==================================================
HEADINGS
==================================================*/

.article-body h2 {

    font-size: 36px;

    line-height: 1.3;

    color: var(--black);

    margin: 60px 0 20px;

}

.article-body h3 {

    font-size: 28px;

    line-height: 1.35;

    color: var(--black);

    margin: 45px 0 18px;

}

.article-body h4 {

    font-size: 22px;

    line-height: 1.4;

    color: var(--black);

    margin: 35px 0 16px;

}

.article-body h5 {

    font-size: 18px;

    margin: 28px 0 14px;

    color: var(--black);

}

.article-body h6 {

    font-size: 16px;

    margin: 25px 0 12px;

    color: var(--black);

}

/*==================================================
PARAGRAPHS
==================================================*/

.article-body p {

    margin-bottom: 24px;

    color: var(--text);

}

.first-paragraph {

    font-size: 20px;

    color: #444;

    line-height: 2;

}

/*==================================================
LINKS
==================================================*/

.article-body a {

    color: var(--primary);

    text-decoration: none;

    font-weight: 500;

}

.article-body a:hover {

    text-decoration: underline;

}

/*==================================================
STRONG / EMPHASIS
==================================================*/

.article-body strong {

    color: var(--black);

    font-weight: 700;

}

.article-body em {

    font-style: italic;

}

/*==================================================
LISTS
==================================================*/

.article-body ul,
.article-body ol {

    margin: 30px 0;

    padding-left: 30px;

}

.article-body li {

    margin-bottom: 14px;

    line-height: 1.9;

    color: var(--text);

}

.article-body ul li::marker {

    color: var(--primary);

}

.article-body ol li::marker {

    color: var(--primary);

    font-weight: 700;

}

/*==================================================
BLOCKQUOTE
==================================================*/

.article-body blockquote {

    margin: 45px 0;

    padding: 30px;

    background: #fafafa;

    border-left: 5px solid var(--primary);

    font-size: 22px;

    line-height: 1.8;

    font-style: italic;

    color: #555;

    position: relative;

}

.article-body blockquote::before {

    content: "“";

    position: absolute;

    left: 18px;

    top: -15px;

    font-size: 70px;

    color: #ddd;

    line-height: 1;

}

/*==================================================
IMAGES
==================================================*/

.article-inline-image {

    margin: 45px 0;

}

.article-inline-image img {

    width: 100%;

    display: block;

    object-fit: cover;

}

.article-inline-image figcaption {

    text-align: center;

    margin-top: 12px;

    color: var(--light-text);

    font-size: 14px;

    font-style: italic;

}

/*==================================================
CODE BLOCK
==================================================*/

.article-body pre {

    margin: 40px 0;

    padding: 24px;

    overflow: auto;

    background: #fafafa;

    border: 1px solid var(--border);

    border-radius: 6px;

}

.article-body code {

    font-family:

        Consolas,

        Monaco,

        "Courier New",

        monospace;

    font-size: 15px;

    color: #222;

}

.article-body :not(pre)>code {

    padding: 3px 7px;

    background: #f3f3f3;

    color: var(--primary);

    border-radius: 4px;

}

/*==================================================
TABLE
==================================================*/

.article-table-wrapper {

    margin: 45px 0;

    overflow-x: auto;

}

.article-table {

    width: 100%;

    border-collapse: collapse;

    min-width: 650px;

}

.article-table thead {

    background: #fafafa;

}

.article-table th {

    padding: 18px;

    text-align: left;

    border: 1px solid var(--border);

    color: var(--black);

    font-weight: 700;

}

.article-table td {

    padding: 16px 18px;

    border: 1px solid var(--border);

    color: var(--text);

}

.article-table tbody tr:nth-child(even) {

    background: #fcfcfc;

}

.article-table tbody tr:hover {

    background: #f5f5f5;

}

/*==================================================
HR
==================================================*/

.article-body hr {

    margin: 50px 0;

    border: none;

    border-top: 1px solid var(--border);

}

/*==================================================
TAGS
==================================================*/

.article-tags {

    margin-top: 50px;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 12px;

}

.article-tags span {

    font-weight: 700;

    color: var(--black);

}

.article-tags a {

    text-decoration: none;

    background: #fff;

    border: 1px solid var(--border);

    padding: 10px 18px;

    color: var(--text);

    transition: var(--transition);

}

.article-tags a:hover {

    background: var(--primary);

    border-color: var(--primary);

    color: #fff;

}

/*==================================================
ACTION BUTTONS
==================================================*/

.article-actions {

    margin-top: 45px;

    padding-top: 35px;

    border-top: 1px solid var(--border);

    display: flex;

    flex-wrap: wrap;

    gap: 15px;

}

.action-btn {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px 22px;

    background: #fff;

    border: 1px solid var(--border);

    color: var(--text);

    cursor: pointer;

    font-size: 15px;

    transition: var(--transition);

}

.action-btn:hover {

    background: var(--primary);

    border-color: var(--primary);

    color: #fff;

    transform: translateY(-2px);

}

.action-btn span {

    font-weight: 600;

}

/*==================================================
ARTICLE PAGE
PART 3
COMMENTS • RELATED ARTICLES • RESPONSIVE
==================================================*/

/*==================================================
COMMENTS
==================================================*/

.comments-section {

    margin-top: 70px;

    background: var(--white);

    border: 1px solid var(--border);

    padding: 40px;

}

.comments-section h2 {

    font-size: 34px;

    color: var(--black);

    margin-bottom: 35px;

}

/*==================================================
COMMENT FORM
==================================================*/

.comment-form {

    margin-bottom: 55px;

}

.comment-row {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 20px;

}

.input-group {

    display: flex;

    flex-direction: column;

}

.input-group label {

    margin-bottom: 10px;

    color: var(--black);

    font-weight: 600;

}

.input-group input,
.input-group textarea {

    width: 100%;

    padding: 15px 18px;

    border: 1px solid var(--border);

    background: #fff;

    color: var(--text);

    outline: none;

    transition: var(--transition);

    resize: vertical;

}

.input-group input:focus,
.input-group textarea:focus {

    border-color: var(--primary);

}

.input-group textarea {

    min-height: 180px;

}

.submit-comment-btn {

    display: inline-flex;

    justify-content: center;

    align-items: center;

    padding: 15px 36px;

    margin-top: 25px;

    background: var(--primary);

    color: #fff;

    border: none;

    cursor: pointer;

    font-size: 15px;

    font-weight: 600;

    transition: var(--transition);

}

.submit-comment-btn:hover {

    background: var(--primary-dark);

}

/*==================================================
COMMENTS LIST
==================================================*/

.comments-list {

    display: flex;

    flex-direction: column;

    gap: 25px;

}

.comment-card {

    display: flex;

    gap: 20px;

    padding: 25px;

    border: 1px solid var(--border);

    background: #fff;

}

.comment-card img {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

}

.comment-content {

    flex: 1;

}

.comment-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 15px;

}

.comment-header h4 {

    color: var(--black);

    font-size: 18px;

}

.comment-header time {

    color: var(--light-text);

    font-size: 14px;

}

.comment-content p {

    color: var(--text);

    line-height: 1.8;

}

/*==================================================
RELATED ARTICLES
==================================================*/

.related-articles-section {

    margin-top: 80px;

}

.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 35px;

}

.section-heading h2 {

    font-size: 36px;

    color: var(--black);

}

.show-all-blog-btn {

    color: white;

    text-decoration: none;

    font-weight: 600;

    transition: var(--transition);

}

.show-all-blog-btn:hover {

    color: var(--primary-dark);

}

.related-articles-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.related-card {

    background: #fff;

    border: 1px solid var(--border);

    overflow: hidden;

    transition: var(--transition);

}

.related-card:hover {

    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);

}

.related-card a {

    display: block;

    text-decoration: none;

    color: inherit;

}

.related-card img {

    width: 100%;

    aspect-ratio: 16/10;

    object-fit: cover;

    transition: .45s;

}

.related-card:hover img {

    transform: scale(1.05);

}

.related-content {

    padding: 24px;

}

.related-category {

    display: inline-block;

    margin-bottom: 14px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

}

.related-content h3 {

    font-size: 22px;

    color: var(--black);

    line-height: 1.45;

    margin-bottom: 18px;

    transition: var(--transition);

}

.related-card:hover h3 {

    color: var(--primary);

}

.related-content time {

    color: var(--light-text);

    font-size: 14px;

}

/*==================================================
SCROLLBAR
==================================================*/

.article-body pre::-webkit-scrollbar,
.article-table-wrapper::-webkit-scrollbar {

    height: 8px;

}

.article-body pre::-webkit-scrollbar-thumb,
.article-table-wrapper::-webkit-scrollbar-thumb {

    background: var(--primary);

}

/*==================================================
LAPTOP
==================================================*/

@media(max-width:1200px) {

    .article-wrapper {

        grid-template-columns: 1fr 330px;

        gap: 30px;

    }

    .article-header h1 {

        font-size: 40px;

    }

}

/*==================================================
TABLET
==================================================*/

@media(max-width:992px) {

    .article-wrapper {

        grid-template-columns: 1fr;

    }

    .article-sidebar {

        position: static;

    }

    .related-articles-grid {

        grid-template-columns: repeat(2, 1fr);

    }

    .article-header h1 {

        font-size: 34px;

    }

}

/*==================================================
MOBILE
==================================================*/

@media(max-width:768px) {

    .article-header {

        padding: 25px;

    }

    .article-feature-image {

        padding: 15px;

    }

    .article-body {

        padding: 25px;

    }

    .comments-section {

        padding: 25px;

    }

    .article-header h1 {

        font-size: 30px;

    }

    .article-short-description {

        font-size: 16px;

    }

    .comment-row {

        grid-template-columns: 1fr;

    }

    .section-heading {

        flex-direction: column;

        align-items: flex-start;

    }

    .related-articles-grid {

        grid-template-columns: 1fr;

    }

    .article-actions {

        justify-content: center;

    }

    .action-btn {

        flex: 1 1 calc(50% - 10px);

        justify-content: center;

    }

    .comment-card {

        flex-direction: column;

    }

}

/*==================================================
SMALL MOBILE
==================================================*/

@media(max-width:576px) {

    .article-page {

        padding: 25px 0 60px;

    }

    .article-header h1 {

        font-size: 26px;

    }

    .article-short-description {

        font-size: 15px;

    }

    .article-body {

        font-size: 16px;

        padding: 20px;

    }

    .article-body h2 {

        font-size: 28px;

    }

    .article-body h3 {

        font-size: 24px;

    }

    .article-body blockquote {

        padding: 20px;

        font-size: 18px;

    }

    .action-btn {

        flex: 1 1 100%;

    }

    .sidebar-widget {

        padding: 20px;

    }

    .author-box {

        width: 100%;

    }

}

/*==================================================
PRINT
==================================================*/

@media print {

    .breadcrumb-section,
    .article-sidebar,
    .comments-section,
    .article-actions,
    .related-articles-section {

        display: none;

    }

    .article-wrapper {

        display: block;

    }

    .article-content {

        width: 100%;

    }

    body {

        background: #fff;

        color: #000;

    }

}


.bq-container {
    display: flex;
    justify-content: center;
    width: 100%;
}


.no-comments {
    margin: 30px 0;
    padding: 40px 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    background: #f8fafc;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    line-height: 1.7;
}

.no-comments::before {
    content: "💬";
    display: block;
    font-size: 2.5rem;
    margin-bottom: 12px;
}