/* ==============================
    PROGRAM HERO
 ============================== */

.program-hero-section {
    position: relative;
    z-index: 4;

    padding: 8rem 0 8rem 0;
    background-color: #F3F6FC;
}

.program-hero-section .container {
    position: relative;
    z-index: 1;
}

.program-hero-bg {
    position: absolute;
    top: 0;
    right: -370px;
    bottom: 0;
    width: 100%;
    z-index: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    pointer-events: none;
}

.program-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    max-width: 800px;
}

.program-hero-content h1 {
    margin: 20px 0 0 0;
    padding: 0;
    font-size: 2.5rem;
    line-height: 3rem;
}

.program-hero-kratki-opis {
    margin: 10px 0 0 0;
    padding: 0;
    font-size: 1rem;
}

.program-hero-vrsta-caption {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.program-hero-predavac-caption {
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    color: #555;
}

.program-hero-content .my-button {
    margin: 2.5rem 0 0 0;
}

/* ==============================
    PROGRAM METADATA
 ============================== */

.program-metadata-wrapper {
    position: relative;
    margin-top: -4rem;
    z-index: 4;
}

.program-metadata {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    background: white;
    padding: 2rem 3rem;

    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.program-metadata-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
    padding-inline: 2rem;
}

.program-metadata-item:not(:last-child) {
    border-right: 1px solid #eee;
}

.program-metadata-item .label {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.25rem;
}

.program-metadata-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
}

/* ==============================
    PROGRAM MAIN CONTENT
 ============================== */

body {
    overflow: visible !important;
}

#program-main-content {
    margin-top: -4rem;
    margin-bottom: 6rem;
}

.program-main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.program-content {
    max-width: 800px;
}

/* ==============================
    PROGRAM STICKY HEADER
 ============================== */

html {
    scroll-behavior: smooth;
}

.program-sticky-header {
    position: sticky;
    top: 100px;
    z-index: 2;

    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.program-sticky-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;

    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
}

.program-sticky-title {
    margin: 0;
    padding: 32px 0 12px 0;

    font-size: 1.9rem;

    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.25s ease;
}

.program-sticky-header.is-sticky .program-sticky-title {
    opacity: 1;
    transform: translateY(0);
}

.program-section-nav {
    display: flex;
    gap: 32px;
}

.program-nav-link {
    position: relative;

    font-size: 1rem;
    text-decoration: none;

    color: inherit;
    transition: color 0.25s ease;
}

.program-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    width: 100%;
    height: 2px;

    background-color: #40527b;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.program-nav-link.is-active {
    color: #40527b;
}

.program-nav-link.is-active::after {
    transform: scaleX(1);
}

.program-nav-link:hover {
    color: #40527b;
}

/* ==============================
    PROGRAM SECTION BLOCKS
 ============================== */

.program-section-block {
    margin-bottom: 60px;
    scroll-margin-top: 270px;
}

.program-section-block h3 {
    margin-bottom: 20px;

    font-size: 1.56rem;
}

.program-section-block p,
.program-section-block li {
    font-size: 1rem;
}

/* ==============================
    SIDEBAR
 ============================== */

.program-sidebar {
    align-self: start;
    height: 100%;
}

.program-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.program-gallery-item {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.program-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sticky only from keywords block down (sidebar "sticks" on keyword_terms) */
.program-sidebar-sticky {
    position: sticky;
    top: 280px;
}

.program-sidebar-keywords {
    margin-top: 30px;
}

.program-sidebar-keywords-title {
    margin-bottom: 20px;
    font-size: 1.56rem;
    font-weight: 600;
}


/* ==============================
    RESPONSIVENESS
 ============================== */

@media (max-width: 1024px) {

    .program-hero-bg {
        display: none;
    }

    .program-sticky-header {
        display: none;
    }

    #program-main-content {
        margin-top: 2rem;
    }

    .program-main-layout {
        grid-template-columns: 1fr;
    }

    .program-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {

    .program-hero-section {
        padding: 4rem 0 3rem 0;
    }

    .program-metadata-wrapper {
        margin-top: 1.5rem;
    }

    .program-metadata {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1.5rem;
        row-gap: 1rem;
    }

    .program-metadata-item {
        padding-inline: 0;
        min-width: 0;
    }

    .program-metadata-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }
}