/* CSS Document */

.blog-container{
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

article{
margin-top:3em;
}
article .container{
max-width:800px;
margin-left:auto;
margin-right:auto;
}


article img{
max-width:800px;
margin-top:1em;
margin-bottom:1em;
}

article h1{
margin-bottom:0em;

}
article h2{
margin-top:1.25em;
margin-bottom:.5em;
font-weight:600;
letter-spacing: -0.05em;
}

article p{
line-height:1.75em;
font-weight:300;
letter-spacing: -0.0125em;
}

article b{
font-weight:600;
}
article strong{
font-weight:600;
}

article ul{
padding-left:40px;
}

article ol{
padding-left:40px;
}


article ol li {
  counter-increment: item;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

article ol li::before {
  content: counter(item);
  background-color: #DDDDDD;
  color: #111111;
  font-weight: bold;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  margin-top: 3px;
    
  font-size: 14px;
  font-height:20px;
}

.article-title{
font-size:2.5em;
margin-left: -0.025em;
line-height:1em;
letter-spacing: -0.05em;

_text-transform:uppercase;
_text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* very subtle shadow */

background: linear-gradient(45deg, #333, #000);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
padding-bottom:0.25em;
padding-top:0.25em;

}

.article-subtitle{
margin-top: -0.25em; 
font-weight:400;
color:#666;
font-size:1.25em;
letter-spacing: -0.025em;

margin-bottom:0.5em;
}

.article-date{

}

.article-author{
margin-top:0.5em;
}



/********************
article list
********************/
.blog-article-list-section{
margin-top:2em;
}
.blog-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-article-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.article-list-image {
  width: 220px;        /* small thumbnail */
  height: 140px;        /* maintain aspect ratio or adjust */
  object-fit: cover;    /* crops image nicely */
  flex-shrink: 0;       /* prevent shrinking */
  border-radius: 5px;   /* optional rounded corners */
   transition: filter 1s ease; /* smooth 1-second transition */
}

.article-list-image:hover{
  filter: brightness(80%); /* darken the image */
}

.article-list-text {
  flex: 1; /* take remaining space */

}
.article-list-date {
color:#666;
font-size:0.9em;
}


.article-list-title {
  font-size: 1.2em;
  line-height:1.25em;
  letter-spacing: -0.025em;

}

.article-list-title:hover {
  text-decoration: underline;
}

.article-list-excerpt {
  margin: 5px 0 0;
  color: #666;
  line-height: 1.5;
}


/* article-grid*/


.blog-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  column-gap: 20px;
  row-gap: 40px;   
  list-style: none;
  padding: 0;
  margin: 0;
}


.blog-article-grid-item {
  background: #fff;
  _border: 1px solid #ddd;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding:0px;
}


.article-grid-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-grid-text {

}

/* Mobile: stack in one column */
@media (max-width: 600px) {
  .blog-article-grid {
    grid-template-columns: 1fr; /* full width column */
  }
}

