/* CV Builder Styles - Refined UI */

.cv-builder-page {
    padding: 60px 0;
    min-height: 80vh;
    background: #f4f7fc;
}

.cv-builder-header {
    text-align: center;
    margin-bottom: 40px;
}

.cv-builder-header h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.header-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    width: 100%;
    max-width: 1600px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.3s;
}

@media (min-width: 901px) {
    .step-label {
        font-size: 70%;
    }
}

.step-item.active,
.step-item.completed {
    opacity: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #aa00ff 0%, #4a00e0 100%);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(170, 0, 255, 0.2);
}

.step-item.completed .step-number {
    background: #aa00ff;
    color: #fff;
}

/* Save Draft Button */
.btn-save-draft {
    background: linear-gradient(135deg, #aa00ff 0%, #4a00e0 100%);
    color: #ffffff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(170, 0, 255, 0.3);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-save-draft:hover {
    background: linear-gradient(135deg, #8e00e6 0%, #3600a8 100%);
    transform: translateY(calc(-50% - 2px));
    box-shadow: 0 6px 20px rgba(170, 0, 255, 0.4);
}

.btn-save-draft svg {
    stroke: #ffffff !important;
}

/* Save Draft Tooltip for Guests */
.save-draft-wrapper {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
}

.save-draft-wrapper .btn-save-draft {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
}

.save-draft-wrapper .btn-save-draft:hover {
    transform: translateY(-2px);
}

.login-prompt-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    text-align: left;
    border: 1px solid #f3f4f6;
}

/* Tooltip caret */
.login-prompt-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 32px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid #f3f4f6;
    border-left: 1px solid #f3f4f6;
}

.login-prompt-tooltip a.login-link {
    display: inline-block;
    margin-top: 8px;
    color: #aa00ff;
    /* nawiązanie do fioletu AI */
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.login-prompt-tooltip a.login-link:hover {
    color: #BE22FF;
}


@media (max-width: 900px) {
    .header-actions-bar {
        flex-direction: column;
        gap: 15px;
    }

    .btn-save-draft,
    .save-draft-wrapper {
        position: static;
        transform: none;
    }
}

/* Content Layout */
.cv-builder-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Equal width for both columns */
    gap: 40px;
    align-items: start;
    max-width: 1600px;
    /* Constrain max width to unstick from edges */
    margin: 0 auto;
    /* Center it */
    padding: 0 20px;
    /* Add some padding on smaller screens */
}

@media (max-width: 1200px) {
    .cv-builder-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .cv-builder-content {
        grid-template-columns: 1fr;
    }
}

/* Form Column - Floating "Cloud" Style */
.builder-form-column {
    background: #fff;
    padding: 25px;
    /* Even more compact */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    max-width: 100%;
    /* Take full width of its 1fr column */
    position: relative;
    z-index: 10;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e6f0;
    border-radius: 8px;
    transition: all 0.3s;
    background: #f9fbfc;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .half {
    flex: 1;
}

/* AI Assist Button - Purple Gradient */
.btn-ai-assist {
    background: linear-gradient(135deg, #BE22FF 0%, #aa00ff 100%);
    /* Featured Badge Purple */
    color: #ffffff !important;
    /* Force white text ALWAYS */
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(170, 0, 255, 0.2);
}

.btn-ai-assist:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(170, 0, 255, 0.3);
    color: #fff;
}

/* Repeater Items (Jobs/Education) */
.repeater-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.repeater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.text-danger {
    color: #fa4242;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Skills */
.skills-input-wrapper {
    display: flex;
    gap: 10px;
}

.skills-input-wrapper button {
    background: linear-gradient(135deg, #BE22FF 0%, #aa00ff 100%);
    color: #fff !important;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(170, 0, 255, 0.2);
}

.skills-input-wrapper button:hover {
    background: linear-gradient(135deg, #aa00ff 0%, #8e00e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 0, 255, 0.3);
}

.skills-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #eef4ff;
    color: #1967d2;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-tag .remove {
    cursor: pointer;
    font-weight: bold;
}

/* Template Selector - Vertical Left Column */
.preview-layout-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.template-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Tighter vertical gap */
    margin-bottom: 0;
    width: 120px;
    /* Wider to fit text */
    flex-shrink: 0;
    background: #fff;
    padding: 12px;
    /* Super compact padding */
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .preview-layout-wrapper {
        flex-direction: column;
    }

    .template-selector {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
}

.template-option {
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    padding: 6px;
    /* Tiny padding */
    border-radius: 8px;
    transition: all 0.2s;
}

.template-option:hover {
    transform: translateY(-2px);
}

.template-option.selected {
    border-color: #1967d2;
    background: #f0f6ff;
    box-shadow: 0 4px 10px rgba(25, 103, 210, 0.1);
}

.template-preview-box {
    aspect-ratio: 1 / 1.414;
    height: auto;
    width: 100%;
    max-width: 60px;
    /* Force them to be small "mini A4 cards" */
    margin: 0 auto 6px auto;
    background: #eee;
    border-radius: 4px;
    background-size: cover;
    background-position: top center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* Preview Column */
.builder-preview-column {
    position: relative;
    /* Contains template selector + preview now */
}

.sticky-preview {
    position: sticky;
    top: 20px;
}

.cv-render-area {
    margin-top: 0;
    flex: 1;
}


.preview-paper {
    background: #fff;
    /* Remove strict aspect-ratio to allow it to be compact based on content */
    width: 100%;
    /* Max height might still be useful to prevent it from going crazy */
    padding: 25px;
    /* More compact inner padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    border-radius: 12px;
    /* Make the preview paper itself a bit rounded */
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    /* If content is too long for the compact view, hide it in builder */
    position: relative;
}

/* Navigation Buttons - Turquoise Gradient */
.form-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-navigation button {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

/* Default Next/Back buttons - Turquoise */
.form-navigation .btn-style-one,
.form-navigation .btn-style-three {
    background: linear-gradient(135deg, #0cebeb 0%, #20e3b2 100%) !important;
    /* Turquoise Gradient Estimate */
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(32, 227, 178, 0.3);
}

.form-navigation .btn-style-one:hover,
.form-navigation .btn-style-three:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 227, 178, 0.4);
}


/* Export PDF Button - Special Style */
.export-actions {
    text-align: center;
    margin-top: 40px;
}

/* Specific styling for the PDF download button */
button.btn-download-pdf {
    background: #e74c3c !important;
    /* PDF Red */
    color: #fff !important;
    font-size: 18px !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4) !important;
    transition: all 0.3s;
    border: none;
}

button.btn-download-pdf:hover {
    background: #c0392b !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5) !important;
}

button.btn-download-pdf svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


/* Basic Template Styling (Default) */
.preview-paper h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.preview-paper .job-title {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid #1967d2;
    padding-bottom: 10px;
}

.preview-paper .contact-info {
    font-size: 13px;
    color: #555;
    margin-bottom: 30px;
}

.preview-paper .cv-section {
    margin-bottom: 30px;
}

.preview-paper h4 {
    font-size: 16px;
    color: #1967d2;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.preview-paper .cv-item {
    margin-bottom: 15px;
}

.preview-paper .cv-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.preview-paper .cv-item-header strong {
    display: block;
}

.preview-paper .preview-skills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-paper .preview-skills span {
    background: #f4f4f4;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* AI Modal */
.ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-modal {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ai-modal textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 20px 0;
}

.ai-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Utility */
[x-cloak] {
    display: none !important;
}

/* =========================================
   TEMPLATE STYLES
   ========================================= */

/* --- Modern (Default) --- */
.template-modern .preview-paper,
.preview-paper.template-modern {
    border-top: 10px solid #1967d2;
}

.template-modern .cv-header,
.preview-paper.template-modern .cv-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.template-modern .cv-header h1,
.preview-paper.template-modern .cv-header h1 {
    color: #1967d2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Classic --- */
.template-classic .preview-paper,
.preview-paper.template-classic {
    font-family: 'Georgia', serif;
    color: #000;
}

.template-classic .cv-header,
.preview-paper.template-classic .cv-header {
    text-align: center;
    border-bottom: 3px double #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.template-classic h1,
.preview-paper.template-classic h1 {
    color: #000;
    font-size: 28px;
}

.template-classic .job-title,
.preview-paper.template-classic .job-title {
    color: #444;
    font-style: italic;
    border: none;
}

.template-classic h4,
.preview-paper.template-classic h4 {
    color: #000;
    border-bottom: 1px solid #000;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
}

/* --- Creative --- */
.template-creative .preview-paper,
.preview-paper.template-creative {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 0;
    display: flex;
    flex-direction: row;
}

.template-creative .cv-header,
.preview-paper.template-creative .cv-header {
    background: #e74c3c;
    width: 35%;
    padding: 40px 20px;
    text-align: right;
    color: #fff;
    height: 100%;
    min-height: 297mm;
    /* Ensure full height */
}

.template-creative .cv-body,
.preview-paper.template-creative .cv-body {
    width: 65%;
    padding: 40px;
    background: #fff;
    color: #333;
}

.template-creative h1,
.preview-paper.template-creative h1 {
    color: #fff;
    font-size: 32px;
    line-height: 1.2;
}

.template-creative .job-title,
.preview-paper.template-creative .job-title {
    color: #ecf0f1;
    border: none;
    opacity: 0.9;
}

.template-creative .contact-info,
.preview-paper.template-creative .contact-info {
    color: #ecf0f1;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.template-creative h4,
.preview-paper.template-creative h4 {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
    display: inline-block;
    padding-right: 20px;
}

/* --- Minimal --- */
.template-minimal .preview-paper,
.preview-paper.template-minimal {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 50px;
}

.template-minimal .cv-header,
.preview-paper.template-minimal .cv-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.template-minimal h1,
.preview-paper.template-minimal h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.template-minimal .job-title,
.preview-paper.template-minimal .job-title {
    font-size: 14px;
    color: #666;
    border: none;
    margin: 0;
}

.template-minimal .contact-info,
.preview-paper.template-minimal .contact-info {
    text-align: right;
    font-size: 12px;
    color: #999;
}

.template-minimal h4,
.preview-paper.template-minimal h4 {
    color: #333;
    font-size: 14px;
    font-weight: 700;
    border: none;
    margin-bottom: 10px;
    padding: 0;
}

.template-minimal .cv-section,
.preview-paper.template-minimal .cv-section {
    margin-left: 150px;
    /* Indent content */
    position: relative;
    margin-bottom: 40px;
}

.template-minimal h4,
.preview-paper.template-minimal h4 {
    position: absolute;
    left: -150px;
    width: 130px;
    text-align: right;
    top: 0;
}

/* PDF Branding Footer */
.pdf-branding {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 10px;
    color: #999;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: sans-serif !important;
    z-index: 100;
    /* Ensure on top */
}

.pdf-branding img {
    height: 20px;
    /* Slightly larger */
    width: auto;
    opacity: 0.8;
}

/* Thumbnail Gradients */
.thumb-modern {
    background: linear-gradient(135deg, #1967d2 0%, #ffffff 50%);
}

.thumb-classic {
    background: linear-gradient(135deg, #eee 0%, #fff 100%);
    border: 1px double #333;
}

.thumb-creative {
    background: linear-gradient(90deg, #e74c3c 30%, #2c3e50 30%);
}

.thumb-minimal {
    background: #fff;
    border: 1px solid #ddd;
    position: relative;
}

.thumb-minimal::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #333;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* Mobile Specific Fixes */
@media (max-width: 767px) {

    .cv-builder-page {
        padding: 20px 0;
        min-height: auto;
    }

    .cv-builder-header {
        margin-bottom: 20px;
    }

    /* Progress steps - 2x2 Grid Layout */
    .progress-steps {
        display: grid;
        grid-template-columns: max-content max-content;
        justify-content: center;
        gap: 10px 15px;
        width: 100%;
        margin: 0 auto;
        padding-bottom: 0px;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .step-label {
        font-size: 11px;
        white-space: normal;
        line-height: 1.2;
    }

    .step-item {
        gap: 6px;
        justify-content: flex-start;
    }

    .header-actions-bar {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-right: 0;
        gap: 15px;
        overflow: visible;
        margin-bottom: 10px;
    }

    .save-draft-wrapper,
    .btn-save-draft {
        position: static;
        transform: none;
    }

    .btn-save-draft {
        padding: 6px 14px;
        font-size: 11px;
        width: auto;
    }

    .btn-save-draft svg {
        width: 13px;
        height: 13px;
    }

    .login-prompt-tooltip {
        width: 220px;
        right: 50%;
        transform: translateX(50%);
        top: calc(100% + 5px);
        padding: 12px;
    }

    .login-prompt-tooltip::before {
        right: 50%;
        margin-right: -6px;
    }

    /* Proper centering for the entire content wrapper on mobile */
    .cv-builder-content {
        padding: 0;
        /* Remove extra padding since .auto-container already has it */
        width: 100%;
        box-sizing: border-box;
        gap: 20px;
    }

    .builder-form-column {
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 15px;
        /* Symmetrical padding, reduced for mobile */
    }

    .preview-layout-wrapper {
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center everything */
    }

    .template-selector {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto 20px auto;
        justify-content: center;
        flex-direction: row;
        overflow-x: auto;
    }

    .preview-column {
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .preview-paper {
        margin: 0 auto;
        width: 100%;
        /* Fill container uniformly */
        max-width: 100%;
        box-sizing: border-box;
        padding: 15px !important;
        font-size: 13px;
        /* Scale down overall text */
    }

    /* Fix template specific overflow on mobile */
    .template-creative .preview-paper,
    .preview-paper.template-creative {
        flex-direction: column !important;
    }

    .template-creative .cv-header,
    .preview-paper.template-creative .cv-header {
        width: 100% !important;
        min-height: auto !important;
        padding: 20px !important;
        text-align: center !important;
    }

    .template-creative .cv-body,
    .preview-paper.template-creative .cv-body {
        width: 100% !important;
        padding: 20px !important;
    }

    .template-minimal .cv-section,
    .preview-paper.template-minimal .cv-section {
        margin-left: 0 !important;
    }

    .template-minimal h4,
    .preview-paper.template-minimal h4 {
        position: static !important;
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 5px !important;
    }


    .cv-builder-header h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
}

/* =========================================
   LANDING PAGE STYLES (SEO & Conversion)
   ========================================= */

.cv-landing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
}

.landing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content .hero-desc {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 35px;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.hero-features li {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-features li i {
    color: #2ed573;
    font-size: 18px;
}

.start-btn {
    font-size: 18px;
    padding: 16px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, #aa00ff 0%, #4a00e0 100%);
    color: #fff !important;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(74, 0, 224, 0.4);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 0, 224, 0.5);
    background: linear-gradient(135deg, #8e00e6 0%, #3600a8 100%);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Abstract Mockup for Hero */
.cv-mockup {
    width: 350px;
    height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    padding: 30px;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.cv-mockup::before {
    content: 'CV';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 150px;
    font-weight: 900;
    color: #f9f9f9;
    z-index: 0;
}

.mockup-header {
    width: 60%;
    height: 20px;
    background: #1967d2;
    border-radius: 4px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.mockup-line {
    height: 12px;
    background: #eef1f6;
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.mockup-line.w-long {
    width: 100%;
}

.mockup-line.w-short {
    width: 70%;
}

.cv-landing-companies .home-companies-strip {
    background: transparent;
    border: none;
    border-radius: 12px;
    margin: 20px 0 60px 0;
    padding: 16px 0;
    position: relative;
    z-index: 50;
    box-shadow: none;
}

.cv-landing-companies .companies-strip-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cv-landing-companies .companies-strip-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.cv-landing-companies .companies-strip-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.cv-landing-companies .companies-strip-marquee-content {
    display: inline-flex;
    gap: 40px;
    animation: companiesStripScroll 25s linear infinite;
    padding: 0 10px;
    align-items: center;
}

.cv-landing-companies .companies-strip-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 60px;
}

.cv-landing-companies .companies-strip-logo img {
    max-height: 28px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.35;
    transition: all 0.3s ease;
    object-fit: contain;
}

.cv-landing-companies .companies-strip-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes companiesStripScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

@media (max-width: 767px) {
    .cv-landing-companies .home-companies-strip {
        margin: 10px 0 40px 0;
        padding: 12px 16px;
    }

    .cv-landing-companies .companies-strip-inner {
        gap: 12px;
    }

    .cv-landing-companies .companies-strip-label {
        font-size: 11px;
    }

    .cv-landing-companies .companies-strip-logo img {
        max-height: 26px;
    }

    .cv-landing-companies .companies-strip-marquee-content {
        gap: 30px;
    }
}

/* SEO Content Area */
.seo-long-tail-content {
    max-width: 1200px;
    margin: 0 auto;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Make the last odd child span 2 columns to center it nicely if there is an odd number of blocks */
@media (min-width: 768px) {
    .seo-grid .seo-block:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

.seo-block {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.seo-block h2 {
    font-size: 32px;
    color: #000000;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.seo-block p {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
}

.seo-block strong {
    color: #333;
}

/* FAQ Accordion */
.faq-accordion {
    margin-bottom: 15px;
    border: 1px solid #e0e6f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-accordion:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-accordion summary {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    list-style: none;
    position: relative;
    background: #f9fbfc;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #1967d2;
    transition: transform 0.3s;
}

.faq-accordion[open] summary {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.faq-accordion[open] summary::after {
    content: '−';
    /* minus sign */
}

.faq-content {
    padding: 25px;
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

/* Bottom CTA */
.bottom-cta {
    text-align: center;
    background: linear-gradient(135deg, #f0f6ff 0%, #e1edff 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin-top: 80px;
    margin-bottom: 40px;
}

.bottom-cta h3 {
    font-size: 36px;
    color: #1967d2;
    margin-bottom: 20px;
    font-weight: 800;
}

.bottom-cta p {
    font-size: 18px;
    color: #555;
    margin-bottom: 35px;
}

@media (max-width: 900px) {
    .landing-hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cv-mockup {
        transform: none;
        max-width: 300px;
        height: 420px;
        margin: 0 auto;
    }

    .logos-row {
        gap: 30px;
    }

    .seo-block h2 {
        font-size: 26px;
    }

    /* seo-grid: one column on mobile */
    .seo-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ: summary headers 30% smaller */
    .faq-accordion summary {
        font-size: 13px;
        padding: 14px 20px;
    }

    .faq-accordion summary::after {
        font-size: 18px;
        right: 18px;
    }

    /* Bottom CTA: center the button */
    .bottom-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }

    .bottom-cta .start-btn {
        display: inline-flex;
        width: auto;
    }
}