@font-face {
    font-family: 'Trajan Pro';
    src: url(../fonts/TrajanPro-Bold.otf) format('opentype'),
        url(../fonts/TrajanPro-Regular.ttf) format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cerost';
    src: url('../fonts/cerost.otf') format('truetype'); /* update path if needed */
    font-weight: 400;
    font-style: normal;
}

.living-section {
    position: relative;
    width: 100%;
    /* height: 1138px; */
    opacity: 1;
    /* top: 585px; */
    margin: 0 auto;
    display: block;
    padding-top: 250px;

    /* padding-bottom: 80px; */
}

.living-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
      display: block; 
    /* send it behind */
}


.living-heading {
    /* top: 972px;          */
    left: 50%;
    /* horizontal center */
    transform: translateX(-50%);
    /* center horizontally */
    width: 1202px;
    height: 52px;
    background: transparent;
    /* or #000 for contrast */
    border: none;
    /* optional */
    text-align: center;
    text-transform: uppercase;

}


.living-heading p {
    position: absolute;
    text-align: center;
    font-family: 'Cerost';
    font-weight: 400;
    font-style:normal;
    font-size: 48px;
    line-height: 100%;
    color: #fff;
    /* change to visible color */
    /* margin: 0; */
    width: 80%;
    /* take full width */
    /* max-width: 1200px;         prevent from being too wide */
    padding: 0 20px;
    /* safe padding on small screens */
    left: 750px;
}

.living-image-container {
    width: 100%;
     /* height: 500px;  */
    max-width: 1428px;
    padding: 0px 64px;
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 2;
    /* stays above bg */
    position: relative;
    /* ensures z-index applies */
    margin: 30px auto 0 auto;
     position: relative;          /* so .slide absolute works inside */
  overflow: hidden;            /* prevent images from spilling out */
}

.living-image-container img {
    width: 800px;
    height: 471px;
    border-radius: 40px;
    object-fit: cover;
}

.carousel {
  position: relative;
  width: 1400px;   /* enough to fit active + 2 left + 2 right */
  margin: 0 auto;  /* center it */
  height: 500px; /* adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  /* background: #222; optional */
}

.carousel-item {
  position: absolute;
  width: 700px;   /* fixed size */
  height: 400px;  /* fixed size */
  transition: all 0.5s ease;
  border-radius: 20px;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Active image (center) */
.carousel-item.active {
  z-index: 3;
  transform: translateX(0) scale(1.1);
  opacity: 1;
  padding: 30px;
  border: 1.03px solid #CEA97F;
   background: rgba(206, 169, 127, 0.1);
}

/* Previous (left side) */
.carousel-item.prev {
  z-index: 2;
  transform: translateX(-250px) scale(0.9);
  opacity: 0.7;
}

/* Next (right side) */
.carousel-item.next {
  z-index: 2;
  transform: translateX(250px) scale(0.9);
  opacity: 0.7;
}

/* Items farther away */
.carousel-item.far {
  opacity: 0;
  pointer-events: none;
}


.carousel-controls {
  top:780px;
  left: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px; /* space below slides */
}

/* Arrow buttons placed side by side below */
.carousel-arrows {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px; /* space above dots */
}

.carousel-arrows button {
  margin-top:10px;
  background: #444;
  color: #f9f5f5;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s;
  width: 70px;
height: 36px;
opacity: 1;
border-radius: 9999px;
/* border-width: 1px; */
border: 1px solid #fff;
}
.carousel-arrows button:hover {
  background: #666;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bbbbbba4;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active {
background: #fff;
 /* active color */
}

/* Left side - 2nd prev */
.carousel-item.prev2 {
  z-index: 1;
  transform: translateX(-400px) scale(0.75);
  opacity: 0.4;
}

.carousel-item.next2 {
  z-index: 1;
  transform: translateX(400px) scale(0.75);
  opacity: 0.4;
}