@tailwind base;
@tailwind components;
@tailwind utilities;
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

#hero {
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    #hero {
        height: 70vh;
        min-height: 500px;
    }
}
/* Custom animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Course card hover effect */
.course-card:hover .course-title {
    color: #4f46e5;
}

/* Testimonial card shadow */
.testimonial-card {
    box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.1);
}
/* Button transitions */
.btn-transition {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Form styling */
.form-group {
    transition: all 0.3s ease;
}

.form-group input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.password-requirements li {
    transition: color 0.3s ease;
}

.toggle-password {
    cursor: pointer;
    transition: color 0.2s ease;
}
/* Student Portal Specific */
main {
    transition: margin-left 0.3s;
}

.certificate-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
}

.progress-bar {
    transition: width 1s ease-in-out;
}

.assignment-pill {
    transition: all 0.2s;
}

.assignment-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.student-sidebar ~ main {
    margin-left: 64px;
    padding-top: 60px;
}

@media (min-width: 768px) {
    .student-sidebar ~ main {
        margin-left: 260px;
    }
}

/* Adjust content spacing for all pages */
main {
    padding-top: 60px;
}
/* Hero section overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(124, 58, 237, 0.9) 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* =========================
   Course Card Layout Fixes
   ========================= */
#course-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Ensure all cards have equal height */
.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
}

/* Keep content well spaced and aligned */
.course-card .p-6 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Ensure title doesn’t overflow */
.course-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Optional: Allow multiline truncation if desired */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Consistent image ratio */
.course-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

/* Fix View Details button alignment */
.course-card a {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

/* Slightly larger icon spacing */
.course-card i {
    width: 1rem;
    height: 1rem;
}

/* Make sure description doesn’t overflow */
.course-card p {
    flex-grow: 0;
    margin-bottom: 1rem;
}

.notification-dot {
  width: 0.6rem;
  height: 0.6rem;
  background-color: #ef4444; /* red-500 */
  border-radius: 50%;
  margin-left: 0.5rem;
  display: inline-block;
}
