: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: 100%;
    max-width: 1400px;
    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;
}
.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}
.erasmus {
    font-size: 2rem;
    color: var(--erasmus-blue);
    font-weight: bold;
    margin-bottom: 10px;
}

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

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

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

.subtitle {
    font-size: 0.9em;
    color: #666;
}

.news-items {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0;
}

.news-item {
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.news-item h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-content {
    color: var(--text-color);
    line-height: 1.6;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-content ul, 
.news-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.news-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.news-content a,
.news-full a {
    color: var(--link-hover);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content a:hover,
.news-full a:hover {
    color: var(--link-active);
    text-decoration: underline;
}

.show-more,
.show-less {
    background-color: var(--header-bg);
    border: none;
    padding: 8px 16px;
    margin-top: 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.show-more:hover,
.show-less:hover {
    background-color: var(--link-active);
    color: white;
}

.news-preview,
.news-full {
    transition: all 0.3s ease;
}

.news-preview p,
.news-full p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-full h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.news-full ul,
.news-full ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.news-full li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.news-full li:last-child {
    margin-bottom: 0;
}

/* Navigation styles */
.page-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 600px;
    padding: 0 15px;
}

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

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

.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 {
    background-color: var(--link-hover);
    color: var(--white);
    border-color: var(--link-hover);
}

/* Footer styles */
footer {
    background-color: var(--header-bg);
    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;
}

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

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

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

    .news-items {
        padding: 0 1rem;
    }

    .news-item {
        padding: 1.5rem;
    }

    .news-item h2 {
        font-size: 1.3rem;
    }
}

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

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

    .news-item {
        padding: 1rem;
    }

    .news-item h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}
