/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scrolling on mobile */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
    min-height: 100vh;
    padding: 1rem;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Ensure all major containers respect width */
main, section, header, footer {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

header p {
    color: #718096;
    font-size: 1rem;
    font-weight: 400;
}

/* Main layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Section styling */
section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease;
}

section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4299e1;
}

section h3 {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 1rem;
}

/* Color inputs */
.color-input-group {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.color-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2d3748;
    font-size: 1.1rem;
}

.color-picker-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

input[type="color"] {
    width: 60px;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    transition: border-color 0.2s ease;
}

/* Mobile-friendly color picker */
@media (max-width: 768px) {
    input[type="color"] {
        width: 80px;
        height: 50px;
        border-width: 3px;
    }
}

input[type="color"]:hover {
    border-color: #4299e1;
}

input[type="color"]:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

input[type="text"] {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    min-width: 120px;
    background: white;
    transition: border-color 0.2s ease;
}

/* Mobile-friendly text inputs */
@media (max-width: 768px) {
    input[type="text"] {
        padding: 1rem;
        font-size: 1rem;
        min-width: 140px;
        border-width: 3px;
    }
}

input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.help-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

/* Preview section */
/* Quick Results Summary */
.quick-results {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #cbd5e0;
}

.contrast-ratio-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ratio-mini-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.ratio-mini-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.compliance-mini {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: help;
    transition: all 0.2s ease;
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-pass {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.status-fail {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.grade-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: help;
    transition: all 0.2s ease;
}

.grade-badge:hover {
    transform: scale(1.05);
}

.grade-excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.grade-good {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.grade-poor {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.preview-container {
    padding: 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    background: white;
}

.preview-text-samples {
    margin-bottom: 2rem;
}

.preview-text-samples p {
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.sample-normal {
    font-size: 16px;
    font-weight: normal;
}

.sample-large {
    font-size: 24px;
    font-weight: normal;
}

.sample-bold {
    font-size: 18.67px;
    font-weight: bold;
}

.preview-ui-elements {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.sample-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px;
    transition: all 0.2s ease;
}

.sample-button:hover {
    background: currentColor;
    color: var(--bg-color, white);
}

.sample-input {
    padding: 0.75rem;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: var(--bg-color, white);
    min-height: 44px;
}

.sample-card {
    padding: 1rem;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: var(--bg-color, white);
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Results section */
.contrast-ratio-display {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ratio-label {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.ratio-value {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    display: block;
    margin-top: 0.5rem;
}

/* Compliance indicators */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.compliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 4px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

.compliance-label {
    font-weight: 500;
    color: #2c3e50;
}

.compliance-status {
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compliance-status.pass {
    background: #c6f6d5;
    color: #22543d;
    border-left-color: #48bb78;
}

.compliance-status.fail {
    background: #fed7d7;
    color: #742a2a;
    border-left-color: #f56565;
}

.compliance-item.pass {
    border-left-color: #48bb78;
}

.compliance-item.fail {
    border-left-color: #f56565;
}

/* Additional tools */
.luminance-values {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.luminance-values h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

/* Recommendations sections */
.recommendations-section-left,
.recommendations-section-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recommendations-section-right h2 {
    margin-bottom: 1.5rem;
}

.recommendation-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.recommendation-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.wcag-info {
    display: grid;
    gap: 1rem;
}

.wcag-level {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #4299e1;
}

.wcag-level strong {
    color: #2d3748;
    display: block;
    margin-bottom: 0.5rem;
}

.wcag-level ul {
    margin: 0.5rem 0 0 1.25rem;
    color: #4a5568;
}

.wcag-level li {
    margin-bottom: 0.25rem;
}

.suggestions-list {
    display: grid;
    gap: 0.75rem;
}

.suggestion-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #ed8936;
}

.suggestion-item.success {
    border-left-color: #48bb78;
}

.suggestion-item.warning {
    border-left-color: #ed8936;
}

.suggestion-item.error {
    border-left-color: #f56565;
}

/* Color formats */
.color-formats {
    display: grid;
    gap: 1rem;
}

.format-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
}

.format-group label {
    font-weight: 600;
    color: #4a5568;
    min-width: 50px;
}

.format-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.format-display span {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #2d3748;
}

.copy-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

/* Touch-friendly copy buttons */
@media (max-width: 768px) {
    .copy-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        border-radius: 6px;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.copy-btn:hover {
    background: #3182ce;
}

.copy-btn.copied {
    background: #48bb78;
}

/* Quick presets - left side version */
.quick-presets-left {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.quick-presets-left h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.presets-grid-left {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.preset-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: center;
    font-size: 0.8rem;
}

/* Mobile-friendly preset buttons */
@media (max-width: 768px) {
    .presets-grid-left {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .preset-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        border-width: 3px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.preset-btn:hover {
    border-color: #4299e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preset-btn:active {
    transform: translateY(0);
}

/* Status messages */
.status-excellent {
    color: #22543d;
    background: #c6f6d5;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #48bb78;
}

.status-good {
    color: #744210;
    background: #fef5e7;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #ed8936;
}

.status-poor {
    color: #742a2a;
    background: #fed7d7;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #f56565;
}

.luminance-values p {
    margin-bottom: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* Mobile-first layout improvements */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body {
        padding: 0.25rem;
        box-sizing: border-box;
    }

    header {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    header h1 {
        font-size: 1.3rem;
        word-wrap: break-word;
        line-height: 1.3;
    }

    header p {
        font-size: 0.85rem;
        margin-top: 0.25rem;
    }

    footer {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 0.75rem 0.25rem;
        font-size: 0.8rem;
    }

    section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    section h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    main {
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .color-picker-container {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .preview-ui-elements {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sample-button,
    .sample-input,
    .sample-card {
        min-height: 44px;
        padding: 0.625rem;
        font-size: 0.9rem;
        word-wrap: break-word;
    }

    /* Fix compliance grid for mobile */
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .compliance-item {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .compliance-label {
        font-size: 0.8rem;
    }

    .compliance-status {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Fix format display for mobile */
    .format-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .format-display {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .format-display span {
        font-size: 0.8rem;
        word-break: break-all;
    }

    /* Improve quick results for mobile */
    .quick-results {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        text-align: center;
    }

    .contrast-ratio-mini {
        justify-content: center;
    }

    .compliance-mini {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Responsive design */
@media (min-width: 768px) {
    main {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "inputs preview"
            "results results"
            "recommendations-left recommendations-right"
            "tools tools";
    }

    .color-inputs {
        grid-area: inputs;
    }

    .preview-section {
        grid-area: preview;
    }

    .results-section {
        grid-area: results;
    }

    .recommendations-section-left {
        grid-area: recommendations-left;
    }

    .recommendations-section-right {
        grid-area: recommendations-right;
    }

    .additional-tools {
        grid-area: tools;
    }
}

@media (min-width: 1024px) {
    .color-picker-container {
        flex-direction: row;
    }
    
    .preview-ui-elements {
        justify-content: flex-start;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    section {
        border: 2px solid black;
        box-shadow: none;
    }
    
    input[type="color"],
    input[type="text"] {
        border: 2px solid black;
    }
    
    .preview-container {
        border: 3px solid black;
    }
}

/* Simple interactions */
.sample-button {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.compliance-status {
    transition: all 0.2s ease;
}

/* Error states for hex inputs */
.hex-error {
    color: #e53e3e;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Problem indicator animations */
@keyframes problemBlink {
    0%, 50% { 
        border-color: #f56565;
        box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.3);
    }
    25%, 75% { 
        border-color: #e53e3e;
        box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.5);
    }
}

.preview-container.problem {
    animation: problemBlink 2s ease-in-out infinite;
}

.quick-results.problem {
    background: linear-gradient(135deg, #fed7d7 0%, #fbb6ce 100%);
    border: 2px solid #f56565;
}

.quick-results.problem .ratio-mini-value {
    animation: problemBlink 1.5s ease-in-out infinite;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    header,
    section {
        animation: none !important;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #718096;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #cbd5e0;
    font-weight: 600;
    font-size: 1.1rem;
}

.breadcrumb a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #3182ce;
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #2d3748;
    font-weight: 600;
}

/* Content Sections (About, Features, FAQ) */
.content-section {
    background: white;
    padding: 3rem 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: none;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

/* About Section */
.about-section p:last-child {
    margin-bottom: 0;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: #f7fafc;
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #4299e1;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 0;
}

/* FAQ Section */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #4299e1;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 0;
}

/* Mobile Responsive Styles for New Sections */
@media (max-width: 767px) {
    .breadcrumb {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }

    .breadcrumb ol {
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .breadcrumb li:not(:last-child)::after {
        margin-left: 0.35rem;
        font-size: 1rem;
    }

    .content-section {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .content-section p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .faq-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .faq-item h3 {
        font-size: 1.05rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-section {
        padding: 2.5rem 1.75rem;
    }
}

/* SEO-friendly semantic improvements */
.content-section article {
    display: block;
}

/* Print styles for accessibility */
@media print {
    .breadcrumb,
    footer {
        display: block;
    }

    .content-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .feature-card,
    .faq-item {
        page-break-inside: avoid;
    }
}