/* Main Styles for Ejerlauget Website */
:root {
    --primary-color: #3a6ea5;
    --secondary-color: #6c8eb4;
    --accent-color: #f0f7ff;
    --text-color: #333;
    --light-text: #666;
    --background-color: #f9f9f9;
    --card-background: #fff;
    --footer-color: #2c5282;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

header h1 {
    font-weight: 700;
    font-size: 1.8rem;
}

header h1 i {
    margin-right: 10px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

nav a:hover::after {
    width: 100%;
}

/* Main Content Styles */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

h2 i {
    margin-right: 10px;
}

.section-content {
    padding: 0 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.info-card {
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* News Section */
.news-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.news-item {
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-date {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.news-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.news-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.mt-4 {
    margin-top: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Board Members Section */
.board-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.board-member {
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.board-member:hover {
    transform: translateY(-5px);
}

.board-member img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.board-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.board-member p {
    margin-bottom: 0.5rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.board-member p i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

/* Downloads Section */
.download-list {
    list-style: none;
    margin-top: 1.5rem;
}

.download-list li {
    margin-bottom: 1rem;
}

.download-list a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.download-list a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

.download-list a i {
    margin-right: 10px;
    font-size: 1.2rem;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-info h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-info p i {
    margin-right: 10px;
}

.footer-info a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-copyright {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    
    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    header h1 {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    main {
        padding: 1rem 0;
    }
    
    section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .board-members, .info-cards, .news-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card, .board-member, .news-item {
        padding: 1rem;
    }
    
    .download-list a {
        padding: 0.75rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info, .footer-copyright {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
}
