/* ========================================
   1. Variáveis Globais e Estilos Base
   ======================================== */
:root {
  --yellow: #f2c300;
  --green: #1e7f43;
  --blue: #0b3c5d;
  --black: #0b0b0b;
  --white: #ffffff;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, var(--green), var(--blue), var(--black));
  background-attachment: fixed;
  color: var(--white);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.main-nav.active a{
  color:var(--white);
  margin: 5px 0;
}

/* ========================================
   2. Header e Navegação
   ======================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(11, 11, 11, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 50px;
}

.main-nav {
  display: none;
}

.hamburger-button {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-button span {
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--black);
    padding: 1rem 0;
    text-align: center;
}

/* ========================================
   3. Seções Genéricas e Botões
   ======================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--yellow);
  color: var(--black);
}
.btn-primary:hover {
  background-color: transparent;
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--black);
}

.page-title-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    text-align: center;
}

.page-title-section h1 {
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
}

.page-title-section h2 {
    margin: 20px 0;
}

/* ========================================
   4. Estilos da Home (index.html)
   ======================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  margin-top: var(--header-height);
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.slide-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.intro-section, .split-section { padding: 4rem 0; }
.intro-section { text-align: center; }
.intro-section h2 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--yellow); }
.split-section .split-content { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.split-image img { border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.split-text { text-align: center; }
.split-text p { margin-bottom: 20px;}
.split-title { font-size: 1.8rem; margin-bottom: 1rem; }

/* ========================================
   5. Estilos da História (historia.html)
   ======================================== */
.timeline-section { padding-bottom: 4rem; }
.timeline { position: relative; padding: 2rem 0; }
.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 10px;
    height: 100%; width: 4px;
    background: var(--yellow);
    border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 3rem; padding-left: 40px; }
.timeline-marker {
    position: absolute;
    top: 5px; left: 0;
    width: 24px; height: 24px;
    background: var(--black);
    border: 4px solid var(--yellow);
    border-radius: 50%;
    z-index: 1;
}
.timeline-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.timeline-year { font-size: 1.5rem; font-weight: 700; color: var(--yellow); margin-bottom: 0.5rem; }
.timeline-image img { border-radius: 5px; margin: 1rem 0; }

/* ========================================
   6. Estilos da Equipe (equipe.html)
   ======================================== */
.org-chart-section { padding-bottom: 4rem; }
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 40px; overflow-x: auto; padding: 1rem; }

.org-chart-logo {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.org-chart-logo img {
    max-width: 200px; /* Adjust as needed */
    height: auto;
}


.level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permite que os cards quebrem a linha */
    gap: 20px 40px; /* Espaçamento vertical e horizontal */
    margin: 40px 0;
    position: relative;
}
.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 160px;
    text-align: center;
    position: relative;
}
.member-photo { width: 100px; height: 100px; border-radius: 50%; margin-bottom: 0.5rem; object-fit: cover; border: 3px solid var(--yellow); }
.member-name { font-size: 1rem; font-weight: 600; margin-top: 0.5rem; }
.member-rank { color: var(--yellow); font-size: 0.9rem; margin-bottom: 0.5rem; }
.member-social { display: flex; gap: 1rem; margin-top: auto; }
.member-social img { height: 20px; }

/* Conectores do Organograma (Escondidos por padrão no mobile) */
.level::before,
.member-card::before,
.member-card::after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    display: none; /* Esconde no mobile */
}

/* Linha vertical que conecta aos pais */
.level::before { top: -20px; height: 20px; width: 2px; }

/* Linha vertical que desce de cada card */
.member-card::after { bottom: -20px; height: 20px; width: 2px; }

/* Remove a linha do último nível */
.org-chart > .level:last-child .member-card::after { display: none; }

/* Linha horizontal que conecta os "irmãos" */
.level > .member-card:not(:only-child)::before { top: -20px; left: 0; width: 100%; height: 2px; }
.level > .member-card:first-child:not(:only-child)::before { left: 50%; width: 50%; }
.level > .member-card:last-child:not(:only-child)::before { left: 0; width: 50%; }


/* ========================================
   7. Estilos de Pólos (polos.html)
   ======================================== */
.polo-cards-section { padding-bottom: 4rem; }
.polo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}
.polo-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}
.polo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.polo-card-photo {
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.polo-card h3 {
    color: var(--yellow);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.polo-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1;
}
.polo-card .btn {
    margin-top: 1rem;
}

/* Modal Styles (General for all modals) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-overlay.hidden {
    display: none;
}
.modal-content {
    background-color: var(--black);
    padding: 2rem;
    border-radius: 8px;
    max-width: 90vw;
    width: 700px; /* Base width */
    position: relative;
    color: var(--white);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}
.modal-photo {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.modal-content h3 {
    color: var(--yellow);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.modal-content p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.modal-details p strong {
    color: var(--yellow);
}
/* Specific styles for polos modal */
.modal-polo-details p strong { color: var(--yellow); }
.modal-map-container {
    margin-top: 1.5rem;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}
.modal-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}


/* ========================================
   8. Estilos da Galeria (galeria.html)
   ======================================== */
.events-gallery-section { padding-bottom: 4rem; }

/* Gallery Filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 1rem; /* Para separar do título da página */
}

.filter-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--yellow);
}

.filter-btn.active {
    background-color: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

.event-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}
.event-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.event-card-thumbnail {
    max-width: 100%;
    height: 180px; /* Ajuste para ter um bom tamanho visual */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.event-card h3 {
    color: var(--yellow);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.event-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1;
}

/* Lightbox Content for Gallery */
.modal-content.lightbox-content {
    width: 90vw; /* Ajusta a largura para o slideshow */
    max-width: 900px;
    padding: 0; /* Remove padding interno do modal content */
    display: flex;
    flex-direction: column;
}
.lightbox-media-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Aspect Ratio 16:9 para vídeos */
    height: 0;
    overflow: hidden;
    background-color: var(--black);
}
.lightbox-media-container img,
.lightbox-media-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain; /* Garante que a imagem/vídeo caiba sem cortar */
    border-radius: 8px 8px 0 0; /* Bordas arredondadas no topo */
}
.lightbox-caption {
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    color: var(--white);
}

/* Lightbox Navigation Buttons */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 2rem;
    z-index: 2001;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.lightbox-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}
.lightbox-nav-btn.prev { left: 10px; }
.lightbox-nav-btn.next { right: 10px; }


/* ========================================
   10. Footer
   ======================================== */
.main-footer {
  background-color: var(--black);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.main-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-social { display: flex; gap: 1.5rem; }
.footer-social img { height: 24px; opacity: 0.8; transition: opacity 0.3s ease; }
.footer-social a:hover img { opacity: 1; }


/* ========================================
   11. Media Queries (Desktop)
   ======================================== */
@media (min-width: 768px) {
  .hamburger-button { display: none; }
  .main-nav { display: flex; gap: 1.5rem; }
  .main-nav a { color: var(--white); text-decoration: none; font-weight: 600; position: relative; padding-bottom: 5px; }
  .main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--yellow); transition: width 0.3s ease; }
  .main-nav a:hover::after { width: 100%; }

  .hero-slider { height: 80vh; }
  .slide-title { font-size: 3.5rem; }
  
  .intro-section, .split-section { padding: 6rem 0; }
  .split-section .split-content { flex-direction: row; gap: 4rem; }
  .split-section.reversed .split-content { flex-direction: row-reverse; }
  .split-image, .split-text { flex-basis: 50%; }
  .split-text { text-align: left; }

  /* Animação de Scroll */
  .split-section, .timeline-item, .polo-card, .event-card { opacity: 1; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
  .split-section { transform: translateY(30px); }
  .split-section.visible, .timeline-item.visible, .polo-card.visible, .event-card.visible { opacity: 1; transform: translateY(0); }

  /* Layout da Timeline para Desktop */
  .timeline::before { left: 50%; margin-left: -2px; }
  .timeline-item { width: 50%; margin-bottom: 5rem; padding-left: 0; padding-right: 50px; left: 0; }
  .timeline-item:nth-child(even) { left: 50%; padding-left: 50px; padding-right: 0; }
  .timeline-marker { left: 50%; margin-left: -12px; }
  .timeline-item { transform: translateX(-30px); }
  .timeline-item:nth-child(even) { transform: translateX(30px); }
  
  /* Layout do Organograma para Desktop */
  .org-chart { overflow-x: visible; }
  .level { flex-wrap: wrap; }
  .level::before, .member-card::before, .member-card::after { display: block; }
  .level::before { content: ''; position: absolute; top: -20px; height: 20px; width: 2px; background-color: rgba(255, 255, 255, 0.5); }
  .member-card::after { content: ''; position: absolute; bottom: -20px; height: 20px; width: 2px; background-color: rgba(255, 255, 255, 0.5); }
  .org-chart > .level:last-child .member-card::after { display: none; }
  .level > .member-card:not(:only-child)::before { content: ''; position: absolute; top: -20px; left: 0; width: 100%; height: 2px; background-color: rgba(255, 255, 255, 0.5); }
  .level > .member-card:first-child:not(:only-child)::before { left: 50%; width: 50%; }
  .level > .member-card:last-child:not(:only-child)::before { left: 0; width: 50%; }


  .main-footer .container { flex-direction: row; justify-content: space-between; }
}


/* ========================================
   9. Estilos da Agenda (agenda.html)
   ======================================== */

.calendar-section {
    padding-bottom: 4rem;
}

.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.calendar-controls h2 {
    font-size: 1.5rem;
    color: var(--yellow);
}

.nav-btn {
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: transparent;
    border: 2px solid var(--yellow);
    color: var(--yellow);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 3rem;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    padding: 0.5rem 0;
    color: var(--yellow);
}

.calendar-day {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 1rem 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.calendar-day.has-activity {
    border: 2px solid var(--yellow);
    font-weight: 700;
}

.calendar-day.active {
    background-color: var(--yellow);
    color: var(--black);
    font-weight: 700;
}

/* Detalhes do Dia */
.daily-details {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.daily-details h3 {
    margin-bottom: 1rem;
    color: var(--yellow);
}

.daily-activity-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--yellow);
}

.daily-activity-item h4 {
    margin-bottom: 0.5rem;
}

.daily-activity-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Diferenciação visual */
.class-item {
    border-left-color: var(--green);
}

.event-item {
    border-left-color: var(--yellow);
}

/* Responsividade */
@media (min-width: 768px) {
    .calendar-grid {
        gap: 12px;
    }

    .calendar-day {
        padding: 1.5rem 0;
        font-size: 1.1rem;
    }

    .daily-details {
        padding: 2.5rem;
    }
}


/* ========================================
   Modal da Agenda
======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #111;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--yellow);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--yellow);
}

.close-modal:hover {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ========================================
   Página Contato
======================================== */

.internal-header {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(to right, #000, #111);
    border-bottom: 2px solid var(--yellow);
}



.contact-wrapper {
    display: grid;
    gap: 3rem;
}

.contact-info h2 {
    color: var(--yellow);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--yellow);
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.contact-item a:hover {
    color: var(--yellow);
}

.social-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--green);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #fff;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--yellow);
    color: #000;
}

.social-links i {
    font-size: 1.3rem;
}

/* Mapa */
.contact-map {
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--yellow);
}

/* Desktop */
@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .contact-map {
        height: 100%;
    }
}

.icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.icon svg {
    width: 20px;
    height: 20px;
    color: var(--yellow);
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.social-links a svg {
    width: 20px;
    height: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ========================================
   Área do Aluno
======================================== */

.student-intro {
  max-width: 700px;
  margin: 1rem auto 0;
  font-size: 1rem;
  opacity: 0.9;
}

.student-documents-section {
  padding: 3rem 0 4rem;
}

.document-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.document-card h2 {
  color: var(--yellow);
  margin-bottom: 1rem;
}

.document-card p {
  margin-bottom: 1rem;
}

.document-warning {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}