:root {
    --brand-navy: #0f2d63;
    --brand-navy-soft: #1d3f7c;
    --brand-accent: #1f9a57;
    --brand-accent-light: #feffd6;
    --brand-bg: #fcfcfc;
    --brand-text: #1c2742;
    --brand-text-light: #fcfcfc;
    --brand-muted: #60708d;
    --card-shadow: 0 14px 30px rgba(12, 37, 84, 0.14);
    --card-shadow-hover: 0 18px 36px rgba(12, 37, 84, 0.2);
}

body {
    background: var(--brand-bg);
    color: var(--brand-text);
}

/* Header spacing and palette */
#top-bar.top-bar-section.top-bar-bg-color {
    background: linear-gradient(90deg, var(--brand-navy), var(--brand-navy-soft));
    padding: 12px 0;
}

#top-bar .top-contact > a,
#top-bar .top-social-icon > a {
    color: #e9efff;
    font-weight: 500;
}

#top-bar .top-contact > a:hover,
#top-bar .top-contact > a:focus,
#top-bar .top-social-icon > a:hover,
#top-bar .top-social-icon > a:focus {
    color: #cecece !important;
    text-shadow: none;
}

#top-bar .top-contact > a:hover i,
#top-bar .top-contact > a:focus i,
#top-bar .top-social-icon > a:hover i,
#top-bar .top-social-icon > a:focus i {
    color: #cecece !important;
}



#top-bar .top-contact > a {
    margin-right: 22px;
}

#top-bar .top-contact > a i,
#top-bar .top-social-icon > a i {
    margin-right: 7px;
}

/* Force top-bar item order: language first, contact last */
#top-bar .col-sm-12 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#top-bar .top-social-icon,
#top-bar .top-contact {
    float: none;
}

#top-bar .top-social-icon {
    order: 1;
    text-align: left;
}

#top-bar .top-contact {
    order: 2;
    text-align: right;
}

#sticker {
    box-shadow: 0 8px 30px rgba(9, 27, 60, 0.09);
}

#sticker .sticky-menu .navbar.navbar-default {
    background: #ffffff;
    border: 0;
    min-height: 128px !important;
}

#sticker .sticky-menu .navbar > .container {
    padding-top: 8px;
    padding-bottom: 8px;
}

#sticker .navbar-header .navbar-brand {
    padding-top: 18px;
    padding-bottom: 18px;
    height: auto;
}

#sticker .navbar-brand > img {
    width: 250px;
    max-width: 100%;
}

#sticker .navbar.navbar-bg-light .navbar-nav > li > a {
    color: var(--brand-text);
    font-size: 14px;
    font-weight: 500;
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: transparent !important;
    text-decoration: none;
}

#sticker .navbar.navbar-bg-light .navbar-nav > li > a:hover,
#sticker .navbar.navbar-bg-light .navbar-nav > li > a:focus,
#sticker .navbar-default .navbar-nav > li.active > a {
    color: var(--brand-accent);
}

/* Remove legacy blue hover layer from global .nav rules */
#sticker .navbar-default .navbar-nav > li > a,
#sticker .navbar-default .navbar-nav > li > a:hover,
#sticker .navbar-default .navbar-nav > li > a:focus,
#sticker .navbar-default .navbar-nav > li.active > a,
#sticker .navbar-default .navbar-nav > li.active > a:hover,
#sticker .navbar-default .navbar-nav > li.active > a:focus,
#sticker .navbar-default .navbar-nav > .open > a,
#sticker .navbar-default .navbar-nav > .open > a:hover,
#sticker .navbar-default .navbar-nav > .open > a:focus {
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

#sticker .navbar-default .navbar-nav > li > a:hover,
#sticker .navbar-default .navbar-nav > li > a:focus,
#sticker .navbar-default .navbar-nav > li.active > a,
#sticker .navbar-default .navbar-nav > li.active > a:hover,
#sticker .navbar-default .navbar-nav > li.active > a:focus,
#sticker .navbar-default .navbar-nav > .open > a,
#sticker .navbar-default .navbar-nav > .open > a:hover,
#sticker .navbar-default .navbar-nav > .open > a:focus {
    background-color: transparent !important;
    color: var(--brand-accent) !important;
    text-decoration: underline;
    text-decoration-color: var(--brand-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 10px;
}

/* Kill legacy blue hover on last menu item from hover-dropdown-menu.css */
#sticker.semi-color-header .navbar-default .navbar-nav > li:last-child:hover,
.semi-color-header #sticker .navbar-default .navbar-nav > li:last-child:hover {
    background-color: transparent !important;
}

#sticker.semi-color-header .navbar-default .navbar-nav > li:last-child > a:hover,
#sticker.semi-color-header .navbar-default .navbar-nav > li:last-child > a:focus,
.semi-color-header #sticker .navbar-default .navbar-nav > li:last-child > a:hover,
.semi-color-header #sticker .navbar-default .navbar-nav > li:last-child > a:focus {
    background-color: transparent !important;
}

#sticker .dropdown-menu {
    border-radius: 10px;
    border: 1px solid #d9e2f3;
    box-shadow: 0 14px 28px rgba(11, 31, 68, 0.12);
}

#sticker .dropdown-menu > li > a {
    color: var(--brand-text);
    padding-top: 10px;
    padding-bottom: 10px;
}

#sticker .dropdown-menu > li > a:hover,
#sticker .dropdown-menu > li > a:focus {
    background: #eef4ff;
    color: var(--brand-accent);
}

#sticker .navbar-default .navbar-nav > .open > a,
#sticker .navbar-default .navbar-nav > .open > a:hover,
#sticker .navbar-default .navbar-nav > .open > a:focus {
    background: transparent !important;
    color: var(--brand-accent) !important;
}

#sticker .navbar-default .navbar-nav > li > .dropdown-menu {
    background: #f7fbff;
}

#sticker .navbar-default .navbar-nav > li > .dropdown-menu > li > a {
    color: #133567;
}

#sticker .navbar-default .navbar-nav > li > .dropdown-menu > li > a:hover,
#sticker .navbar-default .navbar-nav > li > .dropdown-menu > li > a:focus {
    background: #e7f0ff;
    color: var(--brand-accent);
}

#sticker .navbar-default .dropdown-menu .dropdown-menu {
    background: #f7fbff;
}

#sticker .navbar-default .dropdown-menu .dropdown-menu > li > a {
    color: #133567;
}

/* One-row desktop header: logo left, menu right */
@media (min-width: 992px) {
    #sticker .navbar .col-md-12 {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #sticker .navbar-header {
        float: none;
        flex: 0 0 auto;
    }

    #sticker .navbar-collapse {
        display: block !important;
        flex: 1 1 auto;
        padding-left: 20px;
    }

    #sticker .navbar.navbar-bg-light .navbar-nav {
        float: right;
    }
}

/* Slider caption like reference design */
#main-slider,
#main-slider .carousel,
#main-slider .carousel-inner {
    position: relative;
}

#main-slider .carousel-inner {
    overflow: hidden;
    min-height: clamp(280px, 34vw, 520px);
}

#main-slider .carousel-inner > .item {
    min-height: clamp(280px, 34vw, 520px);
}

#main-slider .carousel-inner > .item > img {
    width: 100%;
    height: clamp(280px, 34vw, 520px);
    object-fit: cover;
}

/* Proper fade behavior to avoid blank frame + content jump */
#main-slider .carousel-fade .carousel-inner .item {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1;
    transition: opacity 0.45s ease-in-out;
}

#main-slider .carousel-fade .carousel-inner .active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

#main-slider .carousel-fade .carousel-inner .active.left,
#main-slider .carousel-fade .carousel-inner .active.right {
    opacity: 0;
    z-index: 1;
}

#main-slider .carousel-fade .carousel-inner .next.left,
#main-slider .carousel-fade .carousel-inner .prev.right {
    opacity: 1;
}

/* Keep manual navigation arrows visible and clickable */
#main-slider .carousel-control {
    z-index: 25;
    opacity: 1;
    pointer-events: auto;
}

#main-slider .carousel-control .fa {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

#main-slider .carousel-inner .item {
    position: relative;
}

#main-slider .carousel-inner .item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, rgba(4, 15, 41, 0.62) 0%, rgba(4, 15, 41, 0.26) 58%, rgba(4, 15, 41, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

#main-slider .carousel-caption {
    z-index: 2;
    left: 7%;
    right: auto;
    width: 52%;
    text-align: left;
}

#main-slider .carousel-caption h1 {
    margin: 0 0 22px;
    font-size: 62px;
    line-height: 1.05;
    font-weight: 700;
    color: #ffffff;
    text-transform: none;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}

#main-slider .carousel-caption .btn.btn-default {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    padding: 13px 26px;
}

#main-slider .carousel-caption .btn.btn-default:hover {
    background: #178148;
    border-color: #178148;
}

/* Home content spacing */
.slider + .page-section {
    padding-top: 44px;
    padding-bottom: 54px;
}

/* Masonry cards for homepage news */
.slider + .page-section .post-list {
    margin-top: 6px;
}

.slider + .page-section .post-list .post-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.slider + .page-section .post-list .post-item:hover {
    transform: none;
    box-shadow: var(--card-shadow);
}

.slider + .page-section .post-list .post-item .post-image.pull-right {
    float: none !important;
    margin: 0 !important;
}

.slider + .page-section .post-list .post-item .post-image img,
.slider + .page-section .post-list .post-item img {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.slider + .page-section .post-list .post-item .post-title {
    margin: 0;
    padding: 18px 22px 10px;
    font-size: 24px;
    line-height: 1.25;
}

.slider + .page-section .post-list .post-item .post-title a {
    color: var(--brand-text);
}

.slider + .page-section .post-list .post-item .post-title a:hover {
    color: var(--brand-accent);
}

.slider + .page-section .post-list .post-item > div[style] {
    margin: 0 !important;
    padding: 0 22px 10px !important;
    color: var(--brand-muted) !important;
    font-size: 13px !important;
    line-height: 1.4;
}

.slider + .page-section .post-list .post-item > div[style] a {
    color: var(--brand-muted);
}

.slider + .page-section .post-list .post-item .post-content {
    margin: 0;
    padding: 0 22px 14px;
    color: #2f3d58;
    line-height: 1.6;
}

.slider + .page-section .post-list .post-item .post-meta {
    margin: 0;
    padding: 0 22px 20px;
}

.slider + .page-section .post-list .post-item .post-meta a {
    color: var(--brand-navy-soft);
    font-weight: 600;
}

.slider + .page-section .post-list .post-item .clearfix {
    display: none;
}

@media (min-width: 992px) {
    .slider + .page-section .post-list {
        column-count: 3;
        column-gap: 24px;
    }
}

/* Homepage quick access strip */
.home-quick-access {
    width: 100%;
    margin-top: 6px;
    padding: 26px 0 32px;
    background-image: linear-gradient(90deg, rgba(10, 43, 115, 0.88) 0%, rgba(14, 58, 147, 0.62) 100%), url("../img/poz-icon-home.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-quick-access .quick-access-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 18px;
}

.home-quick-access .quick-access-item {
    min-height: 112px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-quick-access .quick-access-item i {
    font-size: 34px;
    line-height: 1;
}

.home-quick-access .quick-access-item span {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
}

.home-quick-access .quick-access-item:hover,
.home-quick-access .quick-access-item:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.home-quick-access .item-ucenici i {
    color: #b980ff;
}

.home-quick-access .item-obavestenja i {
    color: #ffa52f;
}

.home-quick-access .item-upis i {
    color: #2fd05f;
}

.home-quick-access .item-takmicenja i {
    color: #2fa2ff;
}

.home-quick-access .item-ednevnik i {
    color: #13d4b3;
}

.home-quick-access .item-kontakt i {
    color: #ff4f66;
}

/* Homepage galleries section */
.home-galleries {
    padding: 44px 0 50px;
    background: #ffffff;
}

.home-galleries .home-galleries-title {
    margin: 0 0 24px;
    color: #0f2d63;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    text-transform: none;
}

.home-galleries .home-galleries-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 16px;
}

.home-galleries .home-gallery-card {
    display: block;
    text-decoration: none;
}

.home-galleries .home-gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.home-galleries .home-gallery-card .gallery-name {
    display: block;
    margin-top: 10px;
    color: #17366f;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
}

.home-galleries .home-gallery-card .gallery-date {
    display: block;
    margin-top: 4px;
    color: #35558b;
    font-size: 15px;
    line-height: 1.25;
}

.home-galleries .home-gallery-card:hover .gallery-name,
.home-galleries .home-gallery-card:focus .gallery-name {
    color: #1f9a57;
}

/* Homepage useful links banners */
.home-useful-links {
    padding: 28px 0 34px;
    background-color: #f3f5f9;
    background-image: url("../img/poz-svetla.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-useful-links .home-useful-links-title {
    margin: 0 0 16px;
    color: #0f2d63;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    text-transform: none;
}

.home-useful-links .home-useful-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 20px;
}

.home-useful-links .home-useful-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d8deeb;
}

.home-useful-links .home-useful-link-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-useful-links .home-useful-link-item:hover,
.home-useful-links .home-useful-link-item:focus {
    border-color: #b8c4dc;
}

.home-useful-links .home-useful-link-item-himna {
    gap: 12px;
    padding: 8px 16px;
    background:
        radial-gradient(circle at 14% 32%, rgba(206, 171, 118, 0.34) 0, rgba(206, 171, 118, 0.34) 6px, transparent 7px),
        radial-gradient(circle at 84% 68%, rgba(206, 171, 118, 0.28) 0, rgba(206, 171, 118, 0.28) 6px, transparent 7px),
        linear-gradient(90deg, #f9f0e2 0%, #fcf7ee 100%);
    color: #2b2b2b;
}

.home-useful-links .home-useful-link-item-himna .himna-icon {
    color: #bd8a42;
    font-size: 22px;
    line-height: 1;
}

.home-useful-links .home-useful-link-item-himna .himna-text {
    color: #2a2a2a;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}

/* Homepage contact strip above footer */
.home-contact-strip {
    position: relative;
    padding: 26px 0 18px;
    background: #ffffff;
    border-top: 1px solid #e7ebf3;
}

.home-contact-strip .home-contact-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 26px;
}

.home-contact-strip .home-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-contact-strip .home-contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid #b8c8e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3f63b4;
    font-size: 24px;
    flex: 0 0 52px;
}

.home-contact-strip .home-contact-text {
    display: flex;
    flex-direction: column;
}

.home-contact-strip .home-contact-label {
    color: #0f2d63;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.home-contact-strip .home-contact-value,
.home-contact-strip .home-contact-value a {
    margin-top: 4px;
    color: #1f2f4f;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
}

.home-contact-strip .home-contact-value a:hover,
.home-contact-strip .home-contact-value a:focus {
    color: #1f9a57;
}

@media (max-width: 1199px) {
    #sticker .navbar.navbar-bg-light .navbar-nav > li > a {
        font-size: 14px;
        padding-left: 9px;
        padding-right: 9px;
    }

    #main-slider .carousel-caption h1 {
        font-size: 50px;
    }
}

@media (max-width: 991px) {
    #sticker .navbar-header .navbar-brand {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #sticker .navbar-brand > img {
        width: 220px;
    }

    #sticker .navbar.navbar-bg-light .navbar-nav > li > a {
        padding-top: 14px;
        padding-bottom: 14px;
        text-underline-offset: 6px;
    }

    .slider + .page-section .post-list {
        column-count: 1;
    }

    #main-slider .carousel-inner .item:before {
        width: 75%;
    }

    #main-slider .carousel-inner,
    #main-slider .carousel-inner > .item,
    #main-slider .carousel-inner > .item > img {
        min-height: clamp(240px, 44vw, 380px);
        height: clamp(240px, 44vw, 380px);
    }

    #main-slider .carousel-caption {
        width: 76%;
    }

    #main-slider .carousel-caption h1 {
        font-size: 38px;
    }

    .home-quick-access .quick-access-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

    .home-galleries .home-galleries-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .home-useful-links .home-useful-links-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .home-contact-strip .home-contact-strip-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 18px 24px;
    }
}

@media (max-width: 767px) {
    #top-bar {
        padding: 9px 0;
    }

    #top-bar .col-sm-12 {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    #top-bar .top-contact,
    #top-bar .top-social-icon {
        text-align: center;
    }

    #top-bar .top-contact > a {
        margin-right: 10px;
    }

    .slider + .page-section {
        padding-top: 28px;
    }

    .slider + .page-section .post-list .post-item .post-title {
        font-size: 22px;
    }

    #main-slider .carousel-inner .item:before {
        width: 100%;
        background: linear-gradient(180deg, rgba(4, 15, 41, 0.72) 0%, rgba(4, 15, 41, 0.42) 48%, rgba(4, 15, 41, 0.08) 100%);
    }

    #main-slider .carousel-inner,
    #main-slider .carousel-inner > .item,
    #main-slider .carousel-inner > .item > img {
        min-height: 220px;
        height: 220px;
    }

    #main-slider .carousel-caption {
        left: 8%;
        right: 8%;
        width: auto;
    }

    #main-slider .carousel-caption h1 {
        font-size: 30px;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    #main-slider .carousel-caption .btn.btn-default {
        padding: 10px 18px;
        font-size: 13px;
    }

    .home-quick-access {
        padding-top: 20px;
        padding-bottom: 24px;
    }

    .home-quick-access .quick-access-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap: 12px;
    }

    .home-quick-access .quick-access-item {
        min-height: 108px;
        gap: 10px;
    }

    .home-quick-access .quick-access-item i {
        font-size: 28px;
    }

    .home-quick-access .quick-access-item span {
        font-size: 17px;
    }

    .home-galleries {
        padding-top: 30px;
        padding-bottom: 34px;
    }

    .home-galleries .home-galleries-title {
        margin-bottom: 16px;
        font-size: 28px;
    }

    .home-galleries .home-galleries-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap: 12px;
    }

    .home-galleries .home-gallery-card .gallery-name {
        font-size: 16px;
    }

    .home-galleries .home-gallery-card .gallery-date {
        font-size: 14px;
    }

    .home-useful-links {
        padding-top: 22px;
        padding-bottom: 26px;
    }

    .home-useful-links .home-useful-links-title {
        margin-bottom: 12px;
        font-size: 28px;
    }

    .home-useful-links .home-useful-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-useful-links .home-useful-link-item {
        min-height: 84px;
    }

    .home-useful-links .home-useful-link-item-himna .himna-text {
        font-size: 18px;
    }

    .home-contact-strip {
        padding-top: 18px;
        padding-bottom: 16px;
    }

    .home-contact-strip .home-contact-strip-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-contact-strip .home-contact-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 20px;
    }

    .home-contact-strip .home-contact-label {
        font-size: 16px;
    }

    .home-contact-strip .home-contact-value,
    .home-contact-strip .home-contact-value a {
        font-size: 14px;
    }
}

/* Homepage color polish: sidebar + post metadata */
.slider + .page-section .sidebar .widget .widget-title .title {
    color: var(--brand-text);
    background: transparent !important;
}

.slider + .page-section .sidebar .widget .widget-title {
    background: transparent !important;
}

.slider + .page-section .sidebar .widget .latest-posts .list-group-item,
.slider + .page-section .sidebar .widget .latest-posts .list-group-item:visited {
    background: var(--brand-bg);
}

.slider + .page-section .sidebar .widget .latest-posts .list-group-item:hover,
.slider + .page-section .sidebar .widget .latest-posts .list-group-item:focus {
    background: var(--brand-bg);
}

/* Sidebar latest-posts on oglasna-tabla.php and page.php: no white tile behind links */
.oglasna-tabla-page .sidebar .widget .latest-posts .list-group-item,
.oglasna-tabla-page .sidebar .widget .latest-posts .list-group-item:visited,
.oglasna-tabla-page .sidebar .widget .latest-posts .list-group-item:hover,
.oglasna-tabla-page .sidebar .widget .latest-posts .list-group-item:focus,
.page-content-page .sidebar .widget .latest-posts .list-group-item,
.page-content-page .sidebar .widget .latest-posts .list-group-item:visited,
.page-content-page .sidebar .widget .latest-posts .list-group-item:hover,
.page-content-page .sidebar .widget .latest-posts .list-group-item:focus,
.text-page .sidebar .widget .latest-posts .list-group-item,
.text-page .sidebar .widget .latest-posts .list-group-item:visited,
.text-page .sidebar .widget .latest-posts .list-group-item:hover,
.text-page .sidebar .widget .latest-posts .list-group-item:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* WidgetPoslednjeObjave uses plain .list-group-item (not .latest-posts) */
.oglasna-tabla-page .sidebar .widget .list-group-item,
.oglasna-tabla-page .sidebar .widget .list-group-item:visited,
.oglasna-tabla-page .sidebar .widget .list-group-item:hover,
.oglasna-tabla-page .sidebar .widget .list-group-item:focus,
.page-content-page .sidebar .widget .list-group-item,
.page-content-page .sidebar .widget .list-group-item:visited,
.page-content-page .sidebar .widget .list-group-item:hover,
.page-content-page .sidebar .widget .list-group-item:focus,
.text-page .sidebar .widget .list-group-item,
.text-page .sidebar .widget .list-group-item:visited,
.text-page .sidebar .widget .list-group-item:hover,
.text-page .sidebar .widget .list-group-item:focus {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.oglasna-tabla-page .sidebar .widget #MainMenu2,
.oglasna-tabla-page .sidebar .widget .list-group,
.oglasna-tabla-page .sidebar .widget .list-group.panel,
.page-content-page .sidebar .widget #MainMenu2,
.page-content-page .sidebar .widget .list-group,
.page-content-page .sidebar .widget .list-group.panel,
.text-page .sidebar .widget #MainMenu2,
.text-page .sidebar .widget .list-group,
.text-page .sidebar .widget .list-group.panel {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.slider + .page-section .post-list .post-item > div[style] .author a,
.slider + .page-section .post-list .post-item > div[style] .author a:visited {
    color: #4f6385 !important;
    font-weight: 600;
}

.slider + .page-section .post-list .post-item > div[style] .author a:hover,
.slider + .page-section .post-list .post-item > div[style] .author a:focus {
    color: var(--brand-accent) !important;
}

.slider + .page-section .post-list .post-item > div[style] .category {
    color: #7a8ca9;
}

.slider + .page-section .post-list .post-item > div[style] .category i {
    color: #9aa9c2;
}

/* Global palette alignment: replace legacy blue/ochre/yellow accents */
.widget li .post-details a:hover,
.widget li .post-details a:focus,
.post-meta a:hover,
.post-meta a:focus,
.post-title a:hover,
.post-title a:focus,
.widget a:hover,
.widget a:focus {
    color: var(--brand-accent);
}

#footer {
    color: var(--brand-text);
}

#footer .footer-widget,
#footer .dark-section.footer-widget {
    background: #eaf0f7;
    color: var(--brand-text);
}

#footer .dark-section.footer-widget {
    position: relative;
    overflow: hidden;
    background-color: #003494;
    background-image: none;
}

#footer .dark-section.footer-widget::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 240px;
    background: url("../img/footer-bgd.jpg") center top / 100% auto no-repeat;
    z-index: 0;
    pointer-events: none;
}

#footer .dark-section.footer-widget > .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    #footer .dark-section.footer-widget::before {
        height: 180px;
    }
}

#footer .footer-widget .widget-title .title,
#footer .dark-section .widget .widget-title .title {
    color: var(--brand-text-light);
}

#footer .footer-icon {
    color: #8fa1bc;
}

#footer .dark-section .widget a,
#footer .dark-section .widget a:visited {
    color: #8fa1bc;
}

#footer .dark-section .widget a:hover,
#footer .dark-section .widget a:focus {
    color: var(--brand-accent-light);
}

#footer .copyright,
#footer .dark-section.copyright {
    background: #013492;
    border-top: 1px solid #cdd8e6;
    color: #ffffff;
}

#footer .copyright a,
.copyright a {
     color: #8fa1bc;
}

#footer .dark-section .form-control {
    background: #ffffff;
    color: var(--brand-text);
    border: 1px solid #c7d4e6;
}

/* Oglasna tabla: reuse homepage card language + modern pagination */
.oglasna-tabla-page .oglasna-post-list .post-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-image.pull-right {
    float: none !important;
    margin: 0 !important;
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-image img,
.oglasna-tabla-page .oglasna-post-list .post-item img {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-title {
    margin: 0;
    padding: 18px 22px 10px;
    font-size: 30px;
    line-height: 1.22;
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-title a {
    color: var(--brand-text);
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-title a:hover,
.oglasna-tabla-page .oglasna-post-list .post-item .post-title a:focus {
    color: var(--brand-accent);
}

.oglasna-tabla-page .oglasna-post-list .post-item > div[style] {
    margin: 0 !important;
    padding: 0 22px 10px !important;
    color: var(--brand-muted) !important;
    font-size: 13px !important;
    line-height: 1.4;
}

.oglasna-tabla-page .oglasna-post-list .post-item > div[style] a {
    color: #4f6385;
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-content {
    margin: 0;
    padding: 0 22px 14px;
    color: #2f3d58;
    line-height: 1.65;
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-meta {
    margin: 0;
    padding: 0 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #ecf1f8;
    padding-top: 14px;
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-meta a {
    color: var(--brand-navy-soft);
    font-weight: 600;
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-meta .time {
    color: #6f7f9b;
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-meta .category {
    float: none !important;
}

.oglasna-tabla-page .oglasna-post-list .post-item .post-meta a:hover,
.oglasna-tabla-page .oglasna-post-list .post-item .post-meta a:focus {
    color: var(--brand-accent);
}

.oglasna-tabla-page .navbar-right {
    float: none !important;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    column-span: all;
    break-inside: avoid;
    page-break-inside: avoid;
}

.oglasna-tabla-page .pagination {
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.oglasna-tabla-page .pagination > li {
    margin: 0 !important;
    padding: 0;
}

.oglasna-tabla-page .pagination > li > span {
    background: transparent;
    border: 0;
    padding: 0;
}

.oglasna-tabla-page .pagination > li > span > a,
.oglasna-tabla-page .pagination > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #d7e1ef;
    background: #ffffff;
    color: #1f365f;
    padding: 0;
    text-decoration: none;
}

.oglasna-tabla-page .pagination > li > span > a:hover,
.oglasna-tabla-page .pagination > li > a:hover,
.oglasna-tabla-page .pagination > li > span > a:focus,
.oglasna-tabla-page .pagination > li > a:focus {
    background: #eef4ff;
    color: var(--brand-accent);
    border-color: #c6d6eb;
}

.oglasna-tabla-page .pagination > li.active > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #ffffff;
    padding: 0;
    border: 1px solid var(--brand-accent);
}

@media (min-width: 992px) {
    .oglasna-tabla-page .oglasna-post-list {
        column-count: 2;
        column-gap: 24px;
    }
}

@media (max-width: 991px) {
    .oglasna-tabla-page .oglasna-post-list {
        column-count: 1;
    }
}

@media (max-width: 767px) {
    .oglasna-tabla-page .oglasna-post-list .post-item .post-title {
        font-size: 24px;
    }
}

/* Force 3 columns on homepage index after sidebar removal */
@media (min-width: 992px) {
    body.home-index-no-sidebar .slider + .page-section .post-list {
        -webkit-column-count: 3 !important;
        column-count: 3 !important;
        column-gap: 24px;
    }
}

/* Table refresh: override legacy beige/orange table theme from style.css */
.page-section .container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #d7e1ef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(12, 37, 84, 0.08);
}

.page-section .container table thead tr {
    background: var(--brand-navy) !important;
}

.page-section .container table th {
    background: var(--brand-navy) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.2px;
    text-align: left;
}

.page-section .container table td,
.page-section .container table th {
    padding: 12px 14px !important;
    border-right: 1px solid #e5ecf5;
}

.page-section .container table td:last-child,
.page-section .container table th:last-child {
    border-right: 0;
}

.page-section .container table tr {
    background: transparent !important;
    border-bottom: 0 !important;
}

.page-section .container table tbody tr:nth-child(odd) {
    background: #f7faff !important;
}

.page-section .container table tbody tr:nth-child(even) {
    background: #ffffff !important;
}

.page-section .container table tbody tr td {
    border-top: 1px solid #e5ecf5;
    color: #233554;
}

.page-section .container table tbody tr:hover {
    background: #edf4ff !important;
}

@media (max-width: 767px) {
    .page-section .container table {
        border-radius: 10px;
    }

    .page-section .container table th,
    .page-section .container table td {
        font-size: 14px;
        padding: 10px 10px !important;
    }

    .page-header .image-bg {
        background-repeat: no-repeat !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* Page-header breadcrumb: align left under subtitle */
#page .page-title-left .breadcrumb {
    position: static;
    right: auto;
    left: auto;
    top: auto;
    margin: 6px 0 0;
    padding: 0;
    width: auto;
    text-align: left;
}

/* page.php: force breadcrumb below subtitle on the left */
.page-content-page #page .page-title-left .breadcrumb {
    clear: both;
    float: none;
    display: block;
    width: 100%;
}

.image-bg.fixed

 {
    background-attachment: unset;
}

/* prettyPhoto refresh: thinner dark frame, larger image area, modern close button */
div.pp_overlay {
    background: linear-gradient(135deg, #0f1726 0%, #1a2536 100%) !important;
    -webkit-backdrop-filter: blur(2px) saturate(0.9);
    backdrop-filter: blur(2px) saturate(0.9);
}

div.pp_pic_holder.dark_square .pp_top,
div.pp_pic_holder.dark_square .pp_bottom {
    height: 8px !important;
}

div.pp_pic_holder.dark_square .pp_top .pp_left,
div.pp_pic_holder.dark_square .pp_top .pp_middle,
div.pp_pic_holder.dark_square .pp_top .pp_right,
div.pp_pic_holder.dark_square .pp_bottom .pp_left,
div.pp_pic_holder.dark_square .pp_bottom .pp_middle,
div.pp_pic_holder.dark_square .pp_bottom .pp_right {
    height: 8px !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

div.pp_pic_holder.dark_square .pp_top .pp_left,
div.pp_pic_holder.dark_square .pp_bottom .pp_left,
div.pp_pic_holder.dark_square .pp_top .pp_right,
div.pp_pic_holder.dark_square .pp_bottom .pp_right {
    display: none !important;
    width: 0 !important;
    background: transparent !important;
}

div.pp_pic_holder.dark_square .pp_top .pp_middle,
div.pp_pic_holder.dark_square .pp_bottom .pp_middle {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
}

div.pp_pic_holder.dark_square .pp_top,
div.pp_pic_holder.dark_square .pp_bottom {
    overflow: hidden !important;
}

div.pp_pic_holder.dark_square .pp_content,
div.pp_pic_holder.dark_square .pp_middle {
    background: rgba(20, 30, 44, 0.45) !important;
}

div.pp_pic_holder.dark_square .pp_content {
    box-shadow: none;
}

div.pp_pic_holder.dark_square .pp_fade,
div.pp_pic_holder.dark_square #pp_full_res,
div.pp_pic_holder.dark_square .pp_content_container {
    background: transparent !important;
}

div.pp_pic_holder.dark_square .pp_content_container {
    position: relative;
}

div.pp_pic_holder.dark_square .pp_content_container .pp_left {
    padding-left: 0 !important;
    background: transparent !important;
}

div.pp_pic_holder.dark_square .pp_content_container .pp_right {
    padding-right: 0 !important;
    background: transparent !important;
}

div.pp_pic_holder.dark_square #pp_full_res {
    position: relative;
    overflow: hidden;
}

div.pp_pic_holder.dark_square #pp_full_res::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 8px solid rgba(20, 30, 44, 0.45);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
}

div.pp_pic_holder.dark_square #pp_full_res img {
    display: block;
    border: 0 !important;
}

div.pp_pic_holder.dark_square .pp_content_container .pp_details {
    margin: 6px 0 0 !important;
}

div.pp_pic_holder.dark_square .pp_gallery ul {
    margin-top: 2px;
}

div.pp_pic_holder.dark_square a.pp_close {
    width: 34px !important;
    height: 34px !important;
    right: 10px !important;
    top: 10px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    text-indent: 0 !important;
    overflow: hidden;
    font-size: 0;
    line-height: 34px !important;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

div.pp_pic_holder.dark_square a.pp_close::before {
    content: "x";
    font-size: 22px;
    line-height: 34px;
    color: #fff;
    font-weight: 400;
}

div.pp_pic_holder.dark_square a.pp_close:hover {
    background: rgba(0, 0, 0, 0.85) !important;
}

@media (min-height: 800px) {
    div.pp_pic_holder.dark_square {
        margin-top: -28px;
    }
}

.white {
    color: white !important;
}