@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
:root{
  --tuke-blue:#1043b3;
  --bg:#e8f0f6;
  --dark:#2c3e50;
  --accent:#FF9100;
}

*{ box-sizing:border-box; }

body{
  font-family:'Poppins', sans-serif;
  background-color:var(--bg);
  color:#444;
  margin:0;
  padding:0;
  scroll-behavior:smooth;
}

/* FIX pre dropdown menu Bootstrapu */
nav.navbar, .dropdown-menu, .navbar-nav{
  position:relative;
  z-index:99999 !important;
}

/* Linky */
.edu-page a{ color:white; }

.threats-hero a:not(.btn),
.teachers-flow a:not(.btn),
.teachers-incident a:not(.btn){
  color:#fff;
}
.threats-hero a:not(.btn):hover,
.teachers-flow a:not(.btn):hover,
.teachers-incident a:not(.btn):hover{
  color:var(--accent);
}

/* =========================================
   HERO
   ========================================= */
.threats-hero{
  background-color:var(--dark);
  overflow:hidden;
  position:relative;
}

.threats-hero::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width:420px;
  height:420px;
  background:rgba(255,145,0,.14);
  border-radius:50%;
}

.threats-hero::after{
  content:"";
  position:absolute;
  inset:auto auto -160px -160px;
  width:520px;
  height:520px;
  background:rgba(255,255,255,.06);
  border-radius:50%;
}

.threats-badge{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:.45rem .9rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-weight:600;
}

.threats-stats{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.threats-stats .stat{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
}

.threats-stats .stat-num{
  width:40px;
  height:40px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#2c3e50;
  background:var(--accent);
}

.threats-stats .stat-text{
  color:rgba(255,255,255,.78);
  font-weight:600;
}

.threats-hero .btn-primary,
.teachers-flow .btn-primary{
  background:#fff;
  color:#333;
  border:2px solid #333;
  border-radius:30px;
  padding:12px 25px;
  transition:background-color .3s ease, color .3s ease, border-color .3s ease;
}

.threats-hero .btn-primary:hover,
.teachers-flow .btn-primary:hover{
  background:#2c3e50;
  color:white;
  border:2px solid var(--accent);
}

.threats-hero .btn-outline-light{
  border-radius:30px;
  padding:12px 25px;
}

/* =========================================
   HEADINGS
   ========================================= */
.edu-section{ padding:70px 0; }
.teachers-light{ background:var(--bg); }

.section-head .th-title{
  font-family:'Poppins', sans-serif;
  font-weight:900;
  font-size:3.2rem;
  letter-spacing:-0.6px;
  text-transform:uppercase;
  color:var(--tuke-blue);
  margin-bottom:14px;
}

.section-head .th-sub{
  font-size:1.15rem;
  color:rgba(15,42,82,.90);
  font-weight:500;
}

/* =========================================
   TOOLKIT
   ========================================= */
#edu-toolkit .container{
  max-width:1400px;
}

.teacher-toolkit-grid{
  justify-content:center;
}

.teacher-card{
  border-radius:15px;
  overflow:hidden;
  border:1px solid #ddd;
  background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.10);
  padding:22px;
  transition:transform .3s ease, box-shadow .3s ease;
  height:100%;
}

.teacher-card:hover{
  transform:translateY(-12px);
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}

.teacher-card h3{
  font-size:1.35rem;
  font-weight:700;
  color:#2c3e50;
  margin-bottom:10px;
}

.teacher-card p{
  font-size:1.02rem;
  color:#555;
  line-height:1.6;
  margin-bottom:12px;
}

/* NEW: hlavička karty (ikona + nadpis vedľa seba) */
.teacher-card-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:10px;
}

.teacher-card-head .teacher-icon{
  margin-bottom:0;         /* zruší pôvodný margin len v head */
  flex:0 0 52px;
}

.teacher-card-head h3{
  margin:0;                /* aby nadpis nepadal pod ikonku */
  line-height:1.15;
}

/* NEW: lepšie ovládanie spacingu pre úvodný text */
.teacher-card-lead{
  margin:0 0 12px 0;        /* nech sedí rovnaké odsadenie */
}

/* pôvodná ikona (nechávam) */
.teacher-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#2c3e50;
  color:var(--accent);
  font-size:1.35rem;
  margin-bottom:14px;
  border:2px solid var(--accent);
}

.teacher-mini{
  margin-top:10px;
  padding-top:12px;
  border-top:1px dashed rgba(44,62,80,.25);
}

.mini-label{
  font-size:.9rem;
  font-weight:700;
  color:var(--accent);
  margin-bottom:6px;
}

.mini-text{
  color:#555;
  font-size:.98rem;
  line-height:1.55;
}

.teacher-card-accent{
  background:#fff !important;
}

.teacher-card-wide{
  display:grid;
  grid-template-columns:70px 1fr;
  gap:18px;
  align-items:start;
  background:#fff;
  height:auto;
}

.teacher-card-wide .teacher-icon{
  margin-bottom:0;
}

.teacher-tip{
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,145,0,.12);
  border:1px solid rgba(255,145,0,.55);
  color:#2c3e50;
}

.teacher-tip i{
  color:var(--accent);
}

/* =========================================
   FLOW
   ========================================= */
.teachers-flow{
  background:#2c3e50;
  padding:90px 0;
  position:relative;
  overflow:hidden;
}

.teachers-flow::before{
  content:"";
  position:absolute;
  top:46%;
  left:clamp(120px, 10vw, 220px);
  width:520px;
  height:520px;
  background:rgba(255,145,0,.08);
  border-radius:50%;
  transform:translateY(-50%);
}

.teachers-flow::after{
  content:"";
  position:absolute;
  top:60px;
  right:80px;
  width:640px;
  height:640px;
  background:rgba(255,255,255,.04);
  border-radius:50%;
}

.teachers-flow .container{
  position:relative;
  z-index:1;
}

.flow-title{
  color:#fff;
  font-weight:800;
  font-size:2.35rem;
  margin:0 0 10px 0;
  display:flex;
  align-items:flex-start;
  gap:12px;
  letter-spacing:.2px;
}

.flow-title i{
  color:var(--accent);
  margin-top:4px;
}

.flow-sub{
  color:rgba(255,255,255,.85);
  margin:0 0 26px 0;
  max-width:560px;
  line-height:1.6;
}

.flow-cta{
  margin-top:10px;
  border-radius:999px;
  padding:12px 18px;
}

.v-timeline{
  position:relative;
  padding-left:34px;
}

.v-timeline::before{
  content:"";
  position:absolute;
  left:18px;
  top:8px;
  bottom:8px;
  width:2px;
  background:rgba(255,255,255,.22);
}

.vt-item{
  display:flex;
  gap:16px;
  align-items:flex-start;
  margin-bottom:22px;
}

.vt-dot{
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--accent);
  color:#2c3e50;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  flex:0 0 38px;
  position:relative;
  z-index:2;
}

.vt-title{
  color:#fff;
  font-weight:800;
  font-size:1.08rem;
  margin-bottom:2px;
}

.vt-text{
  color:rgba(255,255,255,.86);
  line-height:1.55;
}

.flow-note{
  margin-top:20px;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,145,0,.12);
  border:1px solid rgba(255,145,0,.55);
  color:#fff;
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.flow-note i{
  color:var(--accent);
  margin-top:2px;
  font-size:1.15rem;
}

/* Accordion */
.teacher-accordion .accordion-item{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  border-radius:16px;
  overflow:hidden;
  margin-bottom:12px;
}

.teacher-accordion .accordion-button{
  background:transparent;
  color:#fff;
  font-weight:800;
  padding:16px 16px;
  box-shadow:none;
}

.teacher-accordion .accordion-button::after{
  filter:invert(1);
  opacity:.9;
}

.teacher-accordion .accordion-button:not(.collapsed){
  background:rgba(255,255,255,.08);
  color:#fff;
}

.teacher-accordion .accordion-body{
  line-height:1.6;
  padding:14px 16px 18px 16px;
  color:#555;
}

/* =========================================
   INCIDENT
   ========================================= */
.teachers-incident{
  position:relative;
  padding:95px 0;
  background:#2c3e50;
  overflow:hidden;
}

.teachers-incident::before{
  content:"";
  position:absolute;
  top:90px;
  left:80px;
  width:460px;
  height:460px;
  border-radius:50%;
  background:rgba(255,145,0,.08);
}

.teachers-incident::after{
  content:"";
  position:absolute;
  bottom:70px;
  right:90px;
  width:640px;
  height:640px;
  border-radius:50%;
  background:rgba(255,255,255,.04);
}

/* FIX: menej roztiahnuté na širokom monitore */
.teachers-incident .container{
  position:relative;
  z-index:1;
  max-width:1320px;
  width:100%;
}

.th-title-dark{ color:#fff !important; }

.th-sub-dark{
  color:rgba(255,255,255,.78) !important;
  max-width:980px;
  margin:0 auto;
}

.incident-stepper-wrap{
  max-width:1200px;
  margin:0 auto;
}

.incident-stepper-wrap--tight{
  max-width:none;
  margin:0;
}

/* pôvodný incident-stepper nechaj pre iné použitie,
   ale teachers varianta ho prepíše na grid */
.incident-stepper{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:26px;
  margin:34px auto 0;
  width:100%;
}

/* FIX: 2x2 GRID pre STEP 1-4 */
.incident-stepper--teachers{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  margin:0;
  width:100%;
  justify-content:stretch;
  align-items:stretch;

  /* reset z flex verzie */
  flex-wrap:unset;
}

/* Step karta – default */
.step-item{
  position:relative;
  flex:1 1 0;
  min-width:240px;
  max-width:340px;
  padding:26px 22px;
  text-align:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  box-shadow:0 16px 50px rgba(0,0,0,.18);
}

/* FIX: v grid režime vypni flex sizing + nech je 100% */
.incident-stepper--teachers .step-item{
  flex:none;
  width:100%;
  min-width:0;
  max-width:none;
  height:100%;
}

/* spojovacie čiary z flex stepperu vypni */
.step-item::after{
  content:"";
  position:absolute;
  top:58px;
  right:-26px;
  width:26px;
  height:2px;
  background:rgba(255,255,255,.14);
}

.step-item:last-child::after{ content:none; }
.incident-stepper--teachers .step-item::after{ content:none; }

.step-icon{
  width:54px;
  height:54px;
  border-radius:16px;
  background:rgba(255,145,0,.10);
  border:1px solid rgba(255,145,0,.35);
  color:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 14px;
}

.step-icon i{ font-size:1.25rem; }

.step-top{
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.12em;
  color:rgba(255,255,255,.58);
  margin-bottom:12px;
}

.step-title{
  font-size:1.18rem;
  font-weight:900;
  color:#fff;
  line-height:1.3;
  margin:0 0 14px 0;
}

.step-text{
  color:rgba(255,255,255,.82);
  line-height:1.7;
  font-size:1rem;
  margin:0;
}

.card-glass{
  border-radius:15px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  padding:22px;
}

.alerts-list{
  list-style:none;
  padding-left:0;
  margin:0;
}

.alerts-list li{
  position:relative;
  padding-left:1.35rem;
  margin:.55rem 0;
  color:rgba(255,255,255,.84);
  line-height:1.45;
}

.alerts-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.6rem;
  width:.55rem;
  height:.55rem;
  border-radius:50%;
  background:var(--accent);
}

.teacher-glass h3 i{ color:var(--accent); }
.teacher-glass-accent{ border-color:rgba(255,145,0,.55); }

.incident-quick{
  margin:0;
  padding-left:1.1rem;
  color:rgba(255,255,255,.84);
}

.incident-quick li{
  margin:.6rem 0;
  line-height:1.55;
}

/* FIX: pravý stĺpec ako pekný stack (potrebuje wrapper v PHP) */
.incident-side-stack{
  display:flex;
  flex-direction:column;
  gap:16px;
  height:100%;
}

.incident-side-stack .card-glass{
  margin:0 !important;
}

/* Do/Don't/After */
.teacher-miniRow{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}

.miniPanel{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 26px rgba(0,0,0,.10);
}

.miniPanel-title{
  color:#fff;
  font-weight:900;
  margin-bottom:10px;
  font-size:1.05rem;
}

.miniPanel-list{
  list-style:none;
  padding-left:0;
  margin:0;
}

.miniPanel-list li{
  padding:10px 0;
  border-bottom:1px dashed rgba(255,255,255,.18);
  color:rgba(255,255,255,.84);
  line-height:1.55;
}

.miniPanel-list li:last-child{ border-bottom:none; }

/* Responsive */
@media (max-width: 991px){
  .incident-stepper--teachers{
    grid-template-columns:1fr;
  }

  .teacher-miniRow{
    grid-template-columns:1fr;
  }
}

/* =========================================
   MODEL SITUATIONS
   ========================================= */
.case-card{
  border-radius:15px;
  overflow:hidden;
  border:1px solid #ddd;
  background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.10);
  padding:22px;
  transition:transform .3s ease, box-shadow .3s ease;
}

.case-card:hover{
  transform:translateY(-12px);
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}

#edu-scenarios .case-card{
  height:auto;
}

.case-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.case-tag{
  padding:6px 12px;
  border-radius:999px;
  background:var(--accent);
  color:#2c3e50;
  font-weight:800;
  font-size:.9rem;
}

.case-top i{
  color:rgba(44,62,80,.55);
  font-size:1.15rem;
}

.case-card h3{
  font-weight:900;
  color:#2c3e50;
  margin:0 0 8px 0;
  font-size:1.15rem;
}

.case-card p{
  color:#555;
  line-height:1.55;
  margin:0 0 12px 0;
}

.case-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.case-pill{
  padding:6px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(44,62,80,.12);
  color:#2c3e50;
  font-weight:800;
  font-size:.9rem;
}

.case-stack{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.case-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.case-box{
  border-radius:14px;
  border:1px dashed rgba(44,62,80,.18);
  background:rgba(255,145,0,.06);
  padding:12px;
}

.case-box-h{
  font-weight:900;
  color:#2c3e50;
  margin-bottom:4px;
}

.case-box-p{
  color:#555;
  line-height:1.55;
  margin:0;
}

/* details */
.edu-details{
  border-radius:15px;
  overflow:hidden;
  border:1px solid #ddd;
  background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.10);
  padding:18px 18px;
}

.edu-details summary{
  cursor:pointer;
  font-weight:900;
  color:#2c3e50;
  list-style:none;
}

.edu-details summary::-webkit-details-marker{ display:none; }

.edu-details summary::after{
  content:"+";
  float:right;
  color:rgba(44,62,80,.55);
  font-weight:900;
}

.edu-details[open] summary::after{ content:"–"; }

.edu-details-body{
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed rgba(44,62,80,.25);
}

.edu-details-item{ margin-bottom:12px; }
.edu-details-item:last-child{ margin-bottom:0; }

.edu-details-h{
  font-weight:900;
  color:#2c3e50;
  margin-bottom:2px;
}

.edu-details-p{
  color:#555;
  line-height:1.55;
  margin:0;
}

.case-miniGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.case-small .case-miniGrid{
  margin-top:12px;
}

.case-small .case-box{
  padding:10px;
}

.case-small .case-box-h{
  font-size:.98rem;
}

.case-small .case-box-p{
  font-size:.95rem;
}


/* Scroll to top */
.scroll-to-top{
  position:fixed;
  bottom:20px;               /* JS si to bude upravovať pri footeri */
  left:50%;
  transform:translateX(-50%) scale(.92);
  background-color:#FF9100;
  color:white;
  border:none;
  padding:10px 15px;
  border-radius:50%;
  font-size:20px;
  cursor:pointer;

  opacity:0;
  visibility:hidden;

  box-shadow:0 4px 6px rgba(0,0,0,.1);
  z-index:9999;

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease,
    background-color .2s ease;
  will-change: transform, opacity, bottom;
}

.scroll-to-top.show{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) scale(1);
}

.scroll-to-top:hover{
  background-color:#e07b00;
  transform:translateX(-50%) scale(1.05);
}

/* wide screens: keep scenarios readable */
@media (min-width: 1400px){
  #edu-scenarios .container{ max-width:1320px; }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 991px){
  .threats-stats .stat{ width:100%; }

  #edu-toolkit .container{ max-width:980px; }

  .teacher-card-wide{
    grid-template-columns:1fr;
  }

  .teacher-card-wide .teacher-icon{
    margin-bottom:14px;
  }

  .incident-stepper--teachers .step-item{
    flex:1 1 100%;
    min-width:auto;
  }

  .teacher-miniRow{ grid-template-columns:1fr; }

  .case-split{ grid-template-columns:1fr; }

  .case-miniGrid{ grid-template-columns:1fr; }
}

@media (max-width: 576px){
  .threats-hero .btn-primary,
  .threats-hero .btn-outline-light{
    width:100%;
  }

  .section-head .th-title{ font-size:2.4rem; }

  .incident-stepper{
    max-width:520px;
    gap:16px;
  }

  .step-item{
    flex:1 1 100%;
    min-width:auto;
    padding:22px 18px;
  }
}