:root {
  --er-bg: #f5fcf5; /* Fundo verde muito claro */
  --er-content-bg: #ffffff;
  --er-border: #e2e8f0;
  --er-text-primary: #1a202c; /* Preto suave */
  --er-text-secondary: #4a5568; /* Cinza azulado */
  --er-accent-green: #2f855a; /* Verde Esmeralda Destaque */
  --er-accent-light: #9ae6b4; /* Verde claro para detalhes */
  --er-header-bg: rgba(255, 255, 255, 0.9);
}

body {
  background-color: var(--er-bg);
  color: var(--er-text-primary);
  font-family: "Inter", sans-serif;
}

/* Background animado (Aurora) adaptado para verde/azul */
.aurora-effect {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 500px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(72, 187, 120, 0.4) 0%, /* Verde */
    transparent 50%
  );
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* Hero Section */
.hero-renovaveis {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: white;
  padding: 6rem 1rem 2rem;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Imagem padrão de backup, será sobrescrita pelo Firebase */
  background-image: url("https://images.unsplash.com/photo-1509391366360-2e959784a276?q=80&w=2072&auto=format&fit=crop"); 
  background-size: cover;
  background-position: center center;
  z-index: 0;
  filter: brightness(0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 50, 30, 0.7) 0%, transparent 60%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
  animation: fade-in-down 1s ease-out;
}

/* Títulos das Seções */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--er-text-primary);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--er-accent-green); /* Borda verde */
  display: inline-block;
}

/* Info Cards e Faculty Cards */
.info-card, .faculty-card, .area-card {
  background: var(--er-content-bg);
  border: 1px solid var(--er-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info-card:hover, .faculty-card:hover, .area-card:hover {
  transform: translateY(-5px);
  border-color: var(--er-accent-green);
  box-shadow: 0 10px 25px rgba(47, 133, 90, 0.15); /* Sombra verde */
}

/* Estilo específico para ícones de área */
.area-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0fff4; /* Verde muito claro */
  color: var(--er-accent-green);
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.area-card:hover .area-icon {
  background-color: var(--er-accent-green);
  color: white;
  transform: scale(1.1);
}

/* Accordion (Competências) */
.accordion-header:hover {
  color: var(--er-accent-green);
}
.accordion-item.active .accordion-header {
  color: var(--er-accent-green);
}

/* Botões e Links */
a { color: var(--er-accent-green); text-decoration: none; transition: 0.2s; }
a:hover { text-decoration: underline; color: #276749; }

.back-to-home-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

.back-to-home-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary-light {
  border: 1px solid var(--er-accent-green);
  color: var(--er-accent-green);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.btn-secondary-light:hover {
  background-color: var(--er-accent-green);
  color: white;
}

/* Navbar Lateral (Sticky) — consolidated later in the file to avoid duplicate rules */

/* Mobile Menu Button */
#mobile-menu-button {
  color: white;
}

/* Mobile nav link main button */
.mobile-nav-link-main {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--er-accent-green);
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  background-color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-nav-link-main:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Scrollbar */
::-webkit-scrollbar-thumb {
  background-color: var(--er-accent-green);
  border-radius: 20px;
  border: 3px solid #fff;
}
/* ... Suas variáveis :root ... */

/* Estilos do Container Principal do Header */
#header {
  background-color: rgba(13, 26, 43, 0.5); /* Fundo escuro translúcido igual EE */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Garante que a logo fique branca (invertida) no header escuro */
#header #course-logo-img {
  filter: brightness(0) invert(1);
}

/* Estilos da Barra de Navegação Secundária */
#page-nav-bar {
  background-color: var(--er-content-bg); /* Fundo Branco */
  border-top: 1px solid var(--er-border);
  /* As propriedades abaixo garantem a fixação e sombra */
  position: -webkit-sticky;
  position: sticky; 
  top: 0; 
  z-index: 40;
  border-bottom: 1px solid var(--er-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Itens da Lista de Navegação */
.page-nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 60px;
}

.page-nav-item a {
  padding: 1rem 1.25rem;
  color: var(--er-text-secondary);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.page-nav-item a:hover,
.page-nav-item a.active {
  color: var(--er-accent-green); /* Verde destaque */
}

.page-nav-item a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--er-accent-green);
  transition: width 0.3s ease;
}
