/* ===== Base Styles ===== */
body {
    font-family: Arial, sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Centered content wrapper */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.header-content {
    flex-grow: 1;
    text-align: center;
}

.home-link {
    text-decoration: none;
    color: inherit;
}

.header h1 {
    font-size: 2.8em;
    margin: 0 0 15px 0;
}

.header-image-container {
    flex-shrink: 0;
}

.header-profile-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 2px solid #000;
}

/* ===== Layout (Sidebar + Main) ===== */
.page-layout {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-profile-image {
    width: 100%;
    border: 2px solid #000;
    object-fit: cover;
}

.sidebar-section {
    margin-top: 30px;
}

.sidebar-section h3 {
    margin-bottom: 8px;
    font-size: 1.3em;
    border-bottom: 1px solid #000;
}

.sidebar-section a {
    color: black;
    text-decoration: none;
}

.sidebar-section a:hover {
    text-decoration: underline;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 6px 0;
}

.sidebar-nav a {
    text-decoration: none;
    color: black;
    font-size: 1.05em;
}

.sidebar-nav a:hover {
    text-decoration: underline;
}

/* ===== Main Content ===== */
.main-content {
    flex-grow: 1;
}

.page-title, .section-title {
    font-size: 2.2em;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8em;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* ===== CV Styles ===== */
.cv-section { margin-bottom: 2.5rem; }
.cv-section h3 {
    font-size: 1.5em;
    margin-bottom: 0.75rem;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
}
.cv-entry { margin-bottom: 1.25rem; }
.cv-entry h4 {
    font-size: 1.2em;
    margin-bottom: 0;
}
.cv-entry p {
    margin-top: 2px;
    font-style: italic;
}
.cv-entry ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* ===== Blog: Recent & All Posts ===== */
#recent-posts li a strong {
    font-size: 0.95em;
}

#all-posts-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#all-posts-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

#all-posts-list a {
    color: black;
    text-decoration: none;
    font-size: 1.1em;
}

#all-posts-list a:hover {
    text-decoration: underline;
}

#all-posts-list li {
    margin-bottom: 1.2em;
    list-style: none;
}

#all-posts-list a {
    font-size: 1.1em;
    font-weight: bold;
}

.post-date {
    font-size: 0.9em;
    color: #666;
}

.post-description {
    margin-top: 0.2em;
    font-size: 0.95em;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}
