/* ==========================================================================
   Main Page Layout
   ========================================================================== */

/* Algemene layout structuur */
.main-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.content-area {
    flex: 1;
    /* margin-left wordt nu via media query ingesteld */
    min-height: 100vh;
    background-color: var(--light-gray);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    box-shadow: var(--shadow);
    padding: 0;
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
    z-index: 10;
}

.header-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    max-width: 200px;
    height: auto;
}

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

/* Secties */
.section {
  background-color: var(--white);
  padding: 30px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.section-title {
  color: var(--dark-gray);
  font-size: 1.6em;
  margin-top: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--medium-gray);
  overflow-wrap: break-word;
}

.section-content {
  margin-bottom: 40px;
}

/* Styling for subtitles within a section */
.content-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light-gray);
}

/* Styling for a standard h2 inside a section, that is NOT a main .section-title */
.section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* Responsive Layout Adjustments */
@media (min-width: 901px) {
    .content-area {
        margin-left: 270px; /* Alleen marge op desktop */
    }
}

@media (max-width: 900px) {
    .content-area {
        margin-left: 0 !important;
    }

    .content-wrapper {
        padding-left: 5px;
        padding-right: 5px;
    }

    header {
        border-radius: 0;
        margin: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-content {
        padding-left: 0;
        padding-right: 0;
    }

    .container {
        margin: 10px auto;
        padding-left: 5px;
        padding-right: 5px;
    }

    .section {
        padding-left: 5px;
        padding-right: 5px;
    }

    .logo {
        max-width: 150px;
    }

    body.sidebar-open .content-area {
        position: relative;
    }
}

/* Chapter Title Header Styling */
.chapter-main-title {
    background-color: var(--light-purple-background);
    color: var(--primary-purple);
    padding: 20px 25px;
    margin-bottom: 30px; /* Ruimte tussen de titel-header en de eerste content */
    border-radius: 8px;
    font-size: 2.2em; /* Maakt het duidelijk de hoofdtitel */
    font-weight: 700;
    border-left: 5px solid var(--primary-purple);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section:last-of-type {
    border-bottom: none;
}

.component-divider {
    border: 0;
    height: 1px;
    background-color: var(--medium-gray);
    margin: 3rem 0;
}

/* Header sectie */
header {
    background-color: var(--white);
} 