:root {
    --academy-green: #007e6f;
    --academy-green-dark: #005f55;
    --academy-green-soft: #eaf7f4;

    --academy-ink: #101828;
    --academy-text: #344054;
    --academy-muted: #667085;

    --academy-border: #e4e7ec;
    --academy-bg: #f7f9fb;
    --academy-surface: #ffffff;

    --academy-radius-sm: 10px;
    --academy-radius: 18px;
    --academy-radius-lg: 28px;

    --academy-shadow:
        0 1px 2px rgba(16,24,40,.03),
        0 8px 24px rgba(16,24,40,.05);

    --academy-shadow-hover:
        0 2px 4px rgba(16,24,40,.05),
        0 20px 44px rgba(16,24,40,.10);
}


/* --------------------------------------------------
   GLOBAL ACADEMY
-------------------------------------------------- */

#sadrzaj {
    overflow: clip;
}

#sadrzaj .container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.academy-section-title {
    color: var(--academy-ink);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -.035em;
}

.header-description {
    max-width: 720px;
    margin-inline: auto;
    color: var(--academy-muted);
    font-size: 1.05rem;
}


/* --------------------------------------------------
   HERO
-------------------------------------------------- */

.academy-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding:
        clamp(72px, 9vw, 126px)
        0
        clamp(64px, 8vw, 104px);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(0,126,111,.10),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #fbfdfd 0%,
            #ffffff 100%
        );
}

.academy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image:
        linear-gradient(
            rgba(16,24,40,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(16,24,40,.025) 1px,
            transparent 1px
        );

    background-size: 36px 36px;

    -webkit-mask-image:
        linear-gradient(to bottom, #000, transparent 80%);
    mask-image:
        linear-gradient(to bottom, #000, transparent 80%);
}

.academy-hero__inner {
    text-align: center;
    position: relative;
}

.academy-hero__eyebrow {
    width: fit-content;
    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 7px 13px;

    border: 1px solid rgba(0,126,111,.18);
    border-radius: 999px;

    background: rgba(255,255,255,.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    color: var(--academy-green-dark);
    font-size: .8rem;
    font-weight: 700;
}

.academy-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 100%;
    background: var(--academy-green);

    box-shadow:
        0 0 0 4px rgba(0,126,111,.11);
}

.academy-hero__title {
    max-width: 850px;
    margin: 0 auto;

    color: var(--academy-ink);

    font-family: "Roboto Slab", serif;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    font-weight: 800;
    line-height: .99;
    letter-spacing: -.055em;
}

.academy-hero__title span {
    display: block;

    color: var(--academy-green);
}

.academy-hero__lead {
    max-width: 700px;
    margin: 28px auto 0;

    color: var(--academy-muted);

    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.7;
}

.academy-hero__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 32px;
}

.academy-btn {
    min-height: 50px;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    padding: 0 21px;

    border-radius: 12px;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.academy-btn:hover {
    transform: translateY(-2px);
}

.academy-btn svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.academy-btn--primary {
    background: var(--academy-green);
    color: #fff;

    box-shadow:
        0 10px 22px rgba(0,126,111,.22);
}

.academy-btn--primary:hover {
    background: var(--academy-green-dark);
}

.academy-btn--secondary {
    color: var(--academy-ink);
    background: #fff;

    border: 1px solid var(--academy-border);
}

.academy-trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;

    margin-top: 25px;

    color: var(--academy-muted);
    font-size: .82rem;
}


/* --------------------------------------------------
   COMMAND SEARCH
-------------------------------------------------- */

.academy-command {
    position: relative;

    width: min(800px, 100%);
    margin: 46px auto 0;
}

.academy-command__search {
    min-height: 66px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 12px 8px 20px;

    background: rgba(255,255,255,.92);

    border: 1px solid #d8dee8;
    border-radius: 18px;

    box-shadow:
        0 12px 42px rgba(16,24,40,.09);

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.academy-command__search:focus-within {
    border-color: rgba(0,126,111,.55);

    box-shadow:
        0 0 0 4px rgba(0,126,111,.08),
        0 16px 46px rgba(16,24,40,.10);
}

.academy-command__search svg {
    flex: none;

    width: 21px;
    height: 21px;

    fill: none;
    stroke: #667085;
    stroke-width: 2;
}

.academy-command__search input {
    flex: 1;

    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--academy-ink);

    font: inherit;
    font-size: 1rem;
}

.academy-command__search input::placeholder {
    color: #98a2b3;
}

.academy-command kbd {
    padding: 5px 8px;

    border: 1px solid #e4e7ec;
    border-bottom-width: 2px;
    border-radius: 7px;

    background: #f9fafb;

    color: #667085;
    font-size: .72rem;
}

.academy-command__results {
    position: absolute;
    z-index: 50;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    max-height: 390px;
    overflow-y: auto;

    padding: 8px;

    border: 1px solid var(--academy-border);
    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 24px 60px rgba(16,24,40,.15);

    text-align: left;
}

.academy-search-result {
    display: block;

    padding: 12px 14px;

    border-radius: 10px;

    color: inherit;
    text-decoration: none;
}

.academy-search-result:hover {
    background: #f6f8fa;
}

.academy-search-result strong {
    display: block;

    color: var(--academy-ink);
}

.academy-search-result span {
    display: block;

    margin-top: 3px;

    color: var(--academy-muted);
    font-size: .82rem;
}


/* --------------------------------------------------
   QUICK START
-------------------------------------------------- */

.academy-start {
    padding-block: clamp(68px, 8vw, 104px);
}

.academy-section-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 470px);
    align-items: end;
    gap: 40px;

    margin-bottom: 30px;
}

.academy-section-heading h2 {
    margin: 5px 0 0;

    color: var(--academy-ink);

    font-family: "Roboto Slab", serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.academy-section-heading p {
    margin: 0;

    color: var(--academy-muted);
    line-height: 1.7;
}

.academy-section-kicker {
    color: var(--academy-green);

    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.academy-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.academy-action-card {
    position: relative;

    min-width: 0;
    min-height: 250px;

    display: flex;
    flex-direction: column;

    padding: 22px;

    text-align: left;

    background: #fff;

    border: 1px solid var(--academy-border);
    border-radius: var(--academy-radius);

    color: inherit;
    text-decoration: none;

    cursor: pointer;

    box-shadow: var(--academy-shadow);

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

button.academy-action-card {
    font: inherit;
}

.academy-action-card:hover {
    transform: translateY(-5px);

    border-color: rgba(0,126,111,.28);

    box-shadow: var(--academy-shadow-hover);
}

.academy-action-card--featured {
    background:
        linear-gradient(
            145deg,
            #006f63,
            #00917f
        );

    border-color: transparent;

    color: white;
}

.academy-action-card__icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: var(--academy-green-soft);
    color: var(--academy-green);
}

.academy-action-card--featured .academy-action-card__icon {
    background: rgba(255,255,255,.14);
    color: white;
}

.academy-action-card__icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.academy-action-card__body {
    margin-top: 28px;
}

.academy-action-card h3 {
    margin: 0;

    color: var(--academy-ink);

    font-family: "Roboto Slab", serif;
    font-size: 1.1rem;
}

.academy-action-card--featured h3 {
    color: #fff;
}

.academy-action-card p {
    margin: 9px 0 0;

    color: var(--academy-muted);

    font-size: .88rem;
    line-height: 1.55;
}

.academy-action-card--featured p {
    color: rgba(255,255,255,.76);
}

.academy-action-card__badge {
    display: inline-block;

    margin-bottom: 9px;

    color: rgba(255,255,255,.70);

    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.academy-action-card__arrow {
    margin-top: auto;
    padding-top: 18px;

    font-size: 1.3rem;
}


/* --------------------------------------------------
   STICKY NAVIGATION
-------------------------------------------------- */

.academy-nav-shell {
    position: sticky;
    top: 0;
    z-index: 40;

    border-top: 1px solid rgba(228,231,236,.8);
    border-bottom: 1px solid rgba(228,231,236,.9);

    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.academy-tabs {
    display: flex;
    align-items: center;
    gap: 4px;

    overflow-x: auto;

    padding-block: 9px;

    scrollbar-width: none;
}

.academy-tabs::-webkit-scrollbar {
    display: none;
}

.academy-tab-btn,
.academy-tab-link {
    flex: none;

    min-height: 40px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 0 14px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: #667085;

    font: inherit;
    font-size: .87rem;
    font-weight: 700;
    text-decoration: none;

    cursor: pointer;
}

.academy-tab-btn:hover,
.academy-tab-link:hover {
    background: #f2f4f7;
    color: var(--academy-ink);
}

.academy-tab-btn.active {
    background: var(--academy-green-soft);
    color: var(--academy-green-dark);
}

.academy-tab-count {
    padding: 2px 6px;

    border-radius: 20px;

    background: rgba(0,126,111,.09);

    font-size: .65rem;
}


/* --------------------------------------------------
   EXISTING CARDS - MODERNIZATION
-------------------------------------------------- */

.academy-grid {
    gap: 18px !important;
}

.academy-card,
.toolbox-card,
.software-tutorial-card,
.glossary-card,
.template-card-modern,
.preflight-item {
    border: 1px solid var(--academy-border) !important;
    border-radius: var(--academy-radius) !important;

    background: #fff !important;

    box-shadow: var(--academy-shadow) !important;
}

.academy-card {
    padding: clamp(22px, 3vw, 32px) !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease !important;
}

.academy-card:hover {
    transform: translateY(-4px) !important;

    border-color: rgba(0,126,111,.25) !important;

    box-shadow: var(--academy-shadow-hover) !important;
}

.academy-card-title {
    color: var(--academy-ink) !important;
    letter-spacing: -.02em;
}

.academy-card-text {
    color: var(--academy-text) !important;
}


/* --------------------------------------------------
   TOOLBOX
-------------------------------------------------- */

.toolbox-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.toolbox-card {
    padding: 26px !important;
}

.toolbox-input-group input,
.toolbox-input-group select {
    min-height: 44px;

    border: 1px solid #d0d5dd !important;
    border-radius: 9px !important;

    background: #fff !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.toolbox-input-group input:focus,
.toolbox-input-group select:focus {
    outline: none;

    border-color: var(--academy-green) !important;

    box-shadow:
        0 0 0 4px rgba(0,126,111,.08);
}

.toolbox-output-box {
    border-radius: 11px !important;

    background: #f8fafb !important;
    border: 1px solid #eaecf0 !important;
}


/* --------------------------------------------------
   FILE CHECKER
-------------------------------------------------- */

#provera-fajla {
    padding-block: 90px;
}

.file-checker-wrapper {
    max-width: 900px !important;
}

#file-checker-input {
    display: none !important;
}

.file-drop-area--prominent {
    position: relative;

    padding: clamp(42px, 7vw, 76px) 30px !important;

    border: 1.5px dashed #b8c4c1 !important;
    border-radius: 24px !important;

    background:
        linear-gradient(
            180deg,
            #fff,
            #f7fbfa
        );

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.file-drop-area--prominent:hover,
.file-drop-area--prominent.is-dragging {
    transform: translateY(-2px);

    border-color: var(--academy-green) !important;

    background: #f2faf8;

    box-shadow:
        0 18px 50px rgba(0,126,111,.08);
}

.privacy-badge-prominent {
    width: fit-content;

    margin: 20px auto !important;

    padding: 8px 13px !important;

    border-radius: 999px !important;

    background: var(--academy-green-soft) !important;

    color: var(--academy-green-dark) !important;

    font-size: .79rem;
    font-weight: 700;
}


/* --------------------------------------------------
   PREFLIGHT CHECKLIST (INTERACTIVE)
-------------------------------------------------- */

.academy-preflight-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.academy-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--academy-border);
    border-radius: var(--academy-radius-sm);
    box-shadow: var(--academy-shadow);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.academy-check:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 126, 111, 0.3);
    box-shadow: var(--academy-shadow-hover);
}

.academy-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.academy-check__control {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    display: inline-grid;
    place-items: center;
    transition: all .2s ease;
}

.academy-check input[type="checkbox"]:focus-visible + .academy-check__control {
    box-shadow: 0 0 0 3px rgba(0, 126, 111, 0.25);
}

.academy-check input[type="checkbox"]:checked + .academy-check__control {
    background: var(--academy-green);
    border-color: var(--academy-green);
}

.academy-check input[type="checkbox"]:checked + .academy-check__control::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.academy-check:has(input[type="checkbox"]:checked) {
    background: #fbfdfc;
    border-color: rgba(0, 126, 111, 0.35);
}

.academy-check span {
    display: block;
    color: var(--academy-text);
    font-size: .88rem;
    line-height: 1.5;
}

.academy-check span strong {
    display: block;
    color: var(--academy-ink);
    font-size: .95rem;
    margin-bottom: 2px;
}

.academy-preflight-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 28px;
}

.academy-preflight-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #007e6f, #00b49d);
    border-radius: 999px;
    transition: width .35s cubic-bezier(0.4, 0, 0.2, 1);
}

#preflight-progress-label {
    margin-top: 10px;
    font-size: .88rem;
    color: var(--academy-muted);
    font-weight: 600;
    text-align: right;
    transition: color .2s ease;
}


/* --------------------------------------------------
   TUTORIAL
-------------------------------------------------- */

.tutorial-layout {
    align-items: start;
}

.tutorial-toc {
    position: sticky;
    top: 78px;
}

.software-tutorial-card {
    overflow: hidden;
}

.tutorial-step {
    position: relative;
}

.tutorial-step-num {
    box-shadow:
        0 0 0 5px var(--academy-green-soft);
}


/* --------------------------------------------------
   ACCESSIBILITY
-------------------------------------------------- */

.academy-btn:focus-visible,
.academy-tab-btn:focus-visible,
.academy-tab-link:focus-visible,
.academy-action-card:focus-visible,
.copy-result-btn:focus-visible {
    outline: 3px solid rgba(0,126,111,.28);
    outline-offset: 3px;
}


/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 980px) {

    .academy-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .toolbox-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .academy-section-heading {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .academy-preflight-checklist {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {

    #sadrzaj .container {
        width: min(100% - 22px, 1180px);
    }

    .academy-hero {
        padding-top: 62px;
    }

    .academy-hero__title {
        font-size: clamp(2.45rem, 13vw, 3.6rem);
    }

    .academy-hero__lead {
        font-size: .98rem;
    }

    .academy-hero__actions {
        display: grid;
    }

    .academy-btn {
        width: 100%;
    }

    .academy-trust-row {
        display: grid;
        gap: 8px;
    }

    .academy-command {
        margin-top: 34px;
    }

    .academy-command__search {
        min-height: 58px;

        padding-left: 15px;
    }

    .academy-command kbd {
        display: none;
    }

    .academy-action-grid {
        grid-template-columns: 1fr;
    }

    .academy-action-card {
        min-height: 190px;
    }

    .academy-nav-shell {
        top: 0;
    }

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

}
