
.intro-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0px 50px 50px;
    background-color: var(--dark-brown);
    color: var(--white);
    clip-path: polygon(0 87%, 100% 100%, 100% 0, 0 0);
    height: 70vh;
    z-index: 1;
}
  
  .intro-text {
    margin-top: 20px;
    max-width: 30%;
    font-family: 'Poppins', sans-serif;
    margin-left: 50px;

  }

  .lightBg{
    position: relative;
  }
  
  .intro-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: bold;
  }
  
  .intro-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .intro-text button {
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    padding: 10px 20px;
    /* font-size: 1rem; */
    font-size: 20px;
    cursor: pointer;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    /* font-weight: bold; */
    font-weight: 500;
    transition: 300ms;
}

.intro-text button:hover {
    background-color: var(--yellow-hover);
    border: solid var(--yellow-hover);
    border: none;
    padding: 10px 20px;
    /* font-size: 1rem; */
    font-size: 20px;
    cursor: pointer;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    /* font-weight: bold; */
    font-weight: 500;
}
  
.intro-image img {
    height: 110vh;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
    position: absolute;
    top: -70px;
    right: 0px;
    z-index: 10;
}
  
/* News Section */
.news-section {
    margin-top: 20px;
    background: linear-gradient(to right, var(--light-brown), var(--light-brown-gradient));
    padding: 5rem 0;
}

.news-heading {
    color: black;
    text-align: center;
    font-family: var(--hfont);
    font-size: 45px;
    font-weight: 400;

}
.news-box button {
    background-color: var(--white);
    color: var(--black);
    border: none;
    padding: 5px 60px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    border: solid var(--yellow);
    text-align: center;
    margin-top: auto; /* Odsune tlačítko dolů */
    transition: 300ms;
}

.news-box button:hover {
    background-color: var(--yellow-hover);
    border: solid var(--yellow-hover);
}

.news-button {
    text-align: center;
    margin-top: auto; /* Tlačítko se odsunuje dolů */
}
.news-cards {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Všechny boxy mají stejnou výšku */
    gap: 3rem;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.news-box {
    width: 320px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 320px;
    transition: transform 0.3s ease;
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Stohování obsahu vertikálně */
    min-height: 450px; /* Minimální výška pro sjednocení */
}

.news-box:hover {
    transform: translateY(-5px);
}

.news-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    flex-grow: 1; /* Text zabírá volné místo */
    display: flex;
    flex-flow: column;
}

.news-time {
    font-size: 0.9rem;
    color: gray;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray);
    margin: 0;
}

.news-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray);
    max-height: 250px;
    overflow: hidden;
}

img + .news-content .news-text{
    max-height: 100px;
}

/* Cat List Section */
.cat-list {
    padding: 6rem 10rem;
    background-color: var(--dark-brown);
    text-align: center;
    font-family: 'Poppins', sans-serif;
}
.cat-list h3 {
    font-size: 45px;
    color: var(--white);
    /* margin-bottom: 1rem; */
    font-weight: 400;
    text-align: center;
}

.cat-list p {
    font-size: 0.9rem;
    color: gray;
    line-height: 1.5;
    text-align: left;
    margin-left: 25px;
    margin-top: 0;
    margin-bottom: 0;
}

.cat-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.cat-card {
    width: 320px;
    background-color: var(--light-yellow);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 320px;
    transition: transform 0.3s ease;
    padding-bottom: 15px;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.cat-card img {
    width: 100%;
    height: 230px!important;
    object-fit: cover;
    height: fit-content;
}

.cat-card h4 {
    font-size: 1.5rem;
    color: var(--gray);
    text-decoration: none;
    text-align: left;
    margin-left: 25px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0;
}

.cat-card h5 {
    font-size: 14px;
    color: var(--gray);
    text-decoration: none;
    text-align: left;
    margin-left: 25px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 0;
}

.cat-card a {
    text-decoration: none; /* Zruší podtržení odkazu */
    color: inherit; /* Zajistí, že text odkazu bude mít stejnou barvu jako jeho okolí */
    display: block; /* Zajistí, že celý obsah odkazu bude klikací */
}

.cat-card a:hover h4 {
    color: var(--black); /* Změní barvu textu při najetí myší */
}

.cat-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 10px;
}
.cat-button {
    background-color: var(--light-yellow);
    color: var(--black);
    border: none;
    padding: 5px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border: solid var(--yellow);
    transition: 300ms;
}

.cat-button2 {
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    padding: 5px 40px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border: solid var(--yellow);
    transition: 300ms;
}

.cat-button2:hover {
    background-color: var(--yellow-hover);
    border: solid var(--yellow-hover);
}
.cela-nabidka {
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    padding: 10px 80px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    margin-top: 80px;
    font-weight: 500;
    transition: 300ms;
}

.cela-nabidka:hover {
    background-color: var(--yellow-hover);
    border: solid var(--yellow-hover);
    border: none;
    padding: 10px 80px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    margin-top: 80px;
    font-weight: 500;

}
/* Mobilni responzivita */
@media (max-width: 768px) {
    /* Adjust the navigation bar */
    
    /* Intro Section */
    .intro-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        height: 670px;
    }

    .intro-text {
        max-width: 100%;
        margin-left: 0px;
    }

    .intro-text h1 {
        font-size: 2rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .intro-image img {
        width: 95vw;
        height: auto;
        top: 250px;
    }

    /* News Section */
    .news-section {
        margin-top: 50px;
        padding: 2rem 1rem;
        grid-template-columns: 1fr; /* Single column layout */
    }

    .news-cards{
        padding: 0;
    }

    .news-box{
        width: 95%;
        max-width: 380px;
    }

    /* Cat List Section */
    .cat-list {
        padding: 3rem 1rem;
    }

    .cat-cards {
        grid-template-columns: 1fr; /* Single column layout */
        padding: 0;
    }

    .cat-card {
        width: 95%;
        max-width: 380px;
    }
}

