/* ========== Base Styles ========== */
body {
  font-family: 'Garamond', serif;
  background-color: #f7fafc;
  color: #222;
  margin: 0;
  padding: 0;
}

/* ========== Typography ========== */
h1 {
  text-align: center;
  color: #5a5146;
  font-size: 3rem;  /* You can adjust this */
  margin-top: 2rem;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: #675244;
}

a:hover {
  text-decoration: underline;
}

/* ========== Layout ========== */
.content {
  max-width: 900px;
  margin: 2rem auto 0 auto;
  padding: 0 2rem;
}

/* ========== Navbar ========== */
nav {
  background-color: #e6e9ed;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #c5cad1;
}

nav a {
  margin: 0 20px;
  text-decoration: none;
  color: #5a4a3d;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #8a4d0f;
}

/* ========== Project Cards ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.project-card h2 {
  font-size: 1.5rem;
  color: #5a5146;
  margin-bottom: 0.5rem;
}

.project-card p {
  margin-bottom: 1rem;
}

.project-card a {
  color: #8a4d0f;
  font-weight: bold;
}
.project-card a:hover {
  text-decoration: underline;
}

.project-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* ─────────── Project detail pages ─────────── */
.project-hero {
  max-width: 1300px;
  text-align: center;
  margin: 0 auto 2rem;   /* auto-left/right, 2 rem bottom */
  padding: 0 2rem;
}

.project-hero .hero-img {
  width: 120%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 1rem;
  margin-left: -10%;
}

.project-hero h1 { font-size: 2rem; margin: 0.5rem 0; }
.subtitle         { color: #666; }

section           { margin-bottom: 2.5rem; }
section h2        { color: #5a5146; margin-bottom: 0.75rem; }

figure            { margin: 0; }
.setup-img,
.result-img       { width: 100%; border-radius: 6px; }
.tmm-img { max-width: 300px; width: 100%; height: auto; display: block; margin: 0 auto; }
.HT-img { max-width: 500px; width: 100%; height: auto; display: block; margin: 0 auto; }
/* Global figure captions */
figcaption {
  margin-top: 0.5rem;
  color: #666;              /* harmonizes with your .subtitle */
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  font-style: italic;       /* optional; remove if you prefer non-italic */
}

/* Narrow, centered caption under constrained figures */
.setup-figure figcaption {
  max-width: 60ch;          /* readable line length */
  margin-left: auto;
  margin-right: auto;
}


/* ========== Blog Cards ========== */

.back-link        { margin-top: 3rem; text-align: center; }

.blog-grid        { display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:2rem; }
.blog-card        { background:#fff; border:1px solid #ddd; border-radius:8px; overflow:hidden; box-shadow:0 2px 6px rgba(0,0,0,.05); transition:transform .15s ease; color:inherit; }
.blog-card:hover  { transform:translateY(-3px); }
.blog-card img    { width:100%; height:200px; object-fit:cover; }
.blog-card-body   { padding:1rem 1.25rem; }
.blog-card h3     { margin:0 0 .5rem; color:#5a5146; }
.blog-meta        { font-size:.85rem; color:#777; margin-bottom:.5rem; }
.continue         { font-weight:bold; color:#8a4d0f; }

/* ========== Blog Posts ========== */

.post-img-hero {
  text-align: center;
  margin: 2rem 0;
}

.post-img-hero img {
  max-width: 100%;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
  font-size: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-nav a {
  text-decoration: none;
  color: #6a4e35;
  font-weight: 500;
  transition: color 0.3s ease;
}

.post-nav a:hover {
  color: #8a4d0f;
  text-decoration: underline;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-nav-left,
.post-nav-center,
.post-nav-right {
  flex: 1;
  text-align: center;
}

.post-nav-left {
  text-align: left;
}
.post-nav-right {
  text-align: right;
}
