:root {
    --primary-bg: #fff;
    --header-bg: #fff3d4;
    --item-bg: #fff3d4;
    --text-color: #333;
    --link-hover: #00843D;
    --link-active: #00843D;
    --erasmus-blue: #004494;
    --white: #fff;
    --bg-cream: #fff3d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--primary-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 96%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    flex: 1;
}

header {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    background-color: #ffffff !important;
    padding: 20px;
    border: 2px solid var(--bg-cream);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    height: 120px;
    width: auto;
}

.right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.erasmus {
    font-size: 1.8rem;
    color: var(--erasmus-blue);
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 0;
}

.project-details {
    font-size: 0.9em;
    line-height: 1.4;
    text-align: right;
    color: var(--erasmus-blue);
}

nav {
    width: 100%;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-item {
    background-color: var(--bg-cream);
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
}

.nav-item:hover {
    color: var(--link-hover);
}

.nav-item:active {
    color: var(--link-active);
}

.module-title {
    background-color: var(--header-bg);
    padding: 15px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.module-title h1 {
    font-size: 1.6em;
    margin: 0;
    line-height: 1.3;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.contact-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--header-bg);
    padding: 25px;
    border-radius: 4px;
}

.contact-logo {
    text-align: center;
    margin-bottom: 20px;
}

.contact-logo img {
    max-height: 80px;
    width: auto;
}

.contact-info {
    text-align: left;
}

.contact-info h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: var(--erasmus-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Navigation styles */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
    width: 96%;
}

.nav-button {
    background-color: #fff3d4;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    border-radius: 0;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
    min-width: 120px;
    text-align: center;
}

.nav-button:hover {
    background-color: #e6d5b3;
}

.nav-button.prev {
    text-align: left;
}

.nav-button.next {
    text-align: right;
}

/* Footer styles */
footer {
    background-color: var(--white);
    margin-top: auto;
    padding: 2rem;
}

.disclaimer {
    max-width: 1200px;
    margin: 0 auto 2rem;
    font-size: 0.9em;
    line-height: 1.4;
    padding: 0 20px;
}

.partner-logos {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    border: 1px solid var(--header-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.partner-logo {
    height: 50px;
    width: auto;
}

.eu-logo {
    height: 60px;
    width: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        justify-content: center;
        text-align: center;
    }

    .right-section {
        align-items: center;
    }

    .project-details {
        text-align: center;
    }

    .contact-card {
        flex: 1 1 100%;
    }

    .page-navigation {
        padding: 0 20px;
    }
    
    .nav-button {
        padding: 8px 15px;
    }

    .partner-logos {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .erasmus {
        font-size: 1.5rem;
    }
    
    .project-details {
        font-size: 0.8em;
    }
    
    .module-title h1 {
        font-size: 1.4rem;
    }

    .contact-info h2 {
        font-size: 1.1em;
    }

    .nav-button {
        font-size: 0.85em;
        min-width: 100px;
    }
}
    .contact-info p {
        font-size: 0.95em;
        margin-bottom: 8px;
    }

    .nav-button {
        font-size: 0.85em;
        min-width: 100px;
    }
