/**
 * Project Style 7 – "Service Style"
 *
 * Side-by-side image + content card based on service-style-3.
 * Used via the Elementor projects widget (style selector).
 * Even-numbered items reverse the layout direction.
 */

.project-item.project-style-7 .project-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 30px;
  background-color: var(--background);
  padding: 10px;
}

@media (min-width: 768px) {
  .project-item.project-style-7 .project-inner {
    flex-wrap: nowrap;
  }
}

/* -------------------------------------------------------
 * Hover states
 * ----------------------------------------------------- */
.project-item.project-style-7 .project-inner:hover {
  border-color: var(--primary);
  background-color: var(--primary);
}
.project-item.project-style-7 .project-inner:hover .project-post-thumbnail img {
  transform: translate3d(0, 0, 0) scale(1.2);
  -webkit-transform: translate3d(0, 0, 0) scale(1.2);
}
.project-item.project-style-7 .project-inner:hover .project-title {
  border-color: var(--accent);
}
.project-item.project-style-7 .project-inner:hover .project-button {
  background-color: #fff;
}

/* -------------------------------------------------------
 * Thumbnail
 * ----------------------------------------------------- */
.project-item.project-style-7 .project-thumbnail-wrap {
  width: 100%;
}
@media (min-width: 768px) {
  .project-item.project-style-7 .project-thumbnail-wrap {
    flex: 0 0 51%;
    max-width: 51%;
  }
}

.project-item.project-style-7 .project-post-thumbnail {
  padding-top: 77%;
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  margin-bottom: 0;
}
.project-item.project-style-7 .project-post-thumbnail img {
  position: absolute;
  object-fit: cover;
  height: 100%;
  width: 100%;
  top: 0;
  transform: translate3d(-6.66%, 0, 0) scale(1.2);
  -webkit-transform: translate3d(-6.66%, 0, 0) scale(1.2);
  transition: opacity 0.35s, transform 0.45s, filter 0.35s;
  border-radius: 25px;
}

/* -------------------------------------------------------
 * Content
 * ----------------------------------------------------- */
.project-item.project-style-7 .project-content {
  padding: 30px 80px;
}
.project-item.project-style-7 .project-title {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.project-item.project-style-7 .project-title a {
  width: 100%;
  display: block;
  color: var(--accent);
}
.project-item.project-style-7 .project-title a:hover {
  color: var(--accent);
}

.project-item.project-style-7 .description {
  font-size: 18px;
  line-height: 1.5555555556;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.project-item.project-style-7 .description p {
  margin-bottom: 0;
}

/* -------------------------------------------------------
 * Arrow button
 * ----------------------------------------------------- */
.project-item.project-style-7 .project-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: var(--primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.4s ease;
}
.project-item.project-style-7 .project-button .btn-icon-wrap {
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.project-item.project-style-7 .project-button .btn-icon,
.project-item.project-style-7 .project-button .btn-icon-hover {
  display: flex;
  color: var(--accent);
  transition: transform 0.35s linear;
  font-size: 13px;
}
.project-item.project-style-7 .project-button .btn-icon {
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(-45deg);
  transform-style: preserve-3d;
}
.project-item.project-style-7 .project-button .btn-icon-hover {
  position: absolute;
  transform: translate3d(-17px, 17px, 0) scale3d(0.2, 0.2, 1) rotate(-45deg);
}
.project-item.project-style-7 .project-button:hover .btn-icon {
  transform: translate3d(17px, -17px, 0) scale3d(0.2, 0.2, 1) rotate(-45deg);
}
.project-item.project-style-7 .project-button:hover .btn-icon-hover {
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(-45deg);
}

/* -------------------------------------------------------
 * Alternating layout (even items)
 * ----------------------------------------------------- */
.project-item.project-style-7:nth-child(even) .project-inner {
  flex-direction: row-reverse;
}
.project-item.project-style-7:nth-child(even) .project-inner .project-button {
  left: 10px;
  right: auto;
}

/* -------------------------------------------------------
 * Location meta
 * ----------------------------------------------------- */
.project-item.project-style-7 .project-location {
  margin-bottom: 15px;
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  column-gap: 10px;
}
.project-item.project-style-7 .project-location a {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--accent);
  transition: all 0.3s ease;
}
.project-item.project-style-7 .project-location i {
  color: var(--primary);
  margin-top: 3px;
}