@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans+Expanded:ital,wght@0,200..900;1,200..900&display=swap');

html {
    scroll-behavior: smooth;
}
body {
    font-family: "Zalando Sans Expanded", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-size: 12px;
    font-style: normal;
    letter-spacing: 1px;
    color: #000000FF;
}

img {
    border-radius: 15px;
}

.block-content {
    margin: 50px 0;
}
h1 {
    font-style: italic;
    font-weight: 900;
}
h3, h4, h5, h6 {
    font-weight: 700;
    text-transform: uppercase;
}
h6 {
    font-size: 12px;
}
b {
    font-weight: 600;
}
button, .btn {
    height: 22px;
    font-size: 10px;
    color: #007cc2;
    background-color: white;
    text-transform: uppercase;
    font-weight: 700;
    padding: 5px 20px 22px;
    border: 2px solid #007cc2;
}
button[type=submit] {
    width: 100%;
}
button:hover, .btn:hover {
    background-color: #007cc2;
    color: white;
}
input {
    width: 100%;
    height: 30px;
    border: 2px solid #007cc2;
    margin-bottom: 10px;
}
textarea {
    padding: 5px;
    border: 2px solid #007cc2;
    width: 100% !important;
}
::placeholder {
    color: #727171;
    font-style: italic;
}
input[type=submit], input[type=button], input[type=date] {
    height: 30px;
    width: 100%;
    color: black;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0px;
    border: 2px solid #007cc2;
    border-radius: 0;
    background-color: white;
}
input[type=submit]:hover, input[type=button]:hover, input[type=date]:hover {
    color: white;
    background-color: #007cc2;
}
a {
    text-decoration: none !important;
    color: #007cc2;
    font-weight: 600;
    transition: .4s;
}
a:hover {
    color: #85c226;
}

.banner {
    width: 100%;
    height: auto;
    background-image: url("/static/images/green_bckground.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    color: #FFFFFF;
    padding: 25px 0;
}
.banner p {
    font-size: 12px;
    font-weight: 500;
}

.main-banner {
    display: flex;
}
.main-banner h4 {
    margin-top: 15px;
}

.layer {
    background: rgba(0, 124, 194, .7);
    overflow: hidden;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 50px 0;
}

@media only screen and (max-width: 800px) {
    h1 {font-size: 28px;}
    h3 {font-size: 18px;}
    h4, h5 {font-size: 15px;}
    p, a, div {font-size: 10px;}
    .block-content {
        margin: 20px 0;
    }
    .tekst {
        margin: 20px 0;
    }
    .banner p {font-size: 10px;}
    .main-banner h4 {margin-top: 11px;}
    .layer {
        background: rgba(0, 124, 194, .8);
        padding: 20px 0;
    }
    .btn {
        height: 20px;
        font-size: 8px;
        font-weight: 600;
        padding: 2px 10px 12px;
        border: 1px solid #007cc2;
    }
    button[type=submit] {
        font-size: 10px;
        font-weight: 600;
    }
}

/* Add animation to "page content" */
.animate-bottom {
    position: relative;
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 1s;
    animation-name: animatebottom;
    animation-duration: 1s
}

@-webkit-keyframes animatebottom {
    from { opacity:0 }
    to { opacity:1 }
}

@keyframes animatebottom {
    from{ opacity:0 }
    to{ opacity:1 }
}

#myDiv {
    display: none;
    margin: 0;
    padding: 0;
}

/* NAVBAR STYLES */
.navbar {
    background-color: #ffffff;
    border-top: 1px solid #007cc2;
    border-bottom: 1px solid #007cc2;
}

.navbar a {
    text-decoration: none;
}
.navbar-brand img {
    height: 40px;
}

.navbar-toggler {
    border: 2px solid #007cc2;
    color: #007cc2;
    padding-bottom: 22px;
}

.nav-item {
    margin: -5px 15px;
}
.nav-item a {
    font-weight: 600;
    font-size: 12px;
    color: #007cc2;
    letter-spacing: 0px;
}
.nav-item a:hover {
    -webkit-text-stroke: .5px #85c226;
    transition: .4s;
}
.active .nav-link {
    color: #85c226;
}

.dropdown-item {
    border: none;
}
.dropdown-item:hover {
    -webkit-text-stroke: 1px #85c226;
}
.dropdown-header {
    font-weight: 500;
    color: #007cc2;
}

#aktuelno {
    position: relative;
}
.novo {
    position: absolute;
    top: -8px;
    right: -10px;
    color: white;
    background-color: rgba(250, 0, 0, .7);
    font-size: 10px;
    font-weight: 700;
    width: 70px;
    border-radius: 25px;
}

@media only screen and (max-width: 991px) {
    .nav-item {
        text-align: right;
        margin-bottom: -5px;
    }
    .nav-item a,
    .dropdown-header {
        font-size: 10px;
    }
    .dropdown-menu {
        background-color: transparent;
    }
    .dropdown-item, .dropdown-header {
        text-align: right;
    }
    .novo {
        top: -2px;
        padding-top: 2px;
        font-size: 7px;
        font-weight: 600;
        width: 40px;
    }
}

/* FOOTER */
.footer {
    border-top: 1px solid #007cc2;
    background-color: #ffffff;
    padding-top: 15px;
}
.footer h6 {
    color: #007cc2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0px;
}
.footer a {
    text-decoration: none;
    color: #007cc2;
    font-weight: 400;
    transition: .4s;
}
.footer a:hover {
    -webkit-text-stroke: 1px #85c226;
}
.footer small {
    color: #007cc2;
}

@media only screen and (max-width: 991px) {
    .footer, .footer h6 {font-size: 12px;}
}

/* HOME PAGE */

#demo .carousel-inner .carousel-item img {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0px;
}
#demo .carousel-indicators li {
    background-color: black;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}
#demo .carousel-indicators .active {
    background-color: #007cc2;
}
#demo .carousel-control-prev .carousel-control-prev-icon,
#demo .carousel-control-next .carousel-control-next-icon {
    width: 44px;
    height: 44px;
}

/* CAROUSEL */
.carousel-inner {
    overflow: hidden;
}
.carousel-inner .carousel-item {
    width: 100%;
    height: auto;
    overflow: hidden;
}
.carousel-inner .carousel-item img {
    max-width: 100%;
    height: auto;
}

.carousel-control-prev,
.carousel-control-next {
    border: 1px solid #007cc2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    border: 2px solid #007cc2;
    background-color: rgba(255, 255, 255, 0.6);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 70% 70%; /* malo manja ikonica */
    filter: brightness(0) saturate(100%) invert(30%) sepia(66%) saturate(547%) hue-rotate(175deg) brightness(95%) contrast(92%);
}

@media only screen and (max-width: 800px) {
    .home-carousel {display: none;}
}

/* BRANDS */
.rasveta {
    border: 3px solid #85c226;
    border-radius: 10px;
    height: 170px;
    padding: 5px;
}
.rasveta .brand-type {
    background-color: #85c226;
    color: white;
    position: absolute;
    top: 2px;
    right: 16px;
    border-radius: 5px;
    padding: 2px 5px;
}
.rasveta:hover {
    border: 5px solid #85c226;
}
.intercom {
    border: 3px solid #8B0000;
    border-radius: 10px;
    height: 170px;
    padding: 5px;
}
.intercom .brand-type {
    background-color: #8B0000;
    color: white;
    position: absolute;
    top: 2px;
    right: 16px;
    border-radius: 5px;
    padding: 2px 5px;
}
.intercom:hover {
    border: 5px solid #8B0000;
}
.el-material {
    border: 3px solid #007BFF;
    border-radius: 10px;
    height: 170px;
    padding: 5px;
}
.el-material .brand-type {
    background-color: #007BFF;
    color: white;
    position: absolute;
    top: 2px;
    right: 16px;
    border-radius: 5px;
    padding: 2px 5px;
}
.el-material:hover {
    border: 5px solid #007BFF;
}

.brand-logo {
    border-radius: 0px;
}

/* LED RASVETA */
.red {
    display: flex;
    width: 100%;
    border-bottom: 2px solid #007cc2;
}
.kolona-jedinica {
    width: 40%;
}
.kolona-mera {
    width: 12%;
}

/* ELECTRO MATERIAL PAGE */
.electro-table {
    font-size: 10px;
    font-weight: 500;
}
.electro-table h6 {
    font-size: 12px;
}
.white {
    background-color: #FFFFFF;
    height: auto;
    border-radius: 15px;
    padding: 5px 0;
}
.green {
    color: #FFFFFF;
    background-color: #85c226;
    height: auto;
    border-radius: 15px;
    padding: 5px 0;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; /* Ne prikazuje se dok korisnik ne skroluje */
    background-color: #007cc2;
    color: #fff;
    padding: 3px 12px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

#back-to-top:hover {
    background-color: #85c226;
}

@media only screen and (max-width: 991px) {
    .electro-table div {font-size: 10px !important;}
}

/* AUTOMATION PAGE */
.img-automation {
    max-height: 320px;
}

@media only screen and (max-width: 991px) {
    .img-automation {
        max-height: 140px;
    }
}

/* GALLERY PAGE */
.card img {
    height: 220px;
    object-fit: cover;
}

/* Gornji naslov */
.glightbox-container .gslide-title {
    display: none !important;
}

/* Donji opis */
.glightbox-container .gslide-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    max-width: 100%;
    padding: 14px 18px;
    font-size: 17px;
    line-height: 1.5;
    color: #fff;

    z-index: 20;
    pointer-events: auto;
}

/* Ukloni kompletan caption prostor ako nema sadržaja */
.glightbox-container .gdesc-inner {
    padding: 0 !important;
    background: #000000d9 !important;
    font-size: 17px;
}

/* Ako nema opisa – nema ni prostora */
.glightbox-container .gslide-desc:empty {
    display: none !important;
}

.glightbox-container .gslide-desc .custom-desc {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 12px 12px;
    display: inline-block;
    width: 100%;
}

.glightbox-container .gslide-desc-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* opis ide na dno */
    max-height: 30vh;
    overflow-y: auto;
    padding: 14px 18px;
}

.glightbox-container .gslide-desc {
    position: relative; /* više nije absolute */
    margin: 0;
    background: rgba(0,0,0,0.6);
    border-radius: 8px;
    color: #fff;
    line-height: 1.5;
    font-size: 18px;
}

@media (max-width: 768px) {
    .glightbox-container .gslide-desc {
        font-size: 14px;
        max-height: 35vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .glightbox-container .gdesc-inner {
        font-size: 12px;
    }
}

/* CONTACT PAGE */
.basic-info {
    background-color: white;
    border-radius: 15px;
}
.sub-text {
    margin-top: -10px;
}
label {display: none;}

.captcha-box {
    margin-bottom: 10px;
}
.captcha-box img {
    border: 2px solid #007cc2;
    border-radius: 0px;
    width: 30%;
}
.captcha-box input {
    width: 69%;
}

iframe {
    height: 78%;
}

@media only screen and (max-width: 991px) {
    .captcha-box img {width: 29%;}
    .captcha-box input {width: 69.5%;}
    iframe {height: 100%;}
}

/* PAGINATION */
.pagination .step-links a {
    text-decoration: none;
    padding: 2px 15px;
}
.pagination .step-links a:hover, .pagination .step-links .current {
    font-weight: 700;
}

@media only screen and (max-width: 991px) {
    .pagination .step-links a {
        font-size: 10px;
        padding: 2px 10px;
    }
}

/* CONTROL AKTUELNOSTI PAGE */

.news-list a {
    text-decoration: none;
    color: #007cc2;
    font-weight: 600;
}
.news-list a:hover {
    color: #85c226;
}

.carousel-fixed .carousel-inner {
    height: 360px;
}

.carousel-fixed .carousel-item {
    height: 360px;
}
.carousel-fixed .carousel-inner .carousel-item img {
    height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
    border-radius: 0px;
}

.carousel-fixed .carousel-control-prev .carousel-control-prev-icon,
.carousel-fixed .carousel-control-next .carousel-control-next-icon {
    width: 44px;
    height: 44px;
}

/* CONTROL GALLERY PAGE */

.form-control {
    height: 30px;
    font-size: 12px;
    padding: 2px;
    margin-bottom: 10px;
    border: 2px solid #007cc2;
    border-radius: 0;
}