/*
    Custom CSS for NsP Revúca
    Author: Gemini CLI
*/

:root {
    --primary-color: #0d6efd; /* Bootstrap Primary Blue */
    --secondary-color: #6c757d; /* Bootstrap Secondary Gray */
    --light-gray: #f8f9fa;
    --dark-blue: #012a4a;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f4f7f6;
    color: #333;
}

/* --- Header --- */
.top-bar {
    font-size: 0.9rem;
}
.top-bar a {
    color: var(--dark-blue);
    transition: color 0.3s ease;
}
.top-bar a:hover {
    color: var(--primary-color);
}

.navbar-brand {
    color: var(--dark-blue) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .nav-link {
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--light-gray) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    font-size: 0.95rem;
}

.dropdown-item {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(13, 110, 253, 0.6), rgba(1, 42, 74, 0.8)), url('/assets/img/Zasah-IZS.webp') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 3.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* --- Service Cards --- */
.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card .card-body {
    text-align: center;
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Footer --- */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--primary-color) !important;
}

footer .text-primary {
    color: var(--primary-color) !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .top-bar {
        display: none !important;
    }
}

/* --- Partner Logos --- */
.partner-card {
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.partner-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.partner-card img {
    max-width: 100%;
    max-height: 80px; /* Set a max-height for logos */
    height: auto;
    object-fit: contain; /* Ensure aspect ratio is maintained */
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-card:hover img {
    filter: grayscale(0%);
}