
:root {
    --cassiopeia-color-primary: #174b78;
    --cassiopeia-color-link: #175c91;
    --cassiopeia-color-hover: #103b60;
}

body {
    background: #eef2f6;
    color: #263746;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.container-header {
    background: #174b78;
    background-image: none;
    border-bottom: 4px solid #4395c7;
}

.container-header .navbar-brand {
    padding: 18px 10px;
}

.container-header .navbar-brand img {
    max-width: 320px;
    max-height: 110px;
    width: auto;
    height: auto;
}

.container-header .mod-menu {
    font-size: 15px;
    font-weight: 600;
}

.container-header .mod-menu > li {
    padding: 5px 8px;
}

.container-header .mod-menu > li.active {
    background: rgba(255,255,255,.15);
    border-radius: 5px;
}

.site-grid {
    padding-top: 15px;
    padding-bottom: 30px;
}

.container-component {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #dce4eb;
}

h1, h2, h3 {
    color: #174b78;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }

.card {
    border-color: #dce4eb;
    border-radius: 6px;
}

.card-header {
    background: #174b78;
    color: #fff;
    font-weight: bold;
}

.blog-item {
    border-bottom: 1px solid #dce4eb;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.btn-primary {
    background: #175c91;
    border-color: #175c91;
}

.footer {
    background: #174b78;
    background-image: none;
    color: #fff;
}

@media (max-width: 768px) {
    .container-component {
        padding: 15px;
    }

    .container-header .navbar-brand img {
        max-width: 240px;
    }

    h1 { font-size: 1.45rem; }
}


/* EK GALERIJE */

.ek-gallery {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin: 20px 0;
}

.ek-gallery a {
    display: block;
    overflow: hidden;
    border: 1px solid #dce4eb;
    border-radius: 5px;
    background: #fff;
}

.ek-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform .2s ease;
}

.ek-gallery a:hover img {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .ek-gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}


/* EK DESNA KOLONA */

.container-sidebar-right .card {
    background: #fff;
    margin-bottom: 15px;
    border: 1px solid #cdd6df;
}

.container-sidebar-right .card-header {
    font-size: 17px;
    padding: 10px 12px;
}

.container-sidebar-right img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
}

.container-sidebar-right .card-body {
    padding: 10px;
}



/* EK SCROLLER */

.container-top-a:has(.ek-scroller) {
    display: block;
    min-width: 0;
}

.ek-scroller {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #fff;
    margin: 0 0 10px;
}

.ek-scroll-track {
    display: flex;
    width: max-content;
    animation: ek-scroll-left 40s linear infinite;
}

.ek-scroll-group {
    display: flex;
    flex-shrink: 0;
    gap: 3px;
    padding-right: 3px;
}

.ek-scroll-group a {
    display: block;
    flex-shrink: 0;
}

.ek-scroll-group img {
    display: block;
    height: 300px;
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

@keyframes ek-scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ek-scroller:hover .ek-scroll-track,
.ek-scroller:focus-within .ek-scroll-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .ek-scroll-track {
        animation: none;
    }
    .ek-scroller {
        overflow-x: auto;
    }
    .ek-scroll-group[aria-hidden="true"] {
        display: none;
    }
}



/* EK ORIGINALNE BOJE */

:root {
    --cassiopeia-color-primary: #530a63;
    --cassiopeia-color-link: #530a63;
    --cassiopeia-color-hover: #780d83;
}

.container-header {
    background-color: #530a63;
    background-image: url('/images/pozadine/header-2.jpg');
    background-repeat: repeat-x;
    background-position: center top;
    background-size: auto 100%;
    border-bottom: 3px solid #530a63;
}

.container-header .navbar-brand {
    padding: 8px 10px;
    margin: 0;
}

.container-header .navbar-brand img {
    width: 300px;
    max-width: 100%;
    height: auto;
}

.container-header .container-nav {
    padding-top: 0;
    padding-bottom: 0;
    background: #530a63;
}

.container-header .mod-menu > li {
    padding: 3px 8px;
}

.container-header .mod-menu {
    font-size: 14px;
}

.container-header .mod-menu > li.active {
    background: rgba(255,255,255,.18);
}

.site-grid {
    padding-top: 8px;
}

.container-top-a:has(.ek-scroller) .card-body {
    padding: 3px;
}

.ek-scroller {
    margin-bottom: 0;
}

.container-component {
    padding: 18px;
}

.card-header {
    background: #530a63;
    color: #fff;
}

.container-sidebar-right .card {
    margin-bottom: 8px;
}

.container-sidebar-right .card-body {
    padding: 6px;
}

h1, h2, h3 {
    color: #530a63;
}

.btn-primary, .footer {
    background: #530a63;
    border-color: #530a63;
}

@media (max-width: 768px) {
    .container-header .navbar-brand img {
        max-width: 240px;
    }
}


/* EK KONTAKT MODUL */

.ek-contact details {
    margin-bottom: 4px;
    border: 1px solid #d5d5d5;
    background: #fff;
}

.ek-contact summary {
    cursor: pointer;
    background: #eeeeee;
    padding: 9px;
    font-weight: bold;
    color: #530a63;
}

.ek-contact details[open] summary {
    background: #530a63;
    color: white;
}

.ek-contact p {
    padding: 10px;
    margin: 0;
    line-height: 1.7;
}

.ek-contact a {
    text-decoration: none;
}


/* EK MARQUEE */

.ek-marquee {
    overflow: hidden;
    border: 1px solid #530a63;
    padding: 8px 0;
    background: #fff;
    color: #530a63;
    font-weight: bold;
}

.ek-marquee span {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ek-marquee-left 25s linear infinite;
}

@keyframes ek-marquee-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.ek-marquee:hover span {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .ek-marquee span {
        animation: none;
        padding-left: 0;
        white-space: normal;
    }
}



/* EK PROPORCIJE */

body {
    font-size: 14px;
    line-height: 1.5;
    background: #e9ebef;
}

.container-header .grid-child {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.container-header .navbar-brand {
    padding: 6px 10px;
}

.container-header .mod-menu {
    font-size: 14px;
}

.container-component {
    padding: 15px;
    border-radius: 2px;
}

.card {
    border-radius: 2px;
}

.card-header {
    font-size: 15px;
    padding: 8px 10px;
}

h1 {
    font-size: 23px;
    line-height: 1.25;
}

h2 {
    font-size: 20px;
    line-height: 1.3;
}

h3 {
    font-size: 17px;
}

.blog-item {
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.container-sidebar-right {
    min-width: 0;
}

.container-sidebar-right .card-body {
    padding: 8px;
}

@media (min-width: 992px) {

    body.has-sidebar-right:not(.has-sidebar-left) .site-grid {
        grid-template-columns:
        [full-start] minmax(0,1fr)
        [main-start] repeat(3,minmax(0,266.66px))
        minmax(0,400px)
        [main-end] minmax(0,1fr)
        [full-end];
    }

}

@media (max-width: 767px) {

    .container-component {
        padding: 10px;
    }

    .ek-scroller,
    .ek-scroll-group img {
        height: 200px;
    }

    h1 {
        font-size: 21px;
    }

}



/* EK LIGHTBOX */

.ek-gallery {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
}

.ek-gallery a {
    display: block;
    min-width: 0;
    cursor: zoom-in;
}

.ek-gallery img {
    width: 100%;
    height: auto;
    transition: opacity .2s;
}

.ek-gallery a:hover img {
    opacity: .8;
}

#ek-lightbox {
    width: min(94vw,1200px);
    max-height: 94vh;
    background: #171717;
    color: white;
    border: 0;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

#ek-lightbox::backdrop {
    background: rgba(0,0,0,.88);
}

#ek-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    margin: auto;
    object-fit: contain;
}

.ek-lightbox-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

#ek-lightbox button {
    background: #530a63;
    color: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 22px;
    cursor: pointer;
}

#ek-lightbox button:hover {
    background: #863395;
}

@media(max-width: 767px) {
    .ek-gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}



/* EK WEATHER */

.ek-weather {
    background: linear-gradient(#2b7807,#205b06);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 3px;
}

.ek-weather h3 {
    color: white;
    margin: 0 0 10px;
}

.ek-weather-current {
    font-size: 32px;
    font-weight: bold;
}

.ek-weather-days {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 5px;
    margin: 12px 0;
}

.ek-weather-day {
    background: rgba(255,255,255,.15);
    padding: 8px 2px;
    border-radius: 4px;
}

.ek-weather-icon {
    font-size: 27px;
    display: block;
}

.ek-weather a {
    color: white;
    text-decoration: underline;
}



/* EK PROFESIONALNI STIL */

:root {
    --ek-purple: #530a63;
    --ek-purple-dark: #390845;
    --ek-navy: #173b65;
    --ek-text: #303b48;
    --ek-muted: #64748b;
    --ek-border: #dfe4ea;
    --ek-background: #eef1f5;
    --cassiopeia-color-primary: #530a63;
    --cassiopeia-color-link: #173b65;
    --cassiopeia-color-hover: #530a63;
}

/* OSNOVNA TIPOGRAFIJA */

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ek-text);
    background: var(--ek-background);
}

p {
    margin-bottom: 0.9em;
}

h1, h2, h3, h4 {
    font-family: inherit;
    font-weight: 650;
    letter-spacing: -0.25px;
}

h1 {
    font-size: 26px;
    color: var(--ek-purple);
    line-height: 1.3;
}

h2 {
    font-size: 21px;
    color: var(--ek-navy);
    line-height: 1.4;
}

h3 {
    font-size: 18px;
    color: var(--ek-navy);
}

h4 {
    font-size: 16px;
}

/* LINKOVI */

.container-component a {
    color: var(--ek-navy);
    text-underline-offset: 3px;
}

.container-component a:hover {
    color: var(--ek-purple);
}

.container-component h1 a,
.container-component h2 a,
.container-component h3 a,
.container-component .item-title a,
.container-component .page-header a {
    color: var(--ek-navy);
    text-decoration: none;
}

.container-component h1 a:hover,
.container-component h2 a:hover,
.container-component h3 a:hover,
.container-component .item-title a:hover {
    color: var(--ek-purple);
    text-decoration: underline;
}

/* CENTRALNI SADRZAJ */

.container-component {
    background: #ffffff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(24,39,58,.035);
}

.blog-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--ek-border);
}

.blog-item .page-header {
    margin-bottom: 12px;
}

.container-component ul,
.container-component ol {
    line-height: 1.7;
}

.article-info {
    font-size: 13px;
    color: var(--ek-muted);
}

.page-header {
    margin-bottom: 16px;
}

/* GLAVNI MENI */

.container-header .mod-menu {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .1px;
}

.container-header .mod-menu > li {
    padding: 6px 10px;
    transition: background-color .2s;
}

.container-header .mod-menu > li:hover {
    background-color: rgba(255,255,255,.12);
}

.container-header .mod-menu > li.active {
    background-color: rgba(255,255,255,.18);
}

/* MODULI */

.card {
    border: 1px solid var(--ek-border);
    border-radius: 5px;
    box-shadow: 0 2px 7px rgba(24,39,58,.05);
}

.card-header {
    background: linear-gradient(
        110deg,
        var(--ek-purple),
        var(--ek-purple-dark)
    );
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 14px;
}

.card-body {
    padding: 13px;
}

.container-sidebar-right {
    gap: 12px;
}

.container-sidebar-right .card {
    margin-bottom: 0;
}

.container-sidebar-right .card-body {
    padding: 10px;
}

.container-sidebar-right .card-body > p:last-child {
    margin-bottom: 0;
}

.container-sidebar-right .card-body img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

/* POLJA ZA UNOS I DUGMAD */

.form-control,
.form-select {
    border: 1px solid #ccd5df;
    border-radius: 4px;
    font-size: 14px;
    padding: 10px 12px;
}

.form-control:focus {
    border-color: var(--ek-purple);
    box-shadow: 0 0 0 3px rgba(83,10,99,.1);
}

.btn {
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

.btn-primary {
    background: var(--ek-purple);
    border-color: var(--ek-purple);
    color: white;
}

.btn-primary:hover {
    background: var(--ek-purple-dark);
    border-color: var(--ek-purple-dark);
    color: white;
}

.readmore .btn {
    border: 1px solid #cfd9e5;
    background: #f5f7fa;
    color: var(--ek-navy);
    padding: 9px 16px;
}

.readmore .btn:hover {
    background: var(--ek-navy);
    color: white;
}

/* TABELE */

.container-component .table {
    font-size: 14px;
    border-color: var(--ek-border);
}

.container-component .table th {
    background: #edf1f6;
    color: var(--ek-navy);
}

/* GALERIJE */

.ek-gallery {
    gap: 10px;
    margin: 14px 0;
}

.ek-gallery a {
    overflow: hidden;
    border-radius: 5px;
    background: #f1f3f6;
    border: 1px solid var(--ek-border);
}

.ek-gallery img {
    display: block;
    width: 100%;
    transition: transform .25s, opacity .25s;
}

.ek-gallery a:hover img {
    transform: scale(1.035);
    opacity: .9;
}

/* KONTAKT */

.ek-contact details {
    border-radius: 4px;
    overflow: hidden;
}

.ek-contact summary {
    font-size: 14px;
    padding: 10px;
}

.ek-contact p {
    font-size: 15px;
}

.ek-contact a {
    color: var(--ek-navy);
}

/* PODNOZJE */

.footer {
    background: var(--ek-purple-dark);
    color: white;
    font-size: 14px;
}

/* MOBILNI UREDJAJI */

@media(max-width:767px) {
    body {
        font-size: 15px;
    }

    .container-component {
        padding: 12px;
    }

    h1 {
        font-size: 23px;
    }

    h2 {
        font-size: 19px;
    }

    h3 {
        font-size: 17px;
    }

    .ek-gallery {
        gap: 6px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .ek-gallery img {
        transition: none;
    }

    .ek-gallery a:hover img {
        transform: none;
    }
}



/* EK ZAVRSNI DIZAJN */

:root {
    --ek-navy: #183c60;
    --ek-text: #293747;
    --ek-muted: #64748b;
    --ek-border: #e0e5ec;
    --ek-background: #f0f3f7;
}

/* TIPOGRAFIJA */

body {
    font-family: system-ui, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ek-text);
    background: var(--ek-background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 650;
    letter-spacing: -.35px;
}

h1 {
    font-size: 27px;
    line-height: 1.3;
}

h2 {
    font-size: 22px;
    line-height: 1.4;
}

h3 {
    font-size: 19px;
    line-height: 1.4;
}

.container-component p {
    margin-bottom: 14px;
}

.container-component li {
    margin-bottom: 5px;
}

.container-component strong {
    font-weight: 650;
}

/* CENTRALNI SADRZAJ */

.container-component {
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(20,35,60,.05);
}

.container-component .page-header h1 {
    padding-bottom: 12px;
    border-bottom: 2px solid #e3d7e8;
}

.container-component .page-header h2 {
    margin-bottom: 12px;
}

.container-component .page-header h2 a {
    color: var(--ek-navy);
}

.container-component a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* POJEDINACNI SEMINARI */

.blog-item {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e6eaf0;
}

.blog-item .page-header h2 {
    font-size: 22px;
    line-height: 1.4;
}

.blog-item .page-header h2 a:hover {
    color: #530a63;
}

/* DUGME PROCITAJ VISE */

.readmore .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #530a63;
    color: white;
    border: 1px solid #530a63;
    border-radius: 5px;
    padding: 10px 18px;
    font-weight: 600;
    text-decoration: none;
}

.readmore .btn:hover {
    background: #390845;
    color: white;
    border-color: #390845;
}

/* DESNI MODULI */

.container-sidebar-right {
    gap: 12px;
}

.container-sidebar-right > * + * {
    margin-top: 0;
}

.container-sidebar-right .card {
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(20,35,60,.06);
    margin-bottom: 0;
}

.container-sidebar-right .card-header {
    padding: 10px 13px;
    font-size: 16px;
    font-weight: 650;
}

.container-sidebar-right .card-body {
    padding: 10px;
    font-size: 14px;
}

.container-sidebar-right .card-body p {
    margin-bottom: 8px;
}

.container-sidebar-right .card-body p:last-child {
    margin-bottom: 0;
}

.container-sidebar-right a img {
    transition: opacity .2s;
}

.container-sidebar-right a:hover img {
    opacity: .88;
}

/* GALERIJE FOTOGRAFIJA */

.ek-gallery {
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 10px;
}

.ek-gallery a {
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(20,35,60,.08);
}

.ek-gallery a:hover {
    box-shadow: 0 4px 12px rgba(20,35,60,.18);
}

/* GLAVNI MENI */

.container-header .mod-menu {
    font-size: 15px;
    font-weight: 600;
}

.container-header .mod-menu > li {
    padding: 7px 10px;
}

/* PRISTUPACNOST */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #b67ac5;
    outline-offset: 3px;
}

/* MOBILNI PRIKAZ */

@media(max-width:767px) {
    body {
        font-size: 15px;
    }

    .container-component {
        padding: 14px;
    }

    h1 {
        font-size: 23px;
    }

    h2,
    .blog-item .page-header h2 {
        font-size: 19px;
    }

    .ek-gallery {
        gap: 7px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .container-sidebar-right a img {
        transition: none;
    }
}



/* EK FOTO DIZAJN */

/* PROFESIONALNI OKVIRI GALERIJA */

.ek-gallery {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin: 18px 0 12px;
}

.ek-gallery a {
    position: relative;
    display: block;
    padding: 3px;
    background: #ffffff;
    border: 1px solid #d6dee7;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(20,35,60,.09);
    transition: border-color .2s, box-shadow .2s;
}

.ek-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: contain;
    background: #f3f5f7;
    border-radius: 3px;
}

/* OZNAKA ZA UVEĆAVANJE */

.ek-gallery a::after {
    content: "+";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(83,10,99,.9);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.ek-gallery a:hover,
.ek-gallery a:focus-visible {
    border-color: #530a63;
    box-shadow: 0 4px 12px rgba(83,10,99,.15);
}

.ek-gallery a:hover::after,
.ek-gallery a:focus-visible::after {
    opacity: 1;
}

.ek-gallery a:hover img {
    opacity: .96;
    transform: none;
}

/* NASLOVI SEMINARA */

.blog-item .page-header h2 {
    border-left: 4px solid #530a63;
    padding-left: 12px;
    margin-bottom: 12px;
}

/* RAZDVAJANJE SEMINARA */

.blog-item {
    border-bottom: 1px solid #dce3eb;
    padding-bottom: 26px;
    margin-bottom: 26px;
}

/* MOBILNI PRIKAZ */

@media(max-width:767px) {
    .ek-gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

    .ek-gallery a {
        padding: 2px;
    }

    .blog-item .page-header h2 {
        padding-left: 9px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .ek-gallery a,
    .ek-gallery a::after {
        transition: none;
    }
}



/* EK PRIRODNE PROPORCIJE */

.ek-gallery {
    align-items: start;
    gap: 10px;
}

.ek-gallery a {
    padding: 2px;
    border: 1px solid #ccd5df;
    border-radius: 5px;
    background: #ffffff;
    align-self: start;
}

.ek-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: initial;
    background: transparent;
    border-radius: 3px;
}

@media(max-width:767px) {
    .ek-gallery {
        gap: 7px;
    }
}



/* EK UJEDNACENE GALERIJE */

.ek-gallery {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    align-items: start;
}

.ek-gallery a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 2px;
    overflow: hidden;
    border: 1px solid #ccd5df;
    border-radius: 5px;
    background: #ffffff;
}

.ek-gallery a img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 3px;
    background: transparent;
}

@media(max-width:767px) {
    .ek-gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 7px;
    }
}

