@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;600;800&display=swap');

:root {
    --primary: #2A9D8F;
    --secondary: #264653;
    --background: #F8F9FA;
    --text: #2C3E50;
    --text-light: #6C757D;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Helvetica, sans-serif;
    background-color: var(--background);
    transition: 0.4s;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page {
    max-width: 1024px;
    margin: auto;
    width: 95%;
}

header {
    text-align: center;
    display: flex;
    flex-flow: column;
    justify-content: center;
    padding: 2em 0;
}

header h2 {
    font-size: 36px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.student-search {
    display: flex;
}

.student-search input {
    width: 100%;
    border-radius: 8px 0 0 8px;
    border: 2px solid var(--primary);
    padding: 10px 16px;
    font-size: 14px;
}

.student-search input::placeholder {
    color: var(--text-light);
}

.student-search button {
    cursor: pointer;
    width: 55px;
    border-radius: 0 8px 8px 0;
    border: 2px solid var(--primary);
    border-left: none;
    padding: 0px 5px;
    font-size: 14px;
    background-color: var(--primary);
    color: var(--white);
    transition: all 0.3s ease;
}

.student-search button:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.student-search button img {
    width: 25px;
}

.student-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 2em;
}

.student-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5em;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.student-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.avatar {
    margin: 0 auto 15px;
    border-radius: 50%;
    background-color: var(--white);
    width: 90px;
    height: 90px;
    border: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.student-details::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
}

.student-item h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.45em;
    color: var(--primary);
}

.student-item .email {
    font-weight: 500;
    color: var(--text-light);
    font-size: 14px;
    letter-spacing: .5px;
}

.date {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    width: 100%;
    padding-top: 1.1em;
    border-top: solid 1px #eee;
    margin-top: 1.1em;
}

.pagination {
    margin: 30px 0 60px;
    text-align: center;
}

.pagination li {
    display: inline;
    padding: 0 3px;
}

.pagination li button {
    font-size: 1em;
    cursor: pointer;
    outline: none;
    padding: 8px 16px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.pagination li button.active,
.pagination li button:hover {
    background-color: var(--primary);
    color: var(--white);
}

.student-search span {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.no-results {
    font-family: 'Montserrat', sans-serif;
    display: block;
    font-size: 1.5rem;
    color: var(--text-light);
    width: 500px;
    margin: 15px auto;
    text-align: center;
}

@media screen and (min-width: 700px) {
    .page {
        width: 70%;
    }

    header {
        flex-flow: row;
        align-items: center;
        padding: 3em 0;
    }

    header h2 {
        margin-right: auto;
        margin-bottom: 0;
    }

    .student-item {
        border-radius: 12px;
    }
}