/* HERO */

#hero {
    padding: 6rem 0;
}
#hero .layout-content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

#hero-body {
    width: min(100%, 400px);
}
#hero-call {
    font-size: 10rem;
    line-height: 10rem;
    padding-bottom: 5rem;
}
#hero-call span {
    position: relative;
    z-index: 1;
}
#hero-call span::after {
    position: absolute;
    display: block;
    width: 110%;
    right: -5%;
    height: 25px;
    content: "";
    z-index: -1;
    bottom: 20px;
    background-color: var(--primary);
    transform: rotate(-3deg);
}
#hero-text {
    font-size: 1.8rem;
    line-height: 2rem;
    padding-bottom: 5rem;
}
#hero-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.5rem;
}

#hero-graphics {
    display: block;
    position: relative;
}
#hero-graphics img, #hero-graphics div {
    display: block;
    position: absolute;
}
#hero-graphics-primary {
    width: 300px;
    z-index: 5;
    top: -10px;
    right: 200px;
    border: 12px solid var(--primary);
}
#hero-graphics-secondary {
    width: 300px;
    right: -10px;
    top: 120px;
    z-index: 4;
    border: 12px solid var(--primary);
}
#hero-graphics-icon {
    width: 190px;
    right: 68px;
    top: 12px;
    z-index: 3;
}

/* WHAT */

#what .layout-content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    background-color: var(--primary);
    color: var(--black-zv);
}
#what p {
    color: var(--black-zv);
    text-align: justify;
}
#what h3 {
    display: flex;
    text-wrap: nowrap;
}
#what img {
    width: 55px;
    padding-right: 1rem;
}
.what-section > img {
    display: none;
    margin-inline: auto;
}
.what-section {
    display: flex;          
    flex-direction: column; 
    width: min(100%, 300px);
    gap: 1.5rem;            
}
.what-section > i {
    display: block;
    width: fit-content;
    margin-inline: auto;
    font-size: 2.8571rem;
}


/* STATS */

#mlade-lidi::after {
    background-color: var(--accent);
}

#stats .layout-content {
    padding: 0;
}

.bento-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 50% 50%;
    gap: 1rem;
    margin-bottom: 1rem;
}
.bento-board-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    text-align: center;
    padding: 3rem;
}

.bento-text {
    color: var(--black-zv);
}

.bento-title {
    font-size: 3rem;
    font-family: 'ZV-Display';
    text-transform: uppercase;
    color: var(--black-zv);
}
.bento-row1col1 {
    background-color: var(--accent);
    grid-column-start: 1;
    grid-column-end: 4;
}
.bento-row1col2 {
    background-color: var(--secondary);
    grid-column-start: 4;
    grid-column-end: 6;
}
.bento-row2col1 {
    background-color: var(--tertiary);
    grid-column-start: 1;
    grid-column-end: 3;
}
.bento-row2col2 {
    background-color: var(--accent);
    grid-column-start: 3;
    grid-column-end: 6;
}

/* WHO */

#pro-stredoskolaky::after {
    background-color: var(--secondary);
}

#who .layout-content {
    padding: 0;
}

.grid-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.grid-board-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--inspacer);
    gap: 1rem;
    width: 100%;
    background-color: var(--accent);
    color: var(--black-zv);
}
.grid-board-item-content {
    display: none;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3rem;
    width: 100%;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}
.grid-board-item-content p {
    color: var(--black-zv);
}
.grid-board-item-content-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    max-width: 500px;
}
.grid-board-item-content img {
    width: 50%;
    min-width: 300px;
}
.grid-board-item.active .grid-board-item-content {
    display: flex;
    opacity: 1;
    max-height: 100%;
}

.grid-board-item h4 {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.grid-board-item h4:hover {
    cursor: pointer;
}
.reveal-button {
    font-size: 1rem;
    line-height: 1rem;
    color: var(--black-zv);
    background-color: var(--primary);
    border: none;
    padding: .5rem;
    transition: var(--transition);
}
.reveal-button:hover {
    color: var(--text);
    cursor: pointer;
}
.grid-board-item.active .reveal-button-icon {
    transform: rotate(180deg);
}


/* CTA */

#cta {
    padding-bottom: 6rem;
}
#cta .layout-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#cta-call {
    font-size: 6rem;
    position: relative;
    display: block;
    width: fit-content;
    z-index: 1;
    line-height: 6rem;
    text-align: center;
}
#zacit {
    width: fit-content;
}
#zacit::after {
    background-color: var(--primary);
    bottom: 5px;
}
#cta-text {
    margin-top: 4rem;
    font-size: 1.8rem;
    text-align: center;
}

#cta-map {
    width: 100%;
}
#cta-map svg {
    width: min(100%, 700px);
    display: block;
    margin-inline: auto;
}

#cta path {
    stroke: var(--text);
    stroke-width: 5px;
    fill: var(--background);
    transition: var(--transition);
}
.map-region path {
    fill: var(--primary) !important;
}
.map-region:hover path {
    fill: var(--tertiary) !important;
}

/* MEDIA */

@media (max-width:1080px) {
    #hero-graphics-circle-2 {
        display: none !important;
    }
    #hero-graphics-icon {
        display: none !important;
    }
}

@media (max-width:960px) {
    #hero-graphics {
        display: none;
    }
    #hero-body {
        width: 100%;
    }
    #hero-call {
        padding-bottom: 3rem;
    }
    #hero-text {
        padding-bottom: 3rem;
    }
}

@media (max-width:800px) {
    .what-section > img {
        display: block;
    }
    #what img {
        padding-bottom: 1rem;
    }
}

@media (max-width:650px) {
    .bento-title {
        font-size: 2rem;
    }
    .grid-board-item-content {
        flex-direction: column;
    }
    .grid-board-item-content img {
        width: 100%;
    }
}

@media (max-width:550px) {
    #hero-call {
        font-size: 4rem;
        line-height: 4rem;
    }
    #hero-call span::after {
        bottom: 0;
    }
    #hero-text {
        font-size: 1.3rem;
        line-height: 1.5rem;
    }
    #hero-row {
        font-size: 1.3rem;
    }
    #cta-call {
        font-size: 3rem;
        line-height: 3rem;
    }
    #zacit::after {
        bottom: 0;
        height: 14px;
    }
    #cta-text {
        font-size: 1.2rem;
    }
    #what .layout-content {
        flex-direction: column;
    }
    .what-section {
        margin-inline: auto;
    }
}

@media (max-width:500px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    #hero .layout-content {
        padding: 0;
    }
    #hero-row {
        gap: 1.5rem;
        justify-content: center;
        font-size: 1rem;
    }
    .bento-board {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-board-item {
        grid-column-start: 1;
        grid-column-end: 1;
        height: fit-content;
    }
    #cta .layout-content {
        padding: 0;
    }

    footer {
        padding-bottom: 6em;
    }

    #what img {
        width: 45px;
        padding-right: 0;
    }
}

@media (max-width: 499px) {
    .grid-board-item h4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: medium;
    }

    .grid-board-item h4 .button-group {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
}

.grid-board-item h4 .button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ... existing code ... */
.grid-board-item h4 .button-group {
    display: flex;
/* ... existing code ... */
    flex-wrap: wrap;
}

/* ===== NOVÉ STYLY PRO KARUSEL "AKTUÁLNĚ" ===== */

#aktualne .layout-content {
    flex-direction: column;
    align-items: center; /* Centrovaný nadpis a karusel */
    gap: 2rem;
    background-color: var(--tertiary);
    color: var(--black-zv);
}

#aktualne h2 {
    font-size: 3rem;
    font-family: 'ZV-Display';
    text-transform: uppercase;
    color: var(--black-zv);
    text-align: center;
    width: 100%;
    position: relative; /* Pro umístění tečky */
    display: flex; /* Aby tečka byla vedle textu */
    align-items: center;
    justify-content: center; /* Centrování obsahu */
}

/* Styl pro pulzující tečku */
.recording-dot {
    width: 15px;
    height: 15px;
    background-color: rgb(211, 71, 71); /* Červená barva */
    border-radius: 50%;
    animation: pulse 1.5s infinite; /* Animace pulzování */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 71, 71, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(211, 71, 71, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 71, 71, 0);
    }
}
#aktualne p {
    color: var(--black-zv);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 90%; /* Omezí maximální šířku, aby nebyl příliš roztažený */
    margin: 0 auto;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 2rem; /* Mezera mezi kartami */
    transition: transform 0.5s ease-in-out;
}

.carousel-card {
    /*
      Karty budou mít šířku 100% na mobilech (w-full).
      Na větších obrazovkách (sm:) budou mít 300px.
      `flex-shrink: 0` je klíčové, aby se karty nezmenšovaly.
    */
    width: 100%;
    flex-shrink: 0;
    background-color: var(--secondary); /* Barva pozadí z .what-section:hover */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;

}

.carousel-card i {
    font-size: 2.8571rem;
}

.carousel-card h4 {
    font-size: 1.5rem; /* Větší nadpis karty */
    font-weight: 500;
    color: var(--black-zv);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary); /* Průsvitná bílá */
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-button.prev {
    left: -60px; /* Umístění vlevo */
}

.carousel-button.next {
    right: -60px; /* Umístění vpravo */
}

.carousel-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Úpravy pro responzivitu karuselu */
@media (min-width: 650px) {
    .carousel-card {
        width: 300px; /* Pevná šířka na větších obrazovkách */
    }
}

@media (max-width: 650px) {
    #aktualne h2 {
        font-size: 2.5rem;
    }
    
    .carousel-container {
        max-width: 100%; /* Plná šířka na mobilu */
    }

    .carousel-button.prev {
        left: 5px; /* Tlačítka dovnitř na mobilu */
    }

    .carousel-button.next {
        right: 5px; /* Tlačítka dovnitř na mobilu */
    }

    .carousel-card {
        padding: 1.5rem;
    }

    .carousel-card h4 {
        font-size: 1.25rem;
    }
}