/* Advanced Related Posts Carousel Styles */

.arpc-wrapper {
    margin: 40px 0;
    padding: 20px 0 !important;
    width: 100%;
    overflow: hidden;
}

.arpc-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
}

.arpc-swiper {
    position: relative;
    padding: 50px !important;
    width: 100%;
}

/* Fix for Elementor container */
.elementor-widget-container .arpc-swiper {
    width: 100% !important;
}

.swiper-wrapper {
    width: 100%;
}

.arpc-card {
    background: #fff;
    border-style: solid;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 400px !important;
    max-width: 300px !important;
    display: flex;
    flex-direction: column;
}

.arpc-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.arpc-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.arpc-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.arpc-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.arpc-post-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.arpc-categories {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.arpc-category-badge {
    font-size: 12px;
    padding: 4px 12px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.arpc-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 15px;
}

.arpc-author::before {
    content: "👤 ";
}

.arpc-date::before {
    content: "📅 ";
}

/* Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Card Style 1 - Classic */
.arpc-card-style1 .arpc-card {
    /* Default style */
}

/* Card Style 2 - Modern Overlay */
.arpc-card-style2 .arpc-image-wrapper {
    position: relative;
}

.arpc-card-style2 .arpc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
    color: #fff;
}

.arpc-card-style2 .arpc-post-title {
    color: #fff !important;
}

.arpc-card-style2 .arpc-card-link {
    position: relative;
}

/* Card Style 3 - Minimal */
.arpc-card-style3 .arpc-card {
    border: none !important;
    border-bottom: 3px solid #007bff !important;
}

.arpc-card-style3 .arpc-image {
    border-radius: 8px 8px 0 0;
}

/* Card Style 4 - Thumbnail Left */
.arpc-card-style4 .arpc-card-link {
    flex-direction: row;
}

.arpc-card-style4 .arpc-image-wrapper {
    width: 140px;
    flex-shrink: 0;
}

.arpc-card-style4 .arpc-image {
    height: 100%;
    min-height: 180px;
}

.arpc-card-style4 .arpc-content {
    flex: 1;
}

/* Card Style 5 - Magazine */
.arpc-card-style5 .arpc-card {
    position: relative;
}

.arpc-card-style5 .arpc-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, transparent 50%);
}

/* Category Badge Styles */
.arpc-cat-style1 .arpc-category-badge {
    border-radius: 20px;
}

.arpc-cat-style2 .arpc-category-badge {
    border-radius: 0;
}

.arpc-cat-style3 .arpc-category-badge {
    background: transparent !important;
    border: 2px solid;
    border-color: inherit;
}

.arpc-cat-style4 .arpc-category-badge {
    background: transparent !important;
    border-bottom: 2px solid;
    border-radius: 0;
    padding: 2px 0;
}

.arpc-cat-style5 .arpc-category-badge {
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.arpc-cat-style6 .arpc-category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 20px;
}

.arpc-cat-style7 .arpc-category-badge::before {
    content: '● ';
    margin-right: 4px;
}

/* Hover Effects */
.arpc-hover-scale .arpc-card:hover {
    transform: scale(1.05);
}

.arpc-hover-tilt .arpc-card:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.arpc-hover-glow .arpc-card:hover {
    box-shadow: 0 0 25px rgba(0,123,255,0.5) !important;
}

.arpc-hover-lift .arpc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.arpc-hover-zoom .arpc-card:hover .arpc-image {
    transform: scale(1.1);
}

.arpc-hover-fade .arpc-card:hover {
    opacity: 0.85;
}

.arpc-hover-slide .arpc-card:hover .arpc-content {
    transform: translateY(-5px);
}

.arpc-hover-border .arpc-card {
    position: relative;
}

.arpc-hover-border .arpc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #007bff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.arpc-hover-border .arpc-card:hover::before {
    opacity: 1;
}

.arpc-hover-shadow .arpc-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.3) !important;
}

.arpc-hover-rotate .arpc-card:hover {
    transform: rotate(2deg);
}

/* Arrow Styles */
.arpc-arrow-rounded .swiper-button-next,
.arpc-arrow-rounded .swiper-button-prev {
    border-radius: 8px;
}

.arpc-arrow-square .swiper-button-next,
.arpc-arrow-square .swiper-button-prev {
    border-radius: 0;
}

.arpc-arrow-circle .swiper-button-next,
.arpc-arrow-circle .swiper-button-prev {
    border-radius: 50%;
}

.arpc-arrow-minimal .swiper-button-next,
.arpc-arrow-minimal .swiper-button-prev {
    background: transparent !important;
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .arpc-swiper {
        padding: 0 40px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
    
    .arpc-title {
        font-size: 24px;
    }
    
    .arpc-card-style4 .arpc-card-link {
        flex-direction: column;
    }
    
    .arpc-card-style4 .arpc-image-wrapper {
        width: 100%;
    }
    
    .arpc-card-style4 .arpc-image {
        height: 200px;
    }
}