/**
 * Custom Styles for eLearning Home Page
 * Additional styling for the eLearning platform
 */

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

/* Course card hover effects */
.course-card {
	transition: all 0.3s ease;
}

.course-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Category card hover effects */
.category-card {
	transition: all 0.3s ease;
}

.category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Button hover effects */
.btn-primary,
.btn-secondary,
.btn-view-all {
	transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-view-all:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Feature icons animation */
.feature-icon {
	transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
	transform: scale(1.1) rotate(5deg);
}

/* Testimonial cards */
.testimonial-item {
	transition: all 0.3s ease;
}

.testimonial-item:hover {
	background: rgba(255, 255, 255, 0.15) !important;
	transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.elearning-hero-section {
		padding: 60px 0 !important;
	}
	
	.hero-title {
		font-size: 2rem !important;
	}
	
	.hero-subtitle {
		font-size: 1.1rem !important;
	}
	
	.hero-buttons {
		flex-direction: column;
		align-items: center;
	}
	
	.hero-buttons a {
		width: 100%;
		max-width: 300px;
		text-align: center;
	}
	
	.stats-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px !important;
	}
	
	.stat-number {
		font-size: 2rem !important;
	}
	
	.courses-grid,
	.categories-grid,
	.testimonials-grid {
		grid-template-columns: 1fr !important;
	}
	
	.section-title {
		font-size: 2rem !important;
	}
	
	.cta-buttons {
		flex-direction: column;
		align-items: center;
	}
	
	.cta-buttons a {
		width: 100%;
		max-width: 300px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.stats-grid {
		grid-template-columns: 1fr !important;
	}
	
	.stat-number {
		font-size: 1.8rem !important;
	}
}

/* Loading animation for course cards */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.course-card,
.category-card,
.feature-item,
.testimonial-item {
	animation: fadeInUp 0.6s ease-out;
}

/* Print styles */
@media print {
	.elearning-hero-section,
	.elearning-cta-section {
		background: #fff !important;
		color: #000 !important;
	}
}

