﻿/* Design Launcher — Blog post cards only (Elementor Posts widget) */

.ds-blog-page #content > .ast-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.ds-blog-page #primary {
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* Target Elementor Posts / Archive Posts cards */
.ds-el-posts article.elementor-post,
.elementor-widget-posts.ds-el-posts article.elementor-post,
.elementor-widget-archive-posts.ds-el-posts article.elementor-post,
.elementor-location-archive article.elementor-post,
.elementor-location-single article.elementor-post {
  background: #fff !important;
  border: 1px solid #E1D9F3 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px -16px rgba(111, 110, 110, 0.22) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
  margin: 0 !important;
}

.ds-el-posts article.elementor-post:hover,
.elementor-location-archive article.elementor-post:hover,
.elementor-location-single article.elementor-post:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 18px 40px -16px rgba(151, 71, 255, 0.28) !important;
  border-color: #D4C4F7 !important;
}

.ds-el-posts .elementor-post__thumbnail,
.ds-el-posts .elementor-post__thumbnail__link,
.elementor-location-archive .elementor-post__thumbnail,
.elementor-location-archive .elementor-post__thumbnail__link,
.elementor-location-single .elementor-post__thumbnail,
.elementor-location-single .elementor-post__thumbnail__link {
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #F3ECFF, #E5D8FD);
}

.ds-el-posts .elementor-post__thumbnail img,
.elementor-location-archive .elementor-post__thumbnail img,
.elementor-location-single .elementor-post__thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .35s ease !important;
  border-radius: 0 !important;
}

.ds-el-posts article.elementor-post:hover .elementor-post__thumbnail img,
.elementor-location-archive article.elementor-post:hover .elementor-post__thumbnail img,
.elementor-location-single article.elementor-post:hover .elementor-post__thumbnail img {
  transform: scale(1.045) !important;
}

.ds-el-posts .elementor-post__text,
.ds-el-posts .elementor-post__card,
.elementor-location-archive .elementor-post__text,
.elementor-location-archive .elementor-post__card,
.elementor-location-single .elementor-post__text,
.elementor-location-single .elementor-post__card {
  padding: 18px 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.ds-el-posts .elementor-post__badge,
.elementor-location-archive .elementor-post__badge,
.elementor-location-single .elementor-post__badge {
  position: static !important;
  display: inline-flex !important;
  align-self: flex-start !important;
  margin: 0 0 2px !important;
  background: #E5D8FD !important;
  color: #7B33E3 !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 5px 11px !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.7px !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

.ds-el-posts .elementor-post__title,
.elementor-location-archive .elementor-post__title,
.elementor-location-single .elementor-post__title {
  margin: 0 !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.2px !important;
}

.ds-el-posts .elementor-post__title,
.ds-el-posts .elementor-post__title a,
.elementor-location-archive .elementor-post__title,
.elementor-location-archive .elementor-post__title a,
.elementor-location-single .elementor-post__title,
.elementor-location-single .elementor-post__title a {
  color: #040430 !important;
  text-decoration: none !important;
}

.ds-el-posts article.elementor-post:hover .elementor-post__title,
.ds-el-posts article.elementor-post:hover .elementor-post__title a,
.elementor-location-archive article.elementor-post:hover .elementor-post__title a,
.elementor-location-single article.elementor-post:hover .elementor-post__title a {
  color: #9747FF !important;
}

.ds-el-posts .elementor-post__excerpt,
.elementor-location-archive .elementor-post__excerpt,
.elementor-location-single .elementor-post__excerpt {
  margin: 0 !important;
  color: #6F6D7D !important;
  font-family: 'Open Sans', system-ui, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  flex: 1 1 auto !important;
}

.ds-el-posts .elementor-post__excerpt p,
.elementor-location-archive .elementor-post__excerpt p,
.elementor-location-single .elementor-post__excerpt p {
  margin: 0 !important;
  color: inherit !important;
}

.ds-el-posts .elementor-post__meta-data,
.elementor-location-archive .elementor-post__meta-data,
.elementor-location-single .elementor-post__meta-data {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  color: #8A8898 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  font-family: 'Open Sans', system-ui, sans-serif !important;
}

.ds-el-posts .elementor-post__read-more,
.elementor-location-archive .elementor-post__read-more,
.elementor-location-single .elementor-post__read-more {
  margin: 4px 0 0 !important;
  align-self: flex-start !important;
  color: #9747FF !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.ds-el-posts .elementor-post__read-more:hover,
.elementor-location-archive .elementor-post__read-more:hover,
.elementor-location-single .elementor-post__read-more:hover {
  color: #ED4883 !important;
}

/* Hide avatar on cards for cleaner look */
.ds-el-posts .elementor-post__avatar,
.elementor-location-archive .elementor-post__avatar,
.elementor-location-single .elementor-post__avatar {
  display: none !important;
}

/* Pagination */
.ds-el-posts .elementor-pagination,
.elementor-location-archive .elementor-pagination {
  margin-top: 36px !important;
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
}

.ds-el-posts .elementor-pagination .page-numbers,
.elementor-location-archive .elementor-pagination .page-numbers {
  min-width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  border: 1px solid #E1D9F3 !important;
  background: #fff !important;
  color: #48485A !important;
  font-family: Montserrat, sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  padding: 0 12px !important;
}

.ds-el-posts .elementor-pagination .page-numbers.current,
.ds-el-posts .elementor-pagination .page-numbers:hover,
.elementor-location-archive .elementor-pagination .page-numbers.current,
.elementor-location-archive .elementor-pagination .page-numbers:hover {
  background: #9747FF !important;
  border-color: #9747FF !important;
  color: #fff !important;
}

/* Single readable content */
.elementor-location-single .elementor-widget-theme-post-content {
  font-size: 17.5px;
  line-height: 1.8;
  color: #3F3E4D;
}
.elementor-location-single .elementor-widget-theme-post-content h2 {
  font-family: Montserrat, sans-serif;
  color: #040430;
}
.elementor-location-single .elementor-widget-theme-post-content a {
  color: #9747FF;
}

@media (max-width: 767px) {
  .ds-el-posts .elementor-post__title,
  .elementor-location-archive .elementor-post__title,
  .elementor-location-single .elementor-post__title {
    font-size: 16.5px !important;
  }
}
