.carousel, .page-banner {
  z-index: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-banner-inner {
  max-width: 1000px;
  height: 270px;
  margin: auto;
  transition: opacity 1s ease;

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.carousel-inner{
  display: flex;
  transition: transform 1s ease;
}
.carousel-item {
  min-width: 100%;
  height: 270px;
  transition: opacity 1s ease;

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
@media screen and (min-width: 1500px){
  .carousel-item {
    height: 18vw;
  }
  
}
.carousel-text, .page-banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Voit säätää leveyttä tarpeen mukaan */
  white-space: nowrap; /* Estää rivinvaihdon */
  text-shadow: 0px 0px 7px rgba(0, 0, 0, 0.9); /* Lisää taustavarjon */
}
.carousel-button {
  text-shadow: none;
  background-color: #ff6347; /* Muuta tarvittaessa */
  color: white;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 20px;
  transition: 0.3s ease;
  cursor: pointer;
}
.carousel-button:hover {
  background-color: #e5534b; /* Muuta tarvittaessa */
}

.horizontal-products {
 margin: 5px 20px;
}

.product-carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  max-width: 1300px;
}

.product-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  white-space: nowrap; /* Estää rivinvaihdot */
}

.product-carousel .product-info {
  margin-top: 6px;
}

.arrow {
  position: absolute;
  top: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  font-size: 24px;
}

.artist-arrow {
  position: absolute;
  margin: auto 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  font-size: 24px;
}

.left {
  left: 0;
}

.right {
  right: 0;
}

.featured-product {
  display: inline-flex; /* Näyttää tuotteet vierekkäin */
  flex-direction: column;
  overflow: hidden;
  padding: 1rem;
  background-color: #fff;
  text-decoration: none;
  color: inherit;
  position: relative; /* Lisää tämä, jotta voimme sijoittaa alennus-tagin */
  width: 190px;
  white-space: normal;
}

/* KATEGORIA -VALITSIN*/
.category-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  width: 90%;
  max-width: 700px;
  margin: 20px auto 50px auto;
}

.category-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  transition: transform 0.3s ease;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7); /* Lisää taustavarjon */
}

.category-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* Tummennus */
  transition: background-color 0.3s ease;
}

.category-box:hover::before {
  background-color: rgba(0, 0, 0, 0.4);
}

.category-box span {
  position: relative;
  z-index: 1;
}

.category-box:hover {
  transform: scale(1.05);
}

@media (min-width: 600px) {
  .category-container {
      grid-template-columns: repeat(3, 1fr);
  }
}

.lue-lisää-button {
  text-shadow: none;
  background-color: #006fff; /* Muuta tarvittaessa */
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 25px;
  transition: 0.3s ease;
  display: inline-block;
  cursor: pointer;
}
.lue-lisää-button:hover {
  background-color: #005bd3; /* Muuta tarvittaessa */
}

.benefits-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  background-color: #f5eee8;
  margin: auto;
}

.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 180px;
  padding: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.benefit:hover {
  transform: scale(1.1);
}

.benefit img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.benefit a {
  font-size: 1em;
  color: black;
  text-decoration: underline;
}

/* Tabletteja ja pieniä näyttöjä varten */
@media (max-width: 828px) {
  .benefit {
      width: 45%; /* Kaksi vierekkäin */
  }
}

.review-section {
  background-color: #f0f9f0;
  border-radius: 8px;
  padding: 30px 20px;
  max-width: 600px;
  text-align: center;
  margin: 40px auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.review-section h2 {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 10px;
}

.review-section p {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}

.review-button {
  display: inline-block;
  background-color: #0bab00;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.review-button:hover {
  background-color: #098900;
}

.artist-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  max-width: 1300px;
  position: relative;
}

.artist-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
}

.artist-box {
  position: relative;
  aspect-ratio: 1 / 1; /* Neliömuoto */
  width: 150px;
  height: 150px;
  background-size: 162%;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.artist-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* Tummennus */
  transition: background-color 0.3s ease;
}

.artist-box:hover::before {
  background-color: rgba(0, 0, 0, 0.4);
}

.artist-box span {
  position: relative;
  z-index: 1;
}

.artist-box:hover {
  transform: scale(1.05);
}

.scroll-button {
  background: none;
  border: none;
  color: #0073e6;
  font-size: 2em;
  cursor: pointer;
  transition: color 0.3s;
}

.scroll-button:hover {
  color: #005bb5;
}

.scroll-button.left {
  position: absolute;
  left: -30px;
}

.scroll-button.right {
  position: absolute;
  right: -30px;
}

.kuva-vasemmalla-teksti-oikealla-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}
.climate-ohjelma-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  margin-top: 20px;
  background-color: #f0f9f0;
}

.about-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1200px;
  gap: 40px;
}
.climate-ohjelma-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  max-width: 1200px;
  gap: 40px;
}

.about-image {
  flex: 1;
  min-height: 300px;
  width: 400px;
  background-image: url('/site-images/images/Blottart-seinäkokoelma-banner.jpg'); /* Korvaa tämä omalla kuvallasi */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.climate-ohjelma-image {
  flex: 1;
  min-height: 300px;
  width: 400px;
  background-image: url('/site-images/images/environment-forest.jpg'); /* Korvaa tämä omalla kuvallasi */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text, .climate-ohjelma-text {
  flex: 1;
  max-width: 600px;
}

.about-text h2 {
  font-size: 27x;
  margin-bottom: 10px;
  margin-top: 0;
  color: #333;
}
.climate-ohjelma-text h2 {
  font-size: 27x;
  margin-bottom: 10px;
  margin-top: 0;
  color: #1d763c;
}

.about-text, .climate-ohjelma-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Responsiivisuus mobiililaitteille */
@media (max-width: 768px) {
  .about-container, .climate-ohjelma-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about-image, .climate-ohjelma-image {
    min-height: 200px; /* Pienempi korkeus mobiililaitteilla */
    width: 100%;       /* Kuva täyttää koko leveyden */
  }

  .about-text, .climate-ohjelma-text {
    max-width: 100%;
  }
}