/********** Template CSS **********/
:root {
    --primary: #0463FA;
    --light: #EFF5FF;
    --dark: #1B2C51;
}

.fw-medium {
    font-weight: 400 !important;
}

.fw-bold {
    font-weight: 600 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-weight: 400;
    transition: .5s;
    font-size: 1rem;
    padding: 12px;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 23px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar-primary-text-colour {
    color: rgb(255, 255, 255) !important;
    transition: color 0.3s ease-in-out;
    /* Smooth transition */
}

.navbar-primary-text-colour:hover {
    color: rgb(255 255 255 / 72%) !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #D2AC67 !important;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.logotype {
    height: 58px;
}

.service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensures all cards have equal height */
}

.service-item p {
    flex-grow: 1;
    /* Pushes the button down by taking available space */
}

.service-item a {
    margin-top: auto;
    /* Moves the button to the bottom */
}

@media (max-width: 991px) {
    .navbar {
        background-color: white !important;
    }

    .navbar-primary-text-colour {
        color: #1b2c51 !important;
    }
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 68px;
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 400;
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Header ***/
.header-carousel .owl-carousel-text {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 3rem;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.header-carousel .owl-nav {
    position: absolute;
    width: 260px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: #1A79FF;
    border: 1px solid #1A79FF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: #2D56BD;
    background-size: cover;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

/*** Quick Link Item ***/
.quick-link-item {
    transition: .5s;
}

.quick-link-item:hover {
    margin-top: -10px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

/*** Service ***/
.service-item {
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 40px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 200px;
}

/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Blog ***/
/* Image Wrapper */
.image-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.image-wrapper img {
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

/* Hover Effect - Smooth Zoom & Lift */
.blog-card {
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.blog-card:hover .image-wrapper img {
    transform: scale(1.1);
}

.blog-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.blog-card h5 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ensure paragraph always shows 4 lines */
.text-content {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 5.4em;
    line-height: 1.35em;
}

/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #FFFFFF;
    transition: .3s;
    font-size: 18px;
}

.footer .btn.btn-social:hover {
    color: #040B18;
    ;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #040B18;
    font-size: 14px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer p {
    font-size: 14px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgb(242 244 247);
}

.footer .copyright a {
    color: #191a1a;
}

.footer .copyright a:hover {
    color: #034fc8;
}

.full-width-vector picture,
.full-width-vector img {
    display: block;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .full-width-vector img {
        content: url("img/vector-element-mobile.svg");
    }

    .header-carousel {
        display: none !important;
    }
}

.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    height: 658px;
}

/* Styling for card content */
.card i {
    font-size: 1.5rem;
    color: #3079ff;
}

.card ul {
    padding-left: 0;
}

.card ul li {
    border-bottom: 1px solid #F3F3F3;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-overflow: ellipsis;
}

.card ul li:last-child {
    border-bottom: none;
}

.custom-list {
    background-color: #FAFAFA;
    border-radius: 8px;
    border: 1px solid #F3F3F3;
}

.custom-list-item {
    list-style: none;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.custom-list-item:last-child {
    border-bottom: none;
}

.custom-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Hover effect */
.custom-list-item a:hover {
    background-color: #f6f6f6;
    color: #3079ff;
}

.item-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
}

.card .btn {
    font-size: 1rem;
    padding: 12px;
}

.custom-card {
    padding: 24px;
    /* 24px padding for the card */
}

/* Propisi section */
.section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.card-new-list {
    list-style: none;
    padding: 0;
    background-color: #FAFAFA;
    border-radius: 8px;
    border: 1px solid #F3F3F3;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 16px 16px;
    border-bottom: 1px solid #f3f3f3;
    transition: background-color 0.3s ease;
}

.list-item:hover {
    background-color: #f6f6f6;
}

.item-text {
    flex-grow: 1;
    font-size: 1em;
    white-space: nowrap;
    /* Keep the text on one line by default */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Adds "..." if the text overflows */
}

.external-link {
    display: inline-block;
    margin-left: 10px;
}

.link-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.list-item:hover .link-icon {
    transform: translateX(5px);
}

.list-item li:last-child {
    border-bottom: none;
}

.list-item:last-child {
    border-bottom: none;
}

/* Media Queries for smaller screens */
@media (max-width: 768px) {
    .item-text {
        white-space: normal;
        word-wrap: break-word;
    }

    /* Hide the label on smaller screens */
    .external-link .fs-6 {
        display: none;
        /* Hide label next to the icon on smaller screens */
    }
}

/* Contact Title */
.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Card Styles */
.contact-card {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-card__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.contact-card__info {
    flex: 1;
    text-align: left;
    /* Left-align text on all screen sizes */
}

.contact-card__logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card__logotype {
    height: 64px;
    /* Default size for mobile */
}

@media (min-width: 768px) {
    .contact-card__logotype {
        height: 158px;
    }
}

/* Accordion Image */
.accordion-image {
    border-radius: 8px;
    display: block;
    /* Ensures proper rendering */
    overflow: hidden;
    /* Prevents any overflow */
    width: 104px;
    /* Ensure correct dimensions */
    height: 40px;
    object-fit: fill;
    /* Ensures it fills the area properly */
}

/* Dopisi Page */
.blog-post-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid #F3F3F3;
    border-radius: 8px;
}

.card-dopisi {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 24px;
    border-bottom: 1px solid #F3F3F3;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
}

.card-dopisi:last-child {
    border-bottom: none;
}

.card-dopisi:hover {
    background-color: #F2F4F7;
}

.dopisi-content {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    flex: 1;
}

.dopisi-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: #191A1A;
}

.dopisi-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* This is the key: push span to the bottom */
.dopisi-content span {
    margin-top: auto;
    font-size: 15px;
}

.card-dopisi img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 24px;
    flex-shrink: 0;
    background-color: #ffffff;
    padding: 4px;
}

/* Hide image on mobile screens */
@media (max-width: 768px) {
    .card-dopisi img {
        display: none;
    }
}

.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.text-truncate-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    /* Required for text-truncate to work */
}

.text-truncate-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Blog post - clanak */
.blog-post-title {
    font-size: 3rem;
}

/* Gallery img */
.gallery-item .icon {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: 0.3s ease-in-out;
    text-decoration: none;
}

.gallery-item:hover .icon {
    opacity: 1;
}

/* Commenting */
.comments-list {
    margin: 20px 0;
}

.comment .fw-bold {
    font-size: 1.1rem;
}

.comment .text-muted {
    font-size: 0.9rem;
}

.comment .btn-sm {
    font-size: 0.8rem;
}

.comment .rounded-circle {
    border: 2px solid #007bff;
    /* Circle border around avatar */
}

.comment .dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    color: #000;
}

.comment .dropdown-menu {
    min-width: 120px;
}

.blog-post-title {
    font-size: 1.45rem;
}

/* Position the second-level submenu */
.dropdown-submenu {
    position: relative;
}

/* New class for second-level menu */
.dropdown-menu-sub {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1000;
    min-width: 15rem;
    background-color: white;
    padding-bottom: 0.5rem;
}

/* Show second-level menu only when hovering the parent item */
.dropdown-submenu:hover .dropdown-menu-sub {
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dropdown-menu-sub {
        display: none;
        /* Hide sub-menu initially */
        z-index: 1000;
        background-color: white;
        margin-top: 0.25rem;
        width: 100%;
        padding-bottom: 0.5rem;
    }

    /* Sub-menu items */
    .dropdown-menu-sub .dropdown-item {
        padding-left: 1.5rem;
        word-wrap: break-word;
        white-space: normal;
    }

    .dropdown-submenu:hover .dropdown-menu-sub {
        display: contents;
    }

    .dropdown-menu-sub {
        width: 100%;
        /* Full width for mobile */
        max-width: 100%;
        /* Avoid resizing issues */
    }
}

/* Fix nested dropdown scrolling on mobile */
@media (max-width: 991.98px) {
    .dropdown-menu-sub {
        max-height: 60vh;
        overflow-y: auto;
        position: relative;
        /* prevent clipping */
        padding: 0.5rem 0;
    }

    .dropdown-menu {
        overflow: visible;
    }

    .navbar-collapse {
        max-height: 90vh;
        overflow-y: auto;
    }
}

.promotion-sponzori {
    background-color: #ffffff;
    height: 60px;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.sponsor-links {
    display: flex;
    animation: scroll 60s linear infinite;
    /* Default duration */
    width: 100%;
    padding-left: 80px;
    /* Start the first item 80px from the left */
}

.sponsor-link {
    display: inline-block;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
}

.sponsor-link:hover {
    color: #1A79FF;
    /* Highlight color on hover */
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
        /* Start from off-screen to the right */
    }

    100% {
        transform: translateX(-100%);
        /* Move off-screen to the left */
    }
}

/* Adjust gap dynamically */
.promotion-sponzori .sponsor-links {
    gap: 25%;
    /* Proportional gap for default screen */
}

/* Desktop adjustments */
.promotion-sponzori .sponsor-links:hover {
    animation-play-state: paused;
    /* Pauses animation on hover for desktop */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .promotion-sponzori {
        height: 60px;
    }

    .sponsor-link {
        font-size: 14px;
        /* Adjust font size on mobile */
    }

    /* Adjust gap and animation speed for smaller screens */
    .promotion-sponzori .sponsor-links {
        gap: 16%;
        /* Smaller gap on mobile */
        animation: scroll 16s linear infinite;
        /* Faster animation for mobile */
    }

    /* Pause animation on hover for mobile */
    .sponsor-links:hover {
        animation-play-state: paused;
        /* Pauses animation on hover */
    }
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    /* Smanjena prozirnost */
}

.modal-content {
    border-radius: 15px;
    /* Zaobljeni kutovi modala */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Dodavanje sjene modalu */
}

.dropdown-item.selected {
    background-color: #f2f4f7 !important;
    /* Bootstrap danger */
    color: #0463fa !important;
}

.accordion-image {
    max-height: 55px;
    height: auto;
    width: auto;
}

.navbar {
    min-height: 130px;
    /* adjust as needed */
}

.navbar .navbar-brand img {
    height: 100px;
    /* your desired big logo height */
    margin-top: -20px;
    /* pull it upward so it doesn’t push the navbar */
}

