@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap");

:root {
  --accent-color: #fac815; /* Amarelo OFS */
  --bg-dark: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-light: #ffffff;
  --text-gray: #b3b3b3;
  --transition: 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

html,
body {
  overflow-x: hidden;
  min-width: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: relative;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.pg-home .navbar {
  position: absolute;
  top: 0;
  left: 0;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}
.hero-logo {
  height: 50px;
}

.logo-text {
  font-weight: 900;
  font-size: 1.2rem;
}

.hero-content {
    position: relative;
    z-index: 4;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem; /* Letras grandes e imponentes */
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 2s ease-in-out,
    transform 6s linear;
}

.bg-slide.active {
    opacity: 1;
    transform: scale(1.05); /* Zoom mais suave para banner */
    z-index: 2;
}

/* Ciclo de 15 segundos para 3 fotos */
.bg-slide:nth-child(1) {
  animation-delay: 0s;
}
.bg-slide:nth-child(2) {
  animation-delay: 5s;
}
.bg-slide:nth-child(3) {
  animation-delay: 10s;
}
.bg-slide:nth-child(4) {
  animation-delay: 15s;
}
.bg-slide:nth-child(5) {
  animation-delay: 20s;
}
.bg-slide:nth-child(6) {
  animation-delay: 25s;
}
.bg-slide:nth-child(7) {
  animation-delay: 30s;
}
.bg-slide:nth-child(8) {
  animation-delay: 35s;
}

.bg-slide:first-child,
.slide:first-child,
.slide-2-fotos:first-child {
  opacity: 1;
}

@keyframes bgFadeZoom {
  0%,
  10%,
  33% {
    opacity: 0.4;
    transform: scale(1.15);
  }
  45% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 0;
  }
}

.hero-bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente que escurece nas bordas e no centro para destacar o texto */
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%),
                linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.3));
    z-index: 3;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}
.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  opacity: 0.8;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--accent-color);
}

.nav-toggle {
  position: absolute;
  left: -9999px;
  opacity: 0;
  width: 0;
  height: 0;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-toggle-label:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle-label span {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: white;
  position: relative;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  left: 0;
  transition: var(--transition);
}

.nav-toggle-label span::before {
  top: -7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

.nav-toggle:checked + .nav-toggle-label span {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-label span::before {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle:checked + .nav-toggle-label span::after {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  /* Altura de Banner (podes ajustar para 500px ou 600px se quiseres maior) */
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  text-align: center;
  /* Adiciona uma margem se quiseres que ele não cole no topo/lados */
  background-color: #000;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.highlight {
  color: var(--accent-color);
}

.social-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn.discord {
  background: #5865f2;
  color: white;
}
.btn.roblox {
  background: white;
  color: black;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Sections General */
.info-section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  color: var(--accent-color);
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: space-around;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 15px;
  margin: 40px 0;
  border: 1px solid #30363d;
}
.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-color);
}

.stat-desc {
  color: var(--text-gray);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Grid & Cards */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.carousel {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid #30363d;
}
.carousel-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
}
.carousel-img.active {
  opacity: 1;
}

.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Tamanho dos Ícones */
.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card .badge {
  position: absolute;
  top: -12px;
  right: 30px;
  background: var(--accent-color);
  color: #000;
  padding: 5px 15px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.7rem;
}

/* Efeito ao passar o rato (opcional, mas fica top) */
.feature-card:hover .icon {
  transform: scale(1.1) rotate(5deg); /* O ícone cresce e roda um pouco */
}
.feature-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-color);
  transform: translateY(-10px);
}
.special-highlight {
  border: 2px solid var(--accent-color) !important;
}

.feature-card.special-highlight {
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.1);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Gallery Preview */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 100px;
}
.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 250px;
  border: 1px solid #30363d;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  text-align: center;
  font-weight: 600;
  color: var(--accent-color);
}

/* How to Join */

.how-to-join {
  padding: 100px 0;
  background: #080808;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}
.step {
  text-align: center;
  padding: 20px;
}
.step-num {
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 auto 25px;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.4);
}

/* Footer */
.footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-color);
}

@media (max-width: 900px) {
  .info-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    flex-direction: column;
    gap: 20px;
  }
  .navbar {
    padding: 20px 25px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
  }
  .nav-links {
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .nav-links li {
    flex: 1 1 120px;
    min-width: 90px;
  }
  .nav-links a {
    padding: 8px 10px;
  }
  .hero {
    min-height: calc(100vh - 90px);
  }
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-header,
  .rules-container {
    padding-top: 100px;
  }
  .navbar {
    position: relative;
    padding: 20px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    z-index: 100;
  }
  .nav-toggle {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 0;
    height: 0;
  }
  .nav-toggle-label {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    max-height: 0;
    opacity: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition:
      max-height 0.35s ease,
      opacity 0.35s ease;
    border-radius: 0;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
    z-index: 99;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    width: 100%;
    padding: 14px 22px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-toggle:checked ~ .nav-links {
    max-height: calc(100vh - 75px);
    opacity: 1;
  }
  .nav-links {
    font-size: 0.95rem;
    gap: 0;
    justify-content: flex-start;
  }
  .hero {
    min-height: 80vh;
  }
  .hero-content {
    width: 100%;
    padding: 0 20px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    max-width: 100%;
  }
  .container {
    padding: 0 15px;
  }
  .social-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 360px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature-card {
    padding: 30px 20px;
  }
  .feature-card .icon {
    font-size: 2.5rem;
  }
  .gallery-grid {
    gap: 15px;
  }
  .gallery-item {
    height: 200px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .step {
    padding: 15px;
  }
  .step-num {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  .social-page {
    padding-top: 100px;
  }
  .social-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .social-card {
    padding: 30px 20px;
  }
  .rules-container {
    padding: 30px 3%;
  }
  .guide-card {
    padding: 30px 20px;
  }
  .guide-header h2 {
    font-size: 1.6rem;
  }
}

/* Ajustes adicionais para dispositivos móveis pequenos */
@media (max-width: 480px) {
  .navbar {
    padding: 15px;
  }
  .hero-logo {
    height: 40px;
  }
  .logo-text {
    font-size: 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  .social-buttons {
    margin-top: 20px;
  }
  .stats-bar {
    padding: 30px 20px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-desc {
    font-size: 0.7rem;
  }
  .info-section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  .carousel {
    height: 300px;
  }
  .features-section {
    padding: 60px 0;
  }
  .feature-card {
    padding: 25px 15px;
  }
  .feature-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .gallery-item {
    height: 180px;
  }
  .how-to-join {
    padding: 60px 0;
  }
  .step-num {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .footer {
    padding: 40px 0;
  }
  .footer-links a {
    font-size: 0.9rem;
  }
}

.stat-item:first-child .stat-number {
  color: #34d399; /* Um verde esmeralda para indicar "Online/Abertura" */
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

/*!  --- ESTILOS DA PÁGINA DE DEPARTAMENTOS --- */

.page-header {
  text-align: center;
  padding: 60px 10%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), var(--bg-dark));
}

.dept-container {
  max-width: 1100px;
  margin: 60px auto 100px; /* O primeiro valor (60px) é o espaço no topo */
  padding: 0 5%;
}

.title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Garante que em ecrãs pequenos não quebre mal */
  gap: 15px;
  margin: 10px 0 15px 0;
}

.dept-card {
  display: flex;
  flex-wrap: wrap; /* Permite que os detalhes fiquem por baixo */
  background: var(--card-bg);
  border-radius: 20px;
  margin-bottom: 50px;
  overflow: hidden;
  border: 1px solid #30363d;
  transition: 0.3s;
}
.dept-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Inverter a ordem em cada 2 cards para ficar dinâmico */
.dept-card:nth-child(even) {
  flex-direction: row-reverse;
}

.dept-image {
  flex: 0 0 50% !important; /* Mantém metade no PC */
  position: relative;
  min-height: 400px; /* Aumentei um pouco para garantir presença */
  background: #111; /* Cor de fundo caso a imagem falhe */
  overflow: hidden;
}

.dept-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Faz a imagem esticar e preencher tudo sem sobrar espaços */
  display: block;
}

.dept-info {
  flex: 0 0 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Alinha o texto à esquerda */
  background: var(--card-bg); /* Garante que o fundo do texto seja sólido */
}

.dept-info h2 {
  font-size: 2rem;
  color: var(--accent-color);
  margin: 0; /* Removemos a margem antiga para controlar pelo title-group */
}

.tag {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.welcome-badge {
  background: rgba(250, 200, 21, 0.1);
  border: 1px solid var(--accent-color);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--accent-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  display: inline-block;
}

.tag.whitelist {
  background: #facc15;
  color: #000;
}
.tag.free {
  background: #34d399;
  color: #000;
}

.btn-join {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 25px;
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-join:hover {
  background: var(--accent-color);
  color: #000;
}

.slideshow-container,
.slideshow-container .slide,
.slideshow-container .slide-2-fotos {
  width: 100% !important;
  height: 100% !important;
  position: absolute; /* Geralmente slideshows precisam disto */
  top: 0;
  left: 0;
  object-fit: cover !important; /* Corta as bordas mas preenche tudo */
  display: block !important;
}

@media (max-width: 850px) {
  .dept-card:nth-child(even) .main-content {
    flex-direction: column;
  }
}

@media (max-width: 850px) {
  .main-content {
    display: flex !important;
    flex-direction: column !important; /* Imagem em cima, texto em baixo */
    width: 100% !important;
  }

  .dept-image {
    flex: none !important; /* Desativa a metade do PC */
    width: 100% !important;
    height: 350px !important; /* Força uma altura real no telemóvel */
    min-height: 350px !important;
    display: block !important; /* Sai de flex para evitar bugs de colapso */
    order: -1; /* Garante que a imagem fica sempre em primeiro (no topo) */
  }

  .slideshow-container {
    position: relative !important; /* No mobile, muda para relativo para ocupar espaço */
    width: 100% !important;
    height: 100% !important;
  }

  .dept-info {
    width: 100% !important;
    padding: 25px !important;
    text-align: center;
  }
}

@media (max-width: 850px) {
  .guide-card {
    flex-direction: column;
    text-align: left;
  }
  .guide-icon {
    display: none;
  }
  .guide-number {
    font-size: 3.5rem;
    left: 15px;
    top: 5px;
  }
  .guide-content {
    padding-left: 0;
  }
  .guide-header h2 {
    font-size: 1.5rem;
  }
}

/* Container dos Botões de Filtro */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.tab-btn {
  padding: 12px 30px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid #30363d;
  color: var(--text-white);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn:hover {
  border-color: var(--accent-color);
}

.tab-btn.active {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

/* Lógica de exibição dos grupos */
.dept-group {
  display: none; /* Escondido por padrão */
  animation: fadeIn 0.5s ease-in-out;
}

.dept-group.active {
  display: block; /* Mostra apenas o ativo */
}

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

/* Cabeçalho de Departamentos Premium */
.page-header {
  padding: 100px 10% 60px;
  background: radial-gradient(
    circle at top,
    rgba(250, 204, 21, 0.05) 0%,
    var(--bg-dark) 70%
  );
  text-align: center;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.header-container {
  max-width: 800px;
  margin: 0 auto;
}

.header-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(250, 204, 21, 0.1);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: -1px;
  background: linear-gradient(to bottom, #fff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manifesto-text {
  background: rgba(22, 27, 34, 0.5);
  padding: 30px;
  border-radius: 15px;
  border: 1px dashed rgba(156, 163, 175, 0.3);
  margin-bottom: 45px;
}

.manifesto-text p {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.manifesto-text strong {
  color: var(--text-white);
  font-weight: 600;
}

.manifesto-text em {
  color: var(--accent-color);
  font-style: normal;
  font-weight: 600;
}

/* Ajuste nos Botões de Abas */
.tabs-container {
  gap: 15px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.main-content {
  display: flex;
  width: 100%; /* Ocupa a linha de cima toda */
  align-items: stretch;
}

/* Inversão dos cards pares apenas no conteúdo principal */
.dept-card:nth-child(even) .main-content {
  flex-direction: row-reverse;
}

.btn-icon {
  font-size: 1.1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }
  .manifesto-text {
    padding: 20px;
  }
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.02);
  padding: 40px;
  border-radius: 25px;
  margin-top: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tags de Status de Recrutamento */
.status-tag {
  font-size: 0.65rem;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  height: fit-content;
}

.dept-info .tag {
  margin-bottom: 15px;
  display: inline-block;
}

/* Estado: Aberto */
.status-tag.aberto {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  border: 1px solid #34d399;
}

/* Estado: Em Breve */
.status-tag.breve {
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
  border: 1px solid #facc15;
}

/* Estado: Fechado */
.status-tag.fechado {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

/* Conteúdo Escondido (Detalhes) */
.dept-details {
  width: 100%; /* Força a ocupar a largura total em baixo */
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  background: rgba(0, 0, 0, 0.3); /* Fundo um pouco mais escuro para destacar */
}

.dept-details.active {
  max-height: 1000px;
  padding: 40px;
  border-top: 1px solid rgba(250, 204, 21, 0.2);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.details-column h4 {
  color: var(--accent-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.details-column ul {
  list-style: none;
}

.details-column ul li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.details-column ul li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
}

/* ! PÁGINA DE COMO FUNCIONA O SERVIDOR  */
.ssu-explainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 5%;
}

.ssu-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #30363d;
  text-align: center;
  transition: 0.3s;
}

.ssu-card.highlight {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.1);
}

.ssu-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.ssu-card h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* Timeline */
.timeline-container {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #30363d;
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.time-circle {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 20px;
}

@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
    gap: 50px;
  }
  .timeline-container::before {
    display: none;
  }
}

/* Guia / Como Funciona */
.guide-section {
  padding-bottom: 100px;
}

.guide-card {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid #30363d;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.guide-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.guide-number {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(250, 204, 21, 0.05); /* Número gigante ao fundo */
  position: absolute;
  left: 20px;
  top: -10px;
  user-select: none;
}

.guide-content {
  flex: 1;
  position: relative;
  z-index: 2;
  padding-left: 20px;
}

.guide-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.guide-header h2 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin: 0;
}

.guide-list {
  list-style: none;
  margin-top: 20px;
}

.guide-list li {
  margin-bottom: 12px;
  color: var(--text-gray);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guide-list li::before {
  content: "➜";
  color: var(--accent-color);
  font-weight: bold;
}

.guide-icon {
  font-size: 4rem;
  opacity: 0.8;
  margin-left: 40px;
}

.info-note {
  margin-top: 20px;
  padding: 12px;
  background: rgba(250, 204, 21, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--accent-color);
  border-left: 4px solid var(--accent-color);
}

/* Responsividade */

/* Contentor do Slideshow */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%; /* Garante que ocupa a altura total do card */
  overflow: hidden;
  display: block;
}

/* Configuração de cada imagem */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantém a proporção da imagem sem esticar */
  opacity: 0;
  animation: slideAnim 6s infinite; /* 6 segundos no total */
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
}

/* Garante que a primeira imagem aparece */
.slide:first-child {
  opacity: 1;
}

/* Ajuste do delay para cada imagem aparecer no seu tempo */
.slide:nth-child(1) {
  animation-delay: 0s;
}
.slide:nth-child(2) {
  animation-delay: 2s;
}
.slide:nth-child(3) {
  animation-delay: 4s;
}

/* A lógica da animação */
@keyframes slideAnim {
  0%,
  5% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  38% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Nova animação específica para 2 imagens */
.slide-2-fotos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideAnim2Fotos 4s infinite; /* Ciclo total de 4 segundos */
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
}

/* Garante que a primeira imagem com 2 fotos aparece */
.slide-2-fotos:first-child {
  opacity: 1;
}

.slide-2-fotos:nth-child(1) {
  animation-delay: 0s;
}
.slide-2-fotos:nth-child(2) {
  animation-delay: 2s;
}

@keyframes slideAnim2Fotos {
  0%,
  10% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ! -------- PÁGINA DE REGRAS --------- */
.rules-container {
  padding: 40px 5%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Blocos de Regras */
.rules-block {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 50px;
  border: 1px solid #30363d;
}

.rules-type-header {
  text-align: center;
  margin-bottom: 40px;
}

.rules-type-header .icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.rules-type-header h2 {
  color: var(--accent-color);
  font-size: 2.2rem;
}

/* Estilo Lista Discord (Uma por linha) */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.rule-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 18px 20px;
  border-radius: 10px;
  border-left: 4px solid var(--accent-color);

  /* Mudança principal: Usar flex para melhor controle de alinhamento */
  display: flex;
  align-items: flex-start;
  gap: 15px;

  min-width: 0;
  width: 100%;
  box-sizing: border-box; /* Garante que o padding não "estique" a caixa */
}

.rule-box > span:first-child {
  background: var(--accent-color);
  color: #000;
  width: 28px;
  height: 28px;
  min-width: 28px; /* Crucial: impede o círculo de esmagar */
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0; /* Garante que nunca encolha */
  margin-top: 2px; /* Alinha visualmente com a primeira linha de texto */
}

.rule-text {
  flex: 1; /* Ocupa todo o resto do espaço disponível */
  display: block;
  line-height: 1.6;
  min-width: 0;
  color: #fff;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.rule-text strong {
  color: var(--accent-color);
  white-space: normal;
}

@media (max-width: 600px) {
  .rule-box {
    padding: 15px;
    gap: 12px;
  }
}

.rule-box > * {
  min-width: 0;
}

/* Estilo Grid RP (Cards Lado a Lado) */
.rules-grid-rp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.rp-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #30363d;
}

.rp-card h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.rp-card ul {
  list-style: none;
}

.rp-card ul li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.4;
}

.rp-card ul li strong {
  color: #fff;
  display: block;
}

/* Cores Diferenciadas */
.discord-rules {
  border-top: 5px solid #5865f2;
} /* Cor do Discord */
.rp-rules {
  border-top: 5px solid var(--accent-color);
}

/* Grelha completa para as 27 regras */
.rules-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.rule-card-mini {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.rule-card-mini:hover {
  border-color: var(--accent-color);
  background: rgba(250, 204, 21, 0.05);
}

.rule-card-mini h5 {
  color: var(--accent-color);
  margin-bottom: 8px;
  font-size: 1rem;
}

.rule-card-mini p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.4;
}

/* Estilo do cabeçalho de seção */
.rules-type-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* --- PÁGINA DE REDES SOCIAIS --- */
.social-page {
  padding: 150px 0 100px;
  min-height: 100vh;
  background: linear-gradient(to bottom, #0a0a0a, #111);
}

.social-header {
  text-align: center;
  margin-bottom: 60px;
}

.social-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.social-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-card i {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.social-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.social-card p {
  color: #b3b3b3;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.social-btn {
  padding: 10px 25px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: 0.3s;
}

/* Efeitos Individuais ao passar o rato (Hover) */
.social-card:hover {
  transform: translateY(-15px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Discord */
.social-card.discord:hover i {
  color: #5865f2;
}
.social-card.discord:hover .social-btn {
  background: #5865f2;
}

/* TikTok */
.social-card.tiktok:hover i {
  color: #ff0050;
}
.social-card.tiktok:hover .social-btn {
  background: #ff0050;
}

/* Roblox */
.social-card.roblox-group:hover i {
  color: #ffffff;
}
.social-card.roblox-group:hover .social-btn {
  background: #444;
}

/* Email */
.social-card.email:hover i {
  color: var(--accent-color);
}
.social-card.email:hover .social-btn {
  background: var(--accent-color);
  color: #000;
}

.carousel-static {
  width: 100%;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  line-height: 0;
}

.carousel-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Mantém a proporção 16:9 */
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out; /* Transição suave de 1 segundo */
  z-index: 1;
}

/* Classe que o JavaScript vai alternar */
.about-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
  .social-page {
    padding-top: 100px;
  }
  .social-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p,
  .dept-info p,
  .guide-content p,
  .rule-box,
  .social-card p,
  .manifesto-text p {
    font-size: 0.95rem;
  }
  .section-title,
  .page-header h1 {
    font-size: 2rem;
  }
  .page-header {
    padding: 40px 5% 40px;
    margin-top: 15px;
  }
  .header-container {
    max-width: 100%;
    padding: 0 10px;
  }
  .header-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
  .tab-btn {
    width: 100%;
  }
  .tabs-container {
    flex-wrap: wrap;
    gap: 15px;
  }
  .footer-links {
    gap: 10px;
  }
  .gallery-item {
    height: 180px;
  }
  .guide-number {
    font-size: 3.5rem;
    left: 15px;
    top: 0;
  }
  .guide-content {
    padding-left: 0;
  }
  .social-card {
    padding: 24px 18px;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links li {
    flex: 0 1 auto;
    min-width: 100px;
  }
  .navbar {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    gap: 12px;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    gap: 8px;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    width: 100%;
    justify-content: center;
    padding: 16px 18px;
    font-size: 1rem;
  }
  .hero {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  .nav-links li {
    flex: 1 1 auto;
    min-width: 120px;
  }
  .navbar {
    padding: 15px;
  }
  .hero-logo {
    height: 40px;
  }
  .logo-text {
    font-size: 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  .social-buttons {
    margin-top: 20px;
  }
  .stats-bar {
    padding: 30px 20px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-desc {
    font-size: 0.7rem;
  }
  .info-section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  .carousel {
    height: 300px;
  }
  .features-section {
    padding: 60px 0;
  }
  .feature-card {
    padding: 25px 15px;
  }
  .feature-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .gallery-item {
    height: 180px;
  }
  .how-to-join {
    padding: 60px 0;
  }
  .step-num {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .footer {
    padding: 40px 0;
  }
  .footer-links a {
    font-size: 0.9rem;
  }
}

/* Ajustes para Mobile (Telemóveis) */
@media (max-width: 768px) {
  .dept-card {
    flex-direction: column !important;
    padding: 0 !important; /* Remove o espaço em volta para a imagem encostar no topo e lados */
    overflow: hidden;
    width: 92%;
    margin: 20px auto;
    display: flex;
  }

  /* Forçamos a div da imagem a não ter margens */
  .dept-image {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0; /* Remove pequenos espaços abaixo da imagem */
  }

  .dept-image img,
  .slideshow-container,
  .slide,
  .slide-2-fotos {
    width: 100% !important;
    height: 220px !important; /* Altura fixa para ficar retangular como no PC */
    object-fit: cover !important;
    border-radius: 0; /* Remove arredondamento na junção com o texto */
    max-width: none !important;
  }

  /* O segredo está aqui: o padding fica APENAS no texto */
  .dept-info {
    padding: 20px 15px !important;
    width: 100% !important;
    text-align: center;
    box-sizing: border-box; /* Garante que o padding não empurre o card para fora */
  }

  .dept-info h2 {
    margin-top: 5px;
    font-size: 1.5rem;
  }

  .dept-info p {
    margin-bottom: 15px;
    font-size: 0.95rem;
  }
}
