/* ---- Blog list: toolbar (sort) ---- */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 32px;
}

.blog-sort-label {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #091c42;
  margin-bottom: 0;
}

.blog-sort-select {
  border: 1px solid #091c42;
  background-color: #fff;
  color: #091c42;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 10px 44px 10px 16px;
  cursor: pointer;
  /* Custom chevron: native arrow hugs the right border */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23091c42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.blog-sort-select:focus-visible {
  outline: 3px solid #ffbe4a;
  outline-offset: 2px;
}

/* ---- Blog list: card grid ---- */
.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 32px;
  background-color: #fff;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 24px rgba(9, 28, 66, 0.15);
  color: inherit;
}

.blog-card:focus-visible {
  outline: 3px solid #091c42;
  outline-offset: 2px;
}

.blog-card-img {
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}

.blog-card-date {
  display: block;
  color: #ffbe4a;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Extra specificity: global ".inner-pages h2 { font-size: 3.2rem }" outranks
   a lone class selector and was inflating the card titles. */
.inner-pages h2.blog-card-title {
  font-size: 1.6rem;
  line-height: 1.4;
  font-weight: 700;
  color: #091c42;
  margin-bottom: 14px;
}

/* Read More: yellow bg, navy text (theme .p-btn colors), invert on hover */
.blog-card-btn {
  margin-top: auto;
  align-self: flex-start;
  background-color: #ffbe4a;
  border: 1px solid #ffbe4a;
  color: #091c42;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 12px 30px;
  transition: 0.3s;
}

.blog-card:hover .blog-card-btn,
.blog-card:focus-visible .blog-card-btn {
  background-color: #091c42;
  border-color: #091c42;
  color: #ffbe4a;
}

/* ---- Infinite scroll live region (visually hidden) ---- */
.blog-load-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Blog detail: banner ---- */
.blog-details-page .blog-banner-img {
  width: 100%;
  height: auto;
  max-height: 486px;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin-bottom: 20px;
}

/* ---- Blog detail: recent blogs slider ---- */
.recent-bog-slider .slick-list .recent-blog-box a {
  text-decoration: none;
  color: inherit;
}

.recent-bog-slider .slick-list .recent-blog-box img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
}

.recent-bog-slider .slick-list .recent-blog-box a:focus-visible {
  outline: 3px solid #091c42;
  outline-offset: 2px;
}

.recent-bog-slider .slick-list .recent-blog-box time {
  display: block;
  margin-bottom: 20px;
  color: #ffbe4a;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 767px) {
  .blog-toolbar {
    justify-content: space-between;
  }
  .blog-card {
    margin-bottom: 24px;
  }
}
