/* Reset och grundläggande stilar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

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

.logo img {
    height: 3.75rem;
    width: auto;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #555;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.95rem;
}

.main-nav a:hover {
    background-color: #f0f0f0;
}

.main-nav a.active {
    background-color: #78af3a; /* RGB(120, 175, 58) */
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    padding: 3rem 0 2rem;
}

.hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 300;
    text-align: left;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    min-height: 30rem;
}

.content-wrapper {
    display: flex;
    gap: 3rem;
}

.text-content {
    flex: 1;
}

.text-content.full-width {
    max-width: 48.375rem; /* 774px */
}

.text-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #333;
}

.text-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: #555;
}

.text-content em {
    font-style: italic;
}

/* Sidebar */
.sidebar {
    width: 20rem;
    flex-shrink: 0;
}

.profile-card {
    background: #f9f9f9;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.profile-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.profile-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.profile-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

.profile-info a {
    color: #666;
    text-decoration: none;
}

.profile-info a:hover {
    color: #78af3a;
    text-decoration: underline;
}

.book-card {
    margin-top: 1.5rem;
}

.book-image {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}

.book-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.book-caption em {
    font-style: italic;
}

/* Page Navigation */
.page-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.page-nav ul {
    list-style: none;
}

.page-nav li {
    margin-bottom: 0.5rem;
}

.page-nav a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.page-nav a:hover {
    color: #78af3a;
}

/* Footer */
.site-footer {
    background-color: #8dcf49; /* RGB(141, 207, 73) */
    color: white;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.site-footer p {
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: white;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsiv design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .site-header .container {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 1rem;
    }

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

    .main-nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .hero-section {
        height: 18rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .sidebar {
        width: 100%;
    }

    .profile-card {
        display: flex;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .profile-image {
        width: 40%;
        margin-bottom: 0;
    }

    .profile-info {
        flex: 1;
    }

    .main-content {
        padding: 2rem 0;
    }

    .text-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav a {
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
    }

    .hero-section {
        height: 15rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .profile-card {
        flex-direction: column;
    }

    .profile-image {
        width: 100%;
    }
    
    .profile-info {
        padding-top: 0.5rem; /* Mer space ovanför texten på mobil också */
    }
    
    .profile-info h3 {
        margin-bottom: 1rem; /* Mer space under namnet */
    }

    .book-card {
        text-align: center;
        max-width: 14rem; /* Större på mobil också */
        margin-left: auto;
        margin-right: auto;
    }
}