/* ========================================================================= */
/*                           GENERAL LAYOUT STYLES                           */
/* ========================================================================= */

.wine-main-parent {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 50px;
}

.wine-parent:first-child {
width: 55%;
}


.wine-parent {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========================================================================= */
/*                          WINE SLIDER & SLIDE STYLES                       */
/* ========================================================================= */

.wine-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wine-slide {
  position: absolute;
  width: 26%;
  height: 100%;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}

.wine-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
}

/* Shadow under each slide */
.wine-slide::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 35px;
  background-image: url('https://www.sapat.rs/wp-content/uploads/2023/07/bgd-shadow.webp');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1; 
}

.wine-slide:nth-child(2),
.wine-slide:nth-child(10) {
  filter: blur(2px) brightness(0.8); 
}

.wine-slide:nth-child(3),
.wine-slide:nth-child(9) {
  opacity: 0;
}

/* ========================================================================= */
/*                              WINE ARROW STYLES                            */
/* ========================================================================= */

/* Wine Arrow Styling */
.wine-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  background-color: white;
  color: white;
  border: 2px solid #d28f00;;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.wine-left-arrow {
  left: 2%;
}

.wine-right-arrow {
  right: 2%;
}

/* Arrow Icon Styling */
.wine-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px;
  height: 64px;
  background-size: 75%;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #d28f00;
  border-radius: 100%;
  box-sizing: border-box;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

/* Left Arrow */
.wine-left-arrow::before {
  background-image: url('https://www.sapat.rs/wp-content/uploads/2024/02/arrow-left.svg');
}

/* Right Arrow */
.wine-right-arrow::before {
  background-image: url('https://www.sapat.rs/wp-content/uploads/2024/02/arrow-right-1.svg');
}

/* Hover Effects for Arrows */
.wine-arrow:hover::before {
  transform: translate(-50%, -50%) scale(0.85);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

/* Box Shadow for Arrows */
.wine-arrow::before {
  -webkit-box-shadow: 0px 0px 15px -5px rgba(20, 3, 0, 0.7);
  -moz-box-shadow: 0px 0px 15px -5px rgba(20, 3, 0, 0.7);
  box-shadow: 0px 0px 15px -5px rgba(20, 3, 0, 0.9);
}

.wine-arrow:hover,
.wine-arrow:focus {
	background-color: white;
}

/* ========================================================================= */
/*                         RESPONSIVE ARROW STYLING                          */
/* ========================================================================= */

@media only screen and (max-width: 1200px) {
  .wine-arrow {
    width: 36px;
    height: 36px;
  }

  .wine-arrow::before {
    width: 42px;
    height: 42px;
  }
}

/* ========================================================================= */
/*                            DESCRIPTION STYLES                              */
/* ========================================================================= */

/* Description Styling */
.wine-description {
  width: 100%;
  text-align: left;
  background-color: transparent;
  margin: 0px 0px 0px 0px;
  padding: 30px 40px 20px 40px;
  background-image: linear-gradient(180deg, #FFFFFF 0%, #ECE5D9 135%);
  box-shadow: 0px 0px 30px 0px rgba(20, 3.0000000000000027, 0, 0.2);
}

.wine-description {
  display: none;
}

.wine-description.active {
  display: block;
}

.wine-description h2 {
  font-family: "Marcellus";
  font-size: 40px;
  color: #d28f00;
  font-weight: 400;
}

.wine-description p {
  font-family: "Jost";
  color: #000000;
  font-weight: 300;
  font-size: 16px;
}

.wine-description .vinasep {
  border-top: 1px solid #D28F00;
  margin-bottom: 15px;
}

/* ========================================================================= */
/*                            RESPONSIVE STYLES                              */
/* ========================================================================= */

@media only screen and (min-width : 1025px) {
	.wine-parent:first-child {
		margin-bottom: 50px;
	}
}

/* For latops (max-width: 1200px) */
@media only screen and (max-width: 1200px) {
	
  .wine-parent:first-child {
    width: 650px;
	}
  .wine-slider {
    height: 560px;
  }
}

/* For tablets (max-width: 1024px) */
@media only screen and (max-width: 1024px) {
  .wine-main-parent {
    flex-direction: column;
    gap: 0px;
  }

  .wine-parent {
    width: 100%;
    flex-direction: column;
  }

  .wine-description {
    padding: 30px; 
  }

  .wine-parent:first-child {
    width: 450px;
    margin: 0 auto -40px auto;
  }

  .wine-slider {
    height: 475px;
  }
}

/* For mobile (max-width: 767px) */
@media only screen and (max-width: 767px) {
  .wine-description h2 {
    font-size: 25px;
  }

  .wine-description p {
    font-size: 14px;
    line-height: 1.3em;
  }

  .wine-description {
    margin: 0px 0px 0px 0px;
    padding: 30px 15px 5px 15px;
  }

  .wine-parent:first-child {
    width: 330px; 
  }

  .wine-slider {
    height: 360px;
  }
}

/* ========================================================================= */
/*                     WINE-DESCRIPTION BORDER EFFECTS                       */
/* ========================================================================= */

.wine-description {
  position: relative;
z-index: 1;
}


.wine-description.active {
z-index: 1;
}



.wine-description.active::before {
  border: 1px solid transparent;
  width: 0;
  height: 0;
  top: 15px;
  left: 15px;
  content: '';
  position: absolute;
  z-index: -1;
}


.wine-description.active::after {
  border: 1px solid transparent;
  width: 0;
  height: 0;
  bottom: -15px;
  right: -15px;
  content: '';
  position: absolute;
  z-index: -1;
}


/* Hover effect for .wine-description inside .wine-parent */

.wine-description.active:hover::before {
  width: 100%;
  height: 100%;
  border-top-color: #D28F00;
  border-right-color: #D28F00;
  transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;  
}


.wine-description.active:hover::after {
  width: 100%;
  height: 100%;
  border-bottom-color: #D28F00;
  border-left-color: #D28F00;
  transition: border-color 0s ease-out 0.5s, width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s;
} 

/* Mobile styles for Wine Descriptions */
@media only screen and (max-width: 767px) {
  .wine-parent .wine-description.active::before {
    top: 10px;
    left: 10px;
  }

  .wine-parent .wine-description.active::after {
    bottom: -10px;
    right: -10px;   
  }
}

