/**
 * TalentForce Single Post Styles
 * File: wp-content/themes/talentforce/single-post.css
 * Matched with Figma: Talent Force Single Post (node 100:4771)
 */

.xc-single-post {
    font-family: 'Fz Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1A1A1A;
    background-color: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
 * 1. HERO BREADCRUMB BANNER
 * ======================================================= */
.xc-single-hero {
    position: relative;
    background: #eef7ff url('assets/blog/hero-gradient-bg.png') center/cover no-repeat;
    padding: 50px 0 100px;
    overflow: hidden;
}

.xc-single-hero .xc-container {
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 20px;
}

.xc-single-breadcrumb {
    font-family: 'Fz Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #404040;
}

.xc-single-breadcrumb a {
    color: #404040;
    text-decoration: none;
    transition: color 0.2s;
}

.xc-single-breadcrumb a:hover {
    color: #007CFF;
}

.xc-single-breadcrumb .separator {
    margin: 0 8px;
    color: #808080;
}

.xc-single-breadcrumb .current {
    color: #007CFF;
    max-width: 400px;
    display: inline-block;
    vertical-align: bottom;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
 * 2. FEATURED IMAGE (PULL UP INTO HERO)
 * ======================================================= */
.xc-single-feat-wrap {
    max-width: 1224px;
    margin: -70px auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.xc-single-feat-img {
    width: 100%;
    height: 440px;
    border-radius: 24px;
    overflow: hidden;
    background: #f0f4f8;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.xc-single-feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
 * 3. MAIN CONTENT LAYOUT (CONTENT + SIDEBAR)
 * ======================================================= */
.xc-single-main-layout {
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
    box-sizing: border-box;
}

/* Left Column: Article Body */
.xc-single-article {
    min-width: 0;
}

.xc-single-title {
    font-family: 'Fz Poppins', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 46px;
    color: #1A1A1A;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.xc-single-lead {
    font-family: 'Fz Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    color: #404040;
    margin: 0 0 20px;
}

.xc-single-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.xc-single-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Category Badges on Single */
.xc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Fz Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    color: #FFFFFF !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.2s;
    background-color: #007CFF;
}

.xc-badge:hover {
    opacity: 0.9;
}

.xc-badge--salesforce {
    background-color: #007CFF !important;
}

.xc-badge--odoo {
    background-color: #F5623D !important;
}

.xc-badge--tin-tuc-nganh {
    background-color: #0053A0 !important;
}

.xc-badge--thong-bao {
    background-color: #FFAE00 !important;
}

.xc-single-meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #808080;
}

.xc-single-meta-right .xc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Fz Poppins', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #808080;
}

.xc-single-meta-right .xc-meta-item svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    color: #808080 !important;
    fill: currentColor !important;
    display: inline-block;
    vertical-align: middle;
}

.xc-single-divider {
    height: 1px;
    background-color: #E6E6E6;
    margin: 0 0 32px;
    border: none;
}

/* Table of Contents */
.xc-toc-box {
    background: #FAFAFA;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 36px;
}

.xc-toc-title {
    font-family: 'Fz Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: #1A1A1A;
    margin: 0 0 14px;
}

.xc-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xc-toc-list li a {
    font-family: 'Fz Poppins', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #007CFF;
    text-decoration: none;
    transition: opacity 0.2s;
}

.xc-toc-list li a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* Post Content Formatting */
.xc-entry-content {
    font-family: 'Fz Poppins', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #272727;
}

.xc-entry-content p {
    margin-bottom: 20px;
}

.xc-entry-content h2 {
    font-family: 'Fz Poppins', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
    color: #1A1A1A;
    margin: 40px 0 18px;
}

.xc-entry-content h3 {
    font-family: 'Fz Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #1A1A1A;
    margin: 32px 0 14px;
}

.xc-entry-content blockquote,
.xc-highlight-quote {
    border-left: 4px solid #0053A0;
    background: #F8FAFC;
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 10px 10px 0;
    font-size: 17px;
    line-height: 28px;
    color: #1A1A1A;
}

.xc-entry-content ul,
.xc-entry-content ol {
    margin: 0 0 24px 24px;
    padding: 0;
}

.xc-entry-content li {
    margin-bottom: 8px;
}

.xc-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

/* Inline Course Box inside article content (matching Figma node 131:4161) */
.xc-inline-course-box {
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    padding: 24px;
    margin: 36px 0;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xc-icb-badge {
    display: inline-block;
    align-self: flex-start;
    background: #EAF4FF;
    color: #007CFF;
    font-family: 'Fz Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    padding: 4px 10px;
    border-radius: 6px;
}

.xc-icb-title {
    font-family: 'Fz Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: #1A1A1A;
    margin: 0;
}

.xc-icb-desc {
    font-family: 'Fz Poppins', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #666666;
    margin: 0;
}

.xc-icb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #F0F0F0;
}

.xc-icb-price-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xc-icb-status {
    font-size: 12px;
    color: #808080;
}

.xc-icb-price {
    font-family: 'Fz Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #007CFF;
}

.xc-icb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #007CFF;
    color: #FFFFFF !important;
    font-family: 'Fz Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s;
}

.xc-icb-btn:hover {
    background: #0053A0;
    transform: translateY(-1px);
}

/* Share Section (matching Figma node 131:4077 chia-s-container) */
.xc-single-share {
    height: 60px;
    min-height: 60px;
    border-top: 1px solid #D3D3D3;
    border-bottom: 1px solid #D3D3D3;
    padding: 0 4px;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xc-share-label {
    font-family: 'Fz Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    color: #404040;
    letter-spacing: 0.5px;
}

.xc-share-icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.xc-share-btn,
button.xc-share-btn,
a.xc-share-btn {
    width: 24px !important;
    height: 24px !important;
    min-height: 0 !important;
    max-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    outline: none !important;
    color: #404040 !important;
    cursor: pointer;
    text-decoration: none !important;
    vertical-align: middle !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.xc-share-btn:hover,
button.xc-share-btn:hover,
a.xc-share-btn:hover {
    color: #007CFF !important;
    transform: translateY(-1px);
}

.xc-share-btn svg {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: currentColor !important;
    display: block !important;
}

/* Right Column: Related Articles */
.xc-single-sidebar {
    position: sticky;
    top: 90px;
}

.xc-related-box {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0px 24px 80px rgba(0, 0, 0, 0.05);
}

.xc-related-heading {
    font-family: 'Fz Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: #1A1A1A;
    margin: 0 0 20px;
}

.xc-related-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xc-related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.xc-related-thumb {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f4f8;
}

.xc-related-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.xc-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.xc-related-item:hover .xc-related-thumb img {
    transform: scale(1.04);
}

.xc-related-title {
    font-family: 'Fz Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
    color: #1A1A1A;
    margin: 0;
}

.xc-related-title a {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.2s;
}

.xc-related-title a:hover {
    color: #007CFF;
}

.xc-related-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* =========================================================
 * 4. RESPONSIVE
 * ======================================================= */
@media (max-width: 1024px) {
    .xc-single-main-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .xc-single-sidebar {
        position: static;
    }

    .xc-single-feat-img {
        height: 340px;
    }
}

@media (max-width: 767px) {
    .xc-single-hero {
        padding: 24px 0 50px;
    }

    .xc-single-breadcrumb,
    .xc-single-breadcrumb .rank-math-breadcrumb,
    .xc-single-breadcrumb p,
    .xc-single-breadcrumb nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .xc-single-breadcrumb::-webkit-scrollbar,
    .xc-single-breadcrumb .rank-math-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .xc-single-breadcrumb a,
    .xc-single-breadcrumb span {
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    .xc-single-feat-wrap {
        margin-top: -30px;
    }

    .xc-single-feat-img {
        height: 220px;
        border-radius: 14px;
    }

    .xc-single-title {
        font-size: 24px;
        line-height: 32px;
    }

    .xc-single-lead {
        font-size: 15px;
        line-height: 24px;
    }

    .xc-single-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    /* Mobile CTA: Background on Row, margin left/right, hide images */
    .xc-section-cta-wrap {
        background-color: transparent !important;
        padding: 0 !important;
        margin: 24px 0 !important;
    }

    .xc-section-cta-wrap .section-bg {
        display: none !important;
    }

    .xc-section-cta-wrap .section-content {
        padding: 0 !important;
    }

    .xc-section-cta-wrap .xc-cta-main-row {
        background-color: #0053A0 !important;
        border-radius: 16px !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        padding: 32px 20px !important;
    }

    .xc-cta-main-row > .col:last-child,
    .xc-cta-images-row {
        display: none !important;
    }

    .xc-cta-main-row > .col:first-child {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
    }
}


/* =========================================================
 * UX BLOCK: xc-section-cta
 * ======================================================= */
.xc-before-cta-grid {
    margin-top: 24px;
}

.xc-after-cta-grid {
    margin-bottom: 24px;
}

.xc-cta-block-wrap {
    width: 100%;
    margin: 20px 0;
}

.xc-section-cta-wrap {
    border-radius: 16px;
    overflow: hidden;
    margin: 40px auto !important;
    max-width: 1224px;
}

.xc-section-cta-wrap .section-content {
    padding: 0 10px;
}

.xc-cta-main-row {
    max-width: 1224px;
    margin: 0 auto !important;
}

.xc-cta-title {
    font-family: 'Fz Poppins', sans-serif;
    font-weight: 600;
    font-size: 34px !important;
    line-height: 44px !important;
    color: #FFFFFF !important;
    margin: 0 0 16px !important;
}

.xc-cta-desc {
    font-family: 'Fz Poppins', sans-serif;
    font-size: 14px !important;
    line-height: 22px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0 24px !important;
}

.xc-cta-features-row {
    margin-bottom: 20px !important;
}

.xc-cta-box {
    margin-bottom: 14px !important;
}

.xc-cta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xc-feat-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.xc-feat-icon.crm { background-color: #00A7FF; }
.xc-feat-icon.code { background-color: #53D450; }
.xc-feat-icon.data { background-color: #F5623D; }
.xc-feat-icon.cert { background-color: #FFAE00; }
.xc-feat-icon svg { width: 18px; height: 18px; color: #FFFFFF; }

.xc-feat-text {
    font-family: 'Fz Poppins', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
}

.xc-cta-btn-white {
    background-color: #FFFFFF !important;
    color: #007CFF !important;
    font-family: 'Fz Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 24px !important;
    border-radius: 999px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.xc-cta-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2) !important;
}

.xc-cta-images-row {
    align-items: stretch !important;
}

.xc-cta-images-row > .col > .col-inner {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.xc-cta-images-row .xc-cta-img-purple,
.xc-cta-images-row .xc-cta-img-man {
    height: 100% !important;
    display: flex !important;
}

.xc-cta-images-row .img-inner {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
}

.xc-cta-images-row img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}
