/* Profile Card Styling */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: var(--md-default-bg-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.card h3 { margin: 10px 0 5px; }
.card p { margin: 0; font-size: 0.9em; color: gray; }

/* Apply shared background settings to both header and tabs */
.md-header, .md-tabs {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../assets/format/header-1900x640.webp');
  
  /* --- 1. CONTROL THE SCALING --- */
  /* 'cover' zooms to fill. Try '100vw' to fit width perfectly. */
  background-size: 100vw auto; 

  /* --- 2. CONTROL THE CROP --- */
  /* 'center top' ensures the top of the photo is never cropped off. */
  background-position: center -250px; 

  /* locks image to the window for the seamless effect */
  background-attachment: fixed; 
  background-repeat: no-repeat;
}

/* Optional: Clean up the tab borders */
.md-tabs {
  box-shadow: none;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* 1. Make the Site Title bigger and bolder */
.md-header__title {
  font-size: 1.5rem; /* Default is roughly 1.1rem */
  font-weight: 800;  /* Makes it extra bold */
  line-height: 1.8;  /* Adjusts spacing if it gets too tall */
}

/* 2. Make the Navigation Tabs bigger */
.md-tabs__link {
  font-size: 0.9rem; /* Default is roughly 0.7rem */
  font-weight: 600;  /* Makes it semi-bold */
}

/* Increase the Logo Size */
.md-header__button.md-logo img, 
.md-header__button.md-logo svg {
  height: 42px;    /* Default is usually 24px. 40-45px fits best. */
  width: auto;     /* Maintains the aspect ratio */
}

/* Style the auto-generated blog posts as cards */
article.md-post {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    background-color: var(--md-default-bg-color);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Add a subtle floating effect when you hover over the card */
article.md-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Fix spacing for the title inside the card */
article.md-post > header > h2 {
    margin-top: 0;
}