/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ff-primary: 'Poppins';
}

body {
    padding: 4em 2em;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--ff-primary), sans-serif;
    width: 100vw;
    justify-content: center;
}

.title {
    padding: 0 4em;
}

.title h1 {
    font-size: 3em;
    color: #333;
    line-height: 0.9em; /* Adjust the value as needed */
    margin: 0 0 0.3em 0;
}

.title p {
    font-size: 1.2em;
    color: #777;
    line-height: 1em; /* Adjust the value as needed */
}

/* Card Grid Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusted card size */
    row-gap: 3rem;
    column-gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 3em auto 1em;
    justify-items: center;
}

/* Card Styles */
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column; /* Ensure proper alignment of content */
    justify-content: space-between;
    width: 90%;
    max-width: 15rem;
    height: auto;
    max-height: 28rem;
}

.card img {
    width: 100%;
    height: 24rem; /* Image height relative to the card */
    object-fit: cover; /* Ensures the image covers the area without stretching */
    display: block;
    transition: transform 0.3s ease-in-out;
    aspect-ratio: 3 / 4; /* Ensures that all images have the same aspect ratio */
}

.card-content {
    padding: 0.7em;
    text-align: center;
    height: 20%; /* Content height relative to the card */
    overflow: hidden; /* Prevent content overflow */
}

.card h2 {
    font-size: 14px;
    margin-bottom: 0.4em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    font-size: 11px;
    color: #777;
    margin: -0.4em;
}

/* Card Hover Effects */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img:hover {
    transform: scale(1.05);
}

/* Footer Styles */
footer {
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #777;
    font-size: 0.9em;
    user-select: none;  /* Prevents text selection */
    pointer-events: none;  /* Prevents any interactions, like click or hover */
}