#section-4 {
    margin: 0;
    padding: 0;
}

.sec4-con {
    width: 100%;
}

/* First Row - Text Left, Image Right */
.sec4-first-row {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    width: 100%;
}

.sec4-first-row-text-con {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
}


.sec4-first-row-text-con h1 {
    font-size: 50px;
    font-weight: 500;
    line-height: 60px;
    margin-bottom: 20px;
    margin-left: 50px;
}

.sec4-first-row-text-con p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-left: 50px;
    width: 80%;
}

.sec4-first-row-img-con {
    flex: 1;
    width: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    overflow: hidden;
}

.sec4-first-row-img-con img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    object-position: bottom left;
    display: block;
}

/* Second Row - Image Left, Text Right */
.sec4-second-row {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    width: 100%;
}

.sec4-second-row-img-con {
    flex: 1;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.sec4-second-row-img-con img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.sec4-second-row-text-con {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 50%;
    align-items: flex-end;
    text-align: right;
}

.sec4-second-row-text-con h1 {
    font-size: 50px;
    font-weight: 500;
    line-height: 60px;
    margin-bottom: 20px;
    margin-right: 50px;
}

.sec4-second-row-text-con p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-right: 50px;
    width: 80%;
}

.sec4-third-row {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    width: 100%;
}

.sec4-third-row-text-con {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
}


.sec4-third-row-text-con h1 {
    font-size: 50px;
    font-weight: 500;
    line-height: 60px;
    margin-bottom: 20px;
    margin-left: 50px;
}

.sec4-third-row-text-con p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-left: 50px;
    width: 80%;
}

.sec4-third-row-img-con {
    flex: 1;
    width: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    overflow: hidden;
}

.sec4-third-row-img-con img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    object-position: bottom left;
    display: block;
}

/* --- Master plan & Floor plans (sec4) --- */
.sec4-plans {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.sec4-plans__heading {
    padding: 10px;
    text-align: center;
    font-size: 50px;
    font-weight: 500;
    line-height: 60px;
}

/* Row layout */
.sec4-plans__row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

/* Left: Master plan */
.sec4-plans__left {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sec4-master-plan {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.sec4-master-plan__img {
  width: 100%;
  height: 100%;
  filter: blur(2px);
  object-fit: contain;
  display: block;
}

/* Right: Floor carousel */
.sec4-plans__right {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sec4-floor-carousel {
  position: relative;
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Track and slides */
.sec4-floor-carousel__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
  gap: 12px;
  align-items: stretch;
}

/* Each slide shows full track width (one at a time) */
.sec4-floor-slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

/* media + meta */
.sec4-floor-media {
  flex: 0 0 56%;
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sec4-floor-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(2px);
  display: block;
}
.sec4-floor-meta {
  flex: 1 1 44%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.sec4-floor-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
}

/* enquire button */
.sec4-enquire {
  background: rgb(126, 90, 37);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* nav */
.sec4-floor-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.sec4-floor-carousel__nav.prev { left: -12px; }
.sec4-floor-carousel__nav.next { right: -12px; }

/* dots */
.sec4-floor-carousel__dots {
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:12px;
}
.sec4-floor-carousel__dots .sec4-dot {
  width:10px;
  height:10px;
  border-radius:50%;
  background: rgba(0,0,0,0.18);
  border: none;
  cursor:pointer;
}
.sec4-floor-carousel__dots .sec4-dot.active { background: rgb(126,90,37); }

/* ====== RESPONSIVE MEDIA QUERIES FOR SECTION-4 ====== */

/* Large Desktop - 1200px */
@media (max-width: 1200px) {
  /* Row adjustments */
  .sec4-first-row,
  .sec4-second-row,
  .sec4-third-row {
    min-height: 25vh;
  }
  
  /* Typography scaling */
  .sec4-first-row-text-con h1,
  .sec4-second-row-text-con h1,
  .sec4-third-row-text-con h1 {
    font-size: 42px;
    line-height: 50px;
    margin-bottom: 16px;
  }
  
  .sec4-first-row-text-con p,
  .sec4-second-row-text-con p,
  .sec4-third-row-text-con p {
    font-size: 1.05rem;
    width: 85%;
  }
  
  /* Margins adjustment */
  .sec4-first-row-text-con h1,
  .sec4-first-row-text-con p,
  .sec4-third-row-text-con h1,
  .sec4-third-row-text-con p {
    margin-left: 40px;
  }
  
  .sec4-second-row-text-con h1,
  .sec4-second-row-text-con p {
    margin-right: 40px;
  }
  
  /* Plans section */
  .sec4-plans {
    margin: 28px auto;
    padding: 0 16px;
  }
  
  .sec4-plans__heading {
    font-size: 42px;
    line-height: 50px;
  }
  
  .sec4-plans__row {
    gap: 16px;
  }
  
  .sec4-master-plan {
    max-height: 380px;
  }
  
  .sec4-floor-media {
    height: 280px;
  }
}

/* Tablet - 900px */
@media (max-width: 900px) {
  /* Stack all rows vertically */
  .sec4-first-row,
  .sec4-second-row,
  .sec4-third-row {
    flex-direction: column;
    min-height: auto;
    gap: 20px;
  }
  
  /* Reset flex-direction for second row */
  .sec4-second-row {
    flex-direction: column;
  }
  
  /* Full width containers */
  .sec4-first-row-text-con,
  .sec4-first-row-img-con,
  .sec4-second-row-text-con,
  .sec4-second-row-img-con,
  .sec4-third-row-text-con,
  .sec4-third-row-img-con {
    width: 100%;
    flex: none;
  }
  
  /* Center align all text */
  .sec4-first-row-text-con,
  .sec4-third-row-text-con {
    align-items: center;
    text-align: center;
  }
  
  .sec4-second-row-text-con {
    align-items: center;
    text-align: center;
  }
  
  /* Typography adjustments */
  .sec4-first-row-text-con h1,
  .sec4-second-row-text-con h1,
  .sec4-third-row-text-con h1 {
    font-size: 36px;
    line-height: 42px;
    margin: 0 0 15px 0;
  }
  
  .sec4-first-row-text-con p,
  .sec4-second-row-text-con p,
  .sec4-third-row-text-con p {
    font-size: 1rem;
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }
  
  /* Image containers */
  .sec4-first-row-img-con,
  .sec4-second-row-img-con,
  .sec4-third-row-img-con {
    justify-content: center;
    align-items: center;
  }
  
  .sec4-first-row-img-con img,
  .sec4-second-row-img-con img,
  .sec4-third-row-img-con img {
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Plans section - stack vertically */
  .sec4-plans {
    margin: 24px auto;
    padding: 0 12px;
  }
  
  .sec4-plans__heading {
    font-size: 36px;
    line-height: 42px;
  }
  
  .sec4-plans__row {
    flex-direction: column;
    gap: 20px;
  }
  
  .sec4-plans__left,
  .sec4-plans__right {
    flex: none;
    width: 100%;
  }
  
  .sec4-master-plan {
    max-height: 320px;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .sec4-floor-carousel {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .sec4-floor-media {
    height: 240px;
  }
  
  .sec4-floor-carousel__nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* Mobile Large - 520px */
@media (max-width: 520px) {
  /* Further reduce spacing */
  .sec4-first-row,
  .sec4-second-row,
  .sec4-third-row {
    gap: 15px;
  }
  
  /* Compact typography */
  .sec4-first-row-text-con h1,
  .sec4-second-row-text-con h1,
  .sec4-third-row-text-con h1 {
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 2px;
    margin-top: 10px;
  }
  
  .sec4-first-row-text-con p,
  .sec4-second-row-text-con p,
  .sec4-third-row-text-con p {
    font-size: 0.9rem;
    width: 95%;
    line-height: 1.5;
  }
  
  /* Compact images */
  .sec4-first-row-img-con img,
  .sec4-second-row-img-con img,
  .sec4-third-row-img-con img {
    max-width: 100%;
  }
  
  /* Plans section mobile */
  .sec4-plans {
    margin: 20px auto;
    padding: 0 8px;
  }
  
  .sec4-plans__heading {
    font-size: 28px;
    line-height: 34px;
    padding: 8px;
  }
  
  .sec4-plans__row {
    gap: 15px;
  }
  
  .sec4-master-plan {
    max-height: 250px;
  }
  
  /* Mobile carousel adjustments */
  .sec4-floor-slide {
    flex-direction: column;
    text-align: center;
    padding: 8px;
  }
  
  .sec4-floor-media {
    flex: none;
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
  }
  
  .sec4-floor-meta {
    flex: none;
    width: 100%;
  }
  
  .sec4-floor-title {
    font-size: 1rem;
  }
  
  .sec4-enquire {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  /* Smaller navigation */
  .sec4-floor-carousel__nav {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  
  .sec4-floor-carousel__nav.prev { left: -8px; }
  .sec4-floor-carousel__nav.next { right: -8px; }
  
  /* Dots adjustment */
  .sec4-floor-carousel__dots {
    gap: 6px;
    margin-top: 10px;
  }
  
  .sec4-floor-carousel__dots .sec4-dot {
    width: 8px;
    height: 8px;
  }
}

/* Mobile Small - 375px */
@media (max-width: 375px) {
  /* Ultra-compact spacing */
  .sec4-first-row,
  .sec4-second-row,
  .sec4-third-row {
    gap: 12px;
  }
  
  /* Smallest typography */
  .sec4-first-row-text-con h1,
  .sec4-second-row-text-con h1,
  .sec4-third-row-text-con h1 {
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 10px;
  }
  
  .sec4-first-row-text-con p,
  .sec4-second-row-text-con p,
  .sec4-third-row-text-con p {
    font-size: 0.85rem;
    width: 98%;
  }
  
  /* Plans section ultra-compact */
  .sec4-plans {
    margin: 16px auto;
    padding: 0 6px;
  }
  
  .sec4-plans__heading {
    font-size: 24px;
    line-height: 28px;
    padding: 6px;
  }
  
  .sec4-plans__row {
    gap: 12px;
  }
  
  .sec4-master-plan {
    max-height: 200px;
    border-radius: 8px;
  }
  
  /* Ultra-compact carousel */
  .sec4-floor-slide {
    padding: 6px;
  }
  
  .sec4-floor-media {
    height: 160px;
    border-radius: 6px;
    margin-bottom: 8px;
  }
  
  .sec4-floor-title {
    font-size: 0.9rem;
  }
  
  .sec4-enquire {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
  }
  
  /* Smallest navigation */
  .sec4-floor-carousel__nav {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  
  .sec4-floor-carousel__nav.prev { left: -6px; }
  .sec4-floor-carousel__nav.next { right: -6px; }
  
  /* Smallest dots */
  .sec4-floor-carousel__dots {
    gap: 4px;
    margin-top: 8px;
  }
  
  .sec4-floor-carousel__dots .sec4-dot {
    width: 6px;
    height: 6px;
  }
}