/* =========================================================
   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, 42px);

    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
========================================================= */

.single-content {
    color: #26364a;

    font-size: 17px;

    line-height: 2;

    word-wrap: break-word;
}


.single-content p {
    margin: 0 0 23px;
    text-align: justify;
}


.single-content h2 {
    margin: 45px 0 18px;

    color: #03142d;

    font-size: 28px;

    line-height: 1.5;

    font-weight: 800;
}


.single-content h3 {
    margin: 35px 0 15px;

    color: #03142d;

    font-size: 23px;

    line-height: 1.5;

    font-weight: 700;
}


.single-content h4 {
    margin: 30px 0 12px;

    color: #03142d;

    font-size: 20px;
}


.single-content strong {
    color: #03142d;
}


.single-content a {
    color: #155eef;

    font-weight: 600;

    text-decoration: none;
}


.single-content a:hover {
    text-decoration: underline;
}


/* =========================================================
   09. LISTS
========================================================= */

.single-content ul,
.single-content ol {
    margin: 0 0 25px;

    padding-right: 28px;
}


.single-content li {
    margin-bottom: 10px;
}


/* =========================================================
   10. BLOCKQUOTE
========================================================= */

.single-content blockquote {
    position: relative;

    margin: 35px 0;

    padding: 25px 30px;

    background: #f4f7fb;

    border-right: 4px solid #155eef;

    border-radius: 10px;

    color: #03142d;

    font-size: 18px;

    font-weight: 600;
}


/* =========================================================
   11. CONTENT IMAGES
========================================================= */

.single-content img {
    max-width: 100%;

    height: auto;

    border-radius: 12px;
}


.single-content figure {
    margin: 30px 0;
}


.single-content figcaption {
    margin-top: 8px;

    color: #667085;

    text-align: center;

    font-size: 13px;
}


/* =========================================================
   12. TABLE
========================================================= */

.single-content table {
    width: 100%;

    margin: 30px 0;

    border-collapse: collapse;

    overflow: hidden;

    font-size: 15px;
}


.single-content th,
.single-content td {
    padding: 12px 15px;

    border: 1px solid #e5e7eb;

    text-align: right;
}


.single-content th {
    background: #f3f6fa;

    color: #03142d;

    font-weight: 800;
}


/* =========================================================
   13. PAGINATION
========================================================= */

.single-pagination {
    margin-top: 35px;

    padding-top: 25px;

    border-top: 1px solid #e5e7eb;
}


/* =========================================================
   14. 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;
}


/* =========================================================
   15. 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;
}


/* =========================================================
   16. RELATED GRID
========================================================= */

.related-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   17. 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);
}


/* =========================================================
   18. 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;
}


/* =========================================================
   19. 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);
}


/* =========================================================
   20. SIDEBAR
========================================================= */

.single-sidebar {
    position: sticky;

    top: 25px;

    display: flex;

    flex-direction: column;

    gap: 22px;
}


/* =========================================================
   21. 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);
}


/* =========================================================
   22. 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;
}


/* =========================================================
   23. 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;
}


/* =========================================================
   24. 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;
}


/* =========================================================
   25. 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;
}


/* =========================================================
   26. 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));
    }

}


/* =========================================================
   27. 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;
    }


    .single-content {
        font-size: 16px;

        line-height: 1.95;
    }


    .single-content h2 {
        margin-top: 35px;

        font-size: 24px;
    }


    .single-content h3 {
        font-size: 21px;
    }


    .single-content table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }


    .single-sidebar {
        display: flex;

        gap: 18px;
    }


    .sidebar-box {
        padding: 23px 20px;

        border-radius: 14px;
    }


    .share-buttons {
        gap: 8px;
    }


    .share-button {
        width: 42px;

        height: 42px;
    }


    .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;
    }

}