/* Custom CSS for Engineering College Website */

:root {
    --primary-color: #0056b3;
    --secondary-color: #dc3545;
    --accent-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #003d82);
    color: white;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-buttons .btn {
    margin: 0.5rem 0.5rem 0.5rem 0;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Page Headers */
.page-header {
    margin-top: 76px;
}

/* Cards */
.feature-card, .program-card, .organization-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

.feature-card:hover, .program-card:hover, .organization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.program-card.detailed .card {
    border-left: 4px solid var(--primary-color);
}

/* Process Steps */
.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Forms */
.registration-form-container, .contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-section {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
}

.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Form Validation Styles */
.was-validated .form-control:valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}

/* Password Strength Indicator */
#passwordStrength .progress-bar {
    transition: width 0.3s ease;
}

.password-strength-text {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Events */
.event-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.event-item:hover {
    background-color: #f8f9fa;
}

.event-date {
    text-align: center;
    margin-right: 1rem;
    min-width: 60px;
}

.event-date .month {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    background: #f8f9fa;
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
}

/* Program Filters */
.program-filters {
    margin-bottom: 2rem;
}

.program-filters .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.program-filters .btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Organization Meta */
.organization-meta .badge {
    margin: 0.2rem;
}

/* Department Cards */
.department-card {
    padding: 2rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.department-card:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.department-card:hover i {
    color: white !important;
}

/* Contact Info */
.contact-item {
    text-align: center;
    padding: 1rem;
}

.contact-item i {
    display: block;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 80px 0;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .program-filters .btn {
        width: 100%;
        margin: 0.2rem 0;
    }
}

/* Accessibility */
.btn:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
    border-color: var(--primary-color);
}

/* Print Styles */
@media print {
    .navbar, .btn, .hero-buttons {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .page-header {
        margin-top: 0;
    }
}
