.btn-default {
    color: white !important;
    border-radius: 30px !important;
}

.in-blog #content p {
    line-height: 1.8 !important;
    margin-bottom: 24px !important;
    color: #333 !important;
    font-size: 16px !important;
}

.in-blog #content h2,
.in-blog #content h3,
.in-blog #content h4 {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    color: #2A0055 !important;
    font-weight: 800 !important;
}

.in-blog #content p a,
.in-blog #content li a {
    color: #FF0055 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    transition: color 0.2s ease !important;
}

.in-blog #content p a:hover,
.in-blog #content li a:hover {
    color: #2A0055 !important;
    text-decoration: none !important;
}

/* ZÁKLADNÍ VZHLED VŠECH OBRÁZKŮ NA BLOGU */
.in-blog #content img {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* ==========================================
   NOVÉ: NÁHLEDOVÉ OBRÁZKY NA TITULNÍ STRANĚ BLOGU 
   ========================================== */
.in-blog #content .news-wrapper .news-item .news-image {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important; /* Sjednotí poměr stran všech obrázků */
    object-fit: cover !important;    /* Obrázek se ořízne tak, aby vyplnil rámeček bez smrsknutí */
    height: auto !important;
    max-height: none !important;
    margin-bottom: 20px !important;
}
/* ========================================== */

.in-blog #content .text>p>img,
.in-blog #content .text>div>img,
.in-blog #content .text>img {
    max-width: 700px !important;
    width: 100% !important;
    height: auto !important;
    margin: 40px auto !important;
    display: block !important;
}

.in-blog #content .gallery-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    margin: 40px 0 !important;
    width: 100% !important;
}

.in-blog #content .gallery-container a {
    display: block !important;
    width: 100% !important;
    height: 250px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    text-decoration: none !important;
}

.in-blog #content .gallery-container a:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.in-blog #content .gallery-container a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .in-blog #content .gallery-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .in-blog #content .gallery-container a {
        height: 150px !important;
    }
}

.in-blog #content .video-container {
    position: relative !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    margin: 0 0 24px 0 !important;
    width: 100% !important;
}

.in-blog #content .video-container iframe,
.in-blog #content .video-container object,
.in-blog #content .video-container embed {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}


.in-blog #content .news-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-top: 30px !important;
}

.in-blog #content .news-wrapper .news-item {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; 
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #f9f9f9 !important; 
    transition: all 0.2s ease !important;
}

.in-blog #content .news-wrapper .news-item:hover {
    box-shadow: 0 10px 30px rgba(42, 0, 85, 0.06) !important;
    transform: translateY(-4px) !important;
}

.in-blog #content .news-wrapper .news-item .news-item-link-img {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
}


.in-blog #content .news-wrapper .news-item .news-image {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important; 
    object-fit: cover !important;     
    border-radius: 0 !important;    
    margin: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    max-height: none !important;
}

.in-blog #content .news-wrapper .news-item h2,
.in-blog #content .news-wrapper .news-item time,
.in-blog #content .news-wrapper .news-item .description {
    padding-left: 25px !important;
    padding-right: 25px !important;
}

.in-blog #content .news-wrapper .news-item h2 {
    padding-top: 25px !important;
    margin-bottom: 10px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    min-height: 52px !important; 
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.in-blog #content .news-wrapper .news-item h2 a {
    color: #2A0055 !important;
    text-decoration: none !important;
}

.in-blog #content .news-wrapper .news-item time {
    color: #6b7280 !important;
    font-size: 13px !important;
    margin-bottom: 15px !important;
    display: block !important;
    font-weight: 500 !important;
}

.in-blog #content .news-wrapper .news-item .description {
    color: #4b5563 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    flex-grow: 1 !important; 
    display: flex !important;
    flex-direction: column !important;
}

.in-blog #content .news-wrapper .news-item .read-more-link {
    display: inline-block !important;
    margin-top: auto !important;
    color: #2A0055 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.in-blog #content .news-wrapper .news-item .read-more-link:hover,
.in-blog #content .news-wrapper .news-item:hover .read-more-link {
    color: #FF0055 !important;
}

.in-blog #content .news-wrapper .news-item:hover .description::after {
    color: #FF0055 !important;
}

@media (max-width: 991px) {
    .in-blog #content .news-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 767px) {
    .in-blog #content .news-wrapper {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 992px) {
    .news-wrapper .news-item {
        width: 100%;
    }
}

.in-blog h1[data-testid="textArticleTitle"] {
   color: #2A0055;
}


@media(min-width: 992px) and (max-width: 1199px){
.in-blog #content .news-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
}
}