/* Custom CSS styles for MK Success Point */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-in-out;
}

/* Additional styles for hover effects */
.course-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Custom button styles */
.btn-primary {
    background-color: #1E40AF;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1E3A8A;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom section divider */
.section-divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(to right, #1E40AF, #60A5FA);
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

/* Testimonial card styles */
.testimonial-card {
    position: relative;
    overflow: hidden;
    border-left: 4px solid #3B82F6;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #f8fafc, #eff6ff);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 100px;
    opacity: 0.1;
    font-family: serif;
    color: #1E40AF;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.1);
}

/* Add a quote style to testimonial text */
.testimonial-card p.italic {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.7;
}

.testimonial-card p.italic::before {
    content: "";
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 2rem;
    color: #3B82F6;
    font-family: serif;
}

/* Style for the student image */
.testimonial-card img {
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover img {
    transform: scale(1.05);
}

/* Enhanced testimonial slider styles */
.testimonial-slider {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-slide {
    transition: all 0.5s ease;
}

.testimonial-prev,
.testimonial-next {
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.testimonial-dots {
    margin-top: 1.5rem;
}

.testimonial-dot {
    transition: all 0.3s ease;
    transform: scale(1);
}

.testimonial-dot:hover {
    transform: scale(1.2);
}

.testimonial-dot.active {
    transform: scale(1.3);
}

/* Fade-in animation for testimonials */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-slide:not(.hidden) {
    animation: fadeInSlide 0.7s ease-out;
}

/* Add a subtle pattern background to the testimonial section */
#success-stories {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%233b82f6' fill-opacity='0.05' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

/* Custom form input focus styles */
input:focus, 
textarea:focus, 
select:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Image hover effects */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Stats counter animation */
.counter-value {
    font-weight: bold;
    font-size: 2.5rem;
    color: #1E40AF;
}

/* Timeline style for success stories */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #3B82F6;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #3B82F6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .counter-value {
        font-size: 1.75rem;
    }
}

/* Animation for numbers counting */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-count {
    animation: countUp 1s ease-out forwards;
}

/* Custom styles for the navbar when fixed */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(30, 58, 138, 0.95);
    transition: all 0.3s ease;
}

/* Footer link hover effect */
.footer-link {
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
} 