﻿/*
============================================================
 Training Center - site.css
 Sređena verzija CSS fajla

============================================================
*/

/* =========================
   BASE
   ========================= */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
}

/* =========================
   APP LAYOUT
   ========================= */

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 0 auto;
}

.app-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
}

/* =========================
   HEADER / NAVIGATION
   ========================= */

.navbar-brand {
    color: #0f172a !important;
    font-weight: 700;
}

.nav-link {
    color: #334155 !important;
    font-weight: 500;
}

    .nav-link:hover {
        color: #0f172a !important;
    }

/* =========================
   BUTTONS
   ========================= */

.btn-primary {
    background-color: #0f3d75;
    border-color: #0f3d75;
}

    .btn-primary:hover {
        background-color: #0b2f5a;
        border-color: #0b2f5a;
    }

.btn-outline-primary {
    color: #0f3d75;
    border-color: #0f3d75;
}

    .btn-outline-primary:hover {
        background-color: #0f3d75;
        border-color: #0f3d75;
    }

/* =========================
   SHARED UI
   ========================= */

.section-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f3d75;
}

.section-header {
    max-width: 760px;
}

.empty-block {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    color: #475569;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.5rem;
}

.object-fit-cover {
    object-fit: cover;
}

/* =========================
   FORMS
   ========================= */

.form-control,
.form-select {
    border-radius: 12px;
    min-height: 46px;
}

textarea.form-control {
    min-height: auto;
}

.form-label {
    font-weight: 600;
    color: #334155;
}

.form-check-input {
    margin-top: 0.3rem;
}

.alert.rounded-4 {
    border-radius: 16px !important;
}

/* =========================
   PAGE HERO
   ========================= */

.page-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

.page-hero-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 2rem;
}

/* =========================
   HOME PAGE
   ========================= */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

    /* Uklanja stare dekorativne krugove. */
    .hero-section::before,
    .hero-section::after,
    .hero-section .container::before,
    .hero-section .container::after,
    .hero-visual-wrap::before,
    .hero-visual-wrap::after,
    .home-partners-section::before,
    .home-partners-section::after,
    .home-testimonials-section::before,
    .home-testimonials-section::after {
        content: none !important;
        display: none !important;
    }

    .hero-section > .container {
        position: relative;
        z-index: 1;
    }

.hero-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #dbeafe;
    color: #0f3d75;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-visual-wrap {
    position: relative;
    padding: 14px;
}

.hero-main-image {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
    animation: heroImageFloat 7s ease-in-out infinite;
}

.hero-image-placeholder {
    min-height: 360px;
    border-radius: 20px;
    background: #dfe7f2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #334155;
    padding: 2rem;
    border: 1px solid #d5deea;
}

.hero-floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
}

    .hero-floating-card strong {
        display: block;
        color: #0f172a;
        line-height: 1.2;
    }

    .hero-floating-card small {
        display: block;
        color: #64748b;
        font-size: 0.78rem;
    }

.hero-floating-card-top {
    top: 34px;
    left: -4px;
    animation: floatingCardOne 5.5s ease-in-out infinite;
}

.hero-floating-card-bottom {
    right: 4px;
    bottom: 34px;
    animation: floatingCardTwo 6.5s ease-in-out infinite;
}

.hero-floating-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #0f3d75;
    color: #ffffff;
    font-weight: 700;
}

.highlight-card {
    background: #0f3d75;
    color: #ffffff;
    border-radius: 24px;
    padding: 2rem;
}

    .highlight-card .text-muted {
        color: rgba(255, 255, 255, 0.85) !important;
    }

.category-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #eff6ff;
    color: #0f3d75;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}

.category-link {
    color: #0f3d75;
    font-weight: 600;
    text-decoration: none;
}

    .category-link:hover {
        text-decoration: underline;
    }

.stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid #e5e7eb;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f3d75;
    margin-bottom: 0.75rem;
}

.cta-block {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem 1.5rem;
    border: 1px solid #e5e7eb;
}

.category-card,
.stat-card,
.dynamic-card,
.highlight-card,
.cta-block {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .category-card:hover,
    .stat-card:hover,
    .dynamic-card:hover,
    .highlight-card:hover,
    .cta-block:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    }

        .category-card:hover .category-icon {
            transform: scale(1.08) rotate(-3deg);
        }

.btn-primary,
.btn-outline-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(15, 61, 117, 0.22);
    }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.01);
    }
}

@keyframes floatingCardOne {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatingCardTwo {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 991.98px) {
    .hero-visual-wrap {
        padding: 0;
    }

    .hero-main-image {
        min-height: 260px;
    }

    .hero-floating-card {
        position: static;
        min-width: auto;
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-main-image,
    .hero-floating-card-top,
    .hero-floating-card-bottom {
        animation: none;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* =========================
   PROGRAM PAGE
   ========================= */

.program-page-section {
    min-height: 400px;
}

.program-category-section {
    scroll-margin-top: 30px;
}


.program-category-header {
    display: grid;
    grid-template-columns: minmax(320px, 42%) 1fr;
    min-height: 280px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.program-category-image {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background: #eef3f8;
}

    .program-category-image img {
        width: 100%;
        height: 100%;
        position: absolute;
        inset: 0;
        object-fit: cover;
        object-position: center;
        transition: transform 0.4s ease;
    }

.program-category-header:hover .program-category-image img {
    transform: scale(1.025);
}

.program-category-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 3rem);
}

    .program-category-content h2 {
        color: #0f2745;
        font-size: clamp(1.7rem, 3vw, 2.35rem);
    }

    .program-category-content p {
        max-width: 720px;
        font-size: 1.02rem;
        line-height: 1.75;
    }

@media (max-width: 767.98px) {
    .program-category-header {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 18px;
    }

    .program-category-image {
        min-height: 220px;
    }

    .program-category-content {
        padding: 1.5rem;
    }
}

.program-category-section:last-child {
    margin-bottom: 0 !important;
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.program-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #0f3d75;
    font-size: 0.85rem;
    font-weight: 600;
}

.program-meta {
    font-size: 0.95rem;
    color: #334155;
    display: grid;
    gap: 0.35rem;
}

.detail-meta {
    display: grid;
    gap: 1rem;
    color: #334155;
    font-size: 0.95rem;
}

.sticky-info-card {
    position: sticky;
    top: 100px;
}

.program-rich-text {
    line-height: 1.8;
    font-size: 1rem;
    color: #475569;
}

.detail-meta-item {
    display: grid;
    gap: 0.3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

    .detail-meta-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .detail-meta-item strong {
        color: #0f172a;
        font-size: 0.95rem;
    }

    .detail-meta-item span {
        color: #475569;
    }

/* =========================
   TIMELINE
   ========================= */

.timeline-wrapper {
    position: relative;
    display: grid;
    gap: 2rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 24px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.timeline-year {
    font-weight: 700;
    color: #0f3d75;
    padding-top: 0.25rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0f3d75;
    position: relative;
    margin-top: 0.35rem;
}

    .timeline-dot::after {
        content: "";
        position: absolute;
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: calc(100% + 2rem);
        background: #cbd5e1;
    }

.timeline-item:last-child .timeline-dot::after {
    display: none;
}

.timeline-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.5rem;
}

@media (max-width: 767.98px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-year {
        padding-top: 0;
    }
}

/* =========================
   INSTRUCTORS
   ========================= */

.instructor-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.instructor-photo {
    height: 260px;
    background: #e2e8f0;
}

.instructor-photo-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: linear-gradient(180deg, #dbe5f0 0%, #cfd9e6 100%);
    text-align: center;
    padding: 1rem;
}

.instructor-meta {
    display: grid;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #334155;
}

.instructor-card {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.instructor-card-featured {
    border: 2px solid #0f3d75;
    box-shadow: 0 20px 50px rgba(15, 61, 117, 0.18);
    transform: translateY(-4px) scale(1.01);
}

    /* blagi glow efekt */
    .instructor-card-featured::after {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: 24px;
        background: linear-gradient( 135deg, rgba(15, 61, 117, 0.25), rgba(59, 130, 246, 0.15) );
        z-index: -1;
        filter: blur(12px);
        opacity: 0.6;
    }

    /* malo drugačija slika */
    .instructor-card-featured .instructor-photo {
        background: linear-gradient(180deg, #dbeafe 0%, #e2e8f0 100%);
    }

    .instructor-card-featured:hover {
        transform: translateY(-6px) scale(1.015);
        box-shadow: 0 28px 60px rgba(15, 61, 117, 0.22);
    }

/* =========================
   GALLERY
   ========================= */

.gallery-category-section {
    scroll-margin-top: 140px;
}

    .gallery-category-section:last-child {
        margin-bottom: 0 !important;
    }

.gallery-filter-bar {
    position: sticky;
    top: 82px;
    z-index: 20;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.gallery-filter-inner {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gallery-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .gallery-filter-pill:hover,
    .gallery-filter-pill.active {
        background: #0f3d75;
        border-color: #0f3d75;
        color: #ffffff;
    }

.gallery-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .gallery-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    }

.gallery-image-wrap,
.gallery-video-wrap {
    position: relative;
    height: 240px;
    background: #e2e8f0;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-image-link {
    display: block;
    position: relative;
    height: 100%;
}

/*.gallery-image-link::after {
        content: "Otvori";
        position: absolute;
        right: 1rem;
        bottom: 1rem;
        background: rgba(0, 0, 0, 0.65);
        color: #ffffff;
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
    }*/

.gallery-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: linear-gradient(180deg, #dbe5f0 0%, #cfd9e6 100%);
    text-align: center;
    padding: 1rem;
}

.gallery-video-cover-link {
    display: block;
    position: relative;
    height: 100%;
}

.gallery-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
}

/* =========================
   GALLERY LIGHTBOX
   ========================= */

.gallery-lightbox-body {
    position: relative;
    min-height: 250px;
}

.gallery-lightbox-image {
    display: block;
    margin: 0 auto;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .gallery-lightbox-nav:hover {
        color: #ffffff;
        background: #0d6efd;
        border-color: #0d6efd;
        transform: translateY(-50%) scale(1.08);
    }

    .gallery-lightbox-nav:focus-visible {
        outline: 3px solid rgba(255, 255, 255, 0.9);
        outline-offset: 3px;
    }

.gallery-lightbox-prev {
    left: 1rem;
}

.gallery-lightbox-next {
    right: 1rem;
}

@media (max-width: 767.98px) {
    .gallery-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.8rem;
    }

    .gallery-lightbox-prev {
        left: 0.5rem;
    }

    .gallery-lightbox-next {
        right: 0.5rem;
    }
}

/* Precizno centrirane strelice, bez tekstualnih znakova */
.gallery-lightbox-nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.gallery-lightbox-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.gallery-lightbox-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.gallery-lightbox-nav[hidden] {
    display: none;
}

/* =========================
   DOCUMENTS
   ========================= */

.document-category-section:last-child {
    margin-bottom: 0 !important;
}

.document-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.document-icon-wrap {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eef4fb 0%, #dbe7f4 100%);
    border-bottom: 1px solid #e5e7eb;
}

.document-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #0f3d75;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.document-meta {
    display: grid;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #334155;
}

/* =========================
   CALENDAR
   ========================= */

.calendar-list {
    display: grid;
    gap: 1.5rem;
}

.calendar-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.calendar-date-box {
    background: linear-gradient(180deg, #eef4fb 0%, #dbe7f4 100%);
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    color: #0f3d75;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.calendar-date-day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.calendar-date-month {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
}

.calendar-content {
    min-width: 0;
}

.calendar-meta {
    display: grid;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #334155;
}

.calendar-page .page-hero-box {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    padding: 1.5rem;
}

.calendar-page .section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #0d6efd;
}

.calendar-page .calendar-list {
    display: grid;
    gap: 1rem;
}

.calendar-page .calendar-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    padding: 1.1rem;
    box-shadow: 0 0.2rem 0.8rem rgba(0,0,0,.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .calendar-page .calendar-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.6rem 1.4rem rgba(0,0,0,.08);
    }

.calendar-page .calendar-date-box {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .85rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 110px;
}

.calendar-page .calendar-date-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #0d6efd;
    margin-bottom: .4rem;
}

.calendar-page .calendar-date-month {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.calendar-page .calendar-date-year {
    font-size: .95rem;
    color: #6c757d;
    margin-top: .15rem;
}

.calendar-page .calendar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .65rem;
}

.calendar-page .program-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .32rem .7rem;
    font-size: .8rem;
    font-weight: 600;
    background: #eef4ff;
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, .12);
}

.calendar-page .program-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: .3rem;
}

.calendar-page .session-title {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: .7rem;
}

.calendar-page .calendar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: .75rem;
    font-size: .93rem;
    color: #495057;
}

    .calendar-page .calendar-meta strong {
        color: #212529;
        margin-right: .3rem;
    }

.calendar-page .calendar-notes {
    color: #6c757d;
    line-height: 1.55;
    margin-bottom: .9rem;
}

.calendar-page .calendar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

    .calendar-page .calendar-actions .btn {
        border-radius: .7rem;
        padding: .55rem .95rem;
        font-weight: 600;
    }

@media (max-width: 767.98px) {
    .calendar-card {
        grid-template-columns: 1fr;
    }

    .calendar-date-box {
        min-height: auto;
    }
}

/* =========================
   ADMIN LAYOUT
   ========================= */

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #f8fafc;
}

.admin-sidebar {
    background: #0f172a;
    color: #ffffff;
    padding: 1.5rem 1rem;
}

.admin-brand {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

    .admin-brand a {
        color: #ffffff;
        text-decoration: none;
    }

.admin-nav {
    display: grid;
    gap: 0.35rem;
}

    .admin-nav a {
        color: #cbd5e1;
        text-decoration: none;
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .admin-nav a:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #ffffff;
        }

.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-content {
    flex: 1;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.admin-card-text {
    color: #475569;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

    .admin-table th {
        font-weight: 700;
        color: #334155;
        background: #f8fafc;
    }

    .admin-table td,
    .admin-table th {
        vertical-align: middle;
    }

@media (max-width: 991.98px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        padding: 1rem;
    }
}

/* =========================
   HOME PAGE - EXTRA DETAILS
   ========================= */

.hero-trust-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

    .hero-trust-strip span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 58px;
        padding: 0.45rem 0.75rem;
        border-radius: 999px;
        background: rgba(15, 61, 117, 0.08);
        color: #0f3d75;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        border: 1px solid rgba(15, 61, 117, 0.12);
    }

    .hero-trust-strip small {
        color: #64748b;
        font-weight: 600;
    }

.category-card {
    position: relative;
    overflow: hidden;
}

    .category-card::before {
        content: "";
        position: absolute;
        top: -45px;
        right: -45px;
        width: 95px;
        height: 95px;
        border-radius: 50%;
        background: rgba(15, 61, 117, 0.06);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .category-card:hover::before {
        transform: scale(1.25);
        opacity: 0.9;
    }

.category-mini-label {
    display: inline-flex;
    width: fit-content;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f3d75;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-dynamic {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .stat-card-dynamic::after {
        content: "";
        position: absolute;
        right: -35px;
        bottom: -35px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: rgba(15, 61, 117, 0.07);
        pointer-events: none;
    }

    .stat-card-dynamic > * {
        position: relative;
        z-index: 1;
    }

    .stat-card-dynamic:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    }

.cta-block {
    position: relative;
    overflow: hidden;
}

    .cta-block::before {
        content: "";
        position: absolute;
        left: -80px;
        top: -80px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(15, 61, 117, 0.06);
        pointer-events: none;
    }

    .cta-block::after {
        content: "";
        position: absolute;
        right: -90px;
        bottom: -90px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(15, 61, 117, 0.07);
        pointer-events: none;
    }

    .cta-block > * {
        position: relative;
        z-index: 1;
    }

.cta-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

    .cta-steps div {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.65rem 0.95rem;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        color: #334155;
    }

    .cta-steps span {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #0f3d75;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 800;
        flex: 0 0 auto;
    }

    .cta-steps strong {
        font-size: 0.9rem;
        font-weight: 700;
    }

@media (max-width: 575.98px) {
    .hero-trust-strip {
        gap: 0.45rem;
    }

        .hero-trust-strip span {
            min-width: auto;
            font-size: 0.72rem;
            padding: 0.35rem 0.6rem;
        }

    .cta-steps {
        flex-direction: column;
        align-items: stretch;
    }

        .cta-steps div {
            justify-content: flex-start;
            border-radius: 16px;
        }
}


/* =========================
   HOME PAGE - REFERENCES & TESTIMONIALS POLISH
   ========================= */

.home-soft-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

.home-partners-section .container,
.home-testimonials-section .container {
    position: relative;
    z-index: 1;
}

.home-reference-card,
.home-testimonial-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .home-reference-card::before,
    .home-testimonial-card::before {
        content: "";
        position: absolute;
        top: -45px;
        right: -45px;
        width: 105px;
        height: 105px;
        border-radius: 50%;
        background: rgba(15, 61, 117, 0.06);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .home-reference-card:hover,
    .home-testimonial-card:hover {
        transform: translateY(-6px);
        border-color: rgba(15, 61, 117, 0.18);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    }

        .home-reference-card:hover::before,
        .home-testimonial-card:hover::before {
            transform: scale(1.25);
            opacity: 0.9;
        }

.home-reference-logo-wrap {
    min-height: 120px;
    padding: 1.5rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #eef2f7;
}

.home-reference-logo {
    max-height: 74px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(10%);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.home-reference-card:hover .home-reference-logo {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.home-reference-logo-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #eff6ff;
    color: #0f3d75;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
}

.home-reference-card-body {
    position: relative;
    z-index: 1;
    padding: 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-card-mini-label {
    display: inline-flex;
    width: fit-content;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f3d75;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-testimonial-card {
    padding: 1.5rem;
    min-height: 100%;
}

.home-quote-mark {
    position: absolute;
    right: 1.1rem;
    top: 0.2rem;
    color: rgba(15, 61, 117, 0.10);
    font-size: 5.5rem;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    pointer-events: none;
}

.home-testimonial-quote {
    position: relative;
    z-index: 1;
    color: #334155;
    font-style: italic;
    line-height: 1.7;
}

.home-testimonial-photo,
.home-testimonial-photo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex: 0 0 auto;
    object-fit: cover;
    border: 3px solid #eff6ff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.home-testimonial-photo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f3d75;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
}

@media (max-width: 575.98px) {
    .home-reference-logo-wrap {
        min-height: 100px;
    }

    .home-testimonial-card {
        padding: 1.25rem;
    }
}


/* =========================
   HOME PAGE - FULL-WIDTH HERO
   ========================= */

.home-hero-banner {
    position: relative;
    width: 100%;
    min-height: 540px;
    overflow: hidden;
    border-radius: 28px;
    background: #dfe7f2;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.home-hero-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero-banner-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #dfe7f2;
    color: #334155;
    text-align: center;
}

.home-hero-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient( 180deg, rgba(15, 23, 42, 0.08) 20%, rgba(15, 23, 42, 0.20) 65%, rgba(15, 23, 42, 0.62) 100% );
}

.home-hero-banner .hero-floating-card {
    z-index: 3;
}

.home-hero-banner .hero-floating-card-top {
    top: 32px;
    left: 32px;
}

.home-hero-banner .hero-floating-card-bottom {
    right: 32px;
    bottom: 32px;
}

.home-hero-actions {
    position: absolute;
    z-index: 3;
    left: 32px;
    bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .home-hero-actions .btn {
        min-width: 175px;
        font-weight: 700;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    }

.home-hero-secondary-button {
    color: #0f3d75;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

    .home-hero-secondary-button:hover {
        color: #0f3d75;
        background: #ffffff;
    }

@media (max-width: 991.98px) {
    .home-hero-banner {
        min-height: 480px;
    }

        .home-hero-banner .hero-floating-card {
            position: absolute;
            min-width: 200px;
            margin-top: 0;
        }

        .home-hero-banner .hero-floating-card-top {
            top: 24px;
            left: 24px;
        }

        .home-hero-banner .hero-floating-card-bottom {
            right: 24px;
            bottom: 24px;
        }

    .home-hero-actions {
        left: 24px;
        bottom: 24px;
    }
}

@media (max-width: 575.98px) {
    .home-hero-banner {
        min-height: 560px;
        border-radius: 20px;
    }

        .home-hero-banner .hero-floating-card {
            left: 16px;
            right: 16px;
            min-width: 0;
        }

        .home-hero-banner .hero-floating-card-top {
            top: 16px;
        }

        .home-hero-banner .hero-floating-card-bottom {
            top: 98px;
            bottom: auto;
        }

    .home-hero-actions {
        left: 16px;
        right: 16px;
        bottom: 16px;
        flex-direction: column;
    }

        .home-hero-actions .btn {
            width: 100%;
        }
}


.highlight-media-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.highlight-media-image {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.highlight-card:hover .highlight-media-image {
    transform: scale(1.035);
}

.highlight-card .section-label {
    color: #bfdbfe;
}

.highlight-card .btn-light {
    color: #0f3d75;
    border: none;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .highlight-media-image {
        height: 230px;
    }
}

/* ==========================================
   MODERNA O NAMA STRANICA
   ========================================== */

.about-modern-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0f3d75;
}

.about-modern-hero-image,
.about-modern-hero-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.about-modern-hero-image {
    object-fit: cover;
    object-position: center;
}

.about-modern-hero-placeholder {
    background: linear-gradient( 135deg, #0f3d75, #1d5d9f );
}

.about-modern-hero-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient( 180deg, rgba(15, 23, 42, 0.08) 20%, rgba(15, 23, 42, 0.72) 100% );
}

.about-modern-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 90px;
    color: #ffffff;
}

    .about-modern-hero-content h1 {
        max-width: 850px;
        margin: 0 0 18px;
        font-size: clamp(2.5rem, 5vw, 4.7rem);
        font-weight: 800;
        line-height: 1.08;
    }

    .about-modern-hero-content p {
        max-width: 720px;
        margin: 0;
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.25rem;
        line-height: 1.65;
    }

.about-modern-hero-label {
    margin-bottom: 14px;
    color: #bfdbfe;
}

.about-modern-intro {
    position: relative;
    z-index: 3;
    margin-top: -45px;
    padding-bottom: 60px;
}

.about-modern-intro-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 44px 50px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

    .about-modern-intro-card h2 {
        max-width: 850px;
        color: #0f172a;
    }

.about-modern-text p {
    margin-bottom: 22px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.85;
}

    .about-modern-text p:last-child {
        margin-bottom: 0;
    }

.about-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

    .about-video-wrapper iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.about-expertise-card {
    padding: 48px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

.about-expertise-image {
    display: block;
    width: 100%;
    min-height: 390px;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
}

.about-quote-card {
    position: relative;
    overflow: hidden;
    padding: 55px 65px;
    background: #0f3d75;
    color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 61, 117, 0.2);
}

.about-quote-mark {
    position: absolute;
    top: -25px;
    right: 30px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    font-size: 12rem;
    line-height: 1;
}

.about-quote-card blockquote {
    position: relative;
    z-index: 1;
    max-width: 950px;
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.55;
}

.about-quote-author {
    position: relative;
    z-index: 1;
    margin-top: 25px;
    font-weight: 700;
}

    .about-quote-author span {
        display: block;
        margin-top: 4px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.9rem;
        font-weight: 400;
    }

@media (max-width: 991.98px) {
    .about-modern-hero {
        min-height: 440px;
    }

    .about-modern-hero-content {
        padding-bottom: 75px;
    }

    .about-modern-intro-card,
    .about-expertise-card {
        padding: 35px;
    }

    .about-expertise-image {
        min-height: 310px;
    }
}

@media (max-width: 575.98px) {
    .about-modern-hero {
        min-height: 390px;
    }

    .about-modern-hero-content {
        padding-top: 70px;
        padding-bottom: 65px;
    }

        .about-modern-hero-content p {
            font-size: 1.05rem;
        }

    .about-modern-intro {
        margin-top: -28px;
        padding-bottom: 35px;
    }

    .about-modern-intro-card,
    .about-expertise-card {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .about-expertise-image {
        min-height: 230px;
    }

    .about-quote-card {
        padding: 40px 25px;
        border-radius: 18px;
    }
}

/* Prikaz hero bannera od ruba do ruba. */

.home-hero-full {
    padding: 0 !important;
}

    .home-hero-full .home-hero-banner {
        width: 100%;
        min-height: 560px;
        border-radius: 0;
        box-shadow: none;
    }

@media (max-width: 991.98px) {
    .home-hero-full .home-hero-banner {
        min-height: 500px;
    }
}

@media (max-width: 575.98px) {
    .home-hero-full .home-hero-banner {
        min-height: 560px;
        border-radius: 0;
    }
}

@media (min-width: 992px) {
    .hero-floating-card-top {
        scale: 1.3;
        transform-origin: top left;
    }
}


.calendar-month-tabs {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.calendar-month-tab {
    min-width: 0;
    min-height: 62px;
    padding: 0.55rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: #334155;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.calendar-month-name {
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
}

.calendar-month-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    color: #0d6efd;
    background: #eef4ff;
    border-radius: 999px;
    font-size: 0.72rem;
}

.calendar-month-tab:hover {
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.4);
    background: #f8fbff;
}

.calendar-month-tab.active {
    color: #ffffff;
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 5px 14px rgba(13, 110, 253, 0.2);
}

    .calendar-month-tab.active .calendar-month-count {
        color: #0d6efd;
        background: #ffffff;
    }

.calendar-month-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .calendar-month-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.65rem;
        scrollbar-width: thin;
    }

    .calendar-month-tab {
        flex: 0 0 90px;
    }
}

/* Footer - društvene mreže */

.footer-social-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

    .footer-social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: #f1f5f9;
        color: #174b78;
        border: 1px solid #e2e8f0;
        border-radius: 50%;
        text-decoration: none;
        font-size: 19px;
        line-height: 1;
        transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    }

        .footer-social-icons a:hover {
            background: #174b78;
            color: #ffffff;
            transform: translateY(-3px);
            box-shadow: 0 5px 14px rgba(23, 75, 120, .20);
        }

        .footer-social-icons a:focus-visible {
            outline: 2px solid #174b78;
            outline-offset: 3px;
        }

    .footer-social-icons i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }


/* =============================================
   PROGRAM INDEX - navigacija kroz kategorije
   ============================================= */
.program-category-nav {
    padding: 24px;
    border: 1px solid #e2eaf3;
    border-radius: 22px;
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 78%);
    box-shadow: 0 12px 32px rgba(15, 61, 117, .06);
}

.program-category-nav-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 18px;
}

.program-category-nav-title {
    color: #123c6b;
    font-size: 1.12rem;
    font-weight: 750;
}

.program-category-nav-hint {
    color: #64748b;
    font-size: .88rem;
}

.program-category-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.program-category-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    background: #fff;
    color: #17446f;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    text-decoration: none;
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .program-category-nav-link:hover,
    .program-category-nav-link:focus-visible {
        background: #eff6ff;
        color: #0f3d75;
        border-color: #9dc4ed;
        box-shadow: 0 5px 14px rgba(15, 61, 117, .09);
        transform: translateY(-2px);
    }

.program-category-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 24px;
    padding: 0 6px;
    border-radius: 7px;
    background: #eef4fb;
    color: #527295;
    font-size: .8rem;
    font-weight: 700;
}

.program-page-section .program-category-section {
    scroll-margin-top: 110px;
}

@media (prefers-reduced-motion: no-preference) {
    .program-page-section {
        scroll-behavior: smooth;
    }
}

@media (max-width: 575.98px) {
    .program-category-nav {
        padding: 18px 15px;
        border-radius: 17px;
    }

    .program-category-nav-links {
        gap: 8px;
    }

    .program-category-nav-link {
        width: 100%;
        padding: 12px 13px;
    }

    .program-category-nav-hint {
        font-size: .82rem;
    }
}

/* PROGRAM: opis na punoj sirini, povezan s karticom kategorije */
.program-page-section .program-category-panel {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

    .program-page-section .program-category-panel .program-category-header {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 280px;
    }

    .program-page-section .program-category-panel .program-category-image {
        min-height: 280px;
    }

    .program-page-section .program-category-panel .program-category-description {
        width: 100%;
        padding: 1.35rem 1.75rem 1.4rem;
        background: linear-gradient(110deg, #f0f6fd 0%, #f8fbff 100%);
        border-top: 1px solid #dce8f5;
        color: #334155;
    }

        .program-page-section .program-category-panel .program-category-description p {
            margin: 0;
            max-width: none;
            font-size: 1rem;
            line-height: 1.8;
            white-space: pre-line;
            overflow-wrap: break-word;
        }

@media (max-width: 767.98px) {
    .program-page-section .program-category-panel {
        border-radius: 18px;
    }

        .program-page-section .program-category-panel .program-category-header {
            min-height: 0;
        }

        .program-page-section .program-category-panel .program-category-image {
            min-height: 220px;
        }

        .program-page-section .program-category-panel .program-category-description {
            padding: 1.1rem 1.25rem;
        }
}
