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

html, body {
  height: 100%;
  margin: 0; 
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column; 
  min-height: 100vh;  
}

/* Nav */
header {
  color: #fff;
  padding: 1rem;
  flex: 0 0 auto;
}

nav {
  display: flex;
  gap: 1rem;
}
nav a {
  color: #000000;
  text-decoration: none;
}
nav a:hover { text-decoration: underline; }
nav a.active {
  text-decoration: underline;
}

main {
  flex: 1 0 auto;
  padding: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

/* Sections */
section {
  margin: 2rem 0;
}
h1, h2, h3 {
  margin-bottom: 0.5rem;
  color: #222;
}
p { margin-bottom: 1rem; }

/* Projects Grid */
.projects .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.card {
  background: white;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.card img {
  max-width: 100%;
  border-radius: 4px;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 3rem;   /* space between project panels */
  margin-top: 2rem;
}

.project {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
}

/* Header */
.project-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.project-header a {
  color: #0066cc;
  text-decoration: none;
}
.project-header a:hover {
  text-decoration: underline;
}

/* Media area */
.project-media {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; /* space between images */
}

.project-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Details */
.project-details p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.meta {
  list-style: none;
  padding: 0;
  margin: 0;
}
.meta li {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.meta strong {
  font-weight: 600;
}


i {
  font-size: 14px;
}

/* Blog list wrapper */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  justify-content: start; /* snap grid items to the left */
}

/* Each blog item (card) */
.blog-list-item {
  display: block; /* make the whole card clickable */
  padding: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb; /* subtle border */
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  width: 250%;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  margin: 0;
  color: inherit;
}


/* Hover effect */
.blog-list-item:hover {
  transform: translateY(-4px);
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  color: #1a49ad;
}

/* Subtle active press effect */
.blog-list-item:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Responsive for smaller screens */
@media (max-width: 600px) {
    .blog-list {
        padding: 0 0.5rem;
    }
    .blog-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-list-item .blog-meta {
        margin-top: 0.5rem;
    }
}



.project-features {
  margin: 1.5rem 2rem;
}

.project-features li {
  position: relative;
  padding-left: 1.5rem;         /* space for custom bullet */
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

