/**
Theme Name: I-match
Author: I-match child theme
Author URI: https://i-match.nl
Description: I-match child theme 2024
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: i-match
Template: astra
*/

/* --- ALGEMENE SLIDER HOMEPAGINA CONTAINER --- */
.hh-news-slider {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible; /* laat stukje van 3e slide zien */
}

/* --- INDIVIDUELE SLIDE --- */
.hh-news-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}

/* --- NIEUWSITEM --- */
.hh-news-item {
  display: flex;
  flex-direction: row;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hh-news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* --- AFBEELDING LINKS --- */
.hh-news-image {
    flex: 1;
    background-size: cover;
    object-fit: cover;
    background-position: center;
    min-height: 500px;
}

/* --- TEKST RECHTS --- */
.hh-news-info {
  flex: 1;
  padding: 30px 30px;  
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* DATUM */
.hh-news-date {
  font-size: 0.9rem;
  color: #a87a2a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* TITEL */
.hh-news-info h3 {
  margin: 0.3rem 0 0.8rem;
  font-size: 1.4rem;
  color: #222;
  line-height: 1.3;
}

/* EXCERPT */
.hh-news-info p {
  color: #555;
  margin-bottom: 1.8rem;
  line-height: 1.6;
  font-size: 1rem;
}

/* KNOP */
.hh-news-btn {
  display: inline-block;
  background: #a87a2a;
  color: #fff;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
  align-self: flex-start;
  }

.hh-news-btn:hover {
  background: #8b6423;
}

/* --- SWIPER NAVIGATIE --- */
.swiper-button-prev,
.swiper-button-next {
  color: white;
  transition: transform 0.2s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: scale(1.2);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1200px) {
  .hh-news-slider {
    max-width: 95%;
  }
}

@media (max-width: 992px) {
  .hh-news-item {
    flex-direction: column;
  }

  .hh-news-image {
    min-height: 250px;
  }

  .hh-news-info {
    padding: 1.5rem;
    text-align: center;
  }

  .hh-news-btn {
    align-self: center;
  }
}

@media (max-width: 600px) {
  .hh-news-image {
    min-height: 220px;
  }

  .hh-news-info h3 {
    font-size: 1.2rem;
  }

  .hh-news-info p {
    font-size: 0.95rem;
  }
}






.hh-products-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* --- STRUCTUUR VAN DE SLIDES --- */
.hh-product-slide {
    display: flex;
    justify-content: center;
    align-items: stretch; /* vult de hoogte netjes */
}

.hh-product-item {
    display: flex;
    flex-direction: row;
    background: #fafafa26;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 1000px;
    width: 100%;
    border-radius: 8px;
    min-height: 500px; /* zorgt dat alles even hoog blijft */
}

/* --- AFBEELDING --- */
.hh-product-image {
    flex: 1;
    background-size: contain;
    background-position: center;
    min-height: 500px; /* 👈 verhoogd van 350 naar 500 */
}

/* --- TEKSTGEDEELTE --- */
.hh-product-info {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hh-product-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.2;
}

.hh-product-info p {
    color: #fff;
    margin-bottom: 2.5rem; /* meer ruimte boven knop */
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
}

/* --- BUTTON --- */
.hh-product-btn {
    display: inline-block;
    background: #a87a2a;
    color: #fff;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.hh-product-btn:hover {
    background: #8b6423;
    color: #fff;
}

/* --- EVENT DATUM BLOK --- */
.hh-event-date {
    display: none;
    background: #a87a2a;
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    text-align: center;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hh-event-date .hh-day {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.hh-event-date .hh-num {
    display: block;
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.hh-event-date .hh-month {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* --- SWIPER-NAVIGATIE --- */
.swiper-button-prev,
.swiper-button-next {
    color: black;
    transition: transform 0.2s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.2);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* De slide zelf moet flex zijn om de item-hoogte te vullen */
    .hh-product-slide {
        display: flex;
        height: auto; 
    }

    .hh-product-item {
        display: flex;
        flex-direction: column !important;
        width: 100%;
        /* Zorgt dat alle items in de rij even hoog zijn */
        height: 100%; 
        min-height: 100%;
        background: #fafafa26; /* Behoud je achtergrondkleur */
        border-radius: 8px;
        overflow: hidden;
    }

    .hh-product-image {
        width: 100% !important;
        height: 415px !important; /* Jouw gewenste formaat */
        min-height: 415px !important;
        background-size: cover !important;
        background-position: center;
        background-repeat: no-repeat !important;
        flex-shrink: 0; /* Zorgt dat de afbeelding niet wordt ingedrukt */
    }

    .hh-product-info {
        width: 100% !important;
        padding: 20px 5px 23px 0px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Dit is de truc: de info vult de rest van de ruimte op */
        flex-grow: 1; 
        justify-content: flex-start;
    }

    .hh-product-info h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hh-product-info p {
        flex-grow: 1; /* Duwt de knop naar de onderkant als er weinig tekst is */
        margin-bottom: 1.5rem;
    }

    .hh-product-btn {
        margin-top: auto; /* Zorgt dat de knop altijd onderaan de info-sectie blijft */
        align-self: center;
    }
}
