/********************************************
 * KCB OFICIAL - CUSTOM STYLESHEET
 * Desenvolvido seguindo padrão Utsukushi Yama
 ********************************************/

/************ COLOR SETTINGS ************/
:root {
  /*--primary: #c83660;*/
  --primary: #c83636;
  /*--secondary: #e04872;*/
  --secondary: #f9000086;
  --light: #f8f8f8;
  --dark: #252525;
  --gray-medium: #777777;
  --white: #ffffff;
}

/************ RESET & GLOBAL ************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth !important;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  color: var(--dark);
}

/************ WOW.JS ANIMATIONS - CUSTOM DURATION ************/
.wow {
  visibility: hidden;
}

.animate__animated {
  animation-duration: 1.5s !important; /* Duração padrão mais lenta */
}

.animate__fadeInUp,
.animate__fadeInDown,
.animate__fadeInLeft,
.animate__fadeInRight,
.animate__fadeIn {
  animation-duration: 2s !important; /* Fade animations mais lentas */
}

.animate__slow {
  animation-duration: 3s !important;
}

.animate__slower {
  animation-duration: 4s !important;
}

/************ MODAL FADE ANIMATIONS ************/
/* Fade suave para todos os modals - SUBINDO (fadeInUp) */
.modal.fade .modal-dialog {
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  opacity: 0;
  transform: translateY(50px); /* Positivo = vem de baixo para cima */
}

.modal.show .modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

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

section {
  padding: 80px 0;
}

.txt-primary {
  color: var(--primary);
}

/************ BACK TO TOP ************/
.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  background: var(--primary);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-align: center;
  line-height: 48px;
  font-size: 20px;
  transition: 0.3s;
}

.back-to-top:hover {
  background: var(--secondary);
  color: var(--white);
}

/************ TOPBAR ************/
.container-fluid.bg-dark {
  background-color: #000000 !important;
}

.container-fluid.bg-dark a {
  text-decoration: none;
  transition: 0.3s;
}

.container-fluid.bg-dark a:hover {
  color: var(--primary) !important;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: 0.3s;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/************ BUTTONS ************/
.btn {
  font-weight: 500;
  transition: 0.5s;
  border-radius: 5px;
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: var(--white);
}

.btn-primary:hover {
  background: var(--secondary);
  color: var(--white);
}

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

/************ NAVBAR ************/
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.navbar-brand img {
  max-height: 60px;
}

.navbar-brand-text {
  font-size: 0.7rem;
}

.navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 10px 15px;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.navbar-nav .dropdown-item {
  padding: 10px 20px;
  transition: 0.3s;
}

.navbar-nav .dropdown-item:hover {
  background: var(--light);
  color: var(--primary);
}

.navbar-nav .dropdown-toggle:hover {
  color: var(--primary);
}

.dropdown-header {
  font-weight: 600;
  color: var(--primary);
}

/************ HERO SECTION ************/
/************ HERO SECTION COM SWIPER CARROSSEL ************/
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #000;
}

/* Swiper container */
.swiper.heroSwiper {
  width: 100%;
  height: 100%;
}

/* Cada slide */
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay escuro sobre as imagens */
.hero-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;
  z-index: 10;
  pointer-events: none;
}

.hero-overlay .btn {
  pointer-events: all;
}

/* Textos do hero */
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: var(--white);
}

.hero-buttons {
  margin-top: 30px;
}

/* Responsivo */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 400px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

/************ SECTION TITLE ************/
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h6 {
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--gray-medium);
  max-width: 700px;
  margin: 0 auto;
}

/************ CARDS ************/
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  border-radius: 10px 10px 0 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #f8f9fa;
}

/************ ABOUT SECTION ************/
.about-img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/************ TIMELINE ************/
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 4px solid var(--white);
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  width: 45%;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

/************ GALLERY ************/
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #111;
  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(200, 54, 96, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

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

.gallery-overlay i {
  color: var(--white);
  font-size: 3rem;
}

/************ FOOTER ************/
footer {
  background: var(--dark);
  color: var(--white);
  padding: 50px 0 20px;
}

footer h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: 0.3s;
}

footer a:hover {
  color: var(--primary);
}

footer .footer-link {
  display: inline-flex;
  align-items: center;
  padding-left: 0;
  transition: all 0.3s;
}

footer .footer-link:hover {
  padding-left: 8px;
  color: var(--white);
}

footer .footer-link i {
  font-size: 0.7rem;
  transition: 0.3s;
}

footer .footer-link:hover i {
  color: var(--primary) !important;
}

footer .copyright {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/************ FORM ************/
.form-control, 
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 5px;
  padding: 12px 15px;
  transition: 0.3s;
}

.form-control:focus, 
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(200, 54, 96, 0.25);
}

/************ MODAL ************/
.modal-content {
  border-radius: 10px;
  border: none;
}

.modal-header {
  background: var(--primary);
  color: var(--white);
  border-radius: 10px 10px 0 0;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body-scroll {
  max-height: 60vh;
  overflow-y: auto;
}

/************ BLINK ANIMATION ************/
.blink_me {
  animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0.3;
  }
}

/************ BADGES ************/
.badge {
  padding: 6px 12px;
  font-weight: 500;
  font-size: 0.85rem;
}

/************ ALERTS ************/
.alert {
  border-radius: 10px;
  border: none;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

.alert-heading {
  font-weight: 600;
}

/************ UTILITIES ************/
.text-muted {
  color: var(--gray-medium) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

.fw-bold {
  font-weight: 600 !important;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-square {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/************ RESPONSIVE ************/
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item::before {
    left: 20px;
  }

  .timeline-content {
    width: 100%;
    margin-left: 50px;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
  }

  section {
    padding: 60px 0;
  }

  .navbar-brand img {
    max-height: 50px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .card-img-top {
    height: auto;
  }

  .gallery-item img {
    height: 250px;
  }
}

/************ CARROCEL KCBMAIN ************/
.hero-slider {
  height: 60vh; /* ou 500px para altura fixa */
  width: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  transition: background-image 1s ease-in-out;
  position: relative;
}

.hero-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-slider .container {
  position: relative;
  z-index: 2;
  color: white;
}

#hero {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

/************ PAINEL DE ORGANIZAÇÕES ************/
/* Grid Responsivo - Organizações Especiais (igual ao regular) */
.organizations-grid-special {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  padding: 20px 0;
  max-width: 100%;
  opacity: 1;
  visibility: visible;
}

/* Grid Responsivo - Organizações Regulares */
.organizations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  padding: 20px 0;
  max-width: 100%;
  opacity: 1;
  visibility: visible;
}

/* Ocultar elementos quando inscrições estão encerradas */
.inscricoes-encerradas {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Seção de Organizações - Garantir Visibilidade */
#organizacoes-section {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Fundo Verde com Transparência (Inscrições Abertas) */
#organizacoes-section .alert.alert-success {
  background-color: rgba(40, 167, 69, 0.15) !important;
  border: 2px solid rgba(30, 126, 52, 0.3) !important;
  color: #155724 !important;
}

#organizacoes-section .alert.alert-success h4,
#organizacoes-section .alert.alert-success h5,
#organizacoes-section .alert.alert-success p {
  color: #155724 !important;
}

/* Fundo Laranja com Transparência (Últimos Dias) */
#organizacoes-section .alert-laranja {
  background-color: rgba(255, 140, 0, 0.15) !important;
  border: 2px solid rgba(255, 102, 0, 0.3) !important;
  color: #cc5200 !important;
}

#organizacoes-section .alert-laranja h4,
#organizacoes-section .alert-laranja h5,
#organizacoes-section .alert-laranja p {
  color: #cc5200 !important;
}

/* Fundo Vermelho com Transparência (Encerradas) */
#organizacoes-section .alert.alert-danger {
  background-color: rgba(220, 53, 69, 0.15) !important;
  border: 2px solid rgba(189, 33, 48, 0.3) !important;
  color: #721c24 !important;
}

#organizacoes-section .alert.alert-danger h4 {
  color: #721c24 !important;
}

/* Aviso EPIs - Manter amarelo */
#organizacoes-section .alert.alert-warning {
  background-color: #fff3cd !important;
  border-color: #ffc107 !important;
  color: #856404 !important;
}

/* Card da Organização */
/************ ORGANIZATIONS CARDS ************/
.org-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.org-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 2px solid transparent;
}

/* Hover discreto - igual aos cards de eventos */
.org-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.org-card:hover .org-logo {
  transform: scale(1.05);
}

.org-card-inner {
  padding: 20px 15px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Logo da Organização - FORMATO QUADRADO */
.org-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto 15px;
  border-radius: 10px;
  overflow: hidden;
  border: none;
  transition: all 0.4s ease;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.org-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Informações da Organização */
.org-info {
  margin-bottom: 10px;
}

.org-name {
  font-size: 1rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
  transition: color 0.4s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.org-location {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin: 0;
  transition: color 0.4s ease;
}

/* Badge */
.org-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #3498db;
  color: white;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}

.org-badge.special {
  background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Efeito de Pulso para Cards Especiais */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 5px 25px rgba(231, 76, 60, 0.4);
  }
}

.org-card[data-org="convidados"],
.org-card[data-org="arbitragem"],
.org-card[data-org="eventoespecial"] {
  animation: pulse 2s infinite;
}

/* Animação de confirmação */
@keyframes confirmSelection {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.95); }
}

.org-card.selected {
  border: 3px solid #27ae60;
  box-shadow: 0 0 30px rgba(39, 174, 96, 0.5);
}

/* Responsividade */
@media (max-width: 1200px) {
  .organizations-grid,
  .organizations-grid-special {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px;
  }
  
  .org-logo {
    width: 145px;
    height: 145px;
  }
}

@media (max-width: 768px) {
  .organizations-grid,
  .organizations-grid-special {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
  }

  .org-logo {
    width: 130px;
    height: 130px;
  }

  .org-card-inner {
    padding: 18px 12px;
  }

  .org-name {
    font-size: 0.9rem;
    min-height: 40px;
  }

  .org-location {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .organizations-grid,
  .organizations-grid-special {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }

  .org-logo {
    width: 115px;
    height: 115px;
  }
  
  .org-card-inner {
    padding: 15px 10px;
  }

  .org-name {
    font-size: 0.85rem;
  }
  
  .org-location {
    font-size: 0.75rem;
  }
}

/************ PAINEL ADMINISTRATIVO ************/
#modalAdmin .modal-content {
  border-radius: 15px;
  border: none;
}

/************ HISTÓRICO DE EVENTOS ************/
.year-section .row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.event-col {
  width: 100%;
}

.event-card {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.event-card:hover .event-card-image {
  transform: scale(1.02);
}

.year-section {
  margin-bottom: 50px;
}

.year-title {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
}

/* Responsividade */
@media (max-width: 1200px) {
  .year-section .row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .year-section .row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .year-section .row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .year-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .year-section .row {
    grid-template-columns: 1fr;
  }
}

/************ PAINEL ADMINISTRATIVO ************/
#modalAdmin .modal-content {
  border-radius: 15px;
  border: none;
}

#modalAdmin .modal-header {
  background: var(--primary);
  color: white;
  border-radius: 15px 15px 0 0;
  padding: 20px 25px;
}

#modalAdmin .modal-body {
  padding: 30px;
  max-height: 70vh;
}

.admin-login {
  max-width: 450px;
  margin: 0 auto;
  padding: 20px;
}

.admin-content {
  display: none;
  opacity: 0;
  transform: translateY(30px);
}

.admin-content.active {
  display: block;
}

.admin-content.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.org-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fa;
}

.org-list-item {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.org-list-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(200, 54, 96, 0.1);
  transform: translateX(3px);
}

.org-list-info {
  flex: 1;
}

.org-list-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 3px;
  font-size: 1rem;
}

.org-list-location {
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-bottom: 2px;
}

.org-list-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.visibility-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  transition: all 0.3s;
}

.visibility-control:hover {
  background: white;
  border-color: var(--primary);
}

.visibility-control label {
  font-size: 0.9rem;
  color: var(--dark);
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.visibility-control input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.btn-admin {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-admin:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(200, 54, 96, 0.3);
}

/************ CORES CUSTOMIZADAS PARA EVENTOS ************/
/* Laranja para "Últimos Dias" */
.bg-orange {
  background-color: #FF6B35 !important;
}

.text-orange {
  color: #FF6B35 !important;
}

.btn-orange {
  background-color: #FF6B35 !important;
  border-color: #FF6B35 !important;
}

.btn-orange:hover {
  background-color: #E65A2B !important;
  border-color: #E65A2B !important;
}

/* Ajuste para texto escuro em bg-info (azul claro) */
.badge.bg-info {
  color: #000000 !important;
}

.btn.bg-info {
  color: #000000 !important;
}

/* Remover cursor pointer dos botões não clicáveis */
.btn[style*="cursor: default"] {
  pointer-events: none;
  cursor: default !important;
}

/* Manter hover visual mas sem cursor pointer */
.btn[style*="cursor: default"]:hover {
  cursor: default !important;
}

/* Garantir que efeitos visuais de hover do card continuam funcionando */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ==================== MODAL ALERTA POR ORGANIZAÇÃO ==================== */
.alerta-org-container {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.alerta-org-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 70%;
  max-height: 80%;
  object-fit: contain;
  opacity: 0.08;
  filter: grayscale(100%) brightness(2);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.alerta-org-content {
  position: relative;
  z-index: 2;
  padding: 30px 35px;
}

.alerta-org-mensagem {
  color: #ffffff;
  font-size: 1.1em;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.alerta-org-mensagem strong { color: #ffc107; }
.alerta-org-mensagem p { margin-bottom: 0.8em; }

#modalAlertaOrg .modal-header.bg-warning {
  background: linear-gradient(135deg, #ffc107, #ff9800) !important;
  border-bottom: 3px solid #e68900;
}

#modalAlertaOrg .modal-header .modal-title { color: #1a1a2e; }

#modalAlertaOrg .modal-footer {
  background-color: #f8f9fa;
  border-top: 2px solid #dee2e6;
}

#modalAlertaOrg .btn-warning {
  background: linear-gradient(135deg, #ffc107, #ff9800);
  border: none;
  color: #1a1a2e;
  padding: 10px 25px;
  font-size: 1.05em;
  transition: all 0.3s ease;
}

#modalAlertaOrg .btn-warning:hover {
  background: linear-gradient(135deg, #ffca2c, #ffad33);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

@media (max-width: 768px) {
  .alerta-org-container { min-height: 200px; }
  .alerta-org-content { padding: 20px; }
  .alerta-org-mensagem { font-size: 1em; line-height: 1.6; }
  .alerta-org-bg-img { max-width: 80%; opacity: 0.06; }
}
