/* User base styles */
:root{
  --primary: #002142;
  --accent: #3498db;
  --bg-light: #f4f8fb;
  --bg-image-url: "assets/images/background.jpeg";
}
* {margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;}
html, body {height: 100%;}
body {line-height: 1.6; color: #333; background-color: var(--bg-light); background-image: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.84)), url(var(--bg-image-url)); background-repeat: no-repeat; background-position: center top; background-size: cover;}
.clickable {color: black; cursor: pointer; text-decoration: underline;}

/* Overlay for blur */
#blur-overlay {position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s ease; z-index: 9998;}
#blur-overlay.active {opacity: 1; visibility: visible; pointer-events: auto;}

/* Modal styling */
#image-modal {position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s ease; z-index: 9999; padding: 1rem;}
#image-modal.show {opacity: 1; visibility: visible; pointer-events: auto;}
.modal-content {position: relative; background: #fff; padding: 10px; border-radius: 8px; animation: fadeInScale 0.4s ease forwards; max-width: 90%;}
.modal-content img {width: 100%; height: auto; border-radius: 6px;}
#close-modal {position: absolute; top: 10px; right: 15px; font-size: 2rem; color: #333; cursor: pointer;}
@keyframes fadeInScale {from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;}}
@media (max-width: 768px) {.modal-content {max-width: 95%; padding: 8px;} #close-modal {font-size: 1.5rem;}}
@media (max-width: 480px) {.modal-content {max-width: 100%; padding: 6px;} .modal-content img {width: 100%; height: auto;}}
/* Reset and base styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  height: 100%;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: var(--bg-light);
  /* Local background image (responsive, low-contrast, bright motifs) */
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.84)),
    url(var(--bg-image-url));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.clickable {color: black; cursor: pointer; text-decoration: underline;}

/* Overlay for blur */
#blur-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9998;
}

#blur-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#image-modal {
    display: none; /* skryté úplne */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9999;
    padding: 1rem;
}

#image-modal.show {
    display: flex; /* zobrazí modal */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    animation: fadeInScale 0.4s ease forwards;
    max-width: 90%;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}

@keyframes fadeInScale {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

@media (max-width: 768px) {
    .modal-content {max-width: 95%; padding: 8px;}
    #close-modal {font-size: 1.5rem;}
}

@media (max-width: 480px) {
    .modal-content {max-width: 100%; padding: 6px;}
    .modal-content img {width: 100%; height: auto;}
}


/* Header styles */
header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 18px rgba(2,15,32,0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.logo > img {
  width: 40%;
  display: flex;
  align-items: center;
}

.logo-icon {
  margin-right: 10px;
  font-size: 2rem;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.25s, background 0.25s;
  border-radius: 4px;
}

nav ul li a:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.03);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Container / sections */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(11,22,40,0.06);
  overflow: hidden;
}

.section-inner {
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.section-title {
  text-align: center;
  margin-bottom: 1.25rem;
  color: #2c3e50;
  position: relative;
  padding-bottom: 5px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent);
}

/* Columns */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.column {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 18px rgba(2,15,32,0.06);
  flex: 1;
  min-width: 240px;
  position: relative;
}

/* decorative corner icon area to tie to background motif */
.column::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 56px;
  height: 56px;
  background-image: linear-gradient(135deg, rgba(52,152,219,0.08), rgba(0,33,66,0.06));
  border-radius: 8px;
  pointer-events: none;
}

.column h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

/* layouts */
.one-column .column {
  flex: 1 1 100%;
}

.two-columns .column {
  flex: 1 1 calc(50% - 1rem);
}

.three-columns .column {
  flex: 1 1 calc(32.333% - 1.33rem);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  text-align: left;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-section a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}

/* Utility cards & focus */
.content-card {
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(11,22,40,0.06);
}

a:focus, button:focus {
  outline: 3px solid rgba(52,152,219,0.25);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  body {
    background-size: cover;
  }
  .section-inner {
    padding: 1.5rem;
  }
  .logo > img {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .logo > img {
    width: 60%;
  }
  header {
    padding: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(44,62,80,0.96);
    padding: 1rem;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .two-columns .column,
  .three-columns .column {
    flex: 1 1 100%;
  }

  body {
    background-position: center top;
    background-size: cover;
  }
}

@media (max-width: 480px) {
  .logo > img {
    width: 60%;
  }

  .logo-icon {
    font-size: 1.7rem;
  }

  .container {
    padding: 0 0.5rem;
  }

  .column {
    padding: 1rem;
  }

  body {
    background-size: cover;
  }
}

/* small helper to slightly dim background under heavy content */
.bg-dim {
  background: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.98));
}