/**
 * Egns AI Tool Card Slider Style
 * Mobile Fixed: 1 card only.
 * Visit Button: Black & White.
 */

.egns-slider-wrapper {
    position: relative;
    padding-left: 50px;  
    padding-right: 50px; 
}

.egns-ai-tool-slider {
    position: relative;
    padding-bottom: 40px; 
    overflow: hidden;
}

/* Card Container */
.egns-ai-card {
    background-color: var(--white-color, #fff);
    border: 1px solid var(--borderr-color, #EEEEEE);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.egns-ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color, #171717);
}

/* Header */
.egns-card-header { margin-bottom: 15px; }

.egns-card-logo-wrap {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.egns-card-logo {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f8f8f8;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.egns-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.egns-placeholder-logo { font-size: 24px; color: #ccc; }

.egns-card-meta { flex-grow: 1; }

.egns-card-title {
    font-family: var(--font-worksans, sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--title-color, #171717);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.egns-card-title a { color: inherit; text-decoration: none; transition: color 0.3s; }
.egns-card-title a:hover { color: var(--primary-color, #171717); }

.egns-verified-icon { color: #1877F2; font-size: 15px; }

/* Rating Link */
.egns-rating-link { text-decoration: none; color: inherit; display: block; transition: opacity 0.3s; }
.egns-rating-link:hover { opacity: 0.7; }

.egns-card-rating { display: flex; align-items: center; font-size: 13px; cursor: pointer; }
.egns-stars { color: #FFB800; margin-right: 6px; }
.egns-stars i { margin-right: 2px; }
.egns-review-count { color: var(--text-color, #595959); font-family: var(--font-worksans, sans-serif); font-size: 13px; }

/* Info Row */
.egns-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.egns-pricing-badge {
    font-family: var(--font-worksans, sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--title-color, #333);
}

/* Body */
.egns-card-body { margin-bottom: 20px; flex-grow: 1; }
.egns-card-desc {
    font-family: var(--font-worksans, sans-serif);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color, #595959);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tags */
.egns-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.egns-tag {
    font-family: var(--font-worksans, sans-serif);
    font-size: 12px;
    color: #007bff;
    background: #e6f2ff;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

/* Footer */
.egns-card-footer {
    border-top: 1px solid var(--borderr-color, #eee);
    padding-top: 20px;
    margin-top: auto;
}

.egns-btn-group {
    display: flex;
    width: 100%;
}

.egns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: var(--font-worksans, sans-serif);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    border: 1px solid #000; /* Black Border */
}

/* Visit Button: Black & White Style */
.egns-visit-btn {
    background-color: #fff; /* White Background */
    color: #000; /* Black Text */
}

/* Hover Effect: Invert Colors */
.egns-visit-btn:hover {
    background-color: #000; /* Black Background */
    color: #fff; /* White Text */
    border-color: #000;
}

.egns-visit-btn i { margin-left: 6px; }

/* Slider Navigation - Arrow Style */
.egns-slider-arrow-prev,
.egns-slider-arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background-color: #fff;
    border: 1px solid #000; 
    color: #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.egns-slider-arrow-prev:hover,
.egns-slider-arrow-next:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.egns-slider-arrow-prev { left: 0; }
.egns-slider-arrow-next { right: 0; }

/* Pagination */
.egns-slider-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}
.egns-slider-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    border-radius: 50%;
    margin: 0 4px !important;
    transition: all 0.3s;
}
.egns-slider-pagination .swiper-pagination-bullet-active {
    background: #000;
    width: 24px;
    border-radius: 4px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .egns-slider-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    /* Hide arrows on mobile, use dots/swipe */
    .egns-slider-arrow-prev,
    .egns-slider-arrow-next {
        display: none; 
    }
}