/* Base font — larger and more readable */
body {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #2c2c2c;
}

p, li, td {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

/* Profile section */
.columns {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
}

/* Profile photo circular */
.columns img {
  border-radius: 50%;
  width: 220px !important;
  height: 220px !important;
  object-fit: contain;
  background: #f8f8f8;
  object-position: center top;
  border: 4px solid #18bc9c;
}

/* Headings */
h1 {
  font-size: 2.4rem !important;
  font-weight: 700 !important;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
}

h2 {
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  border-bottom: 3px solid #18bc9c;
  padding-bottom: 0.4rem;
  margin-top: 3rem;
  color: #1a1a2e;
}

h3 {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #1a1a2e;
  margin-top: 2rem;
}

/* Italic taglines under project headings */
h3 + p > em {
  font-size: 0.9rem !important;
  color: #18bc9c;
  letter-spacing: 0.01em;
}

/* Quote */
blockquote {
  border-left: 4px solid #18bc9c;
  background: #f0faf7;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.1rem !important;
  color: #2c2c2c;
  margin: 1.5rem 0;
}

/* Table */
table {
  width: 100%;
  font-size: 16px !important;
}

th {
  background-color: #f0faf7;
  font-weight: 600;
}

/* Links */
a {
  color: #18bc9c !important;
  text-decoration: none;
}

a:hover {
  color: #0e7c60 !important;
  text-decoration: underline;
}

/* Navbar */
.navbar {
  font-size: 15px !important;
  font-weight: 500;
}

/* Section divider spacing */
hr {
  margin: 2.5rem 0;
  border-color: #e0e0e0;
}

/* Mobile */
@media (max-width: 600px) {
  .columns {
    flex-direction: column;
    text-align: center;
  }
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.4rem !important; }
}

/* Zigzag project layout */
.project-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 2rem 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e8e8;
  min-height: 300px;
}

.project-row.reverse {
  flex-direction: row-reverse;
}

.project-row .project-img img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: block;
  padding: 8px;
}

.project-row .project-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: block;
}

.project-row .project-info {
  flex: 1;
}

.project-row .project-info h3 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .project-row,
  .project-row.reverse {
    flex-direction: column;
  }
  .project-row .project-img {
  flex: 0 0 45%;
    width: 100%;
  }
}

/* Wider content area */
.page-columns .column-body,
.page-columns .column-page,
#quarto-content,
.quarto-container {
  max-width: 1200px !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

body > .page-columns {
  max-width: 100% !important;
}
/* ── Timeline: Work Experiences ── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d0ede6;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
}

.timeline-dot {
  position: absolute;
  left: -2.08rem;
  top: 1.1rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #18bc9c;
  z-index: 1;
}

.timeline-dot.filled {
  background: #18bc9c;
}

.timeline-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.timeline-card:hover {
  box-shadow: 0 4px 18px rgba(24,188,156,0.12);
  border-color: #b2e4d8;
}

.tl-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin: 0 0 0.2rem 0 !important;
}

.tl-org {
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.tl-date {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.tl-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: #e6f7f3;
  color: #18bc9c;
  border: 1px solid #b2e4d8;
  border-radius: 20px;
  padding: 1px 9px;
  vertical-align: middle;
  margin-left: 0.4rem;
  letter-spacing: 0.02em;
}

.tl-skills {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-size: 0.75rem;
  background: #f0faf7;
  color: #0e7c60;
  border: 1px solid #c8ede4;
  border-radius: 20px;
  padding: 2px 10px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .timeline {
    padding-left: 1.8rem;
  }
}

/* ── Hero section ── */
.hero-section {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2rem 0 1rem;
}

.hero-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 0 0 200px;
}

.hero-photo {
  border-radius: 50%;
  width: 200px !important;
  height: 200px !important;
  object-fit: cover;
  object-position: center top;
  border: 4px solid #18bc9c;
  display: block;
}

.hero-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.hero-links a {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.82rem !important;
  font-weight: 500;
  color: #18bc9c !important;
  background: #f0faf7;
  border: 1px solid #c8ede4;
  border-radius: 20px;
  padding: 4px 10px;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s;
}

.hero-links a:hover {
  background: #d6f4ed;
  border-color: #18bc9c;
  color: #0e7c60 !important;
}

.hero-text-col {
  flex: 1;
}

.hero-text-col h1 {
  margin-top: 0 !important;
}

/* ── Interests two-column grid ── */
.interests-grid {
  display: grid;                  /* make sure this is there */
  grid-template-columns: 1fr 1fr; /* make sure this is there */
  padding-left: 1.2rem;
  list-style: disc;
  gap: 0.35rem 1.5rem;
}

.interests-grid div {
  padding: 0.2rem 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-photo-col {
    flex: none;
  }
  .interests-grid {
    grid-template-columns: 1fr;
  }
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.project-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 4px 18px rgba(24,188,156,0.12);
  border-color: #b2e4d8;
}

.project-card-img img {
  width: 100%;
  height: 180px;
  object-fit: contain;  /* changed from cover to contain */
  display: block;
  background: #f8f9fa;  /* adds a light grey background to fill empty space */
}

.project-card-body {
  padding: 1rem 1.2rem;
}

.project-card-body h3 {
  font-size: 1rem !important;
  margin: 0 0 0.4rem 0 !important;
}

.card-tags {
  font-size: 0.78rem !important;
  color: #18bc9c;
  margin-bottom: 0.6rem;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}