:root {
    --primary: #3a0ca3;
    --secondary: #4361ee;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4bb543;
    --warning: #ffcc00;
    --danger: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
    color: #333;
    padding-top: 80px;  /* 👈 ye line header ke niche extra space banata hai */
}


.navbar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section {
    background: linear-gradient(rgba(58, 12, 163, 0.8), rgba(67, 97, 238, 0.8)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-top: -80px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.course-card {
    height: 100%;
}

.dashboard-card {
    height: 100%;
    text-align: center;
    padding: 20px;
}

.dashboard-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
}

.module-section {
    padding: 60px 0;
    background: white;
}

.module-section:nth-child(even) {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto;
    border-radius: 2px;
}

.role-card {
    text-align: center;
    padding: 30px 20px;
}

.role-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Dashboard Styles */
.dashboard-sidebar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    min-height: 100vh;
    padding: 20px 0;
}

.dashboard-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    margin: 5px 0;
    border-radius: 5px;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dashboard-content {
    padding: 20px;
}

.stats-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stats-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Table Styles */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table th {
    background: var(--primary);
    color: white;
}

/* Form Styles */
.form-control {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #e1e5eb;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(76, 201, 240, 0.25);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    body {
        padding-top: 70px;
    }
    
    .dashboard-sidebar {
        min-height: auto;
    }
}




/* Global Styles */
                
       
        .text-center {
            text-align: center;
        }
        
        .section-heading {
            text-align: center;
            margin-bottom: 40px;
        }
        
       
        
 
        
        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            padding: 100px 0;
            text-align: center;
        }
        
        .hero h1 {
            font-size: 3rem;
            margin-bottom: 20px;
            color: white;
        }
        
        .hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 30px;
        }
        
        .hero-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        
        /* Courses Section */
        .course-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .course-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }
        
        .course-card:hover {
            transform: translateY(-5px);
        }
        
        .course-content {
            padding: 25px;
        }
        
        .course-title {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--primary);
        }
        
        .course-duration, .course-instructor {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            color: #64748b;
        }
        
        .course-duration i, .course-instructor i {
            margin-right: 10px;
            color: var(--primary);
        }
        
        /* Academic Classes */
        .academic-classes {
            background: var(--light);
        }
        
        .class-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .class-card {
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        .class-card h3 {
            color: var(--primary);
            margin-bottom: 15px;
        }
        
        .class-subjects {
            color: #64748b;
            margin-bottom: 15px;
        }
        
        .faculty {
            display: flex;
            align-items: center;
            color: var(--dark);
            font-weight: 500;
        }
        
        .faculty i {
            margin-right: 10px;
            color: var(--primary);
        }
        
        /* Notices Section */
        .notices {
            background: white;
        }
        
        .notice-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .notice-card {
            background: var(--light);
            padding: 20px;
            border-radius: 10px;
            border-left: 4px solid var(--primary);
        }
        
        .notice-card h3 {
            color: var(--primary);
            margin-bottom: 10px;
        }
        
        /* Admission Section */
        .admission {
            background: var(--light);
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #cbd5e1;
            border-radius: 5px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }
        
        /* Contact Section */
        .contact-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .contact-item {
            display: flex;
            align-items: flex-start;
        }
        
        .contact-icon {
            font-size: 1.5rem;
            color: var(--primary);
            margin-right: 15px;
            margin-top: 5px;
        }
        
        .contact-details h3 {
            margin-bottom: 5px;
        }
        
        /* --- Footer --- */
footer.footer {
    background-color: #1f2a38;
    color: #cfd8dc;
    padding: 60px 0;
}

footer.footer h4,
footer.footer h5 {
    color: #ffffff;
    font-weight: 600;
}

footer.footer a {
    color: #cfd8dc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer.footer a:hover {
    color: #0d6efd;
}

/* Footer Newsletter */
footer.footer .input-group input {
    border-radius: 10px 0 0 10px;
    border: none;
    padding: 12px 15px;
}

footer.footer .input-group button {
    border-radius: 0 10px 10px 0;
    padding: 12px 20px;
}

/* Social Icons */
footer.footer .social-icons a {
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
    color: #cfd8dc;
    transition: color 0.3s ease;
}

footer.footer .social-icons a:hover {
    color: #0d6efd;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .module-section {
        padding: 40px 15px;
    }
    .module-section .card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .module-section {
        padding: 30px 15px;
    }

    footer.footer .input-group {
        flex-direction: column;
    }

    footer.footer .input-group input,
    footer.footer .input-group button {
        border-radius: 10px;
        margin-bottom: 10px;
        width: 100%;
    }

    footer.footer .social-icons {
        text-align: center;
    }
}
/* Additional responsive styles */
@media (max-width: 768px) {
    .course-cards {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .class-cards {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .course-content {
        padding: 20px !important;
    }
    
    .class-card {
        padding: 20px !important;
    }
    
    .course-title {
        font-size: 1.2rem !important;
    }
    
    .hero-section {
        padding: 120px 0 80px !important;
        margin-top: 56px !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
}

/* Loading animation */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Smooth transitions */
.course-card, .class-card {
    transition: all 0.3s ease-in-out !important;
}

/* Focus states for accessibility */
.btn:focus, .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 201, 240, 0.25) !important;
    border-color: #4cc9f0 !important;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }
}