:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --bg-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --text-color: #343a40;
    --light-text-color: #6c757d;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 100px;
}

.main-header {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    background-color: var(--card-bg-color);
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.main-header h1 { font-size: 2.5rem; color: var(--primary-color); font-weight: 700; }
.main-header p { font-size: 1.1rem; color: var(--light-text-color); max-width: 600px; margin: 0.5rem auto 0; }

.main-nav { 
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
}
.main-nav a { text-decoration: none; color: var(--primary-color); font-weight: 600; font-size: 1rem; padding: 0.5rem 1rem; border-radius: var(--border-radius); transition: background-color 0.3s ease, color 0.3s ease; }
.main-nav a:hover { background-color: #e9ecef; color: var(--secondary-color); }

.search-container { position: relative; max-width: 600px; margin: 1.5rem auto 0; }
.search-icon { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); color: var(--light-text-color); width: 20px; height: 20px; }
#search-input { width: 100%; padding: 0.9rem 1rem 0.9rem 3rem; border: 1px solid #ced4da; border-radius: var(--border-radius); font-size: 1rem; font-family: 'Poppins', sans-serif; }
#search-input:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); }

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.card { background-color: var(--card-bg-color); border-radius: var(--border-radius); padding: 1.75rem; text-decoration: none; color: var(--text-color); box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; border: 1px solid #e9ecef; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card-icon { margin-bottom: 1rem; }
.card-icon svg { width: 40px; height: 40px; color: var(--secondary-color); }
.card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; color: var(--primary-color); font-weight: 600; }
.card p { font-size: 0.9rem; color: var(--light-text-color); flex-grow: 1; }

.hidden { display: none !important; }

#no-results-message { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--light-text-color); }
#no-results-message h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.main-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--light-text-color);
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6;
}
.footer-links {
    margin-bottom: 1rem;
}
.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.footer-links a:hover {
    text-decoration: underline;
}

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-color);
    color: #f8f9fa;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    flex-wrap: wrap;
    gap: 1rem;
}

#cookie-consent-banner p {
    margin: 0;
    flex-grow: 1;
}

#cookie-consent-banner a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

#accept-cookies-btn {
    padding: 0.6rem 1.2rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
}

#accept-cookies-btn:hover {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .main-header { padding-top: 4rem; }
    .main-header h1 { font-size: 2rem; }
    .main-nav { 
        top: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: center;
    }
    .main-nav a { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
    .grid-container { padding: 0 1rem; }
    #cookie-consent-banner { flex-direction: column; text-align: center; }
}