/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/


/* === CUSTOM STYLING FOR DISPLAY POSTS === */
.display-posts-listing {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.display-posts-listing .listing-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 calc(33.333% - 20px);
  padding: 15px;
  box-sizing: border-box;
  background: #fafafa;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.display-posts-listing .listing-item h2 {
  font-size: 1.3em;
  color: #000 !important;
  font-weight: bold;
  margin: 10px 0;
  text-align: center;
}

.display-posts-listing .listing-item img {
  order: 2;
  margin: 10px auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.display-posts-listing .excerpt {
  order: 3;
  font-size: 0.95em;
  text-align: left;
}

/* ✅ Make the visible header sticky */
.ast-primary-header-bar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #fff !important;
  width: 100%;
  height: 100px; /* Adjust this to match your actual header */
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ✅ Offset the body content */
body {
  padding-top: 100px; /* Match height above */
}
