/* Wrapper: grid of posts */
.ar-latest-posts {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-items: center;    /* center items in their grid cells */
  margin: 0;
  padding: 0;
  overflow: visible;        /* allow shadows to be visible */
}
/* Post meta (author & date) */
.ar-latest-post-meta {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: #777;
  font-style: italic;
}
/* Author/date meta icons */
.ar-latest-post-meta {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: #8a8a8a;
}

.ar-latest-post-meta i {
  margin-right: 0.3em;
  color: var(--ar-accent) !important;
}

/* Individual post item */
.ar-latest-post-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);  /* stronger, more visible shadow */
  overflow: hidden;
  background: #f6f7f8;
  width: 100%;
  padding: 15px;
}

/* Featured image wrapper & image */
.ar-latest-post-image-wrapper {
  width: 100%;
  overflow: hidden;
}
.ar-latest-post-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Title styling */
.ar-latest-post-title {
  margin: 1.2rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.2;
}
.ar-latest-post-title a {
  color: inherit;
  text-decoration: none;
}
.ar-latest-post-title a:hover {
  text-decoration: none;
  color: var(--ar-accent) !important;
}

/* Excerpt */
.ar-latest-post-excerpt {
  margin-bottom: 0.75rem;
  margin-top: 1rem;
  color: var(--ar-paragraph) !important;
  flex-grow: 1;
}

/* Read More button */
.ar-latest-post-read-more {
  display: inline-block;
  box-sizing: border-box;                 /* include border in width/height */
  width: 120px;
  padding: 6px 18px;
  background: var(--ar-accent) !important;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 2px solid transparent;          /* reserve space so no shift */
  transition: background-color 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease;     /* animate border color too */
}

.ar-latest-post-read-more:hover,
.ar-latest-post-read-more:focus-visible {
  background-color: transparent !important;
  color: var(--ar-accent) !important;
  border-color: var(--ar-accent) !important;
  text-decoration: none;                   /* prevent theme underline on hover */
}


