body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden;
}

header {
    background-color: #333;
    color: white;
    padding: 0 1rem;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    padding: 0;
}

.hamburger span {
    background-color: white;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.dropdown-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-menu a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
}

.dropdown-menu a:hover {
    color: #ff7f0e;
}

.dropdown-menu a.active {
    font-weight: bold;
    color: #ff7f0e;
}

main {
    padding-bottom: 10px;
    box-sizing: border-box;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #f9f9f9;
    max-width: 100%;
    margin: 0 auto;
}

.filters label {
    font-size: 0.9rem;
    color: #333;
    margin-right: 0.1rem;
}

.filters select,
.filters input[type="text"],
.filters button {
    padding: 0.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #333;
    background-color: #fff;
    height: 36px !important;
    line-height: normal;
    box-sizing: border-box;
    min-width: 150px;
}

.filters input[type="text"] {
    min-width: 200px;
    max-width: 200px;
}

.filters button {
    min-width: 90px; /* Increased for "Undo" text */
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    background-color: #eee;
    color: #333;
    transition: background-color 0.2s;
}

.filters button:hover {
    background-color: #ff7f0e;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 160px;
    box-sizing: border-box;
    cursor: pointer;
}

.contact-card:hover {
    /*transform: translateY(-5px);*/
    border-color: #ff7f0e;
}

.contact-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #ff7f0e;
}

.contact-card p {
    margin: 0.25rem 0;
    color: #555;
    flex-grow: 1;
}

.contact-card .social {
    color: #333;
    text-decoration: none;
}

.contact-card .social:hover {
    color: #ff7f0e;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.overlay.active {
    display: flex;
}

.overlay-content {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.overlay-content h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #333;
}

.overlay-content p {
    margin: 0 0 1rem;
    color: #333;
    line-height: 1.5;
}

.close-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
}

.close-button:hover {
    background-color: #ff7f0e;
}

.methodology {
    padding: 0 1rem;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    max-width: 1200px;
    margin: 0 auto 60px;
    text-align: left;
    color: #333;
}

.methodology h2 {
    color: #ff7f0e;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

footer {
    background-color: #333;
    color: white;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 800px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters select,
    .filters input[type="text"],
    .filters button {
        min-width: 100%;
        max-width: 100%;
        height: 36px !important;
        line-height: normal;
    }

    .filters label {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }

    .filters label {
        width: 100%;
        max-width: 200px;
        font-size: 1rem;
        margin-top: 0px;
        margin-bottom: 0;
    }

    .filters select,
    .filters button {
        width: 100%;
        max-width: 200px;
        font-size: 1rem;
        margin-top: 0;
        margin-bottom: 5px;
    }

    header {
        height: 50px;
    }

    header h1 {
        font-size: 1.2rem;
    }

    main {
        padding-bottom: 40px;
    }

    footer {
        height: 40px;
    }

    footer p {
        font-size: 0.8rem;
    }

    .overlay-content {
        width: calc(95% - 20px);
        margin: 0 10px;
        padding: 1rem;
    }
}