@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #032076;
    --secondary-color: #1971b5;
    --background-color: #fcfdff;
    --background-color-alt: #ebf7ff;
    --text-color: #333333;
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --button-color: #0a4aff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #eef7ff;
        --secondary-color: #2e94e1;
        --background-color: #030d2d;
        --background-color-alt: #010923;
        --text-color: #ffffff;
        --heading-font: 'Inter', sans-serif;
        --body-font: 'Roboto', sans-serif;
        --button-color: #0a4aff;
    }
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Header / Navigation --- */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

@media only screen and (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Hero Banner Section --- */
.hero {
    background-color: var(--background-color-alt);
    padding: 80px 0;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--button-color);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background-color: #1d4ed8;
}

.smallbtn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- Slideshow Styles --- */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease-in-out, transform 6s ease-in-out;
    z-index: 1;
}

/* The active class makes the current image visible */
.slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.08);
}

/* --- 5-Column Colleges Section --- */
.colleges {
    padding: 60px 0;
    background-color: var(--background-color);
}

@media (max-width: 768px) {
    .colleges {
        padding: 40px 0;
    }
}

.college-logo {
    width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

@media only screen and (max-width: 768px) {
    .section-title {
        margin-bottom: 30px;
    }
}

.colleges-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

@media (max-width: 1200px) {
    .colleges-group {
        flex-direction: column;
    }
}

.college-card {
    width: 100%;
    background-color: var(--background-color-alt);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.college-card picture {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.college-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.college-card p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
    flex-grow: 1;
}

/* --- Why study with us --- */
.info-section {
    padding: 60px 0;
    background-color: var(--background-color-alt);
}

@media (max-width: 768px) {
    .info-section {
        padding: 40px 0;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

@media only screen and (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.info-card {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--primary-color);
    height: 100%;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.info-content p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* --- Contact --- */
.contact {
    padding: 40px 0;
    background-color: var(--background-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .contact-info {
        text-align: center;
    }
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-details {
    list-style: none;
    margin-top: 20px;
}

.contact-details li {
    margin-bottom: 12px;
    color: var(--text-color);
}

.contact-image {
    max-width: 100%;
    border-radius: 12px;
}

/* --- Footer --- */
footer {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 40px 0;
    font-size: 1rem;
}