*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --pozadina: #ffffff;
    --termin-fon: #3167d9;
    --font: #40331d;
}
body{
    background-color: var(--pozadina);
    overflow-x: hidden;   /* Prevents rightward overflow */
    max-width: 100vw;     /* Limits the body to the max viewport width */
}
.navbar li{
    list-style: none;
}
.ul-links a{
    color: var(--font);
    font-size: 1.5rem;
    text-decoration: none;
}
.ul-links a:hover{
 color: var(--termin-fon);
}

/* HEADER */
header{
    position: fixed;
    padding: 0 2rem;
    width: 100%;
    background-color: var(--pozadina);
    z-index: 1000;
}
.navbar{
    width: 100%;
    height: 80px;
    max-width: 1700px;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}
.navbar .ul-links{
    display: flex;
    gap: 3rem;
}
.navbar .toggle_btn{
    color: var(--font);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}
.navbar .logo{
    display: flex;
}
.navbar .logo a{
    text-decoration: none;
    color: var(--font);
    font-size: 2rem;
}
.fon-div{
    display: grid;
    place-items: center;
 }
.fon-termin{
    display: grid;
    place-items: center;
}
.fon-termin a{
    font-size: 1.5rem;
    text-decoration: none;
}
.fon-termin{
    display: flex;
}
.termin{
    background-color: var(--termin-fon);
    border-radius: 100px;
    padding: 5px 15px;
    margin-left: 30px;
    text-decoration: none;
    color: var(--pozadina);
    transition: scale 0.2 ease;
}
.termin:hover{
    scale: 1.05;
}
.termin:active{
    scale: 0.95;
}
.fon:hover{
    scale: 1.05;
}
.fon-div{
    display: flex;
    border: solid 2px var(--termin-fon);
    border-radius: 100px;
    padding: 5px 15px;
    color: var(--termin-fon);
}
.fon-div a{
    color: var(--termin-fon);
    font-size: 1.3rem;
}
#icon-fon{
    margin-right: 10px;
}


/* DROPDOWN MENI */
.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 300px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
}
.dropdown_menu li{
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown_menu .termin{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-left: 0px;
    font-size: 1.5rem;
}
.dropdown_menu .fon-div{
    width: 100%;
    display: flex;
    justify-content: center;
}
.dropdown_menu.open{
     height: 335px;
}
.dropdown_menu a{
    text-decoration: none;
}

/* RESPONSIVE MENI */
@media(max-width: 992px){
    .navbar .ul-links,
    .navbar .termin,
    .navbar .fon-div{
        display: none;
    }
    .navbar .toggle_btn{
        display: block;
    }
    .dropdown_menu{
        display: block;
    }
}
@media(max-width: 576px){
    .dropdown_menu{
        left: 2rem;
        width: unset;
    }
}





/* LANDING PAGE */
.landing-page{
    height: 100vh;
}
.levo-lan{
    max-width: 600px;  /* This line */
    margin-top: 100px;
    display: flex;
    text-align: center;
    flex-direction: column;
}
.fon-div-lan{
    display: flex;
    text-align: center;
    justify-content: center;
    font-size: 1.5rem;
    border: solid 2px var(--termin-fon);
    border-radius: 100px;
    padding: 5px 15px;
    color: var(--termin-fon);
    margin-bottom: 10px;
}
.fon-div-lan a{
    color: var(--termin-fon);
    text-decoration: none;
}
.termin-lan:hover{
    scale: 1.05;
}
.termin-lan:active{
    scale: 0.95;
}
.fon-lan:hover{
    scale: 1.05;
}
.dentist{
    max-width: 500px;
    margin-bottom: 20px;
}
.termin-lan{
    display: flex;
    text-align: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: var(--termin-fon);
    color: var(--pozadina);
    border-radius: 100px;
    padding: 5px 15px;
    text-decoration: none;
}
.iza-tanje{
    background-color: #547fdb;
}
.tanja-div{
    position: relative;
    max-width: 720px;
    display: flex;
    margin-top: 50px;
    width: 45%;
}
.tanja-div::before{
    content: "";
    border-radius: 50% 50% 0 0;
    position: absolute;
    bottom: 0; 
    width: 100%;
    height: 75%; 
    background: #cfdefc /* Replace rgba(0,255,0,1) with desired color */
}
.tanja{
    z-index: 1;
    width: 100%;
    display: block; /* For maintain aspect ratio */
}
.landing-page{
    display: flex;
    justify-content: center;
}
.cont-lan{
    display: flex;
    justify-content: space-between; /* This line */
    width: 90%; /* Adjust as needed */
    max-width: 1500px;
    margin: 0 auto; /* This line: to center the container */
    box-sizing: border-box;
}
.levo-lan p{
    color: var(--font);
    font-size: 2rem;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) { /* Change this to the breakpoint you need */
    .cont-lan {
        flex-direction: column;
        align-items: center;
    }
    .levo-lan, .tanja-div {
        max-width: 100%;
        margin: 20px 0;
    }
    .tanja {
        max-width: 90%;
    }
    .tanja-div::before {
        border-radius: 50% 50% 0 0;
        height: 75%; 
        bottom: 0; 
        width: 100%; /* Adjusted from 120% */
        left: 0; /* Adjusted from -10% */
        padding-left: 10%; /* Add if you want the pseudo-element to stretch beyond the image */
        box-sizing: border-box; /* Makes sure padding doesn't add to the total width */
    }
    .tanja-div{
        width: 100%;
    }
    .levo-lan{
        margin-top: 20%;
    }
    .levo-lan p{
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    .tanja-div {
        justify-content: center;
    }
    .tanja {
        display: block;
        margin: auto;
    }
    .landing-page{
        height: auto;
    }
}

/* O NAMA POCETNA */
.o-nama-txt h1{
    font-size: 3.2rem;
    color: var(--termin-fon);
    margin-bottom: 30px;
    font-weight: bold;
}
.o-nama-txt p{
    color: var(--font);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.o-nama-pocetna{
    display: flex;
    justify-content: center;
}
.o-nama-cont{
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    box-sizing: border-box;
    margin-top: 100px;
}
.o-nama-txt{
    max-width: 600px;
    margin-right: 20px; 
}
.o-nama-slika{
    max-width: 600px;
}


.radno-vreme,
.telefon,
.mail,
.lokacija {
    display: flex;
    align-items: center;
}

.radno-vreme i,
.telefon i,
.mail i,
.lokacija i {
    margin-right: 10px;
}



.godine-iskustva {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}
.godine-iskustva p{
    font-size: 2rem;
}
.god{
    border: 2px solid var(--termin-fon);
    border-radius: 50%;
    padding: 22px 15px;
}
.saznaj-vise{
    display: flex;
    text-align: center;
    
}
.sz-btn{
    font-size: 1.5rem;
    color: var(--pozadina);
    text-decoration: none;
    padding: 20px 45px;
    display: block;
    text-align: center;
    background-color: var(--termin-fon);
    border-radius: 15px;
}
.sz-btn{
    cursor: pointer;
}
.sz-btn:hover{
    scale: 1.05;
}
.sz-btn:active{
    scale: 0.95;
}
.ordinacija{
    height: 500px;
    border-radius: 100px 20px 100px 20px;
    padding: 20px;
}
.informacije-cont{
    background-color: var(--pozadina);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    display: inline-block;
}
.naslov{
    color: var(--termin-fon);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 2;
}
.informacije a{
    text-decoration: none;
    color: var(--font);
}
.radno-vreme,
.telefon,
.mail,
.lokacija {
    font-size: 1.1rem;
}


.email,
.loka {
    cursor: pointer;
}

.email:hover,
.loka:hover {
    transform: scale(1.05);
}

.email:active,
.loka:active {
    transform: scale(0.95);
}






.o-nama-slika {
    position: relative;
}

.tanja {
    display: block;
    width: 100%;
    height: auto;
}

.informacije-cont {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: -120px;
    margin-bottom: -50px;
    /* Your existing styles */
}







.o-nama-cont {
    display: flex;
    justify-content: space-between;
    /* Rest of your styles */
}

.o-nama-txt {
    max-width: 50%;
    /* Rest of your styles */
}

.o-nama-slika {
    max-width: 50%;
    position: relative;
}


.informacije-cont {
    position: absolute;
    bottom: 0;
    left: 0;
    /* Rest of your styles */
}








@media screen and (max-width: 768px) {
    /* Rest of your styles */

    .o-nama-cont {
        flex-direction: column;
        align-items: center;
    }

    .o-nama-txt, .o-nama-slika {
        max-width: 100%;
        margin: 20px 0;
    }
    .o-nama-txt h1{
        font-size: 2.5rem;
        color: var(--termin-fon);
        margin-bottom: 30px;
        font-weight: bold;
    }
    .o-nama-txt p{
        font-size: 1.2rem;
        color: var(--font);
    }
    .informacije-cont {
        position: static;
        /* Rest of your needed styles */
    }
    .god{
        padding: 20px 15px;
    }
}
@media screen and (max-width: 768px) {
    .ordinacija{
        border-radius: 50px 10px 50px 10px;
        /* adjust other properties as needed */
    }
    .informacije-cont{
        margin: 0;
        display: flex;
        justify-content: center;
    }
    .ordinacija{
        height: auto; /* Let content dictate height, or you can set it to a percentage or viewport value */
        border-radius: 100px 20px 100px 20px;
        padding: 20px;
    }
}
/* FIX ZA POMERANJE SAJTA */
.o-nama-slika img{
    width: 100%;
    padding: 0;
}


/* USLUGE */
.usluge{
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* aligns children to the start (left) */
    width: 100%; /* to make sure it spans the entire width of the parent */
    max-width: 1500px; /* restricts maximum width to 1500px */
    margin: 0 auto; /* centers the element */
    margin-top: 100px;
}

.usluge h1{
    color: var(--termin-fon);
    font-size: 3rem;
    text-align: left; /* positions the text to the left */
    margin-bottom: 50px;
}




.usluge-naslov{
    display: flex;
    text-align: left;
}
.cont-sec{
    display: flex;
    justify-content: center;
}
.container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    max-width: 1500px;
}

.card{
    width: 330px;
    margin: 10px;
    position: relative;  /* Add this line */
    border-radius: 15px;
    background-color: #ffffff;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-top: 30px;
}

.card-image{
    width: 90%;  /* Reduce the width to 90% */
    margin: -20px auto 15px;  /* Give a negative top margin and automatically center it by using auto for left and right margin */
    height: 170px;
    background-size: cover;
    border-radius: 15px;
}
.kartica-1{
    background-image: url(stomatoloska-protetika-kartica-min.jpg);
}
.kartica-2{
    background-image: url(parodontologija-kartica-min.jpg);
}
.kartica-3{
    background-image: url(oralna-hirurgija-kartica-min.jpg);
}
.kartica-4{
    background-image: url(decija-stomatologija-kartica-min.jpg);
}
.kartica-5{
    background-image: url(endodoncija-kartica.jpg);
}
.kartica-6{
    background-image: url(zubi-u-trudnoci-kartica-min.jpg);
}
.kartica-7{
    background-image: url(bruksizam-kartica-min.jpg);
}
.kartica-8{
    background-image: url(gummy-kartica-min.jpg);
}

.card h2{
    padding: 10px;
    color: var(--termin-fon);
    font-size: 1.5rem;
    font-weight: bold;
}

.card p{
    padding: 10px;
    color: var(--font);
    font-size: 1.1rem;
}

.card a {
    border: 2px solid var(--termin-fon);
    color: var(--termin-fon);
    padding: 15px 20px;
    display: inline-block;
    text-align: center;
    margin: 20px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.3rem;
}
.card a:hover{
    cursor: pointer;
    scale: 1.05;
}

.card:hover{
    transform: scale(1.03);
    transition: all 1s ease;
}

.card a:active{
    scale: 0.95;
}

@media screen and (max-width: 768px) {
    .usluge-naslov h1{
        font-size: 2rem;
    }
    .usluge h1{
        font-size: 2.5rem;
        color: var(--termin-fon);
        margin-bottom: 30px;
        font-weight: bold;
    }
    .usluge{
        width: 90%;
    }
    .cont-sec{
        width: 100%;
    }
    .o-nama-txt p{
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
}
#sakri1, #sakri2, #sakri3, #sakri4 {
    visibility: hidden;
    height: 0;
}
.hide {
    display: none !important; 
}
.dugme a{
    background-color: var(--termin-fon);
    color: var(--pozadina);
    padding: 20px 25px;
    border-radius: 15px;
    font-size: 1.1rem;
    transition: scale 0.2 ease;
    text-decoration: none;
}
.dugme-cont{
    width: 100%;
    justify-content: center;
    display: flex;
}
.dugme{
    cursor: pointer;
}
.dugme:hover{
    scale: 1.05;
}
.dugme:active{
    scale: 0.95;
}








/* ZADOVOLJNI PACIJENTI */
.slider{
    width: 600px;
    max-width: 100vw;
    height: 700px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.list{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: max-content;
    transition: 1s;
}
.list img{
    width: 600px;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
}
.buttons{
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}
.buttons button{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff5;
    color: var(--pozadina);
    border: none;
    font-weight: bold;
}
.dots{
   position: absolute;
   bottom: 10px;
   color: #fff;
   left: 0;
   width: 100%;
   margin: 0;
   padding: 0;
   display: flex;
   justify-content: center;
}
.dots li{
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 20px;
    border-radius: 20px;
    transition: 1s;
}
.dots li.active{
    width: 30px;
}
#pacijenti{
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* aligns children to the start (left) */
    width: 100%; /* to make sure it spans the entire width of the parent */
    max-width: 1500px; /* restricts maximum width to 1500px */
    margin: 0 auto; /* centers the element */
    margin-top: 100px;
    width: 90%;
}
.pacijenti-naslov p{
    color: var(--font);
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.pacijenti h1{
    color: var(--termin-fon);
    font-size: 3rem;
    margin-bottom: 50px;
}


.pacijenti{
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    box-sizing: border-box;
    margin-top: 100px;
}

.pacijenti-cont{
    display: flex;
    justify-content: space-between;
    width: 100%; /* reduce the width to 90% to create more space around */
}

.pacijenti-naslov,
.slider-cont {
    flex: 1; /* distribute the available space equally */
    margin: 0 20px; /* add some space in between */
}

.slider{
    max-width: 100%; /* use the maximum available width */
    max-height: 400px;
}
.galerijadugme{
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Other CSS rules remain the same */

@media screen and (max-width: 768px) {
    .pacijenti-cont {
        flex-direction: column; /* Make the items stack vertically on small screens */
        align-items: center; /* Center items on the screen */
    }

    .pacijenti-naslov,
    .slider-cont {
        margin: 20px 0; /* Change margin to match the new vertical layout */
        width: 100%; /* Take the whole width of the container */
        max-width: 768px; /* Limit max-width to avoid overly stretched content */
        text-align: center; /* Center text elements just for better visual appearance */
    }
    .pacijenti-naslov{
        text-align: left;
    }
    .slider {
        max-height: 300px; /* Optional: You may want to adjust the max-height of your slider */
    }
    .pacijenti-naslov h1{
        font-size: 2.5rem;
        color: var(--termin-fon);
        margin-bottom: 30px;
        font-weight: bold;
    }
    .pacijenti-naslov p{
        font-size: 1.2rem;
    }
}









/* KONTAKT */
.kontakt {
    max-width: 1500px;
    margin: 0 auto;
}
.kontakt-cont {
    display: flex;
    height: auto;
    width: 1500px;
    margin-top: 100px;
}

.poruka-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    z-index: 10;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 35px;
    position: relative;
    background-color: var(--pozadina);
    margin-right: -15px;
}

.kont-input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90%;
    margin-bottom: 30px;
}

.kont-input form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2rem;  /* space between form children */
}

.kont-input form .input-cont {
    display: flex;
    flex-direction: column;
}

.kont-input form .input-cont * {
    width: 100%;
    border-radius: 10px; 
    border: none; 
    height: 40px;
}
.kont-input form .input-cont textarea{
    height: 75px;
    resize: none;
}
.kont-input p{
    color: var(--termin-fon);
    background-color: 0;
    border: 0;
    border-radius: 0;
    font-size: 1.2rem;
}

.mapa-cont {
    flex: 1;
    position: relative;
    z-index: 0;
}

.mapa-cont iframe {
    width: 100%;
    height: 100%;
    border-radius: 0px 35px 35px 0px;
    position: relative;
    margin-left: -15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.profilna img{
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #547fdb;
    margin-bottom: 10px;
    margin-top: 20px;
}
.poruka-cont .profilna{
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    width: 100%;
    text-align:center;
    
}
.profilna p{
    font-size: 1.5rem;
    color: var(--termin-fon);
}

.input-cont input,
.input-cont textarea {
    border-radius: 10px;  
    background-color: #ebebeb; 
}

/* Indent placeholder text */
.input-cont input::placeholder,
.input-cont textarea::placeholder {
    text-indent: 10px;
    justify-content: center;
    font-size: 0.8rem;
}
.kont-input button{
    background-color: var(--termin-fon);
    color: var(--pozadina);
    padding: 10px 15px;
    border-radius: 20px;
    border: 0;
}
.kont-input button:hover{
    scale: 1.05;
}
.kont-input button:active{
    scale: 0.95;
}


@media screen and (max-width: 768px) {
    .kontakt-cont {
        flex-direction: column; /* Stack child elements vertically */
        height: auto;
        width: 90%;
        margin-top: 50px;
    }
    .kontakt{
        display: flex;
        justify-content: center;
    }
    .poruka-cont{
        margin-left: 0;
        margin-right: 0;
    }
    .poruka-cont, .mapa-cont{
        width: 100%; /* Make .poruka-cont and .mapa-cont occupy full width of parent */
    }
    .mapa-cont iframe{
        margin-left: 0;
        margin-top: -35px;
        border-radius: 0px 0px 35px 35px;
        height: 335px;
    }
    .kontakt-cont{
        display: flex;
        justify-content: center;
        align-items: center;
    }
}


.g-recaptcha{
    display: flex;
    width: 100%;
    justify-content: center;
}







/* FOOTER */
.footer-cont{
    max-width: 1170px;
    margin: auto;
}
.footer ul{
    list-style: none;
}
.footer{
    margin-top: 100px;
    background-color: #e8eaed;
    padding: 70px 0;
}
.footer-col{
    width: 25%;
    padding: 0 15px;
}
.footer-col h4{
    font-size: 1.2rem;
    color: var(--font);
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: bold;
    position: relative;
}
.footer-col h4::before{
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    background-color: var(--termin-fon);
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}
.footer-col li{
    font-size: 18px;
    text-transform: capitalize;
    color: var(--font);
    text-decoration: none;
    font-weight: 300;
}
.row{
    display: flex;
    flex-wrap: row;
}
.footer-col ul li:not(:last-child){
    margin-bottom: 10px;
}
.footer-col ul li a{
    font-size: 18px;
    text-transform: capitalize;
    text-decoration: none;
    font-weight: 300;
    color: #40331d;
    display: block;
    transition: all 0.3s ease;
}
.footer-col ul li a:hover{
    padding-left: 8px;
    color: var(--termin-fon);
}
.footer-col .social-links a{
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: var(--termin-fon);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}
.footer-col .social-links a:hover{
    color: var(--termin-fon);
    background-color: #ffffff;
}

@media screen and (max-width: 768px){
    .footer-col{
        width: 50%;
        margin-bottom: 30px;
    }
}
@media screen and (max-width: 574px){
    .footer-col{
        width: 100%;
    }
    .row {
        flex-direction: column;
        padding-left: 60px;
    }
}





/* STOMATOLOSKA PROTETIKA */
.stomatoloska-protetika{
    display: flex;
    justify-content: center;
}

.protetika{
    max-width: 1500px;
    margin-top: 100px;
}

.cont-1{
    display: flex;
    justify-content: space-between;
    height: 650px;
    align-items: center;
    flex-direction: row-reverse;
}
.cont-1-txt{
    padding: 50px;

}
.cont-1-txt h1{
    text-align: center;
    font-size: 2.3rem;
    color: var(--termin-fon);
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
.cont-1-txt p{
    color: var(--font);
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.cont-1 img{
    width: 45%;
    height: auto;
}
.cont-1-txt ul li{
    margin-left: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.color-text{
    font-weight: bold;
    font-size: 1.5rem;

}

.gslika1{
    border-radius: 10%;
    max-height: 500px;
}

.slika1{
    border-radius: 10%;
}
.cont-2{
    display: flex;
    justify-content: space-between;
    height: 650px;
    align-items: center;
}
.cont-2-txt{
    padding: 50px;
    padding-top: 20px;

}
.cont-2-txt h1{
    text-align: center;
    font-size: 2.3rem;
    color: var(--termin-fon);
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
.cont-2-txt p{
    color: var(--font);
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.cont-2 img{
    width: 45%;
    height: auto;
}
.cont-2-txt ul li{
    margin-left: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


#protetika-title {
    text-align: center;
    padding-top: 100px;
    color: var(--termin-fon);
    position: relative;
    font-size: 2.5rem;
    text-shadow: 1px 1px 1px #000000;
}
#ispod-title{
    font-size: 1.5rem;
    text-align: center;
    color: var(--font);
    margin-top: 40px;
    margin-left: 10px;
    margin-right: 10px;
}

#protetika-title span {
    position: relative;
}

#protetika-title span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    height: 2px; /* Or the thickness you want */
    width: 70%;  /* Change to your own preference */
    background-color: var(--termin-fon);
    bottom: -10px; /* Adjust based on your needs */
}
#protetika-title span {
    display: inline-flex;
    justify-content: center;
    position: relative;
    width: fit-content;
    margin: auto;
}

@media screen and (max-width: 768px) {
    #protetika-title span::after {
        width: 90%;  /* Adjusted to be more appropriate for smaller screens */
    }
    #protetika-title span {
        width: fit-content;
        margin: auto;
    }
    /* Adjust layout of .cont-1 and .cont-2 component for small screens */
    .cont-1, .cont-2 {
        flex-direction: column;
        height: auto; /* Let it expand as needed */
    }

    /* Update image and text layout for small screens */
    .cont-1 img, .cont-2 img {
        width: 90%;
    }
    .cont-1-txt p{
        font-size: 1.2rem;
        color: var(--font);
    }
    .cont-2-txt p{
        font-size: 1.2rem;
        color: var(--font);
    }
  
    .cont-1-txt, .cont-2-txt {
        padding: 20px; /* Decrease padding to save some space */
    }
    .protetika{
        margin-top: 20px;
    }
    .cont-1-txt{
        margin: 0px 10px 0px 10px;
    }
}






/* ENDODONCIJA */
.endodoncija{
    display: flex;
    justify-content: center;
}

.endo{
    max-width: 1500px;
    margin-top: 100px;
    overflow: hidden;
}

.ekon1{
    display: flex;
    justify-content: space-between;
    height: 750px;
    align-items: center;
    flex-direction: row-reverse;
}
.etxt1{
    padding: 50px;

}
.etxt1 h1{
    text-align: center;
    font-size: 2.3rem;
    color: var(--termin-fon);
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
.etxt1 p{
    color: var(--font);
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.ekon1 img{
    width: 45%;
    height: auto;
}
.etxt1 ul li{
    margin-left: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


.eslika1{
    border-radius: 10%;
}

.eslika2{
    border-radius: 10%;
}

.ekon2{
    display: flex;
    justify-content: space-between;
    height: 650px;
    align-items: center;
}
.etxt2{
    padding: 50px;
    padding-top: 20px;

}
.etxt2 h1{
    text-align: center;
    font-size: 2.3rem;
    color: var(--termin-fon);
    margin-bottom: 20px;
    font-weight: bold;
}
.etxt2 p{
    color: var(--font);
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.ekon2 img{
    width: 45%;
    height: auto;
}
.etxt2 ul li{
    margin-left: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


.etxt1 h1, .etxt2 h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {
    /* Adjust layout of .cont-1 and .cont-2 component for small screens */
    .ekon1, .ekon2 {
        flex-direction: column;
        height: auto; /* Let it expand as needed */
    }

    /* Update image and text layout for small screens */
    .ekon1 img, .ekon2 img {
        width: 90%;
    }
    .etxt1 h1, .etxt2 h1{
        font-size: 1.7rem;
    }
    .etxt1 p, .etxt2 p{
        font-size: 1.2rem;
    }
    .etxt1, .etxt2 {
        padding: 15px; /* Decrease padding to save some space */
    }
    .endo{
        margin-top: 20px;
    }
}























/* PARODONTOLOGIJA */
.pstomatoloska-protetika{
    display: flex;
    justify-content: center;
}

.pprotetika{
    max-width: 1500px;
    margin-top: 50px;
    overflow: hidden;
}

.pcont-1{
    display: flex;
    justify-content: space-between;
    height: 650px;
    align-items: center;
    flex-direction: row-reverse;
}
.pcont-1-txt{
    padding: 50px;

}
.pcont-1-txt h1{
    text-align: center;
    font-size: 2.3rem;
    color: var(--termin-fon);
    margin-bottom: 20px;
    font-weight: bold;

}

.pcont-1-txt p{
    color: var(--font);
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.pcont-1 img{
    width: 45%;
    height: auto;
}
.pcont-1-txt ul li{
    margin-left: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.pcolor-text{
    font-weight: bold;
    font-size: 1.5rem;

}

.pslika1{
    border-radius: 10%;
}
.pcont-2{
    display: flex;
    justify-content: space-between;
    height: 650px;
    align-items: center;
}
.pcont-2-txt{
    padding: 50px;
    padding-top: 20px;

}
.pcont-2-txt h1{
    text-align: center;
    font-size: 2.3rem;
    color: var(--termin-fon);
    margin-bottom: 20px;
    font-weight: bold;
}
.pcont-2-txt p{
    color: var(--font);
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.pcont-2 img{
    width: 45%;
    height: auto;
}
.pcont-2-txt ul li{
    margin-left: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pcont-1-txt h1, .pcont-2-txt h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {
    /* Adjust layout of .cont-1 and .cont-2 component for small screens */
    .pcont-1, .pcont-2 {
        flex-direction: column;
        height: auto; /* Let it expand as needed */
    }

    /* Update image and text layout for small screens */
    .pcont-1 img, .pcont-2 img {
        width: 90%;
    }
    .cont-1-txt h1{
        font-size: 1.7rem;
    }
    .cont-1-txt p{
        font-size: 1.2rem;
    }
    .pcont-1-txt, .pcont-2-txt {
        padding: 20px; /* Decrease padding to save some space */
    }
    .pprotetika{
        margin-top: 20px;
    }
}






















/* O NAMA PAGE */
.o-nama{
    display: flex;
    justify-content: center;
}

.o-nama-glavni{
    max-width: 1500px;
    display: flex;
    flex-direction: column;
    margin-top: 70px;
}

.o-nama-cont-1{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.o-nama-cont-1 img, .o-nama-cont-1-txt {
    flex: 1;
}
.o-nama-cont-1 img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
}
.o-nama-cont-1-txt{
    max-width: 600px;
}
.o-nama-cont-1-txt h1{
    text-align: center;
    color: var(--termin-fon);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}
.o-nama-cont-1-txt p{
    font-size: 1.5rem;
    color: var(--font);
}
.o-nama-cont-2{
    margin-top: 150px;
}
.o-nama-cont-2 h1{
    color: var(--termin-fon);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.o-nama-cont-2 p{
    font-size: 1.5rem;
    color: var(--font);
}

@media screen and (max-width: 768px) {
    .o-nama-glavni{
        max-width: 95%;
        flex-direction: column;
        align-items: center;
    }
    .o-nama-cont-1{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .o-nama-cont-2{
        margin-top: 50px;
    }
    .o-nama-cont-1-txt h1, .o-nama-cont-2 h1 {
        font-size: 2rem;
    }
    .o-nama-cont-1-txt p, .o-nama-cont-2 p {
        font-size: 1.2rem;
    }
    .o-nama-glavni h1{
        margin: 20px;
    }
    .o-nama-glavni p{
        margin: 20px;
    }
}







/* GALERIJA */
.cont2{
    padding-top: 110px;
}
.cont3 .naslov-galije, .h1-galerija, .opis-naslova{
    text-align: center;
}
.naslov-galije{
    text-decoration: underline;
    text-decoration-color: var(--termin-fon);
    font-weight: bold;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    font-size: 1.6rem;
    margin-bottom: 30px;
}
.h1-galerija{
    color: var(--termin-fon);
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.opis-naslova{
    font-size: 1.2rem;
}
p{
    color: var(--font);
}


/* GALERIJA  DIV SWITCH */
.main_container{
    margin: 15px auto;
    max-width: 1000px;
    height: auto;
    margin-top: 70px;
}
.buttons2{
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.buttons2 button{
    border: none;
    width: 110px;
    height: 35px;
    font-weight: bold;
}
.buttons2 button:hover{
    border: none;
    color: var(--termin-fon);
}


.accessibility-btn {
    border: 0;
    background: none;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    position: relative;
}

.accessibility-btn.default-underline::after {
    content:'';
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 2px;
    background: var(--termin-fon);
    width: 50%;
    transform: translateX(-50%);
}

.accessibility-btn:active::after, .accessibility-btn:focus::after {
    content:'';
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 2px;
    background: blue;
    width: 50%;
    transform: translateX(-50%);
}




.blocks{
    display: flex;
    width: 100%;
    height: 100%;
}
.diva{
    width: 100%;
    height: auto;
}
.divb{
    display: none;
    width: 100%;
    height: auto;
}

/* GALERIJA SLIKE */
.grid-wrapper img{
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}
.grid-wrapper > div{
    display: flex;
    justify-content: center;
    align-items: center;
}
.grid-wrapper > div > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.grid-wrapper{
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}
.grid-wrapper .wide{
    grid-column: span 2;
}
.grid-wrapper .tall {
    grid-column: span 2;
}
.grid-wrapper .big{
    grid-column: span 2;
    grid-row: span 2;
}
@media screen and (max-width: 768px){
    .grid-wrapper img{
        padding: 0px 10px 0px 10px;
    }
    .grid-wrapper:first-child{
        padding-top: 10px;
    }
    .grid-wrapper:last-child{
        padding-bottom: 10px;
    }
    .buttons2{
        justify-content: center;
    }
    .cont3 h1{
        font-size: 2.3rem;
        margin: 15px;
    }
    .cont3 p {
        font-size: 1.2rem;
        margin: 15px;
    }
    .main_container{
        margin-top: 30px;
    }

}



/* ANIMACIJE */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translate(-100%) ;
    transition: all 1s;
}
.show {
    opacity: 1;
    filter: blur(0);
    transform: translate(0);
}
.static {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
    transition: none !important;
}



.hiddenRight {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(100%);
    transition: all 1s;
    transition-delay: 400ms;
}
.showRight {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}
.staticRight {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
    transition: none !important;
}

.card:nth-child(1){
    transition-delay: 200ms;
}
.card:nth-child(2){
    transition-delay: 400ms;
}
.card:nth-child(3){
    transition-delay: 600ms;
}
.card:nth-child(4){
    transition-delay: 800ms;
}


@media screen and (max-width: 768px){
    .card:nth-child(1){
        transition-delay: 0ms;
    }
    .card:nth-child(2){
        transition-delay: 0ms;
    }
    .card:nth-child(3){
        transition-delay: 0ms;
    }
    .card:nth-child(4){
        transition-delay: 0ms;
    }
    .hiddenRight{
        transition-delay: 0;
    }
    .o-nama-pocetna{
        width: 100%;
    }

}
.slika-onama{
    border-radius: 15px;
    width: auto;
}