/* 
   Student Success Stories 3D Coverflow Slider Styles
   Smile Career Consultancy - Premium Rebranding
*/

/* 1. Section Base Layout */
.student-success-section {
    background-color: #ffffff;
    padding-top: 90px;
    padding-bottom: 90px;
    width: 100%;
}

/* Fade up on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Statistics Styling */
.stat-card {
    background: #f8fafc;
    border: 1px solid rgba(241, 245, 249, 0.8);
    border-radius: 1.5rem; /* 24px */
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
}

.stat-number {
    font-variant-numeric: tabular-nums;
}

/* 3. Swiper Slider & Slide Heights */
.success-swiper {
    height: 700px;
    position: relative;
}

.success-slide {
    width: 380px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. Card Design */
.success-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.15);
    transform: translate3d(0, 0, 0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.success-image {
    width: 100%;
    height: 100%;
    object-cover: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Darken adjacent slides via overlay */
.swiper-slide-active .success-image {
    filter: brightness(1);
}

.swiper-slide:not(.swiper-slide-active) .success-card {
    filter: brightness(0.85);
}

/* Gradient Overlay at Bottom */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.75) 35%,
        rgba(15, 23, 42, 0.15) 70%,
        rgba(15, 23, 42, 0.0) 100%
    );
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Glassmorphism content panel inside bottom overlay */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

/* 5. Badge Colors */
.badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 9999px;
    color: #ffffff;
    margin-bottom: 12px;
}

.badge-mbbs { background-color: #2563eb; } /* Blue */
.badge-bds { background-color: #0d9488; } /* Teal */
.badge-bams { background-color: #059669; } /* Emerald */
.badge-bhms { background-color: #10b981; } /* Mint/Sage */
.badge-nursing { background-color: #db2777; } /* Pink */
.badge-pharmacy { background-color: #7c3aed; } /* Purple */
.badge-physiotherapy { background-color: #0891b2; } /* Cyan */
.badge-veterinary { background-color: #d97706; } /* Amber */
.badge-engineering { background-color: #4f46e5; } /* Indigo */
.badge-mba { background-color: #1e293b; } /* Navy */
.badge-bba { background-color: #ea580c; } /* Orange */
.badge-abroad { background-color: #d97706; border: 1px solid rgba(255,255,255,0.2); } /* Gold */

/* Student text stylings */
.student-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.2;
}

.college-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 12px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating {
    color: #fbbf24; /* Amber star color */
    font-size: 0.95rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.read-story-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8; /* Sky color */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.read-story-btn:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* 6. Card Hover Effects */
.success-card:hover {
    box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.35), 0 12px 18px -6px rgba(15, 23, 42, 0.3);
    cursor: pointer;
}

.success-card:hover .success-image {
    transform: scale(1.06);
}

.success-card:hover .card-content {
    background: rgba(15, 23, 42, 0.65);
    border-top-color: rgba(255, 255, 255, 0.15);
}

.success-card:hover .read-story-btn {
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* 7. Swiper Nav Buttons & Pagination dots styling */
.slider-nav-btn {
    color: #0284c7 !important; /* Sky-600 */
    background: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.slider-nav-btn::after {
    font-size: 18px !important;
    font-weight: 900;
}

.slider-nav-btn:hover {
    background-color: #0284c7;
    color: #ffffff !important;
    transform: scale(1.05);
}

.swiper-button-prev.slider-nav-btn {
    left: 20px;
}

.swiper-button-next.slider-nav-btn {
    right: 20px;
}

.slider-pagination-dots {
    bottom: -5px !important;
}

.slider-pagination-dots .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}

.slider-pagination-dots .swiper-pagination-bullet-active {
    background: #0284c7;
    width: 24px;
    border-radius: 5px;
}

/* 8. Mobile Responsiveness */
@media (max-width: 768px) {
    .student-success-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .success-swiper {
        height: 580px;
    }
    
    .success-slide {
        width: 310px;
        height: 460px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .student-name {
        font-size: 1.15rem;
    }
    
    .slider-nav-btn {
        display: none !important; /* Hide arrows on mobile */
    }
}
