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

* {
    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;
    background-color: var(--primary-bg);
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    width: 96%;
    border: 1px solid #ddd;
}

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

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

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

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.erasmus {
    font-size: 2rem;
    color: var(--erasmus-blue);
    font-weight: bold;
    margin-bottom: 10px;
}

.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 {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1em;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.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: 15px;
}

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

main {
    margin: 2rem auto;
}

.knowledge-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.knowledge-item {
    background-color: var(--item-bg);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.knowledge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.knowledge-title {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1em;
    flex: 1;
}

.expand-icon {
    font-size: 1.5em;
    color: var(--text-color);
    margin-left: 10px;
}

.knowledge-content {
    display: none;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #ddd;
}

.knowledge-link {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

footer {
    background-color: var(--header-bg);
    margin-top: auto;
    padding: 2rem;
}

.footer-logos {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.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;
    }

    .logo-section {
        flex-direction: column;
    }

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

    .project-details {
        text-align: center;
    }
    
    .footer-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .knowledge-item {
        font-size: 0.9rem;
    }
}

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

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

.nav-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fff3d4;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-color: #fff3d4;
}

.nav-button:hover {
    background-color: #00843D;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-button:active {
    background-color: #00843D;
    color: #ffffff;
}

.nav-button.prev::before {
    content: "⟵";
    font-size: 1.2em;
}

.nav-button.next::after {
    content: "⟶";
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .page-navigation {
        padding: 0 20px;
    }
    
    .nav-button {
        padding: 8px 15px;
    }
}

.nav-button.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .page-navigation {
        flex-direction: column;
    }
}
