/* 9. Recent Posts Sidebar */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.recent-post {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
}
.recent-post:last-child {
  border-bottom: none;
}
.recent-post a {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}
.recent-post a:hover {
  color: #fdcb6e;
}
/* 8. Code Blocks & Markdown Snippets */
.code-block, pre code {
  background: #23272e;
  color: #f8f8f2;
  font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
  font-size: 15px;
  padding: 18px 20px;
  border-radius: 8px;
  display: block;
  overflow-x: auto;
  margin-bottom: 24px;
  white-space: pre;
}

.inline-code {
  background: #f1f1f1;
  color: #d6336c;
  font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline;
}
.blog-hero {
  background-color: #dcdcdc;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 58px;
}

.blog-hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-hero p {
  font-size: 20px;
  color: #333;
  margin-bottom: 0;
}

/* 2. Category Navigation */
.category-nav {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.category-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.category-list li {
  margin: 0 10px;
}

.category-list a {
  display: inline-block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.category-list a:hover {
  background-color: #f1f1f1;
}

.category-list a.active {
  background-color: #333;
  color: #fff;
}

/* 3. Main Content Area */
.main-content {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
} */

.col-lg-8 {
  width: 66.66666%;
  padding: 0 15px;
}

.col-lg-4 {
  width: 33.33333%;
  padding: 0 15px;
}

.col-md-12 {
  width: 100%;
  padding: 0 15px;
  margin-top: 20px;
}

/* 4. Blog Posts */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.blog-post-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post-card:hover .post-image img {
  transform: scale(1.1);
}

.category-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: #fdcb6e;
  color: #333;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.post-content {
  padding: 25px;
}

.post-content h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 15px;
}

.post-content h2 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-content h2 a:hover {
  color: #fdcb6e;
}

.post-excerpt {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  margin: 10px;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: #fdcb6e;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* 5. Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pagination a.active {
  background-color: #fdcb6e;
  color: #333;
}

.pagination a:hover {
  background-color: #333;
  color: #fff;
}

.pagination a.next {
  font-size: 12px;
}

/* 6. Sidebar */
.sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #fdcb6e;
}

/* About Widget */
.about-content {
  text-align: center;
}

.about-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
}

.sidebar-links a {
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.sidebar-links a:last-child {
  border-bottom: none;
}

.sidebar-links a:hover {
  color: #fdcb6e;
}

/* Featured Posts Widget */
.featured-post {
  padding: 15px 0;
  border-bottom: 1px solid #f1f1f1;
}

.featured-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.featured-post h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.4;
}

.featured-post h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-post h4 a:hover {
  color: #fdcb6e;
}

.featured-post p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* 7. Responsive Design */
@media (max-width: 991px) {

  .col-lg-8,
  .col-lg-4 {
    width: 100%;
  }

  .sidebar {
    margin-top: 50px;
    position: static;
  }
}

@media (max-width: 767px) {
  .blog-hero h1 {
    font-size: 36px;
  }

  .blog-hero p {
    font-size: 16px;
  }

  .blog-posts {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-post-card {
    max-width: 100%;
    /* width: 200% !IMPORTANT; */
  }

  .post-content h2 {
    font-size: 16px;
  }

  .post-excerpt {
    font-size: 13px;
  }

  .category-list li {
    margin: 5px;
  }

  .category-list a {
    padding: 6px 12px;
    font-size: 14px;
  }

  /* Fix para cards na home também */
  .blog-card {
    max-width: 100%;
  }

  .blog-card-title {
    font-size: 18px;
  }

  .blog-card-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 60px 0;
  }

  .blog-hero h1 {
    font-size: 28px;
  }

  .main-content {
    padding: 40px 0;
  }

  .post-content {
    padding: 20px;
  }

  .sidebar-widget {
    padding: 20px;
  }
}

/* Additional Fixes */
.category-list a,
.post-content h2 a,
.blog-card-title,
.sidebar-links a,
.featured-post h4 a,
.recent-post a {
  text-decoration: none !important;
}

.category-list a:hover,
.post-content h2 a:hover,
.sidebar-links a:hover,
.featured-post h4 a:hover,
.recent-post a:hover {
  text-decoration: none !important;
}

/* Blog Card Styling */
.blog-card-title {
  color: #333;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-card-title:hover {
  color: #fdcb6e;
}

/* Search Form Improvements */
#blog-search-form input {
  border: 1px solid #ddd;
  transition: border-color 0.3s;
}

#blog-search-form input:focus {
  outline: none;
  border-color: #fdcb6e;
}

#blog-search-form button:hover {
  background: #f1b94e;
}

/* Post Page Sidebar Improvements */
.sidebar-block {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-block h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #fdcb6e;
}

/* Categories List */
.categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories li {
  border-bottom: 1px solid #f1f1f1;
}

.categories li:last-child {
  border-bottom: none;
}

.categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.categories a:hover {
  color: #fdcb6e;
}

.categories span {
  background: #f1f1f1;
  color: #666;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

/* Recent Posts in Sidebar */
.recent-post-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f1;
}

.recent-post-item:last-child {
  border-bottom: none;
}

.recent-post-item img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post-info {
  flex: 1;
}

.recent-post-info h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.recent-post-info h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.recent-post-info h4 a:hover {
  color: #fdcb6e;
}

.recent-post-info span {
  font-size: 12px;
  color: #999;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-block;
  padding: 6px 14px;
  background: #f1f1f1;
  color: #666;
  text-decoration: none;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s;
}

.tag-cloud a:hover {
  background: #fdcb6e;
  color: #333;
}

/* Search Form in Post Page */
.search-form {
  position: relative;
}

.search-form .form-group {
  position: relative;
  margin: 0;
}

.search-form input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.search-form input:focus {
  outline: none;
  border-color: #fdcb6e;
}

.search-form .search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #fdcb6e;
  border: none;
  color: #333;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-form .search-btn:hover {
  background: #f1b94e;
}

/* Newsletter Form */
.newsletter-form {
  margin: 0;
}

.newsletter-form .form-group {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #fdcb6e;
}

.newsletter-form .button {
  background: #fdcb6e;
  color: #333;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
}

.newsletter-form .button:hover {
  background: #f1b94e;
}

/* Social Share Buttons */
.social-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-share a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s;
}

.social-share a:hover {
  transform: translateY(-3px);
}

.social-share .facebook {
  background: #3b5998;
}

.social-share .twitter {
  background: #1da1f2;
}

.social-share .linkedin {
  background: #0077b5;
}

.social-share .whatsapp {
  background: #25d366;
}

.social-share .telegram {
  background: #0088cc;
}

/* Post Article Styling */
.post-article {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 25px;
}

.post-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 20px;
}

.post-meta-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.post-meta-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta-info i {
  color: #fdcb6e;
}

.post-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.post-category {
  background: #fdcb6e;
  color: #333;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.featured-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 30px;
  max-height: 450px;
  object-fit: cover;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.post-content h2 {
  font-size: 26px;
  font-weight: 600;
  color: #333;
  margin-top: 35px;
  margin-bottom: 18px;
}

.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 20px 0;
}

.post-content blockquote {
  border-left: 4px solid #fdcb6e;
  padding: 15px 20px;
  margin: 25px 0;
  background: #f9f9f9;
  font-style: italic;
  color: #666;
}

.post-content a {
  color: #fdcb6e;
  text-decoration: underline;
}

.post-content a:hover {
  color: #f1b94e;
}

.post-tags {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #f1f1f1;
}

.post-tags h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.tags-cloud {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Hero Section for Post Page */
.hero-wrap {
  background-size: cover;
  background-position: center;
  padding: 80px 0 60px;
  position: relative;
}

.hero-wrap .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-wrap .container {
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  font-size: 14px;
  color: #fff;
  margin-bottom: 15px;
}

.breadcrumbs a {
  color: #fdcb6e;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs i {
  margin: 0 8px;
  font-size: 12px;
}

.bread {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

/* Loading Spinner */
.loading {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  border: 4px solid #f1f1f1;
  border-top: 4px solid #fdcb6e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.error-message h2 {
  color: #333;
  margin-bottom: 15px;
}

.error-message p {
  color: #666;
  margin-bottom: 25px;
}

/* Responsive Adjustments for Post Page */
@media (max-width: 991px) {
  .post-article {
    padding: 30px 25px;
  }

  .post-title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .post-article {
    padding: 25px 20px;
  }

  .post-title {
    font-size: 22px;
  }

  .post-content {
    font-size: 15px;
  }

  .post-content h2 {
    font-size: 22px;
  }

  .post-content h3 {
    font-size: 19px;
  }

  .hero-wrap {
    padding: 60px 0 40px;
  }

  .bread {
    font-size: 28px;
  }
}

/* Additional Responsive Fixes */
@media (max-width: 991px) {
  .glitch-container-profile {
    width: 300px !important;
    height: 300px !important;
    margin-bottom: 20px;
  }

  #about .row {
    flex-direction: column;
  }

  /* Imagem da segunda seção about */
  .glitch-container {
    max-width: 300px !important;
    margin: 0 auto;
  }

  .glitch-container img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .logo-footer {
    width: 300px !important;
  }

  .glitch-container-profile {
    width: 150px !important;
    height: 150px !important;
  }

  .glitch-container-profile .glitch-image-profile,
  .glitch-container-profile .glitch-layer-1-profile,
  .glitch-container-profile .glitch-layer-2-profile {
    width: 100% !important;
    height: 100% !important;
  }

  .glitch-container {
    max-width: 250px !important;
  }

  .contact-section .row {
    flex-direction: column;
  }

  .contact-section .col-2 {
    width: 100%;
    margin-bottom: 20px;
  }

  #contact-form {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .logo-footer {
    width: 250px !important;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 15px;
  }

  .glitch-container-profile {
    width: 120px !important;
    height: 120px !important;
  }

  .glitch-container-profile .glitch-image-profile,
  .glitch-container-profile .glitch-layer-1-profile,
  .glitch-container-profile .glitch-layer-2-profile {
    width: 100% !important;
    height: 100% !important;
  }

  .glitch-container {
    max-width: 200px !important;
  }

  .blog-card-title {
    font-size: 16px;
  }

  .post-content h2 {
    font-size: 15px;
  }
}