/*
 Theme Name:   Astra Child
 Template:     astra
 Description:  Child theme for Astra - custom announcement bar and tweaks.
 Version:      1.0.0
*/

/* Announcement bar (rotirajuce poruke iznad headera) */
.trp-announcement-bar {
    background: #263746;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    padding: 8px 15px;
    position: relative;
    z-index: 999;
    overflow: hidden;
}

.trp-announcement-bar .trp-ann-item {
    display: none;
}

.trp-announcement-bar .trp-ann-item.is-active {
    display: block;
}

/* Trodijelni announcement bar: levo | sredina (rotira) | desno */
.trp-announcement-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    padding: 8px 20px;
}

.trp-ann-left,
.trp-ann-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}

.trp-ann-left a,
.trp-ann-right a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.trp-ann-left a:hover,
.trp-ann-right a:hover {
    text-decoration: underline;
}

.trp-ann-center {
    flex: 1 1 auto;
    text-align: center;
    min-width: 200px;
    position: relative;
}

.trp-ann-center .trp-ann-item {
    display: none;
}

.trp-ann-center .trp-ann-item.is-active {
    display: block;
}

/* Veličina logoa u headeru */
.site-branding .custom-logo,
.ast-site-identity .custom-logo {
    width: auto;
    max-height: 110px;
    height: auto;
}

/* Sakrij tekstualni naziv sajta pored logoa (ako postoji) */
.site-branding .site-title,
.site-branding .site-description {
    display: none;
}

/* Logo: manja veličina + bez bijelog filtra */
.site-branding .custom-logo,
.ast-site-identity .custom-logo,
.custom-logo-link img {
    max-height: 140px;
    width: auto;
    height: auto;
    filter: none !important;
}
.ast-theme-transparent-header .custom-logo-link img,
.ast-theme-transparent-header .site-logo-img img {
    filter: none !important;
}
@media (max-width: 921px) {
    .site-branding .custom-logo,
    .ast-site-identity .custom-logo,
    .custom-logo-link img { max-height: 90px; }
}
