/* Featured Projects Section */
.featured-projects-title {
  font-family: var(--font-built-tiling);
  color: #fff;
  font-size: 3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.featured-project {
  display: flex;
  flex-direction: column;
  margin-bottom: 4rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

@media (min-width: 768px) {
  .featured-project {
    flex-direction: row;
    align-items: center;
  }
  
  .featured-project:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.featured-project:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-project-image {
  flex: 1;
  overflow: hidden;
  position: relative;
  align-self: stretch; /* Make the image container stretch to fill the flex item height */
}

.featured-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-project:hover .featured-project-image img {
  transform: scale(1.05);
}

.featured-project-content {
  flex: 1;
  padding: 2rem;
  background-color: var(--color-dark-grey);
  color: #fff;
  position: relative;
}

.featured-project-content::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: var(--color-orange);
  top: 0;
  left: 0;
}

.featured-project-category {
  font-family: var(--font-helvetica);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.featured-project-title {
  font-family: var(--font-built-tiling);
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-project-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-family: var(--font-helvetica);
}

.featured-project-link {
  display: inline-block;
  font-family: var(--font-helvetica);
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-right: 30px;
  transition: color 0.3s ease;
}

.featured-project-link:hover {
  color: var(--color-orange);
}

.featured-project-link::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.featured-project-link:hover::after {
  transform: translate(5px, -50%);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .featured-project-image {
    min-height: 200px;
  }
  
  .featured-project-title {
    font-size: 1.75rem;
  }
}

/* For screens larger than 1200px */
@media (min-width: 1200px) {
  .featured-projects .container {
    max-width: 1200px;
  }
}
