/* =========================
   MENTORA HOME (home.html)
   Clean + responsive layout
   ========================= */
html, body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}
button, input, select, textarea{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

:root{
  --bg: #f6f8fc;
  --card: #ffffff;
  --ink: #0b1220;
  --muted: #5b667a;

  --primary: #2563eb;
  --primary2:#1d4ed8;

  --border: rgba(15, 23, 42, 0.10);
  --border2: rgba(37, 99, 235, 0.20);

  --radius: 18px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow2: 0 18px 46px rgba(2, 6, 23, 0.10);
}

/* Base */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
}

/* Helpers */
.muted{
  color:var(--muted);
  font-size: 15px;
}
.h11{
  margin: 10px 0 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.h2{
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
a{ color: var(--primary); }
a:hover{ color: var(--primary2); }

/* Layout container used across page */
.container2{
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration:none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover{
  filter: brightness(1.02);
  box-shadow: 0 10px 20px rgba(2,6,23,.08);
}
.btn:active{ transform: translateY(1px); }

.btn.btn-primary{
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff;
}
.btn.marzin{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
  color: var(--ink);
}

/* Submit button inside form (kept class name) */
.btn-primary1{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 900;
  border: 1px solid rgba(37, 99, 235, 0.40);
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff;
  cursor:pointer;
  box-shadow: 0 16px 34px rgba(37,99,235,.18);
}
.btn-primary1:hover{ filter: brightness(1.03); }
.btn-primary1:active{ transform: translateY(1px); }

/* =========================
   HERO (landing-section)
   ========================= */
.landing-section{
  background: #fff;
  padding: 72px 0;
  position: relative;
  overflow:hidden;
}
.landing-section::before{
  content:"";
  position:absolute;
  inset:-120px -160px auto -160px;
  height: 520px;
  background:
    radial-gradient(520px 260px at 10% 25%, rgba(37,99,235,0.12), rgba(255,255,255,0) 65%),
    radial-gradient(520px 260px at 90% 20%, rgba(16,185,129,0.10), rgba(255,255,255,0) 62%),
    radial-gradient(520px 260px at 55% 90%, rgba(99,102,241,0.10), rgba(255,255,255,0) 65%);
  pointer-events:none;
}
.landing-section .container2{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.div-left, .div-right{
  min-width:0;
}

/* chips */
.promo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.18);
  font-weight: 900;
  color: var(--ink);
  font-size: 13px;
}
.promo1{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2,6,23,0.03);
  border: 1px solid var(--border);
  font-weight: 800;
  color: var(--ink);
  font-size: 13px;
}
.karakter-div{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}

/* hero list */
.div-left ul{
  margin: 14px 0 0;
  padding-left: 18px;
}
.div-left li{
  margin: 8px 0;
  color: var(--muted);
}
.div-left li strong{ color: var(--ink); }

/* hero buttons row */
.row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 14px;
}

/* =========================
   CARDS (card2)
   ========================= */
.card2{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* =========================
   FORM (card2 forma)
   ========================= */
.card2.forma{
  border-color: var(--border2);
  box-shadow: var(--shadow2);
}

label{
  display:block;
  font-weight: 900;
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 14px;
}

.unos, select, textarea{
  width:100%;
  border-radius: 12px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
  color: var(--ink);
  font-size: 14px;
}
textarea{
  min-height: 92px;
  resize: vertical;
}
.unos:focus, select:focus, textarea:focus{
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

/* two-column groups */
.red{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* checkbox pills */
.checks{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 8px;
}
.check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.18);
  background: rgba(37,99,235,0.06);
  font-weight: 900;
  font-size: 13px;
  color: var(--ink);
}
.check input{ width:auto; }

.legal{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}
.legal input{ margin-top: 3px; }

/* =========================
   OSMACI CHALLENGE CARD
   (scoped: first card after hero)
   ========================= */
.landing-section + .card.shadow-sm.mb-3{
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  border-radius: 20px;
  border: 1px solid rgba(37,99,235,0.18);
  background:
    linear-gradient(180deg, rgba(37,99,235,0.10), rgba(255,255,255,0.90));
  box-shadow: var(--shadow);
}
.landing-section + .card.shadow-sm.mb-3 .card-body{
  padding: 18px 20px;
}
.landing-section + .card.shadow-sm.mb-3 h5{
  margin: 0 0 4px;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.landing-section + .card.shadow-sm.mb-3 small{
  color: var(--muted);
  font-weight: 700;
}

/* =========================
   SECTIONS
   ========================= */
.section, .kako, .izbor{
  padding: 64px 0;
}
.section:nth-of-type(even){
  background: #fff;
}
.section .h2, .kako .h2, .izbor .h2{
  text-align:center;
}

/* About */
.about-card{
  max-width: 920px;
  margin: 0 auto;
}

/* Kako radi */
.kako .container2{ text-align:center; }
.pozicija-koraka{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
  align-items: stretch;
}
.korak{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  text-align:left;
}
.korak .num{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.18);
  margin-bottom: 12px;
}
.korak h3{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 950;
}

/* Izbor (Za učenike / Za roditelje) */
.conti{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
  align-items: stretch;
}
.ucenici{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

/* Preview images (already inline width:100% in HTML) */
#preview .pozicija-koraka .korak{
  padding: 14px;
}

/* FAQ */
#faq details{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 12px 0;
}
#faq summary{
  cursor:pointer;
  font-weight: 950;
  color: var(--ink);
}
#faq details p{
  margin: 10px 0 0;
  color: var(--muted);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  .landing-section{ padding: 46px 0; }
  .landing-section .container2{
    grid-template-columns: 1fr;
  }
  .div-right{ margin-top: 14px; }
}

@media (max-width: 720px){
  .h11{ font-size: 30px !important; }
  .red{ grid-template-columns: 1fr; }
  .pozicija-koraka{ grid-template-columns: 1fr; }
  .conti{ grid-template-columns: 1fr; }
}

@media (max-width: 420px){
  .btn{ width: 100%; }
  .btn-primary1{ width: 100%; }
}
/* =========================
   NAV FIX (global)
   ========================= */

/* Ako imaš header/nav wrapper, ovo će ga učiniti sticky i urednim */
header, nav{
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Glavni bar: ako ti je nav već container, ovo će ga srediti */
nav{
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

/* Linkovi u nav-u */
nav a{
  text-decoration: none;
  font-weight: 800;
  color: #0b1220;
  padding: 10px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
nav a:hover{
  background: rgba(37,99,235,0.08);
}

/* Da se nav “skupi” u jednu liniju i lepo rasporedi */
nav > *{
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap; /* da na mobilnom pređe u 2 reda umesto da se razleti */
}

/* Ako su ti linkovi u nekom ul/li */
nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
nav li{ margin: 0; padding: 0; }

/* Dugmad (Prijava/Registracija) – prepoznajemo po tome što su <a> sa većim paddingom ili imaju class btn */
nav .btn, nav a.btn, nav a.btn-primary, nav a.btn-pill{
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.08);
}
nav a.btn-primary, nav a.primary{
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #fff !important;
  border-color: rgba(37,99,235,0.35);
}

/* Logo zona: da ne bude ogromno */
nav img, header img{
  height: 26px;
  width: auto;
}

/* Mobile finese */
@media (max-width: 720px){
  nav > *{
    justify-content: center;
  }
}
/* =========================
   TOP NAV (base.html)
   ========================= */

/* Sticky header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

/* Uredi glavni bar */
.navbar.container1{
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Brand/Logo */
.brand{ flex: 0 0 auto; }
.brand-v1{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0b1220;
  font-weight: 950;
}
.brand-v1-word{
  letter-spacing: 0.06em;
  font-weight: 950;
}
.brand-v1-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.18);
  color: #0b1220;
}
.brand-v1-mark{ flex: 0 0 auto; }

/* Linkovi u sredini */
.nav{
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 220px;
}
.nav a{
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  color: #0e2034 !important; /* gasi inline override */
  display: inline-flex;
  align-items: center;
}
.nav a:hover{
  background: rgba(37,99,235,0.08);
}
.nav a.active{
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.18);
}

/* Dugmad desno */
.nav-actions{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dugmad u nav-u (koristi tvoje klase .btn i .btn-primary iz CSS-a) */
.nav-actions .btn{
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 950;
}

/* Da main sadržaj ne uleće ispod sticky header-a */
main.container{
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Mobile: sve ostaje uredno */
@media (max-width: 820px){
  .navbar.container1{
    padding: 10px 0;
    justify-content: space-between;
  }
  .nav{
    order: 3;
    flex: 1 1 100%;
    justify-content: center;
    margin-top: 8px;
  }
  .nav-actions{
    order: 2;
  }
}
/* Osmački izazov kartica na home */
.card2 .promo { font-weight: 800; }

/* Home: jedinstvena širina za sve kartice */
.home-wrap{
  max-width: 1100px;   /* promeni ako želiš šire/uže */
  margin: 0 auto;
  padding: 0 16px;
}

.home-wrap .card2,
.home-wrap .card,
.home-wrap .panel,
.home-wrap .home-card{
  width: 100%;
  box-sizing: border-box;
}
:root{
  --nav-h: 78px;     /* fallback */
  --subnav-gap: 12px;
}

/* umesto <div style="height:78px;"> */
body{
  padding-top: calc(var(--nav-h) + 8px);
}

/* subnav lepi se ispod navbara, koliko god on bio visok */
.subnav{
  position: sticky;
  top: calc(var(--nav-h) + var(--subnav-gap));
  z-index: 1020;
  background: rgba(246,246,246,.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 12px auto 0;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}
/* ===== Mentora HOME polish (add to landing.css) ===== */

/* Layout */
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 980px){
  .choice-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* Choice cards */
.choice-card {
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px 16px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor: pointer;
  text-decoration: none;
}

.choice-card:hover{
  transform: translateY(-2px);
  border-color: rgba(46,82,210,.45);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}

.choice-card:focus-visible{
  outline: 3px solid rgba(46,82,210,.55);
  outline-offset: 3px;
}

/* Make the whole card feel clickable, keep button-like element inside */
.choice-card .btn, .choice-card .btn-outline-primary{
  pointer-events: none; /* click goes to the card link */
}

/* Chips (“promo1”) tighten */
.karakter-div { display:flex; flex-wrap: wrap; gap: 8px; }
.promo1{
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

/* Form improvements */
.forma .unos, .forma select, .forma textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.10);
  padding: 12px 12px;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.forma .unos:focus, .forma select:focus, .forma textarea:focus{
  outline: none;
  border-color: rgba(46,82,210,.55);
  box-shadow: 0 0 0 4px rgba(46,82,210,.18);
}

.forma label{ display:inline-block; margin: 10px 0 6px; }

/* Button polish */
.btn-primary1{
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
}

.btn-primary1:hover{ transform: translateY(-1px); filter: brightness(1.04); }
.btn-primary1:disabled{ opacity: .65; cursor: not-allowed; transform:none; }

/* Inline message look */
#formMsg{
  border-radius: 14px;
  line-height: 1.35;
}
