/* dostopnost */

 .main-desktop-nav .nav-link {
        font-weight: 500;
        padding: 0.75rem 1rem;
    }

    /* Styling for the main dropdown panel */
/*     .main-desktop-nav .dropdown-menu {
        border-radius: 0.5rem;
        border: 1px solid #dee2e6;
        -webkit-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
                box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
        padding: 0.5rem 0;
        margin-top: 0.5rem;

        min-width: 240px;
      
    }
 */
 

    /* Styling for the links inside the dropdown */
    .main-desktop-nav .dropdown-item {
        font-weight: 500;
        padding: 0.6rem 1.25rem;
    }

    .main-desktop-nav .dropdown-item:active {
        background-color: #3F5363;
        /* Bootstrap primary color */
    }

    /* --- Fly-out Submenu Logic --- */
    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu .dropdown-menu {
        top: -0.5rem;
        /* Aligns the submenu with its parent */
        left: 100%;
        margin-left: 0.1rem;
        display: none;
        /* Hidden by default */
    }

    /* Show the fly-out menu on hover */
    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

    /* Adds the chevron icon to indicate a submenu */
    .dropdown-submenu>.dropdown-item.dropdown-toggle::after {
        content: '\f054';
        /* Font Awesome chevron-right */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        border: none;
        vertical-align: middle;
        margin-left: .5rem;
    }




    .dropdown-submenu .dropdown-menu2 {
        top: -0.5rem;
        /* Aligns the submenu with its parent */
        left: 0;
        margin-left: 0.1rem;
        display: none;
        /* Hidden by default */
    }


     .dropdown-submenu2:hover>.dropdown-menu {
        display: block;
    }


/* --- Desktop hover dropdowns --- */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }

  /* Prevent the menu from closing when hovering sub-items */
  .dropdown-menu.show {
    display: block;
  }

  /* Show nested submenus on hover */
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
    left: 100%;
    top: -0.5rem;
    margin-top: -1px;
  }

  
}







    .slika-logo{
    width: 150px;
}

 .cursor{
    cursor: pointer;
}

.sticky-nav{
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1020;
    -webkit-box-shadow: 3px 3px 6px #00000029;
            box-shadow: 3px 3px 6px #00000029;
}

.moja-komunala{
    background-color: white;
    color:#3F5363!important;
    border-radius: 21px;
    font-weight: 700;
    border: 1px solid white;
    height: 100%;
    padding: 4px 20px;
    font-size: 0.7em;
    text-decoration: none;
    -webkit-transition: .3s;
    transition: .3s;
}

.moja-komunala:hover{
    background-color: #3F5363;
    color: white!important;
    border: 1px solid white;
}

.osmrtnica{
    background-color:white;
    color:black!important;
    border-radius: 21px;
    border: 1px solid white;
    font-weight: 700;
    height: 100%;
    text-transform: uppercase;
    padding: 4px 20px;
    font-size: 0.7em;
    text-decoration: none;
    -webkit-transition: .3s;
    transition: .3s;
}

.osmrtnica:hover{
    background-color: black;
    color: white!important;
    border: 1px solid #3F5363;
}




.dostopnost-position{
    position: absolute;
    top: 50%;
    color: white;
    right: 10px;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    -webkit-transition: .3s;
    transition: .3s;
}

.main-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px; 
    background-color: #000; 
    -webkit-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out; 
}

.main-nav-item:hover::before {
    width: 100%; 
}


.sticky-nav .nav-link{
    padding-right: 0!important;
    padding-left: 0!important;
}

/* .sticky-nav .active{
     border-bottom: 1px solid #000;
} */


.dostopnost-position:hover{
    scale: 1.05;
}

.hamburger-main {
    margin: 0 auto;
    width: 30px;
    height: 30px;
    position: relative;
    /* position: absolute;
    bottom: 5px;
    right: 5px; */
}

.hamburger-main .bar {
    padding: 0;
    width: 30px;
    height: 4px;
    background-color: rgb(0, 0, 0);
    display: block;
    border-radius: 4px;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    position: absolute; 
}

.bar1 {
    top: 0;
}

.bar2,
.bar3 {
    top: 13.5px;
}

.bar3 {
    right: 0;
}

.bar4 {
    bottom: 0;
}

.hamburger-main3 .bar1 {
    -webkit-transform-origin: 5%;
            transform-origin: 5%;
}

.hamburger-main3 .bar4 {
    -webkit-transform-origin: 5%;
            transform-origin: 5%;
}

.checkbox2:checked + label > .hamburger-main3 > .bar1{
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    height: 3px;
    width: 42px;
}

.checkbox2:checked + label > .hamburger-main3 > .bar3{
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    height: 3px;
    background-color: transparent;
}

.checkbox2:checked + label > .hamburger-main3 > .bar2{
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
    height: 3px;
    background-color: transparent;
}

.checkbox2:checked + label > .hamburger-main3 > .bar4{
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
    height: 3px;
    width: 42px;
}

.upper-header-link .nav-link{
    text-transform: uppercase;
    color: white!important;
    font-size: 0.7em;
}


.rounded-pill a,
.moja-komunala-mob{
    font-size: 10px;
} 


 /* .mobile-header {
        padding: 0.75rem 1rem;
        background-color: #fff;
        -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid #dee2e6;
    }

    .mobile-header .navbar-brand img {
        max-height: 40px;
    }

    .mobile-header .btn-menu {
        font-weight: 500;
    }

  
    .main-offcanvas .offcanvas-header {
        border-bottom: 1px solid #dee2e6;
    }

    .main-offcanvas .main-nav .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
        color: #212529;
        padding: 0.75rem 0;
    }

    .main-offcanvas .main-nav .nav-link:hover {
        color: #0d6efd;
      
    }


    .main-offcanvas .quick-links .nav-link {
        color: #6c757d;
        padding: 0.5rem 0;
    }

    .main-offcanvas .quick-links .nav-link:hover {
        color: #212529;
    }

    .main-offcanvas .accordion-body {
    padding: 0;
}


.main-offcanvas .submenu-list .list-group-item {
    border: none; 
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #495057;
}
.main-offcanvas .submenu-list .list-group-item:hover {
    background-color: #f8f9fa; 
    color: #0d6efd;
}


.quick-links-grid .list-group-item {
    padding: 0.75rem;
    font-weight: 500;
    background-color:#fafafa;
    color: #495057;
    border: none;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.quick-links-grid .list-group-item:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.action-area {
    background-color: #f8f9fa; 
    border-radius: 0.5rem;
    padding: 1rem;
}

.accordion-button {
  background-color: #f5f5f5 !important;
  color: #000;
  border: none;
  border-radius: 0.5rem;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
} */

.mobile-header {
    padding: 0.75rem 1rem;
    background-color: #fff;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 1px solid #dee2e6;
}
.mobile-header .navbar-brand img {
    max-height: 40px;
}
.mobile-header .btn-menu {
    font-weight: 500;
}


.main-offcanvas{
    background: linear-gradient(2deg, rgba(0, 158, 208, 1) 0%, rgb(139 139 139) 100%);
}
.accordion-item{
    background-color: transparent!important;
}
.main-offcanvas .offcanvas-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}
.main-offcanvas .offcanvas-body {
    padding: 1rem 1.5rem;
}

/* 3. Main Navigation (Accordion) */
.mobile-nav-accordion .accordion-item {
    border: none;
}
.mobile-nav-accordion .accordion-button {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    padding: 1rem 0;
    background-color: transparent!important;
    -webkit-box-shadow: none;
            box-shadow: none;
    border-bottom: 1px solid #e9ecef;
}
.mobile-nav-accordion .accordion-button:not(.collapsed) {
    color: black; /* Active color */
    background-color: transparent;
}
.mobile-nav-accordion .accordion-button:focus {
    -webkit-box-shadow: none;
            box-shadow: none;
}
/* Custom rotating chevron */
.mobile-nav-accordion .accordion-button::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
    -webkit-transition: -webkit-transform 0.2s ease-in-out;
    transition: -webkit-transform 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
    background-image: none; /* Remove default Bootstrap icon */
}
.mobile-nav-accordion .accordion-button:not(.collapsed)::after {
    -webkit-transform: rotate(-180deg);
            transform: rotate(-180deg);
}
/* Submenu links inside the accordion */
.mobile-nav-accordion .accordion-body {
    padding: 0.5rem 0 1rem 1.5rem; /* Indent sub-items */
    border-bottom: 1px solid #e9ecef;
}
.mobile-nav-accordion .submenu-link {
    display: block;
    padding: 0.5rem 0;
    color: white;
    text-decoration: none;
}
.mobile-nav-accordion .submenu-link:hover {
    color: black;
}

/* 4. Simple Links (Ceste, Trznica, etc.) */
.mobile-nav-simple .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

/* 5. Quick Links ("Hitre Povezave") */
.quick-links-title {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.quick-links-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 0.75rem;
}
.quick-link-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 99px; /* Pill shape */
    text-decoration: none;
    font-weight: 500;
    -webkit-transition: background-color 0.2s ease, color 0.2s ease;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.quick-link-chip:hover {
    background-color: black;
    color: #fff;
}

/* 6. Bottom Action Area */
.mobile-action-area {
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 2rem;
}
.mobile-action-area .btn-accessibility {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: 100%;
    text-align: left;
    margin-bottom: 0.75rem;
}

.inner-accordion .accordion-button {
    font-size: 1rem; /* Slightly smaller than the main button */
    font-weight: 400;
    color: white;
    padding: 0;
    border-bottom: none;
}

.inner-accordion .accordion-button:not(.collapsed) {
    background-color: #e9ecef; /* Light background when open */
    color: black;
}

/* Style for the innermost submenu links */
.inner-accordion .accordion-body {
    padding-left: 1.2rem; /* Extra indent for the final level of links */
    
}

.inner-accordion .submenu-link-inner {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
}
.inner-accordion .submenu-link-inner:hover {
    color: black;
}

@media only screen and (max-width: 980px){
    .slika-logo{
        width: 100px;
    }
}