/* Edumarga Custom Styles */

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff751f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffbd59;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Course Card Hover Effect */
.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
}

/* Gradient backgrounds */
.bg-gradient-orange-yellow {
    background: linear-gradient(135deg, #ff751f 0%, #ffbd59 100%);
}

.bg-gradient-blue-purple {
    background: linear-gradient(135deg, #178bce 0%, #7ed957 100%);
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

/* Video iframe responsive */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ff751f;
    box-shadow: 0 0 0 3px rgba(255, 117, 31, 0.1);
}

/* Button transitions */
button,
.btn {
    transition: all 0.3s ease;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Table hover */
table tbody tr:hover {
    background-color: rgba(255, 117, 31, 0.05);
}

/* Custom badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 0.375rem;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .responsive-text-sm {
        font-size: 0.875rem;
    }
}