/* Custom Blog Widget Styles - Version 2.0 with Animation Controls */

.custom-blog-widget {
    width: 100%;
    position: relative;
}

/* Animation Control Classes - All animations disabled */
.header-subtitle,
.header-title {
    animation: none !important;
}

.swiper-slide {
    animation: none !important;
    opacity: 1 !important;
}

/* Header Styles */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content {
    flex: 1;
    min-width: 200px;
}

.header-subtitle {
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
}

.header-title {
    margin: 0;
    line-height: 1.2;
}

.header-arrows {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Custom Navigation Arrows */
.custom-swiper-button-prev,
.custom-swiper-button-next {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ED005345;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    user-select: none;
    position: relative;
    color: inherit;
    transition: all 0.3s ease;
}

.custom-swiper-button-prev svg,
.custom-swiper-button-next svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.custom-swiper-button-prev.swiper-button-disabled,
.custom-swiper-button-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Slider Container */
.blog-posts-slider {
    position: relative;
    padding-bottom: 50px;
    overflow: visible;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    opacity: 1;
}

/* Blog Post Box Styles */
.blog-post-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Image Styles */
.blog-post-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.blog-post-image a {
    display: block;
    position: relative;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Image Overlay - Removed */
.image-overlay {
    display: none !important;
}

/* Content Styles */
.blog-post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.blog-post-title {
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-size: 22px;
    transition: color 0.3s ease;
}

.blog-post-title a {
    text-decoration: none;
    background: linear-gradient(to right, currentColor 0%, currentColor 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.custom-blog-widget.has-title-underline .blog-post-title a:hover {
    background-size: 100% 2px;
}

.custom-blog-widget:not(.has-title-underline) .blog-post-title a {
    background: none !important;
}

/* Meta Information Styles */
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
    opacity: 1;
}

.blog-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.blog-post-meta span:hover {
    color: #333;
}

.blog-post-meta i {
    font-size: 14px;
}

/* Categories and Tags */
.meta-categories,
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.meta-categories .category,
.meta-tags .tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
}

.blog-post-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #999898;
    flex: 1;
}

/* Button Styles */
.blog-post-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: #ed00536e;
    color: #fff;
    text-decoration: none;
    border-radius: 0px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    border: 1px solid #FFF;
}

.custom-blog-widget.has-button-shine .blog-post-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #ed00536e;
    transition: left 0.6s;
}

.custom-blog-widget.has-button-shine .blog-post-button:hover::before {
    left: 100%;
}

.blog-post-button:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.blog-post-button i {
    transition: transform 0.3s ease;
}

.blog-post-button:hover i {
    transform: translateX(3px);
}

/* Pagination Styles */
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 30px;
    border-radius: 5px;
}

/* Animation Effects for Different Slider Types */
.swiper-fade .swiper-slide {
    opacity: 0 !important;
}

.swiper-fade .swiper-slide-active {
    opacity: 1 !important;
}

.swiper-cube .swiper-slide {
    transform-origin: center center;
}

.swiper-coverflow .swiper-slide {
    transform-origin: center center;
}

.swiper-flip .swiper-slide {
    transform-origin: center center;
}

/* Creative Effect Styles */
.swiper-creative .swiper-slide {
    overflow: visible;
}

/* Animations - Removed */

/* Loading State - Removed */

/* No Posts Found */
.no-posts-found {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    color: #666;
    font-size: 18px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .widget-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-arrows {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .blog-post-title {
        font-size: 18px;
    }
    
    .blog-post-meta {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .custom-swiper-button-prev,
    .custom-swiper-button-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .blog-post-button {
        width: 100%;
        justify-content: center;
    }
}

/* Grid Mode Styles */
.custom-blog-widget.blog-grid-mode .blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.custom-blog-widget.blog-grid-mode .blog-grid-item {
    width: 100%;
    height: auto;
}

/* Load More Button Styles */
.blog-load-more-wrapper {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.blog-load-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background-color: #ed00536e;
    color: #fff;
    border: 1px solid #FFF;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-load-more-button:hover {
    background-color: #a68d6a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(185, 157, 117, 0.3);
}

.blog-load-more-button:disabled,
.blog-load-more-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.blog-load-more-button .button-text,
.blog-load-more-button .button-loading {
    display: inline-block;
}

.no-more-posts {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .custom-blog-widget.blog-grid-mode .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-blog-widget.blog-grid-mode .blog-posts-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px;
    }
    
    .blog-load-more-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .custom-blog-widget {
    min-height: 300px;
}

.elementor-editor-active .blog-posts-slider {
    min-height: 400px;
}

.elementor-editor-active .blog-posts-grid {
    min-height: 400px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .blog-post-box {
            height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    }
    
    .blog-post-description {
        color: #b0b0b0;
    }
    
    .blog-post-meta {
        color: #888;
    }
    
    .custom-swiper-button-prev,
    .custom-swiper-button-next {
        background: rgba(50, 50, 50, 0.9);
        color: #fff;
    }
}
