/*
Theme Name: Astra Hepatos
Description: Astra child.
Author: LOGA
Template: astra
Version: 1.0.3
*/

/* === Sakri Astra entry-meta na blog listi (Leave a Comment / Kategorija / Autor / Datum) === */
.archive article.post .entry-header .entry-meta,
.blog article.post .entry-header .entry-meta,
.home article.post .entry-header .entry-meta,
article.post .entry-meta,
.ast-blog-meta-container .entry-meta,
article.post .comments-link,
article.post .cat-links,
article.post .posted-by,
article.post .posted-on,
article.post .ast-taxonomy-container,
article.post .ast-author-name {
    display: none !important;
}
.single article.post .entry-meta { display: block !important; }

/* === Language switcher u headeru === */
.hep-lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-right: 16px;
}
.hep-lang {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f5f5f5;
    color: #1a1a1a !important;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.hep-lang:hover {
    background: #ebebeb;
    color: #b8202c !important;
}
.hep-lang-active {
    background: #b8202c;
    color: #fff !important;
}
.hep-lang-active:hover {
    background: #8a1721;
    color: #fff !important;
}

/* === Header navbar - siroki container, no wrap (DESKTOP only) === */
.ast-container, .site-header .ast-container {
    max-width: 1400px !important;
}
/* Desktop nav: bez wrappinga.
   Astra mobile breakpoint = 921px. Ispod toga se pojavi hamburger,
   pa ne smijemo forsirati nowrap jer razbija mobile menu dropdown. */
@media (min-width: 922px) {
    .site-header .main-header-menu,
    .site-header #ast-hf-menu-1 {
        flex-wrap: nowrap !important;
        white-space: nowrap;
    }
    .site-header .main-header-menu .menu-item {
        flex-shrink: 0;
    }
    .site-header .main-header-menu .menu-link {
        padding-left: 14px !important;
        padding-right: 14px !important;
        font-size: 0.95em;
        white-space: nowrap;
    }
}
/* Logo manji da ostane prostora za meni */
.site-header .custom-logo,
.site-header .site-logo-img img {
    max-height: 64px !important;
    width: auto !important;
    height: auto !important;
}

/* === Mobile menu (hamburger) - osiguraj da je vidljiv i da dropdown radi === */
@media (max-width: 921px) {
    /* Pokazi hamburger gumb */
    .ast-mobile-menu-buttons,
    .main-header-menu-toggle,
    .menu-toggle,
    .ast-button-wrap {
        display: flex !important;
    }
    /* Mobile dropdown menu - vertikalno, full width */
    .main-header-bar-navigation,
    .ast-mobile-header-wrap .main-header-bar-navigation {
        flex-basis: 100% !important;
        width: 100% !important;
    }
    .site-header .main-header-menu,
    .site-header #ast-hf-menu-1,
    .ast-mobile-header-wrap .main-header-menu {
        display: block !important;
        flex-wrap: wrap !important;
        white-space: normal !important;
        width: 100% !important;
    }
    .site-header .main-header-menu .menu-item,
    .ast-mobile-header-wrap .main-header-menu .menu-item {
        display: block !important;
        width: 100% !important;
        flex-shrink: 1 !important;
    }
    .site-header .main-header-menu .menu-link,
    .ast-mobile-header-wrap .main-header-menu .menu-link {
        white-space: normal !important;
        padding: 12px 20px !important;
        font-size: 1em;
    }
    /* Po defaultu sakriven, prikazi kad je toggle aktivan */
    .main-header-bar-navigation {
        display: none;
    }
    .ast-mobile-header-active .main-header-bar-navigation,
    .toggled .main-header-bar-navigation,
    .main-navigation.toggle-on .main-header-bar-navigation {
        display: block !important;
    }
}

/* === Sakri site title i tagline u headeru === */
.ast-site-identity .site-title,
.ast-site-identity .site-description,
.site-title,
.site-description {
    display: none !important;
}

/* === Glavni 3-kolona layout === */
/* #content je flex container, djeca: secondary-left, primary, secondary (right) */
.ast-left-sidebar.ast-right-sidebar #content > .ast-container {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: start;
}

.hepatos-left-sidebar {
    grid-column: 1;
    order: 1;
}
#primary {
    grid-column: 2;
    order: 2;
    min-width: 0;
    max-width: 100%;
    width: 100% !important;
    flex: none !important;
}
#secondary {
    grid-column: 3;
    order: 3;
    width: auto !important;
    flex: none !important;
}

/* Lijevi sidebar: centrirane stvari (logoi donatora) */
.hepatos-left-sidebar .widget {
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.hepatos-left-sidebar .widget:last-child { border-bottom: none; }
.hepatos-left-sidebar img { max-width: 100%; height: auto; }
.hepatos-left-sidebar .widget-title {
    font-size: 0.95em;
    color: #b8202c;
    margin: 0 0 8px;
    text-align: center;
}

/* Desni sidebar isto */
#secondary .widget {
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
#secondary .widget:last-child { border-bottom: none; }
#secondary .widget-title {
    color: #b8202c;
    font-size: 1em;
    margin: 0 0 10px;
}

/* === Mobile: sve odozgo na dolje === */
@media (max-width: 992px) {
    .ast-left-sidebar.ast-right-sidebar #content > .ast-container {
        display: block;
    }
    .hepatos-left-sidebar, #secondary {
        max-width: 100%;
    }
}

/* === Single article blog list - 1 po redu, slika lijevo, content desno === */
/* Astra blog-layout-5 vec koristi ast-row + ast-width-md-6 podjelu (50/50)
   - prepravim sirine i polozaje */

article.post.ast-article-post {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e5e5;
}

.blog-layout-5.ast-article-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Slika fiksna sirina lijevo */
.blog-layout-5 .ast-blog-featured-section.post-thumb {
    flex: 0 0 240px;
    max-width: 240px;
    width: 240px !important;
    margin: 0 !important;
}
.blog-layout-5 .ast-blog-featured-section.post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
}

/* Content (datum + naslov + excerpt + procitaj vise) desno */
.blog-layout-5 .post-content {
    flex: 1;
    min-width: 0;
    max-width: 100% !important;
    width: auto !important;
}

/* Bez slike - puna sirina */
.ast-no-thumb.blog-layout-5 .ast-blog-featured-section { display: none; }
.ast-no-thumb.blog-layout-5 .post-content { flex: 1; }

/* Redoslijed: datum -> naslov -> excerpt -> procitaj vise */
.blog-layout-5 .post-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.blog-layout-5 .hepatos-pub-date { order: 1; }
.blog-layout-5 .entry-header { order: 2; margin: 0; padding: 0; }
.blog-layout-5 .ast-excerpt-container,
.blog-layout-5 .entry-content,
.blog-layout-5 .entry-summary { order: 3; margin: 0; }
.blog-layout-5 .hepatos-readmore-wrap { order: 4; }

/* Naslov spojen */
.blog-layout-5 .entry-header .entry-title {
    font-size: 1.15em;
    line-height: 1.3;
    margin: 0;
}

/* Datum objave */
.hepatos-pub-date {
    color: #b8202c;
    font-size: 0.88em;
    margin-bottom: 4px;
    font-weight: 500;
}
.hepatos-pub-date::before {
    content: "Datum objave: ";
    font-weight: 600;
}

/* "Procitaj vise" - tekstualni link u boji datuma (#b8202c) desni donji kut */
.hepatos-readmore-wrap {
    text-align: right;
    margin-top: 8px;
}
.hepatos-readmore {
    color: #b8202c !important;
    text-decoration: underline;
    font-size: 0.95em;
    font-weight: 500;
}
.hepatos-readmore:hover {
    color: #8a1721 !important;
}

/* Naslovi */
article.post .entry-title {
    font-size: 1.15em;
    line-height: 1.3;
    margin: 0;
}
article.post .entry-title a { color: #1a1a1a; }
article.post .entry-title a:hover { color: #8a1721; }

/* Single post - resetiraj grid */
.single article.post.ast-article-post {
    display: block;
    border: none;
}

/* Sakrij Astra "Read More" gumb (mi imamo svoj link) */
.read-more,
.ast-the-content-more-link,
article.post .read-more-link {
    display: none !important;
}

/* Mobile: vertikalan blog */
@media (max-width: 768px) {
    article.post.ast-article-post {
        grid-template-columns: 1fr;
    }
    article.post.ast-article-post > * { grid-column: 1; }
    article.post.ast-article-post .ast-blog-featured-section,
    article.post.ast-article-post .post-thumb-img-content { grid-row: auto; }
}
/*
Theme Name: Astra Hepatos
Description: Astra child.
Author: LOGA
Template: astra
Version: 1.0.3
*/

/* === Sakri Astra entry-meta na blog listi (Leave a Comment / Kategorija / Autor / Datum) === */
.archive article.post .entry-header .entry-meta,
.blog article.post .entry-header .entry-meta,
.home article.post .entry-header .entry-meta,
article.post .entry-meta,
.ast-blog-meta-container .entry-meta,
article.post .comments-link,
article.post .cat-links,
article.post .posted-by,
article.post .posted-on,
article.post .ast-taxonomy-container,
article.post .ast-author-name {
    display: none !important;
}
.single article.post .entry-meta { display: block !important; }

/* === Language switcher u headeru === */
.hep-lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-right: 16px;
}
.hep-lang {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f5f5f5;
    color: #1a1a1a !important;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.hep-lang:hover {
    background: #ebebeb;
    color: #b8202c !important;
}
.hep-lang-active {
    background: #b8202c;
    color: #fff !important;
}
.hep-lang-active:hover {
    background: #8a1721;
    color: #fff !important;
}

/* === Header navbar - siroki container, no wrap (DESKTOP only) === */
.ast-container, .site-header .ast-container {
    max-width: 1400px !important;
}
/* Desktop nav: bez wrappinga.
   Astra mobile breakpoint = 921px. Ispod toga se pojavi hamburger,
   pa ne smijemo forsirati nowrap jer razbija mobile menu dropdown. */
@media (min-width: 922px) {
    .site-header .main-header-menu,
    .site-header #ast-hf-menu-1 {
        flex-wrap: nowrap !important;
        white-space: nowrap;
    }
    .site-header .main-header-menu .menu-item {
        flex-shrink: 0;
    }
    .site-header .main-header-menu .menu-link {
        padding-left: 14px !important;
        padding-right: 14px !important;
        font-size: 0.95em;
        white-space: nowrap;
    }
}
/* Logo manji da ostane prostora za meni */
.site-header .custom-logo,
.site-header .site-logo-img img {
    max-height: 64px !important;
    width: auto !important;
    height: auto !important;
}

/* === Mobile menu (hamburger dropdown) - osiguraj layout i lijep dizajn === */
@media (max-width: 921px) {
    /* Pokazi hamburger gumb */
    .ast-mobile-menu-buttons,
    .main-header-menu-toggle,
    .menu-toggle,
    .ast-button-wrap {
        display: flex !important;
    }

    /* Mobile dropdown container - full width ispod headera */
    .ast-mobile-header-wrap .main-header-bar-navigation {
        flex-basis: 100% !important;
        width: 100% !important;
        background: #ffffff;
        border-top: 3px solid #b8202c;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: 0 8px 16px -8px rgba(0,0,0,0.18);
        padding: 8px 0 12px;
        margin: 0;
    }

    /* Vertikalno slaganje stavki */
    .ast-mobile-header-wrap .main-header-menu,
    .ast-mobile-header-wrap #ast-hf-mobile-menu {
        display: block !important;
        flex-wrap: wrap !important;
        white-space: normal !important;
        width: 100% !important;
        background: transparent;
    }
    .ast-mobile-header-wrap .main-header-menu .menu-item {
        display: block !important;
        width: 100% !important;
        flex-shrink: 1 !important;
        border-bottom: 1px solid #f0f0f0;
    }
    .ast-mobile-header-wrap .main-header-menu .menu-item:last-child {
        border-bottom: none;
    }

    /* Linkovi - dovoljno veliki touch target, jasan tipografija */
    .ast-mobile-header-wrap .main-header-menu .menu-link {
        white-space: normal !important;
        display: block !important;
        padding: 14px 22px !important;
        font-size: 1.02em !important;
        font-weight: 500;
        color: #1a1a1a !important;
        text-decoration: none !important;
        line-height: 1.35;
        transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    }
    .ast-mobile-header-wrap .main-header-menu .menu-link:hover,
    .ast-mobile-header-wrap .main-header-menu .menu-link:focus {
        background: #fdf2f3;
        color: #b8202c !important;
        padding-left: 26px !important;
    }
    /* Aktivna / current stranica */
    .ast-mobile-header-wrap .main-header-menu .current-menu-item > .menu-link,
    .ast-mobile-header-wrap .main-header-menu .current_page_item > .menu-link {
        background: #fdf2f3;
        color: #b8202c !important;
        border-left: 4px solid #b8202c;
        padding-left: 18px !important;
        font-weight: 600;
    }

    /* Sub-menu (drugi nivo) - blago uvucen, drukcija pozadina */
    .ast-mobile-header-wrap .main-header-menu .sub-menu {
        background: #fafafa;
        padding: 0;
        margin: 0;
        border-top: 1px solid #f0f0f0;
    }
    .ast-mobile-header-wrap .main-header-menu .sub-menu .menu-link {
        padding-left: 38px !important;
        font-size: 0.95em !important;
        font-weight: 400;
        color: #444 !important;
    }
    .ast-mobile-header-wrap .main-header-menu .sub-menu .menu-link:hover {
        padding-left: 42px !important;
    }

    /* Hamburger gumb - vizualno bolji */
    .main-header-menu-toggle {
        background: transparent !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 6px !important;
        padding: 6px 10px !important;
        color: #b8202c !important;
        transition: all 0.15s ease;
    }
    .main-header-menu-toggle:hover,
    .main-header-menu-toggle[aria-expanded="true"] {
        background: #fdf2f3 !important;
        border-color: #b8202c !important;
    }
    .main-header-menu-toggle .ast-mobile-svg {
        fill: #b8202c !important;
    }

    /* Lang switcher: razmak unutar mobile headera */
    .ast-mobile-header-wrap .hep-lang-switcher {
        margin: 8px 16px;
    }
}

/* === Sakri site title i tagline u headeru === */
.ast-site-identity .site-title,
.ast-site-identity .site-description,
.site-title,
.site-description {
    display: none !important;
}

/* === Glavni 3-kolona layout === */
/* #content je flex container, djeca: secondary-left, primary, secondary (right) */
.ast-left-sidebar.ast-right-sidebar #content > .ast-container {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: start;
}

.hepatos-left-sidebar {
    grid-column: 1;
    order: 1;
}
#primary {
    grid-column: 2;
    order: 2;
    min-width: 0;
    max-width: 100%;
    width: 100% !important;
    flex: none !important;
}
#secondary {
    grid-column: 3;
    order: 3;
    width: auto !important;
    flex: none !important;
}

/* Lijevi sidebar: centrirane stvari (logoi donatora) */
.hepatos-left-sidebar .widget {
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.hepatos-left-sidebar .widget:last-child { border-bottom: none; }
.hepatos-left-sidebar img { max-width: 100%; height: auto; }
.hepatos-left-sidebar .widget-title {
    font-size: 0.95em;
    color: #b8202c;
    margin: 0 0 8px;
    text-align: center;
}

/* Desni sidebar isto */
#secondary .widget {
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
#secondary .widget:last-child { border-bottom: none; }
#secondary .widget-title {
    color: #b8202c;
    font-size: 1em;
    margin: 0 0 10px;
}

/* === Mobile: sve odozgo na dolje === */
@media (max-width: 992px) {
    .ast-left-sidebar.ast-right-sidebar #content > .ast-container {
        display: block;
    }
    .hepatos-left-sidebar, #secondary {
        max-width: 100%;
    }
}

/* === Single article blog list - 1 po redu, slika lijevo, content desno === */
/* Astra blog-layout-5 vec koristi ast-row + ast-width-md-6 podjelu (50/50)
   - prepravim sirine i polozaje */

article.post.ast-article-post {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e5e5;
}

.blog-layout-5.ast-article-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Slika fiksna sirina lijevo */
.blog-layout-5 .ast-blog-featured-section.post-thumb {
    flex: 0 0 240px;
    max-width: 240px;
    width: 240px !important;
    margin: 0 !important;
}
.blog-layout-5 .ast-blog-featured-section.post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
}

/* Content (datum + naslov + excerpt + procitaj vise) desno */
.blog-layout-5 .post-content {
    flex: 1;
    min-width: 0;
    max-width: 100% !important;
    width: auto !important;
}

/* Bez slike - puna sirina */
.ast-no-thumb.blog-layout-5 .ast-blog-featured-section { display: none; }
.ast-no-thumb.blog-layout-5 .post-content { flex: 1; }

/* Redoslijed: datum -> naslov -> excerpt -> procitaj vise */
.blog-layout-5 .post-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.blog-layout-5 .hepatos-pub-date { order: 1; }
.blog-layout-5 .entry-header { order: 2; margin: 0; padding: 0; }
.blog-layout-5 .ast-excerpt-container,
.blog-layout-5 .entry-content,
.blog-layout-5 .entry-summary { order: 3; margin: 0; }
.blog-layout-5 .hepatos-readmore-wrap { order: 4; }

/* Naslov spojen */
.blog-layout-5 .entry-header .entry-title {
    font-size: 1.15em;
    line-height: 1.3;
    margin: 0;
}

/* Datum objave */
.hepatos-pub-date {
    color: #b8202c;
    font-size: 0.88em;
    margin-bottom: 4px;
    font-weight: 500;
}
.hepatos-pub-date::before {
    content: "Datum objave: ";
    font-weight: 600;
}

/* "Procitaj vise" - tekstualni link u boji datuma (#b8202c) desni donji kut */
.hepatos-readmore-wrap {
    text-align: right;
    margin-top: 8px;
}
.hepatos-readmore {
    color: #b8202c !important;
    text-decoration: underline;
    font-size: 0.95em;
    font-weight: 500;
}
.hepatos-readmore:hover {
    color: #8a1721 !important;
}

/* Naslovi */
article.post .entry-title {
    font-size: 1.15em;
    line-height: 1.3;
    margin: 0;
}
article.post .entry-title a { color: #1a1a1a; }
article.post .entry-title a:hover { color: #8a1721; }

/* Single post - resetiraj grid */
.single article.post.ast-article-post {
    display: block;
    border: none;
}

/* Sakrij Astra "Read More" gumb (mi imamo svoj link) */
.read-more,
.ast-the-content-more-link,
article.post .read-more-link {
    display: none !important;
}

/* Mobile: vertikalan blog */
@media (max-width: 768px) {
    article.post.ast-article-post {
        grid-template-columns: 1fr;
    }
    article.post.ast-article-post > * { grid-column: 1; }
    article.post.ast-article-post .ast-blog-featured-section,
    article.post.ast-article-post .post-thumb-img-content { grid-row: auto; }
}
