* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

.hidden {
  display: none !important;
}


/* ===========================s
   NAVBAR
=========================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: #485935;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

nav .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 90%;
  margin: auto;
}

nav .navbar .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

nav .navbar .logo img {
  height: 60px;
  width: auto;
  margin-right: 10px;
}

nav .navbar .logo span {
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  font-family: "Playfair", serif;
  line-height: 1;
}

.navbar .menu {
  display: flex;
}

.navbar .menu li {
  list-style: none;
  margin: 0 15px;
}

.navbar .menu li a {
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}


/* ===========================
   HAMBURGER
=========================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001; 
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 30px;             
  margin: 6px 0;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: center center; 
  position: relative;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg); 
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0; 
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg); 
}


/* ===========================
   HOME
=========================== */

section {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: #e6e6e6;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); 
}

#Home {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  padding-top: 75px;
  background-image: url('baner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.prozor {
  background-color: rgba(131,150,160,0.5);
  padding: 50px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  min-height: 500px;
  width: 66%;
  max-width: 1100px;
  text-align: left;
  margin-left: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prozor h2 {
  font-size: 200px;
  color: white;
  font-family: "Playfair", serif;
}

.prozor p {
  font-size: 50px;
  color: white;
  font-family: "Montserrat", sans-serif;
}

.prozor .jedan {
  margin-left: 130px;
}



@media (max-width: 1200px) {
  .prozor {
    width: 75%;
    margin-left: 30px;
    padding: 30px;
  }

  .prozor h2 {
    font-size: 120px;
  }

  .prozor p {
    font-size: 35px;
  }

  .prozor .jedan {
    margin-left: 20px;
  }
}

@media (max-width: 1110px) {
  #Home {
    justify-content: center;
    padding-top: 50px;
  }

  .prozor {
    width: 90%;
    margin-left: 0;
    text-align: center;
    padding: 25px;
  }

  .prozor h2 {
    font-size: 60px;
  }

  .prozor p {
    font-size: 25px;
  }

  .prozor .jedan {
    margin-left: 0;
  }

  .menu {
    position: absolute;
    top: 75px;
    right: 20px;
    width: 200px;
    height: 33vh; 
    background: #485935;
    border-radius: 8px;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    z-index: 1000;
  }

  .menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu li {
    margin: 0; 
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  #Home {
    justify-content: center;
    padding-top: 50px;
  }

  .prozor {
    width: 90%;
    margin-left: 0;
    text-align: left; 
    padding: 25px;
  }

  .prozor h2 {
    font-size: 60px;
  }

  .prozor p {
    font-size: 25px;
  }

  .prozor .jedan {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .prozor h2 {
    font-size: 40px;
  }

  .prozor p {
    font-size: 18px;
  }
}


/* ===========================
   ŠKOLA
=========================== */

section{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: #e6e6e6;
   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); 
}

#Skola {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center; 
  font-family: "Montserrat", sans-serif;
  color: #fff; 
  text-align: center;
  padding: 40px 20px;
  background: white;
}

#Skola h2 {
  margin-top: 80px;
  font-family: "Playfair", serif;
  font-size: clamp(28px, 4vw, 60px); 
  color: #485935;
}

#naslov {
  margin-top: 80px;
  font-family: "Playfair", serif;
  font-size: clamp(28px, 4vw, 60px);
  color: #485935;
  scroll-margin-top: 200px;

}

.autoskolainfo {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 50px auto;
  gap: 40px; 
  color: #485935;
}
.autoskolainfo p,
.autoskolainfo h3,
.autoskolainfo ul {
  margin: 0; 
  padding: 0; 
}

.autoskolainfo p {
  padding: 40px;
  background: #485935;
  color: white;
  border-radius: 15px;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.6;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: justify;
}

.autoskolainfo ul {
  list-style: none;
  padding: 40px 30px; 
  background: #485935;
  color: white;
  border-radius: 15px;
  font-size: clamp(18px, 2.5vw, 26px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 16px; 
}

.autoskolainfo li {
  display: flex;
  align-items: flex-start; 
  gap: 12px; 
  line-height: 1.5;
}

.autoskolainfo li::before {
  content: "✔";
  color: #fff; 
  flex-shrink: 0; 
  font-size: 1.2em;
  line-height: 1.2;
  margin-top: 3px;
}

.autoskolainfo img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


@media (max-width: 768px) {
  .autoskolainfo ul {
    text-align: left;
    align-items: flex-start;
  }
}

.autoskolainfo h3 {
  font-size: clamp(22px, 3vw, 32px);
  text-align: center;
  font-weight: 600;
  color: #485935;
  margin: 0; 
}

#Skola .kategorije {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  justify-items: center; 
  padding: 20px;
  margin-top: 40px;
  scroll-margin-top: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background-color: #e8e8e8;
  max-width: 100%;
}

 #Skola .kategorije a {
  width: 120px;
  height: 120px;
  background: #485935;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
}

@media (max-width: 600px) {
  #Skola .kategorije a {
    width: 80px;
    height: 80px;
    font-size: 18px;
  }
}

#Skola .kategorije a:hover {
  transform: scale(1.05);
}

    .detalji {
      display: none;
      margin: 20px auto;
      max-width: 600px;
      padding: 20px;
      border-radius: 12px;
      background-color: #e8e8e8;
      box-shadow: 0 4px 8px rgba(0,0,0,0.15);
      text-align: center;
    }

    .detalji h2 {
      margin-top: 0;
      color: #485935;
    }

    .detalji img {
      max-width: 100%;
      border-radius: 12px;
      margin-top: 15px;
      cursor: pointer;
      transition: 0.3s;
    }

    .detalji img:hover {
      transform: scale(1.02);
    }

    .detalji button {
      margin-top: 15px;
      padding: 8px 16px;
      border: none;
      background: #485935;
      color: #fff;
      font-size: 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s;
    }

    .detalji button:hover {
      background: #364227;
    }

  #lightbox {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.9);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    #lightbox img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 10px;
    }

    #lightbox span {
      position: absolute;
      top: 20px;
      right: 30px;
      color: white;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
    }

.obukatabela {
  border-collapse: collapse;
  margin: 20px auto;
  width: 100%;                
  table-layout: auto;         
  font-family: Arial, sans-serif;
}

.obukatabela th, 
.obukatabela td {
  border: 1px solid #333;
  padding: 10px;
  text-align: center;
  color: #000;                 
  background-color: #e8e8e8; 
  height: 60px;                

  white-space: normal;         
  word-break: break-word;      
  overflow-wrap: break-word;  
}

.obukatabela th {
  background-color: #485935;  
  color: #fff;                
  font-weight: bold;
}


@media (max-width: 768px) {
  .obukatabela th, 
  .obukatabela td {
    font-size: 14px;   
    padding: 8px;      
  }
}


@media (max-width: 480px) {
  .obukatabela th, 
  .obukatabela td {
    font-size: 12px;   
    padding: 6px;      /
  }
}


/* ===========================
   TEHNIČKI
=========================== */

section{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: #e6e6e6;
   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); 
}

#Tehnicki {
  background-color: white;
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center; 
  font-family: "Montserrat", sans-serif;
  color: #fff; 
  text-align: center;
  padding: 40px 20px;
}

#Tehnicki h2 {
  margin-top: 80px;
  margin-bottom: 40px;
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 60px); 
  color: #485935;
}

.tehnicki-blok {
  max-width: 900px;
  width: 100%;
  margin: 20px auto;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  text-align: left;
  color: #fff;
  overflow: hidden;
}

.tehnicki-blok::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.15); 
  z-index: 0;
  border-radius: 15px;
}

.tehnicki-blok h3,
.tehnicki-blok ul {
  position: relative;
  z-index: 1;
}

.tehnicki-blok h3 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 20px;
  font-weight: bold;
  color: #fff;
}

.tehnicki-blok ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: clamp(18px, 2.5vw, 26px);
}

.tehnicki-blok li {
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.tehnicki-blok li::before {
  content: "✔"; 
  color: white; 
  margin-right: 12px;
  font-size: 1.2em;
  line-height: 1;
}

.tehnicki-blok:nth-of-type(2) {
  background-image: url(tehnickilinija.jpg); 
}

.tehnicki-blok:nth-of-type(3) {
  background-image: url(tehnickikanc.jpeg); 
}


/* ===========================
   GALERIJA
=========================== */

section {
  display: flex;
  width: 100%;
  justify-content: center;
  background: #e6e6e6;
}

#Galerija {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: "Montserrat", sans-serif;
  color: #000;
  text-align: center;
  padding: 40px 20px;
  scroll-margin-top: 80px;
  gap: 40px; 
}


.fancyFrame {
  --border-color: #485935;
  --border-sz: 4px;
  --bg-color: white;

  position: relative;
  width: 100%;
  max-width: 900px;
  border: var(--border-sz) solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-color);
  padding: 20px;
  margin: 30px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.fancyFrame__line-1 {
  position: absolute;
  top: -0.7em;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 15px;
  background-color: #485935;
  font-family: "Playfair", serif;
  font-size: clamp(18px, 2.5vw, 32px);
  text-shadow: 1px 1px 2px black;
  white-space: nowrap;
  color: #fff;
  border-radius: 5px;
}

.fancyFrame:last-child {
  margin-top: 0px;
}

#galerija {
  flex: 1; 
  width: 100%;
  position: relative; 
  overflow: hidden;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slajdovi {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.slajdovi img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover; 
}

#galerija button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: clamp(20px, 5vw, 30px);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

#prev { left: 8px; }
#next { right: 8px; }


.dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

.video-container {
  flex: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
}



@media (max-width: 768px) {
  #Galerija {
    gap: 30px;
  }

  .fancyFrame {
    width: 100%;
    padding: 15px;
  }

  .fancyFrame__line-1 {
    font-size: clamp(16px, 4vw, 24px);
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  #Galerija {
    gap: 20px;
  }

  #galerija button {
    font-size: 18px;
    padding: 6px 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}


/* ===========================
   INFO
=========================== */

section{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: #e6e6e6;
   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); 
}

#Info {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  padding: 40px 20px 150px 20px; 
  background-color: white;
}

#Info h2 {
  margin-top: 80px;
  font-family: "Playfair", serif;
  font-size: clamp(28px, 4vw, 60px); 
  color: #485935;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: left;
  margin-top: 50px;

}

.info-item {
  background-color: #e8e8e8;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
}

.info-item h3 {
  color: #485935;
  font-size: 18px;
  margin: 0 0 5px 0;
  text-align: center;
}

.clamp-text {
  max-height: 7.5em; 
  line-height: 1.5em; 
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: justify;
}

.test {
 color: #485935;   
  text-align: center;
  margin: 20px;
  font-size: 20px;
}

.test a {
    display: block;
    color: #485935;   
    text-decoration: underline;
    text-align: center;
}

.test a:visited {
  color: #485935;  
}

.polaganje {
  max-width: 100%;
  max-height: 90%;
}

.testkat {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.testkat li {
    background-color: #485935;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.testkat li:hover {

    transform: scale(1.05);
}

.testkat li a {
    display: block;
    padding: 10px 20px;
    color:  #e8e8e8;
    text-decoration: none;
    text-align: center;
}

.testkat li a:visited {
      color:  #e8e8e8;
}

.testkat li a:hover {
    color: #fff;
}

.probna a {
    margin: 20px;
    display: block;
    color: #485935;   
    text-decoration: underline;
    text-align: center;
}

.probna a:visited {
  color: #485935;  
}

.cpc a {
    margin: 20px;
    display: block;
    color: #485935;   
    text-decoration: underline;
    text-align: center;
}

.cpc a:visited {
  color: #485935;  
}

.oduzeta a {
    margin: 20px;
    display: block;
    color: #485935;   
    text-decoration: underline;
    text-align: center;
}

.oduzeta a:visited {
  color: #485935;  
}


.info-item button {
  background-color: #485935;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  align-self: center;
  transition: background-color 0.3s;
}

.info-item button:hover {
  background-color: #3a472c;
}

.details-view {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #e8e8e8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  margin-top: 50px;
}

.details-view.hidden {
  display: none;
}

.details-view h3 {
  font-size: 24px;
  color: #485935;
  margin: 0;
  text-align: center;
}

.details-view p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

#back-btn {
  align-self: center; 
  background-color: #485935;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#back-btn:hover {
  background-color: #3a472c;
}


@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  .clamp-text {
    max-height: 6em; 
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* ===========================
   KONTAKT
=========================== */

section{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: #e6e6e6;
   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); 
}

#Kontakt {
    padding: 20px;
     background-color: #e8e8e8;
    scroll-margin-top: 80px;
    box-shadow: none;
}

.kontakt-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.kontakt-box {
    display: flex;
    flex-direction: row; 
    width: 48%; 
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    align-items: stretch;
}

.mapa {
    flex: 1;
    min-width: 250px;
    height: auto; 
}

.mapa iframe {
    width: 100%;
    height: 100%; 
    border: 0;
}

.podaci {
    flex: 1;
    padding: 20px;
    background-color: #e8e8e8;
}

.podaci h3 {
    margin-bottom: 10px;
    text-align: center;
     font-family: "Playfair", serif;
}
.podaci p {
    margin: 5px 0;
    font-family: "Montserrat", sans-serif;
}


@media screen and (max-width: 768px) {
    .kontakt-container {
        flex-direction: column;
        padding: 0 20px; 
        box-sizing: border-box;
    }

    .kontakt-box {
        width: 100%;
        flex-direction: column; 
    }

    .mapa {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .mapa iframe {
        width: 100%;
        height: 100%;
    }

    .podaci {
        width: 100%;
        padding: 20px;
        background-color: #f4f4f4;
    }
}


/* ===========================
   DUGME
=========================== */

section{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: #e6e6e6;
   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); 
}

.button a{
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #fff;
  background: #485935;
  padding: 7px 12px;;
  font-size: 18px;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.15);
}


/* ===========================
   FOOTER
=========================== */

section{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: #e6e6e6;
   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); 
}

.footer {
  background: #111; 
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-family: "Montserrat", sans-serif;

}

.footer .drustvene h4 {
  margin-bottom: 15px;
  font-size: 18px;
  letter-spacing: 1px;
  color: #ccc;
}

.footer .drustvene a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 2px solid #444;
  color: #fff;
  margin: 0 8px;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.footer .drustvene .facebook:hover {
  background: #3b5998;
  border-color: #3b5998;
}

.footer .drustvene .instagram:hover {
  background: #e4405f;
  border-color: #e4405f;
}

.footer .signature {
  margin-top: 25px;
  font-size: 14px;
  color: #aaa;
}

.footer .signature p {
  margin: 4px 0;
}

.footer .signature i {
  color: #aaa;
}