/* =========================================
   SLOTTET I SMØRMOSEN – ZELENA PALETA
   ========================================= */

:root {
    --cassiopeia-color-primary: #0d3002;
    --cassiopeia-color-link: #0d3002;
    --cassiopeia-color-hover: #315c3b;
}


/* =========================================
   LINKOVI
   ========================================= */

a {
    color: #4f7f52;
}

a:hover,
a:focus {
    color: #315c3b;
}


/* =========================================
   GORNJI GLAVNI MENI
   ========================================= */

.container-header {
    background-color: #315c3b;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}


/* Linkovi u glavnom meniju */

.container-header .mod-menu > li > a {
    color: #ffffff;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu .mod-menu > li > a:focus {
    color: #dce9d9;
}


/* =========================================
   HERO SLIKA
   ========================================= */

.hero-home {
    width: 100%;
    margin: 0 auto;
}


/* =========================================
   HERO JOOMLA MENI
   ========================================= */

.hero-menu-module {
    position: relative !important;
    z-index: 1000 !important;

    width: 100% !important;
    max-width: 1650px !important;
    margin: 0 auto -54px auto !important;

    padding: 0 0 0 120px !important;

    background: rgba(15, 55, 28, 0.72) !important;
    border: none !important;
    box-shadow: none !important;

    transform: translateY(28px);

    box-sizing: border-box;
}


/* =========================================
   JOOMLA MENU – HORIZONTALNI RASPORED
   ========================================= */

.hero-menu-module .mod-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 18px !important;

    list-style: none !important;
}


/* Stavke menija */

.hero-menu-module .mod-menu > li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Linkovi u hero meniju */

.hero-menu-module .mod-menu > li > a {
    display: block !important;

    color: #e3ead8 !important;
    text-decoration: none !important;

    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;

    line-height: 1.2 !important;

    white-space: nowrap !important;
}


/* Hover */

.hero-menu-module .mod-menu > li > a:hover,
.hero-menu-module .mod-menu > li > a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}


/* =========================================
   KRUNA – DEO HERO MENIJA
   ========================================= */

.hero-menu-module::before {
    content: "";

    position: absolute;

    left: 50px;
    top: -17px;

    width: 38px;
    height: 38px;

    background-image: url('/images/headers/kruna_slottet_transparent.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    filter: brightness(0) saturate(100%)
            invert(82%) sepia(10%) saturate(430%)
            hue-rotate(65deg) brightness(90%) contrast(88%);

    opacity: 0.9;

    z-index: 20;
}


/* =========================================
   HERO MENI – UNUTRAŠNJI ELEMENTI MODULA
   ========================================= */

.hero-menu-module .card,
.hero-menu-module .card-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    padding: 0 !important;
    margin: 0 !important;
}


/* =========================================
   NASLOVI
   ========================================= */

h1,
h2,
h3,
h4 {
    color: #315c3b;
}


/* =========================================
   PAGINATION
   ========================================= */

.pagination a,
.pagination span {
    color: #4f7f52;
}

.pagination a:hover,
.pagination a:focus {
    color: #ffffff;
    background-color: #315c3b;
}

.pagination .active > span,
.pagination .active > a {
    background-color: #315c3b;
    border-color: #315c3b;
    color: #ffffff;
}

.pagination .page-link {
    color: #4f7f52 !important;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    color: #ffffff !important;
    background-color: #315c36 !important;
    border-color: #315c36 !important;
}

.pagination .page-item.active .page-link {
    color: #ffffff !important;
    background-color: #315c36 !important;
    border-color: #315c36 !important;
}


/* =========================================
   BLOG / ČLANCI – JEDNAKA VISINA SLIKA
   ========================================= */

.mod-articles-item .mod-articles-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}


/* =========================================
   BLOG / ČLANCI – RAZMAK
   ========================================= */

.mod-articles-item {
    margin-left: 50px !important;
    margin-right: 50px !important;
}

.mod-articles-item__title a {
    color: #0D3002 !important;
}

.mod-articles-item h3,
.mod-articles-item h3 a,
.mod-articles-item h4,
.mod-articles-item h4 a {
    color: #0D3002 !important;
}


/* =========================================
   FOOTER – GLAVNI KONTEJNER
   ========================================= */

footer {
    background-color: #315c3b !important;
}


/* =========================================
   FOOTER – TRI CENTRIRANE KOLONE
   ========================================= */

.site-footer-custom {
    display: grid !important;

    grid-template-columns: 1fr 1.25fr 1fr !important;

    column-gap: 80px !important;
    row-gap: 0 !important;

    width: 1100px !important;
    max-width: calc(100% - 60px) !important;

    margin: 0 auto !important;

    padding: 55px 0 0 0 !important;

    box-sizing: border-box !important;

    color: #ffffff;
}


/* =========================================
   FOOTER – KOLONE
   ========================================= */

.site-footer-custom .footer-column {
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================
   FOOTER – NASLOVI
   ========================================= */

.site-footer-custom .footer-column h3 {
    color: #ffffff !important;

    margin: 0 0 22px 0 !important;
    padding: 0 !important;

    font-size: 22px !important;
    line-height: 1.3 !important;
}


/* =========================================
   FOOTER – TEKST
   ========================================= */

.site-footer-custom .footer-column p {
    color: #ffffff !important;

    margin: 0 0 12px 0 !important;
    padding: 0 !important;

    line-height: 1.7 !important;
}


/* =========================================
   FOOTER – LINKOVI
   ========================================= */

.site-footer-custom a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.site-footer-custom a:hover,
.site-footer-custom a:focus {
    color: #dce9d9 !important;
    text-decoration: underline !important;
}


/* =========================================
   FOOTER – DONJA LINIJA I COPYRIGHT
   ========================================= */

.site-footer-custom .footer-bottom {
    grid-column: 1 / -1 !important;

    width: 100% !important;

    margin: 45px 0 0 0 !important;
    padding: 25px 0 25px 0 !important;

    border-top: 1px solid rgba(255,255,255,0.25) !important;

    color: #ffffff !important;

    text-align: center !important;

    box-sizing: border-box !important;
}


/* =========================================
   FOOTER – AKO JE MODUL OBELEŽEN
   footer-centered
   ========================================= */

.footer-centered {
    width: 100% !important;
    max-width: 500% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* Osiguravamo da sadržaj modula
   može da zauzme celu širinu */

.footer-centered .site-footer-custom {
    margin-left: auto !important;
    margin-right: auto !important;
}


/* =========================================
   MOBILNI PRIKAZ
   ========================================= */

@media (max-width: 768px) {

    .site-footer-custom {
        width: 100% !important;
        max-width: calc(100% - 40px) !important;

        grid-template-columns: 1fr !important;

        column-gap: 0 !important;
        row-gap: 35px !important;

        padding-top: 40px !important;
    }

    .site-footer-custom .footer-bottom {
        margin-top: 10px !important;
    }
}
.com-content-category-blog {
    padding-top: 30px;
}
/* =========================================
   SISTEMSKE LISTE – LINKOVI
   ========================================= */

.com-content-blog__links a,
table .list-title a  {
    font-size: 18px;
    color: #315c3b;
    text-decoration: underline;
}

.com-content-blog__links a:hover,
.com-content-blog__links a:focus,
.cat-list .list-title a:hover,
.cat-list .list-title a:focus {
    color: #0d3002;
}
.cat-children .page-header {
    display: none;
}
/* Øko-selvforsyning – lista članaka */
.com-content-blog__links table.list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.com-content-blog__links table.list tbody tr {
    border-bottom: 1px solid #d9dfdc;
    background: transparent;
}

.com-content-blog__links table.list tbody tr:hover {
    background: #f4f7f5;
}

.com-content-blog__links table.list th.list-title {
    padding: 11px 12px;
    text-align: left;
    font-weight: 400;
}

.com-content-blog__links table.list th.list-title a {
    font-size: 18px;
    color: #315c3b;
    text-decoration: none;
}

.com-content-blog__links table.list th.list-title a:hover {
    color: #004b2a;
    text-decoration: underline;
}

/* Category description text */
.category-desc p {
    font-size: 18px;
    line-height: 1.6;
    color: #315c3b;
    font-weight: 400;
}
/* Tekst unutar članaka */
.com-content-article__body p,
.com-content-article__body p span {
    color: #315c3b !important;
    font-size: 18px !important;
    line-height: 1.6;
    font-family: var(--cassiopeia-font-family-body);
}
/* Slike u člancima – stari raspored */
.com-content-article__body img {
    float: right;
    width: 375px;
    max-width: 40%;
    height: auto;
    margin: 0 0 20px 30px;
}
/* Članci - uža i preglednija širina kao na staroj stranici */
.com-content-article {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
/* =========================================
   SADRŽAJ ČLANAKA
   ========================================= */

/* Tekst u člancima */
.com-content-article p,
.com-content-article li {
    font-size: 18px !important;
    line-height: 1.65 !important;
    color: #315c3b !important;
}

/* Tekst koji je unutar span-a u člancima */
.com-content-article p span {
    font-size: inherit !important;
}

/* Slike unutar članaka */
.com-content-article img {
    max-width: 100%;
    height: auto;
}

/* Slike koje su ubačene u tekst - kao na staroj stranici */
.com-content-article p img {
    float: right;
    margin: 0 0 20px 30px;
}

/* Naslovi unutar članka */
.com-content-article h2 {
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Malo više prostora između pasusa */
.com-content-article p {
    margin-bottom: 1.2em;
}
/* =========================================
   PLANTER – NASLOVI ČLANAKA U DVE KOLONE
   ========================================= */

.mod-articles {
    column-count: 2;
    column-gap: 60px;
}

.mod-articles > li {
    break-inside: avoid;
    margin-bottom: 12px;
}

.mod-articles > li > a {
    font-size: 18px;
    color: #315c3b;
    text-decoration: none;
}

.mod-articles > li > a:hover {
    color: #0d3002;
    text-decoration: underline;
}
.newsletter-sidebar {
    position: absolute;
    top: 625px;
    right:8%;
    width: 26%;
    z-index: 10;
    margin: 0;
}
/* Newsletter formular - samo ga vizuelno podižemo */


/* Search dugme - zelena boja */
.search .btn {
    background-color: #004d1a;
    border-color: #004d1a;
    color: #fff;
}

.search .btn:hover {
    background-color: #006622;
    border-color: #006622;
    color: #fff;
}
/* =========================================
   MOBILNI PRIKAZ
   ========================================= */

@media (max-width: 768px) {

    /* Desni sidebar prelazi ispod glavnog sadržaja */
    .container-sidebar-right {
        width: 100%;
        float: none;
    }

    /* Newsletter formular zauzima normalnu širinu */
    .newsletter-sidebar {
        position: static;
        float: none;
        width: 100%;
        max-width: 100%;
        transform: none;
        margin: 20px 0;
        box-sizing: border-box;
    }

    /* Naslov formulara ne sme da se lomi na pojedinačna slova */
    .newsletter-sidebar h1,
    .newsletter-sidebar h2,
    .newsletter-sidebar h3,
    .newsletter-sidebar h4 {
        word-break: normal;
        overflow-wrap: normal;
    }
}
/* =========================================================
   ACYMAILING NEWSLETTER ARCHIVE
   ========================================================= */

/* -----------------------------------------
   Naslov arhive: Newsletters -> Nyhedsbrev
   ----------------------------------------- */

#acym_wrapper.archive_listing .acym__front__archive__title {
    font-size: 0;
}

#acym_wrapper.archive_listing .acym__front__archive__title::after {
    content: "Nyhedsbrev";
    font-size: 28px;
    font-weight: 600;
    color: #0d3002;
}


/* -----------------------------------------
   Search
   ----------------------------------------- */

#acym_wrapper.archive_listing #acym__front__archive__search {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 30px;
}

#acym_wrapper.archive_listing #acym__front__archive__search input[name="acym_search"] {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 48px !important;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #d8e2dc;
    border-radius: 4px;
    font-size: 16px;
}

#acym_wrapper.archive_listing #acym__front__archive__search button {
    flex: 0 0 150px !important;
    width: 150px !important;
    height: 48px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 4px;
    background-color: #315c3b !important;
    color: #ffffff !important;
    font-size: 16px;
    cursor: pointer;
}

#acym_wrapper.archive_listing #acym__front__archive__search button:hover {
    background-color: #0d3002 !important;
}


/* -----------------------------------------
   Newsletter linkovi
   ----------------------------------------- */

#acym_wrapper.archive_listing a.acym__modal__handle {
    color: #315c3b !important;
    text-decoration: none !important;
    font-size: 18px !important;
    line-height: 1.4;
}

#acym_wrapper.archive_listing a.acym__modal__handle:hover {
    color: #0d3002 !important;
    text-decoration: underline !important;
}


/* -----------------------------------------
   Datum
   ----------------------------------------- */

#acym_wrapper.archive_listing
.acym__front__archive__newsletter__sending-date {
    font-size: 13px;
    color: #777777;
    margin-top: 4px;
    margin-bottom: 12px;
}


/* =========================================================
   NEWSLETTER SIGN-UP FORM
   ========================================================= */

/* Sama forma */

.newsletter-sidebar .acym_form {
    width: 100%;
}


/* Svaki red forme */

.newsletter-sidebar .acym_form .onefield {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 14px !important;
}


/* Labele */

.newsletter-sidebar .acym_form .onefield > label {
    flex: 0 0 155px !important;
    width: 155px !important;
    min-width: 155px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}


/* Inputi */

.newsletter-sidebar .acym_form .onefield > input {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    box-sizing: border-box !important;
}


/* -----------------------------------------
   BOT / HONEYPOT POLJA
   ----------------------------------------- */

/* Sakrij honeypot wrapper */

.newsletter-sidebar
div[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
}

/* Sakrij hidden bot timestamp */

.newsletter-sidebar
input[name="acym_bot_started"] {
    display: none !important;
    visibility: hidden !important;
}


/* -----------------------------------------
   Dugme Tilmeld
   ----------------------------------------- */

.newsletter-sidebar .acym_form button,
.newsletter-sidebar .acym_form input[type="submit"] {
    background-color: #315c3b !important;
    border-color: #315c3b !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 10px 22px !important;
    font-size: 16px !important;
}

.newsletter-sidebar .acym_form button:hover,
.newsletter-sidebar .acym_form input[type="submit"]:hover {
    background-color: #0d3002 !important;
    border-color: #0d3002 !important;
}


/* =========================================================
   MOBILNI PRIKAZ
   ========================================================= */

@media (max-width: 700px) {

    /* Search ide jedan ispod drugog */

    #acym_wrapper.archive_listing #acym__front__archive__search {
        flex-direction: column;
        gap: 10px;
    }

    #acym_wrapper.archive_listing #acym__front__archive__search button {
        width: 100% !important;
        flex: none !important;
    }


    /* Forma */

    .newsletter-sidebar .acym_form .onefield {
        display: block !important;
        margin-bottom: 14px !important;
    }

    .newsletter-sidebar .acym_form .onefield > label {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 5px !important;
    }

    .newsletter-sidebar .acym_form .onefield > input {
        display: block !important;
        width: 100% !important;
    }
}
.acym__front__archive__title {
    display: none !important;
}

.acym__front__archive::before {
    content: "Nyhedsbrev";
    display: block;
    font-size: 32px;
    font-weight: 600;
    color: #006633;
    margin-bottom: 10px;
}
/* =====================================================
   KRUNE U GLAVNOM MENIJU
   ===================================================== */

.container-header .mod-menu.mod-list.nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

/* Kruna pre prvog linka */
.container-header .mod-menu.mod-list.nav::before {
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    background-image: url('/images/headers/kruna_slottet_transparent.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 16px;
    transform: translateY(-1px);
}

/* Kruna posle poslednjeg linka */
.container-header .mod-menu.mod-list.nav::after {
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    background-image: url('/images/headers/kruna_slottet_transparent.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: auto;
    transform: translateY(-1px);
}