/*******************************************************************************
  File Name: root/assets/css/post-content.css
  Purpose  : Article Content + Dynamic Blocks
*******************************************************************************/

/* =====================================================
   CONTENT AREA
===================================================== */
.content-area {
    font-size: 17px;
    line-height: 1.9;
    color: #343a40;
}

/* =====================================================
   HEADINGS
===================================================== */
.content-area h2 {
    margin-top: 50px;
    margin-bottom: 18px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    scroll-margin-top: 90px;
}

.content-area h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
    scroll-margin-top: 90px;
}

.content-area h4 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
}

/* =====================================================
   PARAGRAPHS
===================================================== */
.content-area p {
    margin-bottom: 22px;
    text-align: justify;
    color: #444;
    font-size: 17px;
    line-height: 1.9;
}

/* =====================================================
   LINKS
===================================================== */
.content-area a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

.content-area a:hover {
    text-decoration: underline;
}

/* =====================================================
   LISTS
===================================================== */
.content-area ul,
.content-area ol {
    margin-bottom: 25px;
    padding-left: 24px;
}

.content-area li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* =====================================================
   BLOCKQUOTE
===================================================== */
.content-area blockquote {
    margin: 35px 0;
    padding: 25px;
    background: #f8f9fa;
    border-left: 5px solid #0d6efd;
    font-style: italic;
}

/* =====================================================
   TABLE
===================================================== */
.content-area table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.content-area th,
.content-area td {
    border: 1px solid #dee2e6;
    padding: 12px;
}

.content-area th {
    background: #f8f9fa;
}

/* =====================================================
   POST IMAGE
===================================================== */
.post-image-wrapper {
    margin: 45px 0 55px;
    text-align: center;
}

.post-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    border: 1px solid #ececec;
    background: #f8f9fa;
}

.post-image-title {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    font-style: italic;
}

/* =====================================================
   CONTENT IMAGES
===================================================== */
.content-area {
    img {
        display: block;
        width: 100%;
        max-width: 100%;
        max-height: 500px;
        margin: 45px auto;
        object-fit: cover;
        object-position: center;
        border: 1px solid #ececec;
        background: #f8f9fa;
    }

    figure {
        margin: 45px 0 55px;

        img {
            margin: 0 auto;
        }
    }

    figcaption {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.6;
        color: #6c757d;
        text-align: center;
        font-style: italic;
    }
}

/* =====================================================
   TOC
===================================================== */
#post-toc {
    margin: 35px 0;
}

#post-toc .accordion {
    border: 1px solid #dee2e6;
}

#post-toc .accordion-item {
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

#post-toc .accordion-header {
    margin: 0;
}

#post-toc .accordion-button {
    padding: 18px 22px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    background: #ffffff;
    box-shadow: none;
}

#post-toc .accordion-button:not(.collapsed) {
    background: #eef4ff;
    color: #0d6efd;
    box-shadow: none;
}

#post-toc .accordion-button:focus {
    box-shadow: none;
}

#post-toc .accordion-button::after {
    background-size: 18px;
}

#post-toc .accordion-body {
    padding: 20px 24px;
    background: #ffffff;
}

#post-toc .toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#post-toc .toc-list li {
    margin: 0 0 14px 0;
    padding: 0;
}

#post-toc .toc-list li:last-child {
    margin-bottom: 0;
}

#post-toc .toc-list a {
    display: block;
    color: #0d6efd;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

#post-toc .toc-list a:hover {
    color: #084298;
    text-decoration: underline;
    padding-left: 6px;
}

#post-toc .toc-list a:focus {
    outline: none;
}

html {
    scroll-behavior: smooth;
}

/* =====================================================
   RELATED POSTS
===================================================== */
.related-posts-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* =====================================================
   BANNERS
===================================================== */
.banner-left,
.banner-right {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border: 1px solid #ececec;
}

/* =====================================================
   FAQ
===================================================== */
.faq-block {
    margin: 50px 0;
}

.faq-item {
    border: 1px solid #ececec;
    margin-bottom: 12px;
}

.faq-question {
    padding: 16px;
    font-weight: 700;
    cursor: pointer;
    background: #f8f9fa;
}

.faq-answer {
    padding: 16px;
}

/* =====================================================
   AUTHOR BOX
===================================================== */
.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 50px 0;
    padding: 25px;
    border: 1px solid #ececec;
    background: #fafafa;
}

.author-box img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50% !important;
}

.author-box-content {
    flex: 1;
}

/* =====================================================
   CODE
===================================================== */
.content-area pre {
    overflow-x: auto;
    padding: 20px;
    background: #111827;
    color: #ffffff;
    margin: 30px 0;
}

.content-area code {
    background: #f5f5f5;
    padding: 2px 6px;
}

/* =====================================================
   HR
===================================================== */
.content-area hr {
    margin: 40px 0;
}

/* =====================================================
   MOBILE RESPONSIVENESS
===================================================== */
@media (max-width: 768px) {
    .content-area {
        font-size: 16px;
    }
    
    .content-area h2 {
        font-size: 28px;
        margin-top: 35px;
    }
    
    .content-area h3 {
        font-size: 24px;
    }
    
    .content-area p {
        font-size: 16px;
        text-align: left;
    }

    #post-toc {
        margin: 25px 0;
    }

    #post-toc .accordion-button {
        padding: 16px 18px;
        font-size: 1.1rem;
    }

    #post-toc .accordion-body {
        padding: 16px 18px;
    }

    #post-toc .toc-list a {
        font-size: 1rem;
    }
    
    .related-posts-block {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================
   BANNER LEFT and BANNER RIGHT CARD
===================================================== */

.banner-card {
    margin: 40px 0;
}

.banner-card-link {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: .2s;
}

.banner-card-link:hover {
    text-decoration: none !important;
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.banner-card-image {
    width: 30%;
    flex-shrink: 0;
}

.banner-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.banner-card-content {
    width: 70%;
    padding: 25px 30px;
}

.banner-card-label {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0d6efd;
    background: #eef4ff;
    border-radius: 20px;
    margin-bottom: 15px;
}

.banner-card-title {
    margin: 0 0 12px 0 !important;
    font-size: 24px !important;
    line-height: 1.4;
    color: #111827 !important;
}

.banner-card-snippet {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.banner-card-read {
    color: #111827;
    font-weight: 700;
}

/* ===============
   LEFT / RIGHT
================ */

.banner-left-layout .banner-card-link {
    flex-direction: row;
}

.banner-right-layout .banner-card-link {
    flex-direction: row-reverse;
}

@media (max-width:768px) {

    .banner-card-link {
        display: block;
    }

    .banner-card-image,
    .banner-card-content {
        width: 100%;
    }

    .banner-card-image img {
        height: 220px;
    }

    .banner-card-content {
        padding: 25px;
    }

    .banner-card-title {
        font-size: 22px !important;
    }

}

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

.advertisement-block{
    margin:40px 0;
    padding:20px;
    border:1px dashed #ced4da;
    background:#fafafa;
    text-align:center;
    min-height:120px;
}

.advertisement-block::before{
    content:"Advertisement";
    display:block;
    font-size:13px;
    color:#6c757d;
    margin-bottom:10px;
    text-transform:uppercase;
    letter-spacing:1px;
}