/* ============================================================
   event.css — Dreezel Coffee Event Page (Optimized with Carousel)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', Helvetica, sans-serif;
  background-color: #efe3d5;
}

/* === Layout Utama === */
.desktop {
  width: 100%;
  min-width: 1920px;
  min-height: 1162px;
  position: relative;
  background-color: #efe3d5;
}

/* === Header / Navbar === */
.desktop .div {
  position: absolute;
  top: 0;
  left: -26px;
  width: 1972px;
  height: 114px;
  background-color: #3d2314;
  z-index: 999;
}

.desktop .component {
  position: absolute;
  top: 26px;
  left: 404px;
  width: 248px;
  height: 62px;
}

.desktop .asset {
  position: absolute;
  width: auto;
  top: 14.52%;
  left: 0;
  height: 69.35%;
  aspect-ratio: 1.16;
  object-fit: contain;
}

.desktop .text-wrapper-2 {
  position: absolute;
  width: 62.10%;
  height: 69.35%;
  top: 14.52%;
  left: 37.90%;
  font-family: "Lato-Bold", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 36px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.desktop .kontak {
  position: absolute;
  top: 16px;
  left: 1368px;
  width: 148px;
  height: 81px;
}

.desktop .text-wrapper-3 {
  position: absolute;
  width: 66.89%;
  height: 35.80%;
  top: 30.86%;
  left: 16.22%;
  font-family: "Lato-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0;
  line-height: normal;
}

.desktop .rectangle-3 {
  position: absolute;
  width: 3.38%;
  height: 75.31%;
  top: 12.35%;
  left: 89.86%;
  background-color: #ffffff;
}

.desktop .rectangle-4 {
  position: absolute;
  width: 3.38%;
  height: 75.31%;
  top: 12.35%;
  left: 6.76%;
  background-color: #ffffff;
  transform: rotate(180deg);
}

.desktop .rectangle-5 {
  position: absolute;
  width: 3.38%;
  height: 145.68%;
  top: 11.73%;
  left: 51.69%;
  background-color: #ffffff;
  transform: rotate(90deg);
}

.desktop .rectangle-6 {
  position: absolute;
  width: 3.38%;
  height: 144.44%;
  top: -56.79%;
  left: 44.59%;
  background-color: #ffffff;
  transform: rotate(-90deg);
}

.desktop .component-2 {
  position: absolute;
  top: 17px;
  left: 1116px;
  width: 236px;
  height: 81px;
}

.desktop .TENTANG-KAMI {
  position: absolute;
  width: 77.54%;
  height: 35.80%;
  top: 30.86%;
  left: 11.02%;
  font-family: "Lato-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0;
  line-height: normal;
}

.desktop .rectangle-8 {
  position: absolute;
  width: 2.12%;
  height: 75.31%;
  top: 12.35%;
  left: 93.22%;
  background-color: #ffffff;
}

.desktop .rectangle-9 {
  position: absolute;
  width: 2.12%;
  height: 75.31%;
  top: 12.35%;
  left: 4.24%;
  background-color: #ffffff;
  transform: rotate(180deg);
}

.desktop .rectangle-10 {
  position: absolute;
  width: 2.12%;
  height: 253.09%;
  top: -41.98%;
  left: 50.85%;
  background-color: #ffffff;
  transform: rotate(90deg);
}

.desktop .rectangle-11 {
  position: absolute;
  width: 2.12%;
  height: 251.85%;
  top: -110.49%;
  left: 46.40%;
  background-color: #ffffff;
  transform: rotate(-90deg);
}

.desktop .component-3 {
  position: absolute;
  top: 17px;
  left: 800px;
  width: 141px;
  height: 81px;
}

.desktop .text-wrapper-4 {
  position: absolute;
  width: 52.48%;
  height: 35.80%;
  top: 30.86%;
  left: 24.11%;
  font-family: "Lato-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0;
  line-height: normal;
}

.desktop .rectangle-12 {
  position: absolute;
  width: 3.55%;
  height: 75.31%;
  top: 12.35%;
  left: 89.36%;
  background-color: #ffffff;
}

.desktop .rectangle-13 {
  position: absolute;
  width: 3.55%;
  height: 75.31%;
  top: 12.35%;
  left: 7.09%;
  background-color: #ffffff;
  transform: rotate(180deg);
}

.desktop .rectangle-14 {
  position: absolute;
  width: 3.55%;
  height: 137.04%;
  top: 16.05%;
  left: 51.77%;
  background-color: #ffffff;
  transform: rotate(90deg);
}

.desktop .rectangle-15 {
  position: absolute;
  width: 3.55%;
  height: 137.04%;
  top: -53.09%;
  left: 44.68%;
  background-color: #ffffff;
  transform: rotate(-90deg);
}

.desktop .component-4 {
  position: absolute;
  top: 17px;
  left: 958px;
  width: 141px;
  height: 81px;
}

.desktop .text-wrapper-5 {
  position: absolute;
  width: 51.06%;
  height: 35.80%;
  top: 30.86%;
  left: 24.82%;
  font-family: "Lato-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0;
  line-height: normal;
}

.desktop a.component,
.desktop a.component-2,
.desktop a.component-3,
.desktop a.component-4,
.desktop a.kontak {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.desktop a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

.desktop a span {
  transition: margin 0.3s ease-in-out;
}

.desktop a:hover .rectangle-4, 
.desktop a:hover .rectangle-9, 
.desktop a:hover .rectangle-13, 
.desktop a:hover .rectangle-6, 
.desktop a:hover .rectangle-11, 
.desktop a:hover .rectangle-15 {
  margin-top: -10px;
  margin-left: -10px;
}

.desktop a:hover .rectangle-3, 
.desktop a:hover .rectangle-8, 
.desktop a:hover .rectangle-12, 
.desktop a:hover .rectangle-5, 
.desktop a:hover .rectangle-10, 
.desktop a:hover .rectangle-14 {
  margin-top: 10px;
  margin-left: 10px;
}

/* === Carousel Layout === */
.carousel-track {
  position: absolute;
  top: 114px;
  left: 0;
  width: 100%;
  bottom: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.slides-container {
  position: relative;
  width: 1000px;
  height: 733px;
}

/* === Carousel Arrow Buttons === */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn.prev {
  left: 284px;
}

.carousel-btn.next {
  right: 284px;
}

.carousel-btn img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}

/* Efek Hover Animasi Arrow Border (Rectangle Frame) */
.carousel-btn::before,
.carousel-btn::after {
  content: "";
  position: absolute;
  width: 90%;
  height: 90%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.carousel-btn::before {
  top: 0;
  right: 0;
  border-top: 5px solid #3d2314;
  border-right: 5px solid #3d2314;
}

.carousel-btn::after {
  bottom: 0;
  left: 0;
  border-bottom: 5px solid #3d2314;
  border-left: 5px solid #3d2314;
}

.carousel-btn:hover::before {
  top: -5px;
  right: -5px;
}

.carousel-btn:hover::after {
  bottom: -5px;
  left: -5px;
}

.carousel-btn.prev:hover img {
  transform: translateX(-5px);
}

.carousel-btn.next:hover img {
  transform: translateX(5px);
}

/* === Slide Cards === */
.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #efe3d5;
  transition: all 0.5s ease-in-out;
  overflow: hidden;
  
  /* Broken Border Frame dibuat menggunakan background linear-gradient (menggantikan div tambahan) */
  background-image: 
    linear-gradient(to right, #000 0%, #000 100%),
    linear-gradient(to bottom, #000 0%, #000 100%),
    linear-gradient(to right, #000 0%, #000 100%),
    linear-gradient(to bottom, #000 0%, #000 100%);
  background-size: 
    92% 10px, /* top */
    10px 95%, /* right */
    92% 10px, /* bottom */
    10px 95%; /* left */
  background-position: 
    top left, 
    top right, 
    bottom right, 
    bottom left;
  background-repeat: no-repeat;
}

.slide img {
  position: absolute;
  transition: all 0.5s ease-in-out;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 480px;
  left: 0;
  width: 100%;
  text-align: center;
  transition: opacity 0.5s ease-in-out;
}

.slide-title {
  font-weight: 700;
  color: #000000;
  font-size: 36px;
  line-height: normal;
  margin: 0 0 20px 0;
}

.slide-desc {
  font-weight: 700;
  color: #000000;
  font-size: 16px;
  line-height: normal;
  width: 68.80%;
  margin: 0 auto;
}

/* Mode Aktif (Tengah) */
.slide.active {
  width: 500px;
  height: 733px;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.slide.active img {
  width: 420px;
  height: 420px;
  top: 40px;
  left: 40px;
}

.slide.active .slide-content {
  opacity: 1;
  pointer-events: auto;
  bottom: 0;
}

/* Mode Nonaktif (Kiri dan Kanan) */
.slide.prev, 
.slide.next {
  width: 500px;
  height: 500px;
  z-index: 1;
}

.slide.prev {
  transform: translate(calc(-50% - 250px), -50%);
}

.slide.next {
  transform: translate(calc(-50% + 250px), -50%);
}

.slide.prev img, 
.slide.next img {
  width: 320px;
  height: 420px;
  top: 40px;
  left: 90px;
}

.slide.prev .slide-content, 
.slide.next .slide-content {
  opacity: 0;
  pointer-events: none;
}

/* === Footer === */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 82px;
  background-color: #3d2314;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer p {
  color: #ffffff;
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}
