:root {
  --primary-color: #004aad;
  --secondary-color: #ff4b4b;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --mundoba-color: #4e4a6a;
  --header-height: 120px;
  --button-height: 48px;
}

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

body {
  line-height: 1.3 !important;
}

img {
  transition: all 0.3s ease;
  border-radius: 5px;
}

img:hover {
  transform: scale(1.03);
}

/* Links de Navegação */
.navbar .nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
  color: #fff !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  /* background-color: var(--secondary-color); */
  background-color: var(--mundoba-color) !important;
  transition: all 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Correção para imagens centralizadas */
.wp-block-image.aligncenter {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-image .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

figure.wp-block-image.aligncenter > img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

figure.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Correção para imagens à esquerda (alignleft) */
.wp-block-image.alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
  clear: left;
}

.wp-block-image .alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

figure.wp-block-image.alignleft > img {
  float: left;
  margin-right: 1em;
}

figure.alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

img.alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

/* Correção para imagens à direita (alignright) */
.wp-block-image.alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
  clear: right;
}

.wp-block-image .alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

figure.wp-block-image.alignright > img {
  float: right;
  margin-left: 1em;
}

figure.alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

img.alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

.box-article-section {
  font-weight: 300;
  --bs-text-opacity: 1;
  color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity));
}

.box-article-title {
  font-weight: 600 !important;
  --bs-text-opacity: 1;
  color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity));
}

.box-article-subtitle {
  font-weight: 300;
  --bs-text-opacity: 1;
  color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity)) !important;
  font-size: 1.25rem !important;
}

.single-article-title {
  font-weight: 600 !important;
  --bs-text-opacity: 1;
  color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
}

.single-article-subtitle {
  font-weight: 400 !important;
  --bs-text-opacity: 1;
  color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity)) !important;
  font-size: 1.5rem !important;
}

.hover-link:hover {
  color: #4e4a6a !important;
  transition: color 0.3s ease;
  font-weight: 500;
}

.pr-1-5 {
  padding-right: 1.5rem !important;
}

.footer {
  position: relative;
  background-color: #f8f9fa !important;
}

.footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  /* background: linear-gradient(90deg, #e9ecef, #adb5bd, #6c757d); */
  background: linear-gradient(90deg, #ffc107, #dc3545, #0d6efd);
}

.logo-container {
  display: flex;
  align-items: center;
  position: relative;
}

.logo-container img:first-child {
  height: 100px;
  margin-right: 20px;
  position: relative;
  z-index: 2;
  margin-bottom: -70px;
}

.logo-container img:last-child {
  height: 20px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.video-preview {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

.video-preview img,
.video-preview iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: url("<?php bloginfo("template_url"); ?>/assets/images/play.svg")
    no-repeat center center;
  background-size: contain;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.video-preview:hover .play-button {
  opacity: 1;
}

.img-fluid {
  aspect-ratio: 16 / 9 !important;
  height: fit-content !important;
  width: 100%;
  object-fit: cover;
  background: #ffffff;
}

@media (max-width: 1400px) {
  .destaque-principal .emphasis-img {
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .destaque-principal .emphasis-img {
    height: 100% !important;
    aspect-ratio: 4 / 4 !important;
    object-fit: cover !important;
  }
}

/* Responsividade - Mobile */
@media (max-width: 992px) {
  .img-fluid {
    aspect-ratio: 16 / 11 !important;
    height: fit-content !important;
    width: 100%;
    object-fit: cover;
    background: #ffffff;
  }

  /* Estilos para imagens dentro do conteúdo da notícia */
  .blog-post img {
    max-width: 100% !important;
    height: auto !important;
    margin: 1rem 0;
  }

  .blog-post .wp-block-image img {
    width: 100% !important;
    height: auto !important;
  }

  /* Estilos para vídeos do YouTube */
  .blog-post iframe[src*="youtube.com"],
  .blog-post iframe[src*="youtube-nocookie.com"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 1rem 0 !important;
  }

  .blog-post .wp-block-embed__wrapper {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 56.25% !important; /* 16:9 */
    height: 0 !important;
    margin: 1rem 0 !important;
  }

  .blog-post .wp-block-embed__wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Estilos para captions do WordPress */
  .blog-post .wp-caption {
    max-width: 100% !important;
    width: 100% !important;
    margin: 1rem 0 !important;
  }

  .blog-post .wp-caption img {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  .blog-post .wp-caption.aligncenter,
  .blog-post .wp-caption.alignleft,
  .blog-post .wp-caption.alignright {
    float: none !important;
    margin: 1rem 0 !important;
    width: 100% !important;
  }

  .blog-post .wp-caption-text {
    margin: 0.5rem 0 !important;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
  }

  .blog-post figure {
    margin: 1rem 0 !important;
    width: 100% !important;
  }

  .blog-post figure.alignleft,
  .blog-post figure.alignright,
  .blog-post img.alignleft,
  .blog-post img.alignright {
    float: none !important;
    margin: 1rem 0 !important;
    width: 100% !important;
  }

  .logo-container {
    display: flex;
    align-items: center;
    position: relative;
  }

  .logo-container img:first-child {
    height: 100px;
    margin-right: 20px;
    position: relative;
    z-index: 2;
    margin-bottom: -70px;
  }

  .logo-container img:last-child {
    height: 20px;
    margin-top: 0;
    position: relative;
    z-index: 1;
  }

  .mb-05-mob {
    margin-bottom: 0.5rem !important;
  }

  .mt-05-mob {
    margin-top: 0.5rem !important;
  }

  .mb-1-mob {
    margin-bottom: 1rem !important;
  }

  .mt-1-mob {
    margin-top: 1rem !important;
  }

  .mb-2-mob {
    margin-bottom: 2rem !important;
  }

  .mt-2-mob {
    margin-top: 2rem !important;
  }

  .box-article-title-sm {
    font-size: 1rem !important;
  }

  .featurette-heading {
    letter-spacing: 0 !important;
  }

  .emphasis-card-title {
    height: 15rem !important;
    padding: 2rem !important;
  }

  .emphasis-title {
    font-size: 1.7rem !important;
  }

  .emphasis-img {
    height: auto !important;
    width: 100%;
    object-fit: cover;
  }
}

.quick-links {
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.quick-links a {
  color: #4e4a6a;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 0 5px;
  transition: all 0.2s ease;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.quick-links a:hover {
  background-color: #4e4a6a;
  color: white;
  border-color: #4e4a6a;
}

.quick-links a.active {
  background-color: #4e4a6a;
  color: white;
  border-color: #4e4a6a;
  font-weight: 600;
}

.quick-links .separator {
  color: #ccc;
  margin: 0 2px;
}

@media (max-width: 768px) {
  .quick-links {
    margin-top: 15px;
    justify-content: center;
  }

  .quick-links a {
    margin-bottom: 8px;
  }
}

@media (min-width: 992px) {
  .divider-mobile {
    display: none !important;
  }
}

.emphasis-card-title {
  padding: 3rem;
}

.emphasis-title {
  font-size: 3rem;
}

.emphasis-img {
  height: 400px;
  width: 100%;
  object-fit: cover;
  background: #ffffff;
}

.poligono-m {
  clip-path: polygon(
    10% 0%,
    40% 0%,
    50% 15%,
    60% 0%,
    90% 0%,
    100% 15%,
    100% 100%,
    0% 100%,
    0% 15%
  );
}

.triangulo-branco {
  position: absolute;
  left: 40%;
  width: 20%;
  height: 15%;
  background: white;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 2;
}

.poligono-esq {
  clip-path: polygon(5% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 7%);
}

.poligono-dir {
  clip-path: polygon(0% 0%, 95% 0%, 100% 7%, 100% 100%, 0% 100%);
}

.mt-7 {
  margin-top: 5rem !important;
}

.mt-8 {
  margin-top: 8rem !important;
}

.bg-dark {
  background: linear-gradient(45deg, #1a1a1a, #2c2c2c) !important;
}

.form-control-lg {
  border: none;
  padding: 0.8rem 1rem;
  height: var(--button-height) !important;
  line-height: 1;
}

.btn-lg {
  height: var(--button-height);
}

.form-control-lg:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color), 0.25);
}

.featurette-divider {
  margin: 3rem 0 !important;
}

/* Estilos para o ícone de busca e modal */
.search-icon {
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon:hover {
  transform: scale(1.1);
}

.search-icon i {
  font-size: 1.2rem;
}

#searchModal .modal-content {
  border-radius: 10px;
  overflow: hidden;
}

#searchModal .modal-header {
  padding: 1rem 1.5rem;
}

#searchModal .modal-body {
  padding: 1.5rem;
}

.search-input {
  border: 1px solid #ced4da;
  border-radius: 5px 0 0 5px !important;
  padding: 12px 20px;
  font-size: 1rem;
  box-shadow: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--mundoba-color);
  box-shadow: 0 0 0 0.2rem rgba(78, 74, 106, 0.25);
}

.search-btn {
  border-radius: 0 5px 5px 0 !important;
  background-color: var(--mundoba-color) !important;
  border-color: var(--mundoba-color) !important;
  padding: 0 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background-color: #3e3a5a !important;
  border-color: #3e3a5a !important;
}

.badge {
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  background-color: var(--mundoba-color) !important;
  color: white !important;
}

@media (max-width: 768px) {
  #searchModal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .search-btn {
    padding: 0 1rem;
  }

  .mobile-search-btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    border-color: rgba(255, 255, 255, 0.5);
  }

  .mobile-search-btn:hover {
    background-color: var(--mundoba-color);
    border-color: var(--mundoba-color);
  }
}

/* Estilos para busca no sidebar */
.sidebar-search-container {
  margin-top: 0.5rem;
}

.sidebar-search-form {
  position: relative;
}

.sidebar-search-input {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 30px;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
}

.sidebar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-search-input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--mundoba-color);
  box-shadow: 0 0 0 0.2rem rgba(78, 74, 106, 0.25);
  color: #fff;
}

.sidebar-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}

.sidebar-search-btn:hover {
  color: #fff;
}

.sidebar-popular-searches {
  margin-top: 0.5rem;
}

.popular-tag {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  margin-right: 0.2rem;
  margin-bottom: 0.2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.popular-tag:hover {
  background-color: var(--mundoba-color);
  color: #fff;
  border-color: var(--mundoba-color);
}
