/* Magazine Style Layout for InfoNoroeste */

/* Import Google Fonts - Roboto and Volkhov */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Volkhov:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #e53e3e;
  --dark-gray: #2d3748;
  --light-gray: #f7fafc;
  --text-gray: #4a5568;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --black: #1a202c;
  --heading-font: 'Volkhov', serif;
  --body-font: 'Roboto', 'Arial', sans-serif;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-gray);
  background: var(--white);
}

/* Image Container with Blur Background */
.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(20px);
  transform: scale(1.1); /* Evita bordas brancas no blur */
  z-index: 1;
}

.image-container img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.image-container:hover img {
  transform: scale(1.03);
}

/* Hero Section Styles */
.hero-section {
  margin-bottom: 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.1rem;
  height: 600px;
  overflow: hidden;
}

.hero-card-3,
.hero-card-4,
.hero-card-5 {
  width: 100%;
  height: 100%;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.hero-card-1 {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.hero-card-2 {
  grid-column: 3;
  grid-row: 1;
}

.hero-card-3 {
  grid-column: 1;
  grid-row: 2;
}

.hero-card-4 {
  grid-column: 2;
  grid-row: 2;
}

.hero-card-5 {
  grid-column: 3;
  grid-row: 2;
}

.hero-card-6 {
  display: none;
}

/* Hero Card Link - Toda a imagem é clicável */
.hero-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* News Cards - Estilo Elegante de Revista */
.news-card {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border-radius: 0;
}

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

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.news-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.news-card .card-img-top {
  transition: transform 0.4s ease;
  overflow: hidden;
}

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

.news-date-badge {
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}

.news-category {
  background: var(--primary-red);
  color: white;
  padding: 4px 12px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.news-title {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-gray);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.news-meta {
  font-size: 12px;
  color: var(--text-gray);
  opacity: 0.8;
}

/* Melhorias adicionais para os cards */
.card-body {
  padding: 1.5rem;
}

.card-text {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Responsividade dos cards */
@media (max-width: 768px) {
  .news-card {
    margin-bottom: 1rem;
  }

  .news-title {
    font-size: 1rem;
  }

  .card-body {
    padding: 1rem;
  }
}

.hero-card-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}

.hero-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease; /* Zoom sutil controlado */
  will-change: transform;
  backface-visibility: hidden;
}

.hero-card:hover .hero-card-image img {
  transform: scale(1.03);
}

.hero-card:hover .hero-card-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 2rem 1.5rem 1.5rem;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 2;
}

.hero-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

.hero-category {
  background: var(--primary-red);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-date {
  color: var(--white);
  font-weight: 500;
  opacity: 0.9;
}

.hero-card-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.hero-card-title {
  color: var(--white);
  text-decoration: none;
}

/* Responsive Hero Grid - Melhorado */
@media (max-width: 1200px) {
  .hero-grid {
    height: 500px;
    gap: 0.4rem;
  }

  .hero-card-title {
    font-size: 1.1rem;
  }

  .hero-card-overlay {
    padding: 1.75rem 1.25rem 1.25rem;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: auto;
    gap: 0.6rem;
    margin: 0 0.5rem;
  }

  .hero-card {
    height: 280px;
    min-height: 250px;
  }

  .hero-card-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .hero-card-title {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .hero-card-meta {
    margin-bottom: 0.75rem;
  }

  /* Ajuste para manter proporção em tablets */
  .hero-card-1 {
    grid-column: 1 / span 2;
    grid-row: 1;
    height: 320px;
  }

  .hero-card-2 {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-card-3 {
    grid-column: 2;
    grid-row: 2;
  }

  .hero-card-4 {
    grid-column: 1;
    grid-row: 3;
  }

  .hero-card-5 {
    grid-column: 2;
    grid-row: 3;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    gap: 0.4rem;
    margin: 0 0.25rem;
  }

  .hero-card {
    height: 240px;
    min-height: 220px;
  }

  .hero-card-1 {
    height: 280px;
  }

  .hero-card-overlay {
    padding: 1.25rem 0.75rem 0.75rem;
  }

  .hero-card-title {
    font-size: 1rem;
    line-height: 1.15;
  }

  .hero-category {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}

@media (max-width: 576px) {
  .hero-grid {
    display: block;
    gap: 0.4rem;
    margin: 0;
    height: auto;
  }

  .hero-card {
    height: 160px;
    min-height: 140px;
    margin-bottom: 0.4rem;
  }

  .hero-card:last-child {
    margin-bottom: 0;
  }

  .hero-card-1 {
    height: 180px;
  }

  .hero-card-overlay {
    padding: 0.75rem 0.5rem 0.5rem;
  }

  .hero-card-title {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .hero-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
  }

  .hero-category {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
  }

  .hero-date {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .hero-grid {
    display: block;
    gap: 0.3rem;
  }

  .hero-card {
    height: 140px;
    min-height: 120px;
    margin-bottom: 0.3rem;
  }

  .hero-card:last-child {
    margin-bottom: 0;
  }

  .hero-card-1 {
    height: 160px;
  }

  .hero-card-overlay {
    padding: 0.5rem 0.4rem 0.4rem;
  }

  .hero-card-title {
    font-size: 0.85rem;
    line-height: 1.1;
  }

  .hero-card-meta {
    margin-bottom: 0.3rem;
  }

  .hero-category {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
  }

  .hero-date {
    font-size: 0.6rem;
  }
}

/* Dispositivos muito pequenos (smartphones antigos) */
@media (max-width: 360px) {
  .hero-grid {
    display: block;
    gap: 0.25rem;
  }

  .hero-card {
    height: 120px;
    min-height: 100px;
    margin-bottom: 0.25rem;
  }

  .hero-card:last-child {
    margin-bottom: 0;
  }

  .hero-card-1 {
    height: 140px;
  }

  .hero-card-overlay {
    padding: 0.4rem 0.3rem 0.3rem;
  }

  .hero-card-title {
    font-size: 0.8rem;
    line-height: 1.1;
  }

  .hero-card-meta {
    margin-bottom: 0.25rem;
  }

  .hero-category {
    font-size: 0.5rem;
    padding: 0.05rem 0.25rem;
  }

  .hero-date {
    font-size: 0.55rem;
  }
}

/* Header Styles */
.magazine-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Botão hamburger mobile */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
  outline: none;
}

.navbar-toggler:hover {
  background-color: var(--light-gray);
}

/* Container do menu colapsado */
.navbar-collapse {
  transition: all 0.3s ease;
}

/* Melhorar a aparência do menu colapsado */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
}

/* Navegação centralizada */
.navbar-collapse.justify-content-center {
  flex-grow: 0;
  justify-content: center !important;
}

.navbar-nav {
  margin: 0;
  justify-content: center;
}

/* Ajustes para mobile */
@media (max-width: 991.98px) {
  .navbar-collapse.justify-content-center {
    flex-grow: 1;
  }

  .navbar-nav {
    margin: 0;
  }

  /* Navegação mobile - um item por linha */
  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    padding: 1rem 1.5rem !important;
    width: 100%;
    text-align: left;
    border-radius: 0;
    font-size: 14px;
    letter-spacing: 0.3px;
  }

  .navbar-nav .nav-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-red) !important;
  }

  /* Ícones nos links mobile */
  .navbar-nav .nav-link i {
    width: 16px;
    text-align: center;
  }
}

/* Ajustes específicos para tablets */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    padding: 1.25rem 1.5rem !important;
    font-size: 15px;
  }

  .navbar-nav .dropdown-item {
    padding: 1rem 2.5rem;
    font-size: 14px;
  }

  /* Melhor espaçamento para tablets */
  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
}

/* Ajustes para mobile pequeno */
@media (max-width: 576px) {
  .navbar-nav .nav-link {
    padding: 1rem 1rem !important;
    font-size: 14px;
  }

  .navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 13px;
  }

  /* Reduzir margens em telas muito pequenas */
  .navbar-collapse {
    margin: 0 -1rem;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
}

.header-top {
  background: var(--dark-gray);
  color: var(--white);
  padding: 8px 0;
  font-size: 12px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icons a {
  color: var(--white);
  margin: 0 5px;
  text-decoration: none;
}

.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 18px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-gray);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
}

/* Estilos para os links de navegação */
.navbar-nav .nav-link {
  color: var(--dark-gray) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-red) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary-red) !important;
  background-color: var(--light-gray);
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 0.5rem;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

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

/* Section Titles */
.section-title {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Section Header with Section Title */
.section-header .section-title {
  font-family: var(--heading-font);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-align: center;
  position: relative;
}

.section-header .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-red);
  border-radius: 1px;
}

.highlight {
  color: var(--primary-red);
}

/* News Cards */
.news-card {
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.news-card-compact {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 15px rgba(0,0,0,0.12);
}

.img-magazine-card {
  height: 200px;
  object-fit: contain;
}

.news-date-badge {
  background: var(--primary-red);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.news-category {
  display: inline-block;
  background: var(--primary-red);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.news-title a {
  color: var(--dark-gray);
  font-weight: 600;
  line-height: 1.3;
}

.news-title a:hover {
  color: var(--primary-red);
}

.news-meta {
  font-size: 12px;
  color: var(--text-gray);
}

/* Category Cards */
.category-card {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-card h6 {
  font-weight: 600;
  margin-bottom: 8px;
}

.category-card .badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Sponsor Cards */
.sponsor-card {
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--white);
  min-height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.sponsor-card img {
  transition: opacity 0.2s;
}

.sponsor-card:hover img {
  opacity: 0.8;
}

/* Carousel Controls - Setas Pretas */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.carousel-control-prev {
  left: -31px;
}

.carousel-control-next {
  right: -31px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1); /* Torna as setas brancas */
  width: 20px;
  height: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
  margin-bottom: 0;
}

.carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--dark-gray);
  border: none;
  margin: 0 4px;
}

.carousel-indicators button.active {
  background-color: var(--primary-red);
}

.carousel-indicators {
  bottom: -30px !important;
}

.carousel-indicators [data-bs-target] {
  height: 10px;
  width: 10px;
  background-color: red;
}

/* Hero Section */
.hero-card {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.img-hero {
  height: 300px;
  object-fit: contain;
}

.hero-title a {
  color: var(--dark-gray);
  font-weight: 700;
  line-height: 1.2;
}

.hero-title a:hover {
  color: var(--primary-red);
}

.hero-meta {
  font-size: 13px;
  color: var(--text-gray);
}

/* Páginas Institucionais */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.section-title .highlight {
  color: var(--primary-red);
}

.lead {
  font-size: 1.25rem;
  color: var(--text-gray);
}

/* Cards das páginas institucionais */
.card {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-body {
  padding: 2rem;
}

/* Formulário de contato */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0;
}

/* Alertas */
.alert {
  border: none;
  border-radius: 0;
  padding: 1rem 1.5rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

/* Footer */
.magazine-footer {
  background: var(--dark-gray);
  color: var(--white);
  margin-top: auto;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
}

.footer-logo .highlight {
  color: var(--primary-red);
}

.footer-social a {
  color: var(--white);
  margin-right: 15px;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    line-height: 1.2;
  }

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

  .news-title {
    font-size: 1rem;
  }

  .img-hero {
    height: 200px;
  }

  .img-magazine-card {
    height: 150px;
  }

  /* Ajustar controles do carousel em mobile */
  .carousel-control-prev,
  .carousel-control-next {
    width: 35px;
    height: 35px;
    /* left: 5px; */
    /* right: 5px; */
  }

  .carousel-control-prev {
    left: 5px;
  }

  .carousel-control-next {
    right: 5px;
  }
}

/* Sidebar */
.sidebar {
  background: var(--light-gray);
  padding: 20px 25px;
  border-radius: 8px;
}

.widget-title {
  color: var(--dark-gray);
  font-weight: 600;
  margin-bottom: 15px;
  padding-top: 25px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-red);
}

.popular-post img {
  border-radius: 4px;
}

.popular-post h6 a {
  color: var(--dark-gray);
  font-weight: 600;
  line-height: 1.3;
}

.popular-post h6 a:hover {
  color: var(--primary-red);
}

/* Flat Button Styles */
.btn-flat {
  background-color: var(--primary-red);
  color: var(--white);
  border: none;
  border-radius: 0;
  padding: 8px 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: none;
}

.btn-flat:hover {
  background-color: #c53030;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.btn-flat:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(229, 62, 62, 0.4);
}

.btn-flat:focus {
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.25);
  outline: none;
}

/* Flat Badge Styles */
.badge {
  border-radius: 0 !important;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.badge.bg-primary {
  background-color: var(--primary-red) !important;
  color: var(--white) !important;
}

.badge.bg-secondary {
  background-color: var(--dark-gray) !important;
  color: var(--white) !important;
}

.badge.bg-success {
  background-color: #38a169 !important;
  color: var(--white) !important;
}

.badge.bg-danger {
  background-color: #e53e3e !important;
  color: var(--white) !important;
}

.badge.bg-warning {
  background-color: #d69e2e !important;
  color: var(--black) !important;
}

.badge.bg-info {
  background-color: #3182ce !important;
  color: var(--white) !important;
}

.badge.bg-light {
  background-color: var(--light-gray) !important;
  color: var(--dark-gray) !important;
  border: 1px solid var(--border-color);
}

.badge.bg-dark {
  background-color: var(--black) !important;
  color: var(--white) !important;
}

/* Hover effects for badges */
.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Custom badge sizes */
.badge.badge-sm {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.badge.badge-lg {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

/* Navigation */
.navbar-nav .nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-gray);
}

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

.navbar-brand {
  text-decoration: none;
}

.header-logo {
  max-width: 170px;
  height: auto;
  display: block;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 18px;
  border-radius: 8px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-gray);
}

/* Utility Classes */
.object-fit-cover {
  object-fit: cover;
}

.object-fit-contain {
  object-fit: contain;
}

/* Pagination */
.pagination {
  justify-content: center;
  margin: 2rem 0;
  gap: 0.25rem;
}

.page-item {
  margin: 0 0.125rem;
}

.page-link {
  color: var(--primary-red);
  border: 2px solid var(--border-color);
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.page-link:hover {
  color: var(--white);
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(229, 62, 69, 0.25);
  outline: none;
}

.page-item.active .page-link {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.page-item.disabled .page-link {
  color: var(--text-gray);
  border-color: var(--border-color);
  background-color: var(--light-gray);
  cursor: not-allowed;
  opacity: 0.6;
}

.page-item.disabled .page-link:hover {
  transform: none;
  box-shadow: none;
  background-color: var(--light-gray);
  border-color: var(--border-color);
  color: var(--text-gray);
}

/* Pagination Info */
.pagination-info {
  text-align: center;
  margin: 1rem 0;
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Pagination Navigation */
.pagination-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-nav .btn {
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.pagination-nav .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination-nav .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive Pagination */
@media (max-width: 768px) {
  .pagination {
    gap: 0.125rem;
    margin: 1.5rem 0;
  }
  
  .page-link {
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    font-size: 0.9rem;
  }
  
  .pagination-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .pagination-nav .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .pagination {
    gap: 0.1rem;
    margin: 1rem 0;
  }
  
  .page-link {
    padding: 0.4rem 0.6rem;
    min-width: 36px;
    font-size: 0.85rem;
  }
  
  .page-item {
    margin: 0 0.05rem;
  }
}

/* Pagination with Large Numbers */
.pagination-lg .page-link {
  padding: 1rem 1.25rem;
  min-width: 52px;
  font-size: 1.1rem;
}

/* Pagination with Small Numbers */
.pagination-sm .page-link {
  padding: 0.5rem 0.75rem;
  min-width: 36px;
  font-size: 0.85rem;
}

/* Custom Pagination Styles */
.pagination-magazine {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  border-radius: 8px;
  background: var(--white);
}

.pagination-magazine .page-link {
  border-radius: 4px;
  margin: 0 0.125rem;
  border: 1px solid var(--border-color);
}

.pagination-magazine .page-item.active .page-link {
  border-radius: 4px;
}