:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --terciary-color: rgba(25, 65, 144, 0.4);
    --primary-bg: #415a77;
    font-size: 16px;
}

@font-face {
    font-family: 'MerriweatherSans';
    src: url('../../assets/fonts/Merriweather_Sans/MerriweatherSans-VariableFont_wght.ttf');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Varela';
    src: url('../../assets/fonts/Varela/Varela-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 10vh;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Varela', Arial, sans-serif;
    font-size: 1.2rem;
    background-color: var(--secondary-color) !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'MerriweatherSans', Arial, Helvetica, sans-serif;
    font-style: italic;
    position: relative;
}

h1 {
    font-weight: 500 !important;
    font-size: 3rem !important;
    margin-bottom: 20px;
}

h2 {
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    padding: 20px;
    margin: 10px;
}

h3 {
    font-weight: 600 !important;
    font-size: 1.3rem !important;
    margin-bottom: 18px;
}

a {
    font-family: 'MerriweatherSans', Arial, Helvetica, sans-serif;
    font-weight: 800;
    text-decoration: none !important;
    color: var(--primary-color) !important;
}

#o_nas, #kontakt, #partnerji, #galerija, #ponudba {
    position: relative;
    z-index: 2;
}

#o_nas h1, #kontakt h1, #partnerji h1, #galerija h1, #ponudba h1 {
    position: relative;
    z-index: 1;
}

#o_nas h1::after, #kontakt h1::after, #partnerji h1::after, #galerija h1::after, #ponudba h1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15px;
    height: 0.6rem;
    background-color: var(--terciary-color);
    z-index: -1;
    bottom: 0.4rem;
    width: 110%;
}

#o_nas h1::after {
    bottom: 1.4rem;
    width:90%;
}

#JezikiDiv {
    display: flex;
    position: absolute;
    top:15px;
    right: 15px;
    gap: 15px;
}

.language-buttons {
    position: absolute;
    right: 10px;
    top: 45%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.language-buttons .JezikiBtn img {
    width: 30px;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.language-buttons .JezikiBtn:hover img {
    transform: scale(1.2);
}

.navbar-sticky .language-buttons {
    display: flex;
}
#logo-div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#logo {
    width: auto; 
    height: auto;
    margin-top: 30px;
}

#logo img {
    width: 90%; 
    height: 90%; 
    object-fit: contain; 
    margin-bottom: 10px;
}

#logo1 {
    font-family: 'MerriweatherSans', Arial, Helvetica, sans-serif;
    font-weight: 900;
    width: 100%;
    height: 1rem;
    text-align: center;
    margin-bottom: 15px;
}

#logo2 {
    font-family: 'MerriweatherSans', Arial, Helvetica, sans-serif;
    font-weight: 500;
    width: 100%;
    height: 1rem;
    margin-bottom: 10px;
    text-align: center;
}

#HomeBtn {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-bg) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    font-size: 2.25rem !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

#HomeBtn:hover {
    background-color: var(--primary-bg);
    color: var(--secondary-color) !important;
    transform: scale(1.1);
}

.nav-link {
    color: var(--primary-color);
}

.nav-text {
    display: block;
}

#divnavbar {
    position: relative;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10vh;
    position: relative;
    padding-left: 60px;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.navbar-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    background-color: var(--primary-bg) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.5s ease-in-out;
    z-index: 10001 !important;
    width: 100%;
    height: 10vh;
    pointer-events: all;
}

.logo-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.logo-button .nav-link {
    padding: 8px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.logo-button .nav-link::after {
    display: none;
}

.logo-button .nav-link:hover {
    transform: scale(1.1);
}

.logo-button .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.logo-button .nav-link:hover::before {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.logo-button img {
    transition: transform 0.3s ease;
}

.logo-button:hover img {
    transform: scale(1.1);
}

.navbar-sticky .nav-link{
    margin: 0 10px !important;
    color: var(--secondary-color) !important;

}

.container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-item {
    padding: 5px;
    margin: 2px;
    transition: all 0.3s ease;
}

.navbar-sticky .nav-item {
    padding: 3px;
}

.navbar-visible {
    visibility: visible;
}

.nav-link {
    position: relative;
    font-size: 1.3rem !important;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%; 
    width: 0; 
    height: 2px; 
    border-radius: 15px;
    background-color: var(--primary-color);
    transition: 
        width 0.2s ease-in-out, 
        left 0.2s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.navbar-sticky .nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%; 
    width: 0; 
    height: 2px; 
    border-radius: 15px;
    background-color: var(--secondary-color);
    transition: 
        width 0.2s ease-in-out, 
        left 0.2s ease-in-out;
}

.navbar-sticky .nav-link:hover::after {
    width: 100%;
    left: 0;
}

#logo {
    position: relative;
    display: flex; 
    justify-content: center; 
    align-items: center;
    width: auto;
    z-index: 2;
}

#logo img{
    width: auto;
    height: auto;
}

.visibility {
    visibility: visible;
}

.nav {
    position: relative;
    z-index: 9999 !important;
}

.nav-item {
    padding:5px;
    margin:2px;
}

.menu-toggle {
    visibility: hidden;
}

#slika1 {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 80vh;
    background-image: url('../../assets/img/okna1.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

#slika1::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
    pointer-events: none;

}

#novice {
    position: absolute;
    bottom: 5px;
}

.slider-wrapper, .slider-wrapperNovice {
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.slider-wrapperNovice {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    gap:40px;
    padding: 0;
}

.slideNovice {
    flex: 0 0 calc(100% - 80px);
    height: 200px;
    width: 500px;
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    background-size: cover;
    background-position: center;
    color: var(--secondary-color);
    font-family: 'MerriweatherSans', Arial, Helvetica, sans-serif;
}

#novica1 {
    background-image: url('../../assets/img/SplentaStran.jpg');
}

#novica2 {
    background-image: url('../../assets/img/InothermNovica.webp');
}

#novica3 {
    background-image: url('../../assets/img/hormannNovica.jpg');
}

.noviceOpis {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 42%;
    padding: 13px;
    background-color: var(--primary-bg);
    border-radius:10px;
    padding: 15px;
}

.Popust {
    position: absolute;
    right: 20px;
    top: -80px;
    width: 120px;
    height: 120px;
    background-image: url('../../assets/img/ZnačkaPopust.svg');
    transform: rotate(25deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-family: 'MerriweatherSans', Arial, Helvetica, sans-serif;
    font-weight: 800;
}

.Popust::before {
    content: '';
    color: var(--secondary-color);
    font-size: 1.75rem;
    font-weight: 800;
}

.noviceOpis h4 {
    font-size: 1.3rem !important;
    font-weight: 800;
}

.noviceOpis span {
    font-size: 1.05rem !important;
    font-weight: 200;
}

.content {
    flex: 1 0 auto;
    flex-grow: 0;
}

#o_nas {
    padding: 2rem;
    position: relative;
}

#o_nas h1{
    padding: 15px;
    margin-left: 10px;
    width: fit-content;
}

#o_nasContent {
    font-size: 1.25rem;
    padding:20px;
    margin: 10px;
    font-weight: 500 !important;
}

.content-text {
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.content-text.expanded {
    max-height: 1000px;
}

.read-more-btn {
    position: absolute;
    right: 80px;
    bottom: 40px;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.read-more-btn .fa {
    font-size: 1.5rem;
    transition: transform 0.6s ease;
}

.read-more-btn.expanded .fa {
    transform: rotate(180deg);
}

.read-more-btn:hover {
    transform: translateY(-6px);
    color: var(--secondary-color);
    background-color: var(--primary-bg);

}

#partnerji {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0.5rem 1rem 0 0;
    margin-bottom: 80px;
}

#h1partnerji{
    position: relative;
    width:100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

#partnerji h1 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.slider-container, .slider-containerNovice {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 2px auto;
    overflow: hidden;
    padding: 20px;
    border-radius:25px;
}

#boxpartnerji,#boxnovice {
    position: relative;
    display: flex;
    left: 0;
    will-change: transform;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

#boxpartnerji >*, #boxnovice >* {
    position: relative;
    z-index: 2;
}

.slide, .slideNovice {
    flex: 0 0 300px;
    margin: 0 10px;
    height: 350px;
    border-radius: 8px;
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    will-change: transform;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap:40px;
    transition: transform 0.25s ease;
}

.slide{
    justify-content: center;
    width: 300px;
} 

.slide:hover, .slideNovice:hover {
    transform: scale(1.05);
}

.slide img {
    width: 240px;
    height: 120px;
    object-fit: contain;
    border-radius: 3px;
    margin-bottom: -50px;
}

.slide span,.slideNovice span {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 10px,
}

.slide span {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0 10px;
    flex: 1;
    display: flex;
    align-items: center;
}

#BeroksLogoDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 120px;
    margin-bottom: -65px;
}

#BeroksLogoDiv img {
    width: 60px;
    height: auto;
    margin-bottom: 0; /* Override margin for nested image */
}

#BeroksLogoDivOpis {
    display: flex;
    flex-direction: column;
    gap:5px;
}

#BeroksLogoDivOpis div {
    text-align: left;
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 5px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 100;
    pointer-events: auto;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.7);
}

.slider-btn i {
    font-size: 1.8rem;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

#Hisa {
    padding: 1rem 3rem;
    width: 100%;
    height: 65vh;
    margin-top: 3rem;
    margin-bottom: 150px;
    display: flex;
    gap: 2%;
}

#HisaLevo {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#slikePartnerjev {
    height: 25%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 1rem;
    padding: 10px;
    margin-bottom: 2rem;
    border: 3px solid var(--terciary-color);
    border-radius: 15px !important;
    position:relative;
    top:0;
}

#slikePartnerjev div{
    width: 33%;
    display: flex;
    justify-content: center;
    align-items:center;
}

#slikePartnerjev img {
    width: 80%;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: pointer;
}

#HormannSVG img{
    width:90% !important;
    width:auto;
    margin-left: 0;
}

#slikePartnerjev img:hover {
    transform: scale(1.1);
}

#HisaGrafika {
    height: 50%;
    width: 100%;
}

#HisaDesno {
    width: 38%;
    height: 100%;
}

/* Container for product details */
#HisaIzdelki {
    height: 120%;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--terciary-color);
    border-radius: 15px;
    padding: 1rem;
    overflow: hidden;
}

/* Product summary wrapper */
#PovzetekIzdelkov {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Logo section */
.IzdelekLogo {
    width: 100%;
    min-height: 60px; /* Reduced from previous value */
    display: flex;
    align-items: center; /* Center logo vertically */
    margin-bottom: 0 !important; /* Remove margin */
}

.IzdelekLogo img {
    width: 50%; /* Fixed width */
    object-fit: contain;
}

/* Description section */
.IzdelekOpis {
    width: 100%;
    flex: 0 0 auto;
}

.IzdelekOpis p {
    font-size: 1rem;
}

/* Image grid section */
.IzdelekSlike {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    max-height: calc(100% - 170px); /* Subtract logo and description height */
}

/* Grid image containers */
.gridImage {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

/* Product images */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.transition-panel {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

#arcont-images {
    grid-template-areas: 
        'slika1 slika2'
        'slika3 slika4'
    ;
    height: 400px;
}

#horman-images {
    grid-template-areas: 
        'slika1 slika2'
        'slika3 slika4'
    ;
    height: 400px;
}

#inotherm-images {
    grid-template-areas: 
        'slika1 slika2'
        'slika3 slika4'
    ;
    height: 400px;
}

.gridImage {
    width:100%;
    height: 100%;
    overflow: hidden;
    transition: all 0.2s ease;
}

.product-image {
    width: 100%;
    height:100%;
    object-fit: cover;
    border-radius: 10px;
}

.gridImage:hover {
    transform: scale(1.05);
}

#galerija {
    width:100%;
    text-align: center;
    position: relative;
    padding: 2rem 3rem;
}

#galerija h1{
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem; 
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas: 
        'one one two three three'
        'one one four four five'
        'six seven seven eight five';
    gap: 10px;
    padding: 15px;
    max-width: auto;
    max-height: 750px;
    margin: 0 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

#img1 { grid-area: one; }
#img2 { grid-area: two; }
#img3 { grid-area: three; }
#img4 { grid-area: four; }
#img5 { grid-area: five; }
#img6 { grid-area: six; }
#img7 { grid-area: seven; }
#img8 { grid-area: eight; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

#Socialna {
    margin-top: 1.5rem;
    margin-bottom: 5.5rem;
}

#socialna-div {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

#socialna-divbtn {
    background-color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

#socialna-divbtn:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

#socialna-divbtn .fa {
    font-size: 3rem;
    color: var(--secondary-color) !important;
    transition: color 0.3s ease;
}

#socialna-divbtn:hover .fa {
    color: var(--primary-bg) !important;
}



#ponudba {
    width: 100%;
    text-align: center;
    position: relative;
    padding: 2rem 0;
    height: 100vh;
    margin-bottom: 4rem;
}

#ponudba h1{
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

#ponudba-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: auto;
    padding: 2rem 1rem;
    background-image: url('../../assets/img/ponudba-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    display:flex;
    justify-content: center;
    flex-wrap: wrap;
    gap:20px 20px;
}

#ponudba-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.productCard {
    position: relative;
    height: 40vh;
    width: 26vw;
    border-radius: 15px;
    perspective: 1000px;
}

.productCard a {
    text-decoration: none;
    color: var(--secondary-color) !important;
    font-weight: 400;
}

#productLink {
    display:inline-block;
}

#productLink:hover {
    transition: all 0.3;
    transform: scale(1.1);
}

.productInner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.productCard:hover .productInner {
    transform: rotateY(180deg);
}

.productFront, .productBack {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
}

.productFront {
    background-color: var(--secondary-color);
    display: flex;
    align-items: flex-end;
}

.productBack {
    background-color: var(--primary-bg);
    color: var(--secondary-color);
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.productBack h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.productBack ul {
    list-style: none;
    padding: 0;
}

.productBack li {
    margin: 4px 0;
}

.productH3 {
    position: absolute;
    left:0;
    bottom:35px;
    width: 60%;
    background-color: var(--primary-bg);
    color: var(--secondary-color);
    border-radius: 0 15px 15px 0;
    padding: 17px;
    padding-bottom:1px;
}

.productH3 h3 {
    font-weight: 400 !important;
    font-size: 1.2rem !important;
}

.productFront {
    background-size: cover;
    background-position: center;
}

#Svetovanje-Front {
    background-image: url('../../assets/img/Svetovanje.jpg');
}

#Izmere-Front {
    background-image: url('../../assets/img/Izmere.jpg');
}

#Montaža-Front {
    background-image: url('../../assets/img/Montaža.jpg');
}

#Servis-Front {
    background-image: url('../../assets/img/Servis.jpg');
}

#Ostalo-Front {
    background-image: url('../../assets/img/PonudbaKontakt.jpg');
}

#kontakt {
    width:100%;
    text-align: center;
    position: relative;
    padding: 2rem;
}

#kontakt h1{
    position: relative;
    display: inline-block;
    margin-bottom: 1rem; 
}

.kontakt-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    width: auto;
    padding: 2rem;
    gap: 1rem;
}

#kontakt-delovni-cas {
    width: 38%;
    flex-shrink: 0;
    border: 0.5px solid var(--primary-bg);
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

#kontakt-delovni-cas table {
    width: 100%;
    height: auto;
    border-collapse: collapse;
    
}

#kontakt-delovni-cas th {
    background-color: var(--primary-bg);
    color: var(--secondary-color);
    padding: 0.75rem 0;
    font-family: 'MerriweatherSans', Arial, Helvetica, sans-serif;
}

#kontakt-delovni-cas th h3 {
    margin: 0;
    font-size: 1.3rem !important;
    color: var(--secondary-color);
}

#kontakt-delovni-cas td {
    padding: 1rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--terciary-color);
    white-space: nowrap;
}

#kontakt-delovni-cas tr:last-child td {
    border-bottom: none;
}

#kontakt-delovni-cas td p {
    margin: 0;
    font-size: 1.15rem;
    font-family: 'Varela', Arial, sans-serif;
}

#kontakt-delovni-cas td:last-child {
    text-align: right;
}

#kontakt-delovni-cas tr:hover {
    background-color: rgba(65, 90, 119, 0.05);
}

#kontakt-delovni-cas tr:last-child {
    border-bottom: none;
}



.kontakt-slika {
    width: 60%;
    height: 31.5rem; /* Adjust as needed */
    border: 1.5px solid var(--primary-bg);
    border-radius: 15px;
    overflow: hidden;
}

.kontakt-slika img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.kontakt-slika:hover img {
    transform: scale(1.05);
}

.kontakt-data {
    width: 100%;
    height: 25%;
    border: 0.5px solid var(--primary-bg);
    border-radius: 15px;
    overflow: hidden;
}

.kontakt-header {
    background-color: var(--primary-bg);
    color: var(--secondary-color);
    padding: 1rem 0;
    text-align: center;
}

.kontakt-header h3 {
    margin: 0;
    font-size: 1.3rem !important;
    color: var(--secondary-color);
    font-family: 'MerriweatherSans', Arial, Helvetica, sans-serif;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.kontakt-column {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    padding: 0.5rem 0.8rem;
}

.kontakt-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem;
    transition: background-color 0.3s ease;
}

.kontakt-column:not(:last-child):hover {
    background-color: rgba(65, 90, 119, 0.05);
}

.kontakt-item i {
    width: 20px;
    text-align: center;
}

.kontakt-item span,
.kontakt-item .i-link {
    font-family: 'Varela', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--primary-color);
    text-decoration: none;
}

#direktKontakt {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
    gap: 5px;
}

#direktKontakt i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    margin-left: auto;
    padding-right: 20px;
}

#direktKontakt i:hover {
    transform:translateY(-5px);

}

#Socialna {
    height: 30vh;
    width: 100%;
    margin-bottom: 80px;
}

.konfig-txt {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
    margin-bottom: 1rem;
}

.konfig-txt i {
    display:inline-block;
}

.konfig-txt_H2 {
    width:100%;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    text-align: center;
    margin-bottom: 25px;
}

.konfig-txt h2 {
    font-size: 3rem !important;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-bg);
}

.konfig-txt h3 {
    font-size: 2rem ;
    text-align: center;
}


.konfig-txt_H3 {
    width:100%;
    display: flex;
    justify-content: center;
    gap:10px;
}


#poslji-div, #socialna-div {
    display:flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

#poslji-div {
    margin-bottom: 80px;
}

#poslji-divbtn {
    border: none;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    text-align: center;
    transition: ease 0.4s;
    transform: scale(1);
    cursor: pointer;
}

#poslji-divbtn .fa {
    line-height: 1;  /* Ensure icon is vertically centered */
}

#poslji-divbtn:hover {
    transition: ease 0.3s;
    transform: scale(1.1);
    background-color: var(--primary-bg);
    color: white !important;
}

.scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.scroll-top-btn:hover {
    transform: translateY(-5px) !important;
    background-color: var(--primary-bg);
    color: var(--secondary-color);
}

.scroll-top-btn .fa {
    font-size: 1.5rem;
}

.footer {
    flex-shrink: 0;
    bottom: 0;
    width: 100%;
    margin-top:10px;
    background-color: var(--primary-bg);
}

#footcontent{
    display: flex;
    padding: 10px 20px;
    font-size:0.8rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    height: 12vh;
    gap:20px;
}

.h3.mt-2 {
    margin-bottom: 0; 
    padding-bottom: 0; 
}

.fspan{
    display: flex;
    width: 30%;
    height: 100%;
    padding: 0 10px;
    color:var(--secondary-color);
    position: relative;
    justify-content: center;
}

.fspan:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 2px;
    background-color: var(--secondary-color);
    opacity: 0.5;
}

#infoSpan {
    display:flex;
    flex-direction: column;
}

.fspanspan {
    display: flex;
}

#info-links {
    gap:8px;
    padding-top:15px;
}

#info-links a {
    color: var(--secondary-color) !important;
    text-decoration: none;
    font-weight: 400;
}

#kontaktSpan {
    display:flex;
    flex-direction: column;
    gap:0;
}

#kontakt-links {
    margin-top: -10px;
    padding-top: 25px;
    display: flex;
    flex-wrap: no-wrap;
    align-items: end;
    gap:6px;
}

#kontakt-links a{
    color:var(--secondary-color) !important;
    text-decoration: none;
    font-weight: 400;
    text-emphasis: none;
}

#slediSpan {
    display:flex;
    flex-direction: column;
}

#social-links {
    gap: 5px;
    margin-top:10px;
}

#footcontent .fa.fa-instagram, #footcontent .fa.fa-facebook-official {
    font-size: 1.8rem;
    color: var(--secondary-color) !important;
    margin-right:10px;
}

#footcopy {
    color: var(--secondary-color);
    text-align: center;
    margin-top: 20px;
    padding: 5px;  
}

#cpyright {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 10px;
}

#PravneInfo {
    margin-bottom: 1.25rem;
}

#PravneInfo a{
    color: var(--secondary-color) !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
    text-decoration: none;
}

#author {
    text-align:right;
}

#author a{
    color: var(--secondary-color) !important;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--primary-bg);
    color: var(--secondary-color);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.modal h3 {
    margin: 3rem 0 1.5rem 0;
}


.modal a {
    color: var(--secondary-color) !important;
    text-decoration: underline !important;
}

.modal-body {
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-language-buttons {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-bg);
}

.lang-btn.active {
    background-color: var(--secondary-color);
    color: var(--primary-bg);
}