
/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f8;
    color: #333;
    display: flex;
    min-height: 100vh;
}

/* Aside (sidebar) */
aside {
    background-color: #1f2937;
    color: white;
    width: 320px;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
    overflow-y: auto;
}

aside h3 {
    font-size: 1.25rem;
    color: #bfdbfe;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

aside h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 6px;
    height: 1.2em;
    background-color: #3b82f6;
    border-radius: 3px;
}

aside img#photo {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

figcaption {
    font-size: 0.75rem;
    color: #9ca3af;
}

.subsection {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #374151;
}

.itemfooter {
    margin-top: 0.5rem;
}

.itemfooter p {
    margin: 0.4rem 0;
}

.itemfootertext {
    margin-left: 0.5rem;
}

/* Section (main content) */
section {
    padding: 2rem;
    flex-grow: 1;
    overflow-y: auto;
}

/* Headers */
header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Subsection titles */
section h2 {
    font-size: 1.75rem;
    color: #1d4ed8;
    padding-left: 0.75rem;
    border-left: 5px solid #3b82f6;
    margin-bottom: 1rem;
    background-color: #e0f2fe;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.item {
    margin-bottom: 2rem;
}

.itemdate {
    font-weight: bold;
    color: #111827;
}

.itemheader p {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.itemfooter p {
    font-size: 0.9rem;
}

.itembody ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Rounded HR */
hr.rounded {
    border: none;
    height: 3px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    border-radius: 2px;
    margin: 2rem 0;
}

/* Link styling */
a {
    color: #60a5fa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Scroll behavior */
body, html {
    scroll-behavior: smooth;
}

.e-mail:before {
    content: attr(data-website) "\0040" attr(data-user);
    unicode-bidi: bidi-override;
    direction: rtl;
}
