.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #fff;
    background-color: transparent;
    text-align: center;
}

.blog-header h1 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 10px;
}

.blog-header p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2em;
    color: #ccc;
}

.blog-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Základní vzhled karty */
.blog-card {
    background-color: #2b2b2b;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    transition: transform 0.3s;
    margin: 0 auto;
    text-align: center;
}

.blog-card:hover {
    transform: scale(1.03);
}

.blog-card img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 10px 10px 0 0;
}

.blog-content {
    padding: 15px;
    text-align: center;
}

.blog-content h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.blog-content p {
    font-size: 1em;
    color: #bbb;
}

/* MODERNÍ TLAČÍTKO CTA */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-top: 15px;
    background: linear-gradient(135deg, #00adee, #007bff);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 173, 238, 0.2);
    font-size: 1em;
}

.cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.cta:hover {
    background: linear-gradient(135deg, #007bff, #00adee);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 173, 238, 0.4);
}

.cta:hover svg {
    transform: translateX(4px);
}

/* Šipka vlevo */
.cta.back svg {
    transform: rotate(180deg);
}

.cta.back:hover svg {
    transform: rotate(180deg) translateX(4px);
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .blog-card {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .blog-card {
        width: calc(50% - 30px);
    }
}

@media (min-width: 1200px) {
    .blog-card {
        width: calc(33.333% - 30px);
    }
}

.related-carousel {
    margin-top: 60px;
    text-align: center;
}

.related-carousel h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
}

.carousel-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-card {
    flex: 0 0 auto;
    width: 240px;
    background: #2b2b2b;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    scroll-snap-align: start;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.carousel-card img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-card h3 {
    font-size: 16px;
    margin-top: 10px;
    color: #fff;
}

.glide {
  max-width: 1200px;
  margin: 60px auto;
  position: relative;
}

.glide__track {
  overflow: visible;
}

.glide__slides {
  display: flex;
  align-items: center;
}

.glide__slide {
  background-color: #2b2b2b;
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s;
  max-width: 350px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.glide__slide:hover {
  transform: scale(1.03);
}

.glide__slide img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.glide__slide h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.glide__slide p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.glide__slide a.cta {
  display: inline-block;
  padding: 8px 16px;
  background-color: #00adee;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
}

.glide__arrows {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.glide__arrow {
  background: none;
  border: 2px solid #00adee;
  color: #00adee;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.glide__arrow:hover {
  background-color: #00adee;
  color: #fff;
}

@media (max-width: 768px) {
  .glide__slide {
    max-width: 90%;
  }
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: 10px 14px;
    background: #2b2b2b;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.pagination a:hover {
    background: #00adee;
    transform: translateY(-2px);
}

.pagination a.active {
    background: linear-gradient(135deg, #00adee, #007bff);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 173, 238, 0.3);
}

.pagination a.arrow {
    font-size: 1.2em;
    padding: 10px 16px;
    background: #1a1a1a;
}

/* ✅ OPRAVA: Zabraň výskytu šipek uvnitř článků */
.blog-card .arrow {
    display: none !important;
}
.blog-search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
}

#searchInput {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    font-size: 16px;
    background: #222;
    color: #fff;
}

#autocompleteList {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #333;
    z-index: 10;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    color: #fff;
    border-top: 1px solid #444;
}

.autocomplete-item:hover {
    background: #444;
}