/* TSF project widget safety only. Card visual design stays from Oxpins parent theme. */
.tsf-projects-widget .causes-one__title,
.tsf-projects-widget .causes-one__title a,
.tsf-projects-widget .causes-one__text,
.tsf-projects-widget .causes-one__goals {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.tsf-projects-widget .causes-one__img a {
  display: block;
}

.tsf-projects-widget .causes-one__img img {
  display: block;
}

/* TSF project single page: keep Oxpins post layout. Only image badge text and optional project fields are adjusted. */
.single-tsf_project_item .tsf-project-single__group-badge {
  width: auto;
  min-width: 150px;
  max-width: 360px;
  padding: 8px 18px;
}

.single-tsf_project_item .tsf-project-single__group-badge p {
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
}

.single-tsf_project_item .tsf-project-single__details {
  margin-top: 30px;
  padding: 24px 28px;
  border: 1px solid #eee5d7;
  border-radius: 12px;
  background: #fff;
}

.single-tsf_project_item .tsf-project-single__support-line {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.single-tsf_project_item .tsf-project-single__support-line span {
  font-weight: 700;
}

.single-tsf_project_item .tsf-project-single__button {
  margin-top: 10px;
}


/* Single project spacing: keep a clean gap after the green title/banner section. */
.single-tsf_project_item .blog-details.tsf-project-single-wrap,
.single-tsf_project_item section.blog-details.tsf-project-single-wrap {
  padding-top: 105px !important;
  padding-bottom: 105px !important;
}

/* Single project featured image: no crop, no stretch, no oversized square/logo image. */
.single-tsf_project_item .tsf-project-single__thumbnail {
  position: relative;
  width: 100%;
  margin: 0 0 30px !important;
  padding: 24px 22px !important;
  border-radius: 12px;
  overflow: visible !important;
  background: #fff !important;
  text-align: center;
  line-height: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.055) !important;
}

.single-tsf_project_item .tsf-project-single__thumbnail img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 430px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  border-radius: 12px;
  box-shadow: none !important;
}

.single-tsf_project_item .tsf-project-single__group-badge {
  left: 30px;
  bottom: 30px;
  z-index: 2;
}

@media (max-width: 991px) {
  .single-tsf_project_item .blog-details.tsf-project-single-wrap,
  .single-tsf_project_item section.blog-details.tsf-project-single-wrap {
    padding-top: 75px !important;
    padding-bottom: 85px !important;
  }
}

@media (max-width: 767px) {
  .single-tsf_project_item .blog-details.tsf-project-single-wrap,
  .single-tsf_project_item section.blog-details.tsf-project-single-wrap {
    padding-top: 55px !important;
  }

  .single-tsf_project_item .tsf-project-single__thumbnail {
    padding: 16px 14px !important;
  }

  .single-tsf_project_item .tsf-project-single__thumbnail img {
    max-height: 340px !important;
  }
}

/* TSF single project sidebar: compact Oxpins blog-sidebar style, scoped only to project single pages. */
.single-tsf_project_item .sidebar .sidebar__single {
  border-radius: 12px !important;
  box-shadow: none !important;
}

.single-tsf_project_item .sidebar .sidebar__single.sidebar__search {
  padding: 30px !important;
  margin-bottom: 30px !important;
  background: var(--oxpins-extra) !important;
}

.single-tsf_project_item .sidebar .sidebar__search-form {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 60px !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.single-tsf_project_item .sidebar .sidebar__search-form input[type="search"],
.single-tsf_project_item .sidebar .sidebar__search-form input[type="text"] {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 0 78px 0 22px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--oxpins-gray, #6f7775) !important;
  font-size: 13px !important;
  line-height: 60px !important;
}

.single-tsf_project_item .sidebar .sidebar__search-form button {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 10px 10px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--oxpins-black) !important;
  background-color: var(--oxpins-black) !important;
  color: #fff !important;
  transition: background-color 220ms ease, background 220ms ease !important;
}

.single-tsf_project_item .sidebar .sidebar__search-form button i,
.single-tsf_project_item .sidebar .sidebar__search-form button i:before {
  color: #fff !important;
}

.single-tsf_project_item .sidebar .sidebar__search-form button:hover,
.single-tsf_project_item .sidebar .sidebar__search-form button:focus,
.single-tsf_project_item .sidebar .sidebar__search-form button[type="submit"]:hover,
.single-tsf_project_item .sidebar .sidebar__search-form button[type="submit"]:focus {
  background: var(--oxpins-base, #ffcd4b) !important;
  background-color: var(--oxpins-base, #ffcd4b) !important;
  color: #fff !important;
}

.single-tsf_project_item .sidebar .sidebar__search-form button:hover i,
.single-tsf_project_item .sidebar .sidebar__search-form button:focus i,
.single-tsf_project_item .sidebar .sidebar__search-form button:hover i:before,
.single-tsf_project_item .sidebar .sidebar__search-form button:focus i:before {
  color: #fff !important;
}

.single-tsf_project_item .sidebar .sidebar__search-form input::placeholder {
  color: var(--oxpins-black) !important;
  opacity: 1 !important;
}

.single-tsf_project_item .sidebar .sidebar__search-form input::-webkit-input-placeholder {
  color: var(--oxpins-black) !important;
  opacity: 1 !important;
}

.single-tsf_project_item .sidebar .sidebar__search-form input::-moz-placeholder {
  color: var(--oxpins-black) !important;
  opacity: 1 !important;
}

.single-tsf_project_item .sidebar .sidebar__search-form input:-ms-input-placeholder {
  color: var(--oxpins-black) !important;
  opacity: 1 !important;
}

.single-tsf_project_item .sidebar .sidebar__post {
  padding: 32px 24px 28px !important;
  background: var(--oxpins-extra) !important;
}

.single-tsf_project_item .sidebar .sidebar__title {
  margin-bottom: 20px !important;
}

.single-tsf_project_item .sidebar .sidebar__post-list,
.single-tsf_project_item .sidebar .sidebar__post-list ul {
  margin: 0 !important;
  padding: 0 !important;
}

.single-tsf_project_item .sidebar .sidebar__post-list li,
.single-tsf_project_item .sidebar .sidebar__post-list li.tsf-sidebar-project-item {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 13px !important;
  min-height: 0 !important;
  margin: 0 0 18px !important;
  padding: 0 0 18px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(38, 61, 55, 0.09) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.single-tsf_project_item .sidebar .sidebar__post-list li:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

.single-tsf_project_item .sidebar .sidebar__post-list li:before,
.single-tsf_project_item .sidebar .sidebar__post-list li:after,
.single-tsf_project_item .sidebar .sidebar__post-list li a:before,
.single-tsf_project_item .sidebar .sidebar__post-list li a:after,
.single-tsf_project_item .sidebar .sidebar__post-content:before,
.single-tsf_project_item .sidebar .sidebar__post-content:after {
  content: none !important;
  display: none !important;
}

.single-tsf_project_item .sidebar .sidebar__post-image {
  position: static !important;
  flex: 0 0 68px !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.single-tsf_project_item .sidebar .sidebar__post-image a,
.single-tsf_project_item .sidebar .sidebar__post-image img {
  display: block !important;
  width: 68px !important;
  height: 68px !important;
  margin: 0 !important;
  border-radius: 8px !important;
}

.single-tsf_project_item .sidebar .sidebar__post-image img {
  object-fit: cover !important;
  object-position: center center !important;
}

.single-tsf_project_item .sidebar .sidebar__post-content {
  position: static !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.single-tsf_project_item .sidebar .sidebar__post-content h3,
.single-tsf_project_item .sidebar .sidebar__post-content .tsf-sidebar-project-meta {
  margin: 0 0 5px !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  color: var(--oxpins-gray, #6f7775) !important;
}

.single-tsf_project_item .sidebar .sidebar__post-content .tsf-sidebar-project-meta .icon-user {
  margin-right: 5px !important;
  color: var(--oxpins-base, #ffcd4b) !important;
  font-size: 12px !important;
}

.single-tsf_project_item .sidebar .sidebar__post-title,
.single-tsf_project_item .sidebar .sidebar__post-title a {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: var(--oxpins-black) !important;
  overflow-wrap: anywhere !important;
}

.single-tsf_project_item .sidebar .sidebar__post-title a:hover {
  color: var(--oxpins-base) !important;
}

/* Project gallery at the bottom of single project details. */
.single-tsf_project_item .tsf-project-single__gallery {
  margin-top: 44px;
}

.single-tsf_project_item .tsf-project-single__gallery-title {
  margin-bottom: 28px;
}

.single-tsf_project_item .tsf-project-single__gallery-item {
  margin-bottom: 30px;
}

.single-tsf_project_item .tsf-project-single__gallery-item .gallery-page__img,
.single-tsf_project_item .tsf-project-single__gallery-item img {
  border-radius: 12px;
}

.single-tsf_project_item .tsf-project-single__gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
