/* General Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f8fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto; /* Center the container */
    padding: 20px; /* Add padding on all sides for better spacing */
}

/* Header */
.site-header {
    background: #004080;
    color: #fff;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.site-nav li {
    margin-left: 20px;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

/* Filter Bar */
.filter-bar {
    margin: 20px 0;
    padding: 0 20px; /* Add horizontal padding to align with container */
}

.filter-bar label {
    font-weight: bold;
    margin-right: 10px;
}

.filter-bar select {
    padding: 5px 10px;
    font-size: 16px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default 2 cards per row for mobile */
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 20px; /* Add horizontal padding to align with container */
    box-sizing: border-box;
}

/* Feature Card */
.feature-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Feature Card Image */
.feature-card img.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Feature Card Heading and Paragraph */
.feature-card h3 {
    font-size: 18px;
    margin: 15px 0 10px;
    padding: 0 15px; /* Add padding inside the card for better spacing */
}

.feature-card p {
    font-size: 14px;
    color: #666;
    padding: 0 15px; /* Add padding inside the card for better spacing */
}

/* Footer */
footer {
    background: #004080;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}

/* Media Query for Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 cards per row on desktop */
        width: 100%; /* Ensure it takes full width within the container */
    }

    /* Image adjustments for desktop */
    .feature-card img.feature-image {
        height: 200px; /* Adjust height if needed */
    }
}

/* Media Query for Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on mobile */
        width: 100%; /* Make the grid take the full width of its parent */
        padding: 0; /* Remove extra padding on mobile to utilize full width */
    }

    .feature-card img.feature-image {
        height: auto; /* Allow image height to adjust based on content */
        max-width: 100%; /* Ensure images are responsive */
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .feature-card p {
        font-size: 16px;
    }
}