/* === GLOBAL === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #121212;
  color: #e0e0e0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
h2 {
    color: #4dabf7;
  font-size: 1.9rem;
  margin-bottom: 20px;
  text-align: left;              /* naslovi poravnati lijevo */
  max-width: 1100px;              /* u ravnini s odlomcima */
  margin-left: auto;
  margin-right: auto;

}
/* === HEADER === */
.main-header {
  background: #1e1e1e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  padding-top:10px;
  padding-bottom:20px;
  z-index: 100;
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  color: #4dabf7;
  font-weight: 600;
  font-size: 20px;
}
nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color .2s, border-color .2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
}
nav a:hover {
  color: #4dabf7;
}
nav a.active {
  color: #4dabf7;
  border-color: #4dabf7;
}

/* === HERO CAROUSEL === */
.hero-carousel {
  position: relative;
  height: 80vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.overlay {
  background: rgba(0, 0, 0, 0.55);
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-text {
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 20px;
  animation: fadeIn 1s ease;
}
.hero-text h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #4dabf7;  
}
.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 25px;
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s, transform .2s;
  cursor: pointer;
  text-align: center;
  margin: 10px auto;
}
.btn-primary {
  background: #4dabf7;
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: #64b5f6;
  transform: translateY(-2px);
}
.btn-secondary {
  background: #388e3c;
  color: #fff;
  border: none;
}
.btn-secondary:hover {
  background: #4caf50;
  transform: translateY(-2px);
}

/* === GENERIC TEXT STYLING === */
.section p {
  text-align: justify;
  max-width: 1100px;
  margin: 0 auto 20px;
  line-height: 1.7;
  color: #ccc;
}
.section h3, .section h4 {
  text-align: center;
  color: #4dabf7;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* === ABOUT === */
.about-ntc {
  background: #1e1e1e;
}

/* === NTC RADIONICE === */
.ntc-radionice {
  background: #1e1e1e;
}
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin: 40px 0;
}
.workshop-card {
  background: #2a2a2a;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.workshop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.6);
}
.workshop-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #141414;
  border-radius: 8px;
  margin-bottom: 12px;
}
.workshop-card h4 {
  color: #fff;
  margin-bottom: 8px;
}
.workshop-card p {
  text-align: left;     
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* === NTC KAMPOVI === */
.ntc-kampovi {
  background: #181818;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
  margin: 40px 0;
}
.benefit-item {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 15px 20px;
  text-align: left;
  transition: background .2s;
}
.benefit-item p {
    text-align: left;
}
.benefit-item:hover {
  background: #333;
}

/* === SEMINARI / EDUKACIJE === */
.seminars {
  background: #1e1e1e;
}

/* === KONTAKT === */
.contact-cta {
  background: #181818;
  text-align: left;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 30px;
  margin-top: 40px;
}
.contact-info-box,
.contact-form {
  background: #1f1f1f;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.contact-info-box a {
  color: #4dabf7;
  text-decoration: none;
}
.contact-info-box a:hover {
  text-decoration: underline;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #ccc;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding-top: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
  padding-left: 10px;         /* 👈 unutarnja margina (gore-dolje 10px, lijevo-desno 14px) */
  border-radius: 6px;
  border: 1px solid #333;
  background: #141414;
  color: #eee;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  display: block;
  margin: 0;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4dabf7;
}

/* === FOOTER === */
.main-footer {
  background: #0f0f0f;
  color: #aaa;
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
}
.footer-links a {
  color: #777;
  margin: 0 10px;
  text-decoration: none;
}
.footer-links a:hover {
  color: #4dabf7;
}

/* === MOBILE MENU === */
.menu-toggle {
  background: none;
  border: none;
  color: #4dabf7;
  font-size: 28px;
  cursor: pointer;
  display: none;
  transition: transform 0.3s ease;
}
.menu-toggle.active {
  transform: rotate(90deg);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #1e1e1e;
    flex-direction: column;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  nav.open {
    max-height: 300px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  }
  nav a {
    padding: 12px;
    display: block;
    margin: 0;
    border-bottom: 1px solid #2a2a2a;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-text h2 {
    font-size: 1.6rem;
  }
  .section {
    padding: 60px 20px;
  }
}
/* === MODAL POTVRDA === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease;
}

.modal-box {
  position: relative;
  background: #1e1e1e;
  color: #e0e0e0;
  border-radius: 12px;
  padding: 30px 40px 40px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  animation: popIn 0.4s ease;
}

.modal-box.error {
  background: #2a0000;
  color: #ffbaba;
}

.modal-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.modal-message {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

.modal-ok {
  background: #4dabf7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-ok:hover {
  background: #64b5f6;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeOut {
  from {opacity: 1;}
  to {opacity: 0; visibility: hidden;}
}

.fade-out {
  animation: fadeOut 0.8s forwards ease-in-out;
}

