body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

header {
    background-color: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    margin: 0;
    color: #212529;
}

header p {
    font-size: 1.1rem;
    color: #6c757d;
}

main h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.2rem;
    color: #343a40;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

main h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8rem;
    color: #495057;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-left: 5px solid #007bff;
}

.card ul {
    list-style-type: none;
    padding: 0;
}

.card ul li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.card ul li strong {
    color: #495057;
}

.cta-button {
    display: inline-block;
    background-color: #28a745;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease-in-out;
}

.cta-button:hover {
    background-color: #218838;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    background-color: #343a40;
    color: #f8f9fa;
}

.footer a {
    color: #007bff;
    text-decoration: none;
}

.related-links {
    margin-top: 3rem;
}

.related-links h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.related-links ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.related-links li a {
    display: block;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    text-decoration: none;
    color: #007bff;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.related-links li a:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
    border-color: #007bff;
}

.ad-placeholder {
    width: 100%;
    min-height: 90px;
    background-color: #e9ecef;
    border: 1px dashed #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    font-weight: bold;
    color: #6c757d;
}

/* Homepage Hero Section */
.hero {
    background: #0052D4;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #65C7F7, #4364F7, #0052D4);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #65C7F7, #4364F7, #0052D4); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    border-radius: 0.5rem;
    margin: -2rem auto 2rem; /* Pulls up to overlap header margin */
    max-width: 1200px;
}

.hero-text h1 {
    font-size: 3rem;
    font-family: 'Roboto Slab', serif;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-bar {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem 0 0 0.25rem;
    border-right: none;
    font-size: 1rem;
}

.search-bar button {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: #28a745;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 0 0.25rem 0.25rem 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: #218838;
}

.featured-universities {
    padding: 2rem 0;
}

.featured-universities h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: 'Roboto Slab', serif;
}

/* Search Results */
#search-results {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

#search-results ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

#search-results li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
}

#search-results li a:hover {
    background-color: #f0f0f0;
}

/* School Hero Section */
.school-hero {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    position: relative;
}

.school-hero h1, .school-hero p {
    z-index: 1;
}

.school-hero h1 {
    font-size: 3rem;
    font-family: 'Roboto Slab', serif;
    margin-bottom: 0.5rem;
}

.school-hero p {
    font-size: 1.25rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cta-card {
    background-color: #e8f5e9;
    border-left-color: #4CAF50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

