/*
Theme Name: Plexify Child
Template: plexify
Version: 1.0.0
*/


/* =========================================
   MAIN BLOG CONTAINER
   ========================================= */

.upstartai-blog-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 25px 100px;
    box-sizing: border-box;
}


/* =========================================
   BLOG + SIDEBAR LAYOUT
   ========================================= */

.upstartai-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 60px;
    align-items: start;
}

.upstartai-blog-main {
    width: 100%;
    min-width: 0;
}


/* =========================================
   BLOG POST HEADER
   ========================================= */

.upstartai-post-header {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}


/* Category */

.upstartai-post-category {
    margin-bottom: 18px;
}

.upstartai-post-category a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
}


/* Title */

.upstartai-post-title {
    max-width: 850px !important;
    margin: 0 auto 20px !important;
    font-size: 48px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}


/* Author / Date */

.upstartai-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    line-height: 1.5;
}

.upstartai-post-meta a {
    font-weight: 600;
    text-decoration: none;
}

.upstartai-meta-separator {
    opacity: 0.6;
}


/* =========================================
   FEATURED IMAGE
   ========================================= */

.upstartai-featured-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
}

.upstartai-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}


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

.upstartai-article-body {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* Article paragraphs */

.upstartai-content-inner p {
    font-size: 18px !important;
    line-height: 1.8 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}


/* H2 */

.upstartai-content-inner h2 {
    font-size: 34px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin-top: 55px !important;
    margin-bottom: 22px !important;
}


/* H3 */

.upstartai-content-inner h3 {
    font-size: 27px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    margin-top: 40px !important;
    margin-bottom: 18px !important;
}


/* H4 */

.upstartai-content-inner h4 {
    font-size: 22px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    margin-top: 32px !important;
    margin-bottom: 15px !important;
}


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

.upstartai-content-inner ul,
.upstartai-content-inner ol {
    margin-top: 15px !important;
    margin-bottom: 30px !important;
    padding-left: 25px !important;
}

.upstartai-content-inner li {
    font-size: 18px !important;
    line-height: 1.7 !important;
    margin-bottom: 10px !important;
}


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

.upstartai-content-inner img {
    max-width: 100% !important;
    height: auto !important;
    margin-top: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
}


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

.upstartai-content-inner a {
    text-underline-offset: 3px;
}


/* =========================================
   STRONG TEXT
   ========================================= */

.upstartai-content-inner strong {
    font-weight: 700;
}


/* =========================================
   BLOCKQUOTES / CALLOUTS
   ========================================= */

.upstartai-content-inner blockquote {
    margin: 35px 0 !important;
    padding: 25px 30px !important;
    border-left: 4px solid currentColor !important;
    background: #f7f7f7 !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
}


/* =========================================
   TABLES
   ========================================= */

.upstartai-content-inner table {
    width: 100% !important;
    margin: 30px 0 !important;
    border-collapse: collapse !important;
}

.upstartai-content-inner th,
.upstartai-content-inner td {
    padding: 14px 16px !important;
    border: 1px solid #ddd !important;
    text-align: left !important;
    line-height: 1.5 !important;
}


/* =========================================
   SHARE AREA
   ========================================= */

.upstartai-share {
    margin-bottom: 30px;
}


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

.upstartai-blog-sidebar {
    width: 100%;
    position: sticky;
    top: 40px;
}


/* Sidebar boxes */

.upstartai-sidebar-widget {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
}


/* Sidebar heading */

.upstartai-sidebar-title {
    margin: 0 0 20px !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}


/* Sidebar lists */

.upstartai-blog-sidebar ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.upstartai-blog-sidebar li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #eeeeee;
}

.upstartai-blog-sidebar li:last-child {
    border-bottom: none;
}


/* Sidebar links */

.upstartai-blog-sidebar li a {
    display: block;
    padding: 11px 0;
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
}

.upstartai-blog-sidebar li a:hover {
    text-decoration: underline;
}


/* =========================================
   LATEST POSTS
   ========================================= */

.upstartai-latest-posts li {
    padding: 12px 0 !important;
}

.upstartai-latest-posts li a {
    padding: 0 !important;
    font-weight: 600;
}

.upstartai-post-date {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.65;
}


/* =========================================
   RELATED POSTS / BOTTOM
   ========================================= */

.upstartai-post-bottom {
    width: 100%;
    margin-top: 70px;
}

.upstartai-related-posts {
    margin-top: 50px;
}

.upstartai-post-navigation {
    margin-top: 40px;
}


/* =========================================
   REMOVE OLD PLEXIFY SINGLE POST WIDTH
   ========================================= */

.upstartai-blog-container .pxl-single-post {
    width: 100%;
}

.upstartai-blog-container .single-post-inner {
    width: 100%;
}

.upstartai-blog-container .post-content {
    width: 100%;
}


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

@media (max-width: 991px) {

    .upstartai-blog-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .upstartai-blog-sidebar {
        position: static;
        width: 100%;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

}


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

@media (max-width: 767px) {

    .upstartai-blog-container {
        padding: 45px 18px 70px;
    }

    .upstartai-post-header {
        margin-bottom: 30px;
    }

    .upstartai-post-title {
        font-size: 34px !important;
        line-height: 1.18 !important;
    }

    .upstartai-post-meta {
        flex-wrap: wrap;
    }

    .upstartai-featured-image {
        margin-bottom: 35px;
    }

    .upstartai-featured-image img {
        border-radius: 8px;
    }

    .upstartai-article-body {
        max-width: 100%;
    }

    .upstartai-content-inner p {
        font-size: 17px !important;
        line-height: 1.75 !important;
    }

    .upstartai-content-inner h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-top: 42px !important;
    }

    .upstartai-content-inner h3 {
        font-size: 23px !important;
        line-height: 1.35 !important;
        margin-top: 32px !important;
    }

    .upstartai-content-inner li {
        font-size: 17px !important;
    }

    .upstartai-sidebar-widget {
        padding: 20px;
    }

}

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

.upstartai-post-tags {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #eeeeee;
    font-size: 14px;
    line-height: 1.7;
}

.upstartai-post-tags strong {
    margin-right: 8px;
}

.upstartai-post-tags a {
    text-decoration: none;
    font-weight: 500;
}


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

.upstartai-related-section {
    width: 100%;
    max-width: 1100px;
    margin: 90px auto 20px;
    padding-top: 60px;
    border-top: 1px solid #eeeeee;
}


/* Heading */

.upstartai-related-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.upstartai-section-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.upstartai-related-heading h2 {
    margin: 0 0 12px !important;
    font-size: 38px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.upstartai-related-heading p {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    opacity: 0.7;
}


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

.upstartai-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}


/* Card */

.upstartai-related-card {
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.upstartai-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}


/* Image */

.upstartai-related-image {
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.upstartai-related-image img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    transition: transform 0.3s ease;
}

.upstartai-related-card:hover .upstartai-related-image img {
    transform: scale(1.04);
}


/* Card content */

.upstartai-related-content {
    padding: 22px;
}


/* Date */

.upstartai-related-date {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.6;
}


/* Title */

.upstartai-related-content h3 {
    margin: 0 0 18px !important;
    font-size: 19px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

.upstartai-related-content h3 a {
    text-decoration: none;
}


/* Read more */

.upstartai-read-more {
    display: inline-block;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    text-decoration: none;
}

.upstartai-read-more:hover {
    text-decoration: underline;
}


/* =========================================
   RELATED ARTICLES - TABLET
   ========================================= */

@media (max-width: 991px) {

    .upstartai-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================
   RELATED ARTICLES - MOBILE
   ========================================= */

@media (max-width: 767px) {

    .upstartai-related-section {
        margin-top: 60px;
        padding-top: 40px;
    }

    .upstartai-related-heading {
        margin-bottom: 30px;
    }

    .upstartai-related-heading h2 {
        font-size: 30px !important;
    }

    .upstartai-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .upstartai-related-image {
        height: 210px;
    }

}