/* ----------  Base Reset & Typography ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
  }
  
  /* ----------  Page Layout ---------- */
  body {
    background-color: #fdf5e6;   /* OldLace */
    color: #333;
    line-height: 1.6;
  }
  
  body::before {
    content: "";
    display: block;
    height: 5px;
    background-color: skyblue;
}

  .container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
  }
  
  /* ----------  Header ---------- */
  header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  header h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
  }

  .header-line {
    height: 3px;                 /* Thin but visible */
    background-color: skyblue;    /* Accent color */
    margin: 10px auto 30px auto;  /* space above and below */
    width: 100%;                  /* full width of container */
    border-radius: 2px;           /* slight rounding for consistency */
}
  
  /* ----------  Navigation ---------- */
  nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    background-color: skyblue;
    padding: 10px 0;
    border-radius: 2px;
    margin-bottom: 40px;
  }
  
  nav li {
    margin: 0 15px;
  }
  
  nav a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s ease;  /* <-- smooth transition */
    border-radius: 2px;      /* added to keep link corners consistent */
  }
  
  nav a:hover {
    background-color: #b0e0e6; /* PowderBlue */
    border-radius: 2px;
  }

  nav .active {
    background-color: tan;
    border-radius: 2px;
  }
  
  /* ----------  Sections ---------- */
  section {
    margin-bottom: 40px;
  }
  
  h2 {
    font-size: 1.8rem;
    color: skyblue;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  p {
    margin-bottom: 20px;
    font-size: 1rem;
  }
  
  /* ----------  Highlight Box ---------- */
  .highlight {
    border: 2px solid tan;
    padding: 15px 30px;
    border-radius: 2px;
    background-color: #fef9f1; /* Light OldLace */
  }

  .highlight p b {
    color: #555;   /* Medium gray for subtler bold text */
}
  
  /* ----------  Profile Image ---------- */
  .profile-img {
    float: right;
    width: 220px;
    height: auto;
    margin: 0 0 10px 20px; /* adjusts spacing from text */
    border: 2px solid tan;
    border-radius: 2px;   /* ← subtle corner rounding.  Use 0 for square, 50% for a circle */
    overflow: hidden;     /* keeps image edges from spilling past the rounded border */
  }

  /* When the screen is very narrow, stop floating and center the image */
@media (max-width: 700px) {
  .profile-img {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
    max-width: 80%;
  }
}
  /* ----------  Global Links ---------- */
  a {
    color: #0066cc;
  }
  
  /* ----------  Timeline Layout & Styling ---------- */
.timeline {
    position: relative;
    width: 70%;
    margin: 0 auto 40px;
    padding: 5px 0;
  }
  
  .timeline::before {                     /* vertical spine */
    content: "";
    position: absolute;
    top: 40px;
    left: 44px;
    width: 4px;
    height: calc(100% - 40px);
    background: skyblue;
  }
  
  .timeline .column {
    margin: 40px 40px 40px 100px;
  }
  
  /* Year label */
  .timeline .title h1 {
    font-size: 2.4rem;
    color: skyblue;
    letter-spacing: 4px;
    position: relative;
  }
  
  .timeline .title h1::before {          /* dot on the spine */
    content: "";
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: tan;
    border: 2px solid skyblue;
    border-radius: 2px;
  }
  
  /* Position and organisation headings */
  .timeline .title h2 {
    margin-top: 4px;
    font-size: 1.4rem;
    color: #333;
  }
  
  .timeline .title h3 {
    margin-top: -6px;
    font-size: 1rem;
    color: #333;
  }

/* ---------- Title spacing between position and organization ---------- */
  .title h2 {
    margin-bottom: 8px; /* or 6px, 10px — whatever looks best to you */
}
  
  /* Description block */
  .timeline .description {
    border-left: 3px solid lightblue;
    padding-left: 12px;
  }
  
  .timeline .description p,
  .timeline .description li {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  /* Bullet list indent */
  .timeline .description .list1 {
    list-style-position: outside;
    margin-left: 20px;
  }
  
  /* ----------  Inline Images on Timeline ---------- */
  .picright img {
    float: right;
    max-width: 200px;
    width: 100%;
    margin: -20px -100px 5px 2em;
    border: 2px solid tan;
    border-radius: 2px;   /* keeps corners consistent with site */
  }

  /* ----------  Two-column layout for Projects page ---------- */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;                 /* space between the two columns */
    margin-top: 30px;
    margin-bottom: 40px;
  }
  
  .row .column {
    flex: 1 1 480px;           /* grow / shrink, min width ≈ 420 px */
    max-width: 48%;            /* keeps columns from growing too wide */
  }
  
  /* Page-section headings inside these columns */
  .row .column h2 {
    text-align: center;
    font-size: 1.75rem;
    color: skyblue;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  
  /* Content boxes */
  .box {
    width: 100%;
    box-sizing: border-box; /* Important to prevent overflow! */
    border: 3px solid skyblue;
    background-color: #fef9f1; /* Box background color "Light OldLace" */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 2px;        /* matches nav/photo style */
    padding: 2rem;
    margin: 20px 0;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.4;
  }
  
 /* Box height presets */
  .box-tall {
    min-height: 320px;
  }
  
  .box-medium {
    min-height: 280px;
  }
  
  .box-short {
    min-height: 250px;
  }

  .project-img {
    float:right; 
    width: 280px;
    max-width: 100%;
    height: auto;
    display: block; 
    border:2px solid tan; 
    border-radius:2px; 
    margin:5px 0 10px 1em;
  }

  /* Responsive fallback: single column below 700 px */
  @media (max-width: 700px) {
    .row {
      gap: 0;
    }
    .row .column {
      max-width: 100%;
    }
  }