/* ===========================
   Reset básico
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f5f7;
  color: #222;
  line-height: 1.5;
}

/* Links */
a {
  color: #0b6ecf;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===========================
   VARIÁVEIS GERAIS SINDLURB
=========================== */
:root {
  --sindlurb-green: #00843d;
  --sindlurb-orange: #f58220;
  --sindlurb-yellow: #ffd54a;
  --sindlurb-dark: #0f172a;
}

/* Fundo geral do site (pode ajustar se quiser) */
body {
  background: #f3f4f6;
}

/* ===========================
   SITE PÚBLICO
=========================== */

/* Header antigo (se quiser usar em outras páginas) */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e2e2;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.site-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #005e2f;
}

/* Menu principal antigo */
.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: #005e2f;
  color: #ffffff;
  text-decoration: none;
}

/* Hero genérico */
.site-main {
  padding-bottom: 40px;
}

.hero {
  background: radial-gradient(circle at top left, #e4f4ec, #f5f5f7);
  padding: 40px 0 32px;
  border-bottom: 1px solid #e2e2e2;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #00381c;
}

.hero p {
  font-size: 1rem;
  max-width: 620px;
  color: #444;
}

/* Lista de notícias */
.news-list {
  margin-top: 32px;
}

.news-list h3,
.site-main h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #222;
}

/* Grid de cards */
.news-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card de notícia */
.news-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e2e2;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.news-thumb {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}

.news-thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Título do card */
.news-card h4,
.news-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.news-card p {
  font-size: 0.9rem;
  color: #4b5563;
}

.news-card small {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Notícia individual */
.news-single {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e2e2;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.news-single h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.news-meta {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.news-single-thumb {
  margin: 12px 0 16px;
}

.news-single-thumb img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.news-single-content {
  font-size: 1rem;
  color: #111827;
  line-height: 1.7;
}

.news-single-content p {
  margin-bottom: 12px;
}

/* Rodapé antigo */
.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 12px 0;
  margin-top: 32px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ===========================
   COMPONENTES GERAIS
=========================== */

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: #e5e7eb;
  text-decoration: none;
}

.btn-primary {
  background: #006943;
  color: #ffffff;
  border-color: #006943;
}

.btn-primary:hover {
  background: #005235;
  border-color: #005235;
}

/* Alertas */
.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Tabelas */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.table thead {
  background: #f3f4f6;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.table th {
  font-weight: 600;
  font-size: 0.85rem;
  color: #4b5563;
}

.table tr:last-child td {
  border-bottom: none;
}

/* Formulários */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #374151;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #006943;
  box-shadow: 0 0 0 1px rgba(0, 105, 67, 0.2);
}

/* ===========================
   LOGIN DO PAINEL
=========================== */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #e4f4ec, #f5f5f7);
}

.login-container {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.login-container h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111827;
  text-align: center;
}

/* ===========================
   PAINEL ADMIN
=========================== */

.admin-body {
  background: #f3f4f6;
}

.admin-header {
  background: #111827;
  color: #f9fafb;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header h1 {
  font-size: 1.2rem;
}

.admin-user {
  font-size: 0.85rem;
}

.admin-user a {
  color: #bfdbfe;
}

.admin-main {
  display: flex;
  padding: 16px;
  gap: 16px;
}

/* Menu lateral */
.admin-menu {
  width: 200px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.admin-menu ul {
  list-style: none;
}

.admin-menu li {
  margin-bottom: 6px;
}

.admin-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-menu a:hover {
  background: #e5e7eb;
  text-decoration: none;
}

/* Conteúdo do painel */
.admin-content,
.admin-main > section,
.admin-main > div:not(.admin-menu) {
  flex: 1;
}

.admin-main > section,
.admin-main > div.admin-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.admin-toolbar {
  margin-bottom: 10px;
}

/* Responsivo painel em telas menores */
@media (max-width: 768px) {
  .admin-main {
    flex-direction: column;
  }

  .admin-menu {
    width: 100%;
  }
}

/* ===========================
   NAVBAR NOVA (Bootstrap)
=========================== */
.navbar-sindlurb {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.navbar-sindlurb .navbar-brand span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sindlurb-dark);
}

/* ===========================
   TÍTULOS DE SEÇÃO
=========================== */
.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sindlurb-dark);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 20px;
}

/* ===========================
   CARDS INSTITUCIONAIS DA HOME
=========================== */
.info-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  height: 100%;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.info-card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 6px;
}

/* ===========================
   ÁREA DO FILIADO
=========================== */
.members-section {
  background: #f9fafb;
}

.member-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  transform-origin: center;
  animation: memberFloat 6s ease-in-out infinite;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* delays diferentes pra animação */
.members-section .col-md-4:nth-child(1) .member-card,
.members-section .col-md-5:nth-child(1) .member-card {
  animation-delay: 0s;
}

.members-section .col-md-4:nth-child(2) .member-card,
.members-section .col-md-5:nth-child(2) .member-card {
  animation-delay: 0.8s;
}

.members-section .col-md-4:nth-child(3) .member-card,
.members-section .col-md-5:nth-child(3) .member-card {
  animation-delay: 1.6s;
}

.member-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(56, 189, 248, 0.6);
}

/* imagem do card */
.member-card-image {
  position: relative;
  overflow: hidden;
  height: 170px;
}

.member-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.member-card:hover .member-card-image img {
  transform: scale(1.07);
  filter: saturate(1.2);
}

/* corpo do card */
.member-card-body {
  padding: 12px 14px 14px;
}

.member-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.member-card-body p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 8px;
}

.member-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(0, 132, 61, 0.06);
  color: #047857;
}

/* animação suave de "flutuar" */
@keyframes memberFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* ===========================
   GALERIA DE FOTOS
=========================== */
#galeria {
  background: #f3f4f6;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.45),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.15);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ===========================
   FOOTER NOVO (footer-main)
=========================== */
.footer-main {
  background: #0b1120;
  color: #e5e7eb;
  padding-top: 28px;
  margin-top: 0;
}

.footer-brand h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand small {
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-text {
  font-size: 0.9rem;
  color: #9ca3af;
  max-width: 420px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact span,
.footer-contact a {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 18px;
  padding: 10px 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-bottom a {
  color: #cbd5f5;
}

.footer-bottom a:hover {
  color: #ffffff;
}