/* ===================================
   LANGUAGE CLASSES (.lang-en / .lang-pt)
   =================================== */

.lang-en {
    display: block;
}

.lang-pt {
    display: none;
}

/* Quando no modo PT, inverter visibilidade */
body.lang-pt .lang-en {
    display: none;
}

body.lang-pt .lang-pt {
    display: block;
}

/* ===================================
   MEDIA SECTION (Vídeo e Áudio)
   =================================== */

.media-section {
    background-color: var(--bg-light);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2.5rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.media-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
}

.video-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background-color: #000;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
}

/* Container responsivo para Streamable iframe (aspect ratio 16:9) */
.streamable-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;  /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.streamable-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.audio-container {
    width: 100%;
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.audio-container audio {
    width: 100%;
    height: auto;
    min-height: 40px;
}

/* Controles de vídeo e áudio */
video::-webkit-media-controls {
    display: flex;
}

audio::-webkit-media-controls {
    display: flex;
}

/* ===================================
   RESET E VARIÁVEIS GLOBAIS
   =================================== */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d63031;
    --accent-color: #0984e3;
    --text-color: #2c3e50;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dfe6e9;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'Courier New', monospace;
    --spacing-unit: 1.5rem;
    --max-width: 900px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
}

/* ===================================
   CONTAINER E LAYOUT BÁSICO
   =================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

main {
    padding-top: 80px;
}

section {
    padding: 4rem var(--spacing-unit);
}

section.section {
    border-bottom: 1px solid var(--border-color);
}

section.alt-bg {
    background-color: var(--bg-light);
}

/* ===================================
   HEADER FIXO
   =================================== */

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--secondary-color);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.language-toggle {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.lang-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background-color: #e84118;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(214, 48, 49, 0.3);
}

.lang-btn.active {
    background-color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-nav {
    display: none;
    background-color: var(--bg-light);
    border-bottom: 2px solid var(--secondary-color);
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: column;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav .nav-link {
    display: block;
    padding: 0.75rem var(--spacing-unit);
    border-bottom: 1px solid var(--border-color);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
    padding: 5rem var(--spacing-unit);
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.intro-box,
.context-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.intro-box h3,
.context-box h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.intro-box p,
.context-box p {
    margin-bottom: 1rem;
    text-align: justify;
}

.section-image {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================
   TIPOGRAFIA E HEADINGS
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: 1.2rem;
    margin-top: 1rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* ===================================
   CAIXAS E CARDS
   =================================== */

.note-box,
.disclaimer-box,
.warning-note,
.critical-box,
.highlight-box,
.impact-box,
.critical-section,
.inequality-intro,
.conclusion-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.note-box h4,
.disclaimer-box h4,
.warning-note h4,
.warning-note h5 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.impact-box {
    background-color: #fff3cd;
    border-left-color: var(--warning);
}

.critical-box {
    background: linear-gradient(135deg, #d63031 0%, #e84118 100%);
    color: white;
    border: none;
    padding: 2rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0;
}

.critical-insight {
    background-color: #fdeaea;
    border-left: 4px solid var(--danger);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.story-box {
    background-color: #e8f4f8;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.character-box {
    background-color: #f0f8ff;
    border: 2px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

/* ===================================
   CARDS DE CAMINHOS
   =================================== */

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f6fa 0%, #e9ecef 100%);
    border-bottom: 2px solid var(--border-color);
}

.card-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.caminho-1 { border-top: 4px solid #0984e3; }
.caminho-2 { border-top: 4px solid #6c5ce7; }
.caminho-3 { border-top: 4px solid #00b894; }
.caminho-4 { border-top: 4px solid #fdcb6e; }
.caminho-5 { border-top: 4px solid #d63031; }

.card-content {
    padding: 1.5rem;
}

.card-content ol, .card-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.card-content li {
    margin-bottom: 0.75rem;
}

/* ===================================
   COMPARAÇÃO E TABELAS
   =================================== */

.table-section {
    margin: 3rem 0;
}

.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.comparison-table,
.salary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comparison-table thead,
.salary-table thead {
    background-color: var(--primary-color);
    color: white;
}

.comparison-table th,
.salary-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.comparison-table td,
.salary-table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.comparison-table tbody tr:nth-child(even),
.salary-table tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

.comparison-table tbody tr:hover,
.salary-table tbody tr:hover {
    background-color: #e8f4f8;
}

.highlight-row {
    background-color: #fff3cd !important;
    font-weight: 600;
}

.table-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* ===================================
   LISTAS DE BENS
   =================================== */

.bens-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.ben-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.25rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ben-profession {
    display: block;
}

/* ===================================
   GRID DE IMPACTO SECTORIAL
   =================================== */

.impacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.impact-column {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.impact-column:nth-child(2) {
    border-left-color: var(--accent-color);
}

.impact-column h3 {
    margin-top: 0;
}

.impact-column ul {
    list-style: none;
    margin-left: 0;
}

.impact-column li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.impact-column li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===================================
   COMPARAÇÃO GERACIONAL
   =================================== */

.generational-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.gen-column {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.gen-column h4 {
    margin-top: 0;
    font-size: 1.1rem;
}

/* ===================================
   GRID DE PROBLEMAS
   =================================== */

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.problem-card {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(214, 48, 49, 0.15);
    transform: translateY(-4px);
}

.problem-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 50px;
}

.problem-content {
    flex: 1;
}

.problem-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.problem-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.problem-card.last-problem {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #fdeaea 0%, #fff5f5 100%);
}

/* ===================================
   LISTAS DE CONCLUSÕES
   =================================== */

.conclusions-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.conclusion-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.conclusion-item h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.conclusion-item.final-conclusion {
    border-left-color: var(--secondary-color);
    background: linear-gradient(135deg, #fdeaea 0%, #fff5f5 100%);
}

/* ===================================
   RAZÕES
   =================================== */

.why-pushes-out {
    margin: 2rem 0;
}

.reason-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.reason-card h4 {
    margin-top: 0;
    color: var(--secondary-color);
}

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

blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    background-color: var(--bg-light);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 4px;
}

/* ===================================
   LISTAS
   =================================== */

ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

ul.no-style {
    list-style: none;
    padding-left: 0;
}

/* ===================================
   DISCLAIMER SOBRE PREÇOS
   =================================== */

.disclaimer-pricing {
    background: linear-gradient(135deg, #fef3f3 0%, #fff5f5 100%);
    border-left: 4px solid #d63031;
    border-radius: 8px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.disclaimer-pricing h3 {
    color: #d63031;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.disclaimer-pricing p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: justify;
}

.disclaimer-pricing p:last-child {
    margin-bottom: 0;
}

.disclaimer-content {
    transition: opacity 0.3s ease;
}

.disclaimer-content[lang="en"] h3 {
    color: #d63031;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* ===================================
   BOTÕES DE PARTILHA
   =================================== */

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.share-buttons.final-share {
    gap: 0.75rem;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 44px;
    min-height: 44px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.share-btn.twitter {
    border-color: #1DA1F2;
    color: white;
    background-color: #1DA1F2;
}

.share-btn.twitter:hover {
    background-color: #1a8cd8;
    border-color: #1a8cd8;
}

.share-btn.facebook {
    border-color: #1877F2;
    color: white;
    background-color: #1877F2;
}

.share-btn.facebook:hover {
    background-color: #0a66c2;
    border-color: #0a66c2;
}

.share-btn.whatsapp {
    border-color: #25D366;
    color: white;
    background-color: #25D366;
}

.share-btn.whatsapp:hover {
    background-color: #20ba5c;
    border-color: #20ba5c;
}

.share-btn.copy {
    border-color: var(--secondary-color);
    color: white;
    background-color: var(--secondary-color);
}

.share-btn.copy:hover {
    background-color: #e84118;
    border-color: #e84118;
}

.share-btn.copy.copied {
    background-color: var(--success);
    border-color: var(--success);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
    text-align: center;
}

.footer small {
    opacity: 0.8;
}

/* ===================================
   FINAL SECTION
   =================================== */

.final-section {
    text-align: center;
    padding: 4rem var(--spacing-unit);
}

.share-note {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.share-note p {
    margin-bottom: 0;
    font-style: italic;
}

/* ===================================
   ANÁLISES E CONTENT BLOCKS
   =================================== */

.analysis-box,
.content-block,
.market-impact,
.treaty-loophole,
.solution-box,
.subsidy-box,
.systemic-effects,
.brain-drain,
.institutional-asymmetry,
.sectorial-conclusion,
.justice-box,
.market-dynamics,
.parallel-box,
.thought-experiment,
.analysis-muitos-bens,
.comparison-box,
.salary-principle {
    background-color: var(--bg-light);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.content-evaluation {
    background-color: #f0f8ff;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

/* ===================================
   RESPONSIVIDADE
   =================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .language-toggle {
        order: 3;
        width: 100%;
        margin: 1rem 0 0 0;
        justify-content: center;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .impacts-grid,
    .generational-comparison {
        grid-template-columns: 1fr;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding-top: 120px;
    }

    section {
        padding: 2rem 1rem;
    }

    .intro-box,
    .context-box {
        padding: 1.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .salary-table th,
    .comparison-table td,
    .salary-table td {
        padding: 0.75rem 0.5rem;
    }

    .problem-card {
        flex-direction: column;
    }

    .problem-number {
        width: auto;
        font-size: 1.5rem;
    }

    .share-buttons {
        gap: 0.5rem;
    }

    .share-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .share-label {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .media-section {
        padding: 1.5rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .media-title {
        font-size: 1rem;
    }

    .video-container video {
        max-height: 300px;
    }

    .streamable-container {
        padding-bottom: 56.25%;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-unit: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    h4 {
        font-size: 1rem;
    }

    body {
        font-size: 15px;
    }

    section {
        padding: 1.5rem 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    main {
        padding-top: 140px;
    }

    .intro-box,
    .context-box,
    .note-box,
    .card-content {
        padding: 1rem;
    }

    .critical-box {
        padding: 1rem;
        font-size: 1rem;
    }

    .ben-item {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .problem-card {
        padding: 1rem;
    }

    table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .salary-table th,
    .comparison-table td,
    .salary-table td {
        padding: 0.5rem;
    }

    .share-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .share-label {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .lang-btn {
        width: 100%;
        padding: 0.75rem;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    * {
        background-color: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Ocultar elementos de navegação e interação */
    .sticky-header,
    .menu-toggle,
    .mobile-nav,
    .language-toggle,
    .share-buttons,
    .final-share,
    .media-section,
    #scrollToTop,
    button {
        display: none !important;
    }

    /* Estilos gerais para impressão */
    body {
        font-size: 11pt;
        line-height: 1.5;
        color: black;
        background-color: white;
    }

    main {
        padding-top: 0;
    }

    section {
        page-break-inside: avoid;
        border: none !important;
        padding: 1cm;
        margin: 0;
    }

    section.alt-bg {
        background-color: white !important;
    }

    /* Headings e tipografia */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black;
        margin-top: 1cm;
        margin-bottom: 0.5cm;
    }

    h1 {
        font-size: 18pt;
    }

    h2 {
        font-size: 16pt;
        border: none;
        padding-bottom: 0;
    }

    h3 {
        font-size: 13pt;
    }

    /* Parágrafos e listas */
    p {
        page-break-inside: avoid;
        orphans: 3;
        widows: 3;
        margin: 0.5cm 0;
    }

    ul, ol {
        page-break-inside: avoid;
        margin-left: 1cm;
    }

    li {
        page-break-inside: avoid;
        margin: 0.25cm 0;
    }

    /* Caixas e cards */
    .card,
    .intro-box,
    .context-box,
    .note-box,
    .warning-note,
    .critical-box,
    .story-box,
    .character-box,
    .impact-box,
    .problem-card,
    .conclusion-item,
    .reason-card {
        page-break-inside: avoid;
        border: 1px solid black !important;
        border-left: 3px solid black !important;
        background-color: white !important;
        color: black !important;
        padding: 0.5cm;
        margin: 0.5cm 0;
    }

    /* Tabelas */
    table {
        page-break-inside: avoid;
        width: 100%;
        border-collapse: collapse;
        margin: 1cm 0;
    }

    table thead {
        background-color: white !important;
        color: black;
    }

    table th {
        background-color: #f0f0f0;
        color: black;
        border: 1px solid black;
        padding: 0.4cm;
        font-weight: bold;
    }

    table td {
        border: 1px solid black;
        padding: 0.4cm;
        color: black;
    }

    table tbody tr {
        background-color: white !important;
    }

    table tbody tr:nth-child(even) {
        background-color: #f9f9f9 !important;
    }

    /* Imagens */
    img {
        max-width: 100%;
        height: auto;
        page-break-inside: avoid;
        margin: 0.5cm 0;
    }

    .section-image {
        page-break-inside: avoid;
        border: 1px solid black;
    }

    /* Links */
    a {
        color: black;
        text-decoration: none;
        border-bottom: 1px dotted black;
    }

    /* Blockquotes */
    blockquote {
        border-left: 2px solid black !important;
        page-break-inside: avoid;
        margin: 0.5cm 0;
        padding: 0.5cm;
    }

    /* Footer */
    .footer {
        page-break-before: always;
        border-top: 2px solid black;
        padding-top: 1cm;
        font-size: 9pt;
        color: black;
    }

    /* Grid layouts para print */
    .impacts-grid,
    .generational-comparison,
    .problems-grid {
        display: block;
    }

    .impact-column,
    .gen-column,
    .problem-card {
        page-break-inside: avoid;
        margin: 0.5cm 0;
    }

    /* Quebras de página estratégicas */
    section:nth-child(even) {
        page-break-before: avoid;
    }

    /* Cores e fundos para B&W */
    .critical-box,
    .critical-insight {
        border: 2px solid black !important;
        background-color: white !important;
        color: black !important;
    }

    /* Últimas ajustes */
    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Prevenir viúvas e órfãos */
    h2, h3, h4, h5 {
        page-break-after: avoid;
    }

    .nav-link {
        display: none;
    }

    @page {
        margin: 2cm;
        size: A4 portrait;
    }

    @page :first {
        margin-top: 1cm;
    }

    @page :last {
        margin-bottom: 2cm;
    }
}
