/* public/css/style.css */

:root {
    --primary-blue: #0d6efd; /* Bootstrap's default blue */
    --primary-dark-blue: #0a58ca;
    --light-blue: #e9f2ff;
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --body-bg: #f0f4f8; /* A very light blue-gray for the background */
}

body {
    background-color: var(--body-bg);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-custom {
    background-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: var(--text-light);
}

.navbar-custom .nav-link:hover {
    color: #cce5ff;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-dark-blue);
    border-color: var(--primary-dark-blue);
}

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,.05);
}

.footer {
    background-color: #343a40;
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Style for flash messages */
.alert-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    width: auto;
}

/* Employee Card Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.employee-card {
    /* Start with hidden state for the animation */
    opacity: 0; 
    animation: fadeInUp 0.5s ease-out forwards;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.employee-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* News Card Title consistency */
.news-card-title {
    height: 3em; /* Fixed height for 2 lines of text */
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem; /* Add some space below title */
}

/* News Card Snippet height consistency */
.news-card-snippet {
    height: 4.5em; /* Fixed height for 3 lines of text */
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem; /* Add some space below snippet */
}

/* Ensure card body pushes content vertically */
.card-body.d-flex.flex-column {
    min-height: 180px; /* Adjust as needed for overall card body height */
    justify-content: space-between;
}

/* Hero Banner Styles */
.hero-banner-wrapper {
    position: relative;
}

.hero-banner {
    transition: transform 0.3s ease;
}

.hero-banner:hover {
    transform: scale(1.01);
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* News Card Styles */
.news-card {
    border-radius: 10px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.news-card .card-image-wrapper:hover img {
    transform: scale(1.1);
}

.news-card .card-title {
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-card .btn-primary {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-card .btn-primary:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Recent News Section */
.recent-news-section {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-banner-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-banner {
        min-height: 400px;
        border-radius: 10px !important;
    }
    
    .hero-content {
        padding: 2rem 1.5rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
    
    .news-card {
        margin-bottom: 1rem;
    }
}

