/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

/* General Container for Centering Content */
.container {
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Important for padding and width */
}

/* Card Styles for Recommendations */
.internship-grid {
    display: grid;
    /* 2 columns for desktop */
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* ... (keep the other internship-card styles as they are) ... */

/* Responsive Design */
@media (max-width: 768px) {
    /* ... (other responsive styles) ... */

    /* 1 column for mobile/tablet */
    .internship-grid {
        grid-template-columns: 1fr;
    }
}

.internship-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    /* Flexbox properties for layout */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content apart */
    text-align: center; /* Centers the text and button */
}

.internship-card:hover {
    transform: translateY(-5px);
}

.internship-card h3 {
    margin-top: 0;
    color: #007bff;
}

/* Ensure the button is centered within the flex container */
.internship-card .btn {
    align-self: center; /* Center button on the cross-axis */
    margin-top: 1rem; /* Add some space above the button */
}

.internship-card:hover {
    transform: translateY(-5px);
}

.internship-card h3 {
    margin-top: 0;
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple hiding for mobile, can be replaced with a hamburger menu */
    }
    .home-content {
        flex-direction: column;
        text-align: center;
    }
    .home-image {
        margin-top: 2rem;
    }
}