/* Strans Portal - Custom Styles (Bootstrap-based) */

/* CSS Custom Properties para cores da marca e design system */
:root {
  /* Cores Primárias da Marca */
  --strans-primary: #2f855a;
  --strans-primary-dark: #14532d;
  --strans-primary-light: #48bb78;
  --strans-primary-rgb: 47, 133, 90;
  
  /* Cores Secundárias */
  --strans-secondary: #6c757d;
  --strans-secondary-dark: #495057;
  --strans-secondary-light: #adb5bd;
  
  /* Cores de Status */
  --strans-success: #198754;
  --strans-warning: #ffc107;
  --strans-danger: #dc3545;
  --strans-info: #0dcaf0;
  
  /* Cores para Hero/Carousel */
  --hero-overlay-start: rgba(0, 0, 0, 0.4);
  --hero-overlay-middle: rgba(0, 0, 0, 0.2);
  --hero-overlay-end: rgba(0, 0, 0, 0.6);
  --hero-glass-bg: rgba(255, 255, 255, 0.1);
  --hero-glass-border: rgba(255, 255, 255, 0.3);
  --hero-glass-hover: rgba(255, 255, 255, 0.2);
  
  /* Cores de Background */
  --bg-light: #f8f9fa;
  --bg-gray: #f1f1f1;
  --bg-dark: #212529;
  --bg-gradient-start: #1f2937;
  --bg-gradient-end: #374151;
  --placeholder-gradient-start: #4a5568;
  --placeholder-gradient-end: #2d3748;
  
  /* Cores de Texto */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;
  --text-white-75: rgba(255, 255, 255, 0.85);
  --text-white-50: rgba(255, 255, 255, 0.5);
  
  /* Cores para Cards e Componentes */
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.125);
  --card-shadow: rgba(0, 0, 0, 0.15);
  --card-shadow-hover: rgba(0, 0, 0, 0.25);
  
  /* Navbar */
  --navbar-mobile-bg: rgba(255, 255, 255, 0.95);
  --navbar-mobile-shadow: rgba(0, 0, 0, 0.1);
  
  /* Buttons */
  --btn-primary-gradient-start: var(--strans-primary);
  --btn-primary-gradient-end: var(--strans-primary-dark);
  --btn-shadow: rgba(var(--strans-primary-rgb), 0.3);
  --btn-glass-bg: rgba(255, 255, 255, 0.1);
  --btn-glass-border: rgba(255, 255, 255, 0.2);
  --btn-glass-hover: rgba(255, 255, 255, 0.2);
  
  /* Transições e Animações */
  --transition-speed: 0.3s;
  --transition-slow: 0.8s;
  --transition-fast: 0.15s;
  
  /* Borders e Radius */
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-pill: 50px;
  
  /* Shadows */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Typography */
  --font-family-primary: 'Roboto', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* Hero Specific */
  --hero-height-desktop: 60vh;
  --hero-height-tablet: 50vh;
  --hero-height-mobile: 40vh;
  --hero-min-height-desktop: 500px;
  --hero-min-height-tablet: 400px;
  --hero-min-height-mobile: 320px;
  --hero-max-height-desktop: 700px;
  --hero-max-height-tablet: 500px;
  --hero-max-height-mobile: 400px;
  
  /* Filters */
  --image-brightness: 0.7;
  --glass-blur: 10px;
}

/* Bootstrap Color Overrides */
.bg-primary {
  background: linear-gradient(135deg, var(--strans-primary), var(--strans-primary-dark)) !important;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--btn-primary-gradient-start), var(--btn-primary-gradient-end));
  border: none;
  transition: all var(--transition-speed) ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--btn-shadow);
  background: linear-gradient(135deg, var(--strans-primary-dark), var(--strans-primary));
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

/* Navbar customizations */
.navbar-brand img {
  transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  transition: all var(--transition-speed) ease;
  border-radius: var(--border-radius);
  margin: 0 var(--space-xs);
}

.navbar-nav .nav-link:hover {
  background: var(--hero-glass-bg);
  transform: translateY(-1px);
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, rgba(var(--strans-primary-rgb), 0.9), rgba(var(--strans-primary-rgb), 0.7)),
              url('https://i.pinimg.com/736x/e7/2a/5b/e72a5b414d4a4503aec8126351002cd5.jpg');
  background-size: cover;
  background-position: center;
  min-height: 75vh;
}

/* Cards de notícias usando Bootstrap */
.news-card {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card .card {
  border: none;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  height: 100%;
}

.news-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.news-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Hero Carousel Styles - Rectangular Format */
.carousel-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.hero-carousel {
  height: var(--hero-height-desktop);
  min-height: var(--hero-min-height-desktop);
  max-height: var(--hero-max-height-desktop);
}

.hero-carousel-img {
  height: var(--hero-height-desktop);
  min-height: var(--hero-min-height-desktop);
  max-height: var(--hero-max-height-desktop);
  object-fit: cover;
  filter: brightness(var(--image-brightness));
  transition: all var(--transition-slow) ease;
}

.hero-carousel-placeholder {
  background: linear-gradient(135deg, var(--placeholder-gradient-start), var(--placeholder-gradient-end));
  position: relative;
  overflow: hidden;
  height: var(--hero-height-desktop);
  min-height: var(--hero-min-height-desktop);
  max-height: var(--hero-max-height-desktop);
}

.placeholder-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.05) 2px,
      rgba(255,255,255,0.05) 4px
    );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--hero-overlay-start) 0%,
    var(--hero-overlay-middle) 50%,
    var(--hero-overlay-end) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--text-light);
}

.hero-title {
  font-size: 4rem;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.4;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-meta {
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-badge {
  background: var(--hero-glass-bg);
  color: var(--text-light);
  border: 1px solid var(--hero-glass-border);
  backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-pill);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.hero-date {
  color: var(--text-white-75);
  font-size: 0.9rem;
  font-weight: var(--font-weight-normal);
}

.btn-hero {
  background: var(--btn-glass-bg);
  color: var(--text-light);
  border: 2px solid var(--btn-glass-border);
  backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-md) 2.5rem;
  border-radius: var(--border-radius-pill);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-speed) ease;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-hero:hover {
  background: var(--btn-glass-hover);
  border-color: var(--hero-glass-hover);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero Carousel Controls */
.hero-control {
  width: 8%;
  opacity: 0.7;
  transition: opacity var(--transition-speed) ease;
}

.hero-control:hover {
  opacity: 1;
}

.hero-control-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--hero-glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 50%;
  border: 2px solid var(--hero-glass-border);
  transition: all var(--transition-speed) ease;
}

.hero-control:hover .hero-control-icon {
  background-color: var(--hero-glass-hover);
  border-color: var(--hero-glass-hover);
  transform: scale(1.1);
}

/* Hero Carousel Indicators */
.hero-carousel .carousel-indicators {
  bottom: var(--space-xl);
  margin-bottom: 0;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 var(--space-sm);
  background-color: var(--text-white-50);
  border: 2px solid var(--text-white-75);
  transition: all var(--transition-speed) ease;
  opacity: 1;
}

.hero-carousel .carousel-indicators [data-bs-target].active {
  background-color: var(--text-light);
  border-color: var(--text-light);
  transform: scale(1.3);
}

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

.carousel-item.active .hero-content {
  animation: heroContentSlide 0.8s ease-out;
}

@keyframes heroContentSlide {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Carousel fade effect enhancement */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity var(--transition-slow) ease-in-out;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
}

/* Featured Posts Carousel Styles - Legacy (removing old styles) */

/* Featured post styling */
.featured-post {
  min-height: 400px;
  position: relative;
}

.featured-post .card-img-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.featured-post .card-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.featured-post .card-text {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Animações suaves */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

/* Back to top button */
#backToTop {
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(var(--strans-primary-rgb), 0.3);
}

#backToTop:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Newsletter section */
.newsletter-section {
  background: linear-gradient(135deg, #1f2937, #374151);
}

/* Footer enhancements */
.footer {
  background: linear-gradient(135deg, var(--strans-primary), var(--strans-primary-dark));
}

.social-links a {
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* Post detail enhancements */
.post-header {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(226, 232, 240, 0.8));
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.post-meta {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.share-buttons .btn {
  margin: 0.25rem;
}

/* Sidebar widgets */
.sidebar .widget {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.sidebar .widget-title {
  border-bottom: 2px solid rgba(var(--strans-primary-rgb), 0.12);
  color: var(--strans-primary);
  font-weight: 700;
}

/* Enhanced badges */
.badge {
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius);
}

/* Dropdown menus */
.dropdown-menu {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

.dropdown-item {
  border-radius: 0.5rem;
  transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
  background: var(--strans-primary);
  color: white;
}

/* Category filter buttons */
.category-filter-btn {
  background: var(--bg-light);
  border: 2px solid var(--strans-primary);
  color: var(--strans-primary);
  border-radius: var(--border-radius-pill);
  transition: all var(--transition-speed) ease;
  font-weight: var(--font-weight-medium);
}

.category-filter-btn:hover {
  background: var(--strans-primary);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-filter-btn.active {
  background: linear-gradient(135deg, var(--strans-primary), var(--strans-primary-dark));
  border-color: var(--strans-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

/* Pagination */
.pagination .page-link {
  border: 2px solid rgba(var(--strans-primary-rgb), 0.16);
  color: var(--strans-primary);
  border-radius: 0.75rem;
  margin: 0 0.25rem;
  transition: all var(--transition-speed) ease;
  font-weight: var(--font-weight-medium);
}

.pagination .page-link:hover {
  background: var(--strans-primary);
  border-color: var(--strans-primary);
  color: white !important;
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background: var(--strans-primary);
  border-color: var(--strans-primary);
  color: white !important;
  box-shadow: 0 4px 15px rgba(var(--strans-primary-rgb), 0.22);
}

.pagination .page-link i {
  color: inherit;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    background-attachment: scroll;
  }
  
  /* Hero Carousel responsive adjustments */
  .hero-carousel,
  .hero-carousel-img,
  .hero-carousel-placeholder {
    height: var(--hero-height-tablet);
    min-height: var(--hero-min-height-tablet);
    max-height: var(--hero-max-height-tablet);
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-meta {
    margin-bottom: 1.5rem;
  }
  
  .hero-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .btn-hero {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
  
  .hero-control {
    width: 12%;
  }
  
  .hero-control-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 0.3rem;
  }
  
  .featured-post {
    min-height: 300px;
  }
  
  .news-card .card-img-top {
    height: 180px;
  }
  
  /* Mobile navbar */
  .navbar-collapse {
    background: var(--navbar-mobile-bg);
    border-radius: var(--border-radius-lg);
    margin-top: var(--space-md);
    padding: var(--space-md);
    box-shadow: 0 10px 30px var(--navbar-mobile-shadow);
  }
  
  .navbar-nav .nav-link {
    color: var(--strans-primary) !important;
    margin: var(--space-xs) 0;
    padding: 0.75rem var(--space-md);
  }
  
  .navbar-nav .nav-link:hover {
    background: var(--strans-primary);
    color: var(--text-light) !important;
  }
  
  .d-flex {
    margin-top: 1rem;
    flex-direction: column;
  }
  
  .d-flex input {
    margin-bottom: 0.5rem;
    margin-right: 0 !important;
  }
  
  .d-flex button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: auto;
  }
  
  /* Hero Carousel mobile adjustments */
  .hero-carousel,
  .hero-carousel-img,
  .hero-carousel-placeholder {
    height: var(--hero-height-mobile);
    min-height: var(--hero-min-height-mobile);
    max-height: var(--hero-max-height-mobile);
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }
  
  .hero-meta {
    margin-bottom: 1rem;
  }
  
  .hero-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: inline-block;
  }
  
  .hero-date {
    font-size: 0.8rem;
    display: block;
  }
  
  .btn-hero {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .hero-control {
    width: 15%;
  }
  
  .hero-control-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .hero-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0 0.2rem;
  }
  
  .hero-carousel .carousel-indicators {
    bottom: 1rem;
  }
  
  .featured-post {
    min-height: 250px;
  }
  
  .news-card .card-img-top {
    height: 160px;
  }
  
  .category-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Landscape mobile orientation */
@media (max-width: 896px) and (orientation: landscape) and (max-height: 500px) {
  .hero-carousel,
  .hero-carousel-img,
  .hero-carousel-placeholder {
    height: 85vh;
    min-height: 300px;
    max-height: 85vh;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .btn-hero {
    padding: 0.6rem 1.5rem;
  }
}

/* Large desktop adjustments */
@media (min-width: 1400px) {
  .hero-carousel,
  .hero-carousel-img,
  .hero-carousel-placeholder {
    height: 65vh;
    max-height: 800px;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
  }
}

/* Print styles */
@media print {
  .navbar, .footer, #backToTop, .newsletter-section {
    display: none !important;
  }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--strans-primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-section {
    background-attachment: scroll;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--strans-primary);
  }
  
  .btn-outline-primary {
    border-width: 2px;
  }
}

/* ===========================
   CARDS COM IMAGEM DE FUNDO
=========================== */

/* Cards com imagem de fundo */
.news-card.has-background-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
  max-height: 220px;
  overflow: hidden;
  border-radius: 12px;
}

/* Cards sem imagem também ficam retangulares */
.news-card:not(.has-background-image) {
  min-height: 200px;
  max-height: 220px;
  border-radius: 12px;
  background-color: #f8f9fa;
}

/* Overlay escuro para melhor legibilidade do texto */
.news-card.has-background-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
  transition: all var(--transition-speed) ease;
}

/* Hover effect para o overlay */
.news-card.has-background-image:hover::before {
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* Card body com z-index para ficar sobre o overlay */
.news-card.has-background-image .card-body,
.news-card:not(.has-background-image) .card-body {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card.has-background-image .card-body {
  color: white;
}

/* Ajustes para o formato retangular */
.news-card .card-title {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.news-card .card-text {
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badge ajustado para o formato retangular */
.news-card .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
}

/* Melhor visibilidade dos badges */
.news-card.has-background-image .badge {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--strans-primary) !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-card.has-background-image .badge.bg-secondary {
  background: rgba(108, 117, 125, 0.9) !important;
  color: white !important;
}

.news-card.has-background-image .badge.bg-danger {
  background: rgba(220, 53, 69, 0.9) !important;
  color: white !important;
}

.news-card.has-background-image .badge.bg-info {
  background: rgba(23, 162, 184, 0.9) !important;
  color: white !important;
}

/* Melhor legibilidade do texto */
.news-card.has-background-image .card-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  color: white !important;
}

.news-card.has-background-image .card-text {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Meta informações com melhor visibilidade */
.news-card.has-background-image .text-white {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Hover effect para o card inteiro */
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.news-card.has-background-image:hover {
  background-size: 102%;
}

.news-card:not(.has-background-image):hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .news-card.has-background-image,
  .news-card:not(.has-background-image) {
    min-height: 180px;
    max-height: 200px;
  }
  
  .news-card .card-body {
    padding: 1rem;
  }
  
  .news-card .card-title {
    font-size: 0.9rem;
  }
  
  .news-card .card-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .news-card.has-background-image,
  .news-card:not(.has-background-image) {
    min-height: 160px;
    max-height: 180px;
  }
  
  .news-card .card-body {
    padding: 0.75rem;
  }
}

/* ===========================
   CARDS SEM IMAGEM DE FUNDO
=========================== */

/* Cards sem imagem - texto preto */
.news-card:not(.has-background-image) .card-title {
  color: #333 !important;
  font-weight: 700;
}

.news-card:not(.has-background-image) .card-text {
  color: #6c757d !important;
}

.news-card:not(.has-background-image) .text-white {
  color: #6c757d !important;
}

/* Badges para cards sem imagem */
.news-card:not(.has-background-image) .badge {
  font-weight: 600;
}

.news-card:not(.has-background-image) .badge.bg-secondary {
  background: #6c757d !important;
  color: white !important;
}

.news-card:not(.has-background-image) .badge.bg-danger {
  background: #dc3545 !important;
  color: white !important;
}

.news-card:not(.has-background-image) .badge.bg-info {
  background: #17a2b8 !important;
  color: white !important;
}