/*
Theme Name: belvedere
Theme URI: 
Description: A custom WordPress theme
Author: 
Author URI: 
Version: 1.13
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: belvedere
*/


:root {
  --primary-color: #2b5b99;
}
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1170px !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
}

.container-fluid {
  padding: 0 30px !important;
}

.text-badge {
  background-color: var(--primary-color);
}

header.site-header .navbar {
  box-shadow: unset;
}

.site-header .navbar button:focus {
  box-shadow: none;
}

section .section-header {
  border-bottom: 1px solid #dcdcdd;
}

/* Featured and Post Images */
.home-section .featured-img,
.home-section .post-img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-section .featured-img {
  height: 270px;
}

.home-section .post-img {
  height: 130px;
}

.home-section article a {
  position: relative;
  display: inline;
  overflow: hidden;
}

.home-section article a:hover::before {
  opacity: 1;
}

.home-section article a:hover img {
  transform: scale(1.02);
}

.home-section article a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.home-section article .content {
  padding: 0.5rem 0;
}

.home-section article .title a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.home-section article .title a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .home-section .featured-img,
  .home-section .post-img {
    height: 200px;
  }
}

.site-main .container .col-lg-12 {
  max-width: 750px !important;
}

/* Single Post Styles */
.single .site-main .container {
  max-width: 1170px !important;
}

.single .entry-header h1 {
  font-size: 1.3rem;
}

.single .entry-header .entry-excerpt {
  font-size: 1rem;
  color: #46494c;
  font-weight: 200;
}

.single .entry-content {
  text-align: left;
  word-wrap: break-word;
  font-size: 1rem;
  line-height: 2.1rem;
  color: #46494c;
}

.single .entry-content figcaption {
  display: block;
  margin: 7.5px 0 0 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 0.85714rem;
  color: #46494c;
}

.single .entry-content > p {
  margin: 20px 0;
}

.single .entry-content img, .single .entry-content .wp-caption, .single {
  max-width: 100%;
  height: auto;
}

.entry-content .wp-embedded-content, .single .entry-content > * {
  max-width: 100%;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary-color);
  background-color: #f8f9fa;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  border-radius: 0.375rem;
  quotes: """ """;
}

.entry-content blockquote::before {
  content: open-quote;
  font-size: 2em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
  color: var(--primary-color);
}

.entry-content blockquote p {
  margin: 0px;
  color: #495057;
  font-size: 1.1rem;
  line-height: 1.6;
  display: inline;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
  font-style: normal;
}

.single .entry-categories a,
.single .entry-tags a {
  color: var(--primary-color);
}

.single .entry-categories a:hover,
.single .entry-tags a:hover {
  text-decoration: underline !important;
}

/* Content Headings */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 60px;
  color: #000000;
  font-weight: 600;
  margin-bottom: 1rem;
}

.entry-content h4 {
  font-size: 1rem;
  line-height: 1.28571rem;
}

.entry-content h5 {
  font-size: 0.9rem;
  line-height: 1.28571rem;
}

.entry-content h6 {
  font-size: 0.8rem;
  line-height: 1.28571rem;
}

@media (max-width: 768px) {
  .entry-content h1 {
    font-size: 1.71429rem;
    line-height: 2rem;
  }

  .entry-content h2 {
    font-size: 1.13rem;
    line-height: 1.57143rem;
  }

  .entry-content h3 {
    font-size: 1.1rem;
    line-height: 1.28571rem;
  }
}

@media (min-width: 769px) {
  .entry-content h1 {
    font-size: 2.85714rem; /* Increased from 2.14286rem */
    line-height: 3.14286rem; /* Adjusted line height */
  }

  .entry-content h2 {
    font-size: 1.13rem;
      line-height: 1.57143rem;
  }

  .entry-content h3 {
    font-size: 1.1rem;
    line-height: 1.28571rem;
  }
}

/* Related Posts */
.related-posts {
  padding-top: 2rem;
}

.related-posts .section-title {
  color: #333;
  font-weight: 600;
}

.related-posts .image-wrapper {
  aspect-ratio: 1;
}

.related-posts .image-wrapper img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-posts article a:hover img {
  transform: scale(1.02);
}

.related-posts article a:hover .title {
  color: var(--primary-color) !important;
}

/* Social Share */
.social-share {
  text-align: center;
}

.social-share .divider {
  height: 1px;
  background-color: #dcdcdd;
}

.social-share .icons-wrapper {
  background-color: #fff;
  padding: 0 15px;
}

.social-share .share-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 4px;
  color: #46494c;
  transition: all 0.3s ease;
}

.social-share .share-button:hover {
  color: #fff;
}

.social-share .share-button.facebook:hover {
  background-color: #1877f2;
}

.social-share .share-button.twitter:hover {
  background-color: #444444;
}

.social-share .share-button.whatsapp:hover {
  background-color: #25d366;
}

.social-share .share-button svg {
  width: 20px;
  height: 20px;
}

.social-share .icons {
  display: inline-flex;
  background-color: #fff;
  padding: 20px 20px;
}

/* Sidebar */

aside.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-sidebar .widget {
  list-style: none;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
}

.site-sidebar .widget-title {
  color: #333;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.site-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-sidebar ul li {
  line-height: 1.2rem;
}

.site-sidebar ul li span.post-date {
  display: block;
}

aside.site-sidebar #calendar_wrap table#wp-calendar {
  width: 100%;
}


aside.site-sidebar form.searchform div {
  display: flex;
  align-items: center;
  gap: 10px;
}

aside.site-sidebar form.searchform div input {
  flex: 1;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.5rem;
}

aside.site-sidebar form.searchform div input[type="submit"] {
  background-color: var(--primary-color);
  border: none;
  color: #fff;
}

/* Page Styles */
.page .site-main .container {
  max-width: 1170px !important;
}

/* Navbar Styles */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.navbar .custom-logo-link img {
  height: 60px;
  width: auto;
}

header:not(.bg-header) .navbar .nav-link {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar .navbar-nav > li > .nav-link {
  padding: 0.5rem 0.5rem !important;
}

header:not(.bg-header) .navbar .nav-link:hover,
.navbar .nav-item.active .nav-link {
  color: var(--primary-color);
}

header.bg-header ul.sub-menu.dropdown-menu {
  background: linear-gradient(rgb(255 255 255 / 7%), rgb(255 255 255 / 7%)), var(--header-bg-color);
}

header.bg-header a:hover, header.bg-header svg:hover {
  opacity: 0.6;
  filter: brightness(115%);
  color: var(--header-text-color);
}

ul.sub-menu.dropdown-menu {
  width: 100%;
  padding-right: .5rem !important;
  padding-left: .5rem !important;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.navbar .dropdown-item {
  padding: 0.5rem 1rem;
  color: #333;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: #f8f9fa;
  color: var(--primary-color);
}

@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* remove o efeito de "salto" */
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .navbar .dropdown-menu {
    border: none;
    padding-left: 1rem;
    box-shadow: none;
  }
}

/* Navbar Logo */
.navbar .navbar-brand {
  padding: 0;
  margin: 0;
}

.navbar .custom-logo-link {
  display: block;
  line-height: 0;
}

.navbar .custom-logo {
  max-height: 50px;
  width: auto;
}

@media (max-width: 991px) {
  .navbar .custom-logo {
    max-height: 40px;
  }
}

/* Search and Category thumbnails */
.post-thumbnail {
  aspect-ratio: 16/9;
  height: 200px;
}

.post-thumbnail .post-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Category Page */
/* Post Thumbnails Global */
.post-img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

article a:hover .post-img {
  transform: scale(1.02);
}

article a:hover .title {
  color: var(--primary-color) !important;
}

/* Remove a especificidade da classe category */
.category .post-img {
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.category article a:hover .post-img {
  transform: scale(1.02);
}

.category article a:hover .title {
  color: var(--primary-color) !important;
}

/* Pagination Styles */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nav-links.post-pagination {
  justify-content: flex-start;
}

.nav-links .page-numbers:not(.dots), .nav-links .post-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-links .page-numbers.current, .nav-links .post-page-numbers.current {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.nav-links .page-numbers:hover:not(.current):not(.dots), .nav-links .post-page-numbers:hover:not(.current) {
  background-color: #e9ecef;
  color: var(--primary-color);
}

.nav-links .page-numbers.dots:not(.current) {
  padding: 0px 10px;
}

.nav-links .next {
  width: auto;
  padding: 0 15px;
}

footer .custom-logo-link img {
  height: 40px;
  width: auto;
}

/* 404 Page Styles */
.error404 .text-primary {
  color: var(--primary-color) !important;
}

.error404 .search-form .form-control {
  border: 1px solid #dee2e6;
}

.error404 .search-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 74, 173, 0.25);
}

.error404 .search-form .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.error404 .search-form .btn-primary:hover {
  background-color: #003c8a;
  border-color: #003c8a;
}

.error404 .btn-outline-primary {
  color: var(--primary-color);
  border-color: #dee2e6;
  font-weight: 500;
}

.error404 .btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Search Form */
.search-wrapper {
  position: relative;
}

@media (min-width: 991.98px) {
  .search-form-mobile {
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 1000;
  }
  header:not(.bg-header) .search-form {
    background-color: #FFFFFF;
  }
}

.search-form {
  top: 100%;
  padding-top: 1rem;
  min-width: 280px;
  z-index: 1000;
}

.search-form button {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.search-form button:hover {
  background-color: var(--primary-color);
  opacity: 0.99;
}

.search-form .input-group {
  box-shadow: 0 2px 13px rgb(0 0 0 / 47%);
  border-radius: 4px;
}

.search-toggle {
  color: #333;
  transition: color 0.3s ease;
}

.search-toggle:hover {
  color: var(--primary-color);
}

@media (max-width: 991px) {
  .search-wrapper {
    order: 3;
    width: 100%;
  }

  .search-form {
    position: static;
    box-shadow: none;
    padding: 1rem 0;
    min-width: 100%;
  }

  .search-toggle {
    display: none;
  }

  .search-form.d-none {
    display: block !important;
  }
}

.search-form .input-group input.form-control:focus {
  box-shadow: none;
}
/* Author Box */
.author-box img {
  width: 80px;
  height: 80px;
}

.author-box p {
  color: #46494c;
  font-size: 0.95rem;
  line-height: 1.5;
}

.author-box a {
  color: var(--primary-color);
}

@media (max-width: 576px) {
  .author-box .d-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .author-box img {
    margin: 0 auto 1rem;
  }
}
/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background: rgba(239, 239, 239, 0.95);
  z-index: 9999;
  font-size: 0.9rem;
  display: none;
  max-width: 380px;
}

.cookie-consent a {
  color: #000000;
  text-decoration: underline;
}

.cookie-consent.show {
  display: block;
}

.cookie-consent .btn-accept {
  font-size: 0.8rem;
  background-color: var(--primary-color);
  color: #fff;
  transition: background-color 0.3s ease;
}

.cookie-consent .btn-accept:hover {
  background-color: #003c8a;
}

@media (max-width: 768px) {
  .cookie-consent {
    max-width: 100%;
    bottom: 0px !important;
    left: 0px !important;
  }
}

.bg-belvedere {
  background: #2b5b99;
}
.bg-header {
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
}

.bg-header a,
.bg-header svg {
  color: var(--header-text-color);
  fill: var(--header-text-color);
}


#lincebranding img {
  margin-top: -22px;
}