/* about.css */
/* Layout */
.layout {
  display: flex;
  flex: 1;
  min-height: 0;
  background: var(--color-bg);
}

/* Sidebar */
.sidebar {
  background: var(--color-bg);
  width: 25%;
  box-sizing: border-box;
  min-height: 100%;
  margin-right: 20px;
}

/* Sidebar sections */
.sidebar-section--text {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 3rem 0;
  color: var(--color-fg-muted);
  font-size: 1rem;
} 

.sidebar-section--links {
  border-top: 1px solid var(--color-border);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-section--links a {
  display: block;
  color: var(--color-accent);
  background: transparent;
  text-decoration: none;
  font-weight: 500;
  font-size: 9pt;
  padding: 0.8em 0.8em;
  border-radius: 0;
  transition: color 0.2s, background 0.2s, padding 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-section--links a:hover,
.sidebar-section--links a:focus {
  color: var(--color-bg);
  background: var(--color-accent);
  text-decoration: none;
  padding: 0.8em 1.5em;
}

.invert-img {
  filter: invert(1);
}

/* Main content area */
main {
  flex: 1;
  padding: 0rem 0rem 0rem 1.5rem;
  background: var(--color-bg);
  min-width: 0;
  margin-left: 20px;
}

/* Main content sections with top border */
.main-section {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Section heading */
.main-section h1,
.main-section h2 {
  color: var(--color-fg);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.2em;
}

/* Education list and entries */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 1em;
}

.education-entry {
  display: flex;
  flex-direction: column;
  min-width: 220px;
}

.education-entry .uni-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 0.2em;
  line-height: 1.2;
}

.education-entry .uni-program {
  font-size: 1rem;
  color: var(--color-fg-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* Work experience list */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-top: 1.2rem; 
}


/* Each work experience entry */
.experience-entry {
  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: flex-start;
  margin-right: 2rem;
  border-top: 1px solid var(--color-border);
}

/* Left column: position, company, time, place */
.experience-meta {
  width: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  padding-top: 1em;
}

.experience-position {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.experience-company {
  font-size: 1rem;
  color: var(--color-fg);
  font-weight: 500;
}

.experience-time,
.experience-place {
  font-size: 0.98rem;
  color: var(--color-fg-muted);
  font-weight: 400;
}

/* Right column: responsibilities box (no border, 50% width) */
.experience-details {
  width: 50%;
  min-width: 0;
  background: transparent;
  color: var(--color-fg);
  font-size: 1rem;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.6;
}


/* Mobile adjustments */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    width: 100%;
  }

  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0rem;
  }

  main {
    margin-left: 0;
    padding: 0 0 0 0;
  }

  .experience-entry {
    flex-direction: column;
    gap: 1rem;
    margin-right: 0;
  }

  .experience-meta,
  .experience-details {
    width: 100%;
  }

  .sidebar-section--links a {
    font-size: 1rem;
    padding: 0.9em 1em;
  }

  header .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  nav.header-right {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
}
