/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    margin-top: 70px;
    font-size: 32px;
    color: #333;
    font-weight: bold;
}

/* Search Form */
.search-form {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-form input {
    width: 80%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px;
    border: 2px solid #ddd;
    outline: none;
    transition: all 0.3s ease;
}

.search-form input:focus {
    border-color: #563d94;
    box-shadow: 0 0 8px rgba(76, 99, 175, 0.6);
}


/* Suggestions Container */
.suggestions-container {
 z-index: 10;
    margin-top: 45px;
    max-width: 450px;
    max-height: 170px;
    overflow-y: scroll;
    width: 70%;
    position: absolute; 
    justify-content: center;
    background-color: #ffffffdd;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Suggestion Items */
.suggestion-item {
   
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

.suggestion-item:active {
    background-color: #e0e0e0;
}

/* College List */
.college-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.college-item {
    width: 100%;
    max-width: 280px;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.college-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.college-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.college-item h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* No results message */
.no-results {
    text-align: center;
    font-size: 18px;
    color: #888;
    margin-top: 30px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .search-form input {
        width: 90%;
    }

    .college-list {
        justify-content: center;
    }

    .college-item {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 26px;
    }

    .college-item {
        max-width: 220px;
    }
}
