/* ===============================
   WORK SECTION
================================= */
.ourwork-section {
    padding: 60px 20px;
    background-image: linear-gradient(180deg, black 70%, #FFF 10%);
}

/* ===============================
   SLIDER WRAPPER
================================= */
slider-wrapper {
  width: 100%;
  overflow: hidden;
}

.slider-area {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  transition: transform .6s ease;
  will-change: transform;
}

/* ===============================
   SLIDE
================================= */
.slide {
  flex: 0 0 auto;
  width: 420px;        /* FIXED WIDTH — IMPORTANT */
  opacity: 0.5;
  transform: scale(.85);
  transition: .4s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Text inside slide */
.slide h4,
.slide p {
    color: #fff;
}

.slide p {
    padding-bottom: 170px;
}

/* ===============================
   ACTIVE SLIDE = BIG SLIDE
================================= */

.slide.active p {
    padding-bottom: 10px;
}

/* ===============================
   SLIDE IMAGES
================================= */
.slide img {
    width: 70%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
    transition: all .4s ease;
}

.slide.active img {
    width: 100%;
}

/* ===============================
   EXTRA STYLES
================================= */
.title {
    color: #ffbf00;
    font-weight: bold;
}

.desc {
    color: #ccc;
    font-size: 14px;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
    .slider-area {
        flex-direction: column;
        gap: 20px;
    }
    .slide {
        width: 100%;
        transform: scale(1) !important;
        opacity: 1 !important;
    }
    .slide img {
        width: 100%;
    }
}
