:root {
    --royal-bg-light: #FFFFFF;
    --royal-section-bg: #F8F8F8;
    --royal-text-dark: #3A1C4F;
    --royal-text-medium: #6E5C8B;
    --royal-accent-gold: #FFD700;
    --royal-accent-silver: #C0C0C0;
    --royal-accent-sapphire: #007BA7;
    --royal-accent-pink: #DB7093;
    --royal-accent-ruby: #E0115F;
    --royal-shadow-soft: 0 6px 25px rgba(0, 0, 0, 0.12);
    --royal-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.25);
    --royal-glow-text: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 215, 0, 0.5);
    --royal-border-soft: #D8D8D8;
}


/* Importação de Fontes (Playfair Display para títulos, Josefin Sans para corpo) */

@import url('https://fonts.com/css2?family=Playfair+Display:wght@400;700&family=Josefin+Sans:wght@300;400;600&display=swap');
body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: #1A1A1A;
    background-image: url('fundo.png');
    background-size: cover;
    /* A imagem cobrirá todo o fundo da janela */
    background-position: center center;
    /* Centraliza a imagem de fundo */
    background-repeat: no-repeat;
    /* A imagem não se repetirá */
    background-attachment: fixed;
    /* A imagem fica fixa ao rolar a página */
    color: var(--royal-text-dark);
    /* Cor do texto geral */
    line-height: 1.7;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    /* Garante que esta camada fique abaixo do conteúdo principal do site */
}

#container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: linear-gradient(to bottom right, var(--royal-section-bg), #FFFFFF);
    border-radius: 20px;
    border: 4px solid var(--royal-accent-gold);
    box-shadow: inset 0 0 0 3px var(--royal-accent-sapphire), var(--royal-shadow-soft);
    overflow: hidden;
    margin: 40px auto;
    transition: all 0.5s ease-in-out;
    position: relative;
    z-index: 1;
}

#container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    /* Borda interna brilhante */
    border-radius: 25px;
    pointer-events: none;
    z-index: -1;
}

#container:hover {
    box-shadow: inset 0 0 0 3px var(--royal-accent-gold), /* Invertendo cores ou mantendo para efeito */
    var(--royal-shadow-hover);
    transform: translateY(-3px) scale(1.005);
    border-color: var(--royal-accent-ruby);
}


/* Cabeçalho */

#jar-header {
    background: linear-gradient(to right, var(--royal-accent-sapphire), var(--royal-accent-pink));
    color: white;
    padding: 70px 40px 50px;
    text-align: center;
    border-bottom: 2px solid var(--royal-accent-gold);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.05);
}

#jar-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    margin: 0;
    text-transform: capitalize;
    letter-spacing: 2px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2), var(--royal-glow-text);
    /* Efeito "palavras mexendo" - Brilho suave e etéreo */
    animation: royalGlow 3s infinite alternate ease-in-out;
}

@keyframes royalGlow {
    0% {
        opacity: 0.95;
        transform: scale(1) translateY(0);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(0, 123, 167, 0.5);
        color: white;
    }
    50% {
        opacity: 1;
        transform: scale(1.005) translateY(-1px);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 215, 0, 0.8);
        color: var(--royal-accent-gold);
    }
    100% {
        opacity: 0.95;
        transform: scale(1) translateY(0);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(0, 123, 167, 0.5);
        color: white;
    }
}

#jar-header h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.6em;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


/* Conteúdo Principal e Barra Lateral */

.page-wrapper {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    background-color: var(--royal-section-bg);
    /* Fundo CLARO para o wrapper principal de conteúdo */
}

.main.supporting {
    flex: 3;
    padding: 50px;
    color: var(--royal-text-dark);
    border-right: 1px solid var(--royal-border-soft);
    background-color: var(--royal-section-bg);
    /* Fundo CLARO para a seção principal de suporte */
}

.intro {
    padding: 35px;
    background-color: var(--royal-bg-light);
    /* Fundo CLARO para a introdução */
    color: var(--royal-text-dark);
    border-bottom: 2px solid var(--royal-accent-sapphire);
    margin-bottom: 35px;
    border-radius: 15px;
    border: 3px solid var(--royal-accent-pink);
    box-shadow: inset 0 0 0 2px var(--royal-accent-ruby), var(--royal-shadow-soft);
    /* Sombra externa suave */
    line-height: 1.8;
    transition: all 0.4s ease-in-out;
}


/* Estilo para as Sub-seções de Conteúdo */

.summary,
.preamble,
.explanation,
.participation,
.benefits,
.requirements {
    margin-bottom: 35px;
    padding: 30px;
    background-color: var(--royal-bg-light);
    /* Fundo CLARO para estas sub-seções */
    border-radius: 15px;
    border: 3px solid var(--royal-accent-pink);
    box-shadow: inset 0 0 0 2px var(--royal-accent-ruby), var(--royal-shadow-soft);
    /* Sombra externa suave */
    line-height: 1.9;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* Efeito para passar o mouse */

.summary:hover,
.preamble:hover,
.explanation:hover,
.participation:hover,
.benefits:hover,
.requirements:hover {
    /* BORDA DUPLA HOVER: Inverte as cores da borda interna/externa ou adiciona novo brilho */
    box-shadow: inset 0 0 0 2px var(--royal-accent-pink), var(--royal-shadow-hover);
    /* Sombra mais intensa no hover */
    transform: translateY(-5px);
    border-color: var(--royal-accent-ruby);
    background: linear-gradient(to top left, var(--royal-bg-light), #FDFDFD);
}

.summary h3,
.preamble h3,
.explanation h3,
.participation h3,
.benefits h3,
.requirements h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: var(--royal-accent-gold);
    border-bottom: 1px solid var(--royal-accent-sapphire);
    padding-bottom: 12px;
    margin-top: 0;
    text-transform: capitalize;
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

p {
    margin-bottom: 20px;
    color: var(--royal-text-dark);
}


/* Efeitos para Links */

a {
    color: var(--royal-accent-pink);
    text-decoration: none;
    position: relative;
    transition: color 0.4s ease-in-out;
}

a::after {
    content: '';
    position: absolute;
    height: 3px;
    display: block;
    margin-top: 4px;
    left: 0;
    right: 0;
    background: linear-gradient(to right, var(--royal-accent-pink), var(--royal-accent-sapphire));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease-out, background 0.4s ease-out;
}

a:hover {
    color: var(--royal-accent-gold);
}

a:hover::after {
    transform: scaleX(1);
    background: linear-gradient(to right, var(--royal-accent-gold), var(--royal-accent-ruby));
}


/* Sidebar */

.sidebar {
    flex: 1;
    padding: 50px;
    background: linear-gradient(to top, var(--royal-bg-light), #FDFDFD);
    color: var(--royal-text-dark);
    border-left: 1px solid var(--royal-border-soft);
    /* Borda lateral ainda mais suave aqui */
}

.sidebar .wrapper {
    margin-bottom: 35px;
    background-color: var(--royal-section-bg);
    padding: 30px;
    border-radius: 15px;
    border: 3px solid var(--royal-accent-sapphire);
    box-shadow: inset 0 0 0 2px var(--royal-accent-gold), var(--royal-shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sidebar .wrapper:hover {
    transform: translateX(5px);
    box-shadow: inset 0 0 0 2px var(--royal-accent-sapphire), var(--royal-shadow-hover);
    border-color: var(--royal-accent-gold);
}

.sidebar .wrapper h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9em;
    color: var(--royal-accent-ruby);
    border-bottom: 1px solid var(--royal-accent-sapphire);
    padding-bottom: 12px;
    margin-top: 0;
    text-transform: capitalize;
}

.sidebar .wrapper ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.sidebar .wrapper li {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}


/* Efeitos Links da Sidebar */

.sidebar .wrapper a {
    color: var(--royal-text-dark);
    text-decoration: none;
    display: block;
    transition: color 0.4s ease, transform 0.4s ease;
    position: relative;
    padding-left: 30px;
}

.sidebar .wrapper a::before {
    content: '✨';
    font-size: 1.1em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--royal-accent-gold);
    transition: transform 0.3s ease-out;
}

.sidebar .wrapper a:hover {
    color: var(--royal-accent-gold);
    transform: translateX(8px);
}

.sidebar .wrapper a:hover::before {
    content: '👑';
    transform: translateY(-50%) scale(1.2) rotate(10deg);
}


/* Rodapé */

#jar-footer {
    background: linear-gradient(to top, var(--royal-accent-sapphire), var(--royal-accent-pink));
    color: white;
    text-align: center;
    padding: 35px 20px;
    font-size: 0.9em;
    border-top: 2px solid var(--royal-accent-gold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#jar-footer p {
    margin: 0;
    color: white;
}


/* Scrollbar Personalizado */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--royal-section-bg);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--royal-accent-gold), var(--royal-accent-sapphire));
    border-radius: 6px;
    border: 2px solid var(--royal-bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--royal-accent-silver), var(--royal-accent-ruby));
}


/* Responsividade */

@media (max-width: 900px) {
    #container {
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }
    .main.supporting {
        border-right: none;
        border-bottom: 2px solid var(--royal-border-soft);
    }
    .sidebar {
        border-left: none;
        border-top: 2px solid var(--royal-border-soft);
    }
    #jar-header h1 {
        font-size: 3.2em;
    }
    #jar-header h2 {
        font-size: 1.4em;
    }
    .main.supporting,
    .sidebar {
        padding: 40px;
    }
}

@media (max-width: 480px) {
    #jar-header {
        padding: 50px 20px;
    }
    #jar-header h1 {
        font-size: 2.5em;
        letter-spacing: 1px;
    }
    #jar-header h2 {
        font-size: 1.2em;
    }
    .main.supporting,
    .sidebar,
    .intro,
    .summary,
    .preamble,
    .explanation,
    .participation,
    .benefits,
    .requirements {
        padding: 25px;
    }
    .summary h3,
    .preamble h3,
    .explanation h3,
    .participation h3,
    .benefits h3,
    .requirements h3 {
        font-size: 1.8em;
    }
    .sidebar .wrapper h3 {
        font-size: 1.6em;
    }
}


/* Fundo com flores mágicas */

#container::after {
    content: '';
    background-image: url('flores.png');
    background-repeat: no-repeat, no-repeat;
    background-position: top left, bottom right;
    background-size: 100px, 120px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}


/* 💐 Fundo floral mágico nas seções */

.intro,
.summary,
.preamble,
.explanation,
.participation,
.benefits,
.requirements {
    background-image: url('flores.png');
    /* ← Textura floral suave */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-blend-mode: overlay;
}


/* ✨ Brilho animado nos títulos */

@keyframes fairySparkle {
    0% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    }
}

.summary h3,
.preamble h3,
.explanation h3,
.participation h3,
.benefits h3,
.requirements h3,
.sidebar .wrapper h3 {
    animation: fairySparkle 4s infinite;
}


/* Rodapé com ícones mágicos */

#jar-footer::before {
    content: '🌸👑';
    display: block;
    font-size: 1.5em;
    margin-bottom: 10px;
    opacity: 0.8;
}


/* Scrollbar personalizada */

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--royal-accent-gold), var(--royal-accent-ruby));
    border: 2px solid var(--royal-accent-sapphire);
}


/* Coroa de Flores para o Título (Jardim Web) */

#jar-header h1::before {
    content: '🌸🌿';
    /* Emojis para simular flores e folhagem */
    display: inline-block;
    margin-right: 15px;
    font-size: 0.8em;
    vertical-align: middle;
    transform: rotate(-10deg);
    animation: floatAndGlow 3s infinite ease-in-out alternate;
}

#jar-header h1::after {
    content: '🌿🌸';
    /* Emojis para simular folhagem e flores */
    display: inline-block;
    margin-left: 15px;
    font-size: 0.8em;
    vertical-align: middle;
    transform: rotate(10deg);
    animation: floatAndGlow 3s infinite ease-in-out alternate reverse;
}


/* Animação para o efeito "flutuante" e de brilho */

@keyframes floatAndGlow {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: translateY(-5px) scale(1.1) rotate(5deg);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
    }
}


/* Elemento Decorativo para o Subtítulo */

#jar-header h2::before {
    content: '✨';
    /* Um brilho decorativo */
    display: inline-block;
    margin-right: 10px;
    font-size: 0.9em;
    vertical-align: middle;
    animation: pulseGlow 2s infinite ease-in-out;
}

#jar-header h2::after {
    content: '✨';
    /* Outro brilho decorativo */
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9em;
    vertical-align: middle;
    animation: pulseGlow 2s infinite ease-in-out reverse;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}


/* Emoji nas listas */

.sidebar .wrapper li::after {
    content: '🌷';
    margin-left: 8px;
    font-size: 1em;
    color: var(--royal-accent-pink);
}