/* सभी शॉर्टकोड को बीच में करने के लिए */
.shortcode-recent-posts-box,
.shortcode-category-posts-box,
.shortcode-recent-posts-carousel,
.shortcode-recent-posts-slider,
.shortcode-category-posts-slider {
    margin: 15px auto !important;
    display: block !important;
    text-align: center !important;
}

/* [recentposts] */
.shortcode-recent-posts-box {
    width: 90% !important;
    max-width: 8cm !important;
    height: auto !important;
    min-height: 9cm !important;
    background: #e6f0fa !important;
    border: 2px solid #007bff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 10px !important;
}

.recent-posts-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.recent-post-item {
    display: flex !important;
    align-items: center !important;
    padding: 5px 0 !important;
    border-bottom: 1px dashed #007bff !important;
    transition: background 0.3s ease, transform 0.3s ease !important; /* स्मूथ ट्रांज़िशन के लिए transform जोड़ा */
}

.recent-post-item:hover {
    background: rgba(0, 123, 255, 0.1) !important;
    transform: translateY(-2px); /* होवर पर स्मूथ लिफ्ट इफेक्ट */
}

.recent-post-item:last-child {
    border-bottom: none !important;
}

.shortcode-img {
    width: 1.5cm !important;
    height: 1.5cm !important;
    object-fit: cover !important;
    border-radius: 5px !important;
    margin-right: 10px !important;
    border: 1px solid #ddd !important;
    transition: transform 0.3s ease !important; /* style.css की तरह ट्रांज़िशन जोड़ा */
}

.shortcode-img:hover {
    transform: scale(1.1); /* style.css की तरह होवर इफेक्ट जोड़ा */
}

.recent-post-item a {
    font-size: 14px !important;
    color: #1e3c72 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 6cm !important;
    font-weight: bold !important;
    transition: color 0.3s ease !important;
}

.recent-post-item a:hover {
    color: #007bff !important;
}

/* [categoryposts] */
.shortcode-category-posts-box {
    width: 90% !important;
    max-width: 8cm !important;
    height: auto !important;
    min-height: 9cm !important;
    background: #e6f0fa !important;
    border: 2px solid #007bff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 10px !important;
}

/* [recentpostcarousel] */
.shortcode-recent-posts-carousel {
    width: 100% !important;
    max-width: 800px !important;
    height: auto !important;
    background: #e6f0fa !important;
    border: 2px solid #007bff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 10px !important;
    overflow: hidden !important;
}

.carousel-group {
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
    height: 300px !important;
}

.carousel-post {
    flex: 1 !important;
    text-align: center !important;
    position: relative !important;
    transition: transform 0.3s ease !important; /* style.css की तरह ट्रांज़िशन जोड़ा */
}

.carousel-post:hover {
    transform: scale(1.02); /* होवर पर स्मूथ स्केल इफेक्ट */
}

.carousel-post img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 5px !important;
    border: 1px solid #007bff !important;
}

.carousel-post .carousel-caption {
    position: absolute !important;
    bottom: 0 !important;
    background: rgba(0, 123, 255, 0.6) !important;
    padding: 8px !important;
    border-radius: 0 0 5px 5px !important;
    width: 100% !important;
}

.carousel-post .carousel-caption a {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    display: block !important;
    transition: color 0.3s ease !important;
}

.carousel-post .carousel-caption a:hover {
    color: #ffeb3b !important;
}

.carousel-control-prev, .carousel-control-next {
    width: 5% !important;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: #007bff !important;
    border-radius: 50% !important;
}

/* [recentpostsslider] और [categorypostslider] */
.shortcode-recent-posts-slider, .shortcode-category-posts-slider {
    width: 90% !important;
    max-width: 8cm !important;
    height: auto !important;
    min-height: 9cm !important;
    background: #e6f0fa !important;
    border: 2px solid #007bff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 10px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
}

.slider-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
}

.slider-item {
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px !important;
    border: 1px dashed #007bff !important;
    border-radius: 5px !important;
    transition: background 0.3s ease, transform 0.3s ease !important; /* स्मूथ ट्रांज़िशन के लिए transform जोड़ा */
    flex: 0 0 auto !important;
    width: 33% !important;
}

.slider-item:hover {
    background: rgba(0, 123, 255, 0.1) !important;
    transform: translateY(-2px); /* होवर पर स्मूथ लिफ्ट इफेक्ट */
}

.slider-item img {
    width: 1.5cm !important;
    height: 1.5cm !important;
    object-fit: cover !important;
    border-radius: 5px !important;
    margin-right: 10px !important;
    border: 1px solid #ddd !important;
    transition: transform 0.3s ease !important; /* style.css की तरह ट्रांज़िशन जोड़ा */
}

.slider-item img:hover {
    transform: scale(1.1); /* style.css की तरह होवर इफेक्ट जोड़ा */
}

.slider-item a {
    font-size: 12px !important;
    color: #1e3c72 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 3cm !important;
    font-weight: bold !important;
    transition: color 0.3s ease !important;
}

.slider-item a:hover {
    color: #007bff !important;
}

/* रेस्पॉन्सिव डिज़ाइन */
@media (max-width: 768px) {
    .shortcode-recent-posts-box,
    .shortcode-category-posts-box,
    .shortcode-recent-posts-carousel,
    .shortcode-recent-posts-slider,
    .shortcode-category-posts-slider {
        width: 95% !important;
        max-width: 100% !important;
        min-height: 6cm !important;
    }

    .recent-post-item a,
    .slider-item a {
        font-size: 12px !important;
        max-width: 4cm !important;
    }

    .carousel-group {
        height: 200px !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .carousel-post {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .carousel-post img {
        height: 150px !important;
    }

    .carousel-post .carousel-caption a {
        font-size: 14px !important;
    }

    .slider-item {
        width: 50% !important;
    }
}

@media (max-width: 576px) {
    .shortcode-recent-posts-box,
    .shortcode-category-posts-box,
    .shortcode-recent-posts-carousel,
    .shortcode-recent-posts-slider,
    .shortcode-category-posts-slider {
        min-height: 5cm !important;
        padding: 5px !important;
    }

    .recent-post-item a,
    .slider-item a {
        font-size: 10px !important;
        max-width: 3cm !important;
    }

    .shortcode-img,
    .slider-item img {
        width: 1.2cm !important;
        height: 1.2cm !important;
        margin-right: 5px !important;
    }

    .carousel-post img {
        height: 120px !important;
    }

    .carousel-post .carousel-caption a {
        font-size: 12px !important;
    }

    .slider-item {
        width: 70% !important;
    }
}