/* Base styles */
html {
  font-size: 18px;
  overflow-y: scroll;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  max-width: 1200px; /* Increased from 1000px */
  margin: 0 auto;
  padding: 0 1rem;
  background-color: #f5f5f5;
  padding-top: 0; /* Remove this line if it exists */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

h1, h1.title {
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

h2 {
  font-size: 1.5rem;
  margin: 1rem 0 0.75rem; /* Reduced top margin */
}

h3 {
  font-size: 1.5rem;
  margin: 1rem 0 0.75rem;
}

/* Add this new style for h2 elements in blog posts */
#post h2 {
  margin-top: 2rem; /* Add back the top margin for h2 in blog posts */
}

p, ul, ol {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

div {
  font-size: 1rem;
}

/* Navigation styles */
.site-header {
  background-color: #ffffff;
  padding: 0;
  border-bottom: 1px solid #e7e7e7;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 60px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
}

.site-title {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-title a {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  white-space: nowrap; /* Prevent the title from wrapping */
}

.nav-links {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 2rem; /* Increased from 1rem to 2rem */
}

.nav-links a {
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

.menu-toggle {
  display: none;
  align-items: center;
  height: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
  .site-nav {
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }

  .menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 10px;
    margin: 3px 0;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    display: none;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0; /* Changed to vertical margin for mobile */
  }
}

/* Card styles */
.card {
  border-radius: 5px;
  border: 2px dashed #ccc;
  background-color: #f7f7f7;
  margin: 0.5rem;
  padding: 0.25rem;
  min-height: 15rem;
  display: inline-block;
  text-align: center;
  color: #333;
  text-decoration: none;
}

.card h1 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

.card p {
  font-size: 0.9rem;
}

/* Other styles */
time {
  font-weight: bold;
  font-size: 1rem;
}

code {
  color: #000000;
}

blockquote {
  background: #f9f9f9;
  border-left: 1.5rem solid #ccc;
  margin: 1.5rem 1.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
}

.callout {
  background-color: #EADBA4;
  padding: 1rem;
  padding-left: 2rem;
  position: relative;
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* Profile section */
.profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #ffffff; /* Changed from #f0f4f8 to #ffffff */
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-right: 2rem;
    border: 3px solid #f0f4f8; /* Changed from #ffffff to #f0f4f8 for contrast */
    object-fit: cover;
}

.bio h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.bio p {
    color: #34495e;
    font-size: 1.1rem;
    max-width: 600px;
}

/* Featured projects */
.featured-projects {
    margin-bottom: 2rem;
}

/* Content section styles */
.content-container {
  margin-bottom: 2rem;
}

.content-section {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.content-section h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
}

.content-section ul {
  padding-left: 1.5rem;
}

.contact-button {
  display: inline-block;
  background-color: #446688;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #335577;
  text-decoration: none;
  color: #ffffff;
}

.post-item {
  margin-bottom: 1.5rem;
}

.post-item .title {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.post-item .excerpt {
  font-size: 0.9rem;
  color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  body {
    padding: 0 0.5rem;
  }

  .site-nav {
    /* flex-direction: column; */
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 1rem;
  }

  .nav-links li {
    margin-left: 0;
    margin-right: 1rem;
  }

  .column {
    width: 100%;
    float: none;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
  }

  .profile-image {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Adjust main content to account for fixed header */
.site-content {
  padding-top: 80px; /* Increase this value if needed */
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  max-width: 1200px; /* Add this line */
  margin: 0 auto; /* Add this line to center the content */
}

/* Blog layout */
.blog-container {
  display: flex;
  gap: 3rem;
}

.main-content {
  flex: 4; /* Increased from 3 to 4 to make it larger */
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-sidebar {
  flex: 2; /* Keep this as is */
  min-width: 250px; /* Reduced from 300px to 250px */
}

.post-title {
  margin-bottom: 1rem; /* Increased from 0.5rem to 1rem */
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem; /* Increased from 1rem to 1.5rem */
}

.read-more {
  display: inline-block;
  margin-top: 1.5rem; /* Increased from 1rem to 1.5rem */
  color: #007bff;
  text-decoration: none;
}

.recent-posts {
  list-style-type: none;
  padding: 0;
}

.recent-posts li {
  margin-bottom: 1.5rem; /* Increased from 1rem to 1.5rem */
}

.recent-posts a {
  display: block;
  color: #333;
  text-decoration: none;
}

.recent-posts .post-date {
  display: block;
  font-size: 0.8rem;
  color: #666;
}

.archive-link {
  margin-top: 3rem; /* Increased from 2rem to 3rem */
}

/* Responsive design for blog layout */
@media (max-width: 1300px) { /* Increased from 1100px */
  .blog-container {
    flex-direction: column;
  }

  .blog-sidebar {
    order: 1;
  }

  .main-content {
    order: 0;
  }
}

.banner {
  text-align: center;
  background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%);
}

/* Blog post styles */
#post {
  background-color: #ffffff;
  padding: 2.5rem; /* Increased from 2rem to 2.5rem */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 3rem; /* Increased from 2rem to 3rem */
}

#post-image {
  max-height: 300px;
  height: auto;
  display: block;
  margin: 1.5rem auto; /* Increased from 1rem to 1.5rem */
}

#post img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.title {
  margin-top: 0;
  margin-bottom: 1.5rem; /* Increased from 1rem to 1.5rem */
}

#time {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem; /* Increased from 1rem to 1.5rem */
}

/* Blog sidebar styles */
.sidebar-section {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.project-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  /* Remove display: flex and justify-content: center */
  /* Remove min-height */
  /* Remove box-shadow */
  /* Remove transition */
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: #333;
}

.project-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  /* Remove flex-grow */
}

.project-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
  /* Remove align-self */
}

/* Project grid layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Homepage specific styles */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.featured-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.25rem;
}

.featured-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #666;
}

/* Specific adjustments for content sections */
.content-section h2 {
  margin-top: 0; /* Remove top margin for h2 in content sections */
}

.main-content h2 {
  margin-top: 0; /* Remove top margin for h2 in main content */
}

/* Consulting page - Relevant Articles styles */
.content-section .post-item {
  margin-bottom: 1rem;
}

.content-section .post-item .title {
  display: inline;
  font-size: 1rem;
  font-weight: normal;
  color: #007bff;
  text-decoration: none;
}

.content-section .post-item .title:hover {
  text-decoration: underline;
}

.content-section .post-item .excerpt {
  display: inline;
  font-size: 1rem;
  color: #666;
  margin-left: 0.5rem;
}

/* Footer styles */
.site-footer {
    background-color: #f5f5f5;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Add this if it doesn't exist already */
.card-container {
    margin-top: 1rem;
}

/* Adjust this if it already exists */
h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Dentropy Promo Styles */
.dentropy-promo {
    background-color: #ffffff;
    border-left: 3px solid #007bff;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dentropy-promo h4 {
    color: #007bff;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.dentropy-promo p {
    margin: 0 0 0.75rem 0;
    color: #333;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: #ffffff;
}

/* Add this near the top of your CSS file, after the .site-content rule */
.site-content main {
  padding-top: 2rem;
}

/* Contact page styles */
.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: #e9ecef;
}

.contact-item svg {
    margin-right: 0.5rem;
}

td {
    padding: 0.5ch;
}

