:root {
    --primary-color: #00843D;
    --secondary-color: #4472C4;
    --bg-cream: #FFF8E7;
    --text-color: #333;
    --white: #ffffff;
    --max-width: 1200px;
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    background-color: var(--white);
}

header {
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 4px;
    gap: 40px;
    border: 2px solid var(--bg-cream);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.logo {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.title-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.title-section h1 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin: 0;
}

.title-section h2 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin: 0;
}

.project-info {
    text-align: right;
}

.erasmus {
    font-size: 1.8rem;
    color: #004494;
    margin-bottom: 10px;
}

.project-details {
    font-size: 0.9em;
    line-height: 1.4;
    text-align: right;
    color: #004494;
}

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

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

.nav-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.about-section {
    background-color: var(--bg-cream);
    padding: 20px;
    height: 400px;
}

.about-section h2 {
    margin-bottom: 20px;
}

.scrollable-content {
    max-height: calc(100% - 60px);
    overflow-y: auto;
    padding-right: 10px;
}

.side-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-self: center;
    min-height: 300px;
    justify-content: center;
}

.platform-box, .erasmus-info {
    background-color: var(--bg-cream);
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.platform-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partners-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.partner-box {
    background-color: var(--white);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    border: 2px solid var(--bg-cream);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.partner-logo {
    max-width: 160px;
    height: auto;
    object-fit: contain;
}

.partner-box:first-child .partner-logo {
    max-width: 180px;
}

.partner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.partner-box h3 {
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 0;
    max-width: 90%;
}

@media (max-width: 768px) {
    .partner-logo {
        max-width: 130px;
    }
    .partner-box:first-child .partner-logo {
        max-width: 150px;
    }
    .partner-box {
        padding: 25px 15px;
        gap: 20px;
    }
    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    .project-info {
        text-align: center;
        width: 100%;
    }
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        justify-content: center;
    }
}

footer {
    background-color: var(--bg-cream);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .partners-section {
        grid-template-columns: 1fr;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Navigation Styles */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    gap: 20px;
}

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

.nav-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

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

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

@media (max-width: 480px) {
    .page-navigation {
        flex-direction: column;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
}

.erasmus-info {
    background-color: var(--bg-cream);
    padding: 20px;
    transition: all 0.3s ease;
}

.erasmus-link {
    color: #004494;
    text-decoration: none;
    transition: all 0.3s ease;
}

.erasmus-link:hover {
    color: #003A7A;
}

.platform-box h3, .erasmus-info h3 {
    margin: 0;
    padding: 10px;
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9em;
    line-height: 1.5;
    text-align: justify;
}

.disclaimer p:first-child {
    text-align: center;
    margin-bottom: 10px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 10px;
    height: 80px;
}

.partner-logos img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.partner-logos .eu-logo {
    height: 80%;
}

@media (max-width: 768px) {
    .partner-logos {
        flex-direction: column;
        gap: 30px;
        height: auto;
    }

    .partner-logos img {
        height: 80px;
    }

    .partner-logos .eu-logo {
        height: 65px;
    }
}

nav {
    margin-top: 20px;
}

.assessment-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.assessment-link:hover {
    color: #006330;
    text-decoration: underline;
}

.training-section {
    background-color: var(--bg-cream);
    padding: 20px;
    height: 400px;
}

.modules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    height: 300px;
}

.module {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.module:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
    }
    
    .download-button {
        width: 100%;
        text-align: center;
    }
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.business-plan-section {
    background-color: var(--bg-cream);
    padding: 20px;
    height: 300px;
}

@media (max-width: 768px) {
    .content-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section,
    .training-section,
    .business-plan-section {
        height: auto;
        min-height: 300px;
    }
    
    .modules-grid {
        height: auto;
    }
}
