
.intro-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    padding-top: 110px;
    padding-bottom: 0;
    background-color: var(--dark-brown);
    font-family: 'Poppins', sans-serif;

  }
  .card {
    background: #FFE9C6;
    border-radius: 22px;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    width: 1116px;
    min-height: 562px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-content-wrapper {
    display: flex;
    flex-direction: row; /* Keep image and text side by side */
    width: 100%;
}
.image-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card img.main {
    width: 479px;
    height: 414px;
    object-fit: cover;
    border-radius: 15px;
    margin-left: 79px;
    margin-top: 73px;
}
.thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-top: 10px;
    width: 450px;
}
.thumbnails img {
    width: 75px;
    height: 70px;
    border-radius: 15px;
    object-fit: cover;
}
.card-content {
    margin-left: 40px;
    flex: 1;
    padding-top: 79px;
    max-width: 450px;
}
.card h2 {
    color: #000;
    font-family: 'Poppins';
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}
.card p {
    margin: 1px 0;
    color: gray;
}

.description {
    color: #000 !important;
    font-family: Poppins;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 24px !important;
    margin-bottom: 30px!important;
    max-height: 190px;
    overflow: auto;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    animation: zoomIn 0.5s ease;
}

.lightbox:target {
    display: flex;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 2rem;
}

.cat-list {
    padding: 6rem 10rem;
    background-color: var(--dark-brown);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 185px;
}
.cat-list h3 {
    font-size: 45px;
    color: var(--white);
    /* margin-bottom: 1rem; */
    font-weight: 400;
    text-align: center;
    margin-top: 0;
}

.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-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);
}


/* Animations */
@keyframes fadeIn {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.9);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobilni responzivita */
@media (max-width: 768px) {

    .card{
        width: 90%;
        padding: 20px;
    }

    .card img.main{
        margin: 0;
        width: auto;
    }

    .card-content{
        padding: 0;
        margin: 0;
    }

    .card h2{
        margin-top: 10px;
    }

    .description{
        margin-top: 0px!important;
        max-height: none;
        margin-bottom: 20px!important;
    }

    .card-content-wrapper{
        flex-direction: column;
    }

    .cat-list h3{
        font-size: 30px;
    }
  
    /* Intro Section */
    .intro-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .intro-text {
        max-width: 100%;
    }

    .intro-text h1 {
        font-size: 2rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .intro-image img {
        max-width: 80%;
        margin: 0 auto;
    }

    /* News Section */
    .news-section {
        padding: 2rem 1rem;
        grid-template-columns: 1fr; /* Single column layout */
    }

    .news-box {
        padding: 1.5rem;
    }

    /* Cat List Section */
    .cat-list {
        padding: 3rem 1rem;
    }

    .cat-cards {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .cat-card {
        padding: 1rem;
    }

}




@media (max-width: 768px) {
    .kitten-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .kitten-table th,
    .kitten-table td {
        font-size: 0.9rem;
        white-space: nowrap; /* Prevent text wrapping */
    }
}