/* File: public/style.css */
/* General Styles */
body {
  /* Isso é uma "Pilha de Fontes" (Font Stack). 
    O navegador tenta usar a primeira fonte da lista. Se não a encontrar, 
    passa para a próxima, e assim por diante, até encontrar uma que funcione.
    Isso garante que o site tenha uma aparência consistente e legível em qualquer dispositivo.
  */
  font-family: 
    caecilia, sans-serif, /* 1. A FONTE PRINCIPAL (WEB FONT): Tenta primeiro carregar a fonte 'Caecilia' que configuramos no Adobe Fonts. O nome deve ser exato. */
    
    /* 2. A PILHA DE FONTES DE SISTEMA (SYSTEM FONT STACK): Se a Caecilia falhar por algum motivo, em vez de usar uma fonte genérica, pedimos ao navegador para usar a fonte padrão do sistema operacional do usuário. Isso é moderno, super rápido (não precisa de download) e faz o site parecer "nativo" do dispositivo. */
    -apple-system,      /* Para Safari no macOS e iOS (ex: fonte San Francisco) */
    BlinkMacSystemFont, /* Para Chrome no macOS */
    "Segoe UI",        /* Para Windows */
    Roboto,             /* Para Android e Chrome OS */
    Helvetica,          /* Fallback clássico para macOS/iOS mais antigos */
    Arial,              /* Fallback universal, presente em quase todos os sistemas */
    
    /* 3. A OPÇÃO GENÉRICA FINAL */
    sans-serif,         /* Se NENHUMA das anteriores funcionar, o navegador usará qualquer fonte sem serifa que tiver disponível. É a garantia final. */

    /* 4. FONTES PARA EMOJIS: Estas garantem que os emojis sejam exibidos corretamente em diferentes sistemas. */
    "Apple Color Emoji", 
    "Segoe UI Emoji", 
    "Segoe UI Symbol";
  
  /* ... (outras propriedades do body) ... */
  margin: 0;
  background-color: #fffaf2;
  color: #4A4A4A;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 90%;
  max-width: 1100px; /* Max width for content */
  margin: 0 auto;
  padding: 0 15px;
}

:root {
  --color-principal: #F8941B;
  --color-destaque: #940312;
  --color-paleta-1: #A12E05;
  --color-paleta-2: #AB1805;
  --color-paleta-5: #FA761F;

  --main-color: var(--color-principal);
  --main-color-hover: #F8941B; /* Darker shade of F8941B */
  --highlight-color: var(--color-destaque);

  --text-color: #4A4A4A; /* Adjusted for better readability */
  --text-color-headings: #333333; /* Slightly darker for headings */
  --link-color-footer: var(--color-paleta-5); /* Using a lighter orange for footer links on dark background */
  --link-color-footer-hover: #ffffff;
  --footer-bg-color: #2c1e10; /* Dark brown derived from palette */

  /* Dark Mode Colors */
  --dark-bg: #2c1e10; /* Dark brown from the original footer */
  --dark-surface: #41301f; /* A slightly lighter brown for surfaces */
  --dark-text: #e8d9c7; /* A warm, off-white for text */
  --dark-text-headings: #fffaf2; /* The original light background color for headings */
  --dark-main-color: #F8941B; /* Orange can stay vibrant */
  --dark-highlight-color: #fa8a94; /* A slightly softer red for dark mode */
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode .site-header {
  background-color: var(--dark-surface);
  border-bottom-color: #444;
  box-shadow: 0 20px 14px rgba(0, 0, 0, 0.5);
}

body.dark-mode .logo-text {
  color: var(--dark-main-color);
}

body.dark-mode .main-nav a {
  color: var(--dark-text);
}

body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav a:focus,
body.dark-mode .main-nav a.active {
  color: var(--dark-main-color);
  border-bottom-color: var(--dark-main-color);
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
  color: var(--dark-text-headings);
}

body.dark-mode .content-section {
  background-color: var(--dark-surface);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

body.dark-mode .content-section.background-light {
  background-color: #5a452e; /* A contrasting darker brown */
}

body.dark-mode .btn-primary, body.dark-mode .btn-primary-apoio {
  background-color: var(--dark-main-color);
  color: #2c1e10; /* Using the dark background color for text for better contrast */
  font-weight: bold;
}

body.dark-mode .btn-secondary {
  background-color: var(--dark-highlight-color);
  color: #fff;
}

body.dark-mode .site-footer {
  background-color: #111;
}

/* Theme Toggle Button */
.theme-toggle-button {
  background: transparent;
  border: 1px solid var(--text-color);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  position: relative;
  width: 50px;
  height: 28px;
  transition: border-color 0.3s;
}

.theme-toggle-button:hover {
  border-color: var(--main-color);
}

.theme-toggle-button svg {
  width: 20px;
  height: 20px;
  color: var(--text-color);
  transition: opacity 0.3s, transform 0.3s;
}

.theme-toggle-button .moon-icon {
  opacity: 0;
  transform: translateX(-20px);
}

.theme-toggle-button .sun-icon {
  opacity: 1;
  transform: translateX(0);
}

body.dark-mode .theme-toggle-button {
  border-color: var(--dark-text);
}

body.dark-mode .theme-toggle-button:hover {
  border-color: var(--dark-main-color);
}

body.dark-mode .theme-toggle-button svg {
  color: var(--dark-text);
}

body.dark-mode .theme-toggle-button .sun-icon {
  opacity: 0;
  transform: translateX(20px);
}

body.dark-mode .theme-toggle-button .moon-icon {
  opacity: 1;
  transform: translateX(0);
}


a {
  color: var(--main-color);
  text-decoration: none;
}

a:hover {
  color: var(--main-color-hover);
  text-decoration: underline;
}

h1, h2, h3{
  
  font-family: caecilia, sans-serif;
  font-weight: 800;
  font-style: normal; /* Using Caecilia for headings */
  color: var(--text-color-headings);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

   h4, h5, h6 {
  font-family: caecilia, sans-serif;
  font-weight: 700;
  font-style: normal; /* Using Caecilia for headings */
  color: var(--text-color-headings);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 { font-size: 3em; }
h2 { font-size: 2em; }
h3 { font-size: 1.85em; }

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  background-color: #ffffff; /* White background for header */
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: -30px; /* Space below header */
  border-top: 1px solid #e7e7e7; /* Subtle border at the top */
  border-bottom: 1px solid #e7e7e7; /* Subtle border */
  box-shadow: 0 20px 14px rgba(0, 0, 0, 0.308);
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  position: sticky; /* Make header sticky */
  top: 0; /* Stick to the top of the viewport */
  z-index: 1000; /* Ensure it stays above other content */
  transition: top 0.4s;

 
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Make header elements spread to the ends */
  justify-content: space-between;
  /* Optional: If you want the content to truly hit the edges of the viewport for the header only */
     max-width: none;
     padding-left: 20px;
     padding-right: 20px; 
}
.footer-logo-area img {
  max-width:80px;
  display:block;
  margin:0 auto;
}
.footer-logo-area p {
text-align:center;
margin-top:8px; 
font-size:1rem;
margin-bottom: -5px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 50px; /* Adjust as needed */
  margin-right: 10px;
}

.logo-text {
  font-size: 1.8em; /* Adjust as needed */
  font-weight: bold;
  color: var(--main-color); /* Using main color for logo text */
}

.header-social-icons {
  display: none; /* Ocultar ícones sociais do cabeçalho em todas as resoluções */
  /* As regras anteriores de display: flex e margins são agora irrelevantes se display: none */
}

/* Removendo as regras de .header-social-icons a e svg que não terão efeito se o container pai está none */


.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active { /* Add .active class with JS for current page */
  color: var(--main-color);
  border-bottom-color: var(--main-color);
}

.menu-toggle {
  display: none; /* Hide hamburger icon on larger screens by default */
}

/* Hero Section (index.html) */
.hero-section {
  background-image: url('Imagens/Fundo_Lamed.png'); /* User requested background image */
  background-size: cover; /* Cover the entire section */
  background-attachment: fixed; /* Parallax effect */
  background-color: #2c1e10; /* Fallback color, dark brown from palette */
  height: 280px; /* Fixed height for hero section */
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff; /* Ensure text is readable */
  padding: 80px 0; /* Increased padding for better visual with background */
  margin-bottom: -35px;
  text-align: center;
  position: relative; /* For pseudo-element overlay if needed */
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.212);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  background-color: rgba(31, 19, 5, 0.363); /* Dark brown overlay, derived from palette */
  z-index: 1;
}

.hero-section .container { /* Ensure content is above the overlay */
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: #ffffff;
  font-size: 3em;
  margin-bottom: 0.5em;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.212);;
  
}

.hero-section p {
  font-size: 1.2em;
  margin-bottom: 1em;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.212);
}

#hero-text-1, #hero-text-2 {
    transition: opacity 0.8s ease-in-out;
}

/* Content Sections */
.content-section {
  padding: 115px 0;
  background-color: #fffaf2; /* White for main content areas */
  margin-bottom: 20px; /* Space between sections */
  border-radius: 25px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.179);
}

.content-section.background-light {
    background-color: #ffb618b6; /* Very light orange, derived from main color */
  border-radius: 25px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.129) ; /* Slightly stronger shadow for contrast */
  
}

.content-section-background-light-text {
  margin-left: 120px;
  margin-right: 120px;
}


.content-section h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 2.2em;
  color: var(--highlight-color); /* Using highlight color for section titles */
}


/* Video List / Grid */
.video-list, .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
  gap: 20px;
  margin-top: 20px;
}

.video-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0; /* Lighter border */
  border-radius: 25px;
  overflow: hidden; /* Ensures iframe corners are rounded if border-radius is applied */
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.212);
}

.video-item iframe {
  width: 100%;
  display: block; /* Removes extra space below iframe */
  border: none; /* Remove iframe border */
}

.video-item p { /* For optional titles below videos */
  padding: 10px;
  margin: 0;
  font-weight: bold;
  color: var(--text-color-headings);
  text-align: center;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-apoio{
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  border: none;
  cursor: pointer;
}
.btn-primary-apoio {
  margin-top: 30px;
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  border: none;
  cursor: pointer;
}
.btn-primary, .btn-primary-apoio{
  background-color: var(--main-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.278);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary-apoio:hover, .btn-primary-apoio:focus {
  background-color: var(--main-color-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 20px rgba(242, 153, 29, 0.543);
}

.btn-secondary {
  background-color: var(--highlight-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.278);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--color-paleta-1); /* Darker red from palette */
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 5px 20px rgba(186, 7, 7, 0.621);
}

/* Articles Page - Grid Layout */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.article-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; /* helps footer stick to bottom if content is short */
  flex-direction: column;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.article-card-link {
  text-decoration: none;
  color: inherit; /* Inherit text color from .article-card */
  display: flex;
  flex-direction: column;
  height: 100%; /* Make link fill card */
}

.article-card-image img {
  width: 100%;
  height: 200px; /* Fixed height for thumbnails */
  object-fit: cover; /* Crop image to fit */
  display: block;
}

.article-card-content {
  padding: 20px;
  flex-grow: 1; /* Allows content to expand and push .read-more down */
}

.article-card-content h3 {
  margin-top: 0;
  font-size: 1.4em;
  color: var(--text-color-headings);
}

.article-card-content p {
  font-size: 0.95em;
  color: var(--text-color);
  margin-bottom: 15px;
  flex-grow: 1; /* Allows paragraph to take available space */
}

.article-card-content .read-more {
  display: inline-block;
  color: var(--main-color);
  font-weight: bold;
  text-decoration: none;
  margin-top: auto; /* Pushes to the bottom if card content is short */
}

.article-card-content .read-more:hover {
  text-decoration: underline;
}

/* Single Article Page Layout */
.article-page .article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  border-radius: 25px;
}

.inline-image img {
  border-radius: 800px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 10px 0; /* Space around inline images */
}

.article-banner-image {
  width: 100%;
  max-height: 450px; /* Max height for banner */
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.356);
}

.article-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the area, might crop */
  transform: translateY(-70px);
}
@media screen and (max-width: 768px) {
  .article-banner-image img {
    scale: 1.4; /* Scale down the image on smaller screens */
    transform: translateY(0px); /* Adjust vertical position for smaller screens */
  }
  
}

.article-page h1 { /* Article Title */
  font-size: 2.8em;
  margin-bottom: 0.2em;
  color: var(--text-color-headings);
}

.article-meta {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 20px;
}

.article-content {
  font-size: 1.1em; /* Slightly larger font for readability */
  line-height: 1.7;
}



.article-content h3 {
  font-size: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  color: var(--text-color-headings);
}

@media screen and (max-width: 768px) {
  .last-article h3 {
    font-size: 1.5em; /* Ajusta o tamanho do título em telas menores */
    margin-left: 10px; /* Adiciona margem lateral para espaçamento */
    margin-right: 10px; /* Adiciona margem lateral para espaçamento */
  }
}

@media screen and (max-width: 768px) {
  .article-page h1 {
    font-size: 1.8em; /* Smaller title on mobile */
  }
  
}

@media screen and (max-width: 768px) {
  .article-content h2 {
    font-size: 1.4em; /* Smaller headings on mobile */
  }
  .article-content h3 {
    font-size: 1.2em; /* Smaller subheadings on mobile */
  }
}

.article-content p {
  margin-bottom: 1.5em;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5em;
  padding-left: 25px;
}

.highlight-points {
  list-style: disc;
  margin-left: 120px; /* Indent for highlight points */
  margin-right: 120px; /* Indent for highlight points */
  padding-left: 0; /* Reset padding for ul */
  text-align: left; /* Align list items to the left */
}

@media (max-width: 768px) {
  .highlight-points {
    margin-left: 20px;
    margin-right: 20px;
    text-align: left; /* Ensure left alignment on mobile */
  }
}

.article-content blockquote {
  border-left: 8px solid var(--main-color);
  margin: 40px 0 40px 0px; /* No left margin for blockquote itself */
  padding: 10px 20px;
  background-color: #ffecd4; /* Light orange, consistent with .background-light */
  font-style: italic;
  color: var(--text-color); /* Ensure text color is readable */
  /*border-radius: 17.5px;*/
  border-top-right-radius: 17.5px;
  border-bottom-right-radius: 17.5px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative; /* For pseudo-element if needed */
}

.article-content blockquote p {
  margin-bottom: 0.5em;
  margin-left: 20px; /* Indent text inside blockquote */
  margin-right: 20px; /* Indent text inside blockquote */
}
.article-content blockquote footer {
  font-style: normal;
  font-size: 0.9em;
  color: #555;
}

.article-content figure {
  margin: 20px auto;
  text-align: center;
}

.article-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-content figure figcaption {
  font-size: 0.9em;
  color: #777;
  margin-top: 8px;
}

/* Donation Page Specifics */

/* Hero Section Styling for Donation Page */
#donation-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* Adjust padding as needed */
  padding-bottom: 80px; /* Adjust padding as needed */
  text-align: center; /* Ensure text is centered if not already */
}

#donation-hero .container h1 {
  margin-bottom: 0.5em; /* Space below H1 */
}

.donation-page .lead {
  font-size: 1.25em;
  margin-bottom: 1.5em; /* Space below lead paragraph */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero-donate {
  margin-bottom: 2em; /* Space below the button, before the video */
  padding: 15px 35px; /* Larger button */
  font-size: 1.2em;
}

.featured-donation-video {
  max-width: 800px;
  width: 100%; /* Ensure it takes full width up to max-width */
  margin: 0 auto; /* Centering the video container */
  border-radius: 25px;
  overflow: hidden; /* To clip iframe corners if needed */
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.featured-donation-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important; /* Ensure responsive height */
  border: none; /* Remove iframe border if any */
}

/*
.valeu-video {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 15px auto;
  border-radius: 17.5px;
  max-width: 450px;
  height: 280px;
  font-size: 0.95em;
  margin-top: 10px;
  margin-bottom: 50px;
}
/*
/* Estiliza o "envelope" do vídeo para garantir o border-radius */
.valeu-video {
  margin: 10px auto 50px auto;
  border-radius: 17.5px;
  max-width: 450px;
  
  /* PONTO-CHAVE: Esconde as bordas retas do vídeo que "vazam" */
  overflow: hidden;

  /* Efeito visual adicional para o container */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Garante que o vídeo preencha 100% do seu "envelope" */
.valeu-video video {
  display: block; /* Remove espaços extras */
  width: 100%;
  height: auto;   /* Mantém a proporção */
}

/* Regra para telas mobile */
@media (max-width: 768px) {
  .valeu-video {
    width: 90%;
    margin-bottom: 30px;
  }
}




.donation-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.donation-method-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.donation-method-card h3 {
  margin-top: 0;
  color: var(--main-color);
  font-size: 1.6em;
}

.donation-method-card p {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.donation-method-card .qr-code-placeholder {
  font-style: italic;
  color: #888;
  margin-top: 15px;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 4px;
  min-height: 50px; /* Placeholder height */
}

#donation-transparency strong {
    color: var(--text-color-headings);
}


/* Articles Page Specifics */
/* CSS para o Card de Artigo Clicável */

/* 1. Transforma o card em um container de posicionamento */
.last-article {
  margin-top: 30px;
  padding: 20px;
  background-color: #faf7f2; /* Light cream background */
  border-radius: 25px;
  box-shadow: 0 8px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  transition: transform 0.4s, box-shadow 0.4s, background-color 0.4s; 
  position: relative;
}

/* 2. Faz o link dentro do <h3> se expandir */
.last-article h3 a::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; /* Garante que o link esticado fique acima de outros conteúdos */
}

/* 3. Garante que a imagem não fique "embaixo" do link (opcional, mas bom para consistência) */
.last-article .article-banner-image {
    position: relative;
    z-index: 0;
}
.last-article:hover {
  box-shadow: 0 12px 15px rgba(0,0,0,0.15);
  background-color: #fff7c9;
  transform: translateY(-8px);
}

.article-banner-image  {
  width: 1500px;
  max-height: 500px; /* Max height for banner */
  overflow: hidden;
  max-width: 100%;
  height: auto;
  border-radius: 50px;
  box-shadow: 0 10px 8px rgba(0,0,0,0.1);
  transform: translateY(-10px); /* Slightly raised effect */

}

#lista-artigos ul {
  list-style: none;
  padding: 0;
}

#lista-artigos li {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 17.5px;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.4s, box-shadow 0.4s, background-color 0.4s; 
}
#lista-artigos li:hover {
  clip-path: inset(0 round 17.5px); /* Makes the shadow follow the border radius */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

#lista-artigos a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 15px;
}
#lista-artigos a:hover {
  background-color:#fff7c9; /* Subtle hover for the whole item */
}
#lista-artigos strong {
  display: block;
  font-size: 1.4em;
  color: var(--main-color); /* Make titles stand out */
  margin-bottom: 5px;
}
#lista-artigos span {
  color: #555;
  font-size: 0.95em;
}

/* Donation Page Specifics */
#doacao h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
#doacao ul {
    list-style: disc;
    margin-left: 20px;
}
#doacao li {
    margin-bottom: 8px;
}

#doacao a {
    color: var(--color-destaque);
    text-decoration: none;
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg-color);
  color: #e0e0e0; /* Lighter gray for footer text */
  padding: 30px 0;
  text-align: center;
  font-size: 0.9em;
  margin-top: 50px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.199);

}

.site-footer .container {
    flex: auto;/* If using multiple columns in footer, can use flex here */
}

.social-links {
  margin-bottom: 15px;
}

.social-links a, .social-links img { /* Added img for potential icon styling */
  color: var(--link-color-footer);
  margin: 0 10px;
  font-size: 1.1em; /* Slightly larger for better clickability */
  vertical-align: middle; /* Align icons with text if mixed */
}

.social-links a:hover {
  color: var(--link-color-footer-hover);
  text-decoration: underline;
}

.site-footer a { /* General links in footer if any others are added */
  color: var(--link-color-footer);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--link-color-footer-hover);
  text-decoration: underline;
}

.footer-legal p {
  margin: 5px 0;
  color: #b0b0b0; /* Slightly darker than main footer text for less emphasis */
}

.footer-legal a {
  color: var(--link-color-footer); /* Ensure legal links also use footer link color */
}
.footer-legal a:hover {
  color: var(--link-color-footer-hover);
}

/* Footer Styling for new structure */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Three equal columns */
  gap: 20px; /* Space between columns */
  align-items: start; /* Align items to the start of their grid cell */
  margin-bottom: 30px; /* Space before footer-legal */
  padding: 20px 0; /* Padding top and bottom */
}

.footer-contact-info,
.footer-logo-tagline,
.footer-social-media {
  text-align: center; /* Center text within each grid item */
}

.footer-contact-info h3,
.footer-social-media h3 {
  font-size: 1.2em;
  color: var(--link-color-footer-hover); /* White/light color for headings */
  margin-bottom: 10px;
}

.footer-contact-info p a {
  color: var(--link-color-footer);
  text-decoration: none;
}
.footer-contact-info p a:hover {
  color: var(--link-color-footer-hover);
  text-decoration: underline;
}

.footer-logo-tagline img.footer-logo-img {
  max-width: 100px; /* Adjust as needed */
  margin-bottom: 10px;
}

.footer-logo-img {
  width: 100px; /* Fixed width for logo */
  height: auto; /* Maintain aspect ratio */
  transition: transform 0.8s ease; /* Smooth zoom effect on hover */
}

.footer-logo-img:hover {
  transform: scale(1.25); /* Slight zoom effect on hover */
  
}

.footer-logo-tagline p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #e0e0e0;
}

/* --- ESTILO DO BOTÃO "DOE" ANIMADO --- */

.footer-doe-btn-grid {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  background-color: transparent;
  border: 1px solid var(--main-color);
  color: #ffffff !important;
  overflow: hidden;
  position: relative;
  transition: all 0.5s ease-in-out;
}

.footer-doe-btn-grid:hover {
  background-color: var(--main-color-hover);
  transform: translateY(-4px) scale(1.04);
}

/* Ícone dentro do botão */
.footer-doe-btn-grid .lucide-icon {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  flex-shrink: 0;
}

/* Container que segura os textos */
.footer-doe-btn-grid .button-text-container {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  white-space: nowrap;
}

/* Texto que aparece no hover (escondido por padrão) */
.footer-doe-btn-grid .text-hover {
  max-width: 0;
  opacity: 0;
  transition: max-width 0.5s ease-in-out 0.1s, opacity 0.2s ease-in-out;
}

/* Texto padrão (visível por padrão) */
.footer-doe-btn-grid .text-default {
  max-width: 100px; /* Espaço para "Doe" */
  opacity: 1;
  transition: max-width 0.5s ease-in-out, opacity 0.3s ease-in-out;
}


/* --- ESTADO DE HOVER --- */

/* No hover do botão, expande o texto de hover... */
.footer-doe-btn-grid:hover .text-hover {
  max-width: 200px; /* Espaço para "quero apoiar" */
  opacity: 1;
}

/* ...e esconde o texto padrão */
.footer-doe-btn-grid:hover .text-default {
  max-width: 0;
  opacity: 0;
}

/* Estilo principal do botão de e-mail */
.footer-email-btn-grid {
  display: inline-flex; /* Usa flex para alinhar ícone e texto lado a lado */
  align-items: center;
  padding: 10px 15px; /* Padding ajustado */
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  background-color: transparent;
  border: 1px solid var(--color-destaque);
  color: #ffffff !important;
  overflow: hidden; /* Essencial para a animação do texto */
  position: relative;
  transition: all 0.5s ease-in-out; /* Transição suave para todas as propriedades */
}

/* Estilo para os ícones dentro do botão */
.footer-email-btn-grid .lucide-icon {
  flex-shrink: 0; /* Impede que o ícone seja "espremido" */
  transition: all 0.4s ease-in-out;
}

/* Esconde o ícone de hover por padrão */
.footer-email-btn-grid .icon-hover {
  display: none;
}

/* Container dos textos */
.button-text-container {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  white-space: nowrap; /* Impede que o texto quebre a linha durante a animação */
}

/* Esconde o texto de hover por padrão usando max-width */
.button-text-container .text-hover {
  max-width: 0;
  opacity: 0;
  transition: max-width 0.5s ease-in-out, opacity 0.2s ease-in-out;
}

/* Texto padrão visível */
.button-text-container .text-default {
  max-width: 100px; /* Espaço suficiente para "e-mail" */
  opacity: 1;
  transition: max-width 0.5s ease-in-out, opacity 0.4s ease-in-out;
}


/* --- ESTADO DE HOVER --- */

.footer-email-btn-grid:hover {
  background-color: var(--color-destaque);
  transform: translateY(-4px) scale(1.08);
}

/* No hover, mostra o ícone de hover... */
.footer-email-btn-grid:hover .icon-hover {
  display: inline-block;
}

/* ...e esconde o ícone padrão */
.footer-email-btn-grid:hover .icon-default {
  display: none;
}

/* No hover, expande o texto de hover... */
.footer-email-btn-grid:hover .text-hover {
  max-width: 300px; /* Espaço suficiente para o e-mail completo */
  opacity: 1;
}

/* ...e esconde o texto padrão */
.footer-email-btn-grid:hover .text-default {
  max-width: 0;
  opacity: 0;
}

.social-links-footer, .social-links-footer-email {
  display: flex;
  flex-direction: column; /* Stack social links vertically */
  align-items: center; /* Center social links */
  gap: 10px;
}

/* --- ESTILOS COMPLETOS E RESPONSIVOS PARA BOTÕES SOCIAIS --- */

/* 1. Estilo Principal (Desktop) */
.social-btn-footer {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--link-color-footer-hover);
  border: 1px solid transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  /* A transição agora inclui 'max-width' para o botão em si */
  transition: all 0.5s ease-in-out;
}

.social-btn-footer:hover,
.social-btn-footer:focus {
  transform: translateY(-3px) scale(1.04);
  color: #ffffff;
}

.social-btn-footer svg {
  width: 20px;
  height: 20px;
  stroke: var();
  transition: stroke 0.3s ease;
  flex-shrink: 0;
}

.social-btn-footer:hover svg {
  stroke: #ffffff;
}

.social-btn-footer .button-text-container {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.social-btn-footer .text-hover {
  max-width: 0;
  opacity: 0;
  transition: max-width 0.5s ease-in-out, opacity 0.2s ease-in-out;
}

.social-btn-footer .text-default {
  max-width: 100px;
  opacity: 1;
  transition: max-width 0.5s ease-in-out, opacity 0.3s ease-in-out 0.1s;
}

.social-btn-footer:hover .text-hover {
  max-width: 200px;
  opacity: 1;
}

.social-btn-footer:hover .text-default {
  max-width: 0;
  opacity: 0;
}

/* Cores específicas (Desktop) */
.social-btn-footer.youtube {
  border-color: #FF0000;
}
.social-btn-footer.youtube:hover {
  background-color: #FF0000;
}

.social-btn-footer.instagram {
  border-color: #C13584;
}
.social-btn-footer.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
  border-color: transparent;
}


/* 2. Regras para Telas Pequenas (Mobile) */
@media (max-width: 768px) {
  /* Esconde o container de texto inteiro no mobile */
  .social-btn-footer .button-text-container {
    display: none;
  }

  /* Ajusta o padding e o alinhamento para o botão "só ícone" */
  .social-btn-footer {
    padding: 8px 10px;
    justify-content: center;
  }
  
  /* Remove a margem do ícone, já que não há mais texto */
  .social-btn-footer svg {
    margin-right: 0;
  }

  /* Opcional, mas recomendado: desativa o efeito de "saltar" no mobile,
     pois não há expansão para acompanhá-lo */
  .social-btn-footer:hover {
    transform: none;
  }
}

/* REMOVE OLD FOOTER STYLES no longer needed with Grid */
.footer-content-wrapper,
.footer-row-centered,
.footer-logo-area,
.footer-buttons, /* If this was only for the old doe button */
.footer-row-contact-social,
.footer-contact, /* If this was only for the old contact layout */
.social-links /* If this was the old general social links container */
{
  display: none !important; /* Effectively remove them for now */
}
/* Keep .btn-footer and .btn-doe-footer if they are used elsewhere, or integrate into .footer-doe-btn-grid */


#back-to-top {
  position: fixed;
  bottom: 50px; /* Adjusted: raised slightly */
  right: 20px;
  background-color: #94031159;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  text-align: center;
  line-height: 1; /* Adjust line-height for SVG centering */
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: none; /* Initially hidden, JS will show it */
  z-index: 1001;
  transition: background-color 0.3s ease, opacity 0.5s ease, visibility 0.5s ease, bottom 0.3s ease, transform 0.5s ease;
  padding: 0; /* Remove padding if icon is precisely sized */
  display: flex; /* For centering SVG inside */
  align-items: center;
  justify-content: center;
  
}

/* Ícone dentro do botão */
#back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: white;
  transition: transform 0.3s ease; /* Animação suave para o ícone */
}

/* Animação do ícone ao passar o mouse no botão */
#back-to-top:hover svg {
  animation: back-to-top-bounce 1.3s cubic-bezier(0.4,0,0.6,1) infinite, ease-in-out;
}

@keyframes back-to-top-bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(-4px);
  }
  70% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

#back-to-top:hover {
  background-color: #940312;
  transform: translateY(-4px) scale(1.03);
}

/* Ensure the button is not displayed by JS until scroll, then opacity transition works */
#back-to-top {
    display: none; /* Start hidden, JS controls display:block/none */
    opacity: 0; /* Start transparent for fade-in */
    visibility: hidden; /* Start not visible for transition */
}

/* About Page Specifics (from previous round, ensure they are present) */
.about-hero-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.focus-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.5s, box-shadow 0.5s; 
  
  /* Adições importantes */
  position: relative; /* Para posicionar o pseudo-elemento dentro do card */
  z-index: 1;         /* Garante que o conteúdo do card fique acima do fundo animado */
  overflow: hidden;   /* Esconde o pseudo-elemento antes da animação */
}

/* Cria a camada de cor que ficará escondida */
.focus-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  border-radius: 100px; /* Arredondamento para o efeito de transição suave */
  box-shadow: 0 0 0 35px var(--color-destaque); /* Sombra para o efeito de transição */
  /* PONTO-CHAVE: Coloca a camada de cor atrás do conteúdo do card
  
  /* Defina a cor que você quer que apareça no hover */
  background-color: var(--main-color-hover); 
  
  /* Esconde o conteúdo e o posiciona fora da pilha de renderização normal */
  z-index: -1;
  
  /* Começa "espremido" (invisível) e prepara a transição */
  transform: scaleX(0);
  transform-origin: top; /* A animação virá da esquerda */
  transition: transform 0.4s ease-in-out;
}

/* Animação no hover */
.focus-item:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: translateY(-10px);
}

.focus-item:hover::before {
  /* Faz a camada de cor se expandir para preencher todo o card */
  transform: scaleX(1);
}
.focus-item:hover h3 { /* Adicionado para o título */
  color: var(--color-destaque); /* White text on hover */
  transition: color 0.4s ease-in-out;
}

.focus-item:hover p { /* Adicionado para o parágrafo, se houver */
  /* Garante que o texto mude de cor para ser legível sobre o novo fundo */
  color: white; /* White text on hover */; 
  transition: color 0.4s ease-in-out;
}
.focus-item h3 {
  color: var(--highlight-color);
  margin-top: 0;
}

/* REMOVED: .team-carousel-wrapper styles */

.team-grid { /* Adjusted for simple grid layout */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
  gap: 30px; /* Gap between team members */
  margin-top: 30px; /* Space above the grid */
}
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    gap: 24px;
  }
}

@media (max-width: 768px) {
  #team .container {
    position: static; /* Let controls be relative to viewport */
    padding-left: 0;
    padding-right: 0;
  }

  .team-grid {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 15px;
    /* Padding to ensure cards don't touch the edges */
    padding: 0 15px; 
    align-items: stretch;
  }

  /* Hide scrollbar across browsers */
  .team-grid::-webkit-scrollbar { display: none; }
  .team-grid { -ms-overflow-style: none; scrollbar-width: none; }

  .team-member-card-container {
    flex: 0 0 85%;
  }

  .team-carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    width: 100vw;
    padding-left: 10px;
    padding-right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    gap: 120px; /* aumenta o espaço entre os botões */
    z-index: 10;
  }

  .carousel-control {
    pointer-events: all;
    background-color: rgba(44, 30, 16, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    cursor: pointer;
    /* Set default opacity and transition */
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
  }

  .carousel-control:hover,
  .carousel-control:active {
    /* Set opacity to 1 on hover and click */
    opacity: 1;
  }
}

/* Nossa História Expandable Section */
.history-content-wrapper {
  position: relative; /* For the fade effect positioning */
}

.expandable-content {
  max-height: 100px; /* Adjust this value to show roughly 3 paragraphs + part of 1st image */
  overflow: hidden;
  position: relative; /* For the fade pseudo-element */
  transition: max-height 0.7s ease-in-out;
}

.expandable-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px; /* Adjust height of the fade effect */
  background: linear-gradient(to bottom, transparent, #fffaf2 90%); /* Match page background */
  pointer-events: none; /* Allows clicks to pass through */
  transition: opacity 0.5s ease-in-out;
}

.expandable-content.expanded {
  max-height: 10000px; /* A large enough value to show all content */
}

.expandable-content.expanded::after {
  opacity: 0; /* Hide fade when expanded */
}

#read-more-history {
  display: block; /* Make button take full width or center it easily */
  margin: 20px auto 0; /* Center button and add space above */
  /* Using .btn-secondary styles by default, can customize if needed */
}


/* Team Carousel Controls - Hidden globally */
.team-carousel-controls {
  display: none;
}

.carousel-control {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 5px;
  font-size: 1.2em;
}

.carousel-control:hover {
  background-color: var(--main-color-hover);
}


.team-member-card {
  background-color: #ffffff;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.5s ease, box-shadow 0.5s ease, padding 1s ease, margin 1s ease; /* REMOVED: opacity transition */
  /* REMOVED: min-width (handled by grid item size) */
  /* REMOVED: scroll-snap-align */
  opacity: 1; /* Ensure full opacity */
}
@media (min-width: 769px) {
 
}

/* REMOVED: .team-member-card.active-slide styles */


.team-member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--main-color);
}

.team-member-card h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.4em;
  color: var(--text-color-headings);
}

.team-member-role {
  font-size: 0.95em;
  color: var(--text-color);
  margin-bottom: 0;
}

/*
 Sobre Page Specific Font 
.sobre-page .content-section p,
.sobre-page .content-section li,
.sobre-page .content-section h2, /* Apply to headings on sobre page as well 
.sobre-page .content-section h3,
.sobre-page .focus-item p,
.sobre-page .hero-section p, /* Also for hero paragraph 
.sobre-page #history p em, /* For italicized placeholder text 
.sobre-page #meaning-lamed p em { /* For italicized placeholder text 
  font-family: 'Caecilia LT Std', serif;  /* Use !important to ensure override if necessary 
}
/* Ensure headings on "Sobre" page also use Caecilia, but keep their specific weights/sizes if defined by h1,h2,h3 general styles 
.sobre-page h1, .sobre-page h2, .sobre-page h3, .sobre-page h4, .sobre-page h5, .sobre-page h6 {
    font-family: 'Caecilia LT Std', serif; 
} */


/* Utility Classes */
.text-center {
  text-align: center;
  margin-top: 20px;
}

/* Homepage Specifics */
/* Estilo para o vídeo em destaque na INDEX.HTML */
#hero + .content-section .single-featured-video .video-item { /* Mais específico para index */
  max-width: 100vw;
  width: 70vw; /* Aumentado um pouco para melhor visualização, mas ainda relativo à viewport */
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 25px;
}

#hero + .content-section .single-featured-video .video-item iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: none;
  border-radius: 25px; /* Arredondar o próprio iframe */
}


/* Videos Page Specifics */
/* Contêiner para o vídeo em destaque na PÁGINA DE VÍDEOS */
#video-gallery .video-item-highlighted {
    max-width: 900px; /* Largura máxima para o vídeo em destaque */
    margin: 20px auto 40px auto; /* Centralizar e adicionar margem inferior */
    border-radius: 25px; /* Bordas arredondadas para o contêiner do vídeo */
    overflow: hidden; /* Para garantir que o iframe com bordas arredondadas funcione bem */
}

/* O .video-item dentro do .video-item-highlighted na PÁGINA DE VÍDEOS */
#video-gallery .video-item-highlighted .video-item {
    width: 100%; /* Ocupa toda a largura do .video-item-highlighted */
    margin-left: 0;
    transform: none;
    border-radius: 0; /* Remove o radius do .video-item para não conflitar com o pai */
}

/* Iframe do vídeo em destaque na PÁGINA DE VÍDEOS */
#video-gallery .video-item-highlighted .video-item iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border: none;
    border-radius: 25px; /* Bordas arredondadas para o iframe */
}


.external-video-links {
  margin-bottom: 35px;
}
.external-video-links .btn-primary,
.external-video-links .btn-secondary {
  margin: 5px 10px;
}

.video-grid.thirteen-videos .video-item-highlighted {
  grid-column: 1 / -1; /* Make highlighted video span full width */
  max-width: 900px; /* Max width for highlighted video */
  margin: 0 auto 20px auto; /* Center it and add bottom margin */
}

.video-grid.thirteen-videos .video-item-highlighted iframe {
  aspect-ratio: 16 / 9;
  height: auto !important; /* Ensure responsive height */
  width: 100%;
}

.video-grid.thirteen-videos .video-item:not(.video-item-highlighted) iframe {
  /* height: 200px; */ /* Removido para usar aspect-ratio */
  aspect-ratio: 16 / 9;
  height: auto !important;
  width: 100%; /* Adicionado para garantir que o aspect-ratio funcione corretamente */
}

/* Download List Styles */
.download-list {
  list-style: none;
  padding: 0;
}

.download-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-item-info h3 {
  margin-top: 0;
  margin-bottom: 5px;
}

.download-item-info p {
  margin: 0;
  color: #666;
}

.download-item-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--main-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.download-item-link:hover {
  background-color: var(--main-color-hover);
}

.placeholder-article {
  width:100%; 
  height:200px; 
  background:#ccc; 
  text-align:center; 
  line-height:200px;
}
.featured-article-summary {
  background-color: #fffaf2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  max-width: 700px;
  margin: 20px auto; /* Center the article summary block */
  border-radius: 50px;
  box-shadow: 0 2px 20px rgba(36, 36, 36, 0.372);
}

.featured-article-summary .article-image-placeholder img,
.featured-article-summary .article-image-placeholder div {
  max-width: 100%;
  height: auto;
  border-radius: 50px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(33, 33, 33, 0.413);
}

.featured-article-title-h3 {
  margin-right: 100px;
  margin-left: 100px;
}
.featured-article-summary h3 a {
  text-decoration: none;
  color: var(--text-color-headings);
  
}
.featured-article-summary h3 a:hover {
  color: var(--main-color);
  text-decoration: underline;
}

.readmore-article-link {
  margin-bottom: 10px;
}

/* Text alignment for index page sections */
.container {
  text-align: center; /* Center text in the container */
  margin: 0 auto; /* Center the container itself */
  max-width: 1200px; /* Limit the width of the container */
  padding: 0 20px; /* Add some padding for larger screens */
}

#featured-articles .featured-article-summary p,
#call-to-action-donate .container p,
#about-short .container p {
  text-align: center;
  /* padding-left: 10px; */ /* Removido pois as margens farão o controle */
  /* padding-right: 10px; */ /* Removido pois as margens farão o controle */
  margin-left: 100px;
  margin-right: 100px;
}

@media (max-width: 768px) {
  #featured-articles .featured-article-summary p,
  #call-to-action-donate .container p,
  #about-short .container p {
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* Ensure the container itself is centered if it's not full width, and text within is centered */
#call-to-action-donate .container,
#about-short .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Donation Charts Styling */
.charts-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the blocks if they don't fill the line */
  gap: 30px; /* Increased gap for better spacing */
  margin-top: 30px;
  margin-bottom: 30px;
  align-items: flex-start; /* Align items to the top if they have different heights */
}

.charts-container-geral {
  /* This is for the general donation charts, can be used similarly to charts-container */
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the blocks if they don't fill the line */
  gap: 30px; /* Increased gap for better spacing */
  margin-top: 60px;
  margin-bottom: 30px;
  align-items: flex-start; /* Align items to the top if they have different heights */
}



.chart-block {
  background-color: #fff;
  padding: 25px; /* Increased padding */
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* max-width is applied in the media query for larger screens for side-by-side */
}

.chart-block canvas {
  max-width: 100%;
  height: auto !important; /* Important to override potential Chart.js inline styles */
  max-height: 380px; /* Slightly increased max-height */
}

/* Default for smaller screens: charts stack */
@media (max-width: 959px) {
  .chart-block {
    max-width: 480px; /* Max width for a single stacked chart */
    margin-left: auto; /* Center the single chart block */
    margin-right: auto; /* Center the single chart block */
  }
}

/* For medium to larger screens: try to put them side-by-side */
@media (min-width: 960px) {
  .charts-container, .charts-container-geral  {
    flex-wrap: nowrap; /* Prevent wrapping if we want them strictly side-by-side */
  }
  .chart-block {
    width: calc(50% - 15px); /* (100% / 2) - (gap / 2) */
    max-width: 450px; /* Still respect a max-width per chart for very large screens */
  }
}

/* If charts are still too big or causing issues on very large screens,
   we can cap the .charts-container's width or add another breakpoint.
   For instance:
@media (min-width: 1200px) {
  .charts-container {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}
*/

.chart-block h3, .chart-block h4 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-color-headings);
}

#donation-transparency ul {
  /* This style might no longer be needed if ul is replaced by cards, but keep for now if used elsewhere */
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 5px;
}
#donation-transparency ul li {
  margin-bottom: 8px;
}

/* Styling for Donation Detail Cards */
.donation-details-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 40px; /* Space after the cards section */
}

.detail-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left:8px solid var(--main-color); /* Accent border */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  transition: transform 0.8s ease, box-shadow 0.8s ease;
}

.detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.171);
}

.detail-card h5 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
  color: var(--highlight-color);
}

.detail-card p {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 0;
}

.detail-card p strong {
  color: var(--text-color-headings); /* Make percentage stand out a bit */
}



/* Responsive adjustments for charts if needed */
@media (min-width: 769px) {
  .charts-container {
    /* flex-direction: row; */
    /* justify-content: space-around; */
  }
  .chart-block {
    /* width: 48%; */
  }
}

/* About Page - Nossa História - Inverted Section */
.history-inverted-section {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap on smaller screens */
  gap: 30px; /* Space between image and text block */
  margin-top: 40px; /* Space above this section */
  margin-bottom: 30px; /* Space below this section */
  align-items: center; /* Vertically align items if they have different heights */
}

.history-inverted-section .history-image-container {
  flex: 1 1 300px; /* Flex properties: grow, shrink, basis */
  /* Image will try to be 300px wide, can grow or shrink */
}

.history-inverted-section .history-image-container img {
  width: 100%;
  max-width: 400px; /* Max width for the image */
  height: auto;
  border-radius: 8px;
  display: block; /* Remove extra space below image */
  margin: 0 auto; /* Center image if container is wider */
}

.history-inverted-section .history-text-container {
  flex: 2 1 400px; /* Text container will try to be 400px, takes more available space */
}

.history-inverted-section .history-text-container h4 {
  margin-top: 0; /* Remove top margin if it's the first element */
  color: var(--highlight-color);
  font-size: 1.5em;
}

.history-text-container strong {
  color: var(--text-color-headings);
  font-weight: bold;
  
  margin-bottom: 10px; /* Space below the strong text */
  }

.history-text-container em {
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 15px; /* Space below italic text */
}

.history-text-container strong em {
  font-style: italic; /* Italicize the strong text */
  color: var(--text-color-headings); /* Use heading color for emphasis */
  margin-bottom: 15px; /* Space below italicized strong text */

}

/* Responsive adjustments for history-inverted-section */
@media (max-width: 768px) {
  .history-inverted-section {
    flex-direction: column; /* Stack image and text vertically */
  }
  .history-inverted-section .history-image-container,
  .history-inverted-section .history-text-container {
    flex-basis: auto; /* Reset basis for stacked layout */
    width: 100%; /* Take full width when stacked */
    text-align: center; /* Center text content on mobile */
  }
  .history-inverted-section .history-image-container img {
    margin-bottom: 20px; /* Space below image when stacked */
  }
  .history-inverted-section .history-text-container h4 {
    text-align: center;
  }
}


/* About Page - Lamed Symbolism Grid */
.lamed-symbolism-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
  gap: 25px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.lamed-symbolism-card {
  background-color: #ffffff; /* Card background */
  padding: 20px;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.123);
  display: flex;
  flex-direction: column; /* Stack icon and text vertically within card */
  align-items: center; /* Center items horizontally */
  text-align: center; /* Center text */
  border-top: 10px solid var(--main-color); /* Accent color on top */
  transition: transform 0.5s ease, box-shadow 0.5s ease; /* Smooth transition for hover effects */
}

.lamed-symbolism-card:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.226);
}

.lamed-symbolism-card:hover .lucide-trending-up {
  animation: draw-and-pause 6s infinite ease-out;
}

.lamed-symbolism-icon {
  margin-bottom: 15px; /* Space between icon and title */
  color: var(--main-color);
}



.lamed-symbolism-icon svg {
  width: 48px; /* Icon size */
  height: 48px;
}


/* CSS para a Animação do Ícone Trending Up */

.lucide-trending-up {
  width: 48px; /* Mantendo o tamanho que você definiu no HTML */
  height: 48px;
  stroke: var(--main-color);
  fill: none;
  stroke-width: 2; /* Mantendo a espessura do HTML */
  cursor: pointer;
  
  /* Prepara o ícone para a animação */
  stroke-dasharray: 100; /* Um valor que cobre todo o comprimento do caminho */
  stroke-dashoffset: 0;  /* Começa totalmente desenhado */
}

.lucide-trending-up.is-animating {
  /* Ativa a animação em loop com duração de 3 segundos no hover */
  animation: draw-and-pause 4s infinite ease-out;
}

@keyframes draw-and-pause {
  /* Etapa 1: Apagar Rápido (de 0% a 15% da animação) */
  /* O ícone vai de totalmente visível (offset 0) a invisível (offset 100) */
  0% {
    stroke-dashoffset: 0;
  }
  5% {
    stroke-dashoffset: 100;
  }
  10% {
    stroke-dashoffset: 100;
  }
  /* Etapa 2: Redesenhar de Baixo para Cima (de 15% a 60%) */
  /* Mantemos o ícone invisível por um instante e depois o redesenhamos.
     Como invertemos o caminho no SVG, ele agora será desenhado de baixo para cima. */
  
  70% {
    stroke-dashoffset: 0;
  }

  /* Etapa 3: Pausa (de 60% a 100%) */
  /* O ícone permanece totalmente visível (offset 0) até o final da animação,
     criando a pausa de aproximadamente 1.2 segundos. */
  100% {
    stroke-dashoffset: 0;
  }
}



.lucide-heart {
    width: 24px; /* Icon size */
    height: 24px;
    stroke: var(--main-color);
    fill: none; /* Ensure no fill color */
    stroke-width: 2; /* Adjust stroke width */
    cursor: pointer; /* Pointer cursor for interactivity */
    
  }

  .lamed-symbolism-card:hover .lucide-heart {
    stroke: var(--main-color);
    animation: pulse-heart 0.6s cubic-bezier(0.4,0,0.6,1) infinite;
  }

 .lucide-heart.is-animating {
  /* Aumentando a duração para tornar o efeito mais notável */
  animation: pulse-heart 3s cubic-bezier(0.4,0,0.6,1) infinite;
}

  @keyframes pulse-heart {
    0% {
      transform: scale(1);
    }
    30% {
      transform: scale(1.18);
    }
    50% {
      transform: scale(1.12);
    }
    70% {
      transform: scale(1.18);
    }
    100% {
      transform: scale(1);
    }
  }

  .lucide-move-right {
    width: 24px; /* Icon size */
    height: 24px;
    stroke: var(--main-color);
    fill: none; /* Ensure no fill color */
    stroke-width: 2; /* Adjust stroke width */
    cursor: pointer; /* Pointer cursor for interactivity */
    transition: stroke 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
  }

.lamed-symbolism-card:hover .lucide-move-right {
  animation: move-right-point 1.3s cubic-bezier(0.4,0,0.6,1) infinite;
  stroke: var(--main-color);
}

.lucide-move-right.is-animating {
  /* Aumentando ligeiramente a duração */
  animation: move-right-point 3s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes move-right-point {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(8px);
  }
  50% {
    transform: translateX(4px);
  }
  70% {
    transform: translateX(8px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Animação Complexa para o Ícone de Placa */

.lucide-signpost-big-icon {
  width: 48px;
  height: 48px;
  stroke: var(--main-color);
  fill: none;
  stroke-width: 1.5; /* Ajustado para corresponder ao SVG original */
  cursor: pointer;
  animation: 0.5s ease-in-out; /* Animação inicial para preparar o ícone */
  
  /* PONTO-CHAVE: Define o eixo da transformação na base do ícone */
  transform-origin: center bottom; 
}

.lamed-symbolism-card:hover .lucide-signpost-big-icon {
  /* Ativa a nova animação de 'spin' e 'wobble' no hover */
  animation: spin-and-wobble 3s ease-in-out infinite;
}

.lucide-signpost-big-icon.is-animating {
  /* Se necessário, pode ser usado para controlar a animação via JS */
  animation: spin-and-wobble 3s ease-in-out infinite;
}

@keyframes spin-and-wobble {
  /* A animação combina um giro de 720° com uma oscilação no eixo Y */
  0% {
    transform: rotateY(0deg) rotate(0deg); /* Começa na posição original */
  }
  25% {
    /* No meio do primeiro giro, inclina para um lado */
    transform: rotateY(180deg) rotate(5deg);
  }
  50% {
    /* Ao completar o primeiro giro, inclina para o outro lado */
    transform: rotateY(360deg) rotate(5deg); 
  }
  75% {
    /* No meio do segundo giro, inclina novamente */
    transform:  rotateY(540deg) rotate(5deg);
  }
  100% {
    /* Termina o segundo giro, voltando à posição original */
    transform:  rotateY(720deg) rotate(0deg);
  }
}
  

.lamed-symbolism-text h5 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
  color: var(--highlight-color);
}

.lamed-symbolism-text p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 10px;
  /* padding-left: -120px; */ /* Removido - padding negativo é inválido */
}


/* Styling for Symbolism Section with Icons (sobre.html) - OLD - Kept for reference if needed, but new grid replaces it */
/*
.symbolism-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.symbolism-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: rgb(255, 247, 237);
  padding: 15px;
  border-radius: 8px;
  border-left: 8px solid var(--color-paleta-5);
}

.symbolism-icon {
  flex-shrink: 0;
  color: var(--main-color);
}

.symbolism-icon svg {
  width: 40px;
  height: 40px;
}

.symbolism-text h5 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2em;
  color: var(--highlight-color);
  text-align: center;
}

.symbolism-text p {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}
*/
.meaning-summary { /* Specific class for the summary parai */
  margin-top: 25px;
  font-size: 1.05em;
  line-height: 1.7;
  margin-left: 120px;
  margin-right: 120px;
}

@media (max-width: 768px) { /* Using 768px breakpoint for consistency */
  .meaning-summary {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 600px) { /* Responsive adjustments for OLD symbolism items */
  /*
  .symbolism-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .symbolism-icon {
    margin-bottom: 10px;
  }
  .symbolism-text h5 {
    text-align: center;
  }
  */
  /* Responsive for new Lamed Symbolism Grid if needed */
  .lamed-symbolism-grid {
    grid-template-columns: 1fr; /* Stack cards on small screens */
  }
}

.gemini-list li {
 margin-bottom: 10px;
}

/* Botão Flutuante Voltar para Artigos */
.floating-back-button {
  position: fixed;
  top: 80px; /* Ajustado para dar mais espaço abaixo do header em desktop */
  left: 20px;
  z-index: 999; /* Abaixo do header (1000), mas acima de outros conteúdos */
  background-color: #94031162;
  color: white;
  border-radius: 50%;
  width: 50px; /* Tamanho inicial do botão (circular) */
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: all 0.3s ease; /* Transição para todas as propriedades */
  overflow: hidden; /* Para esconder o texto inicialmente */
  opacity: 0; /* Começa invisível */
  visibility: hidden; /* Começa escondido */
}

.floating-back-button svg {
  width: 24px;
  height: 24px;
  stroke: white;
  flex-shrink: 0; /* Impede que o SVG encolha */
}

.floating-back-button .button-text-artigos {
  white-space: nowrap; /* Impede que o texto quebre linha */
  margin-left: 0;
  max-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-width 0.3s ease, opacity 0.3s ease 0.1s, margin-left 0.3s ease; /* Atraso na opacidade para melhor efeito */
}

.floating-back-button:hover {
  width: auto; /* Expande a largura para acomodar o texto */
  justify-content: flex-start; /* Alinha conteúdo (ícone + texto) à esquerda */
  padding-left: 12px; /* Padding à esquerda do ícone */
  padding-right: 16px; /* Padding à direita do texto */
  border-radius: 25px; /* Raio da borda para o botão expandido */
  background-color: #940312;
}

.floating-back-button:hover .button-text-artigos {
  margin-left: 8px; /* Espaço menor entre o ícone e o texto */
  max-width: 180px; /* Ajuste na largura máxima se necessário */
  opacity: 1;
  visibility: visible;
}

.button-text-artigos {
  font-size: 0.9em; /* Tamanho do texto */
  color: white; /* Cor do texto */
  transition: opacity 0.3s ease, margin-left 0.3s ease; /* Transição suave para opacidade e margem */
}

/* Visibilidade controlada por JS */
.floating-back-button.visible {
  opacity: 1;
  visibility: visible;
}

/* Estilos para o Quiz */
#quiz-container .question {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-color-headings);
}

#quiz-container .answers {
  margin-bottom: 20px;
}

#quiz-container .answers label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

#quiz-container button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  border: none;
  cursor: pointer;
  background-color: var(--main-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.278);
}

#quiz-container button:hover {
  background-color: var(--main-color-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 20px rgba(242, 153, 29, 0.543);
}

/* Estilos para Planos de Leitura */
.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.plano-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plano-card:hover,
.plano-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.plano-card h3 {
  margin-top: 0;
  color: var(--highlight-color);
}

.plano-card p {
  margin-bottom: 20px;
}

/* Estilos para a Galeria de Papéis de Parede */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.wallpaper-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wallpaper-item a:hover img,
.wallpaper-item a:focus img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .floating-back-button {
    top: 70px; /* Ajuste para mobile, um pouco menos que o desktop */
    /* Outros ajustes mobile podem ser adicionados aqui se necessário, como tamanho do botão */
    width: 45px;
    height: 45px;
  }
  .floating-back-button svg {
    width: 20px;
    height: 20px;
  }
  .floating-back-button:hover {
    padding-left: 10px;
    padding-right: 12px;
  }
  .floating-back-button:hover .button-text-artigos {
    margin-left: 6px;
    font-size: 0.8em;
  }

  .content-section-background-light-text {
    margin-left: 20px;
    margin-right: 20px;
  }

  /* Footer Grid Mobile */
  .footer-grid {
    grid-template-columns: 1fr; /* Stack columns */
    text-align: center;
  }

  .footer-logo-tagline {
    order: -1; /* Move logo and tagline to the top */
    margin-bottom: 20px;
  }

  .footer-social-media {
    margin-bottom: 20px;
  }

  .social-links-footer {
    flex-direction: row; /* Icons side-by-side */
    justify-content: center; /* Center icons horizontally */
    flex-wrap: wrap;
  }

  .social-links-footer-email {
    flex-direction: column; /* Icons side-by-side */
    justify-content: center; /* Center icons horizontally */
    flex-wrap: wrap;
  }

  .social-btn-footer span {
    display: none; /* Hide text, show only icons */
  }
  .social-btn-footer svg {
    margin-right: 0; /* No margin as text is hidden */
  }
  .social-btn-footer {
    padding: 8px 10px; /* Adjust padding for icon-only buttons */
  }

  .footer-contact-info {
    margin-top: 10px;
  }

  /* Header Mobile */
  .site-header .container {
    flex-direction: row; /* Keep logo and menu icon on the same line */
    justify-content: space-between; /* Space between logo and menu icon */
    align-items: center;
    padding-left: 15px; /* Adjust padding for mobile */
    padding-right: 15px;
  }

  .logo-area {
    /* Allow header social icons to be next to logo if space, or wrap if not */
    flex-grow: 1;
  }
  /* As regras para .nav-social-item-mobile podem ser removidas, pois não serão mais adicionadas pelo JS */
  }

  @media (max-width: 768px) {
    /* ... outros estilos mobile ... */

    /* A regra .logo-area .header-social-icons { display: none; } já foi tornada global,
       então não é mais necessária especificamente aqui. */

    /* Remover estilos para .main-nav ul .nav-social-item-mobile e seus filhos,
       pois esses elementos não serão mais criados. */

  /* End Team Carousel for Mobile */


  .main-nav {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: calc(100% - 25px); /* Adjust to overlap the rounded corners */
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: -999;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding-top: 25px; /* Add padding to push content down */
  }

  .main-nav.active {
    /* display: block; */ /* Não mais necessário */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .main-nav li {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    padding: 12px 20px; /* Larger tap area */
    border-bottom: 1px solid #f0f0f0; /* Separator for links */
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .main-nav li:last-child a {
    border-bottom: none;
  }

  .main-nav a:hover, .main-nav a.active {
    background-color: #f8f8f8;
    border-bottom-color: #f0f0f0; /* Keep separator consistent on hover */
    color: var(--main-color);
    border-radius: 0; /* No radius for full-width items */
  }

  .menu-toggle {
    display: block; /* Show hamburger icon */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }
  .menu-toggle svg { /* Style for the Lucide Menu icon */
    width: 28px;
    height: 28px;
    stroke: var(--text-color-headings);
  }
  


  .hero-section h1 {
    font-size: 2.5em;
  }
  .hero-section p {
    font-size: 1em;
  }

  h1 { font-size: 2em; }
  h2 { font-size: 1.8em; }

  .video-list, .video-grid {
    grid-template-columns: 1fr; /* Stack videos on smaller screens */
  }

  .single-featured-video iframe {
    height: 300px; /* Adjust height for mobile if aspect-ratio trick is not enough */
  }
}


/* Old styles to remove or integrate if still needed - for now, mostly superseded */
/*
.image-stack {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  height: 300px;
  overflow: hidden;
}

.image-stack img {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 1s;
}

.img-overlay {
  opacity: 0;
}
*/
/* Styles for .btn-artigos, #doacao button, #apoio, .voltar are replaced by .btn-primary/secondary or general link/text styling */

/* Ensure .voltar is no longer needed or re-style if it is. For now, assuming it's replaced by main nav. */
/*
.voltar {
  display: inline-block;
  margin: 16px 0 0 16px;
  color: #0077cc;
  text-decoration: none;
  font-size: 1em;
}
.voltar:hover {
  text-decoration: underline;
}
*/

/* Search Section Styles */
.search-section {
  margin-bottom: 30px;
}

.search-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#search-input {
  flex-grow: 1;
  border: none;
  padding: 12px 20px;
  font-size: 1em;
  outline: none;
  font-family: caecilia, sans-serif;
}

#search-button {
  font-family: caecilia, sans-serif;
  background-color: var(--main-color);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

#search-button:hover {
  background-color: var(--main-color-hover);
}

#search-button svg {
  stroke: white;
}

/* Team Section Flip Card and Modal Styles */
.team-swiper .swiper-slide {
  perspective: 1000px;
}

.team-member-card {
  position: relative;
  transition: transform 1s;
  transform-style: preserve-3d;
  /* Removed width and height 100% so the card size is determined by its content (.card-front) */
}
.team-member-card.is-flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  /* Common styles */
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 25px;
  width: 100%;
}

.card-front {
  /* Stays in the normal document flow to define the container's height */
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-back {
  /* Positioned absolutely to sit on top of the front card */
  position: absolute;
  border-radius: 25px;
  top: 0;
  left: 0;
  height: 100%; /* Takes the full height of the now-sized parent */
  background-color: var(--highlight-color);
  color: white;
  transform: rotateY(180deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow-y: auto !important;
  word-wrap: break-word !important;
}

body.team-member-hovered .team-member-card-container:not(:hover) {
  opacity: 1;
  transition: opacity 1s ease;
}

.card-back h4 {
  margin-top: 0;
  color: white;
}


/* Modal Styles */
.modal {
  display: flex; /* Use flex for centering */
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: -1; /* Hidden by default, behind everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
  
}

.modal.is-open {
  z-index: 1001; /* Bring to front when open */
  opacity: 1;
  pointer-events: auto;
  
}

.modal-content {
  background-color: #fefefe;
  margin: 60px 30px;
  margin-top: 90px; /* Extra space for header */
  padding: 40px;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  max-height: 80vh; /* Max height to ensure it fits viewport */
  overflow-y: auto; /* Allow scrolling for tall content */
  border-radius: 25px;
  position: relative;
  text-align: left;
  /* Start slightly smaller and faded out */
  opacity: 0;
  transform: scale(0.95);
  /* Transition opacity and transform together with the modal backdrop */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.modal.is-open .modal-content {
  opacity: 1;
  transform: scale(1);
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.team-member-photo-modal {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--main-color);
  display: block;
  margin-left: auto;
  margin-right: auto;
}



@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
    height: auto;
  }
  .hero-section h1 {
    font-size: 2em;
  }
  .hero-section p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0;
  }
  .hero-section h1 {
    font-size: 1.8em;
    transform: translateY(-50px); /* Slightly shift text for better alignment */
  }
  .hero-section p {
    font-size: 0.9em;
    transform: translateY(-50px); /* Slightly shift text for better alignment */
  }
}

/* Icon on team card back */
.click-icon {
  margin-top: 15px;
  color: white;
  stroke-width: 2;
}

.team-member-card-container:hover .click-icon {
  animation: two-quick-one-slow-pulse 2s infinite;
}

@keyframes two-quick-one-slow-pulse {
  0% { transform: scale(1); }
  10% { transform: scale(1.15); }
  20% { transform: scale(1); }
  30% { transform: scale(1.15); }
  40% { transform: scale(1); }
  70% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Modal Content Hierarchy */
.modal-content h2 {
  font-size: 2.2em; /* Larger name */
  font-weight: 800;
  margin-bottom: 5px;
  text-align: center;
}

.modal-content h3 {
  font-size: 1.1em; /* Smaller role */
  font-weight: 500;
  color: #666; /* Less prominent color */
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.modal-content p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.modal-content p strong {
  font-weight: 700;
  color: var(--text-color-headings);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 20px !important;
  }
  .close-button {
    top: 15px !important;
    right: 15px !important;
    z-index: 1003 !important;
  }
}

/* Custom Swiper Navigation Styles */
.swiper-button-next,
.swiper-button-prev {
  color: var(--main-color);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: var(--highlight-color);
}

/* File: public/style.css */
/* General Styles */
body {
  /* Isso é uma "Pilha de Fontes" (Font Stack). 
    O navegador tenta usar a primeira fonte da lista. Se não a encontrar, 
    passa para a próxima, e assim por diante, até encontrar uma que funcione.
    Isso garante que o site tenha uma aparência consistente e legível em qualquer dispositivo.
  */
  font-family: 
    caecilia, sans-serif, /* 1. A FONTE PRINCIPAL (WEB FONT): Tenta primeiro carregar a fonte 'Caecilia' que configuramos no Adobe Fonts. O nome deve ser exato. */
    
    /* 2. A PILHA DE FONTES DE SISTEMA (SYSTEM FONT STACK): Se a Caecilia falhar por algum motivo, em vez de usar uma fonte genérica, pedimos ao navegador para usar a fonte padrão do sistema operacional do usuário. Isso é moderno, super rápido (não precisa de download) e faz o site parecer "nativo" do dispositivo. */
    -apple-system,      /* Para Safari no macOS e iOS (ex: fonte San Francisco) */
    BlinkMacSystemFont, /* Para Chrome no macOS */
    "Segoe UI",        /* Para Windows */
    Roboto,             /* Para Android e Chrome OS */
    Helvetica,          /* Fallback clássico para macOS/iOS mais antigos */
    Arial,              /* Fallback universal, presente em quase todos os sistemas */
    
    /* 3. A OPÇÃO GENÉRICA FINAL */
    sans-serif,         /* Se NENHUMA das anteriores funcionar, o navegador usará qualquer fonte sem serifa que tiver disponível. É a garantia final. */

    /* 4. FONTES PARA EMOJIS: Estas garantem que os emojis sejam exibidos corretamente em diferentes sistemas. */
    "Apple Color Emoji", 
    "Segoe UI Emoji", 
    "Segoe UI Symbol";
  
  /* ... (outras propriedades do body) ... */
  margin: 0;
  background-color: #fffaf2;
  color: #4A4A4A;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 90%;
  max-width: 1100px; /* Max width for content */
  margin: 0 auto;
  padding: 0 15px;
}

:root {
  --color-principal: #F8941B;
  --color-destaque: #940312;
  --color-paleta-1: #A12E05;
  --color-paleta-2: #AB1805;
  --color-paleta-5: #FA761F;

  --main-color: var(--color-principal);
  --main-color-hover: #F8941B; /* Darker shade of F8941B */
  --highlight-color: var(--color-destaque);

  --text-color: #4A4A4A; /* Adjusted for better readability */
  --text-color-headings: #333333; /* Slightly darker for headings */
  --link-color-footer: var(--color-paleta-5); /* Using a lighter orange for footer links on dark background */
  --link-color-footer-hover: #ffffff;
  --footer-bg-color: #2c1e10; /* Dark brown derived from palette */

  /* Dark Mode Colors */
  --dark-bg: #2c1e10; /* Dark brown from the original footer */
  --dark-surface: #41301f; /* A slightly lighter brown for surfaces */
  --dark-text: #e8d9c7; /* A warm, off-white for text */
  --dark-text-headings: #fffaf2; /* The original light background color for headings */
  --dark-main-color: #F8941B; /* Orange can stay vibrant */
  --dark-highlight-color: #fa8a94; /* A slightly softer red for dark mode */
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode .site-header {
  background-color: var(--dark-surface);
  border-bottom-color: #444;
  box-shadow: 0 20px 14px rgba(0, 0, 0, 0.5);
}

body.dark-mode .logo-text {
  color: var(--dark-main-color);
}

body.dark-mode .main-nav a {
  color: var(--dark-text);
}

body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav a:focus,
body.dark-mode .main-nav a.active {
  color: var(--dark-main-color);
  border-bottom-color: var(--dark-main-color);
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
  color: var(--dark-text-headings);
}

body.dark-mode .content-section {
  background-color: var(--dark-surface);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

body.dark-mode .content-section.background-light {
  background-color: #5a452e; /* A contrasting darker brown */
}

body.dark-mode .btn-primary, body.dark-mode .btn-primary-apoio {
  background-color: var(--dark-main-color);
  color: #2c1e10; /* Using the dark background color for text for better contrast */
  font-weight: bold;
}

body.dark-mode .btn-secondary {
  background-color: var(--dark-highlight-color);
  color: #fff;
}

body.dark-mode .site-footer {
  background-color: #111;
}

/* Theme Toggle Button */
.theme-toggle-button {
  background: transparent;
  border: 1px solid var(--text-color);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  position: relative;
  width: 50px;
  height: 28px;
  transition: border-color 0.3s;
}

.theme-toggle-button:hover {
  border-color: var(--main-color);
}

.theme-toggle-button svg {
  width: 20px;
  height: 20px;
  color: var(--text-color);
  transition: opacity 0.3s, transform 0.3s;
}

.theme-toggle-button .moon-icon {
  opacity: 0;
  transform: translateX(-20px);
}

.theme-toggle-button .sun-icon {
  opacity: 1;
  transform: translateX(0);
}

body.dark-mode .theme-toggle-button {
  border-color: var(--dark-text);
}

body.dark-mode .theme-toggle-button:hover {
  border-color: var(--dark-main-color);
}

body.dark-mode .theme-toggle-button svg {
  color: var(--dark-text);
}

body.dark-mode .theme-toggle-button .sun-icon {
  opacity: 0;
  transform: translateX(20px);
}

body.dark-mode .theme-toggle-button .moon-icon {
  opacity: 1;
  transform: translateX(0);
}


a {
  color: var(--main-color);
  text-decoration: none;
}

a:hover {
  color: var(--main-color-hover);
  text-decoration: underline;
}

h1, h2, h3{
  
  font-family: caecilia, sans-serif;
  font-weight: 800;
  font-style: normal; /* Using Caecilia for headings */
  color: var(--text-color-headings);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

   h4, h5, h6 {
  font-family: caecilia, sans-serif;
  font-weight: 700;
  font-style: normal; /* Using Caecilia for headings */
  color: var(--text-color-headings);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 { font-size: 3em; }
h2 { font-size: 2em; }
h3 { font-size: 1.85em; }

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  background-color: #ffffff; /* White background for header */
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: -30px; /* Space below header */
  border-top: 1px solid #e7e7e7; /* Subtle border at the top */
  border-bottom: 1px solid #e7e7e7; /* Subtle border */
  box-shadow: 0 20px 14px rgba(0, 0, 0, 0.308);
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  position: sticky; /* Make header sticky */
  top: 0; /* Stick to the top of the viewport */
  z-index: 1000; /* Ensure it stays above other content */
  transition: top 0.4s;

 
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Make header elements spread to the ends */
  justify-content: space-between;
  /* Optional: If you want the content to truly hit the edges of the viewport for the header only */
     max-width: none;
     padding-left: 20px;
     padding-right: 20px; 
}
.footer-logo-area img {
  max-width:80px;
  display:block;
  margin:0 auto;
}
.footer-logo-area p {
text-align:center;
margin-top:8px; 
font-size:1rem;
margin-bottom: -5px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 50px; /* Adjust as needed */
  margin-right: 10px;
}

.logo-text {
  font-size: 1.8em; /* Adjust as needed */
  font-weight: bold;
  color: var(--main-color); /* Using main color for logo text */
}

.header-social-icons {
  display: none; /* Ocultar ícones sociais do cabeçalho em todas as resoluções */
  /* As regras anteriores de display: flex e margins são agora irrelevantes se display: none */
}

/* Removendo as regras de .header-social-icons a e svg que não terão efeito se o container pai está none */


.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active { /* Add .active class with JS for current page */
  color: var(--main-color);
  border-bottom-color: var(--main-color);
}

.menu-toggle {
  display: none; /* Hide hamburger icon on larger screens by default */
}

/* Hero Section (index.html) */
.hero-section {
  background-image: url('Imagens/Fundo_Lamed.png'); /* User requested background image */
  background-size: cover; /* Cover the entire section */
  background-attachment: fixed; /* Parallax effect */
  background-color: #2c1e10; /* Fallback color, dark brown from palette */
  height: 280px; /* Fixed height for hero section */
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff; /* Ensure text is readable */
  padding: 80px 0; /* Increased padding for better visual with background */
  margin-bottom: -35px;
  text-align: center;
  position: relative; /* For pseudo-element overlay if needed */
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.212);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  background-color: rgba(31, 19, 5, 0.363); /* Dark brown overlay, derived from palette */
  z-index: 1;
}

.hero-section .container { /* Ensure content is above the overlay */
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: #ffffff;
  font-size: 3em;
  margin-bottom: 0.5em;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.212);;
  
}

.hero-section p {
  font-size: 1.2em;
  margin-bottom: 1em;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.212);
}

/* Content Sections */
.content-section {
  padding: 115px 0;
  background-color: #fffaf2; /* White for main content areas */
  margin-bottom: 20px; /* Space between sections */
  border-radius: 25px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.179);
}

.content-section.background-light {
    background-color: #ffb618b6; /* Very light orange, derived from main color */
  border-radius: 25px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.129) ; /* Slightly stronger shadow for contrast */
  
}

.content-section-background-light-text {
  margin-left: 120px;
  margin-right: 120px;
}


.content-section h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 2.2em;
  color: var(--highlight-color); /* Using highlight color for section titles */
}


/* Video List / Grid */
.video-list, .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
  gap: 20px;
  margin-top: 20px;
}

.video-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0; /* Lighter border */
  border-radius: 25px;
  overflow: hidden; /* Ensures iframe corners are rounded if border-radius is applied */
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.212);
}

.video-item iframe {
  width: 100%;
  display: block; /* Removes extra space below iframe */
  border: none; /* Remove iframe border */
}

.video-item p { /* For optional titles below videos */
  padding: 10px;
  margin: 0;
  font-weight: bold;
  color: var(--text-color-headings);
  text-align: center;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-apoio{
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  border: none;
  cursor: pointer;
}
.btn-primary-apoio {
  margin-top: 30px;
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  border: none;
  cursor: pointer;
}
.btn-primary, .btn-primary-apoio{
  background-color: var(--main-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.278);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary-apoio:hover, .btn-primary-apoio:focus {
  background-color: var(--main-color-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 20px rgba(242, 153, 29, 0.543);
}

.btn-secondary {
  background-color: var(--highlight-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.278);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--color-paleta-1); /* Darker red from palette */
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 5px 20px rgba(186, 7, 7, 0.621);
}

/* Articles Page - Grid Layout */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.article-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; /* helps footer stick to bottom if content is short */
  flex-direction: column;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.article-card-link {
  text-decoration: none;
  color: inherit; /* Inherit text color from .article-card */
  display: flex;
  flex-direction: column;
  height: 100%; /* Make link fill card */
}

.article-card-image img {
  width: 100%;
  height: 200px; /* Fixed height for thumbnails */
  object-fit: cover; /* Crop image to fit */
  display: block;
}

.article-card-content {
  padding: 20px;
  flex-grow: 1; /* Allows content to expand and push .read-more down */
}

.article-card-content h3 {
  margin-top: 0;
  font-size: 1.4em;
  color: var(--text-color-headings);
}

.article-card-content p {
  font-size: 0.95em;
  color: var(--text-color);
  margin-bottom: 15px;
  flex-grow: 1; /* Allows paragraph to take available space */
}

.article-card-content .read-more {
  display: inline-block;
  color: var(--main-color);
  font-weight: bold;
  text-decoration: none;
  margin-top: auto; /* Pushes to the bottom if card content is short */
}

.article-card-content .read-more:hover {
  text-decoration: underline;
}

/* Single Article Page Layout */
.article-page .article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  border-radius: 25px;
}

.inline-image img {
  border-radius: 800px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 10px 0; /* Space around inline images */
}

.article-banner-image {
  width: 100%;
  max-height: 450px; /* Max height for banner */
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.356);
}

.article-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the area, might crop */
  transform: translateY(-70px);
}
@media screen and (max-width: 768px) {
  .article-banner-image img {
    scale: 1.4; /* Scale down the image on smaller screens */
    transform: translateY(0px); /* Adjust vertical position for smaller screens */
  }
  
}



.article-meta {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 20px;
}

.article-content {
  font-size: 1.1em; /* Slightly larger font for readability */
  line-height: 1.7;
}

.article-content h2 {
  font-size: 1.8em;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  color: var(--text-color-headings);
}



.article-content p {
  margin-bottom: 1.5em;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5em;
  padding-left: 25px;
}

.highlight-points {
  list-style: disc;
  margin-left: 120px; /* Indent for highlight points */
  margin-right: 120px; /* Indent for highlight points */
  padding-left: 0; /* Reset padding for ul */
}

@media (max-width: 768px) {
  .highlight-points {
    margin-left: 20px;
    margin-right: 20px;
  }
}

.article-content blockquote {
  border-left: 8px solid var(--main-color);
  margin: 40px 0 40px 0px; /* No left margin for blockquote itself */
  padding: 10px 20px;
  background-color: #ffecd4; /* Light orange, consistent with .background-light */
  font-style: italic;
  color: var(--text-color); /* Ensure text color is readable */
  /*border-radius: 17.5px;*/
  border-top-right-radius: 17.5px;
  border-bottom-right-radius: 17.5px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative; /* For pseudo-element if needed */
}

.article-content blockquote p {
  margin-bottom: 0.5em;
  margin-left: 20px; /* Indent text inside blockquote */
  margin-right: 20px; /* Indent text inside blockquote */
}
.article-content blockquote footer {
  font-style: normal;
  font-size: 0.9em;
  color: #555;
}

.article-content figure {
  margin: 20px auto;
  text-align: center;
}

.article-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-content figure figcaption {
  font-size: 0.9em;
  color: #777;
  margin-top: 8px;
}

/* Donation Page Specifics */

/* Hero Section Styling for Donation Page */
#donation-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* Adjust padding as needed */
  padding-bottom: 80px; /* Adjust padding as needed */
  text-align: center; /* Ensure text is centered if not already */
}

#donation-hero .container h1 {
  margin-bottom: 0.5em; /* Space below H1 */
}

.donation-page .lead {
  font-size: 1.25em;
  margin-bottom: 1.5em; /* Space below lead paragraph */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero-donate {
  margin-bottom: 2em; /* Space below the button, before the video */
  padding: 15px 35px; /* Larger button */
  font-size: 1.2em;
}

.featured-donation-video {
  max-width: 800px;
  width: 100%; /* Ensure it takes full width up to max-width */
  margin: 0 auto; /* Centering the video container */
  border-radius: 25px;
  overflow: hidden; /* To clip iframe corners if needed */
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.featured-donation-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important; /* Ensure responsive height */
  border: none; /* Remove iframe border if any */
}

/*
.valeu-video {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 15px auto;
  border-radius: 17.5px;
  max-width: 450px;
  height: 280px;
  font-size: 0.95em;
  margin-top: 10px;
  margin-bottom: 50px;
}
/*
/* Estiliza o "envelope" do vídeo para garantir o border-radius */
.valeu-video {
  margin: 10px auto 50px auto;
  border-radius: 17.5px;
  max-width: 450px;
  
  /* PONTO-CHAVE: Esconde as bordas retas do vídeo que "vazam" */
  overflow: hidden;

  /* Efeito visual adicional para o container */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Garante que o vídeo preencha 100% do seu "envelope" */
.valeu-video video {
  display: block; /* Remove espaços extras */
  width: 100%;
  height: auto;   /* Mantém a proporção */
}

/* Regra para telas mobile */
@media (max-width: 768px) {
  .valeu-video {
    width: 90%;
    margin-bottom: 30px;
    autoplay: true; /* Habilita autoplay em telas menores */
  }
}




.donation-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.donation-method-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.donation-method-card h3 {
  margin-top: 0;
  color: var(--main-color);
  font-size: 1.6em;
}

.donation-method-card p {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.donation-method-card .qr-code-placeholder {
  font-style: italic;
  color: #888;
  margin-top: 15px;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 4px;
  min-height: 50px; /* Placeholder height */
}

#donation-transparency strong {
    color: var(--text-color-headings);
}


/* Articles Page Specifics */
/* CSS para o Card de Artigo Clicável */

/* 1. Transforma o card em um container de posicionamento */
.last-article {
  margin-top: 30px;
  padding: 20px;
  background-color: #faf7f2; /* Light cream background */
  border-radius: 25px;
  box-shadow: 0 8px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  transition: transform 0.4s, box-shadow 0.4s, background-color 0.4s; 
  position: relative;
}

/* 2. Faz o link dentro do <h3> se expandir */
.last-article h3 a::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; /* Garante que o link esticado fique acima de outros conteúdos */
}

/* 3. Garante que a imagem não fique "embaixo" do link (opcional, mas bom para consistência) */
.last-article .article-banner-image {
    position: relative;
    z-index: 0;
}
.last-article:hover {
  box-shadow: 0 12px 15px rgba(0,0,0,0.15);
  background-color: #fff7c9;
  transform: translateY(-8px);
}

.article-banner-image  {
  width: 1500px;
  max-height: 500px; /* Max height for banner */
  overflow: hidden;
  max-width: 100%;
  height: auto;
  border-radius: 37.5px;
  box-shadow: 0 10px 8px rgba(0,0,0,0.1);
  transform: translateY(-10px); /* Slightly raised effect */

}

#lista-artigos ul {
  list-style: none;
  padding: 0;
}

#lista-artigos li {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 17.5px;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.4s, box-shadow 0.4s, background-color 0.4s; 
}
#lista-artigos li:hover {
  clip-path: inset(0 round 17.5px); /* Makes the shadow follow the border radius */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

#lista-artigos a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 15px;
}
#lista-artigos a:hover {
  background-color:#fff7c9; /* Subtle hover for the whole item */
}
#lista-artigos strong {
  display: block;
  font-size: 1.4em;
  color: var(--main-color); /* Make titles stand out */
  margin-bottom: 5px;
}
#lista-artigos span {
  color: #555;
  font-size: 0.95em;
}

/* Donation Page Specifics */
#doacao h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
#doacao ul {
    list-style: disc;
    margin-left: 20px;
}
#doacao li {
    margin-bottom: 8px;
}

#doacao a {
    color: var(--color-destaque);
    text-decoration: none;
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg-color);
  color: #e0e0e0; /* Lighter gray for footer text */
  padding: 30px 0;
  text-align: center;
  font-size: 0.9em;
  margin-top: 50px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.199);

}

.site-footer .container {
    flex: auto;/* If using multiple columns in footer, can use flex here */
}

.social-links {
  margin-bottom: 15px;
}

.social-links a, .social-links img { /* Added img for potential icon styling */
  color: var(--link-color-footer);
  margin: 0 10px;
  font-size: 1.1em; /* Slightly larger for better clickability */
  vertical-align: middle; /* Align icons with text if mixed */
}

.social-links a:hover {
  color: var(--link-color-footer-hover);
  text-decoration: underline;
}

.site-footer a { /* General links in footer if any others are added */
  color: var(--link-color-footer);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--link-color-footer-hover);
  text-decoration: underline;
}

.footer-legal p {
  margin: 5px 0;
  color: #b0b0b0; /* Slightly darker than main footer text for less emphasis */
}

.footer-legal a {
  color: var(--link-color-footer); /* Ensure legal links also use footer link color */
}
.footer-legal a:hover {
  color: var(--link-color-footer-hover);
}

/* Footer Styling for new structure */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Three equal columns */
  gap: 20px; /* Space between columns */
  align-items: start; /* Align items to the start of their grid cell */
  margin-bottom: 30px; /* Space before footer-legal */
  padding: 20px 0; /* Padding top and bottom */
}

.footer-contact-info,
.footer-logo-tagline,
.footer-social-media {
  text-align: center; /* Center text within each grid item */
}

.footer-contact-info h3,
.footer-social-media h3 {
  font-size: 1.2em;
  color: var(--link-color-footer-hover); /* White/light color for headings */
  margin-bottom: 10px;
}

.footer-contact-info p a {
  color: var(--link-color-footer);
  text-decoration: none;
}
.footer-contact-info p a:hover {
  color: var(--link-color-footer-hover);
  text-decoration: underline;
}

.footer-logo-tagline img.footer-logo-img {
  max-width: 100px; /* Adjust as needed */
  margin-bottom: 10px;
}

.footer-logo-img {
  width: 100px; /* Fixed width for logo */
  height: auto; /* Maintain aspect ratio */
  transition: transform 0.8s ease; /* Smooth zoom effect on hover */
}

.footer-logo-img:hover {
  transform: scale(1.25); /* Slight zoom effect on hover */
  
}

.footer-logo-tagline p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #e0e0e0;
}

/* --- ESTILO DO BOTÃO "DOE" ANIMADO --- */

.footer-doe-btn-grid {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  background-color: transparent;
  border: 1px solid var(--main-color);
  color: #ffffff !important;
  overflow: hidden;
  position: relative;
  transition: all 0.5s ease-in-out;
}

.footer-doe-btn-grid:hover {
  background-color: var(--main-color-hover);
  transform: translateY(-4px) scale(1.04);
}

/* Ícone dentro do botão */
.footer-doe-btn-grid .lucide-icon {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  flex-shrink: 0;
}

/* Container que segura os textos */
.footer-doe-btn-grid .button-text-container {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  white-space: nowrap;
}

/* Texto que aparece no hover (escondido por padrão) */
.footer-doe-btn-grid .text-hover {
  max-width: 0;
  opacity: 0;
  transition: max-width 0.5s ease-in-out 0.1s, opacity 0.2s ease-in-out;
}

/* Texto padrão (visível por padrão) */
.footer-doe-btn-grid .text-default {
  max-width: 100px; /* Espaço para "Doe" */
  opacity: 1;
  transition: max-width 0.5s ease-in-out, opacity 0.3s ease-in-out;
}


/* --- ESTADO DE HOVER --- */

/* No hover do botão, expande o texto de hover... */
.footer-doe-btn-grid:hover .text-hover {
  max-width: 200px; /* Espaço para "quero apoiar" */
  opacity: 1;
}

/* ...e esconde o texto padrão */
.footer-doe-btn-grid:hover .text-default {
  max-width: 0;
  opacity: 0;
}

/* Estilo principal do botão de e-mail */
.footer-email-btn-grid {
  display: inline-flex; /* Usa flex para alinhar ícone e texto lado a lado */
  align-items: center;
  padding: 10px 15px; /* Padding ajustado */
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  background-color: transparent;
  border: 1px solid var(--color-destaque);
  color: #ffffff !important;
  overflow: hidden; /* Essencial para a animação do texto */
  position: relative;
  transition: all 0.5s ease-in-out; /* Transição suave para todas as propriedades */
}

/* Estilo para os ícones dentro do botão */
.footer-email-btn-grid .lucide-icon {
  flex-shrink: 0; /* Impede que o ícone seja "espremido" */
  transition: all 0.4s ease-in-out;
}

/* Esconde o ícone de hover por padrão */
.footer-email-btn-grid .icon-hover {
  display: none;
}

/* Container dos textos */
.button-text-container {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  white-space: nowrap; /* Impede que o texto quebre a linha durante a animação */
}

/* Esconde o texto de hover por padrão usando max-width */
.button-text-container .text-hover {
  max-width: 0;
  opacity: 0;
  transition: max-width 0.5s ease-in-out, opacity 0.2s ease-in-out;
}

/* Texto padrão visível */
.button-text-container .text-default {
  max-width: 100px; /* Espaço suficiente para "e-mail" */
  opacity: 1;
  transition: max-width 0.5s ease-in-out, opacity 0.4s ease-in-out;
}


/* --- ESTADO DE HOVER --- */

.footer-email-btn-grid:hover {
  background-color: var(--color-destaque);
  transform: translateY(-4px) scale(1.08);
}

/* No hover, mostra o ícone de hover... */
.footer-email-btn-grid:hover .icon-hover {
  display: inline-block;
}

/* ...e esconde o ícone padrão */
.footer-email-btn-grid:hover .icon-default {
  display: none;
}

/* No hover, expande o texto de hover... */
.footer-email-btn-grid:hover .text-hover {
  max-width: 300px; /* Espaço suficiente para o e-mail completo */
  opacity: 1;
}

/* ...e esconde o texto padrão */
.footer-email-btn-grid:hover .text-default {
  max-width: 0;
  opacity: 0;
}

.social-links-footer, .social-links-footer-email {
  display: flex;
  flex-direction: column; /* Stack social links vertically */
  align-items: center; /* Center social links */
  gap: 10px;
}

/* --- ESTILOS COMPLETOS E RESPONSIVOS PARA BOTÕES SOCIAIS --- */

/* 1. Estilo Principal (Desktop) */
.social-btn-footer {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--link-color-footer-hover);
  border: 1px solid transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  /* A transição agora inclui 'max-width' para o botão em si */
  transition: all 0.5s ease-in-out;
}

.social-btn-footer:hover,
.social-btn-footer:focus {
  transform: translateY(-3px) scale(1.04);
  color: #ffffff;
}

.social-btn-footer svg {
  width: 20px;
  height: 20px;
  stroke: var();
  transition: stroke 0.3s ease;
  flex-shrink: 0;
}

.social-btn-footer:hover svg {
  stroke: #ffffff;
}

.social-btn-footer .button-text-container {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.social-btn-footer .text-hover {
  max-width: 0;
  opacity: 0;
  transition: max-width 0.5s ease-in-out, opacity 0.2s ease-in-out;
}

.social-btn-footer .text-default {
  max-width: 100px;
  opacity: 1;
  transition: max-width 0.5s ease-in-out, opacity 0.3s ease-in-out 0.1s;
}

.social-btn-footer:hover .text-hover {
  max-width: 200px;
  opacity: 1;
}

.social-btn-footer:hover .text-default {
  max-width: 0;
  opacity: 0;
}

/* Cores específicas (Desktop) */
.social-btn-footer.youtube {
  border-color: #FF0000;
}
.social-btn-footer.youtube:hover {
  background-color: #FF0000;
}

.social-btn-footer.instagram {
  border-color: #C13584;
}
.social-btn-footer.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
  border-color: transparent;
}


/* 2. Regras para Telas Pequenas (Mobile) */
@media (max-width: 768px) {
  /* Esconde o container de texto inteiro no mobile */
  .social-btn-footer .button-text-container {
    display: none;
  }

  /* Ajusta o padding e o alinhamento para o botão "só ícone" */
  .social-btn-footer {
    padding: 8px 10px;
    justify-content: center;
  }
  
  /* Remove a margem do ícone, já que não há mais texto */
  .social-btn-footer svg {
    margin-right: 0;
  }

  /* Opcional, mas recomendado: desativa o efeito de "saltar" no mobile,
     pois não há expansão para acompanhá-lo */
  .social-btn-footer:hover {
    transform: none;
  }
}

/* REMOVE OLD FOOTER STYLES no longer needed with Grid */
.footer-content-wrapper,
.footer-row-centered,
.footer-logo-area,
.footer-buttons, /* If this was only for the old doe button */
.footer-row-contact-social,
.footer-contact, /* If this was only for the old contact layout */
.social-links /* If this was the old general social links container */
{
  display: none !important; /* Effectively remove them for now */
}
/* Keep .btn-footer and .btn-doe-footer if they are used elsewhere, or integrate into .footer-doe-btn-grid */


#back-to-top {
  position: fixed;
  bottom: 50px; /* Adjusted: raised slightly */
  right: 20px;
  background-color: #94031159;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  text-align: center;
  line-height: 1; /* Adjust line-height for SVG centering */
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: none; /* Initially hidden, JS will show it */
  z-index: 1001;
  transition: background-color 0.3s ease, opacity 0.5s ease, visibility 0.5s ease, bottom 0.3s ease, transform 0.5s ease;
  padding: 0; /* Remove padding if icon is precisely sized */
  display: flex; /* For centering SVG inside */
  align-items: center;
  justify-content: center;
  
}

/* Ícone dentro do botão */
#back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: white;
  transition: transform 0.3s ease; /* Animação suave para o ícone */
}

/* Animação do ícone ao passar o mouse no botão */
#back-to-top:hover svg {
  animation: back-to-top-bounce 1.3s cubic-bezier(0.4,0,0.6,1) infinite, ease-in-out;
}

@keyframes back-to-top-bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(-4px);
  }
  70% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

#back-to-top:hover {
  background-color: #940312;
  transform: translateY(-4px) scale(1.03);
}

/* Ensure the button is not displayed by JS until scroll, then opacity transition works */
#back-to-top {
    display: none; /* Start hidden, JS controls display:block/none */
    opacity: 0; /* Start transparent for fade-in */
    visibility: hidden; /* Start not visible for transition */
}

/* About Page Specifics (from previous round, ensure they are present) */
.about-hero-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.focus-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.5s, box-shadow 0.5s; 
  
  /* Adições importantes */
  position: relative; /* Para posicionar o pseudo-elemento dentro do card */
  z-index: 1;         /* Garante que o conteúdo do card fique acima do fundo animado */
  overflow: hidden;   /* Esconde o pseudo-elemento antes da animação */
}

/* Cria a camada de cor que ficará escondida */
.focus-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  border-radius: 100px; /* Arredondamento para o efeito de transição suave */
  box-shadow: 0 0 0 35px var(--color-destaque); /* Sombra para o efeito de transição */
  /* PONTO-CHAVE: Coloca a camada de cor atrás do conteúdo do card
  
  /* Defina a cor que você quer que apareça no hover */
  background-color: var(--main-color-hover); 
  
  /* Esconde o conteúdo e o posiciona fora da pilha de renderização normal */
  z-index: -1;
  
  /* Começa "espremido" (invisível) e prepara a transição */
  transform: scaleX(0);
  transform-origin: top; /* A animação virá da esquerda */
  transition: transform 0.4s ease-in-out;
}

/* Animação no hover */
.focus-item:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: translateY(-10px);
}

.focus-item:hover::before {
  /* Faz a camada de cor se expandir para preencher todo o card */
  transform: scaleX(1);
}
.focus-item:hover h3 { /* Adicionado para o título */
  color: var(--color-destaque); /* White text on hover */
  transition: color 0.4s ease-in-out;
}

.focus-item:hover p { /* Adicionado para o parágrafo, se houver */
  /* Garante que o texto mude de cor para ser legível sobre o novo fundo */
  color: white; /* White text on hover */; 
  transition: color 0.4s ease-in-out;
}
.focus-item h3 {
  color: var(--highlight-color);
  margin-top: 0;
}

/* REMOVED: .team-carousel-wrapper styles */

/* Nossa História Expandable Section */
.history-content-wrapper {
  position: relative; /* For the fade effect positioning */
}

.expandable-content {
  max-height: 100px; /* Adjust this value to show roughly 3 paragraphs + part of 1st image */
  overflow: hidden;
  position: relative; /* For the fade pseudo-element */
  transition: max-height 0.7s ease-in-out;
}

.expandable-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px; /* Adjust height of the fade effect */
  background: linear-gradient(to bottom, transparent, #fffaf2 90%); /* Match page background */
  pointer-events: none; /* Allows clicks to pass through */
  transition: opacity 0.5s ease-in-out;
}

.expandable-content.expanded {
  max-height: 10000px; /* A large enough value to show all content */
}

.expandable-content.expanded::after {
  opacity: 0; /* Hide fade when expanded */
}

#read-more-history {
  display: block; /* Make button take full width or center it easily */
  margin: 20px auto 0; /* Center button and add space above */
  /* Using .btn-secondary styles by default, can customize if needed */
}


/* Team Carousel Controls - Hidden by default, shown on mobile */
.team-carousel-controls {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.carousel-control {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 5px;
  font-size: 1.2em;
}

.carousel-control:hover {
  background-color: var(--main-color-hover);
}


.team-member-card {
  background-color: #ffffff;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.5s ease, box-shadow 0.5s ease, padding 1s ease, margin 1s ease, border-radius 0.8s ease; /* REMOVED: opacity transition */
  /* REMOVED: min-width (handled by grid item size) */
  /* REMOVED: scroll-snap-align */
  opacity: 1; /* Ensure full opacity */
}


/* REMOVED: .team-member-card.active-slide styles */


.team-member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--main-color);
}

.team-member-card h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.4em;
  color: var(--text-color-headings);
}

.team-member-role {
  font-size: 0.95em;
  color: var(--text-color);
  margin-bottom: 0;
}

/*
 Sobre Page Specific Font 
.sobre-page .content-section p,
.sobre-page .content-section li,
.sobre-page .content-section h2, /* Apply to headings on sobre page as well 
.sobre-page .content-section h3,
.sobre-page .focus-item p,
.sobre-page .hero-section p, /* Also for hero paragraph 
.sobre-page #history p em, /* For italicized placeholder text 
.sobre-page #meaning-lamed p em { /* For italicized placeholder text 
  font-family: 'Caecilia LT Std', serif;  /* Use !important to ensure override if necessary 
}
/* Ensure headings on "Sobre" page also use Caecilia, but keep their specific weights/sizes if defined by h1,h2,h3 general styles 
.sobre-page h1, .sobre-page h2, .sobre-page h3, .sobre-page h4, .sobre-page h5, .sobre-page h6 {
    font-family: 'Caecilia LT Std', serif; 
} */


/* Utility Classes */
.text-center {
  text-align: center;
  margin-top: 20px;
}

/* Homepage Specifics */
/* Estilo para o vídeo em destaque na INDEX.HTML */
#hero + .content-section .single-featured-video .video-item { /* Mais específico para index */
  max-width: 100vw;
  width: 70vw; /* Aumentado um pouco para melhor visualização, mas ainda relativo à viewport */
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 25px;
}

#hero + .content-section .single-featured-video .video-item iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: none;
  border-radius: 25px; /* Arredondar o próprio iframe */
}


/* Videos Page Specifics */
/* Contêiner para o vídeo em destaque na PÁGINA DE VÍDEOS */
#video-gallery .video-item-highlighted {
    max-width: 900px; /* Largura máxima para o vídeo em destaque */
    margin: 20px auto 40px auto; /* Centralizar e adicionar margem inferior */
    border-radius: 25px; /* Bordas arredondadas para o contêiner do vídeo */
    overflow: hidden; /* Para garantir que o iframe com bordas arredondadas funcione bem */
}

/* O .video-item dentro do .video-item-highlighted na PÁGINA DE VÍDEOS */
#video-gallery .video-item-highlighted .video-item {
    width: 100%; /* Ocupa toda a largura do .video-item-highlighted */
    margin-left: 0;
    transform: none;
    border-radius: 0; /* Remove o radius do .video-item para não conflitar com o pai */
}

/* Iframe do vídeo em destaque na PÁGINA DE VÍDEOS */
#video-gallery .video-item-highlighted .video-item iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border: none;
    border-radius: 25px; /* Bordas arredondadas para o iframe */
}


.external-video-links {
  margin-bottom: 35px;
}
.external-video-links .btn-primary,
.external-video-links .btn-secondary {
  margin: 5px 10px;
}

.video-grid.thirteen-videos .video-item-highlighted {
  grid-column: 1 / -1; /* Make highlighted video span full width */
  max-width: 900px; /* Max width for highlighted video */
  margin: 0 auto 20px auto; /* Center it and add bottom margin */
}

.video-grid.thirteen-videos .video-item-highlighted iframe {
  aspect-ratio: 16 / 9;
  height: auto !important; /* Ensure responsive height */
  width: 100%;
}

.video-grid.thirteen-videos .video-item:not(.video-item-highlighted) iframe {
  /* height: 200px; */ /* Removido para usar aspect-ratio */
  aspect-ratio: 16 / 9;
  height: auto !important;
  width: 100%; /* Adicionado para garantir que o aspect-ratio funcione corretamente */
}

/* Download List Styles */
.download-list {
  list-style: none;
  padding: 0;
}

.download-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-item-info h3 {
  margin-top: 0;
  margin-bottom: 5px;
}

.download-item-info p {
  margin: 0;
  color: #666;
}

.download-item-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--main-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.download-item-link:hover {
  background-color: var(--main-color-hover);
}

.placeholder-article {
  width:100%; 
  height:200px; 
  background:#ccc; 
  text-align:center; 
  line-height:200px;
}
.featured-article-summary {
  background-color: #fffaf2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  max-width: 700px;
  margin: 20px auto; /* Center the article summary block */
  border-radius: 50px;
  box-shadow: 0 2px 20px rgba(36, 36, 36, 0.372);
}

.featured-article-summary .article-image-placeholder img,
.featured-article-summary .article-image-placeholder div {
  max-width: 100%;
  height: auto;
  border-radius: 50px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(33, 33, 33, 0.413);
}

.featured-article-title-h3 {
  margin-right: 100px;
  margin-left: 100px;
}

@media screen and (max-width: 768px) {
  .featured-article-title-h3 {
    margin-right: 20px;
    margin-left: 20px;
  }
  .featured-article-title {
    font-size: 1.5em; /* Slightly smaller on mobile */
    margin-right: 20px;
    margin-left: 20px;
    }
  
}



.featured-article-summary h3 a {
  text-decoration: none;
  color: var(--text-color-headings);
  
}
.featured-article-summary h3 a:hover {
  color: var(--main-color);
  text-decoration: underline;
}

.readmore-article-link {
  margin-bottom: 10px;
}

/* Text alignment for index page sections */
.container {
  text-align: center; /* Center text in the container */
  margin: 0 auto; /* Center the container itself */
  max-width: 1200px; /* Limit the width of the container */
  padding: 0 20px; /* Add some padding for larger screens */
}

#featured-articles .featured-article-summary p,
#call-to-action-donate .container p,
#about-short .container p {
  text-align: center;
  /* padding-left: 10px; */ /* Removido pois as margens farão o controle */
  /* padding-right: 10px; */ /* Removido pois as margens farão o controle */
  margin-left: 100px;
  margin-right: 100px;
}

@media (max-width: 768px) {
  #featured-articles .featured-article-summary p,
  #call-to-action-donate .container p,
  #about-short .container p {
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* Ensure the container itself is centered if it's not full width, and text within is centered */
#call-to-action-donate .container,
#about-short .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Donation Charts Styling */
.charts-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the blocks if they don't fill the line */
  gap: 30px; /* Increased gap for better spacing */
  margin-top: 30px;
  margin-bottom: 30px;
  align-items: flex-start; /* Align items to the top if they have different heights */
}

.charts-container-geral {
  /* This is for the general donation charts, can be used similarly to charts-container */
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the blocks if they don't fill the line */
  gap: 30px; /* Increased gap for better spacing */
  margin-top: 60px;
  margin-bottom: 30px;
  align-items: flex-start; /* Align items to the top if they have different heights */
}



.chart-block {
  background-color: #fff;
  padding: 25px; /* Increased padding */
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* max-width is applied in the media query for larger screens for side-by-side */
}

.chart-block canvas {
  max-width: 100%;
  height: auto !important; /* Important to override potential Chart.js inline styles */
  max-height: 380px; /* Slightly increased max-height */
}

/* Default for smaller screens: charts stack */
@media (max-width: 959px) {
  .chart-block {
    max-width: 480px; /* Max width for a single stacked chart */
    margin-left: auto; /* Center the single chart block */
    margin-right: auto; /* Center the single chart block */
  }
}

/* For medium to larger screens: try to put them side-by-side */
@media (min-width: 960px) {
  .charts-container, .charts-container-geral  {
    flex-wrap: nowrap; /* Prevent wrapping if we want them strictly side-by-side */
  }
  .chart-block {
    width: calc(50% - 15px); /* (100% / 2) - (gap / 2) */
    max-width: 450px; /* Still respect a max-width per chart for very large screens */
  }
}

/* If charts are still too big or causing issues on very large screens,
   we can cap the .charts-container's width or add another breakpoint.
   For instance:
@media (min-width: 1200px) {
  .charts-container {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}
*/

.chart-block h3, .chart-block h4 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-color-headings);
}

#donation-transparency ul {
  /* This style might no longer be needed if ul is replaced by cards, but keep for now if used elsewhere */
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 5px;
}
#donation-transparency ul li {
  margin-bottom: 8px;
}

/* Styling for Donation Detail Cards */
.donation-details-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 40px; /* Space after the cards section */
}

.detail-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left:8px solid var(--main-color); /* Accent border */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  transition: transform 0.8s ease, box-shadow 0.8s ease;
}

.detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.171);
}

.detail-card h5 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
  color: var(--highlight-color);
}

.detail-card p {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 0;
}

.detail-card p strong {
  color: var(--text-color-headings); /* Make percentage stand out a bit */
}



/* Responsive adjustments for charts if needed */
@media (min-width: 769px) {
  .charts-container {
    /* flex-direction: row; */
    /* justify-content: space-around; */
  }
  .chart-block {
    /* width: 48%; */
  }
}

/* About Page - Nossa História - Inverted Section */
.history-inverted-section {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap on smaller screens */
  gap: 30px; /* Space between image and text block */
  margin-top: 40px; /* Space above this section */
  margin-bottom: 30px; /* Space below this section */
  align-items: center; /* Vertically align items if they have different heights */
}

.history-inverted-section .history-image-container {
  flex: 1 1 300px; /* Flex properties: grow, shrink, basis */
  /* Image will try to be 300px wide, can grow or shrink */
}

.history-inverted-section .history-image-container img {
  width: 100%;
  max-width: 400px; /* Max width for the image */
  height: auto;
  border-radius: 8px;
  display: block; /* Remove extra space below image */
  margin: 0 auto; /* Center image if container is wider */
}

.history-inverted-section .history-text-container {
  flex: 2 1 400px; /* Text container will try to be 400px, takes more available space */
}

.history-inverted-section .history-text-container h4 {
  margin-top: 0; /* Remove top margin if it's the first element */
  color: var(--highlight-color);
  font-size: 1.5em;
}

.history-text-container strong {
  color: var(--text-color-headings);
  font-weight: bold;
  
  margin-bottom: 10px; /* Space below the strong text */
  }

.history-text-container em {
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 15px; /* Space below italic text */
}

.history-text-container strong em {
  font-style: italic; /* Italicize the strong text */
  color: var(--text-color-headings); /* Use heading color for emphasis */
  margin-bottom: 15px; /* Space below italicized strong text */

}

/* Responsive adjustments for history-inverted-section */
@media (max-width: 768px) {
  .history-inverted-section {
    flex-direction: column; /* Stack image and text vertically */
  }
  .history-inverted-section .history-image-container,
  .history-inverted-section .history-text-container {
    flex-basis: auto; /* Reset basis for stacked layout */
    width: 100%; /* Take full width when stacked */
    text-align: center; /* Center text content on mobile */
  }
  .history-inverted-section .history-image-container img {
    margin-bottom: 20px; /* Space below image when stacked */
  }
  .history-inverted-section .history-text-container h4 {
    text-align: center;
  }
}


/* About Page - Lamed Symbolism Grid */
.lamed-symbolism-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
  gap: 25px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.lamed-symbolism-card {
  background-color: #ffffff; /* Card background */
  padding: 20px;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.123);
  display: flex;
  flex-direction: column; /* Stack icon and text vertically within card */
  align-items: center; /* Center items horizontally */
  text-align: center; /* Center text */
  border-top: 10px solid var(--main-color); /* Accent color on top */
  transition: transform 0.5s ease, box-shadow 0.5s ease; /* Smooth transition for hover effects */
}

.lamed-symbolism-card:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.226);
}

.lamed-symbolism-card:hover .lucide-trending-up {
  animation: draw-and-pause 6s infinite ease-out;
}

.lamed-symbolism-icon {
  margin-bottom: 15px; /* Space between icon and title */
  color: var(--main-color);
}



.lamed-symbolism-icon svg {
  width: 48px; /* Icon size */
  height: 48px;
}


/* CSS para a Animação do Ícone Trending Up */

.lucide-trending-up {
  width: 48px; /* Mantendo o tamanho que você definiu no HTML */
  height: 48px;
  stroke: var(--main-color);
  fill: none;
  stroke-width: 2; /* Mantendo a espessura do HTML */
  cursor: pointer;
  
  /* Prepara o ícone para a animação */
  stroke-dasharray: 100; /* Um valor que cobre todo o comprimento do caminho */
  stroke-dashoffset: 0;  /* Começa totalmente desenhado */
}

.lucide-trending-up.is-animating {
  /* Ativa a animação em loop com duração de 3 segundos no hover */
  animation: draw-and-pause 4s infinite ease-out;
}

@keyframes draw-and-pause {
  /* Etapa 1: Apagar Rápido (de 0% a 15% da animação) */
  /* O ícone vai de totalmente visível (offset 0) a invisível (offset 100) */
  0% {
    stroke-dashoffset: 0;
  }
  5% {
    stroke-dashoffset: 100;
  }
  10% {
    stroke-dashoffset: 100;
  }
  /* Etapa 2: Redesenhar de Baixo para Cima (de 15% a 60%) */
  /* Mantemos o ícone invisível por um instante e depois o redesenhamos.
     Como invertemos o caminho no SVG, ele agora será desenhado de baixo para cima. */
  
  70% {
    stroke-dashoffset: 0;
  }

  /* Etapa 3: Pausa (de 60% a 100%) */
  /* O ícone permanece totalmente visível (offset 0) até o final da animação,
     criando a pausa de aproximadamente 1.2 segundos. */
  100% {
    stroke-dashoffset: 0;
  }
}



.lucide-heart {
    width: 24px; /* Icon size */
    height: 24px;
    stroke: var(--main-color);
    fill: none; /* Ensure no fill color */
    stroke-width: 2; /* Adjust stroke width */
    cursor: pointer; /* Pointer cursor for interactivity */
    
  }

  .lamed-symbolism-card:hover .lucide-heart {
    stroke: var(--main-color);
    animation: pulse-heart 0.6s cubic-bezier(0.4,0,0.6,1) infinite;
  }

 .lucide-heart.is-animating {
  /* Aumentando a duração para tornar o efeito mais notável */
  animation: pulse-heart 3s cubic-bezier(0.4,0,0.6,1) infinite;
}

  @keyframes pulse-heart {
    0% {
      transform: scale(1);
    }
    30% {
      transform: scale(1.18);
    }
    50% {
      transform: scale(1.12);
    }
    70% {
      transform: scale(1.18);
    }
    100% {
      transform: scale(1);
    }
  }

  .lucide-move-right {
    width: 24px; /* Icon size */
    height: 24px;
    stroke: var(--main-color);
    fill: none; /* Ensure no fill color */
    stroke-width: 2; /* Adjust stroke width */
    cursor: pointer; /* Pointer cursor for interactivity */
    transition: stroke 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
  }

.lamed-symbolism-card:hover .lucide-move-right {
  animation: move-right-point 1.3s cubic-bezier(0.4,0,0.6,1) infinite;
  stroke: var(--main-color);
}

.lucide-move-right.is-animating {
  /* Aumentando ligeiramente a duração */
  animation: move-right-point 3s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes move-right-point {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(8px);
  }
  50% {
    transform: translateX(4px);
  }
  70% {
    transform: translateX(8px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Animação Complexa para o Ícone de Placa */

.lucide-signpost-big-icon {
  width: 48px;
  height: 48px;
  stroke: var(--main-color);
  fill: none;
  stroke-width: 1.5; /* Ajustado para corresponder ao SVG original */
  cursor: pointer;
  animation: 0.5s ease-in-out; /* Animação inicial para preparar o ícone */
  
  /* PONTO-CHAVE: Define o eixo da transformação na base do ícone */
  transform-origin: center bottom; 
}

.lamed-symbolism-card:hover .lucide-signpost-big-icon {
  /* Ativa a nova animação de 'spin' e 'wobble' no hover */
  animation: spin-and-wobble 3s ease-in-out infinite;
}

.lucide-signpost-big-icon.is-animating {
  /* Se necessário, pode ser usado para controlar a animação via JS */
  animation: spin-and-wobble 3s ease-in-out infinite;
}

@keyframes spin-and-wobble {
  /* A animação combina um giro de 720° com uma oscilação no eixo Y */
  0% {
    transform: rotateY(0deg) rotate(0deg); /* Começa na posição original */
  }
  25% {
    /* No meio do primeiro giro, inclina para um lado */
    transform: rotateY(180deg) rotate(5deg);
  }
  50% {
    /* Ao completar o primeiro giro, inclina para o outro lado */
    transform: rotateY(360deg) rotate(5deg); 
  }
  75% {
    /* No meio do segundo giro, inclina novamente */
    transform:  rotateY(540deg) rotate(5deg);
  }
  100% {
    /* Termina o segundo giro, voltando à posição original */
    transform:  rotateY(720deg) rotate(0deg);
  }
}
  

.lamed-symbolism-text h5 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
  color: var(--highlight-color);
}

.lamed-symbolism-text p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 10px;
  /* padding-left: -120px; */ /* Removido - padding negativo é inválido */
}


/* Styling for Symbolism Section with Icons (sobre.html) - OLD - Kept for reference if needed, but new grid replaces it */
/*
.symbolism-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.symbolism-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: rgb(255, 247, 237);
  padding: 15px;
  border-radius: 8px;
  border-left: 8px solid var(--color-paleta-5);
}

.symbolism-icon {
  flex-shrink: 0;
  color: var(--main-color);
}

.symbolism-icon svg {
  width: 40px;
  height: 40px;
}

.symbolism-text h5 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2em;
  color: var(--highlight-color);
  text-align: center;
}

.symbolism-text p {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}
*/
.meaning-summary { /* Specific class for the summary parai */
  margin-top: 25px;
  font-size: 1.05em;
  line-height: 1.7;
  margin-left: 120px;
  margin-right: 120px;
}

@media (max-width: 768px) { /* Using 768px breakpoint for consistency */
  .meaning-summary {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 600px) { /* Responsive adjustments for OLD symbolism items */
  /*
  .symbolism-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .symbolism-icon {
    margin-bottom: 10px;
  }
  .symbolism-text h5 {
    text-align: center;
  }
  */
  /* Responsive for new Lamed Symbolism Grid if needed */
  .lamed-symbolism-grid {
    grid-template-columns: 1fr; /* Stack cards on small screens */
  }
}

.gemini-list li {
 margin-bottom: 10px;
}

/* Botão Flutuante Voltar para Artigos */
.floating-back-button {
  position: fixed;
  top: 80px; /* Ajustado para dar mais espaço abaixo do header em desktop */
  left: 20px;
  z-index: 999; /* Abaixo do header (1000), mas acima de outros conteúdos */
  background-color: #94031162;
  color: white;
  border-radius: 50%;
  width: 50px; /* Tamanho inicial do botão (circular) */
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: all 0.3s ease; /* Transição para todas as propriedades */
  overflow: hidden; /* Para esconder o texto inicialmente */
  opacity: 0; /* Começa invisível */
  visibility: hidden; /* Começa escondido */
}

.floating-back-button svg {
  width: 24px;
  height: 24px;
  stroke: white;
  flex-shrink: 0; /* Impede que o SVG encolha */
}

.floating-back-button .button-text-artigos {
  white-space: nowrap; /* Impede que o texto quebre linha */
  margin-left: 0;
  max-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-width 0.3s ease, opacity 0.3s ease 0.1s, margin-left 0.3s ease; /* Atraso na opacidade para melhor efeito */
}

.floating-back-button:hover {
  width: auto; /* Expande a largura para acomodar o texto */
  justify-content: flex-start; /* Alinha conteúdo (ícone + texto) à esquerda */
  padding-left: 12px; /* Padding à esquerda do ícone */
  padding-right: 16px; /* Padding à direita do texto */
  border-radius: 25px; /* Raio da borda para o botão expandido */
  background-color: #940312;
}

.floating-back-button:hover .button-text-artigos {
  margin-left: 8px; /* Espaço menor entre o ícone e o texto */
  max-width: 180px; /* Ajuste na largura máxima se necessário */
  opacity: 1;
  visibility: visible;
}

.button-text-artigos {
  font-size: 0.9em; /* Tamanho do texto */
  color: white; /* Cor do texto */
  transition: opacity 0.3s ease, margin-left 0.3s ease; /* Transição suave para opacidade e margem */
}

/* Visibilidade controlada por JS */
.floating-back-button.visible {
  opacity: 1;
  visibility: visible;
}

/* Estilos para o Quiz */
#quiz-container .question {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-color-headings);
}

#quiz-container .answers {
  margin-bottom: 20px;
}

#quiz-container .answers label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

#quiz-container button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  border: none;
  cursor: pointer;
  background-color: var(--main-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.278);
}

#quiz-container button:hover {
  background-color: var(--main-color-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 20px rgba(242, 153, 29, 0.543);
}

/* Estilos para Planos de Leitura */
.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.plano-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plano-card:hover,
.plano-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.plano-card h3 {
  margin-top: 0;
  color: var(--highlight-color);
}

.plano-card p {
  margin-bottom: 20px;
}

/* Estilos para a Galeria de Papéis de Parede */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.wallpaper-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wallpaper-item a:hover img,
.wallpaper-item a:focus img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .floating-back-button {
    top: 70px; /* Ajuste para mobile, um pouco menos que o desktop */
    /* Outros ajustes mobile podem ser adicionados aqui se necessário, como tamanho do botão */
    width: 45px;
    height: 45px;
  }
  .floating-back-button svg {
    width: 20px;
    height: 20px;
  }
  .floating-back-button:hover {
    padding-left: 10px;
    padding-right: 12px;
  }
  .floating-back-button:hover .button-text-artigos {
    margin-left: 6px;
    font-size: 0.8em;
  }

  .content-section-background-light-text {
    margin-left: 20px;
    margin-right: 20px;
  }

  /* Footer Grid Mobile */
  .footer-grid {
    grid-template-columns: 1fr; /* Stack columns */
    text-align: center;
  }

  .footer-logo-tagline {
    order: -1; /* Move logo and tagline to the top */
    margin-bottom: 20px;
  }

  .footer-social-media {
    margin-bottom: 20px;
  }

  .social-links-footer {
    flex-direction: row; /* Icons side-by-side */
    justify-content: center; /* Center icons horizontally */
    flex-wrap: wrap;
  }

  .social-links-footer-email {
    flex-direction: column; /* Icons side-by-side */
    justify-content: center; /* Center icons horizontally */
    flex-wrap: wrap;
  }

  .social-btn-footer span {
    display: none; /* Hide text, show only icons */
  }
  .social-btn-footer svg {
    margin-right: 0; /* No margin as text is hidden */
  }
  .social-btn-footer {
    padding: 8px 10px; /* Adjust padding for icon-only buttons */
  }

  .footer-contact-info {
    margin-top: 10px;
  }

  /* Header Mobile */
  .site-header .container {
    flex-direction: row; /* Keep logo and menu icon on the same line */
    justify-content: space-between; /* Space between logo and menu icon */
    align-items: center;
    padding-left: 15px; /* Adjust padding for mobile */
    padding-right: 15px;
  }

  .logo-area {
    /* Allow header social icons to be next to logo if space, or wrap if not */
    flex-grow: 1;
  }
  /* As regras para .nav-social-item-mobile podem ser removidas, pois não serão mais adicionadas pelo JS */
  }

  @media (max-width: 768px) {
    /* ... outros estilos mobile ... */

    /* A regra .logo-area .header-social-icons { display: none; } já foi tornada global,
       então não é mais necessária especificamente aqui. */

    /* Remover estilos para .main-nav ul .nav-social-item-mobile e seus filhos,
       pois esses elementos não serão mais criados. */

    /* Team Carousel for Mobile */
  #team .container {
    position: relative; /* For positioning controls if needed, though simple centering is fine too */
  }

  

  .team-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar on WebKit browsers */
  }
  .team-grid {
    -ms-overflow-style: none;  /* Hide scrollbar on IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar on Firefox */
  }

 

  .team-carousel-controls {
    display: flex;
    justify-content: space-between; /* Place buttons at the edges */
    gap: 270px;
    width: 100%;
    position: absolute;
    left: -20px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    
  }
  .carousel-control {
    pointer-events: all;
    width: 70px;
    height: 70px;
    font-size: 2.2em;
  }
  /* End Team Carousel for Mobile */


  .main-nav {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: calc(100% - 25px); /* Adjust to overlap the rounded corners */
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: -999;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding-top: 25px; /* Add padding to push content down */
  }

  .main-nav.active {
    /* display: block; */ /* Não mais necessário */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .main-nav li {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    padding: 12px 20px; /* Larger tap area */
    border-bottom: 1px solid #f0f0f0; /* Separator for links */
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .main-nav li:last-child a {
    border-bottom: none;
  }

  .main-nav a:hover, .main-nav a.active {
    background-color: #f8f8f8;
    border-bottom-color: #f0f0f0; /* Keep separator consistent on hover */
    color: var(--main-color);
    border-radius: 0; /* No radius for full-width items */
  }

  .menu-toggle {
    display: block; /* Show hamburger icon */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }
  .menu-toggle svg { /* Style for the Lucide Menu icon */
    width: 28px;
    height: 28px;
    stroke: var(--text-color-headings);
  }
  


  .hero-section h1 {
    font-size: 2.5em;
  }
  .hero-section p {
    font-size: 1em;
  }

  h1 { font-size: 2em; }
  h2 { font-size: 1.8em; }

  .video-list, .video-grid {
    grid-template-columns: 1fr; /* Stack videos on smaller screens */
  }

  .single-featured-video iframe {
    height: 300px; /* Adjust height for mobile if aspect-ratio trick is not enough */
  }
}


/* Old styles to remove or integrate if still needed - for now, mostly superseded */
/*
.image-stack {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  height: 300px;
  overflow: hidden;
}

.image-stack img {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 1s;
}

.img-overlay {
  opacity: 0;
}
*/
/* Styles for .btn-artigos, #doacao button, #apoio, .voltar are replaced by .btn-primary/secondary or general link/text styling */

/* Ensure .voltar is no longer needed or re-style if it is. For now, assuming it's replaced by main nav. */
/*
.voltar {
  display: inline-block;
  margin: 16px 0 0 16px;
  color: #0077cc;
  text-decoration: none;
  font-size: 1em;
}
.voltar:hover {
  text-decoration: underline;
}
*/

/* Search Section Styles */
.search-section {
  margin-bottom: 30px;
}

.search-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#search-input {
  flex-grow: 1;
  border: none;
  padding: 12px 20px;
  font-size: 1em;
  outline: none;
  font-family: caecilia, sans-serif;
}

#search-button {
  font-family: caecilia, sans-serif;
  background-color: var(--main-color);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

#search-button:hover {
  background-color: var(--main-color-hover);
}

#search-button svg {
  stroke: white;
}