/* ==========================================================================
   1. ESTILOS GLOBAIS E LAYOUT BASE
   ========================================================================== */

   body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f0f2f5;
    color: #333;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .Home, .sies-page {
    padding: 2rem 0;
  }
  
  .Home section, .sies-page section {
    margin-bottom: 3rem;
  }
  
  /* ==========================================================================
     2. CABEÇALHO (HEADER) E RODAPÉ (FOOTER)
     ========================================================================== */
  
  .site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
  }
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }
  .logo {
    width: 300px; 
    height: auto;
    display: block;
  }
  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
  }
  .nav-list a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.2s ease;
  }
  .nav-list a:hover {
    color: #0056b3;
  }
  
  .site-footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 2rem 0;
    margin-top: 4rem;
  }
  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .footer-logos {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .footer-logos img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(0.8);
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }
  .footer-logos img:hover {
    opacity: 1;
  }
  
  /* ==========================================================================
     3. TIPOGRAFIA E TÍTULOS
     ========================================================================== */
  
  .sies-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #003366;
    text-align: center;
  }
  .sies-header h1, .sies-header h2 {
    font-size: 2.8rem;
    color: #003366;
    margin: 0;
  }
  h2 {
    font-size: 2.2rem;
    color: #004a99;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    text-align: center;
  }
  h3 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* ==========================================================================
     4. BOTÕES PADRONIZADOS
     ========================================================================== */
  
  .btn {
    background-color: #003366;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.2);
  }
  .btn:hover {
    background-color: #0056b3;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
    transform: translateY(-2px);
  }
  .btn-outline {
    background-color: transparent;
    border: 1px solid #0056b3;
    color: #0056b3;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    box-shadow: none;
    flex-shrink: 0;
  }
  .btn-outline:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
  }
      
  /* ==========================================================================
     5. COMPONENTES E SEÇÕES ESPECÍFICAS
     ========================================================================== */
  /* Seção de Navegação com botões na Home Page */
.navigation-section {
  text-align: center;
}
  
.nav-buttons {
  display: flex;
  justify-content: center; /* ESTA É A LINHA QUE CENTRALIZA OS BOTÕES */
  gap: 20px;
  margin-top: 1rem;
  flex-wrap: wrap;
}
  /* --- Carrossel (Swiper.js) --- */
  .carousel-section {
    background-color: #000;
    width: 100%;
  }
  .home-carousel {
    height: 600px;
  }
 /* ENCONTRE ESTA REGRA */
  .swiper-slide {
    position: relative;
    color: white;
    /* display: flex;    <-- REMOVA ESTA LINHA */
    /* align-items: center; <-- REMOVA ESTA LINHA */
    text-align: left;
  }
  .slide-container {
    /* Adicionamos as propriedades aqui */
    display: flex;
    align-items: center;
    height: 600px;
    position: relative;
    color: white;
  }
  .slide-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
  }
  .slide-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
                                rgba(0, 0, 0, 0.9) 10%,
                                rgba(0, 0, 0, 0.7) 30%,
                                rgba(0, 0, 0, 0.3) 70%,
                                rgba(0, 0, 0, 0) 100%);
    z-index: 2;
  }
  .slide-content {
    position: relative;
    z-index: 3;
    max-width: 500px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    align-items: center;
    padding: 0 5%;
  }
  .slide-content h1 {
    font-size: 3.5rem;
    margin: 0 0 15px 0;
    color: white;
    border-bottom: none;
  }
  .slide-content p {
    font-size: 1.2rem;
    margin: 0 0 30px 0;
  }
  .slide-button {
    color: white;
    background-color: #0056b3;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
  }
  .slide-button:hover {
    background-color: #004085;
    transform: translateY(-2px);
  }
  .swiper-button-next, .swiper-button-prev {
    color: white;
    opacity: 0.5;
    transition: opacity 0.3s ease;
  }
  .swiper-button-next:hover, .swiper-button-prev:hover {
    opacity: 1;
  }
  .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
  }
  .swiper-pagination-bullet-active {
    background: white;
  }
  
  /* --- Cards de Eventos (Passados e Futuros) --- */
  /* Cabeçalho do card de palestrrante em FutureEvents */
.talk-header {
  display: flex;
  justify-content: space-between; /* Joga o texto para a esquerda e o botão para a direita */
  align-items: center; /* Alinha verticalmente */
  gap: 1.5rem; /* Espaço entre o texto e o botão */
}

.talk-info {
  /* Este container agora agrupa o texto */
  flex-grow: 1; /* Faz com que o texto ocupe o espaço disponível */
}

.talk-info h3 {
  font-size: 1.6rem; /* Tamanho um pouco maior para o título */
  color: #212529;
  margin: 0 0 5px 0;
  line-height: 1.3;
  text-align: left; /* Garante alinhamento à esquerda */
  border-bottom: none; /* Remove bordas herdadas de h3 genérico */
}

.talk-info p {
  margin: 0;
  color: #6c757d;
  font-size: 1rem;
  text-align: left; /* Garante alinhamento à esquerda */
}
  .past-edition-card, .talk-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  .past-edition-card {
    border-left: 5px solid #003366; 
  }
  
  /* --- Acordeon (Sanfona) --- */
  .speaker-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
  }
  .speaker-item:last-child {
    border-bottom: none;
  }
  .speaker-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px;
  }
  .speaker-info span {
    font-weight: 500;
    line-height: 1.4;
  }
  .abstract-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
  }
  .abstract-container.open {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
  }
  .abstract-content {
    padding: 20px;
    background-color: #f9f9f9;
  }
  .abstract-content p {
    margin: 0;
    line-height: 1.6;
  }
  
  /* --- Seção de Detalhes do Local (Card Branco) --- */
  .location-details {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .location-details.centered {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
  }
  .location-details h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #212529;
    font-size: 1.8rem;
    font-weight: 700;
  }
  .location-details p {
    margin: 5px 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
  }
  .location-details p strong {
    font-weight: 700;
    color: #343a40;
  }
  
  /* --- Seção de Chamada para Inscrição --- */
  .registration-prompt {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .registration-prompt h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
  .registration-prompt p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 2rem;
  }
  
  /* --- Formulário de Inscrição --- */
  .registration-page {
    max-width: 800px;
    margin: 0 auto; 
  }
  .registration-form {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .form-group {
    margin-bottom: 1.5rem;
  }
  .form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  .form-group input[type="text"],
  .form-group input[type="email"], 
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
  }
  .form-actions {
    text-align: right;
    margin-top: 2rem;
  }
  .form-message {
    text-align: left;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 500;
  }
  .form-message.success {
    background-color: #e6f7f0;
    color: #00642e;
  }
  .form-message.error {
    background-color: #fdecea;
    color: #a3000b;
  }
  
  /* --- Grade de Programação (Schedule Grid) --- */
  .schedule-container {
    margin: 3rem 0;
  }
  .schedule-container h2 {
    text-align: center;
    border-bottom: none;
  }
  .schedule-day {
    margin-bottom: 2.5rem;
  }
  .schedule-day h3 {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-left: 5px solid #0056b3;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px 20px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    text-align: left;
  }
  .schedule-grid {
    display: grid;
    grid-template-columns: 180px 3fr 2fr;
    gap: 1px;
    background-color: #e0e0e0;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    border-radius: 8px;
  }
  .grid-header {
    background-color: #003366; 
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    text-align: left;
  }
  .grid-item {
    background-color: #ffffff;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
  }
  .grid-item.break {
    background-color: #f9f9f9;
    font-style: normal;
  }
      
  /* ==========================================================================
     7. RESPONSIVIDADE
     ========================================================================== */
  
  @media (max-width: 900px) {
    .home-carousel, .slide-container { height: 500px; }
    .slide-content h1 { font-size: 2.5rem; }
    .slide-content p { font-size: 1rem; }
  }
  
  @media (max-width: 768px) {
    .header-container, .footer-container {
      flex-direction: column;
      text-align: center;
    }
    .logo { width: 200px; margin-bottom: 15px; }
    .nav-list { flex-direction: column; gap: 10px; }
    .footer-logos { margin-top: 1.5rem; }
  
    .schedule-grid { grid-template-columns: 1fr; }
    .grid-header { display: none; }
    .grid-item {
      padding-left: 110px;
      position: relative;
      border-bottom: 1px solid #eee;
      min-height: 40px;
    }
    .grid-item::before {
      font-weight: bold;
      position: absolute;
      left: 15px;
      width: 80px;
    }
    .grid-item:nth-of-type(3n + 1)::before { content: 'Horário: '; }
    .grid-item:nth-of-type(3n + 2)::before { content: 'Título: '; }
    .grid-item:nth-of-type(3n + 3)::before { content: 'Palestrante: '; }
  }
  
  @media (max-width: 500px) {
    .home-carousel, .slide-container { height: 400px; }
    .slide-content h1 { font-size: 2rem; }
  }