/* ======================================
   ResumeForge – Premium Dark Theme CSS
   ====================================== */

/* Design Tokens */
:root {
    --primary: #6C5CE7;
    --primary-hover: #7C6FF7;
    --primary-glow: rgba(108, 92, 231, 0.4);
    --accent: #00CECE;
    --accent-glow: rgba(0, 206, 206, 0.3);
    --bg-dark: #F8F9FD;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-input: #F0F2F8;
    --border-color: rgba(0, 0, 0, 0.07);
    --border-focus: var(--primary);
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #9898B8;
    --panel-bg: #F0F2F8;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(108, 92, 231, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.07);
    --shadow-md: 0 8px 24px rgba(108, 92, 231, 0.1);
    --shadow-lg: 0 16px 48px rgba(108, 92, 231, 0.14);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Resume specific */
    --res-text: #333;
    --res-heading: #111;
    --res-font: 'Segoe UI', Arial, sans-serif;
    --res-link: #0056b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* =========== HOME VIEW =========== */
.app-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, var(--accent-glow) 0%, transparent 50%);
    animation: headerGlow 8s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-5%, 5%) scale(1.1);
    }
}

.header-inner {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-icon {
    font-size: 40px;
    filter: drop-shadow(0 4px 8px rgba(108, 92, 231, 0.5));
}

.logo-text {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.home-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.template-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.template-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: 300px;
    backdrop-filter: blur(10px);
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.2);
    border-color: var(--primary);
}

.template-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.template-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--glass-border);
}

.template-preview {
    height: 280px;
    background: linear-gradient(135deg, #1a1a2e, #252545);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-mockup {
    background: #fff;
    width: 100%;
    height: 100%;
    box-shadow: var(--shadow-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 4px;
}

.m-header {
    height: 18px;
    background: #ddd;
    width: 60%;
    margin: 0 auto;
    border-radius: 2px;
}

.m-header.wide {
    width: 80%;
}

.m-line {
    height: 2px;
    background: #ccc;
    width: 100%;
}

.m-section {
    height: 36px;
    background: #f0f0f0;
    width: 100%;
    border-radius: 3px;
}

.m-section.short {
    width: 70%;
}

.two-col {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 12px;
}

.two-col .m-left {
    width: 30%;
    height: 100%;
    background: #e0e0e0;
    border-radius: 3px;
}

.two-col .m-right {
    width: 70%;
    height: 100%;
    background: #f0f0f0;
    border-radius: 3px;
}

.template-info {
    padding: 20px;
    text-align: center;
}

.template-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.template-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.template-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.template-badge.soon {
    background: var(--bg-input);
    color: var(--text-muted);
}

.home-footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
}

/* =========== BUILDER VIEW =========== */
.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    height: 56px;
}

.builder-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.builder-header-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Step Progress Bar */
.step-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    gap: 0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.step-indicator span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--bg-input);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.step-indicator small {
    font-size: 10px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.step-indicator.active span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}

.step-indicator.active small {
    color: var(--text-primary);
}

.step-indicator.completed span {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.step-connector {
    width: 24px;
    height: 2px;
    background: var(--border-color);
    margin: 0 4px;
    margin-bottom: 18px;
    transition: background 0.3s;
}

.step-connector.completed {
    background: var(--accent);
}

.builder-container {
    display: flex;
    height: calc(100vh - 56px - 64px);
    /* header + progress bar */
}

/* Left Form Panel */
.form-panel {
    width: 480px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    overflow-y: auto;
}

.form-panel::-webkit-scrollbar {
    width: 6px;
}

.form-panel::-webkit-scrollbar-track {
    background: transparent;
}

.form-panel::-webkit-scrollbar-thumb {
    background: var(--bg-input);
    border-radius: 3px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.step-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.step-heading .material-symbols-outlined {
    color: var(--primary);
    font-size: 24px;
}

.form-group {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group small {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--bg-dark);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Sub-form */
.sub-form {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.sub-form h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.sub-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.sub-form input {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.25s;
}

.sub-form input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.sub-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
}

.step-actions.right {
    justify-content: flex-end;
}

.row {
    display: flex;
    gap: 14px;
}

.col {
    flex: 1;
}

/* Item Lists */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.item-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.item-card:hover {
    border-color: var(--primary);
}

.item-card-content h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.item-card-content p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* Buttons */
button {
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font);
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #8b7cf7);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.primary-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), #9b8ff7);
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-1px);
}

.primary-btn .material-symbols-outlined {
    font-size: 18px;
}

.glow-btn {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 4px 12px var(--primary-glow);
    }

    50% {
        box-shadow: 0 4px 24px var(--primary-glow), 0 0 40px rgba(108, 92, 231, 0.15);
    }
}

.secondary-btn {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.secondary-btn .material-symbols-outlined {
    font-size: 18px;
}

.icon-btn {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-size: 13px;
}

.icon-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.icon-btn .material-symbols-outlined {
    font-size: 18px;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font);
    transition: all 0.2s;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

.add-btn {
    border-style: dashed;
    border-color: var(--primary);
    color: var(--primary);
    width: 100%;
    padding: 12px;
    background: rgba(108, 92, 231, 0.05);
    justify-content: center;
    font-weight: 600;
}

.add-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--primary-hover);
}

.add-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Right Preview Panel */
.preview-panel {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: var(--panel-bg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.preview-panel::-webkit-scrollbar {
    width: 6px;
}

.preview-panel::-webkit-scrollbar-track {
    background: transparent;
}

.preview-panel::-webkit-scrollbar-thumb {
    background: var(--bg-input);
    border-radius: 3px;
}

.resume-wrapper {
    margin: 0 auto;
}

/* ======== RESUME PREVIEW ======== */
.resume-container {
    width: 210mm;
    min-height: 297mm;
    background: #ffffff;
    padding: 15px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    font-family: var(--res-font);
    color: var(--res-text);
    line-height: 1.25;
    font-size: 9pt;
    border-radius: 2px;
}

.resume-container header {
    text-align: center;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--res-heading);
    padding-bottom: 6px;
}

.resume-container header h1 {
    font-size: 20pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    color: var(--res-heading);
}

.resume-container header h2 {
    font-size: 11pt;
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}

.resume-container .contact-info {
    font-size: 8.5pt;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
}

.resume-container .contact-info a {
    color: var(--res-text);
    text-decoration: none;
}

.resume-container .contact-info a:hover {
    text-decoration: underline;
}

.resume-container section {
    margin-bottom: 8px;
}

.resume-container h3 {
    font-size: 10.5pt;
    text-transform: uppercase;
    color: var(--res-heading);
    border-bottom: 1px solid #ccc;
    margin-bottom: 4px;
    padding-bottom: 2px;
    font-weight: 700;
}

.resume-container h4 {
    font-size: 9.5pt;
    color: var(--res-heading);
    font-weight: 600;
}

.resume-container p,
.resume-container ul {
    font-size: 9pt;
}

.resume-container ul {
    padding-left: 18px;
}

.resume-container li {
    margin-bottom: 2px;
}

.resume-container .job {
    margin-bottom: 6px;
}

.resume-container .job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1px;
}

.resume-container .job-sub {
    font-size: 8.5pt;
    font-style: italic;
    color: #555;
    margin-bottom: 2px;
}

.resume-container .date {
    font-size: 9pt;
    font-weight: 600;
    color: #333;
}

.resume-container .project-item {
    margin-bottom: 4px;
}

.resume-container .project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.resume-container .project-sub {
    font-size: 8.5pt;
    font-style: italic;
    color: #555;
    margin-bottom: 2px;
}

.resume-container .project-link {
    font-size: 8.5pt;
    color: var(--res-text);
    text-decoration: none;
}

.resume-container .project-link:hover {
    text-decoration: underline;
}

.resume-container .edu-item {
    margin-bottom: 2px;
}

.resume-container .edu-header {
    display: flex;
    justify-content: space-between;
}

.resume-container .certifications ul li {
    margin-bottom: 1px;
}

.resume-container a.res-direct-link {
    color: var(--res-link);
    text-decoration: none;
}

.resume-container a.res-direct-link:hover {
    text-decoration: underline;
}

/* ======== PRINT ======== */
@page {
    size: A4;
    margin: 10mm;
}

@media print {
    body {
        background: none;
        background-color: white;
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-size: 9pt;
    }

    #homeView,
    .builder-header,
    .form-panel,
    .step-progress-bar {
        display: none !important;
    }

    .builder-container {
        height: auto;
        display: block;
        overflow: visible;
    }

    .preview-panel {
        display: block;
        padding: 0;
        background: none;
        overflow: visible;
    }

    .resume-wrapper {
        max-width: 100%;
        display: block;
    }

    .resume-container {
        margin: 0;
        padding: 0;
        box-shadow: none;
        max-width: 100%;
        width: 100%;
        min-height: auto;
    }

    a {
        text-decoration: none;
        color: var(--res-heading);
    }

    .job,
    .project-item,
    .edu-item,
    section {
        page-break-inside: avoid;
    }
}

/* ======== FORM STEP ANIMATION ======== */
.form-step {
    animation: fadeSlideIn 0.35s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======== TEMPLATE BADGE VARIANTS ======== */
.template-badge.exec-badge {
    background: linear-gradient(135deg, #2d3436, #636e72);
}

.template-badge.min-badge {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.template-badge.bold-badge {
    background: linear-gradient(135deg, #111, #555);
}

/* ======== TEMPLATE 2: ATS EXECUTIVE ======== */
.resume-container.template-2 header {
    border-bottom: none;
}

.resume-container.template-2 .exec-header {
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
    margin-bottom: 8px;
}

.resume-container.template-2 .exec-header h1 {
    font-size: 22pt;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.resume-container.template-2 .exec-role {
    font-size: 10pt;
    color: #555;
    font-style: italic;
    margin-bottom: 4px;
}

.resume-container.template-2 .exec-contact {
    font-size: 8pt;
    color: #777;
}

.resume-container.template-2 .exec-contact span {
    display: inline;
}

.resume-container.template-2 .exec-section {
    margin-bottom: 6px;
    padding: 6px 8px;
}

.resume-container.template-2 .exec-section.alt {
    background: #fafaf7;
}

.resume-container.template-2 .exec-section h3 {
    font-size: 10pt;
    font-weight: 700;
    color: #222;
    border-bottom: none;
    padding-left: 0;
    margin-bottom: 4px;
    text-transform: none;
}

/* ======== TEMPLATE 3: ATS MINIMAL ======== */
.resume-container.template-3 {
    padding: 25px 35px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.resume-container.template-3 header {
    border-bottom: none;
}

.resume-container.template-3 .min-header {
    text-align: left;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.resume-container.template-3 .min-header h1 {
    font-size: 22pt;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #222;
}

.resume-container.template-3 .min-role {
    font-size: 10pt;
    color: #999;
    font-weight: 300;
    margin-bottom: 4px;
}

.resume-container.template-3 .min-contact {
    font-size: 8pt;
    color: #bbb;
}

.resume-container.template-3 .min-contact span {
    display: inline;
}

.resume-container.template-3 .min-section {
    margin-bottom: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.resume-container.template-3 .min-section:first-of-type {
    border-top: none;
}

.resume-container.template-3 .min-section h3 {
    font-size: 9pt;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 2px;
    color: #aaa;
    border-bottom: none;
    margin-bottom: 6px;
}

.resume-container.template-3 h4 {
    font-weight: 500;
}

/* ======== TEMPLATE 4: ATS BOLD ======== */
.resume-container.template-4 {
    padding: 0;
}

.resume-container.template-4 header {
    border-bottom: none;
    text-align: left;
}

.resume-container.template-4 .bold-header {
    margin-bottom: 0;
}

.resume-container.template-4 .bold-name-bar {
    background: #111;
    padding: 14px 25px;
}

.resume-container.template-4 .bold-name-bar h1 {
    color: #fff;
    font-size: 20pt;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.resume-container.template-4 .bold-meta {
    padding: 8px 25px 6px;
}

.resume-container.template-4 .bold-role {
    font-size: 10pt;
    font-weight: 600;
    color: #333;
}

.resume-container.template-4 .bold-contact {
    font-size: 8pt;
    color: #888;
    margin-top: 2px;
}

.resume-container.template-4 .bold-contact span {
    display: inline;
}

.resume-container.template-4 .bold-section {
    padding: 0 25px 8px;
}

.resume-container.template-4 .bold-label {
    background: #111;
    color: #fff;
    font-size: 8pt;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    margin-top: 4px;
    display: inline-block;
}

/* ======== TEMPLATE 5: NAVY PHOTO HEADER ======== */
.resume-container.template-5 {
    padding: 0;
    background: #fff;
}

.resume-container.template-5 header {
    border-bottom: none;
}

.resume-container.template-5 .navy-header {
    margin-bottom: 0;
}

.resume-container.template-5 .navy-top {
    background: #1a2744;
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid #c9a227;
}

.resume-container.template-5 .navy-photo-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #3a4f80;
    border: 3px solid #c9a227;
    flex-shrink: 0;
}

.resume-container.template-5 .navy-name-block h1 {
    color: #ffffff;
    font-size: 18pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.resume-container.template-5 .navy-role {
    color: #c9a227;
    font-size: 10pt;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.resume-container.template-5 .navy-contact {
    background: #1a2744;
    padding: 6px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 3px solid #f5f5f5;
}

.resume-container.template-5 .navy-contact span {
    font-size: 8pt;
    color: #c9a227;
}

.resume-container.template-5 .navy-contact a {
    color: #c9a227;
    text-decoration: none;
}

.resume-container.template-5 .navy-section {
    padding: 6px 20px 4px;
}

.resume-container.template-5 .navy-section h3 {
    font-size: 9.5pt;
    font-weight: 700;
    color: #1a2744;
    text-transform: uppercase;
    border-left: 4px solid #c9a227;
    padding-left: 8px;
    border-bottom: none;
    margin-bottom: 5px;
}

.resume-container.template-5 .navy-section p,
.resume-container.template-5 .navy-section div {
    font-size: 9pt;
    color: #333;
}

/* ======== TEMPLATE 6: CHIP TAG BLUE ======== */
.resume-container.template-6 {
    padding: 0;
    background: #fff;
}

.resume-container.template-6 header {
    border-bottom: none;
}

.resume-container.template-6 .chip-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 16px;
    border-bottom: 2px solid #0a4fa0;
    margin-bottom: 0;
}

.resume-container.template-6 .chip-photo-placeholder {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #c8d8f0;
    border: 3px solid #0a4fa0;
    flex-shrink: 0;
}

.resume-container.template-6 .chip-header-right h1 {
    font-size: 16pt;
    font-weight: 800;
    color: #0a4fa0;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.resume-container.template-6 .chip-role {
    font-size: 10pt;
    color: #555;
    margin-bottom: 3px;
}

.resume-container.template-6 .chip-contact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.resume-container.template-6 .chip-contact span {
    font-size: 8pt;
    color: #0a4fa0;
}

.resume-container.template-6 .chip-contact a {
    color: #0a4fa0;
    text-decoration: none;
}

.resume-container.template-6 .chip-section {
    padding: 5px 20px 0;
}

.resume-container.template-6 .chip-section h3 {
    font-size: 9.5pt;
    font-weight: 700;
    color: #0a4fa0;
    border-bottom: 2px solid #0a4fa0;
    padding-bottom: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.resume-container.template-6 .skill-chip {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 8pt;
    padding: 2px 8px;
    margin: 2px 3px 2px 0;
    font-weight: 500;
}

.resume-container.template-6 .skill-chip.green {
    background: #dcfce7;
    color: #166534;
}

.resume-container.template-6 .skill-chip.yellow {
    background: #fef3c7;
    color: #92400e;
}

.resume-container.template-6 .skill-chip.pink {
    background: #fce7f3;
    color: #9d174d;
}

/* ======== TEMPLATE 7: TEAL TWO-COLUMN ======== */
.resume-container.template-7 {
    padding: 0;
    background: #fff;
}

.resume-container.template-7 header {
    border-bottom: none;
}

.resume-container.template-7 .teal-header {
    background: #0d9488;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.resume-container.template-7 .teal-header h1 {
    font-size: 18pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 2px;
}

.resume-container.template-7 .teal-role {
    font-size: 10pt;
    opacity: 0.9;
    margin-bottom: 2px;
}

.resume-container.template-7 .teal-tagline {
    font-size: 8pt;
    opacity: 0.75;
}

.resume-container.template-7 .teal-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.resume-container.template-7 .teal-contact span {
    font-size: 8pt;
    color: rgba(255, 255, 255, 0.85);
}

.resume-container.template-7 .teal-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.resume-container.template-7 .teal-tags-bar {
    background: #ccfbf1;
    padding: 6px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border-bottom: 1px solid #a7f3d0;
}

.resume-container.template-7 .teal-tags-bar * {
    font-size: 8pt;
}

.resume-container.template-7 .teal-body {
    display: flex;
    gap: 0;
    padding: 0;
}

.resume-container.template-7 .teal-main {
    flex: 3;
    padding: 10px 16px;
    border-right: 1px solid #e0f2fe;
}

.resume-container.template-7 .teal-sidebar {
    flex: 1.2;
    padding: 10px 12px;
    background: #f8fffe;
}

.resume-container.template-7 .teal-section {
    margin-bottom: 8px;
}

.resume-container.template-7 .teal-section h3,
.resume-container.template-7 .teal-sidebar-section h3 {
    font-size: 9pt;
    font-weight: 700;
    color: #0d9488;
    border-bottom: 1px solid #0d9488;
    padding-bottom: 2px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resume-container.template-7 .teal-sidebar-section {
    margin-bottom: 8px;
}

.resume-container.template-7 p,
.resume-container.template-7 div {
    font-size: 9pt;
}

.resume-container.template-7 h4 {
    font-size: 9pt;
    font-weight: 600;
    color: #1a1a1a;
}

/* ======== TEMPLATE GRID: 7-up responsive ======== */
.template-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.template-card {
    width: 260px;
}