/**
 * More Articles V2 Shortcode Styles
 */

/* --- Skeleton Loader Styles --- */
.mav2-skeleton {
  animation: mav2-skeleton-loading 1.5s linear infinite alternate;
  background-color: #ddd; /* Slightly different base color */
  border-radius: 4px;
}

@keyframes mav2-skeleton-loading {
  0% {
    background-color: hsl(200, 20%, 85%);
  }
  100% {
    background-color: hsl(200, 20%, 95%);
  }
}

.mav2-skeleton-image {
  height: 200px !important;
  max-height: 200px !important;
  min-width: 35% !important;
  max-width: 35% !important;
}

.mav2-skeleton-category {
  height: 14px;
  width: 25%;
  margin-bottom: 8px;
}

.mav2-skeleton-title {
  height: 28px;
  width: 90%;
  margin-bottom: 10px;
}

.mav2-skeleton-excerpt {
  height: 40px; /* 2 lines approx */
  width: 95%;
  margin-bottom: 10px;
}

.mav2-skeleton-byline {
  height: 14px;
  width: 40%;
}

/* --- Loaded Content Styles --- */
.mav2-app {
  /* Container for the whole V2 app */
  margin-bottom: 20px;
}

.mav2-article-parent-container {
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 0.25px dotted #000;
}

.mav2-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.mav2-article-container {
  display: flex;
  column-gap: 20px;
}

.mav2-featured-image {
  flex-shrink: 0;
  height: 200px !important;
  max-height: 200px !important;
  min-width: 35% !important;
  max-width: 35% !important;
  padding: 0 !important;
}

/* Keep the shortcode crop when a theme's general image reset loads afterward. */
.mav2-app .mav2-featured-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  border-radius: 4px; /* Optional */
}

.mav2-article-info {
  flex-grow: 1;
  min-width: 0; /* Prevent flex item overflow */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mav2-category {
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase; /* Optional */
  color: var(--tnr-red);
  text-transform: uppercase;
  font-family: "Karla", "EB Garamond", serif;
  font-size: 0.75rem;
  font-weight: 700;
  box-sizing: border-box;
}

.mav2-title {
  color: var(--tnr-black);
  font-family: "Kepler-std Semicondensed Display", "EB Garamond", serif;
  font-size: 29px!important;
  font-weight: bold!important;
  line-height: 28px!important;
  margin-bottom: 0 !important;
}

.mav2-excerpt {
  text-align: left;
  color: var(--tnr-text);
  font-family: "Karla", "EB Garamond", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2em;
}

.mav2-byline {
  text-align: left;
  color: var(--tnr-text);
  font-family: "Karla", "EB Garamond", serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block !important;
}

.mav2-divider-separator {
  display: none; /* Hide the elementor separator if not needed, or style it */
}

/* --- Pagination Styles --- */
.mav2-pagination {
  text-align: center;
  display: flex;
  gap: 5px;
}

.mav2-pagination span {
  font-size: 1rem;
  text-transform: uppercase !important;
  display: flex;
  align-items: center;
  column-gap: 10px !important;
  cursor: pointer;
}

.mav2-pagination .mav2-current-page {
  color: var(--tnr-red) !important;
}

.mav2-pagination .mav2-ellipsis {
  border: none;
  background-color: transparent;
  cursor: default;
  padding: 6px 4px;
}

/* .mav2-pagination span:not(.mav2-current-page):not(.mav2-ellipsis):hover {
  background-color: #f0f0f0;
  border-color: #bbb;
} */

.mav2-pagination .mav2-button {
  /* Specific styles for buttons if needed, e.g., icons */
  font-size: 0.75rem !important;
  border-radius: 50%;
  padding: 10px 13px;
  background-color: var(--tnr-red);
  border-color: var(--tnr-red);
  color: #fff;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 767px) {
  .mav2-article-container {
    flex-direction: row; /* Stack image and info */
  }

  .mav2-featured-image {
    width: 100%; /* Full width */
    max-width: none;
    margin-right: 0;
    height: 150px!important;
    max-height: 150px!important;
    margin-bottom: 15px; /* Space below image */
  }
  
  .mav2-app .mav2-featured-image img{
      height: 150px!important;
      max-height: 150px!important;
  }

  .mav2-skeleton-image {
    min-width: 36% !important;
    max-width: 36% !important;
    height: 150px !important;
    max-height: 150px !important;
  }

  /* .mav2-pagination span {
    padding: 4px 8px;
    font-size: 0.85em;
  } */
}
