html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; */
    min-height: 100vh;
    background: #f9f9f9;
    color: #222;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
}

/* Moderni responsive header prema korisnikovom primjeru */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background-color: #f8f9fa;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex: 1;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #007bff;
}

.languages {
    display: flex;
    gap: 10px;
    margin-left: auto !important;
    position: relative;
}

.languages button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.languages button:hover {
    background-color: #e9ecef;
}

@media (max-width: 768px) {
    .nav {
        justify-content: flex-start;
        margin: 10px 0;
        flex-wrap: wrap;
    }

    .languages {
        align-self: flex-end;
        margin-top: 10px;
        margin-left: 0;
    }
}

@media (max-width: 460px) {
    .languages {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }
}

/* ✅ Responsive: sve centrirano ispod 430px */
@media (max-width: 431px) {
    .header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        gap: 10px;
        margin: 0 auto !important;
        padding: 10px 8px;
    }
}

@media (max-width: 430px) {

    .top-row,
    .footer-columns,
    .predavanje-lista,
    .galerija-slike,
    .onama,
    .kontakt,
    .form-wrapper,
    section {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        gap: 10px;
        margin: 0 auto !important;
    }

    .header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        gap: 10px;
        margin: 0 auto !important;
        padding: 10px 8px;
    }

    .logo {
        margin-bottom: 0;
        width: auto;
        justify-content: flex-start;
        align-items: center;
        display: flex;
        flex-direction: row;
        margin-right: 0 !important;
    }

    .logo img {
        display: block;
        margin: 0 auto 8px auto;
        height: 60px;
        width: auto;
        max-width: 100%;
        min-width: unset;
    }

    nav,
    .nav {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-bottom: 8px;
        gap: 10px;
    }

    nav ul,
    .nav ul {
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin-top: 10px !important;
        width: 100% !important;
        display: flex !important;
    }

    nav ul li,
    .nav ul li {
        margin: 5px 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .nav a,
    nav a {
        padding: 8px 0 !important;
        font-size: 1rem !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .languages {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 8px 0 0 0 !important;
        display: flex !important;
        gap: 10px !important;
    }

    .languages a,
    .languages button {
        margin: 0 4px !important;
        display: inline-block !important;
        text-align: center !important;
    }

    .footer {
        font-size: 0.95rem;
        padding: 12px 4px;
        line-height: 1.4;
        text-align: center;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        margin-top: auto;
        width: 100%;
        background: #222;
        color: #fff;
    }

    .footer-columns {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px;
        width: 100%;
        display: flex;
    }

    .footer-left,
    .footer-right {
        text-align: center !important;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    section {
        padding: 18px 2vw !important;
        max-width: 100vw !important;
        min-width: unset !important;
        box-sizing: border-box !important;
    }

    .form-wrapper {
        width: 100% !important;
        padding: 18px 2vw 40px 2vw !important;
        min-width: unset !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 430px) {
  .footer-columns {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 20px !important;
    width: 100% !important;
    display: flex !important;
    padding: 0 10px !important;
  }
  
  .footer-left,
  .footer-right {
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
  }
  
  .footer-left p,
  .footer-right p,
  .footer-right h4 {
    text-align: center !important;
    margin: 5px 0 !important;
  }
  
  /* Povećana specifičnost za footer elemente */
  footer .footer-columns .footer-left,
  footer .footer-columns .footer-right {
    text-align: center !important;
  }
  
  footer .footer-columns .footer-left p,
  footer .footer-columns .footer-right p,
  footer .footer-columns .footer-right h4 {
    text-align: center !important;
  }
}



@media (max-width: 430px) {

    html,
    body {
        width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    section,
    .onama,
    .kontakt,
    .form-wrapper,
    .predavanje-lista,
    .galerija-slike {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
}

.hadis-overlay {
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 320px;
    background: rgba(65, 22, 22, 0.399);
    color: #222;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    z-index: 10;
}

.hero {
    background: linear-gradient(rgba(43, 122, 120, 0.5), rgba(43, 122, 120, 0.5)), url('images/dzemat16.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 0;
    min-height: 80vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    margin: 0;
    background-size: cover;
}

.hero h2,
.hero p {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    margin-top: 30px;
    color: black;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 28px;
}

section {
    background: #fff;
    margin: 30px auto;
    padding: 30px 20px;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

section h2 {
    color: black;
    margin-bottom: 20px;
    text-align: center;
}

section.hero {
    margin: 0;
    border-radius: 0 !important;
    box-shadow: none;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

------------ .predavanja {
    padding: 40px 20px;
    background: #0e0bdb;
    text-align: center;
}

.predavanja h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #e41818;
}

/* .predavanje-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-items: center;
} */

.predavanje-lista {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Dvije kolone */
    gap: 30px;
    justify-items: center;

}


.predavanje {
    background: #e4ece2;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 360px;
    width: 100%;
}

.predavanje:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.predavanje h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.predavanje iframe {
    width: 100%;
    height: 215px;
    border-radius: 8px;
    border: none;
    margin-bottom: 15px;
}

.predavanje p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.predavanje .datum {
    font-size: 0.85rem;
    color: black;
    display: block;
    margin-top: 5px;
}

@media (max-width: 568px) {
    .predavanje-lista {
        grid-template-columns: 1fr;
        /* Jedna kolona na manjim ekranima */
    }
}


/* .predavanje-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.predavanje {
    background: #def2f1;
    border-radius: 8px;
    padding: 16px;
    width: 300px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    text-align: center;
} */
--------------- .predavanje h3 {
    margin-top: 0;
}

.predavanje .datum {
    font-size: 0.9rem;
    color: #555;
}

.galerija-slike {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.galerija-slike img {
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Kontakt forma: uvijek polja jedno ispod drugog, kao u korisnikovom primjeru */
.kontakt form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.07);
  gap: 0;
}
.kontakt label {
  display: block;
  width: 100%;
  margin: 15px 0 5px 0;
  font-size: 1rem;
  text-align: left;
}
.kontakt input,
.kontakt textarea {
  display: block;
  width: 100%;
  font-size: 1rem;
  padding: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #fafafa;
}
.kontakt textarea {
  min-height: 100px;
  resize: vertical;
}
.kontakt button {
  width: 100%;
  max-width: 200px;
  margin: 15px auto 0 auto;
  font-size: 1.1rem;
  padding: 10px 0;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
}
.kontakt button:hover {
  background: #0056b3;
}
@media (max-width: 430px) {
  .kontakt form {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 10px 4vw !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  .kontakt label,
  .kontakt input,
  .kontakt textarea,
  .kontakt button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 10px 0 !important;
    box-sizing: border-box !important;
    float: none !important;
  }
}

@media (max-width: 430px) {
  .form-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    overflow: visible !important;
  }
  .kontakt form {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .kontakt label {
    display: block !important;
    margin: 10px 0 5px 0 !important;
    font-size: 1rem !important;
    text-align: left !important;
  }
  .kontakt input,
  .kontakt textarea {
    /* background-attachment: scroll; */
    display: block !important;
    width: 100% !important;
    font-size: 1rem !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
  }
  .kontakt textarea {
    min-height: 100px !important;
    resize: vertical !important;
  }
  .kontakt button {
    width: 100% !important;
    max-width: 200px !important;
    margin: 10px auto 0 auto !important;
    font-size: 1.1rem !important;
    padding: 10px 0 !important;
    display: block !important;
  }
}

.onama {
    /* background: red; */
    background: #f7fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 40px 30px;
    margin-top: 30px;
    min-height: 150px;
}

.onama p {
    margin-bottom: 1.3em;
    font-size: 1.13rem;
    line-height: 1.7;
    color: #222;
}

.onama p strong {
    color: #2b7a78;
    font-size: 1.18rem;
}

.onama p em {
    color: #3aafa9;
    font-style: italic;
    font-size: 1.05rem;
}

/* Responsive stilovi za .onama p */
@media (max-width: 430px) {
    .onama p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1em !important;
    }
    
    .onama p strong {
        font-size: 1.1rem !important;
    }
    
    .onama p em {
        font-size: 1rem !important;
    }
}

/* Specifičan stil za .onama na 430px */
@media (max-width: 430px) {
    .onama {
        overflow-y: auto !important;
        max-height: 400px !important;
        min-height: 150px !important;
        padding: 20px 15px !important;
        margin: 15px 0 !important;
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        box-sizing: border-box !important;
        background: #f7fafc !important;
        border-radius: 8px !important;
    }
    
    .galerija {
        margin-top: 20px !important;
        position: relative !important;
        z-index: 5 !important;
    }
    
    .footer {
        position: relative !important;
        z-index: 5 !important;
        margin-top: 20px !important;
    }
}

/* Dodajemo skrol za ekrane od 420px */
@media (max-width: 420px) {
    .onama {
        overflow-y: auto !important;
        max-height: 65vh !important;
        padding: 15px 12px !important;
        margin: 10px 0 !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
        background: #f7fafc !important;
        border-radius: 8px !important;
    }
    
    .galerija {
        margin-top: 20px !important;
        position: relative !important;
        z-index: 5 !important;
    }
    
    .footer {
        position: relative !important;
        z-index: 5 !important;
        margin-top: 20px !important;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .onama p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    .onama p strong {
        font-size: 1.05rem !important;
    }
}

@media (max-width: 350px) {
    .onama p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .onama p strong {
        font-size: 1rem !important;
    }
}

.zelena-sekcija {
    width: 1000px;
    height: 100px;
    background: #2ecc40;
    margin: 30px auto 0 auto;
    border-radius: 8px;
}

/* Hamburger meni stilovi */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
    margin-right: 20px;
}

.hamburger span {
    display: block;
    height: 4px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}



/* Uklanjamo hamburger meni za 768px - sada se prikazuje samo ispod 992px */

/* Responsive kontakt forma */
@media (max-width: 900px) {
    .form-wrapper {
        width: 98%;
        padding: 30px 2vw 60px 2vw;
        min-width: unset;
        max-width: 100vw;
    }
}

@media (max-width: 600px) {
    .form-wrapper {
        width: 100%;
        padding: 18px 2vw 40px 2vw;
        min-width: unset;
        max-width: 100vw;
    }

    .form-wrapper h1 {
        font-size: 1.3rem;
    }

    label {
        font-size: 1rem;
        margin-top: 0.7rem;
    }

    input,
    textarea {
        font-size: 1rem;
        padding: 0.5rem;
    }

    button {
        font-size: 1rem;
        padding: 0.6rem 1.1rem;
    }
}

section#predavanja {
    min-height: unset !important;
    height: auto !important;
    overflow: visible !important;
}



/* Dodatne optimizacije za još manje ekrane */
@media (max-width: 400px) {
    .onama {
        padding: 15px 12px !important;
        margin: 10px 0 !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        overflow-y: auto !important;
        max-height: 55vh !important;
        box-sizing: border-box !important;
        background: #f7fafc !important;
        border-radius: 8px !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .galerija {
        margin-top: 15px !important;
        position: relative !important;
        z-index: 5 !important;
    }
    
    .footer {
        position: relative !important;
        z-index: 5 !important;
        margin-top: 15px !important;
    }
}

@media (max-width: 350px) {
    .onama {
        padding: 12px 10px !important;
        margin: 8px 0 !important;
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        overflow-y: auto !important;
        max-height: 110vh !important;
        box-sizing: border-box !important;
        background: #f7fafc !important;
        /* background: red !important; */
        border-radius: 8px !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .galerija {
        margin-top: 10px !important;
        position: relative !important;
        z-index: 5 !important;
    }
    
    .footer {
        position: relative !important;
        z-index: 5 !important;
        margin-top: 10px !important;
    }
}

@media (max-width: 430px) {
    .galerija {
        display: block !important;
        width: 100vw !important;
        min-height: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        margin: 0 !important;
        padding: 12px 2vw !important;
        box-sizing: border-box !important;
        background: #fff !important;
    }

    .galerija-slike {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 10px !important;
        display: flex !important;
        margin: 0 auto !important;
    }

    .galerija-slike img {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 431px) {
  .header {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    gap: 10px;
    margin: 0 auto !important;
    padding: 10px 8px;
  }
}

@media (max-width: 430px) {
  .header {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    gap: 10px;
    margin: 0 auto !important;
    padding: 10px 8px;
  }
}

/* Osiguravamo da hamburger ostane u istoj liniji i ispod 240px */
@media (max-width: 240px) {
  .header {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    gap: 5px;
    margin: 0 auto !important;
    padding: 5px 4px;
  }
  
  .logo {
    margin-bottom: 0;
    width: auto;
    justify-content: flex-start;
    align-items: center;
    display: flex;
    flex-direction: row;
    margin-right: 0 !important;
  }
  
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 28px;
    cursor: pointer;
    margin: 0;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }
  
  .hamburger span {
    display: block;
    height: 3px;
    width: 24px;
    background: #333;
    border-radius: 2px;
    margin: 2px 0;
    transition: 0.3s;
  }
  
  /* X animacija kada je aktivan */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
  }
}


/* Hamburger dugme je sakriveno po difoltu */
.hamburger {
  display: none;
}

/* Navigacija (ul) je prikazana po difoltu */
.nav ul {
  display: flex;
}

/* Osiguravamo da se hamburger prikazuje ispod 992px */
@media (max-width: 992px) {
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 36px !important;
    height: 32px !important;
    cursor: pointer !important;
    margin: 0 !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
  }
  
  .hamburger span {
    display: block !important;
    height: 4px !important;
    width: 28px !important;
    background: #333 !important;
    border-radius: 2px !important;
    margin: 3px 0 !important;
    transition: 0.3s !important;
  }
  
  /* X animacija kada je aktivan */
  .hamburger.active span:nth-child(1),
  .hamburger.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px) !important;
    background: #333 !important;
    display: block !important;
  }
  
  .hamburger.active span:nth-child(2),
  .hamburger.active span:nth-of-type(2) {
    opacity: 0 !important;
    background: transparent !important;
    display: block !important;
  }
  
  .hamburger.active span:nth-child(3),
  .hamburger.active span:last-child {
    transform: rotate(-45deg) translate(7px, -6px) !important;
    background: #333 !important;
    display: block !important;
  }
  
  .nav ul {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
    flex-direction: column;
    padding: 20px 0;
    border-radius: 0;
  }
  
  .nav ul.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 150% !important;
    height: 400px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    z-index: 1000 !important;
    flex-direction: column !important;
    padding: 20px 0 !important;
    border-radius: 10px !important;
    overflow-y: auto !important;
    transition: transform 0.3s ease-in-out !important;
  }
  
  .nav ul:not(.active) {
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-in-out !important;
  }
  
  .nav ul li {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
  }
  
  .nav a {
    width: 100%;
    padding: 10px 0;
    text-align: center;
    display: block;
  }
  
  /* Sakrij logo sliku i prikaži tekst */
  .logo img {
    display: none !important;
  }
  
  /* Dodaj tekst "DZEMAT OSJEK" */
  .logo::after {
    content: "DZEMAT OSJEK";
    display: block !important;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* Pozicioniranje hamburger dugmeta */
  .hamburger {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
    margin: 0 !important;
  }
}

  @media (max-width: 430px) {
    .languages {
      margin-top: 0 !important;
    }
  }



  @media (max-width: 430px) {
    .form-wrapper {
      height: 100vh !important;
      max-height: 100vh !important;
      overflow-y: auto !important;
      box-sizing: border-box !important;
    }
    .kontakt form {
      height: auto !important;
      max-height: none !important;
      overflow: visible !important;
    }
  }

#hero h2 {
  display: block !important;
  color: #222;
  font-size: 2.2rem;
  text-align: center;
  margin: 0 auto 20px auto;
  font-weight: bold;
  letter-spacing: 1px;
  word-break: break-word;
}

@media (max-width: 992px) {
  #hero h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }
  
  /* Sakrij ABC tekst ispod 992px */
  .languages {
    display: none !important;
  }
}

@media (max-width: 430px) {
  #hero h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 769px) {
  .hero, #hero, section.hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 40vh !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
  }
  #hero h2, #hero p, .hero h2, .hero p {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #fff !important;
  }
}

@media (max-width: 770px) {
  .hero {
    padding: 20px 10px;
    min-height: 100vh;
    background-position: center top;
    background-size: cover;
  }
  .hero h2 {
    font-size: 1.5rem;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  }
}

@media (max-width: 430px) {
  .hero {
    padding: 10px 5px;
    min-height: 55vh;
    background-position: center top;
    background-size: cover;
  }
  .hero h2 {
    font-size: 1.1rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
}

/* Centriranje h1 u kontakt formi */
.form-wrapper h1 {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
}

/* Osnovni stilovi za footer */
footer {
    text-align: center;
    padding: 20px 0;
    background: #222;
    color: #fff;
    margin-top: 40px;
    border-radius: 0 0 0px 0px;
    margin-bottom: 0;
    width: 100%;
    position: relative;
    bottom: 0;
}

/* Multimedija sekcija stilovi */
.multimedija {
    background: #fff;
    margin: 30px auto;
    padding: 30px 20px;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.multimedija h2 {
    color: black;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.video-item {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.video-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.video-embed {
    position: relative;
    width: 100%;
    height: 315px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    text-align: center;
}

.video-description p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Responsive stilovi za multimediju */
@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-item {
        max-width: 100%;
    }
    
    .video-embed {
        height: 250px;
    }
}

@media (max-width: 430px) {
    .multimedija {
        padding: 20px 15px;
        margin: 20px auto;
    }
    
    .multimedija h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .video-item {
        padding: 15px;
    }
    
    .video-embed {
        height: 200px;
    }
    
    .video-item h3 {
        font-size: 1.1rem;
    }
    
    .video-description p {
        font-size: 0.9rem;
    }
}