.notebook-h2 {
    border-bottom: 3.5px solid #8e4594;
    padding-bottom: 4px;
    display: inline-block;
    color: #333;
}

.notebook-h3 {
    padding-bottom: 4px;
    display: inline-block;
    color: #333;
}

.notebook-h4 {
    padding-bottom: 4px;
    display: inline-block;
    color: #333;
}

.notebook-caption {
    font-size: 0.95em;
    text-align: center;
    display: block;
    margin-top: 0.5em;
    margin-bottom: 1em;
    color: #222;
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: #222;
    text-underline-offset: 2px;
}

.notebook-list {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 1em;
}
.notebook-list li {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 0.3em;
    position: relative;
}
.notebook-list li::marker {
    color: #8e4594;
    font-size: 1.2em;
}

.notebook-list-number {
    list-style-type: decimal;
    list-style-position: inside;
    padding-left: 1em;
}
.notebook-list-number li {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 0.3em;
    position: relative;
}
.notebook-list-number li::marker {
    color: #8e4594;
    font-size: 1.2em;
    font-weight: bold;
}
/* Added styles for figures and media in notebook */
.notebook-figure {
    margin: 1.25rem 0;
    text-align: center;
}

.notebook-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #e2e2e2;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.notebook-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(123,47,247,0.7), rgba(123,47,247,0));
    margin: 2rem 0 2.25rem;
}

/* Side-by-side image pair container */
.notebook-image-pair {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0 1rem;
}

.notebook-image-pair .notebook-figure {
    flex: 1 1 300px;
    max-width: 420px;
}

/* Two-column image grid */
.notebook-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    justify-items: center;
}

.notebook-image-grid .notebook-figure {
    width: 100%;
    max-width: 420px;
}

/* Table styles for notebook */
.notebook-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    table-layout: fixed;
}

.notebook-table th,
.notebook-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.notebook-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.notebook-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.notebook-table tr:hover {
    background-color: #e9ecef;
}

/* Styles for notebook entries */
.notebook-entry {
    background-color: #fdfdff;
    border: 1px solid #e8e5f3;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.notebook-entry:hover {
    box-shadow: 0 6px 16px rgba(123, 47, 247, 0.1);
}

.notebook-entry p, .notebook-entry ul, .notebook-entry ol {
    color: #444;
}

.notebook-entry strong {
    color: #000000;
}

.notebook-results, .notebook-notes, .notebook-design, .notebook-build {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 6px;
}

.notebook-results {
    background-color: #eefdec; /* MediumSeaGreen */
    border-left: 4px solid #82df83; /* CornflowerBlue */
}

.notebook-notes {
    background-color: #f0f8ff; /* LemonChiffon */
    border-left: 4px solid #6495ED; /* Gold */
}

.notebook-protocol-objective {
    background-color: #f0f0f0;
    border-left: 4px solid #8e4594;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
}

.notebook-protocol-objective strong {
    color: #8e4594;
}

.notebook-protocol-details {
    margin-top: 1rem;
}

.notebook-protocol-details strong {
    color: #333;
}

.notebook-protocol-details ul, .notebook-protocol-details ol {
    padding-left: 20px;
}

.notebook-protocol-details li {
    margin-bottom: 0.5rem;
}

.notebook-rationale {
    background-color: #fffbe6;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
}

.notebook-outcomes {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
}

.notebook-purpose,
.notebook-methods,
.notebook-conclusion {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
}

.notebook-purpose {
    background-color: #f0f8ff;
    border-left: 4px solid #6495ED;
}

.notebook-methods {
    background-color: #fdf5e6;
    border-left: 4px solid #ffa500;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
}

.notebook-methods strong {
    color: #333;
}

.notebook-observations {
    background-color: #f0f8ff;
    border-left: 4px solid #6495ED;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
}

.notebook-observations strong {
    color: #333;
}

.notebook-conclusion {
    background-color: #f7f3ff;
    border-left: 4px solid #b084f2;
}

.notebook-design {
    background-color: #fff0f8;
    border-left: 4px solid #ff69b4;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
}

.notebook-build {
    background-color: #fff8e6;
    border-left: 4px solid #ffa94d;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
}
