/* =============================================
   FEATURED PROJECTS CAROUSEL
   Using Elementor Nested Carousel with Cards
   ============================================= */

/* Main container */
.nb-featured-projects {
  position: relative;
  width: 100%;
}

/* Heading styling */
.nb-featured-projects .elementor-widget-heading .elementor-heading-title {
  font-size: 42px !important;
  font-weight: 300 !important;
  color: #000000 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  margin-bottom: 48px !important;
}

/* Nested Carousel wrapper */
.nb-featured-projects .elementor-widget-n-carousel {
  width: 100% !important;
}

/* Project Card styling - matches browse-our-services */
.nb-featured-projects .nb-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #000000 !important;
  border-radius: 22px !important;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nb-featured-projects .nb-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Card image - rounded top corners only */
.nb-featured-projects .nb-project-card .elementor-widget-image {
  width: 100%;
  overflow: hidden;
}

.nb-featured-projects .nb-project-card .elementor-widget-image img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 22px 22px 0 0 !important;
  object-fit: cover;
}

/* Card content container - black background */
.nb-featured-projects .nb-project-card > .e-con-inner {
  background-color: #000000 !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Content section inside card */
.nb-featured-projects .nb-project-card .e-con[class*="content"] {
  background-color: #000000 !important;
  min-height: 220px;
  padding: 24px 24px 32px 24px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

/* Card title */
.nb-featured-projects .nb-project-card .elementor-widget-heading .elementor-heading-title {
  color: #FFFFFF !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Learn More button - white border, transparent background */
/* Target first button in card content */
.nb-featured-projects .nb-project-card .e-con[class*="content"] .elementor-widget-button:first-of-type .elementor-button,
.nb-featured-projects .nb-project-card .e-con[class*="content"] .elementor-widget-button:nth-of-type(1) .elementor-button {
  background-color: transparent !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
  border-radius: 10px !important;
  padding: 14px 24px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.nb-featured-projects .nb-project-card .e-con[class*="content"] .elementor-widget-button:first-of-type .elementor-button:hover,
.nb-featured-projects .nb-project-card .e-con[class*="content"] .elementor-widget-button:nth-of-type(1) .elementor-button:hover {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
}

/* Inquire button - grey background */
/* Target second button in card content */
.nb-featured-projects .nb-project-card .e-con[class*="content"] .elementor-widget-button:last-of-type .elementor-button,
.nb-featured-projects .nb-project-card .e-con[class*="content"] .elementor-widget-button:nth-of-type(2) .elementor-button {
  background-color: #B9BBC6 !important;
  color: #1F2937 !important;
  border: 2px solid #B9BBC6 !important;
  border-radius: 10px !important;
  padding: 14px 24px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.nb-featured-projects .nb-project-card .e-con[class*="content"] .elementor-widget-button:last-of-type .elementor-button:hover,
.nb-featured-projects .nb-project-card .e-con[class*="content"] .elementor-widget-button:nth-of-type(2) .elementor-button:hover {
  background-color: #CDD0D8 !important;
  color: #111827 !important;
  border-color: #CDD0D8 !important;
}

/* Container link overlay - makes entire card clickable */
.nb-featured-projects .nb-project-card .e-con-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

/* Ensure buttons are clickable above link overlay */
.nb-featured-projects .nb-project-card .elementor-button {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* Arrow styling is in elementor-overrides.css */
/* Only z-index override needed for this carousel */
.nb-featured-projects .elementor-swiper-button {
  z-index: 10 !important;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet styles */
@media screen and (max-width: 1024px) {
  .nb-featured-projects .elementor-widget-heading .elementor-heading-title {
    font-size: 36px !important;
    margin-bottom: 40px !important;
  }
}

/* Mobile styles */
@media screen and (max-width: 767px) {
  .nb-featured-projects .elementor-widget-heading .elementor-heading-title {
    font-size: 32px !important;
    margin-bottom: 32px !important;
  }
}
