/* ---------- Swiper ---------- */
.trending-articles {
  position: relative;
  /* margin-top: 30px; */
  overflow: hidden;
  width: 101%;
}

.ta-swiper {
  overflow: hidden;
}

/* ---------- Slide: 50 / 50 ---------- */
.ta-slide__inner {
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: 320px;
}

.ta-slide__thumb-link {
  display: block;
  overflow: hidden;
  height: 100%;
}

.ta-slide__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ta-slide__thumb-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ta-slide__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ta-slide__inner:hover .ta-slide__thumb {
  transform: scale(1.03);
}

.ta-slide__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 25px 30px;
  background: #f6f6f6;
}

.ta-slide__meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ta-slide__meta a {
  color: #7d7d7d;
}

.ta-slide__meta-sep {
  color: #ccc;
}

.ta-slide__cat {
  color: #777;
  text-decoration: none;
  transition: color 0.15s;
}

.ta-slide__cat:hover {
  color: #111;
}

.ta-slide__heading {
  font-size: 22px;
}

.ta-slide__heading a {
  color: inherit;
  text-decoration: none;
}

.ta-slide__heading a:hover {
  opacity: 0.7;
  color: #111;
}

.ta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 0 2px; */
  position: absolute;
  bottom: 2em;
  width: 42%;
  margin-left: auto;
  right: 2em;
  z-index: 9;
}

.ta-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ta-pagination .swiper-pagination-bullet {
  width: 45px;
  height: 2px;
  border-radius: 2px;
  background: #ccc;
  opacity: 1;
  margin: 0 !important;
  transition:
    background 0.2s,
    width 0.2s;
  display: inline-block;
}

.ta-pagination .swiper-pagination-bullet-active {
  background: #111;
}

.ta-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ta-btn-prev,
.ta-btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--primary-color) !important;
  transition: opacity 0.2s;
  line-height: 1;
}

.ta-btn-prev:hover,
.ta-btn-next:hover {
  opacity: 1;
  background-color: transparent !important;
}

.ta-btn-prev.swiper-button-disabled,
.ta-btn-next.swiper-button-disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}
.ta-btn-next svg,
.ta-btn-prev svg {
  color: var(--secondary-color);
}
.ta-nav button {
  background: transparent !important;
}

.post-card {
  margin-bottom: 1.5em;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.post-card:hover {
  transform: translateY(-6px);
}
.thumb-feature-bg {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  width: 100%;
}
.card-body {
  padding: 1em;
}

.search-form {
  /* display: inline-block; */
  align-items: center;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 5px 10px;
  background-color: transparent;
  min-width: 50%;
  position: relative;
  max-height: 50px;
}

.search-form .search-field {
  flex: 1;
  border: none;
  outline: none;
  color: #5c5c5c;
  background: transparent;
  font-family: inherit;
  display: block;
  /* padding: 0px; */
  margin-right: 15px;
}

.search-form .search-field::placeholder {
  color: #aaa;
}

.search-form .search-submit {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.search-form .search-submit {
  text-indent: -9999px;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent !important;
  padding: 0px !important;
}

.search-form label {
  width: 100%;
}

.related-blog-post-title a {
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8em;
  color: var(--color-site);
}
.related-blog-meta {
  font-size: 0.9em;
}

.related-blog-thumb,
.next-project-thumbnail {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
  margin-bottom: 16px;
  display: block;
  width: 100%;
}

.related-blog-thumb img,
.next-project-thumbnail img.next-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.post .wp-post-image {
  aspect-ratio: 16 / 9;
}
.main-cat-section a,
.category-list a {
  color: var(--color-site);
}
.blog-sidebar {
    top: 3em;
}
/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .ta-slide__inner {
    grid-template-columns: 1fr;
    grid-template-rows: 220px auto;
  }

  .ta-slide__content {
    padding: 15px 20px;
    min-height: 180px;
  }
  .ta-footer {
    width: 90%;
    left: 0%;
    position: relative;
    margin: 0 auto;
    padding: 1em 0px;
    bottom: 0px;
  }
}
