/* =========================================================
   WEBLINKUS
   SINGLE POST
   PREMIUM ARTICLE DESIGN
========================================================= */


/* =========================================================
   01. SINGLE PAGE
========================================================= */

.single-page {
    width: 100%;
    padding: 70px 0 100px;

    direction: rtl;

    background:
        linear-gradient(
            180deg,
            #f8faff 0%,
            #f4f7fb 100%
        );
}


/* =========================================================
   02. CONTAINER
========================================================= */

.single-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}


/* =========================================================
   03. MAIN LAYOUT
   9 COLUMNS + 3 COLUMNS
========================================================= */

.single-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 9fr)
        minmax(270px, 3fr);

    gap: 30px;

    align-items: start;
}


/* =========================================================
   04. ARTICLE
========================================================= */

.single-article {
    min-width: 0;

    padding: 38px;

    background: #ffffff;

    border: 1px solid rgba(3, 20, 45, 0.05);

    border-radius: 20px;

    box-shadow:
        0 15px 45px rgba(3, 20, 45, 0.06);
}


/* =========================================================
   05. HEADER
========================================================= */

.single-header {
    margin-bottom: 30px;
}


.single-title {
    margin: 0 0 18px;

    color: #03142d;

    font-size: clamp(28px, 3vw, 29px);

    line-height: 1.45;

    font-weight: 800;

    letter-spacing: -0.5px;
}


/* =========================================================
   06. META
========================================================= */

.single-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}


.single-date,
.single-category {
    display: inline-flex;

    align-items: center;

    padding: 7px 13px;

    background: #f3f6fa;

    border-radius: 8px;

    color: #667085;

    font-size: 13px;
}


.single-category a {
    color: #155eef;

    text-decoration: none;

    font-weight: 600;
}


/* =========================================================
   07. FEATURED IMAGE
========================================================= */

.single-featured {
    width: 100%;

    margin-bottom: 35px;

    overflow: hidden;

    border-radius: 16px;

    background: #eef2f7;
}


.single-featured-image {
    display: block;

    width: 100%;

    height: auto;

    max-height: 540px;

    object-fit: cover;

    transition:
        transform 0.6s ease;
}


.single-featured:hover .single-featured-image {
    transform: scale(1.025);
}


/* =========================================================
   08. CONTENT
   PREMIUM ARTICLE TYPOGRAPHY
========================================================= */

.single-content {
    color: #344054;

    font-size: 18px;

    line-height: 2.05;

    font-weight: 400;

    word-wrap: break-word;

    overflow-wrap: break-word;

    text-align: right;
}


/* =========================================================
   08.1 PARAGRAPHS
========================================================= */

.single-content p {
    margin: 0 0 26px;

    color: #344054;

    font-size: 18px;

    line-height: 2.05;

    text-align: justify;

    text-justify: inter-word;
}


/* أول فقرة في المقال */

.single-content > p:first-child {
    color: #26364a;

    font-size: 19px;

    line-height: 2.1;

    font-weight: 500;
}


/* =========================================================
   08.2 HEADINGS
========================================================= */

.single-content h2 {
    position: relative;

    margin: 50px 0 22px;

    padding-right: 16px;

    color: #03142d;

    font-size: 28px;

    line-height: 1.5;

    font-weight: 800;
}


.single-content h2::before {
    content: "";

    position: absolute;

    right: 0;

    top: 7px;

    width: 5px;

    height: calc(100% - 14px);

    background: #155eef;

    border-radius: 5px;
}


.single-content h3 {
    margin: 38px 0 17px;

    color: #03142d;

    font-size: 24px;

    line-height: 1.55;

    font-weight: 800;
}


.single-content h4 {
    margin: 30px 0 14px;

    color: #03142d;

    font-size: 21px;

    line-height: 1.6;

    font-weight: 700;
}


/* =========================================================
   08.3 STRONG / BOLD
========================================================= */

.single-content strong,
.single-content b {
    color: #03142d;

    font-weight: 800;
}


/* =========================================================
   08.4 LINKS
========================================================= */

.single-content a {
    color: #155eef;

    font-weight: 700;

    text-decoration: none;

    border-bottom: 1px solid transparent;

    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}


.single-content a:hover {
    color: #0b4dcc;

    text-decoration: none;

    border-bottom-color: #0b4dcc;
}


/* =========================================================
   09. LISTS
========================================================= */

.single-content ul,
.single-content ol {
    margin: 0 0 28px;

    padding-right: 30px;

    color: #344054;

    font-size: 18px;

    line-height: 2;
}


.single-content li {
    margin-bottom: 11px;

    padding-right: 5px;
}


.single-content li::marker {
    color: #155eef;

    font-weight: 800;
}


/* =========================================================
   10. BLOCKQUOTE
========================================================= */

.single-content blockquote {
    position: relative;

    margin: 38px 0;

    padding: 25px 30px;

    background: #f4f7fb;

    border-right: 5px solid #155eef;

    border-radius: 12px;

    color: #03142d;

    font-size: 18px;

    line-height: 2;

    font-weight: 600;
}


.single-content blockquote p {
    margin: 0;

    color: #03142d;

    font-size: 18px;

    line-height: 2;
}


/* =========================================================
   11. CONTENT IMAGES
========================================================= */

.single-content img {
    display: block;

    max-width: 100%;

    height: auto;

    margin: 30px auto;

    border-radius: 14px;
}


.single-content figure {
    margin: 35px 0;
}


.single-content figcaption {
    margin-top: 10px;

    color: #667085;

    text-align: center;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   12. HORIZONTAL LINE
========================================================= */

.single-content hr {
    margin: 40px 0;

    border: 0;

    border-top: 1px solid #e5e7eb;
}


/* =========================================================
   13. TABLE
========================================================= */

.single-content table {
    width: 100%;

    margin: 35px 0;

    border-collapse: collapse;

    overflow: hidden;

    font-size: 16px;

    line-height: 1.8;

    background: #ffffff;
}


.single-content th,
.single-content td {
    padding: 14px 16px;

    border: 1px solid #e5e7eb;

    text-align: right;

    vertical-align: middle;
}


.single-content th {
    background: #f3f6fa;

    color: #03142d;

    font-weight: 800;
}


.single-content td {
    color: #344054;
}


/* =========================================================
   14. CODE
========================================================= */

.single-content code {
    padding: 3px 7px;

    background: #155eef;

    color: #155eef;

    border-radius: 6px;

    font-size: 14px;
}


.single-content pre {
    margin: 30px 0;

    padding: 22px;

    overflow-x: auto;

    direction: ltr;

    text-align: left;

    background: #538ac6;

    color: #e6edf7;

    border-radius: 12px;

    line-height: 1.7;
}


.single-content pre code {
    padding: 0;

    background: transparent;

    color: inherit;

    border-radius: 0;
}


/* =========================================================
   15. PAGINATION
========================================================= */

.single-pagination {
    margin-top: 35px;

    padding-top: 25px;

    border-top: 1px solid #e5e7eb;
}


/* =========================================================
   16. SHARE
========================================================= */

.single-share {
    margin-top: 45px;

    padding-top: 30px;

    border-top: 1px solid #e8edf3;
}


.share-heading {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    margin-bottom: 20px;
}


.share-heading h3 {
    margin: 0;

    color: #03142d;

    font-size: 18px;

    font-weight: 800;
}


.share-line {
    width: 45px;

    height: 1px;

    background: #dce3ec;
}


.share-buttons {
    display: flex;

    justify-content: center;

    gap: 10px;
}


.share-button {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 44px;

    height: 44px;

    padding: 0;

    border: 0;

    border-radius: 12px;

    cursor: pointer;

    text-decoration: none;

    font-size: 14px;

    font-weight: 800;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.share-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(3, 20, 45, 0.12);
}


.share-facebook {
    background: #1877f2;

    color: #ffffff;
}


.share-whatsapp {
    background: #25d366;

    color: #ffffff;
}


.share-x {
    background: #03142d;

    color: #ffffff;
}


.share-copy {
    background: #eef3f9;

    color: #03142d;
}


.share-copy.copied {
    background: #155eef;

    color: #ffffff;
}


/* =========================================================
   17. RELATED POSTS
========================================================= */

.related-posts {
    margin-top: 55px;

    padding-top: 40px;

    border-top: 1px solid #e8edf3;
}


.related-heading {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-bottom: 28px;

    text-align: center;
}


.related-heading > div {
    flex-shrink: 0;
}


.related-label {
    display: block;

    margin-bottom: 4px;

    color: #155eef;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;
}


.related-heading h2 {
    margin: 0;

    color: #03142d;

    font-size: 26px;

    font-weight: 800;
}


.related-line {
    width: 70px;

    height: 1px;

    background: #dce3ec;
}


/* =========================================================
   18. RELATED GRID
========================================================= */

.related-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   19. RELATED CARD
========================================================= */

.related-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e8edf3;

    border-radius: 14px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.related-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(3, 20, 45, 0.09);
}


/* =========================================================
   20. RELATED IMAGE
========================================================= */

.related-image {
    display: block;

    width: 100%;

    height: 165px;

    overflow: hidden;

    background: #eef2f7;
}


.related-image img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.related-card:hover .related-image img {
    transform: scale(1.06);
}


.related-no-image {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

    background:
        linear-gradient(
            135deg,
            #03142d,
            #155eef
        );

    color: #ffffff;

    font-size: 18px;

    font-weight: 800;
}


/* =========================================================
   21. RELATED CONTENT
========================================================= */

.related-content {
    padding: 18px;
}


.related-date {
    display: block;

    margin-bottom: 8px;

    color: #98a2b3;

    font-size: 12px;
}


.related-content h3 {
    margin: 0 0 15px;

    min-height: 55px;

    line-height: 1.6;

    font-size: 17px;

    font-weight: 800;
}


.related-content h3 a {
    color: #03142d;

    text-decoration: none;
}


.related-content h3 a:hover {
    color: #155eef;
}


.related-read {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #155eef;

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;
}


.related-read span {
    transition:
        transform 0.25s ease;
}


.related-read:hover span {
    transform: translateX(-4px);
}


/* =========================================================
   22. SIDEBAR
========================================================= */

.single-sidebar {
    position: sticky;

    top: 25px;

    display: flex;

    flex-direction: column;

    gap: 22px;
}


/* =========================================================
   23. SIDEBAR BOX
========================================================= */

.sidebar-box {
    position: relative;

    padding: 28px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(3, 20, 45, 0.05);

    border-radius: 18px;

    box-shadow:
        0 12px 35px rgba(3, 20, 45, 0.07);
}


/* =========================================================
   24. ABOUT
========================================================= */

.sidebar-about {
    border-top: 4px solid #155eef;
}


.sidebar-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 46px;

    height: 46px;

    margin-bottom: 15px;

    background: #eef4ff;

    color: #155eef;

    border-radius: 12px;

    font-size: 22px;

    font-weight: 800;
}


.sidebar-label {
    display: block;

    margin-bottom: 4px;

    color: #155eef;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;
}


.sidebar-box h2 {
    margin: 0 0 15px;

    color: #03142d;

    font-size: 23px;

    font-weight: 800;
}


.sidebar-box p {
    margin: 0 0 20px;

    color: #667085;

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   25. FEATURES
========================================================= */

.sidebar-features {
    margin: 0;

    padding: 0;

    list-style: none;
}


.sidebar-features li {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-bottom: 13px;

    color: #344054;

    font-size: 13px;

    line-height: 1.7;
}


.sidebar-features li:last-child {
    margin-bottom: 0;
}


.sidebar-features li span {
    flex-shrink: 0;

    color: #155eef;

    font-weight: 800;
}


.sidebar-features li strong {
    color: #03142d;
}


/* =========================================================
   26. CONTACT BOX
========================================================= */

.sidebar-contact {
    background:
        linear-gradient(
            145deg,
            #03142d,
            #082c5c
        );
}


.sidebar-contact::after {
    content: "";

    position: absolute;

    width: 150px;

    height: 150px;

    left: -65px;

    bottom: -70px;

    border-radius: 50%;

    background: rgba(255,255,255,0.05);
}


.contact-label {
    position: relative;

    z-index: 2;

    display: block;

    margin-bottom: 8px;

    color: #8db5ff;

    font-size: 12px;

    font-weight: 700;
}


.sidebar-contact h3 {
    position: relative;

    z-index: 2;

    margin: 0 0 12px;

    color: #ffffff;

    font-size: 23px;

    font-weight: 800;
}


.sidebar-contact p {
    position: relative;

    z-index: 2;

    color: #d8e4f5;

    font-size: 14px;
}


/* =========================================================
   27. PHONE
========================================================= */

.sidebar-phone {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    padding: 14px 12px;

    background: #ffffff;

    color: #03142d;

    border-radius: 10px;

    font-size: 16px;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.sidebar-phone:hover {
    color: #03142d;

    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0,0,0,0.15);
}


.phone-icon {
    font-size: 19px;
}


/* =========================================================
   28. TABLET
========================================================= */

@media (max-width: 991px) {

    .single-page {
        padding: 50px 0 70px;
    }


    .single-layout {
        grid-template-columns: 1fr;
    }


    .single-sidebar {
        position: static;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }


    .related-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   29. MOBILE
========================================================= */

@media (max-width: 767px) {

    .single-page {
        padding: 30px 0 55px;
    }


    .single-container {
        width: 94%;
    }


    .single-article {
        padding: 22px 18px;

        border-radius: 15px;
    }


    .single-title {
        font-size: 27px;

        line-height: 1.5;
    }


    .single-meta {
        gap: 7px;
    }


    .single-date,
    .single-category {
        font-size: 12px;

        padding: 6px 10px;
    }


    .single-featured {
        margin-bottom: 25px;

        border-radius: 12px;
    }


    /* =====================================================
       MOBILE CONTENT
    ===================================================== */

    .single-content {
        font-size: 16px;

        line-height: 1.95;
    }


    .single-content p {
        margin-bottom: 22px;

        font-size: 16px;

        line-height: 1.95;

        text-align: right;
    }


    .single-content > p:first-child {
        font-size: 17px;

        line-height: 2;
    }


    .single-content h2 {
        margin: 38px 0 18px;

        padding-right: 13px;

        font-size: 23px;

        line-height: 1.55;
    }


    .single-content h2::before {
        width: 4px;

        top: 6px;

        height: calc(100% - 12px);
    }


    .single-content h3 {
        margin: 30px 0 14px;

        font-size: 21px;

        line-height: 1.55;
    }


    .single-content h4 {
        margin: 25px 0 12px;

        font-size: 19px;
    }


    .single-content ul,
    .single-content ol {
        padding-right: 25px;

        font-size: 16px;

        line-height: 1.9;
    }


    .single-content blockquote {
        margin: 30px 0;

        padding: 20px;

        font-size: 16px;

        line-height: 1.9;
    }


    .single-content blockquote p {
        font-size: 16px;

        line-height: 1.9;
    }


    .single-content table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;

        font-size: 14px;
    }


    .single-content th,
    .single-content td {
        padding: 11px 12px;
    }


    .single-content pre {
        padding: 16px;

        font-size: 13px;
    }


    /* =====================================================
       MOBILE SIDEBAR
    ===================================================== */

    .single-sidebar {
        display: flex;

        gap: 18px;
    }


    .sidebar-box {
        padding: 23px 20px;

        border-radius: 14px;
    }


    /* =====================================================
       MOBILE SHARE
    ===================================================== */

    .share-buttons {
        gap: 8px;
    }


    .share-button {
        width: 42px;

        height: 42px;
    }


    /* =====================================================
       MOBILE RELATED
    ===================================================== */

    .related-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .related-image {
        height: 190px;
    }


    .related-content h3 {
        min-height: auto;
    }


    .related-heading {
        gap: 10px;
    }


    .related-line {
        width: 30px;
    }

}
.share-linkedin {
    background: #0A66C2;
    color: #fff;
}

.share-linkedin:hover {
    background: #004182;
    color: #fff;
}