:root {
  --max-width-center: 65ch;

  /* New color variables */
  --link-color: #3c9399;    /* Lighter blue for links */
  --hover-color: #32c7d1;       /* Darker blue for hover */
  --accent-color: #82BED6;
  --text-color: #111;
  --background-color: #fff;
  --line-color: #94DBDF;      /* was #EEE*/
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  font-size: 18px;
  margin: 40px auto;
  padding: 0 20px;
}

p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-spacing: 0.1em;
  line-height: 1.5;
  margin-bottom: 1em;
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: 600;
  margin-bottom: 12px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--hover-color);
}

nav {
  max-width: var(--max-width-center);
  margin: 0 auto 30px;
  padding: 10px 0;
  border-bottom: 2px solid var(--line-color);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  position: relative;
  display: flex;
  align-items: center;    /* centres the dot perfectly */
  padding: 0 14px;        /* horizontal spacing between items */
}

nav ul li + li::before {  /* “+ li” skips the very first item */
  content: "";
  position: absolute;
  left: 0;               /* left edge of the current <li>  */
  top: 50%;
  width: 4px;            /* dot diameter */
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

nav a {
  font-weight: 500;
  font-size: 16px;
  color: #111;
  text-decoration: none;
}

/* Blog List */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  /*margin-bottom: 10px;*/
}

ul li a {
  font-weight: 500;
}

blockquote {
    border-left: 4px solid #ccc;  /* vertical bar on the left */
    margin: 1em 0;
    padding: 0.5em 1em;
    background-color: #f9f9f9;
}

blockquote p {
    margin: 0;
}

.tab {
   padding-left: 20px;
}

.text-content ul {
   list-style-type: disc; /* Default bullet style */
   margin-left: 20px; /* Ensure indentation */
   padding-left: 20px; /* Space for bullets */
}

.ornamental-symbol {
    border: none;
    height: 1em;
    /*background: #ccc;*/
    position: relative;
    margin: 20px 0px 0 20px;
}
.ornamental-symbol::before {
    content: "✦✦✦"; /* Unicode symbol (e.g., star) */
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff; /* Background to overlap the line */
    padding: 0 10px;
    font-size: 20px;
    color: #333;
}

.❉::before {
   content: "❉❉❉";
}

.uniform-gap {
   margin: 2rem 0 2rem 0;
}

/* Post Metadata */
.subtitle {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* Spacing */
main {
  padding-bottom: 40px;
}

.site-intro h1 {
  text-align: center;
}

.site-intro img {
  display: block;
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  margin: auto;
  margin-bottom: 1em;
}

.text-abstract {
   padding: 10px;
   border-left: 4px solid #ccc;
   font-size: 0.9em;
   margin-bottom: 20px;
       background-color: #f5f5f5;
}

.available-in {
   font-size: 1.2em; /* Slightly larger */
   font-weight: bold;
}

figcaption {
   font-size: 0.9em;
   padding-top: 10px;
}

.section-list {
    margin: 0 auto;
    padding-left: 20px;
}

.section-list ul {
    list-style: none; /* Remove default bullets */
    padding: 0;       /* Reset padding */
}

.section-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.subsection-item {
    margin: 5px 0 5px 0;
}

.section-title{
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px 0;
    justify-content: space-between; /* Push title left, date right */
    align-items: baseline;      /* Align vertically */
}

.subsection-title{
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0 8px;
    justify-content: space-between; /* Push title left, date right */
    align-items: baseline;      /* Align vertically */
}

.subsection-title a { color: #0e3133; }
.subsection-title a:hover {
  color: var(--hover-color);
}

.section-smaller {
   font-size: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 0 32px 0;
}

.subsection-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 20px 8px;
}

.section-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


/* --- New Layout for Sidebars --- */
.layout {
  display: grid;
  grid-template-columns: 1fr minmax(auto, var(--max-width-center)) 1fr;
  margin: 40px auto;
}

.left-sidebar,
.right-sidebar {
  padding: 20px;
  text-align: center;
}

.right-sidebar {
  text-align: left;
}

/* Use accent color for a heading example */
.right-sidebar h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.right-sidebar p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.right-sidebar a {
  text-decoration: none;
  color: var(--link-color);
  display: inline-block;
  margin: 5px 0;
}

.right-sidebar a:hover {
  color: var(--hover-color);
}

.center {
  padding: 0 20px;
}

.center img {
  max-width: 100%;/*var(--max-width-center);*/
}

/* Mobile-friendly view: stack the columns */
@media (max-width: 800px) {
  body {
    font-size: 20px;
    padding: 0 10px;
  }

  .layout {
    display: block;
  }

  nav a {
    font-size: 14px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  h2 a, h3 a {
     padding: 0px;
  }

  .subsection-title, .subsection-date, .subsection-desc {
     margin-left: 0;
  }
}

.about-container {
  display: flex;
  align-items: center;
  padding: 20px;
}

.about-photo {
  flex: 0 0 auto;
  margin-right: 20px;
}

.about-text {
   text-align: center;
}

.about-photo img {
  display: block;
  width: 125px;
  height: 125px;
  object-fit: cover;
  border-radius: 50%;
}

.about-content {
  flex: 1 1 auto;
}

.about-content p {
  margin-bottom: 10px;
}

.about-content p em:first-of-type,
p i:first-of-type {
  margin-right: 8px;
  display: inline-block;
  font-weight: 500;
}

.img-left {
  float: left;
  margin-right: 15px;
  width: 100px !important;
}

.img-right {
  float: right;
  margin: 25px;
  width: 125px !important;
}

.social {
  list-style: none;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px 12px;
  align-items: center;
}

.social img {
  width: 16px;
  position: relative;
  top: 2px;
}

/* Responsive Adjustment */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
  .about-photo {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

/* The meta row of tags beyond the project titles */
.meta{
  font-size:0.8rem;
  color:#666;
  display:flex;
  flex-wrap:wrap;
  gap:4px 8px;          /* row / column gap   */
  margin:0.2rem; /* space before one-liner */
}
.chip{
  display:inline-block;
  padding:2px 6px;
  margin:1px 2px;
  font-size:0.75rem;
  border-radius:999px;
  background:#eef4f4;      /* very light teal tint */
  color:#236165;           /* your darker teal */
}
.tech { background:#eef4f4;}
.role   { background:#e8e8e8; color:#2b2b2b; }  /* neutral grey for roles */
.meta-date{
  margin-left: 8px;
  color:#2b2b2b;           /* same darkness as role chips’ text */
}
.interest { font-size: 1.25rem }
.meta-centered{
   justify-content: center;
}

.about li {
  position: relative;
  padding-left: 1.5em; /* Space for custom bullet */
  margin-bottom: 0.5em; /* Some vertical spacing */
  margin-left: 8px;
}

.about li::before {
  content: "❈";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 1.2em;
  line-height: 1;
  margin-right: 4px;
}

.offset {
   margin-top: 1rem;
}
.double-offset {
   margin-top: 2rem;
}
.triple-offset {
   margin-top: 3rem;
}

.centered {
   text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.gallery figure {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gallery figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  text-align: center;
}

