.lazyblock-hero {
    font-family: 'Figtree', system-ui, sans-serif;
    background: #f9faff;
}

.lazyblock-hero .container {
    max-width: var(--theme-normal-container-max-width, 1320px);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 24px);
}

/* Hero media */
.hero-media {
    position: relative;
    aspect-ratio: 1440 / 540;
    min-height: 320px;
    overflow: hidden;
    background: #4162ae;
}

.hero-media__image {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .6s ease;
    will-change: transform;
}

.hero-media__image.is-active {
    opacity: 1;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .5) 10%, rgba(102, 102, 102, 0) 110%);
    pointer-events: none;
}

/* Autoplay Dots Indicator */
.hero-media__dots {
    position: absolute;
    right: 16px;
    bottom: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-media__dot {
    position: relative;
    width: 8px;
    height: 8px;
    border: 0;
    padding: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    overflow: hidden;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-media__dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-media__dot.is-active {
    width: 28px;
    background: rgba(255, 255, 255, 0.4);
}

.hero-media__dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 4px;
}

.hero-media__dot.is-active::before {
    animation: dotProgress 5s linear forwards;
}

.hero-media.is-paused .hero-media__dot.is-active::before {
    animation-play-state: paused;
}

/* Pulsing effect when paused to hint interaction */
.hero-media.is-paused .hero-media__dot.is-active {
    animation: heroDotPulse 1.5s infinite ease-in-out;
}

@keyframes dotProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes heroDotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    }
}

.hero-media__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 120px;
    z-index: 1;
}

.hero-media__title h1 {
    margin: 0;
    max-width: 600px;
    color: #fff;
    font-weight: 500;
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    line-height: 1.15;
    /* letter-spacing: -0.02em; */
}

@media (max-width: 1024px) {
    .hero-media__title {
        bottom: 72px;
    }
}

@media (max-width: 640px) {
    .hero-media {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .hero-media__title {
        bottom: 40px;
    }

    .hero-media__title br:last-child {
        display: none;
    }
}

/* Boxes grid */
.hero-boxes {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: -96px;
    padding-bottom: 48px;
}

.hero-card--news {
    grid-column: 1;
    grid-row: 1 / 3;
}

.hero-card--ucebni {
    grid-column: 2;
    grid-row: 1 / 3;
}

.hero-card--maturitni {
    grid-column: 3;
    grid-row: 1;
}

.hero-card--nastavbove {
    grid-column: 3;
    grid-row: 2;
}

@media (max-width: 1024px) {
    .hero-boxes {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -48px;
    }

    .hero-card--news {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-card--ucebni {
        grid-column: 2;
        grid-row: 1;
    }

    .hero-card--maturitni {
        grid-column: 1;
        grid-row: 2;
    }

    .hero-card--nastavbove {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 640px) {
    .hero-boxes {
        grid-template-columns: 1fr;
        margin-top: -24px;
    }

    .hero-card--news,
    .hero-card--ucebni,
    .hero-card--maturitni,
    .hero-card--nastavbove {
        grid-column: 1;
        grid-row: auto;
    }

    .hero-card--obory .hero-card__toggle {
        cursor: pointer;
    }

    .hero-card--obory .hero-chevron {
        display: block;
    }

    .hero-card--obory .prog-list {
        display: none;
    }

    .hero-card--obory.is-open .prog-list {
        display: flex;
    }

    .hero-card--obory.is-open .hero-chevron {
        transform: rotate(180deg);
    }
}

/* Card */
.hero-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #fff;
    border-bottom: 2px solid #2a3f82;
    border-radius: 4px;
    padding: 25px 24px 24px;
}

.hero-card__heading {
    margin: 0;
    color: #1c2040;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0 !important;
}

.hero-card__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: default;
}

.hero-chevron {
    display: none;
    flex-shrink: 0;
    color: #1c2040;
    transition: transform .2s ease;
}

.hero-arrow {
    flex-shrink: 0;
    color: #d0d4e8;
    transition: color .15s, transform .15s;
}

/* Program list (Účební / Maturitní / Nástavbové obory) */
.prog-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.prog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 10px 20px;
    background: var(--theme-palette-color-7);
    border-left: 4px solid #d0d4e8;
    border-radius: 3px;
    color: #1c2040;
    font-size: 16px;
    line-height: 1.65;
    text-decoration: none;
}

.prog-name {
    font-weight: 500;
}

.prog-item:hover .hero-arrow {
    color: #4162ae;
    transform: translateX(3px);
}

/* News list (Nepřehlédněte) */
.notices-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notice-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d0d4e8;
}

.notice-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.notice-cat {
    background: #f2f7fc;
    border-radius: 3px;
    padding: 2px 8px;
    color: #4162ae;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
}

.notice-date {
    /* color: rgba(28, 32, 64, .65); */
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
}

.notice-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #1c2040;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.65;
    text-decoration: underline;
}

.notice-link:hover .hero-arrow {
    color: #4162ae;
    transform: translateX(3px);
}

/* "Starší aktuality" link */
.hero-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4162ae;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
    text-decoration: none;
}

.hero-card__more:hover .hero-arrow {
    transform: translateX(3px);
}