/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
    margin: 0;
    padding: 20px;
}

/* Site Wrapper */
.site-wrapper {
    max-width: 900px; /* Adjusted for optimal reading width */
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.site-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0; /* Added line below the header */
}

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

.site-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.5rem;
  margin: 0;
  font-weight: 400;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

/* Navigation Styles */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.site-nav a:hover {
  text-decoration: underline;
  color: #007acc;
}

/* Home Page Profile Styles */
.home-profile {
  font-size: 1.1rem;
  line-height: 1.7;
  overflow: hidden; /* This is crucial for containing the floated element */
}

/* New style for the right-floated image */
.profile-img-right {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  float: right; /* Float the image to the right */
  margin-left: 2.5rem; /* Add space to the left of the image */
  margin-bottom: 1.5rem;
}

.profile-text p {
  margin-top: 0;
}

.cv-container {
    max-width: 900px;
    margin: 2rem auto;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.cv-title-block h1 {
    font-size: 2.8rem;
    margin: 0;
    font-weight: 700;
}

.cv-contact-info {
    text-align: right;
    font-size: 0.95rem;
}

.cv-contact-info p {
    margin: 0.2rem 0;
}

.cv-section {
    margin-bottom: 2rem;
}

.cv-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.cv-entry {
    margin-bottom: 1.5rem;
}

.cv-entry h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.cv-subheading {
    font-size: 1rem;
    color: #555;
    margin: 0.2rem 0 0.8rem;
    display: flex;
    justify-content: space-between;
}

.cv-date {
    font-style: italic;
    color: #555;
}

.cv-entry ul {
    padding-left: 20px;
    margin-top: 0.5rem;
}

.cv-entry li {
    margin-bottom: 0.5rem;
}

.cv-entry p strong {
    font-weight: 600;
}

/* Responsive styles for smaller screens */
@media (max-width: 800px) {
    .site-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Stack image on top of text on small screens */
    .profile-img-right {
      float: none;
      display: block;
      margin: 0 auto 2rem; /* Center the image with bottom margin */
    }
}