/*
==========================================================
Qalamation
Single Article
==========================================================
*/


/*
|--------------------------------------------------------------------------
| Reading Progress
|--------------------------------------------------------------------------
*/

.article-reading-progress {

    position: fixed;

    top: 0;

    left: 0;

    z-index: 9999;

    width: 100%;

    height: 4px;

    background:
        rgba(
            25,
            135,
            84,
            0.08
        );

}

.article-reading-progress span {

    display: block;

    width: 0;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            #198754,
            #46b77a
        );

    transition:
        width 0.08s linear;

}


/*
|--------------------------------------------------------------------------
| Article Header
|--------------------------------------------------------------------------
*/

.article-header {

    position: relative;

    padding: 85px 0 125px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 85% 20%,
            rgba(25, 135, 84, 0.1),
            transparent 30%
        ),

        #f8fcfa;

}

.article-header::before {

    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.3;

    background-image:

        linear-gradient(
            rgba(25, 135, 84, 0.05)
            1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(25, 135, 84, 0.05)
            1px,
            transparent 1px
        );

    background-size: 55px 55px;

}

.article-header-decoration {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

}

.article-header-decoration-one {

    width: 300px;

    height: 300px;

    right: -130px;

    top: -160px;

    border:
        60px solid
        rgba(
            25,
            135,
            84,
            0.05
        );

}

.article-header-decoration-two {

    width: 160px;

    height: 160px;

    left: -80px;

    bottom: -80px;

    background:
        rgba(
            25,
            135,
            84,
            0.05
        );

}

.article-header-inner {

    position: relative;

    z-index: 2;

    max-width: 980px;

    margin: 0 auto;

    text-align: center;

}


/*
|--------------------------------------------------------------------------
| Breadcrumb
|--------------------------------------------------------------------------
*/

.article-breadcrumb {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    margin-bottom: 35px;

}

.article-breadcrumb a {

    color: #7b8d83;

    text-decoration: none;

    font-size: 11px;

}

.article-breadcrumb a:hover {

    color: #198754;

}

.article-breadcrumb i {

    color: #b2bdb7;

    font-size: 7px;

}


/*
|--------------------------------------------------------------------------
| Category
|--------------------------------------------------------------------------
*/

.article-header-category {

    display: inline-flex;

    padding: 8px 15px;

    border-radius: 50px;

    color: #198754;

    background:
        rgba(
            25,
            135,
            84,
            0.09
        );

    text-decoration: none;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

}

.article-header-category:hover {

    color: #ffffff;

    background: #198754;

}


/*
|--------------------------------------------------------------------------
| Header Title
|--------------------------------------------------------------------------
*/

.article-header h1 {

    max-width: 950px;

    margin: 27px auto 0;

    color: #17281f;

    font-size: clamp(
        48px,
        6vw,
        78px
    );

    font-weight: 800;

    line-height: 1.04;

    letter-spacing: -4px;

}

.article-header-excerpt {

    max-width: 760px;

    margin: 30px auto 0;

    color: #687970;

    font-family: Georgia, serif;

    font-size: 20px;

    line-height: 1.75;

}


/*
|--------------------------------------------------------------------------
| Header Meta
|--------------------------------------------------------------------------
*/

.article-header-meta {

    margin-top: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 22px;

}

.article-header-author {

    display: flex;

    align-items: center;

    gap: 12px;

    text-align: left;

}

.article-header-avatar {

    width: 48px;

    height: 48px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #198754,
            #35aa70
        );

    font-size: 15px;

    font-weight: 800;

    box-shadow:
        0 10px 25px
        rgba(
            25,
            135,
            84,
            0.22
        );

}

.article-header-author strong,
.article-header-author span {

    display: block;

}

.article-header-author strong {

    color: #30443a;

    font-size: 13px;

}

.article-header-author span {

    margin-top: 3px;

    color: #93a098;

    font-size: 10px;

}

.article-meta-divider {

    width: 1px;

    height: 36px;

    background: #dce5e0;

}

.article-meta-item {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #7e8e85;

    font-size: 11px;

}

.article-meta-item i {

    color: #198754;

}


/*
|--------------------------------------------------------------------------
| Featured Image
|--------------------------------------------------------------------------
*/

.article-featured-image-section {

    position: relative;

    z-index: 3;

    margin-top: -70px;

}

.article-featured-image {

    position: relative;

    height: 650px;

    border-radius: 30px;

    overflow: hidden;

    background: #e7efeb;

    box-shadow:
        0 35px 80px
        rgba(
            27,
            63,
            43,
            0.16
        );

}

.article-featured-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(13, 34, 22, 0.25),
            transparent 45%
        );

}

.article-featured-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.article-featured-label {

    position: absolute;

    z-index: 2;

    left: 30px;

    bottom: 30px;

    padding: 11px 17px;

    border-radius: 50px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #26382f;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    backdrop-filter: blur(8px);

    font-size: 11px;

    font-weight: 700;

}

.article-featured-label i {

    color: #e6a21a;

}


/*
|--------------------------------------------------------------------------
| Reading Section
|--------------------------------------------------------------------------
*/

.article-reading-section {

    padding: 105px 0 75px;

    background: #ffffff;

}

.article-reading-layout {

    display: grid;

    grid-template-columns:
        90px
        minmax(0, 760px)
        220px;

    justify-content: center;

    align-items: start;

    gap: 50px;

}


/*
|--------------------------------------------------------------------------
| Share Sidebar
|--------------------------------------------------------------------------
*/

.article-share-sidebar {

    position: sticky;

    top: 110px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 11px;

}

.article-share-title {

    margin-bottom: 5px;

    color: #9aa69f;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;

}

.article-share-button {

    width: 44px;

    height: 44px;

    border: 1px solid #e0e8e4;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #73847a;

    background: #ffffff;

    font-size: 13px;

    transition: 0.2s ease;

}

.article-share-button:hover {

    color: #ffffff;

    background: #198754;

    border-color: #198754;

    transform: translateY(-3px);

}

.article-share-button.copied {

    color: #ffffff;

    background: #198754;

    border-color: #198754;

}

.article-share-line {

    width: 1px;

    height: 30px;

    margin: 4px 0;

    background: #dfe7e3;

}


/*
|--------------------------------------------------------------------------
| CKEditor Article Content
|--------------------------------------------------------------------------
*/

.article-reading-content {

    min-width: 0;

    color: #34443b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;

    line-height: 1.95;

}

.article-reading-content > *:first-child {

    margin-top: 0;

}

.article-reading-content p {

    margin: 0 0 30px;

}

.article-reading-content h1,
.article-reading-content h2,
.article-reading-content h3,
.article-reading-content h4,
.article-reading-content h5,
.article-reading-content h6 {

    color: #192b21;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -1px;

}

.article-reading-content h1 {

    margin: 60px 0 25px;

    font-size: 43px;

}

.article-reading-content h2 {

    margin: 55px 0 24px;

    font-size: 36px;

}

.article-reading-content h3 {

    margin: 45px 0 20px;

    font-size: 29px;

}

.article-reading-content h4 {

    margin: 40px 0 18px;

    font-size: 23px;

}

.article-reading-content strong {

    color: #21372b;

    font-weight: 700;

}

.article-reading-content a {

    color: #198754;

    text-decoration:
        underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 4px;

}

.article-reading-content blockquote {

    position: relative;

    margin: 50px 0;

    padding:
        35px
        40px
        35px
        48px;

    border-left:
        4px solid
        #198754;

    border-radius:
        0
        18px
        18px
        0;

    color: #31503f;

    background: #f4faf6;

    font-size: 23px;

    font-style: italic;

    line-height: 1.7;

}

.article-reading-content blockquote::before {

    content: "\201C";

    position: absolute;

    right: 25px;

    top: 5px;

    color:
        rgba(
            25,
            135,
            84,
            0.1
        );

    font-size: 90px;

    line-height: 1;

}

.article-reading-content blockquote p {

    margin: 0;

}

.article-reading-content ul,
.article-reading-content ol {

    margin: 30px 0;

    padding-left: 30px;

}

.article-reading-content li {

    margin-bottom: 13px;

    padding-left: 7px;

}

.article-reading-content li::marker {

    color: #198754;

}

.article-reading-content img {

    max-width: 100%;

    height: auto;

    margin: 35px 0;

    border-radius: 20px;

}

.article-reading-content figure {

    margin: 45px 0;

}

.article-reading-content figure img {

    width: 100%;

    margin: 0;

}

.article-reading-content figcaption {

    margin-top: 12px;

    color: #89968f;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    text-align: center;

}

.article-reading-content table {

    width: 100%;

    margin: 35px 0;

    border-collapse: collapse;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

}

.article-reading-content th,
.article-reading-content td {

    padding: 15px;

    border: 1px solid #dfe7e3;

    text-align: left;

}

.article-reading-content th {

    color: #ffffff;

    background: #198754;

}

.article-reading-content hr {

    margin: 55px 0;

    border: 0;

    border-top: 1px solid #dfe7e3;

}


/*
|--------------------------------------------------------------------------
| Reading Info
|--------------------------------------------------------------------------
*/

.article-reading-info {

    position: sticky;

    top: 110px;

}

.article-reading-info-card {

    padding: 23px;

    border: 1px solid #e2eae6;

    border-radius: 18px;

    background: #fafcfb;

}

.article-reading-info-card
+ .article-reading-info-card {

    margin-top: 15px;

}

.article-info-label {

    display: block;

    margin-bottom: 12px;

    color: #198754;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;

}

.article-reading-info-card strong {

    display: block;

    color: #233a2e;

    font-size: 27px;

    font-weight: 800;

}

.article-reading-info-card p {

    margin: 11px 0 0;

    color: #84928a;

    font-size: 11px;

    line-height: 1.7;

}

.article-reading-info-card a {

    color: #2e4639;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

}

.article-reading-info-card a:hover {

    color: #198754;

}


/*
|--------------------------------------------------------------------------
| Mobile Share
|--------------------------------------------------------------------------
*/

.article-mobile-share {

    display: none;

}


/*
|--------------------------------------------------------------------------
| Author Section
|--------------------------------------------------------------------------
*/

.article-author-section {

    padding: 30px 0 100px;

    background: #ffffff;

}

.article-author-card {

    position: relative;

    max-width: 950px;

    min-height: 230px;

    margin: 0 auto;

    padding: 45px 55px;

    border-radius: 27px;

    display: flex;

    align-items: center;

    gap: 35px;

    overflow: hidden;

    background:
        linear-gradient(
            125deg,
            #f2faf5,
            #f8fcfa
        );

    border: 1px solid #dce9e1;

}

.article-author-large-avatar {

    width: 110px;

    height: 110px;

    min-width: 110px;

    border-radius: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #198754,
            #3cb176
        );

    font-size: 36px;

    font-weight: 800;

    box-shadow:
        0 20px 40px
        rgba(
            25,
            135,
            84,
            0.2
        );

}

.article-author-card-content {

    position: relative;

    z-index: 2;

    max-width: 590px;

}

.article-author-card-content > span {

    color: #198754;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.7px;

}

.article-author-card-content h3 {

    margin: 9px 0 0;

    color: #21372b;

    font-size: 29px;

    font-weight: 800;

}

.article-author-card-content p {

    margin: 13px 0 0;

    color: #708078;

    font-size: 13px;

    line-height: 1.8;

}

.article-author-decoration {

    position: absolute;

    right: -20px;

    bottom: -50px;

    color:
        rgba(
            25,
            135,
            84,
            0.06
        );

    font-size: 190px;

    transform: rotate(-20deg);

}


/*
|--------------------------------------------------------------------------
| Related Articles
|--------------------------------------------------------------------------
*/

.article-related-section {

    padding: 100px 0 120px;

    background: #f8fbf9;

}

.article-related-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 40px;

}

.article-related-heading span {

    display: block;

    margin-bottom: 9px;

    color: #198754;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

}

.article-related-heading h2 {

    margin: 0;

    color: #1e3328;

    font-size: 40px;

    font-weight: 800;

    letter-spacing: -1.7px;

}

.article-related-heading > a {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #198754;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

}

.article-related-heading > a i {

    transition: transform 0.2s ease;

}

.article-related-heading > a:hover i {

    transform: translateX(5px);

}

.article-related-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 27px;

}

.article-related-card {

    border-radius: 21px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1e9e5;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}

.article-related-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 20px 50px
        rgba(
            31,
            66,
            47,
            0.1
        );

}

.article-related-image {

    position: relative;

    display: block;

    height: 230px;

    overflow: hidden;

    background: #e8efeb;

}

.article-related-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;

}

.article-related-card:hover
.article-related-image img {

    transform: scale(1.06);

}

.article-related-image > span {

    position: absolute;

    right: 17px;

    bottom: 17px;

    width: 43px;

    height: 43px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    background: #198754;

    font-size: 11px;

    transform: rotate(-35deg);

    transition: transform 0.25s ease;

}

.article-related-card:hover
.article-related-image > span {

    transform: rotate(0);

}

.article-related-content {

    padding: 25px;

}

.article-related-category {

    color: #198754;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

}

.article-related-content h3 {

    margin: 15px 0 0;

}

.article-related-content h3 a {

    color: #263a30;

    text-decoration: none;

    font-size: 20px;

    font-weight: 750;

    line-height: 1.4;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

}

.article-related-content h3 a:hover {

    color: #198754;

}

.article-related-meta {

    margin-top: 20px;

    display: flex;

    align-items: center;

    gap: 9px;

    color: #8a9890;

    font-size: 10px;

}

.article-related-meta i {

    width: 3px;

    height: 3px;

    border-radius: 50%;

    background: #a6b2ab;

}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (
    max-width: 1199.98px
) {

    .article-reading-layout {

        grid-template-columns:
            70px
            minmax(0, 760px);

        gap: 35px;

    }

    .article-reading-info {

        display: none;

    }

}


@media (
    max-width: 991.98px
) {

    .article-header {

        padding:
            75px 0
            115px;

    }

    .article-featured-image {

        height: 520px;

    }

    .article-reading-layout {

        grid-template-columns:
            60px
            minmax(0, 1fr);

        gap: 30px;

    }

    .article-related-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

    }

    .article-related-card:last-child {

        display: none;

    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (
    max-width: 767.98px
) {

    .article-header {

        padding:
            55px 0
            90px;

    }

    .article-breadcrumb {

        margin-bottom: 28px;

        overflow-x: auto;

        justify-content: flex-start;

        scrollbar-width: none;

    }

    .article-breadcrumb::-webkit-scrollbar {

        display: none;

    }

    .article-breadcrumb a {

        white-space: nowrap;

    }

    .article-header h1 {

        margin-top: 23px;

        font-size: 45px;

        letter-spacing: -2.5px;

    }

    .article-header-excerpt {

        font-size: 17px;

        line-height: 1.7;

    }

    .article-header-meta {

        margin-top: 35px;

        gap: 15px;

    }

    .article-header-author {

        width: 100%;

        justify-content: center;

        margin-bottom: 5px;

    }

    .article-meta-divider {

        display: none;

    }

    .article-meta-item {

        font-size: 10px;

    }


    /*
    |--------------------------------------------------------------------------
    | Featured Image
    |--------------------------------------------------------------------------
    */

    .article-featured-image-section {

        margin-top: -50px;

    }

    .article-featured-image {

        height: 350px;

        border-radius: 22px;

    }

    .article-featured-label {

        left: 18px;

        bottom: 18px;

    }


    /*
    |--------------------------------------------------------------------------
    | Reading
    |--------------------------------------------------------------------------
    */

    .article-reading-section {

        padding:
            70px 0
            45px;

    }

    .article-reading-layout {

        display: block;

    }

    .article-share-sidebar {

        display: none;

    }

    .article-reading-content {

        font-size: 18px;

        line-height: 1.9;

    }

    .article-reading-content h1 {

        font-size: 35px;

    }

    .article-reading-content h2 {

        font-size: 30px;

    }

    .article-reading-content h3 {

        font-size: 25px;

    }

    .article-reading-content blockquote {

        margin: 40px 0;

        padding:
            30px
            25px
            30px
            30px;

        font-size: 20px;

    }

    .article-reading-content table {

        display: block;

        overflow-x: auto;

    }


    /*
    |--------------------------------------------------------------------------
    | Mobile Share
    |--------------------------------------------------------------------------
    */

    .article-mobile-share {

        display: block;

        padding:
            20px 0
            60px;

        background: #ffffff;

    }

    .article-mobile-share-inner {

        padding: 25px;

        border-radius: 20px;

        background: #f4faf6;

        border: 1px solid #dce9e1;

    }

    .article-mobile-share-inner > div:first-child span {

        color: #198754;

        font-size: 8px;

        font-weight: 800;

        letter-spacing: 1.5px;

    }

    .article-mobile-share-inner h4 {

        margin: 8px 0 0;

        color: #283e32;

        font-size: 20px;

        font-weight: 750;

    }

    .article-mobile-share-buttons {

        display: flex;

        align-items: center;

        gap: 9px;

        margin-top: 20px;

    }

    .article-mobile-share-buttons button {

        width: 44px;

        height: 44px;

        border: 1px solid #dce6e1;

        border-radius: 13px;

        display: flex;

        align-items: center;

        justify-content: center;

        color: #63776b;

        background: #ffffff;

    }

    .article-mobile-share-buttons button:hover,
    .article-mobile-share-buttons button.copied {

        color: #ffffff;

        background: #198754;

        border-color: #198754;

    }


    /*
    |--------------------------------------------------------------------------
    | Author
    |--------------------------------------------------------------------------
    */

    .article-author-section {

        padding:
            20px 0
            75px;

    }

    .article-author-card {

        padding:
            35px
            27px;

        display: block;

    }

    .article-author-large-avatar {

        width: 85px;

        height: 85px;

        min-width: 85px;

        border-radius: 25px;

        margin-bottom: 27px;

        font-size: 28px;

    }

    .article-author-card-content h3 {

        font-size: 26px;

    }


    /*
    |--------------------------------------------------------------------------
    | Related
    |--------------------------------------------------------------------------
    */

    .article-related-section {

        padding:
            75px 0
            90px;

    }

    .article-related-heading {

        align-items: flex-end;

    }

    .article-related-heading h2 {

        font-size: 32px;

    }

    .article-related-heading > a {

        white-space: nowrap;

    }

    .article-related-grid {

        grid-template-columns: 1fr;

    }

    .article-related-card:last-child {

        display: block;

    }

}


/*
|--------------------------------------------------------------------------
| Small Mobile
|--------------------------------------------------------------------------
*/

@media (
    max-width: 399.98px
) {

    .article-header h1 {

        font-size: 39px;

    }

    .article-header-excerpt {

        font-size: 16px;

    }

    .article-featured-image {

        height: 300px;

    }

    .article-reading-content {

        font-size: 17px;

    }

    .article-reading-content h2 {

        font-size: 28px;

    }

    .article-related-heading {

        display: block;

    }

    .article-related-heading > a {

        margin-top: 20px;

    }

}
