/* --- General --- */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

input[type="text"] {
    padding: 10px;
    width: 100%;
    max-width: 400px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* --- Navbar --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #1f2937;
    color: #fff;
    position: relative;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
}

nav .nav-links {
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #3b82f6;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: #1f2937;
        padding: 20px;
        border-radius: 8px;
        width: 200px;
        z-index: 1000;
    }

    nav .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to right, #e0f2fe, #bae6fd);
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #555;
}

.hero input[type="text"] {
    padding: 10px;
    width: 300px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.hero button {
    padding: 10px 20px;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero button:hover {
    background-color: #2563eb;
}

/* --- Cards --- */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    word-wrap: break-word;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.card h2,
.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card p {
    color: #555;
    font-size: 14px;
    margin-bottom: 10px;
}

.card a {
    display: inline-block;
    width: 100%;
    text-decoration: none;
    color: #3b82f6;
    font-weight: bold;
    margin-top: 10px;
}

.card a:hover {
    text-decoration: underline;
}

/* --- Buttons --- */
.select-btn,
.view-btn,
.add-btn,
.expand-btn {
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 15px;
    min-width: 120px;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.select-btn:hover,
.view-btn:hover,
.add-btn:hover,
.expand-btn:hover {
    background-color: #2563eb;
}

.expand-btn:active {
    transform: scale(0.98);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px;
    background-color: #1f2937;
    color: #fff;
    font-size: 14px;
}

footer a {
    color: #3b82f6;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Add University Section --- */
.add-university {
    text-align: center;
    margin: 40px 0;
}

.add-university p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero input[type="text"] {
        width: 90%;
        max-width: 300px;
    }
}
