/* Astrologer Carousel Styling */
.astro-section-wrapper {
    background-color: #fff;
    padding: 60px 0;
}

/* Ensure Owl Stage has no extra padding interference */
#astrologerCarousel .owl-stage-outer {
    padding-top: 10px;
    padding-bottom: 20px;
    /* Space for shadow */
}

.astro-card-modern {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    /* Ensure it fills the Owl Item width fully and correctly */
    width: 100%;
    box-sizing: border-box;
    display: block;
    height: 100%;
    margin: 0 auto;
}

.astro-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

.astro-modern-img-box {
    width: 100%;
    height: 280px;
    /* Increased height to portrait/square ratio to fit headshots */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #f8f8f8;
    position: relative;
}

.astro-modern-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Prioritize top of image (head) */
    transition: transform 0.5s ease;
    display: block;
    /* Remove inline gap */
}

.astro-card-modern:hover .astro-modern-img-box img {
    transform: scale(1.03);
}

.astro-modern-content {
    padding: 5px 0 10px;
}

.astro-modern-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.astro-modern-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.astro-modern-rating i {
    color: #ffc107;
    margin-right: 5px;
    font-size: 14px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .astro-modern-img-box {
        height: 220px;
    }

    .astro-modern-name {
        font-size: 15px;
    }
}