:root {
    --color-ochre: #C15A0F;
    --color-ochre-dark: #9A460A;
    --color-bg: #FAF8F5; 
    --color-text: #332F2A; 
    --color-gold: #D4AF37;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Nunito', sans-serif;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

main {
    flex-grow: 1;
}

.font-serif {
    font-family: 'Lora', serif;
}

.font-sans {
    font-family: 'Nunito', sans-serif;
}

.text-ochre {
    color: var(--color-ochre);
}

/* Navbar Personalizada */
.custom-navbar {
    background-color: var(--color-ochre);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.custom-navbar .navbar-brand {
    font-size: 1.5rem;
    color: #fff;
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover, .custom-navbar .nav-link.active {
    color: #fff;
    font-weight: 600;
}

/* Links no meio do texto */
.custom-link {
    color: var(--color-ochre);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 1px dashed var(--color-ochre);
}

.custom-link:hover {
    color: var(--color-ochre-dark);
    border-bottom-style: solid;
}

/* Animações e UX Smooth */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.sutta-quote {
    background-color: var(--cor-citacao);
    border-left: 5px solid var(--cor-destaque);
    padding: 30px 40px;
    margin: 0 0 50px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.sutta-quote .pali-text {
    font-size: 1.1em;
    font-style: italic;
    color: #5c4033;
    margin-bottom: 15px;
    font-weight: 600;
}

.sutta-quote .translation {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 20px;
}

.sutta-quote .quote-source {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: #777;
    font-style: normal;
}

.sutta-quote .quote-source strong {
    color: #333;
}


.site-sections li {
    background: #ffffff;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-left: 3px solid #95a5a6;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.site-sections .section-title {
    font-weight: bold;
    color: var(--cor-destaque);
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.blessing {
    text-align: center;
    font-style: italic;
    margin-top: 50px;
    color: #666;
}





/* Lista de Artigos da página Prática */
.article-list-container {
    height: 400px;
    overflow-y: auto;
    border-top: 4px solid var(--color-ochre);
}

/* Scrollbar personalizada para a lista */
.article-list-container::-webkit-scrollbar {
    width: 6px;
}
.article-list-container::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.article-list-container::-webkit-scrollbar-thumb {
    background: var(--color-ochre); 
    border-radius: 4px;
}

.article-btn {
    text-align: left;
    background: none;
    border: none;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 600;
    color: var(--color-text);
}

.article-btn:hover, .article-btn.active {
    background-color: rgba(193, 90, 15, 0.1);
    color: var(--color-ochre-dark);
}

/* Galeria */
.cursor-pointer {
    cursor: pointer;
}

.gallery-img {
    aspect-ratio: 1 / 1 !important;     
    width: 100% !important;             
    height: 100% !important;            
    object-fit: cover !important;       
    display: block;
    border-radius: 2px;
    transition: filter 0.3s ease;
}

.gallery-img:hover {
    filter: brightness(0.85); 
}

/* Proteção contra download */
.gallery-img, #modalImage {
    -webkit-user-drag: none;      
    user-select: none;            
    -moz-user-select: none;
    -webkit-touch-callout: none; 
}

/* Container da marca d'água */
.watermark-wrapper {
    position: relative; /* Define o limite para a marca d'água não vazar */
    display: block;
    width: 100%;
    height: 100%;
}


.watermark-wrapper::after {
    content: "Source: DhammoEhipassiko.com"; 
    position: absolute;
    bottom: 8px; 
    right: 10px; 
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9); 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); 
    pointer-events: none; 
    user-select: none;    
    z-index: 5;
}

/* Container do vídeo na galeria */
.video-thumbnail {
    position: relative;
    display: block; 
    width: 100%;
    height: 100%;
}

/* Camada escura e botão de play por cima da miniatura */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Escurece a foto para o Play destacar */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    border-radius: 2px;
    z-index: 10; /* CRÍTICO: Força o botão a ficar POR CIMA da foto */
    pointer-events: none; /* CRÍTICO: Permite que o clique atravesse a camada e abra o modal */
}

.play-overlay svg {
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

.video-thumbnail:hover .play-overlay {
    background-color: rgba(0, 0, 0, 0.1); /* Clareia o fundo */
}

.video-thumbnail:hover .play-overlay svg {
    transform: scale(1.1); /* Dá um leve zoom no ícone de play */
}


#modalImage, #modalVideo {
    max-height: 80vh; 
    width: 100%;
    object-fit: contain; 
    background-color: #212529
}



.historical-box {
    background-color: #E9E4D9; 
    border-left: 5px solid #8B4513;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.95rem;
}

.historical-box h5 {
    font-family: 'Lora', serif;
    font-variant: small-caps;
    color: #5D2E0A;
    margin-bottom: 10px;
}

.historical-box a {
    color: var(--color-ochre);
    text-decoration: underline;
}

/* Accordion Customizado (Estudo) */
.accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(193, 90, 15, 0.2);
}

.accordion-button {
    background-color: transparent;
    color: var(--color-text);
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    padding: 20px 10px;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--color-ochre);
}

.accordion-button::after {
    filter: sepia(100%) saturate(1000%) hue-rotate(340deg);
}

/* Footer */
footer {
    background-color: #2D2A26;
    color: #A09A93;
    padding: 40px 0;
    margin-top: 80px;
}