/* General styles */
    /* Reset margins and padding */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box; /* Include padding and border in element's total width and height */
    }

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column; /* Changed to column for header and footer placement */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0; /* Ensure body has no margin */
    padding: 0; /* Ensure body has no padding */
}


/* Navbar styles */
nav {
    margin-top: 10px; /* Space above the navbar */
}

nav ul {
    display: flex; /* Use flexbox to align items in a row */
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove default padding */
    justify-content: center; /* Center the links horizontally */
}

nav li {
    margin: 0 15px; /* Space between links */
}

nav a {
    color: white; /* Link text color */
    text-decoration: none; /* Remove underline from links */
    font-weight: 500; /* Bold links */
    transition: color 0.3s ease; /* Transition for hover effect */
}

nav a:hover {
    color: #005a99; /* Change color on hover */
}


/* Header styles */
header {
    width: 100%;
    background-color: #007acc; /* Header background color */
    color: white; /* Header text color */
    padding: 15px 20px; /* Padding for header */
    text-align: center; /* Centered text */
    position: sticky; /* Sticky header */
    top: 0; /* Stay at the top */
    z-index: 10; /* Ensure it stays above other elements */
}

/* Footer styles */
footer {
    width: 100%;
    background-color: #007acc; /* Footer background color */
    color: white; /* Footer text color */
    padding: 15px 20px; /* Padding for footer */
    text-align: center; /* Centered text */
}

/* Container to hold the cards */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    width: 100%;
    flex: 1; /* Allow container to grow and take available space */
}

/* Card Styles */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 1rem;
    background-color: white;
    width: 320px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Header with Image */
.header {
    position: relative;
    height: 180px;
}

.header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info section */
.info {
    padding: 1.5rem;
    text-align: center;
}

.title {
    color: rgb(33, 33, 33);
    letter-spacing: 0;
    line-height: 1.375;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Footer with Tags and Button */
.footer {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 140, 255, 0.1);
}

.tag {
    font-weight: 500;
    font-size: 0.85rem;
    color: #007acc;
}

/* Button */
.action {
    user-select: none;
    border: none;
    outline: none;
    padding: 0.75rem 1.25rem;
    background-color: #007acc;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action:hover {
    background-color: #005a99;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%; /* Full width on mobile */
        max-width: 400px;
    }
}
