.search-container {
    max-width: 100%;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.directory-title {
    color: #02350D;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}

.search-box {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #02350D;
    outline: none;
}

.institute-select {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s;
}

.institute-select:focus {
    border-color: #02350D;
    outline: none;
}

.search-button {
    padding: 10px 20px;
    background-color: #02350D;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #044b13;
}

.clear-filters {
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.clear-filters:hover {
    background-color: #c82333;
}

.alphabet-filter {
    margin-top: 20px;
    text-align: center;
}

.alphabet-filter ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    justify-content: center;
}

.alphabet-filter li {
    display: inline-block;
}

.letter-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.letter-link:hover {
    background-color: #02350D;
    color: white;
}

.letter-link.active {
    background-color: #02350D;
    color: white;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        gap: 15px;
    }

    .search-input, .institute-select, .search-button, .clear-filters {
        width: 100%;
    }

    .alphabet-filter ul {
        gap: 3px;
    }

    .letter-link {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}