/* Base Styles */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

/* Typography */
.display-5 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

/* Hero Banner */
.hero-banner {
    padding: 2rem 0;
}

/* Hover Effect */
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-year {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.timeline-content {
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-banner {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-banner img {
        margin-top: 2rem;
    }
}

/* Form Validation */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    z-index: 99;
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: #0b5ed7;
    color: white;
    transform: translateY(-3px);
}

@media (min-width: 1200px) {
    .col-lg-2 {
        flex: 0 0 20%;  /* Default 20% */
    }
    .row.g-4 {
        display: flex;
        flex-wrap: wrap;
    }
    .row > .col-lg-2 {
        max-width: 20%; /* Slightly force the cards into place */
    }
}

