/* Blog Article Page Styles */
.blog-article-page {
  overflow-y: auto;
  background-color: #101010;
}

.blog-article-wrapper {
  padding: 170px 0 50px;
  min-height: 100vh;
}

.article-header {
  text-align: center;
  margin-bottom: 50px;
}

.article-header .section-title {
  font-size: 46px;
  margin-bottom: 37px;
}

.article-header .animated-bar {
  background-color: #F5642B;
  height: 4px;
  width: 75px;
  margin: 0 auto;
  position: relative;
}

/* Animated bar animation */
.article-header .animated-bar:before,
.article-header .animated-bar:after {
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-name: barAnimation;
  animation-timing-function: linear;
  background-color: #101010;
  content: '';
  height: 100%;
  position: absolute;
  top: 0;
  width: 4px;
}

.article-header .animated-bar:before {
  left: 0;
}

.article-header .animated-bar:after {
  right: 0;
}

@keyframes barAnimation {
  0% { transform: translateX(0); }
  35% { transform: translateX(35px); }
  65% { transform: translateX(-35px); }
  100% { transform: translateX(0); }
}

.article-date {
  color: #9f9f9f;
  display: block;
  margin-top: 20px;
  font-size: 14px;
}

/* Navbar adjustments for blog pages */
.blog-article-page .navbar {
  background-color: rgba(16, 16, 16, 0.95);
  padding: 15px 30px;
}

.back-to-home {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F5642B;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.back-to-home:hover {
  color: #fff;
  text-decoration: none;
}

.back-to-home i {
  font-size: 20px;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 30px;
}

.breadcrumb-item a {
  color: #F5642B;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.breadcrumb-item a:hover {
  color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #9f9f9f;
}

.breadcrumb-item.active {
  color: #9f9f9f;
}

/* Article content */
.article-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Related articles section */
.related-articles {
  padding: 50px 0;
  background-color: #161616;
  margin-top: 50px;
}

.related-articles h3 {
  color: #fff;
  margin-bottom: 30px;
  text-align: center;
}

.related-articles .single-post {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-articles .single-post:hover {
  transform: translateY(-5px);
}

.related-articles .post-img {
  display: block;
  position: relative;
}

.related-articles .post-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-articles .post-content {
  padding: 20px;
}

.related-articles .content-title {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}

.related-articles .content-title:hover {
  color: #F5642B;
}

/* Footer */
.blog-footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #222;
  color: #9f9f9f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-article-wrapper {
    padding: 120px 0 30px;
  }

  .article-header .section-title {
    font-size: 32px;
  }

  .blog-article-page .navbar {
    padding: 10px 15px;
  }

  /* Zajistit minimální výšku karty pro text */
  .blog-post-row .card {
    min-height: 400px;
  }

  .blog-post-row .card-img {
    min-height: 400px;
    object-fit: cover;
  }

  /* Menší font pro card-text na mobilu */
  .blog-section .card-text {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .blog-post-row .card {
    min-height: 350px;
  }

  .blog-post-row .card-img {
    min-height: 350px;
  }

  .blog-section .card-text {
    font-size: 13px;
    line-height: 1.4;
  }
}
