/* 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);
}
.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;
  text-align: center;
}
.project-media img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: auto;
}

/* Details */
.project-details p {
  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 {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: Arial, Helvetica, sans-serif;
}

/* Each blog item */
.blog-list-item {
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #1a1a1a;
    text-align: center;
}

/* Hover effect for each item */
.blog-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
}

/* Blog title */
.blog-list-item h3 {
    margin: 0;
    font-size: 1.25rem;
}

/* Optional: date or metadata */
.blog-list-item .blog-meta {
    font-size: 0.85rem;
    color: #777;
}

/* 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;
    }
}
