html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}
#marquee{
    margin-top: 30px;
    width: 100%;
    height: 50px;
    /* background-color: royalblue; */
    color: #2a2a72;
    white-space: wrap;
}

.main-container-1 {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 500px;
  gap: 40px;
  padding: 20px;
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
}

.info-box-1 {
  background-color: #e6f0ff;
  padding: 30px 40px;
  width: 360px;
  height: 500px;
  box-sizing: border-box;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-box-1 h2 {
  margin-top: 0;
  color: #2a2a72;
  font-size: 2.2rem;
  font-weight: bold;
}

.info-box-1 p {
  color: #2a2a72;
  font-size: 1rem;
  line-height: 1.5;
  margin: 20px 0;
}

.view-detail-btn-1 {
  background-color: transparent;
  border: 2px solid #2a2a72;
  color: #2a2a72;
  font-size: 1rem;
  padding: 10px 40px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  margin-top: 20px;
  display: block;
  max-width: 200px;
  text-align: center;
}

.view-detail-btn-1:hover {
  background-color: #2a2a72;
  color: white;
}

.slider-container-1 {
  position: relative;
  width: 800px;
  height: 500px;
  overflow: hidden;
  border: 5px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-1 img {
  width: 800px;
  height: 500px;
  display: none;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

.slide-1.active-1 {
  display: block;
}

button.prev-1,
button.next-1 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border: none;
  color: black;
  font-size: 36px;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-weight: bold;
}

button.prev-1:hover,
button.next-1:hover {
  background-color: #2a2a72;
  color: white;
}

button.prev-1 {
  left: 10px;
}

button.next-1 {
  right: 10px;
}

@media (max-width: 1180px) {
  .main-container-1 {
    flex-direction: column;
    height: auto;
    max-width: 100%;
  }

  .info-box-1,
  .slider-container-1 {
    width: 100%;
    height: auto;
    max-height: none;
    margin-bottom: 30px;
  }

  .slider-container-1 {
    min-height: 300px;
  }

  .info-box-1 {
    padding: 20px;
    height: auto;
  }
}

.marquee-container {
  margin-top: 30px;
  margin-bottom: 50px;
  background-color: rgb(35, 35, 143);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 70px;
  transform: rotate(-3deg);
}

.marquee-track{
  display: flex;
  width: max-content;
  animation: scroll 10s linear infinite;
}

.marquee-track span{
  font-size: 30px;
  font-weight: bold;
  line-height: 60px;
  margin-right: 40px;
  white-space: nowrap;
}

.whites{
  color: white;
  /* font-size: 30px; */
}

.yellow{
  color: #ffa400;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.tree-container {
    text-align: center;
    padding: 40px;
  }

  /* body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
} */

/* --- Tree Steps Container --- */
.tree-steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    flex-wrap: nowrap;
    
}

/* --- Each Node --- */
.tree-node {
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 140px;
}

/* Icon */
.tree-node i {
    font-size: 50px;
    margin-bottom: 15px;
    color: white;
}

/* Box Label */
.tree-label {
    background: linear-gradient(180deg, #009ffd, #2a2a72);
    color: #ffa400;
    padding: 16px 20px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 8px;
    text-transform: uppercase;
    margin-bottom: 30px; /* increased gap from line */
}

/* Horizontal Line for Desktop */
.tree-line {
    position: absolute;
    top: 190px; /* moved further down to create gap from box */
    left: 5%;
    right: 5%;
    height: 5px;
    background: #007bff;
    z-index: 0;
}

/* Yellow Dot */
.tree-dot {
    position: absolute;
    top: 182px; /* line center */
    width: 28px;
    height: 28px;
    background: #ff9800;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tree-steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 40px;
        position: relative;
    }

    .tree-node {
        margin-bottom: 80px;
    }

    .tree-line {
        display: none;
    }

    /* Dots below heading */
    .tree-dot {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 12px auto 0 auto;
    }

    /* Top row line */
    .tree-steps::before {
        content: "";
        position: absolute;
        top: 219px;
        left: 12.5%;
        width: 75%;
        height: 5px;
        background-color: #007bff;
        z-index: 0;
    }

    /* Bottom row line */
    .tree-steps::after {
        content: "";
        position: absolute;
        top: calc(50% + 230px);
        left: 12.5%;
        width: 75%;
        height: 5px;
        background-color: #007bff;
        z-index: 0;
    }
}

  .bod {
  margin: 0;
  height: auto;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.main-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* ===== HEXAGON (TEXT DIV) FIRST ===== */
.hexagon-wrapper {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 1;
}

.hex-front {
  width: 600px;
  height: 220px;
  border: 2px solid #2a2a72;
  background-image: url('../images/Untitled (600 x 220 px) (5).png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: white;
  padding: 20px;
  border-radius: 30px;
  box-sizing: border-box;
  position: relative;
}

.hex-front .close-btn {
  position: absolute;
  top: 10px;
  left: 40px;
  background: black;
  color: white;
  border: none;
  margin-top: 15px;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 16px;
  cursor: pointer;
  line-height: 5px;
  text-align: center;
  padding: 0;
}

.hex-front h1 {
  color: #000;
  margin: 25px 0 20px 80px;
  font-size: 24px;
  text-align: left;
}

.hex-front p {
  margin: 0 0 20px 80px;
  color: black;
  font-size: 18px;
  text-align: left;
}

.hex-front a {
  display: inline-block;
  background: #2a2a72;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  margin-left: 100px;
}

.hex-front a:hover {
  color: #ffd400;
  background-color: #000;
  transition: all 0.5s ease-in-out;
}

/* ===== CUBE (IMAGE DIV) SECOND ===== */
.cube-wrapper {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 2;
  overflow: hidden;
}

.scene {
  width: 300px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateY 12s infinite linear;
  cursor: pointer;
}

.cube-face {
  position: absolute;
  width: 300px;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  border: 2px solid #2a2a72;
  font-weight: bold;
}

.cube-face span {
  padding: 10px 15px;
  border-radius: 6px;
  pointer-events: none;
}

/* Cube Faces */
.front  { transform: rotateY(0deg) translateZ(150px); background-image: url('images/house.jpg'); }
.back   { transform: rotateY(180deg) translateZ(150px); background-image: url('images/Luxury-Grand-Villa-House.webp'); }
.right  { transform: rotateY(90deg) translateZ(150px); background-image: url('images/Luxury-Grand-Villa-House.webp'); }
.left   { transform: rotateY(-90deg) translateZ(150px); background-image: url('images/Zanzibar-Property-Villa.jpg'); }

@keyframes rotateY {
  from { transform: rotateY(0); }
  to   { transform: rotateY(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (<=992px) */
@media (max-width: 992px) {
  .main-container {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 30px;
  }

  .hexagon-wrapper,
  .cube-wrapper {
    flex: 1 1 100%;
  }

  .hex-front {
    width: 90%;
    height: auto;
    text-align: center;
    padding: 25px;
  }

  .hex-front h1,
  .hex-front p,
  .hex-front a {
    margin-left: 0;
    text-align: center;
  }
}

/* Mobile (<=576px) */
/* Mobile (<=576px) */
@media (max-width: 576px) {
  .main-container {
    flex-direction: column;
    gap: 20px;
  }

  .hexagon-wrapper {
    order: 1;
    width: 100%;
  }

  .cube-wrapper {
    order: 2;
  }

  .scene {
    width: 240px;
    height: 240px;
  }

  .cube-face {
    width: 240px;
    height: 240px;
  }

  .hex-front {
    width: 100%;  /* 🔹 Reduced width from 95% → 85% */
    max-width: 500px; /* prevent too much stretching */
    height: auto;
    padding: 18px;
    border-radius: 20px;
    margin: 0 auto; /* Center align */
  }

  .hex-front h1 {
    font-size: 20px;
  }

  .hex-front p {
    font-size: 16px;
  }

  .hex-front a {
    font-size: 15px;
    padding: 8px 18px;
  }
}
.hex-front a:hover{
  color: #ffd400;
  background-color: #000;
  transition: all 0.5s ease-in-out;
}

/* Cube */
.scene {
  width: 300px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateY 12s infinite linear;
  cursor: pointer;
}

.cube-face {
  position: absolute;
  width: 300px;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  border: 2px solid #2a2a72;
  font-weight: bold;
  /* text-shadow: 0 0 5px black; */
}

.cube-face span {
  /* background: rgba(0,0,0,0.5); */
  padding: 10px 15px;
  border-radius: 6px;
  pointer-events: none;
}

.front  { transform: rotateY(0deg) translateZ(150px); background-image: url('images/house.jpg'); }
.back   { transform: rotateY(180deg) translateZ(150px); background-image: url('images/Luxury-Grand-Villa-House.webp'); }
.right  { transform: rotateY(90deg) translateZ(150px); background-image: url('images/Luxury-Grand-Villa-House.webp'); }
.left   { transform: rotateY(-90deg) translateZ(150px); background-image: url('images/Zanzibar-Property-Villa.jpg'); }
@keyframes rotateY {
  from { transform: rotateY(0); }
  to   { transform: rotateY(360deg); }
}
