/* ============================================================
   Quasar Projetos - Estilos Institucionais
  Cores: Atualizadas pela logomarca (Azul e Dourado)
   A logo azul fica visível sobre o fundo escuro de grafite
   ============================================================ */

/* === VARIÁVEIS CSS === */
:root {
  --escuro: #082E87;
  --escuro-medio: #2a2a2a;
  --escuro-claro: #3a3a3a;
  --dourado: #c5a44e;
  --dourado-claro: #d4b96a;
  --dourado-escuro: #a88a3a;
  --branco: #ffffff;
  --cinza-claro: #f4f5f7;
  --cinza-medio: #d1d5db;
  --cinza-texto: #6b7280;
  --texto-escuro: #1f2937;
}

/* Override vars in a valid selector (:root). */
:root {
  /* Institucional (da logomarca) */
  --escuro: #082E87; /* Azul escuro principal */
  --escuro-medio: #0B5FB0; /* Azul médio */
  --escuro-claro: #29C3E8; /* Azul claro/ciano */

  /* Destaques */
  --dourado: #B8871F; /* Dourado principal */
  --dourado-claro: #D6B15A; /* Dourado claro */
  --dourado-escuro: #8C6A15; /* Aproximação para sombras */

  /* Detalhe sutil */
  --roxo: #6A2C91;

  /* Base/Tipografia */
  --branco: #F5F5F5; /* Branco/off-white */
  --cinza-claro: #F5F5F5;
  --cinza-medio: #E6EAF0;
  --cinza-texto: #5B6675;
  --texto-escuro: #0B1220;
}

/* === RESET E BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--texto-escuro);
  background-color: var(--branco);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--escuro);
}

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* === NAVBAR === */
.navbar-quasar {
  background-color: var(--escuro);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1050;
}

.navbar-quasar.scrolled {
  padding: 0.4rem 0;
  background-color: rgba(8, 46, 135, 0.97);
}

.navbar-quasar .navbar-brand img {
  height: 50px;
  transition: all 0.3s ease;
}

.navbar-quasar.scrolled .navbar-brand img {
  height: 40px;
}

.navbar-quasar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-quasar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--dourado);
  transition: width 0.3s ease;
}

.navbar-quasar .nav-link:hover,
.navbar-quasar .nav-link.active {
  color: var(--dourado) !important;
}

.navbar-quasar .nav-link:hover::after,
.navbar-quasar .nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border: 1px solid var(--dourado) !important;
  padding: 0.35rem 0.6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23B8871F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* === HERO / BANNER === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(8, 46, 135, 0.92) 0%,
    rgba(11, 95, 176, 0.86) 50%,
    rgba(8, 46, 135, 0.92) 100%
  ),
  url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&q=80') center/cover no-repeat;
  color: var(--branco);
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(184,135,31,0.06)" stroke-width="0.6"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

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

.hero-logo {
  width: 220px;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--branco);
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-title .destaque {
  color: var(--dourado);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--dourado);
  margin: 0 auto 2rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.btn-quasar {
  background: var(--dourado);
  color: var(--escuro);
  border: 2px solid var(--dourado);
  padding: 0.8rem 2.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.6s both;
}

.btn-quasar:hover {
  background: transparent;
  color: var(--dourado);
  border-color: var(--dourado);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(184, 135, 31, 0.35);
}

.btn-quasar-outline {
  background: transparent;
  color: var(--branco);
  border: 2px solid var(--dourado);
  padding: 0.8rem 2.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-quasar-outline:hover {
  background: var(--dourado);
  color: var(--escuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(184, 135, 31, 0.35);
}

/* === SEÇÕES GERAIS === */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--escuro);
  margin-bottom: 0.75rem;
  position: relative;
}

.section-subtitle {
  color: var(--cinza-texto);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.title-divider {
  width: 60px;
  height: 3px;
  background: var(--dourado);
  margin: 1rem auto 1.5rem;
  border-radius: 2px;
}

/* === NÚMEROS / ESTATÍSTICAS === */
.stats-section {
  background: var(--escuro);
  padding: 4rem 0;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dourado), transparent, var(--dourado));
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dourado);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* === SOBRE === */
.sobre-section {
  background: var(--cinza-claro);
}

.sobre-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.sobre-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.sobre-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--dourado);
}

.sobre-badge {
  display: inline-block;
  background: var(--dourado);
  color: var(--escuro);
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.sobre-text {
  color: var(--cinza-texto);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.sobre-list {
  list-style: none;
  padding: 0;
}

.sobre-list li {
  padding: 0.5rem 0;
  color: var(--texto-escuro);
  font-weight: 500;
  font-size: 0.95rem;
}

.sobre-list li i {
  color: var(--dourado);
  margin-right: 0.75rem;
  font-size: 1rem;
}

/* === ÁREAS DE ATUAÇÃO === */
.areas-section {
  background: var(--branco);
}

.area-card {
  background: var(--branco);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--dourado);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.area-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(8, 46, 135, 0.12);
  border-color: transparent;
}

.area-card:hover::before {
  transform: scaleX(1);
}

.area-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--escuro), var(--escuro-claro));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--dourado);
  transition: all 0.4s ease;
}

.area-card:hover .area-icon {
  background: var(--dourado);
  color: var(--escuro);
  transform: scale(1.05);
}

.area-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--escuro);
}

.area-card p {
  color: var(--cinza-texto);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* === PROJETOS === */
.carousel-gallery-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.main-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
}

.main-image-wrapper {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  border-radius: 18px;
  background: #f2f2f2;
}

.main-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
  pointer-events: none;
}

.main-carousel-image.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 14px;
}

.carousel-btn.next {
  right: 14px;
}

.thumbnail-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.thumbnail {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.65;
  transition: 0.25s ease;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.thumbnail.active {
  opacity: 1;
  border-color: #1f4f95;
}

@media (max-width: 768px) {
  .main-image-wrapper {
    height: 320px;
  }

  .thumbnail {
    height: 70px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

/* === MISSÃO, VISÃO E VALORES === */
.mvv-section {
  background: linear-gradient(
    135deg,
    var(--escuro) 0%,
    var(--escuro-medio) 100%
  );
  color: var(--branco);
  position: relative;
}

.mvv-section .section-title {
  color: var(--branco);
}

.mvv-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(184, 135, 31, 0.18);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.mvv-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--dourado);
  transform: translateY(-5px);
}

.mvv-icon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--dourado);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--dourado);
  transition: all 0.3s ease;
}

.mvv-card:hover .mvv-icon {
  background: var(--dourado);
  color: var(--escuro);
}

.mvv-card h4 {
  color: var(--dourado);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mvv-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === LOCALIZAÇÃO === */
.localizacao-section {
  background: var(--cinza-claro);
}

.mapa-placeholder {
  background: var(--escuro-medio);
  border-radius: 8px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

.mapa-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.info-local {
  padding: 2rem 0;
}

.info-local-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-local-item .icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--escuro);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dourado);
  font-size: 1.2rem;
  margin-right: 1.2rem;
}

.info-local-item h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--escuro);
}

.info-local-item p {
  color: var(--cinza-texto);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* === CONTATO === */
.contato-section {
  background: var(--branco);
}

.form-quasar .form-control {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: var(--texto-escuro);
  background: var(--branco);
  transition: all 0.3s ease;
}

.form-quasar .form-control:focus {
  border-color: var(--dourado);
  box-shadow: 0 0 0 3px rgba(184, 135, 31, 0.18);
}

.form-quasar .form-control::placeholder {
  color: #9ca3af;
}

.form-quasar .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--escuro);
  margin-bottom: 0.4rem;
}

.form-quasar textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.btn-enviar {
  background: var(--dourado);
  color: var(--escuro);
  border: 2px solid var(--dourado);
  padding: 0.85rem 3rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-enviar:hover {
  background: var(--escuro);
  color: var(--dourado);
  border-color: var(--escuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(8, 46, 135, 0.25);
}

.contato-info-card {
  background: var(--escuro);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  color: var(--branco);
  height: 100%;
}

.contato-info-card h4 {
  color: var(--dourado);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contato-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contato-info-item i {
  color: var(--dourado);
  font-size: 1.1rem;
  margin-right: 1rem;
  min-width: 20px;
  text-align: center;
}

.contato-info-item span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* === FOOTER === */
.footer-quasar {
  background: var(--escuro);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 0;
  position: relative;
}

.footer-quasar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dourado), transparent, var(--dourado));
}

.footer-quasar h5 {
  color: var(--branco);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-quasar .footer-logo {
  height: 45px;
  margin-bottom: 1.2rem;
}

.footer-quasar p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--dourado);
  padding-left: 5px;
}

.footer-links a i {
  margin-right: 0.5rem;
  font-size: 0.75rem;
  color: var(--dourado);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.footer-bottom .dourado {
  color: var(--dourado);
}

/* === ANIMAÇÕES === */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Animação ao scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--dourado);
  color: var(--escuro);
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(184, 135, 31, 0.35);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--escuro);
  color: var(--dourado);
  transform: translateY(-3px);
}

/* === RESPONSIVIDADE === */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-logo {
    width: 160px;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .navbar-collapse {
    background: var(--escuro);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(184, 135, 31, 0.12);
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-logo {
    width: 140px;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .sobre-img-wrapper {
    margin-bottom: 2rem;
  }

  .sobre-img-wrapper img {
    min-height: 280px;
  }

  .stat-item {
    padding: 1rem 0.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .btn-quasar,
  .btn-quasar-outline {
    padding: 0.7rem 1.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .footer-quasar {
    text-align: center;
  }

  .footer-links a:hover {
    padding-left: 0;
  }
}

/* ============================================================
   GALERIA PÚBLICA (Cards + Filtro + Modal/Lightbox)
   ============================================================ */
.text-gold,
.spinner-border.text-gold {
  color: var(--dourado) !important;
}

.galeria-section {
  background: var(--branco);
}

.gallery-filter-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--escuro);
  font-size: 0.85rem;
}

.gallery-filter {
  border-radius: 12px;
  border: 1px solid rgba(8, 46, 135, 0.18);
  background: #fff;
  padding: 0.9rem 1rem;
  box-shadow: 0 8px 30px rgba(8, 46, 135, 0.06);
}

.gallery-filter:focus {
  border-color: rgba(41, 195, 232, 0.65);
  box-shadow: 0 0 0 3px rgba(41, 195, 232, 0.18);
}

.gallery-loading {
  display: none;
  margin: 1rem 0;
}

.gallery-error {
  margin-top: 0.75rem;
  color: rgba(106, 44, 145, 0.95);
  font-weight: 700;
}

.gallery-card-btn {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.gallery-card {
  height: 100%;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(8, 46, 135, 0.12);
  background: #fff;
  box-shadow: 0 14px 45px rgba(8, 46, 135, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 135, 31, 0.35);
  box-shadow: 0 20px 60px rgba(8, 46, 135, 0.12);
}

.gallery-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.gallery-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.1rem 1.1rem;
  background: linear-gradient(
    0deg,
    rgba(8, 46, 135, 0.92) 0%,
    rgba(8, 46, 135, 0.35) 50%,
    rgba(8, 46, 135, 0) 100%
  );
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-title {
  font-weight: 900;
  line-height: 1.2;
  font-size: 1rem;
}

.gallery-card-sub {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.gallery-card-hint {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dourado-claro);
}

.gallery-lightbox {
  background: transparent;
  border: 0;
}

.gallery-lightbox-image-wrapper {
  background: var(--escuro);
}

.gallery-lightbox-image-wrapper img {
  width: 100%;
  height: min(64vh, 560px);
  object-fit: cover;
  display: block;
  background: #082E87;
}

.gallery-lightbox-content {
  background: rgba(245, 245, 245, 0.98);
}

.gallery-lightbox-title {
  color: var(--escuro);
  font-weight: 900;
  font-size: 1.25rem;
}

.gallery-lightbox-badge {
  background: linear-gradient(135deg, var(--dourado), var(--dourado-claro));
  color: var(--escuro);
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 999px;
  border: 0;
}

.gallery-lightbox-description {
  color: rgba(8, 46, 135, 0.82);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   ADMIN (Login + CRUD)
   ============================================================ */
.admin-bg {
  background: linear-gradient(
    135deg,
    rgba(8, 46, 135, 0.96) 0%,
    rgba(11, 95, 176, 0.92) 40%,
    rgba(6, 25, 73, 1) 100%
  );
  color: #fff;
}

.admin-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(214, 177, 90, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

.admin-card h2,
.admin-card h3 {
  color: #fff;
}

.admin-badge-soft {
  background: rgba(41, 195, 232, 0.14);
  color: rgba(41, 195, 232, 1);
  border: 1px solid rgba(41, 195, 232, 0.25);
}

@media (max-width: 767.98px) {
  .gallery-card-img {
    height: 210px;
  }
}
