*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,
body{
  font-family:"Inter",sans-serif;
  background:#f3f4f6;
  color:#1f2937;
  scroll-behavior:smooth;
  overflow-x: auto;
}

/* ===== HEADER ===== */

header{
  background:#00ABC8;
  color:white;
  min-height:86px;
  padding:.75rem 1.5rem;
  display:grid;
  grid-template-columns:120px 1fr auto;
  align-items:center;
  gap:1rem;
  position:relative;
  z-index:500;
}

.logo{
  width:120px;
}

.header-title{
  text-align:center;
  margin-left:0;
  padding:0 1rem;
}

.title-text{
  font-size:2.2rem;
  font-weight:900;
  color:white;
  line-height:1.1;
  letter-spacing:0.2px;
}

.menu-toggle{
  display:none;
  background:transparent;
  border:none;
  color:white;
  font-size:2rem;
  cursor:pointer;
}

.nav-wrapper{
  justify-self:end;
}

nav{
  display:flex;
  gap:1.5rem;
  align-items:center;
}

nav a{
  color:white;
  text-decoration:none;
  font-weight:600;
}

nav a:hover{
  opacity:.85;
}

/* ===== DROPDOWN ===== */

.dropdown{
  position:relative;
}

.dropdown::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:12px;
}

.dropdown-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  display:none;
  background:#00ABC8;
  min-width:220px;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.2);
  z-index:1000;
}

.dropdown-menu a{
  display:block;
  padding:.85rem 1rem;
  color:white;
}

.dropdown-menu a:hover{
  background:rgba(255,255,255,.15);
  opacity:1;
}

.dropdown:hover .dropdown-menu{
  display:block;
}

/* ===== HOMEPAGE SUBHEADER ===== */

.subheader{
  max-width:1100px;
  margin:1rem auto;
  background:#eaf6fb;
  text-align:center;
  padding:1.5rem;
  border-radius:12px;
}

.subheader-title{
  color:#00ABC8;
  font-size:1.3rem;
  font-weight:600;
  margin-bottom:1rem;
}

.subheader-image{
  width:100%;
  height:320px;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  object-fit:cover;
  display:block;
  border-radius:12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* ===== SUBHEADER - DETAIL PAGES ===== */

.subheader-kyberutoky,
.subheader-zranitelnosti{
  max-width:1100px;
  margin:1rem auto;
  position:relative;
  border-radius:12px;
  overflow:hidden;
}

.subheader-kyberutoky-image,
.subheader-zranitelnosti-image{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

.subheader-kyberutoky-title,
.subheader-zranitelnosti-title{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:4rem;
  color:white;
  font-weight:700;
  text-shadow:0 2px 10px rgba(0,0,0,.5);
  text-align:center;
  padding:0 1rem;
}

/* ===== MAIN ===== */

main{
  max-width:1100px;
  margin:0 auto;
  padding:3rem 2rem;
  background:white;
  border-radius:12px;
  box-shadow:0 4px 10px rgba(0,0,0,.05);
  text-align:left;
}

section{
  margin-bottom:3rem;
}

section:last-child{
  margin-bottom:0;
}

h2{
  font-size:2rem;
  margin-bottom:2rem;
  color:#00ABC8;
}

h3{
  font-size:1.35rem;
  margin-bottom:1rem;
  color:#00ABC8;
}

p{
  line-height:1.75;
  margin-bottom:1.25rem;
  text-align:left;
}

/* ===== META INFO ===== */

.attack-meta,
.vulnerability-meta{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:2.5rem;
}

.attack-meta p,
.vulnerability-meta p{
  background:#f0f2f4;
  padding:8px 14px;
  border-radius:6px;
  margin-bottom:0;
}

.attack-meta strong,
.vulnerability-meta strong{
  color:#00ABC8;
}

/* ===== BOX LAYOUT ===== */

.attack-layout,
.vulnerability-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  align-items:start;
  width:100%;
  max-width:100%;
}

.attack-description,
.attack-mitigation,
.vulnerability-description,
.vulnerability-mitigation{
  background:#f7f9fa;
  padding:24px;
  border-radius:10px;
  max-width:100%;
  overflow-wrap:break-word;
  word-break:break-word;
}

/* ===== TEXT IN BOXES ===== */

.attack-description p,
.attack-mitigation p,
.vulnerability-description p,
.vulnerability-mitigation p,
.attack-description li,
.attack-mitigation li,
.vulnerability-description li,
.vulnerability-mitigation li{
  text-align:left;
  line-height:1.7;
}

/* ===== ODRÁŽKY DETAIL PAGES ===== */

.attack-description ul,
.attack-mitigation ul,
.vulnerability-description ul,
.vulnerability-mitigation ul{
  list-style:none;
  margin:0 0 1.25rem 0;
  padding:0;
}

.attack-description li,
.attack-mitigation li,
.vulnerability-description li,
.vulnerability-mitigation li{
  position:relative;
  padding-left:1.5rem;
  margin-bottom:.75rem;
  
}

.attack-description li::before,
.attack-mitigation li::before,
.vulnerability-description li::before,
.vulnerability-mitigation li::before{
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:8px;
  height:8px;
  background:#00ABC8;
  border-radius:50%;
  transform:translateY(-50%);
}

.attack-description li ul,
.attack-mitigation li ul,
.vulnerability-description li ul,
.vulnerability-mitigation li ul{
  margin-top:.55rem;
  margin-bottom:0;
  padding-left:.25rem;
  
}

.attack-description li ul li,
.attack-mitigation li ul li,
.vulnerability-description li ul li,
.vulnerability-mitigation li ul li{
  margin-bottom:.45rem;
}

.attack-description li ul li::before,
.attack-mitigation li ul li::before,
.vulnerability-description li ul li::before,
.vulnerability-mitigation li ul li::before{
  width:7px;
  height:7px;
  border:2px solid #00ABC8;
  background:transparent;
}

/* ===== LINKS ===== */

a{
  color:#00ABC8;
}

.attack-description a,
.attack-mitigation a,
.vulnerability-description a,
.vulnerability-mitigation a{
  word-break:break-word;
}

/* ===== JOB LINKS ===== */

.job-link{
  color:#00ABC8;
  cursor:pointer;
  font-weight:600;
  text-decoration:none;
}

.job-link:hover{
  text-decoration:underline;
}

/* ===== MODAL LINKS ===== */

.modal-link{
  color:#00ABC8;
  cursor:pointer;
  font-weight:600;
  text-decoration:none;
  display:inline-block;
  line-height:1.5;
}

.modal-link:hover{
  text-decoration:underline;
}

html.dark-mode .job-link{
  color:#22c7df;
}

html.dark-mode .modal-link{
  color:#22c7df;
}

.aktualita-modal .modal-content ul{
  margin:0 0 1.5rem 0;
  padding-left:2rem;
}

.aktualita-modal .modal-content li{
  margin-bottom:.45rem;
  line-height:1.6;
  padding-left:.25rem;
}

.aktualita-modal .modal-content p + ul{
  margin-top:-.5rem;
}

/* ===== FORMS ===== */

form{
  margin-top:1.5rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
}

input,
textarea{
  width:100%;
  padding:.9rem 1rem;
  border:1px solid #d1d5db;
  border-radius:8px;
  font:inherit;
  background:white;
  color:#1f2937;
}

textarea{
  resize:vertical;
  min-height:120px;
}

button[type="submit"]{
  align-self:flex-start;
  background:#00ABC8;
  color:white;
  border:none;
  border-radius:8px;
  padding:.85rem 1.25rem;
  font:inherit;
  font-weight:600;
  cursor:pointer;
  transition:opacity .2s ease;
}

button[type="submit"]:hover{
  opacity:.9;
}

/* ===== MODALS ===== */

.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:1000;
  background:rgba(0,0,0,.6);
  padding:16px;
  overflow-y:auto;
}

.modal-content{
  width:min(900px, 100%);
  max-height:calc(100vh - 32px);
  margin:0 auto;
  background:#fff;
  color:#1f2937;
  border-radius:12px;
  padding:2rem;
  position:relative;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
  overflow-y:auto;
  box-sizing:border-box;
}

.close-modal{
  position:absolute;
  top:12px;
  right:16px;
  font-size:2rem;
  cursor:pointer;
  color:#6b7280;
}

body.modal-open{
  overflow:hidden;
}


.close-modal:hover{
  color:#111827;
}
@media (max-width:640px){
  .modal{
    padding:12px;
  }

  .modal-content{
    width:100%;
    max-height:calc(100vh - 24px);
    padding:18px;
  }
}
.inzerat-title{
  margin-bottom:1.5rem;
  color:#00ABC8;
}

.inzerat-section{
  margin-bottom:1.75rem;
}

.inzerat-section h3{
  margin-bottom:.75rem;
}

.inzerat-section ul{
  margin:0;
  padding-left:1.25rem;
  list-style:disc;
}

.inzerat-section li{
  margin-bottom:.45rem;
  line-height:1.7;
}

.inzerat-section p{
  margin-bottom:0;
}

/* ===== FORM POPUP ===== */

.form-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:1100;
}

.form-popup-content{
  max-width:500px;
  margin:10vh auto;
  background:white;
  border-radius:12px;
  padding:2rem;
  position:relative;
  box-shadow:0 15px 40px rgba(0,0,0,.25);
}

.form-popup-close{
  position:absolute;
  top:10px;
  right:14px;
  font-size:1.8rem;
  cursor:pointer;
  color:#6b7280;
}

/* ===== COOKIE BANNER ===== */

.cookie-banner{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  width:min(92%,700px);
  background:#1f2937;
  color:white;
  padding:1rem 1.25rem;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.cookie-banner button{
  background:#00ABC8;
  color:white;
  border:none;
  border-radius:8px;
  padding:.7rem 1rem;
  cursor:pointer;
  font-weight:600;
}

/* ===== LIST PAGES ===== */

.news-list{
  display:flex;
  flex-direction:column;
  gap:1.5rem;
}

.news-card{
  position: relative;
  overflow: hidden;
  background:#f7f9fa;
  border-radius:10px;
  padding:24px;
  padding-right:90px; /* místo pro pravý pruh */
  box-shadow:0 4px 10px rgba(0,0,0,.04);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  border:1px solid transparent;
}

.news-card-id{
  position:absolute;
  top:0;
  right:0;
  width:64px;
  height:100%;
  background:rgba(0, 171, 8, 0.5);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  font-weight:700;
  color:#fff;
}

.news-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 30px rgba(0,0,0,.16);
  border-color:#00ABC8;
}

.news-card h3{
  margin-bottom:.75rem;
}

.news-card-meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:1rem;
}

.news-card-meta span{
  background:#f0f2f4;
  padding:8px 14px;
  border-radius:6px;
  display:inline-block;
}

.news-card p{
  margin-bottom:1rem;
}

.news-card-actions{
  margin-top:1rem;
}

.read-more-btn{
  display:inline-block;
  background:#00ABC8;
  color:white;
  text-decoration:none;
  padding:.7rem 1.1rem;
  border-radius:8px;
  font-weight:600;
  transition:opacity .2s ease;
}

.read-more-btn:hover{
  background-color: #0093ad;
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.back-link{
  display:inline-block;
  margin-bottom:2rem;
  text-decoration:none;
  font-weight:600;
  color:#00ABC8;
}

.back-link:hover{
  text-decoration:underline;
}

/* ===== BUTTONS ===== */

#scrollTopBtn{
  position:fixed;
  bottom:30px;
  right:30px;
  background:#00ABC8;
  color:white;
  border:none;
  border-radius:50%;
  padding:.5rem .75rem;
  font-size:1.5rem;
  cursor:pointer;
  display:none;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
  z-index:900;
}

#themeToggleBtn{
  position:fixed;
  bottom:30px;
  left:30px;
  background:#4b5563;
  color:white;
  border:none;
  border-radius:50%;
  padding:.5rem .75rem;
  font-size:1.5rem;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
  z-index:900;
}

/* ===== FOOTER ===== */

footer{
  background:#1f2937;
  color:#d1d5db;
  text-align:center;
  padding:2rem;
  margin-top:4rem;
}

/* ===== DARK MODE ===== */

html.dark-mode{
  background:#1f2937;
  color:#f3f4f6;
}

html.dark-mode body{
  background:#1f2937;
  color:#f3f4f6;
}

html.dark-mode header{
  background:linear-gradient(to right,#111827,#374151);
}

html.dark-mode nav a{
  color:white;
}

html.dark-mode .dropdown-menu{
  background:#111827;
}

html.dark-mode .dropdown-menu a{
  color:white;
}

html.dark-mode .dropdown-menu a:hover{
  background:#374151;
  color:#00ABC8;
}

html.dark-mode .subheader-title{
 color:#00ABC8;
}

html.dark-mode main{
  background:#111827;
  color:#f3f4f6;
}

html.dark-mode h2,
html.dark-mode h3{
  color:#00ABC8;
}

html.dark-mode input,
html.dark-mode textarea{
  background:#1f2937;
  color:#f3f4f6;
  border-color:#374151;
}

html.dark-mode .modal-content,
html.dark-mode .form-popup-content{
  background:#111827;
  color:#f3f4f6;
}

html.dark-mode .cookie-banner{
  background:#111827;
}

html.dark-mode .job-link{
  color:#22c7df;
}

html.dark-mode .attack-meta p,
html.dark-mode .vulnerability-meta p{
  background:#374151;
  color:#f3f4f6;
}

html.dark-mode .attack-meta strong,
html.dark-mode .vulnerability-meta strong{
  color:#00ABC8;
}

html.dark-mode .attack-description,
html.dark-mode .attack-mitigation,
html.dark-mode .vulnerability-description,
html.dark-mode .vulnerability-mitigation{
  background:#f7f9fa;
  color:#111827;
}

html.dark-mode .attack-description *,
html.dark-mode .attack-mitigation *,
html.dark-mode .vulnerability-description *,
html.dark-mode .vulnerability-mitigation *{
  color:#111827;
}

html.dark-mode .attack-description h3,
html.dark-mode .attack-mitigation h3,
html.dark-mode .vulnerability-description h3,
html.dark-mode .vulnerability-mitigation h3{
  color:#00ABC8;
}

html.dark-mode .news-card{
  background:#f7f9fa;
  color:#111827;
}

html.dark-mode .news-card *{
  color:#111827;
}

html.dark-mode .news-card h3{
  color:#00ABC8;
}

html.dark-mode .news-card-meta span{
  background:#e5e7eb;
  color:#111827;
}

html.dark-mode .read-more-btn{
  color:white;
}

/* ===== MOBILE ===== */

@media(max-width:1024px){

  .menu-toggle{
    display:block;
  }

  .nav-wrapper{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#00ABC8;
    z-index:200;
  }

  .nav-wrapper.active{
    display:block;
  }

  nav{
    flex-direction:column;
    align-items:flex-start;
    padding:1rem;
  }

  .dropdown{
  width:100%;
}

.dropdown::after{
  display:none;
}

.dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  background:#00ABC8;
  min-width:200px;
  border-radius:8px;
  box-shadow:0 6px 20px rgba(0,0,0,0.15);
  display:none;
  flex-direction:column;
  padding:.5rem 0;
  z-index:999;
}

.dropdown-menu a{
  color:white;
  background-color: #00ABC8;
  padding:.6rem 1rem;
  display:block;
  font-weight:500;
}

.dropdown-menu a:hover{
  background:#0093ad;
}

  .attack-layout,
  .vulnerability-layout{
    grid-template-columns:1fr;
  }

  .subheader-title{
    font-size:1.4rem;
    padding:1rem;
  }

  .subheader-kyberutoky-title,
  .subheader-zranitelnosti-title{
    font-size:2rem;
  }

  main{
    padding:2rem 1.25rem;
  }
}

@media(max-width:640px){

  main,
.subheader-kyberutoky,
.subheader-zranitelnosti{
  width:100%;
  max-width:100%;
}

.attack-layout,
.vulnerability-layout{
  width:100%;
  max-width:100%;
}

.attack-description,
.attack-mitigation,
.vulnerability-description,
.vulnerability-mitigation{
  width:100%;
  max-width:100%;
}
  header{
    grid-template-columns:auto 1fr auto;
    gap:.75rem;
    padding:.75rem 1rem;
  }

  .logo{
    width:90px;
  }

  .title-text{
    font-size:1.2rem;
  }

  .subheader-image{
    height:220px;
  }

  .subheader-kyberutoky-image,
  .subheader-zranitelnosti-image{
    height:140px;
  }

  .subheader-kyberutoky-title,
  .subheader-zranitelnosti-title{
    font-size:1.5rem;
  }

  h2{
    font-size:1.5rem;
  }

  h3{
    font-size:1.15rem;
  }

  .attack-description,
  .attack-mitigation,
  .vulnerability-description,
  .vulnerability-mitigation,
  .news-card,
  .modal-content{
    padding:18px;
  }

  .cookie-banner{
    flex-direction:column;
    align-items:flex-start;
  }

  #scrollTopBtn{
    right:16px;
    bottom:16px;
  }

  #themeToggleBtn{
    left:16px;
    bottom:16px;
  }
}
.iocs-wrapper {
        margin-top: 24px;
        text-align: center;
      }

      .iocs-btn{
        display:inline-flex;
        align-items:center;
        gap:10px;
        background-color:#00ABC8;
        color:white;
        border:none;
        padding:16px 36px;
        border-radius:10px;
        font-size:18px;
        font-weight:700;
        cursor:pointer;
        transition:transform .2s ease, box-shadow .25s ease;
      }

      .iocs-icon{
        width:22px;
        height:22px;
        display:block;
      }

      .iocs-btn:hover{
        background-color:#0093ad;
        transform:translateY(-2px);
        box-shadow:0 8px 18px rgba(0,0,0,0.25);
      }

      .iocs-modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
      }

      .iocs-modal-content {
        background: #fff;
        width: 90%;
        max-width: 520px;
        margin: 10% auto;
        padding: 24px 28px;
        border-radius: 12px;
        position: relative;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
      }

      .iocs-modal-content h3 {
        margin-top: 0;
      }

      .iocs-modal-content ul {
        padding-left: 20px;
      }

      .iocs-modal-content li {
        margin-bottom: 10px;
      }

      .iocs-modal-content a {
        color: #1d4ed8;
        text-decoration: none;
      }

      .iocs-modal-content a:hover {
        text-decoration: underline;
      }

      .iocs-close {
        position: absolute;
        top: 10px;
        right: 14px;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        color: #444;
      }

      .iocs-close:hover {
        color: #000;
      }

      .news-card{
  position: relative !important;
  overflow: hidden !important;
  padding-right: 90px !important;
}

.news-card-id{
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 64px !important;
  height: 100% !important;
  background: #00abc8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  z-index: 5 !important;
}

.aktualita-item{
  display:flex;
  align-items:center;
  gap:16px;
  cursor:pointer;
  margin-bottom:1rem;
}

.aktualita-img{
  width:120px;
  height:80px;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(0,0,0,.12);
  flex-shrink:0;
}

.aktualita-item:hover .modal-link{
  text-decoration:underline;
}
.aktualita-link{
  background:#eaf6fb;
  border-left:5px solid #00ABC8;
  padding:14px 18px;
  border-radius:10px;
  cursor:pointer;
  margin-bottom:1.5rem;
  transition:all .2s ease;
}

.aktualita-link:hover{
  background:#d9f0f7;
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(0,0,0,.08);
}

.aktualita-link .modal-link{
  font-size:1.1rem;
  font-weight:700;
}

@media(max-width:640px){
  .aktualita-item{
    align-items:flex-start;
  }

  .aktualita-img{
    width:96px;
    height:70px;
  }
}

.modal-news-img{
  width:100%;
  max-height:320px;
  object-fit:cover;
  border-radius:12px;
  margin:0 0 1.5rem 0;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}

.aktualita-figure{
  margin:0;
  display:flex;
  flex-direction:column;
}

.aktualita-figure figcaption{
  font-size:.75rem;
  color:#6b7280;
  margin-top:.3rem;
  line-height:1.3;
}

.modal-news-figure{
  margin-bottom:1.5rem;
}

.modal-news-figure figcaption{
  font-size:.8rem;
  color:#6b7280;
  margin-top:.4rem;
}

html.dark-mode .aktualita-figure figcaption,
html.dark-mode .modal-news-figure figcaption{
  color:#d1d5db;
}
