/* =========================================================
   SEKCIJA BIBLIOTEKARA I KNJIŽNIČARA
   Joomla 5 / Cassiopeia child template
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&display=swap");

:root {
    --cassiopeia-color-primary: #d95700;
    --cassiopeia-color-link: #d95700;
    --cassiopeia-color-hover: #823500;
    --site-orange: #d95700;
    --site-orange-dark: #823500;
    --site-text: #1f1f1f;
    --site-menu-text: #333333;
    --site-border: #cfcfcf;
    --site-divider: #c8c8c8;
    --site-light-grey: #f7f7f7;
    --site-width: 1280px;
}

/* GLOBAL */
html,
body,
input,
button,
select,
textarea {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    background: #fff;
    color: var(--site-text);
    font-size: 15px;
    line-height: 1.7;
}

p,
li,
td,
th,
label,
input,
textarea,
select {
    color: var(--site-text);
}

a {
    color: var(--site-orange);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--site-orange-dark);
    text-decoration: none;
}

/* SHARED WIDTH */
.site-grid,
.container-header .grid-child,
.container-header .container-nav {
    width: calc(100% - 60px);
    max-width: var(--site-width) !important;
    margin-inline: auto !important;
    box-sizing: border-box;
}

/* HEADER / LOGO */
.container-header {
    background: #fff;
    background-image: none;
    color: var(--site-text);
    box-shadow: none;
}

.container-header .grid-child {
    padding-top: 12px;
    padding-bottom: 0;
    row-gap: 0;
}

.container-header .navbar-brand {
    margin: 0;
    padding: 0;
    transform: none;
}

.container-header .navbar-brand img {
    display: block;
    width: auto;
    max-width: 700px;
    height: auto;
}

/* MAIN NAVIGATION */
.container-header .container-nav {
    padding-top: 0;
    padding-bottom: 16px;
}

.container-header .mod-menu {
    justify-content: flex-start !important;
    align-items: center;
    gap: 0 !important;
    margin: 0 0 0 8px !important;
    padding: 0;
}

.container-header .mod-menu > li {
    display: flex;
    position: relative;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 6px 8px !important;
    color: var(--site-menu-text) !important;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.container-header .mod-menu > li:first-child > a,
.container-header .mod-menu > li:first-child > span {
    padding-left: 0 !important;
}

.container-header .mod-menu > li:not(:last-child) > a::after,
.container-header .mod-menu > li:not(:last-child) > span::after {
    content: "•" !important;
    display: inline-block !important;
    margin-left: 16px;
    color: #b5b5b5;
    font-size: 10px;
    font-weight: 400;
    opacity: 1;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
    color: var(--site-orange) !important;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
    font-weight: 600;
}

/* DROPDOWNS */
.container-header .metismenu .mm-collapse {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.container-header .metismenu .mm-collapse > li {
    border-bottom: 1px dotted var(--site-divider);
}

.container-header .metismenu .mm-collapse > li:last-child {
    border-bottom: 0;
}

.container-header .metismenu .mm-collapse > li > a {
    display: block;
    padding: 8px 13px;
    color: var(--site-menu-text);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.container-header .metismenu .mm-collapse > li > a:hover {
    color: var(--site-orange-dark);
    background: #fafafa;
}

/* SEARCH */
.mod-finder label {
    display: none;
}

.mod-finder input.form-control,
.mod-search input,
input[type="search"] {
    width: 170px;
    height: 34px;
    padding: 6px 14px;
    color: var(--site-menu-text);
    background: #fff;
    border: 1px solid #c7c7c7;
    border-radius: 6px;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.01) inset;
    font-size: 12px;
}

.mod-finder input::placeholder,
.mod-search input::placeholder,
input[type="search"]::placeholder {
    color: #666;
    opacity: 1;
}

/* MAIN COMPONENT */
.container-component {
    align-self: start;
    margin: 0 7px 14px 0 !important;
    padding: 30px 32px;
    color: var(--site-text);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

.container-component p,
.container-component li {
    color: var(--site-text);
}

.container-component .card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* HEADINGS */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4 {
    font-weight: 400;
}

h1,
.h1 {
    color: var(--site-orange);
    font-size: 1.8rem;
    line-height: 1.3;
}

h2,
.h2 {
    margin-bottom: 18px;
    color: var(--site-orange);
    font-size: 1.5rem;
    line-height: 1.4;
}

h3,
.h3 {
    color: var(--site-orange);
    font-size: 1.15rem;
}

h4,
.h4 {
    font-size: 1rem;
}

.container-component h1,
.container-component .h1 {
    color: var(--site-orange);
    font-size: 27px;
    font-weight: 400;
}

/* SIDEBARS */
.container-sidebar-left,
.container-sidebar-right {
    align-self: start;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.container-sidebar-left .card,
.container-sidebar-right .card {
    margin-top: 0 !important;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 6px;
    box-shadow: none;
    overflow: hidden;
}

.container-sidebar-left .card {
    margin-left: 0;
    margin-right: 7px;
}

.container-sidebar-right .card {
    margin-left: 7px;
    margin-right: 0 !important;
}

.container-sidebar-left .card-header,
.container-sidebar-right .card-header {
    padding: 10px 13px;
    color: #c94f00;
    background: var(--site-light-grey);
    border: 0;
    border-bottom: 1px solid var(--site-border);
    font-size: 15px;
    font-weight: 600;
}

.container-sidebar-left .card-header h3,
.container-sidebar-right .card-header h3,
.container-sidebar-left .card-title,
.container-sidebar-right .card-title {
    margin: 0;
    color: #c94f00;
    font-size: 15px;
    font-weight: 600;
}

.container-sidebar-left .card-body,
.container-sidebar-right .card-body {
    padding: 14px 20px 16px;
    font-size: 14.5px;
}

.container-sidebar-left .card-body ul,
.container-sidebar-right .card-body ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14.5px;
    line-height: 1.45;
}

.container-sidebar-left .card-body ul > li,
.container-sidebar-right .card-body ul > li {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 9px 2px 9px 27px;
    border-bottom: 1px dotted var(--site-divider);
}

.container-sidebar-left .card-body ul > li:last-child,
.container-sidebar-right .card-body ul > li:last-child {
    border-bottom: 0;
}

.container-sidebar-left .card-body ul > li > a,
.container-sidebar-right .card-body ul > li > a {
    display: block;
    color: #c94f00 !important;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}

.container-sidebar-left .card-body ul > li > a:hover,
.container-sidebar-right .card-body ul > li > a:hover {
    color: var(--site-orange-dark) !important;
}

.container-sidebar-left .card-body ul > li::before,
.container-sidebar-right .card-body ul > li::before {
    content: "›";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 15px;
    height: 15px;
    color: #fff;
    background: #bdbdbd;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    line-height: 14px;
    text-align: center;
}

.container-sidebar-left ul.mod-menu > li > a::before,
.container-sidebar-right ul.mod-menu > li > a::before {
    display: none;
}

.container-sidebar-left ul.mod-menu ul,
.container-sidebar-right ul.mod-menu ul {
    margin: 0 0 0 18px;
    padding: 0;
    list-style: none;
}

.container-sidebar-left ul.mod-menu ul li,
.container-sidebar-right ul.mod-menu ul li {
    padding-left: 0;
}

.container-sidebar-left ul.mod-menu ul li::before,
.container-sidebar-right ul.mod-menu ul li::before {
    display: none;
}

.container-sidebar-left ul.mod-menu ul a,
.container-sidebar-right ul.mod-menu ul a {
    display: block;
    padding: 6px 5px;
    color: var(--site-orange);
    font-size: 14px;
    font-weight: 500;
}

/* BUTTONS / FORMS */
.btn-primary,
.button,
.validate,
a.readmore,
a.readmore-link {
    display: inline-block;
    padding: 4px 10px;
    color: #fff !important;
    background: #e06603;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.07) inset;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus,
.button:hover,
.validate:hover,
a.readmore:hover,
a.readmore-link:hover {
    color: #fff !important;
    background: var(--site-orange-dark);
    text-decoration: none;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05) inset;
}

/* BLOG / ARTICLE VIEWS */
.blog-item {
    margin-bottom: 20px;
}

.blog-item .page-header h2 {
    margin-bottom: 2px;
    font-size: 15px;
    line-height: 1.5;
}

.article-info {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 400;
}

/* TABLES / CODE */
pre {
    margin: 0 0 10px;
    padding: 20px;
    color: var(--site-text);
    background: #fff;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

table {
    border-collapse: collapse;
}

table th,
table td {
    padding: 6px 8px;
}

table.table-bordered th,
table.table-bordered td {
    border-color: #ddd;
}

/* EMBEDDED PDF */
.pdf-embed {
    width: 100%;
    margin: 20px 0;
}

.pdf-embed iframe {
    display: block;
    width: 100%;
    height: 75vh;
    min-height: 650px;
    border: 1px solid var(--site-border);
    border-radius: 6px;
}

/* OPTIONAL LEGACY EXTENSIONS */
.sigplus-gallery {
    background-color: #fff;
}

.nspArt h4.nspHeader {
    margin: 0;
    padding: 10px 0;
    font-size: 1.3em;
}

.sp-accordion.sp-accordion-style4 .toggler span,
.sp-accordion.sp-accordion-style4 .toggler span span {
    color: var(--site-orange);
    font-size: 14px;
    font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 1350px) {
    .site-grid,
    .container-header .grid-child,
    .container-header .container-nav {
        width: calc(100% - 40px);
    }
}

@media (max-width: 991.98px) {
    .site-grid,
    .container-header .grid-child,
    .container-header .container-nav {
        width: calc(100% - 30px);
    }

    .container-header .grid-child {
        padding-top: 18px;
        padding-bottom: 8px;
    }

    .container-header .navbar-brand {
        width: auto;
        transform: none;
    }

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

    .container-header .container-nav {
        padding-top: 4px;
        padding-bottom: 16px;
    }

    .container-header .navbar-toggler {
        display: block;
        margin-left: auto;
        padding: 7px 10px;
        color: #444;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .container-header .navbar-collapse:not(.show) {
        display: none !important;
    }

    .container-header .navbar-collapse.show {
        display: block !important;
        width: 100%;
        margin-top: 10px;
        background: #fff;
    }

    .container-header .mod-menu {
        display: block;
        width: 100%;
        margin: 0 !important;
        padding: 0;
        text-align: left;
    }

    .container-header .mod-menu > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
    }

    .container-header .mod-menu > li:last-child {
        border-bottom: 0;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > span,
    .container-header .metismenu > li > button {
        display: block;
        width: 100%;
        padding: 11px 12px !important;
        color: var(--site-menu-text) !important;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.4;
        text-align: left;
    }

    .container-header .mod-menu > li > a::after,
    .container-header .mod-menu > li > span::after {
        display: none !important;
        content: none !important;
    }

    .container-header .mod-menu > li.active > a,
    .container-header .mod-menu > li.current > a {
        color: var(--site-orange) !important;
    }

    .mod-finder,
    .mod-search {
        width: 100%;
        margin-top: 12px;
    }

    .mod-finder input.form-control,
    .mod-search input,
    input[type="search"] {
        width: 100%;
        max-width: 260px;
        margin: 0;
    }

    .container-component {
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding: 22px;
    }

    .container-sidebar-left .card,
    .container-sidebar-right .card {
        margin-left: 0;
        margin-right: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .pdf-embed iframe {
        height: 70vh;
        min-height: 450px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
        line-height: 1.65;
    }

    .site-grid,
    .container-header .grid-child,
    .container-header .container-nav {
        width: calc(100% - 24px);
    }

    .container-component {
        padding: 18px;
    }

    .container-component h1,
    .container-component .h1 {
        font-size: 1.55rem;
    }

    h2,
    .h2 {
        font-size: 1.35rem;
    }

    .container-sidebar-left .card-body,
    .container-sidebar-right .card-body,
    .container-sidebar-left .card-body ul,
    .container-sidebar-right .card-body ul,
    .container-sidebar-left .card-body ul > li > a,
    .container-sidebar-right .card-body ul > li > a {
        font-size: 14px;
    }
}

/* PRINT */
@media print {
    .container-header,
    .container-sidebar-left,
    .container-sidebar-right,
    .container-footer {
        display: none !important;
    }

    .container-component {
        margin: 0 !important;
        padding: 0;
        border: 0;
    }
}
