/*
Theme Name: Lekárska Mikrobiológia
Theme URI: https://lekarskamikrobiologia.uniba.sk/
Author: Lekárska Mikrobiológia / Liptáková Adriána a kolektív
Author URI: https://lekarskamikrobiologia.uniba.sk/
Description: Moderná, bezpečná a optimalizovaná WordPress téma pre Lekársku mikrobiológiu, inšpirovaná pôvodným dizajnom. Plne responzívna, bez závislosti na zraniteľných pluginoch. Obsahuje kazuistiky, videá, testy, rozhovor a interaktívny karusel recenzií.
Version: 2.1.6
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lekarskamikrobiologia
Tags: education, medical, responsive-layout, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   1. CSS Variables & Reset
   ========================================================================== */
:root {
  --color-primary: #003e53;
  --color-primary-dark: #002a38;
  --color-primary-light: #0d546e;
  --color-secondary: #e4bc36;
  --color-secondary-hover: #cfab2e;
  --color-accent: #2098d1;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-bg: #ffffff;
  --color-bg-light: #f7f9fb;
  --color-border: #e3e8ee;
  
  --font-sans: 'Roboto', 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-slab: 'Roboto Slab', Georgia, serif;
  
  --container-max-width: 1260px;
  --border-radius: 8px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--color-secondary);
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   2. Typography & Headings
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
  margin-bottom: 1.2rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   3. Header & Site Branding
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: top 0.2s ease;
}

/* Ochrana pred prekrytím WordPress Admin Barom po prihlásení */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
  gap: 16px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-branding .custom-logo,
.site-branding .theme-logo {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.site-branding .text-logo {
  display: flex;
  flex-direction: column;
}

.site-branding .site-title {
  font-size: 23px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.site-branding .site-title a {
  color: var(--color-primary);
}

.site-branding .site-title a:hover {
  color: var(--color-secondary);
}

.site-branding .site-description {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 2px 0 0 0;
  line-height: 1.2;
}

/* ==========================================================================
   4. Desktop Navigation
   ========================================================================== */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-navigation > ul > li {
  position: relative;
  flex-shrink: 0;
}

.main-navigation > ul > li > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.menu-icon {
  display: none !important;
}

.main-navigation .dashicons {
  display: none !important;
}

.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current_page_item > a {
  color: #d4a323;
  font-weight: 600;
  background-color: transparent;
}

/* Submenu Dropdowns */
.main-navigation ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: #f2f2f2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  border-radius: 0;
  border: none;
  padding: 6px 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  z-index: 100;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-navigation > ul > li:hover > ul.sub-menu,
.main-navigation > ul > li:focus-within > ul.sub-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.main-navigation ul.sub-menu li a {
  display: block;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #444444;
  border-left: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.main-navigation ul.sub-menu li a:hover,
.main-navigation ul.sub-menu li.current-menu-item a {
  color: #003e53;
  background-color: #e4e4e4;
  padding-left: 20px;
}

/* Dropdown arrow indicators */
.main-navigation li.menu-item-has-children > a::after {
  content: " \25BE";
  font-size: 0.7rem;
  margin-left: 2px;
  display: inline-block;
  vertical-align: middle;
}

/* Mobile Toggle Button (Strictly hidden on PC / desktop) */
.menu-toggle {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   5. Hero Banner Section
   ========================================================================== */
.hero-banner-section {
  position: relative;
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-banner-overlay {
  display: none;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-top: 30px;
  padding-bottom: 50px;
  padding-right: 8%;
}

.hero-slogan {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f7d452;
  margin-bottom: 40px;
  text-align: right;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000, 0 0 10px rgba(0, 0, 0, 0.7);
  max-width: 550px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-primary);
  color: #f7d452;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 2px;
  text-transform: none;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
  text-decoration: none;
  margin-right: 0;
  align-self: flex-end;
}

.hero-btn:hover {
  background-color: #f7d452;
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   6. Ribbon / Strip Sections
   ========================================================================== */
.promo-strip-section {
  background-color: #003e53;
  color: #ffffff;
  border: none;
  padding: 22px 0;
  position: relative;
  z-index: 4;
}

.promo-strip-section.teal-strip {
  background-color: #003e53;
  color: #ffffff;
}

.promo-strip-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.promo-strip-title {
  font-size: 1.6rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
}

.promo-strip-title b {
  font-weight: 700;
  color: #ffffff;
}

.strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e4bc36;
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.95rem;
}

.strip-btn:hover {
  background-color: #ffd447;
  color: #002c3b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.promo-strip-section.teal-strip .strip-btn:hover {
  background-color: #ffd24d;
}

/* ==========================================================================
   7. Alternating Feature Sections (Kazuistiky, Videá, Otestuj sa)
   ========================================================================== */
.feature-section {
  padding: 42px 0 46px 0;
  border: none;
  background-color: #f5f6f8;
}

.feature-section:nth-child(even) {
  background-color: #f5f6f8;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 48px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-col-text {
  flex: 1 1 48%;
}

.feature-col-image {
  flex: 1 1 52%;
}

.feature-col-text h3 {
  font-size: 1.85rem;
  font-weight: 500;
  color: #003e53;
  margin-bottom: 18px;
  position: relative;
}

.feature-col-text p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.68;
  margin-bottom: 24px;
}

.feature-image-wrapper {
  background: #ffffff;
  border: 6px solid #ffffff;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16), 0 3px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-height: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.feature-image-wrapper img {
  width: 100%;
  height: 238px;
  object-fit: cover;
  display: block;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #e4bc36;
  color: #ffffff;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 2px;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.btn-more:hover {
  background-color: #ffd447;
  color: #002c3b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   8. Interview / Video Section
   ========================================================================== */
.interview-section {
  padding: 45px 0 50px 0;
  background-color: #003e53;
  color: #ffffff;
}

.interview-header {
  text-align: center;
  margin-bottom: 28px;
}

.interview-title {
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.interview-row {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.interview-col-video {
  flex: 0 0 calc(50% - 18px);
  max-width: calc(50% - 18px);
}

.interview-col-text {
  flex: 0 0 calc(50% - 18px);
  max-width: calc(50% - 18px);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  background-color: #000000;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.interview-col-text p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: #ffffff;
  text-align: left;
  margin: 0;
  padding-top: 2px;
}

/* ==========================================================================
   9. Testimonials / Reviews Section ("Recenzie")
   ========================================================================== */
.reviews-section {
  padding: 70px 0 75px 0;
  background-color: #e5f0ec;
  position: relative;
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  margin-bottom: 35px;
}

.reviews-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #003e53;
  margin-bottom: 8px;
}

.reviews-divider {
  width: 45px;
  height: 3px;
  background-color: #003e53;
  margin: 0 auto;
  border-radius: 2px;
}

/* Carousel Container */
.reviews-carousel {
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  padding: 0 70px;
}

.carousel-slides-wrapper {
  overflow: hidden;
  position: relative;
  min-height: 310px;
}

.review-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
  width: 100%;
}

.review-slide.active {
  display: block;
  opacity: 1;
}

.review-card {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  position: relative;
  text-align: center;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-quotes-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 48px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-mark {
  position: absolute;
  display: inline-block;
  line-height: 1;
}

.quote-mark.quote-upper {
  top: 0;
  left: 0;
}

.quote-mark.quote-lower {
  bottom: 0;
  right: 0;
}

.quote-svg {
  width: 26px;
  height: 20px;
  fill: #58bfca;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.95;
  color: #4a5568;
  margin: 0;
  font-style: normal;
  text-align: center;
}

.reviewer-info {
  margin-top: 25px;
  padding-top: 0;
  border-top: none;
  text-align: center;
}

.reviewer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #003e53;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.reviewer-affiliation {
  font-size: 0.92rem;
  color: #4a5568;
  font-weight: 400;
  margin: 0;
}

/* Carousel Navigation Buttons - Clean Arrows matching screenshot */
.carousel-btn {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  background: none;
  border: none;
  box-shadow: none;
  color: #003e53;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn svg {
  width: 32px;
  height: 32px;
  stroke: #003e53;
  stroke-width: 3.5;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.carousel-btn:hover svg {
  stroke: var(--color-secondary);
  transform: scale(1.15);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

/* Dots matching screenshot: dark teal inactive, gold active */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 35px;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #003e53;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--color-secondary);
  transform: scale(1.2);
}

/* ==========================================================================
   10. Subpage / Single / Content Area Styles
   ========================================================================== */
.site-content {
  padding: 40px 0 60px 0;
  min-height: calc(100vh - 350px);
}

.entry-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-bg-light);
}

.entry-title {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin: 0;
}

.entry-meta {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

/* As in original custom CSS: h3 inside entry-content is gold #e4bc36 */
.entry-content h3 {
  color: var(--color-secondary) !important;
}

.entry-content ul,
.entry-content ol {
  margin: 1rem 0 1.5rem 1.8rem;
}

.entry-content li {
  margin-bottom: 0.4rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background-color: var(--color-bg-light);
  font-style: italic;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.entry-content table th,
.entry-content table td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
}

.entry-content table th {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
}

.entry-content table tr:nth-child(even) {
  background-color: var(--color-bg-light);
}

/* Atlas Grid Template */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.atlas-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.atlas-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.atlas-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 62, 83, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.atlas-card h4 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
}

.atlas-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

.atlas-btn {
  margin-top: 15px;
  display: inline-block;
  padding: 8px 18px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.atlas-card:hover .atlas-btn {
  background-color: var(--color-secondary);
  color: var(--color-primary-dark);
}

/* Post Archive Cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.post-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Pagination */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-weight: 600;
  color: var(--color-primary);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
  background-color: #0b1c24;
  color: #a0aec0;
  padding: 40px 0 30px 0;
  font-size: 0.92rem;
  border-top: 3px solid var(--color-primary);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  margin: 0;
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-secondary);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 2px solid #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   14. Novinky (News & Scientific Publications)
   ========================================================================== */
.novinky-page-wrapper {
  background-color: #f7f9fa;
  padding: 40px 0 70px 0;
  min-height: 70vh;
}

.novinky-page-title {
  font-size: 2.2rem;
  font-weight: 400;
  color: #333333;
  margin-bottom: 25px;
}

.novinky-article-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 40px 40px 35px 40px;
  margin-bottom: 35px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.novinky-article-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.novinky-article-type {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 14px;
}

.novinky-authors {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
}

.novinky-affiliations {
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 18px;
}

.novinky-citation {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 22px;
}

.novinky-citation a {
  color: #0284c7;
  text-decoration: none;
  word-break: break-all;
}

.novinky-citation a:hover {
  text-decoration: underline;
}

.novinky-abstract {
  font-size: 0.94rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 16px;
  text-align: justify;
}

.novinky-keywords {
  font-size: 0.92rem;
  color: #374151;
  margin-bottom: 26px;
}

/* Accordion Toggle Bar */
.novinky-toggle-bar {
  background-color: #003e53;
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 700;
  user-select: none;
  transition: background-color 0.2s ease;
}

.novinky-toggle-bar:hover {
  background-color: #004f6a;
}

.novinky-toggle-bar.active {
  border-radius: 3px 3px 0 0;
}

.novinky-toggle-chevron {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.25s ease;
  display: inline-block;
}

.novinky-toggle-bar.active .novinky-toggle-chevron {
  transform: rotate(90deg);
}

/* Expanded Content */
.novinky-expandable-content {
  display: none;
  border: 1px solid #dce4e8;
  border-top: none;
  padding: 30px 25px;
  background-color: #ffffff;
  border-radius: 0 0 3px 3px;
}

.novinky-expandable-content.open {
  display: block;
}

.novinky-expandable-content h3,
.novinky-expandable-content h3.section-heading-gold {
  color: #d4a017;
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}

.novinky-expandable-content h3:first-child,
.novinky-expandable-content h3.section-heading-gold:first-child {
  margin-top: 5px;
}

.novinky-expandable-content h4,
.novinky-expandable-content h4.subsection-heading-dark {
  color: #1f2937;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 10px;
}

.novinky-expandable-content p,
.novinky-expandable-content .html-p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 16px;
  text-align: justify;
}

.novinky-figure,
.novinky-expandable-content .html-fig-wrap,
.novinky-expandable-content .html-table-wrap {
  margin: 25px 0;
  text-align: center;
}

.novinky-figure img,
.novinky-expandable-content .html-fig-wrap img,
.novinky-expandable-content .html-table-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.novinky-figure figcaption,
.novinky-expandable-content .html-fig_description,
.novinky-expandable-content .html-table_wrap_discription {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4b5563;
  text-align: justify;
}

.novinky-expandable-content a {
  color: #005b7f;
  text-decoration: none;
}

.novinky-expandable-content a:hover {
  text-decoration: underline;
}

.novinky-expandable-content .html-notes {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.novinky-expandable-content .html-notes h3 {
  font-size: 1.1rem;
  color: #1f2937;
  margin-top: 10px;
  margin-bottom: 6px;
}

.novinky-expandable-content ol {
  padding-left: 24px;
  margin: 15px 0 25px 0;
}

.novinky-expandable-content li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 10px;
  word-break: break-word;
}

.novinky-meta-block {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
}

.novinky-meta-block p {
  margin-bottom: 8px;
}

.novinky-references {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.novinky-references h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
}

.novinky-references ol {
  padding-left: 24px;
  margin: 0;
}

.novinky-references li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 12px;
  word-break: break-word;
}

.novinky-references a {
  color: #0284c7;
  text-decoration: none;
}

.novinky-references a:hover {
  text-decoration: underline;
}

.novinky-separator {
  border: 0;
  height: 1px;
  background-color: #d1d5db;
  margin: 40px 0;
}

.back-to-top:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   12. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 769px) {
  .site-header .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .site-branding {
    gap: 8px;
  }
  .site-branding .site-title {
    font-size: 18px;
  }
  .site-branding .site-description {
    display: none;
  }
  .main-navigation > ul > li > a {
    padding: 8px 5px;
    font-size: 0.80rem;
  }
}

@media (max-width: 768px) {
  .site-branding {
    max-width: 70%;
  }
  
  .menu-toggle {
    display: block !important;
  }
  
  .main-navigation {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .main-navigation.is-open {
    display: flex;
  }
  
  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .main-navigation > ul > li > a {
    padding: 12px 10px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .main-navigation ul.sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    background-color: var(--color-bg-light);
    display: none;
    opacity: 1;
    transform: none;
    padding: 5px 0 5px 15px;
    border-left: 2px solid var(--color-secondary);
    margin: 5px 0 10px 10px;
  }
  
  .main-navigation li.menu-item-has-children.open-sub > ul.sub-menu {
    display: flex;
  }
  
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-col-text h3::after {
    margin-left: auto;
    margin-right: auto;
  }
  
  .interview-row {
    flex-direction: column;
  }
  
  .interview-col-video,
  .interview-col-text {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .reviews-carousel {
    padding: 0 35px;
  }
  
  .review-card {
    padding: 30px 25px;
  }
}

@media (max-width: 600px) {
  .site-branding .site-title {
    font-size: 19px;
  }
  
  .hero-slogan {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .hero-banner-content {
    align-items: center;
    text-align: center;
  }
  
  .promo-strip-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}



/* ==========================================================================
   Bakteriologia Accordion & Gallery Styles
   ========================================================================== */
.bakteriologia-page-wrapper {
  background-color: #f5f6f8;
  min-height: 80vh;
  padding-bottom: 60px;
}

.bakteriologia-hero-header {
  padding: 35px 0 16px 0;
}

.bakteriologia-page-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.bakteriologia-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.bakteriologia-accordion-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.bakteriologia-accordion-item {
  border-bottom: 1px solid #edf2f7;
}

.bakteriologia-accordion-item:last-child {
  border-bottom: none;
}

.bakteriologia-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 13px 20px;
  background: #fbfbfc;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.bakteriologia-accordion-header:hover {
  background-color: #f1f5f9;
}

.bakteriologia-accordion-header.active {
  background-color: #edf2f7;
}

.bakteriologia-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1;
  user-select: none;
}

.bakteriologia-accordion-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: #1a202c;
}

.bakteriologia-accordion-title i,
.bakteriologia-accordion-title em {
  font-style: italic;
}

.bakteriologia-accordion-content {
  padding: 24px 20px;
  background: #ffffff;
  border-top: 1px solid #edf2f7;
  animation: fadeInAccordion 0.25s ease;
}

@keyframes fadeInAccordion {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.bakteriologia-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.bakteriologia-gallery-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.bakteriologia-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.bakteriologia-gallery-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: zoom-in;
}

.bakteriologia-gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background: #f8fafc;
  overflow: hidden;
}

.bakteriologia-gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.bakteriologia-gallery-card:hover .bakteriologia-gallery-img-wrapper img {
  transform: scale(1.05);
}

.bakteriologia-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bakteriologia-gallery-card:hover .bakteriologia-gallery-overlay {
  opacity: 1;
}

.bakteriologia-zoom-icon {
  font-size: 1.8rem;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.bakteriologia-gallery-caption {
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

/* Lightbox Modal */
.bakteriologia-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bakteriologia-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.88);
  backdrop-filter: blur(4px);
}

.bakteriologia-lightbox-container {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bakteriologia-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.bakteriologia-lightbox-close:hover {
  color: #38bdf8;
  transform: scale(1.1);
}

.bakteriologia-lightbox-prev,
.bakteriologia-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  user-select: none;
}

.bakteriologia-lightbox-prev {
  left: 24px;
}

.bakteriologia-lightbox-next {
  right: 24px;
}

.bakteriologia-lightbox-prev:hover,
.bakteriologia-lightbox-next:hover {
  background: rgba(15, 23, 42, 0.95);
  color: #38bdf8;
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .bakteriologia-lightbox-prev { left: 8px; width: 40px; height: 40px; font-size: 1.5rem; }
  .bakteriologia-lightbox-next { right: 8px; width: 40px; height: 40px; font-size: 1.5rem; }
}

.bakteriologia-lightbox-content {
  text-align: center;
  max-width: 100%;
  max-height: 80vh;
}

.bakteriologia-lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  background: #111;
}

.bakteriologia-lightbox-caption {
  color: #f1f5f9;
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 500;
}

/* Atlas aliases for all sub-sections (Bakteriologia, Parazitologia, etc.) */
.atlas-page-wrapper { background-color: #f5f6f8; min-height: 80vh; padding-bottom: 60px; }
.atlas-hero-header { padding: 35px 0 16px 0; }
.atlas-page-title { font-size: 2.2rem; font-weight: 600; color: #2d3748; margin: 0; }
.atlas-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.atlas-accordion-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03); overflow: hidden; }
.atlas-accordion-item { border-bottom: 1px solid #edf2f7; }
.atlas-accordion-item:last-child { border-bottom: none; }
.atlas-accordion-header { width: 100%; display: flex; align-items: center; padding: 13px 20px; background: #fbfbfc; border: none; outline: none; cursor: pointer; text-align: left; transition: background-color 0.15s ease, color 0.15s ease; font-family: inherit; }
.atlas-accordion-header:hover { background-color: #f1f5f9; }
.atlas-accordion-header.active { background-color: #edf2f7; }
.atlas-accordion-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 14px; font-size: 1.25rem; font-weight: 700; color: #1a202c; line-height: 1; user-select: none; }
.atlas-accordion-title { font-size: 1.02rem; font-weight: 600; color: #1a202c; }
.atlas-accordion-title i, .atlas-accordion-title em { font-style: italic; }
.atlas-accordion-content { padding: 24px 20px; background: #ffffff; border-top: 1px solid #edf2f7; animation: fadeInAccordion 0.25s ease; }
.atlas-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.atlas-gallery-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; display: flex; flex-direction: column; }
.atlas-gallery-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08); border-color: #cbd5e1; }
.atlas-gallery-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; cursor: zoom-in; }
.atlas-gallery-img-wrapper { position: relative; width: 100%; height: 180px; background: #f8fafc; overflow: hidden; }
.atlas-gallery-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; display: block; }
.atlas-gallery-card:hover .atlas-gallery-img-wrapper img { transform: scale(1.05); }
.atlas-gallery-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.35); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; }
.atlas-gallery-card:hover .atlas-gallery-overlay { opacity: 1; }
.atlas-gallery-caption { padding: 12px 14px; font-size: 0.9rem; font-weight: 500; color: #334155; line-height: 1.4; background: #ffffff; flex-grow: 1; display: flex; align-items: center; }


/* ==========================================
   O Knihe Page Styling
   ========================================== */
.oknihe-page-wrapper {
  background-color: #f5f6f8;
  padding: 40px 0 60px 0;
  min-height: 80vh;
}

.oknihe-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.oknihe-main-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 45px 50px;
  margin-bottom: 40px;
}

.oknihe-page-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 35px;
}

.oknihe-top-grid {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 35px;
  align-items: start;
  margin-bottom: 40px;
}

.oknihe-author-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
}

.oknihe-author-col p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 25px;
}

.oknihe-author-col h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
}

.oknihe-divider {
  width: 50px;
  height: 2px;
  background-color: #cbd5e1;
  border: none;
}

.oknihe-disclaimer-col {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

.oknihe-book-cover-col img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.oknihe-book-cover-col img:hover {
  transform: translateY(-4px);
}

.oknihe-review-section {
  border-top: 1px solid #edf2f7;
  padding-top: 35px;
  margin-top: 15px;
}

.oknihe-review-section p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.oknihe-signature {
  text-align: right;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1e293b;
  margin: 30px 0 35px 0 !important;
}

.oknihe-order-btn-wrapper {
  text-align: center;
  margin: 40px 0 20px 0;
}

.oknihe-order-btn {
  display: inline-block;
  background-color: #00384d;
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 56, 77, 0.25);
  transition: all 0.25s ease;
}

.oknihe-order-btn:hover {
  background-color: #00506e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 56, 77, 0.35);
}

/* Video Section */
.oknihe-video-section {
  background-color: #00384d;
  border-radius: 8px;
  padding: 50px;
  margin-bottom: 40px;
  color: #ffffff;
}

.oknihe-video-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 35px;
  text-align: center;
}

.oknihe-video-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
}

.oknihe-video-player-wrapper video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: block;
}

.oknihe-video-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e2e8f0;
}

/* Award Section */
.oknihe-award-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 50px;
  margin-bottom: 30px;
}

.oknihe-award-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.oknihe-award-text h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oknihe-award-text h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.oknihe-award-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #334155;
}

.oknihe-award-img-wrapper {
  text-align: center;
}

.oknihe-award-img-wrapper img {
  max-width: 260px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.oknihe-award-img-wrapper img:hover {
  transform: scale(1.03);
}

.oknihe-copyright-bar {
  text-align: center;
  padding: 25px 0 10px 0;
  color: #64748b;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .oknihe-main-card, .oknihe-video-section, .oknihe-award-card {
    padding: 30px 20px;
  }
  .oknihe-top-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .oknihe-video-grid {
    grid-template-columns: 1fr;
  }
  .oknihe-award-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .oknihe-signature {
    text-align: left;
  }
}


/* ==========================================
   Errata Page Styling
   ========================================== */
.errata-page-wrapper {
  background-color: #f5f6f8;
  padding: 40px 0 60px 0;
  min-height: 80vh;
}

.errata-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.errata-page-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 25px;
}

.errata-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 45px 50px;
}

.errata-divider {
  border: 0;
  height: 1px;
  background-color: #94a3b8;
  margin: 30px 0;
}

.errata-item {
  margin: 25px 0;
}

.errata-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 20px;
}

.errata-formula-wrapper {
  margin: 25px 0;
  text-align: center;
}

.errata-formula-wrapper img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.errata-del {
  text-decoration: line-through;
  color: #ef4444;
  font-weight: 600;
}

.errata-ins {
  color: #16a34a;
  font-weight: 600;
}

@media (max-width: 768px) {
  .errata-card {
    padding: 30px 20px;
  }
  .errata-page-title {
    font-size: 1.8rem;
  }
  .errata-text {
    font-size: 0.95rem;
  }
}


/* ==========================================================================
   Audiovizuálne spracovanie knihy (Audio kniha)
   ========================================================================== */
.audio-page-wrapper {
  background-color: #f7f9fa;
  padding: 40px 0 80px;
  min-height: 80vh;
}

.audio-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.audio-page-title {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 25px;
}

.audio-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 40px 45px;
}

.audio-section {
  margin-bottom: 40px;
}

.audio-section:last-child {
  margin-bottom: 10px;
}

.audio-section-title {
  font-family: var(--font-body, "Roboto", -apple-system, sans-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 16px 0;
}

/* Audio Player Card */
.audio-player-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

/* Black Header Player */
.player-header {
  background: #000000;
  color: #ffffff;
  padding: 18px 24px 14px;
  position: relative;
}

.player-main-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.player-play-btn {
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
  padding: 0;
}

.player-play-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.04);
}

.player-play-btn svg {
  width: 24px;
  height: 24px;
}

.player-meta-box {
  flex: 1;
  min-width: 0;
}

.player-artist {
  font-size: 0.82rem;
  color: #a0aec0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.player-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-step-btn {
  background: transparent;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color 0.15s ease;
}

.player-step-btn:hover {
  color: #ffffff;
}

.player-step-btn svg {
  width: 18px;
  height: 18px;
}

.player-volume-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-vol-icon {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-vol-icon:hover {
  color: #ffffff;
}

.player-vol-icon svg {
  width: 17px;
  height: 17px;
}

.player-vol-bar {
  width: 65px;
  height: 5px;
  background: #475569;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.player-vol-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 3px;
  pointer-events: none;
}

/* Progress & Time */
.player-progress-area {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.player-progress-bar {
  flex: 1;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.player-progress-bar:hover {
  height: 6px;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: #38bdf8;
  border-radius: 2px;
  pointer-events: none;
}

.player-time-display {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-family: monospace, sans-serif;
  white-space: nowrap;
}

/* Playlist List */
.player-playlist {
  background: #ffffff;
  border-top: 1px solid #1e293b;
}

.player-playlist.has-scroll {
  max-height: 290px;
  overflow-y: auto;
}

.player-playlist::-webkit-scrollbar {
  width: 7px;
}

.player-playlist::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.player-playlist::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.player-playlist::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.playlist-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  border-bottom: 1px solid #edf2f7;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.playlist-item:last-child {
  border-bottom: none;
}

.playlist-item:hover {
  background-color: #f8fafc;
}

.playlist-item.active {
  background-color: #f1f5f9;
  border-left: 3px solid #0284c7;
}

.playlist-item-meta {
  flex: 1;
  min-width: 0;
  padding-right: 15px;
}

.playlist-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.playlist-item.active .playlist-item-title {
  color: #0369a1;
}

.playlist-item-artist {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-length {
  font-size: 0.85rem;
  color: #64748b;
  white-space: nowrap;
  font-weight: 500;
}

@media (max-width: 768px) {
  .audio-card {
    padding: 24px 16px;
  }
  .player-header {
    padding: 16px 16px 12px;
  }
  .player-play-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .player-artist, .playlist-item-artist {
    font-size: 0.75rem;
  }
  .player-title, .playlist-item-title {
    font-size: 0.88rem;
  }
  .player-progress-area {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .player-time-display {
    text-align: right;
  }
}


/* ==========================================
   Videa (Video Gallery) Page Styling
   ========================================== */
.videa-page-wrapper {
  background-color: #f5f6f8;
  min-height: 85vh;
  padding-bottom: 60px;
}

.videa-hero-header {
  padding: 35px 0 16px 0;
}

.videa-page-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.videa-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.videa-main-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  padding: 32px 30px;
}

.videa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.videa-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.videa-card:hover {
  transform: translateY(-4px);
}

.videa-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.videa-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.videa-card:hover .videa-thumb-wrapper img {
  transform: scale(1.04);
}

.videa-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.videa-card:hover .videa-play-overlay {
  opacity: 1;
}

.videa-play-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  padding-left: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.videa-card:hover .videa-play-badge {
  transform: scale(1.12);
  background: #0284c7;
}

.videa-info {
  padding-top: 12px;
}

.videa-title {
  font-size: 1.02rem;
  font-weight: 500;
  color: #334155;
  margin: 0 0 4px 0;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.videa-card:hover .videa-title {
  color: #0284c7;
}

.videa-meta {
  font-size: 0.86rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.videa-meta-icon {
  font-size: 0.78rem;
  color: #94a3b8;
  display: inline-block;
}

/* Interactive Video Player & Playlist Layout */
.videa-player-section {
  animation: fadeInPlayer 0.3s ease;
}

@keyframes fadeInPlayer {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.videa-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
}

.videa-back-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.videa-back-btn:hover {
  background: #e2e8f0;
  color: #0284c7;
  border-color: #0284c7;
}

.videa-active-category-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.videa-player-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.videa-video-wrapper {
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.videa-screen-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.videa-screen-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  display: block;
}

.videa-video-details {
  padding: 18px 20px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.videa-active-video-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.videa-active-video-desc {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.videa-playlist-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 560px;
}

.videa-playlist-header {
  padding: 14px 18px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.videa-playlist-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.videa-playlist-count {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.videa-playlist-items {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.videa-playlist-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
  cursor: pointer;
  transition: background-color 0.15s ease;
  gap: 12px;
}

.videa-playlist-item:last-child {
  border-bottom: none;
}

.videa-playlist-item:hover {
  background-color: #f1f5f9;
}

.videa-playlist-item.active {
  background-color: #e0f2fe;
  border-left: 3px solid #0284c7;
}

.videa-item-idx {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  min-width: 20px;
}

.videa-playlist-item.active .videa-item-idx {
  color: #0284c7;
}

.videa-item-body {
  flex-grow: 1;
}

.videa-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.35;
}

.videa-playlist-item.active .videa-item-title {
  color: #0369a1;
  font-weight: 600;
}

.videa-item-play-icon {
  font-size: 0.85rem;
  color: #94a3b8;
  opacity: 0.7;
}

.videa-playlist-item.active .videa-item-play-icon {
  color: #0284c7;
  opacity: 1;
}

@media (max-width: 992px) {
  .videa-player-layout {
    grid-template-columns: 1fr;
  }
  .videa-playlist-wrapper {
    max-height: 380px;
  }
}

@media (max-width: 768px) {
  .videa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .videa-main-card {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .videa-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   AIOVG Video Category Archive Styles (Screenshot Match)
   ========================================================================== */
.aiovg-category-view {
    padding: 30px 35px 50px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.aiovg-breadcrumbs {
    font-size: 13.5px;
    color: #777777;
    margin-bottom: 8px;
    font-family: inherit;
}

.aiovg-breadcrumbs a {
    color: #4a5568;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.aiovg-breadcrumbs a:hover {
    color: #1a365d;
}

.aiovg-breadcrumbs span {
    color: #2d3748;
    font-weight: 500;
}

.aiovg-videos-found {
    font-size: 13.5px;
    color: #718096;
    margin-bottom: 24px;
}

.aiovg-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

@media (max-width: 768px) {
    .aiovg-grid-2col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .aiovg-category-view {
        padding: 20px 16px;
    }
}

.aiovg-item-video {
    display: flex;
    flex-direction: column;
}

.aiovg-thumbnail {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aiovg-video-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.aiovg-video-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.aiovg-video-link:hover img {
    transform: scale(1.03);
    opacity: 0.95;
}

.aiovg-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.82);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.2;
    z-index: 2;
    letter-spacing: 0.3px;
}

.aiovg-play-icon-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.aiovg-svg-icon-play {
    width: 46px;
    height: 46px;
    fill: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
    opacity: 0.92;
}

.aiovg-video-link:hover .aiovg-play-icon-wrap {
    transform: translate(-50%, -50%) scale(1.12);
}

.aiovg-video-link:hover .aiovg-svg-icon-play {
    opacity: 1;
}

.aiovg-caption {
    padding-top: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.aiovg-title {
    margin: 0 0 6px 0;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;
}

.aiovg-link-title {
    color: #333333;
    text-decoration: none;
    transition: color 0.15s ease;
    display: block;
}

.aiovg-link-title:hover {
    color: #0b5394;
}

.aiovg-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    color: #718096;
    margin-top: 2px;
}

.aiovg-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #718096;
}

.aiovg-views svg {
    flex-shrink: 0;
    stroke: #718096;
}

.aiovg-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #718096;
}

.aiovg-category svg {
    flex-shrink: 0;
    stroke: #718096;
}

.aiovg-link-category {
    color: #718096;
    text-decoration: none;
    transition: color 0.15s ease;
}

.aiovg-link-category:hover {
    color: #0b5394;
    text-decoration: underline;
}

/* Video Modal */
.videa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.videa-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(2px);
}

.videa-modal-dialog {
    position: relative;
    width: 90%;
    max-width: 960px;
    background: #111827;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.videa-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.videa-modal-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.videa-modal-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.videa-modal-player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

.videa-modal-info {
    padding: 16px 20px;
    background: #1f2937;
}

.videa-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #f3f4f6;
    line-height: 1.4;
}


/* ==========================================================================
   Laboratórna diagnostika - PDF Preview Styles
   ========================================================================== */

.pdf-preview-hero-header {
    padding: 35px 0 16px 0;
}

.pdf-preview-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.pdf-preview-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.pdf-preview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 24px;
}

.pdf-preview-breadcrumbs {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 20px;
}

.pdf-preview-breadcrumbs a {
    color: #0088cc;
    text-decoration: none;
}

.pdf-preview-breadcrumbs a:hover {
    text-decoration: underline;
}

.pdf-preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

.pdf-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdf-preview-book-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.3;
}

.pdf-preview-book-info {
    font-size: 0.92rem;
    color: #718096;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pdf-preview-badges {
    display: none !important;
}

.pdf-preview-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pdf-badge-format {
    background: #ebf8ff;
    color: #2b6cb0;
}

.pdf-badge-pages {
    background: #f0fff4;
    color: #276749;
}

.pdf-badge-size {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.pdf-preview-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    line-height: 1.2;
}

.pdf-btn svg {
    flex-shrink: 0;
}

.pdf-btn-primary {
    background: #0088cc;
    color: #ffffff;
}

.pdf-btn-primary:hover {
    background: #006699;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.3);
}

.pdf-btn-secondary {
    background: #ffffff;
    color: #2d3748;
    border: 1px solid #cbd5e0;
}

.pdf-btn-secondary:hover {
    background: #edf2f7;
    color: #1a202c;
    border-color: #a0aec0;
}

.pdf-btn-fullscreen {
    background: #2d3748;
    color: #ffffff;
}

.pdf-btn-fullscreen:hover {
    background: #1a202c;
    color: #ffffff;
}

.pdf-frame-wrapper {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 800px;
    background: #525659;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
}

.pdf-frame-wrapper.is-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    border-radius: 0;
    min-height: 100vh;
}

.pdf-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.pdf-fallback-note {
    margin-top: 18px;
    padding: 12px 18px;
    background: #f7fafc;
    border-left: 4px solid #0088cc;
    font-size: 0.9rem;
    color: #4a5568;
    border-radius: 0 4px 4px 0;
}

.pdf-fallback-note a {
    color: #0088cc;
    text-decoration: underline;
    font-weight: 500;
}

.pdf-fallback-note a:hover {
    color: #005580;
}

@media (max-width: 850px) {
    .pdf-preview-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .pdf-preview-actions {
        width: 100%;
    }
    .pdf-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
    .pdf-frame-wrapper {
        height: 72vh;
        min-height: 520px;
    }
}


/* ==========================================================================
   Kazuistika - Bakteriológia Accordion Styles
   ========================================================================== */
.kazuistika-page-wrapper {
    background-color: #f8fafc;
    min-height: calc(100vh - 200px);
    padding-bottom: 60px;
}
.kazuistika-hero {
    background: linear-gradient(135deg, #003e53 0%, #002230 100%);
    color: #ffffff;
    padding: 40px 0 35px;
    margin-bottom: 25px;
}
.kazuistika-breadcrumbs {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}
.kazuistika-breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.kazuistika-breadcrumbs a:hover {
    color: #e4bc36;
}
.kazuistika-breadcrumbs .current {
    color: #ffffff;
    font-weight: 600;
}
.kazuistika-page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}
.kazuistika-page-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 750px;
    margin: 0;
    line-height: 1.5;
}
.kazuistika-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.kazuistika-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.kazuistika-search-wrap input {
    width: 380px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.kazuistika-search-wrap input:focus {
    border-color: #003e53;
}
.kazuistika-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kazuistika-count-badge {
    font-size: 0.88rem;
    color: #64748b;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
}
.btn-tool {
    background: #ffffff;
    border: 1px solid #003e53;
    color: #003e53;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-tool:hover {
    background: #003e53;
    color: #ffffff;
}
.kazuistika-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.kazuistika-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.2s ease;
}
.kazuistika-item.active {
    border-color: #003e53;
    box-shadow: 0 4px 14px rgba(0, 62, 83, 0.12);
}
.kazuistika-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.2s;
    user-select: none;
}
.kazuistika-header:hover {
    background: #f8fafc;
}
.kazuistika-item.active .kazuistika-header {
    background: #f0f7fa;
    border-bottom: 1px solid #e2e8f0;
}
.kazuistika-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.kazuistika-icon-toggle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #003e53;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}
.kazuistika-item .icon-minus {
    display: none;
}
.kazuistika-item .icon-plus {
    display: inline;
}
.kazuistika-item.active .icon-plus {
    display: none;
}
.kazuistika-item.active .icon-minus {
    display: inline;
}
.kazuistika-item-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}
.kazuistika-item.active .kazuistika-item-title {
    color: #003e53;
}
.kazuistika-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 15px;
}
.kazuistika-tag-author {
    font-size: 0.82rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}
.kazuistika-arrow {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: transform 0.2s;
}
.kazuistika-item.active .kazuistika-arrow {
    transform: rotate(180deg);
}
.kazuistika-body {
    padding: 24px 28px;
    background: #ffffff;
}
.kazuistika-meta-box {
    background: #f8fafc;
    border-left: 4px solid #003e53;
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 22px;
}
.kazuistika-meta-row {
    font-size: 0.92rem;
    color: #334155;
    margin-bottom: 4px;
}
.kazuistika-meta-row:last-child {
    margin-bottom: 0;
}
.kazuistika-meta-row strong {
    color: #003e53;
}
.kazuistika-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #003e53;
    margin: 0 0 12px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}
.kazuistika-story-section {
    margin-bottom: 26px;
}
.kazuistika-story-content {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #27272a;
    text-align: justify;
}
.kazuistika-story-content p {
    margin-bottom: 12px;
}
.kazuistika-story-content em {
    font-style: italic;
    color: #0f172a;
    font-weight: 500;
}
.kazuistika-questions-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}
.kazuistika-questions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.kazuistika-toggle-all-ans {
    background: none;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.kazuistika-toggle-all-ans:hover {
    background: #003e53;
    color: #ffffff;
    border-color: #003e53;
}
.kazuistika-qa-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.kazuistika-qa-item {
    background: #fbfcfe;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 18px;
}
.kazuistika-q-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 10px;
}
.kazuistika-q-badge {
    font-weight: 700;
    color: #003e53;
    font-size: 1rem;
    flex-shrink: 0;
}
.kazuistika-q-text {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.98rem;
    line-height: 1.5;
}
.kazuistika-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.kazuistika-ans-toggle {
    background-color: #003e53;
    color: #ffffff;
    border: none;
    padding: 7px 16px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.kazuistika-ans-toggle:hover,
.kazuistika-ans-toggle.active {
    background-color: #e4bc36;
    color: #1e293b;
}
.kazuistika-star {
    color: #e4bc36;
    font-size: 0.9rem;
}
.kazuistika-ans-toggle:hover .kazuistika-star,
.kazuistika-ans-toggle.active .kazuistika-star {
    color: #1e293b;
}
.kazuistika-ans-box {
    margin-top: 14px;
    border: 1px solid #fed7aa;
    background: #fffdfa;
    border-radius: 6px;
    padding: 16px 18px;
    border-left: 4px solid #e4bc36;
    animation: fadeInAns 0.2s ease-in;
}
@keyframes fadeInAns {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.kazuistika-ans-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kazuistika-ans-header {
    color: #b45309;
    font-size: 0.88rem;
    font-weight: 700;
}
.kazuistika-ans-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #1f2937;
}
.kazuistika-ans-content p {
    margin: 0 0 8px 0;
}
.kazuistika-ans-content p:last-child {
    margin-bottom: 0;
}
.kazuistika-ans-close {
    align-self: flex-start;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    transition: color 0.2s;
}
.kazuistika-ans-close:hover {
    color: #ef4444;
}

@media (max-width: 768px) {
    .kazuistika-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .kazuistika-search-wrap input {
        width: 100%;
    }
    .kazuistika-actions {
        justify-content: space-between;
    }
    .kazuistika-header {
        padding: 14px 16px;
    }
    .kazuistika-header-right {
        display: none;
    }
    .kazuistika-body {
        padding: 18px 16px;
    }
}

/* --- Kazuistika Pripravujeme Section --- */
.kazuistika-pripravujeme-wrapper {
    padding: 30px 0 60px;
}
.kazuistika-notice-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 60px 40px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
}
.kazuistika-notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #003e53, #00a896, #e4bc36);
}
.kazuistika-notice-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003e53;
    font-size: 40px;
    box-shadow: 0 6px 20px rgba(0, 62, 83, 0.12);
}
.kazuistika-status-pill {
    display: inline-block;
    background: #eef7f9;
    color: #007a8c;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid #cce5ea;
}
.kazuistika-notice-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem;
    color: #1a202c;
    margin: 0 0 12px;
    font-weight: 700;
}
.kazuistika-notice-subtitle {
    font-size: 1.3rem;
    color: #003e53;
    font-weight: 500;
    margin: 0 0 20px;
}
.kazuistika-notice-text {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 28px;
}
.kazuistika-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff8e6;
    border: 1px solid #f9df9b;
    color: #8f6200;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
}
.kazuistika-related-nav {
    max-width: 820px;
    margin: 0 auto;
}
.kazuistika-related-heading {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.kazuistika-nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.kazuistika-nav-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.kazuistika-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 62, 83, 0.1);
    border-color: #00a896;
}
.kazuistika-nav-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #00a896;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.kazuistika-nav-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #003e53;
    margin: 0 0 8px;
}
.kazuistika-nav-card-desc {
    font-size: 0.88rem;
    color: #718096;
    margin: 0 0 16px;
    line-height: 1.45;
}
.kazuistika-nav-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #003e53;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kazuistika-nav-card:hover .kazuistika-nav-card-link {
    color: #00a896;
}
.kazuistika-copyright-bar {
    text-align: center;
    color: #718096;
    font-size: 0.88rem;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #edf2f7;
}

/* ==========================================================================
   Prezentácie Styles
   ========================================================================== */

.prezentacie-hero {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 36px 0 24px 0;
    margin-bottom: 30px;
}

.prezentacie-breadcrumbs {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 12px;
}

.prezentacie-breadcrumbs a {
    color: #0088cc;
    text-decoration: none;
}

.prezentacie-breadcrumbs a:hover {
    text-decoration: underline;
}

.prezentacie-page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.prezentacie-page-desc {
    font-size: 1.05rem;
    color: #475569;
    margin: 0;
    max-width: 800px;
    line-height: 1.5;
}

.prezentacie-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    background: #f0f4f8;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #d0dce5;
}

.prezentacie-tab-btn {
    flex: 1 1 300px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #003e53;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.prezentacie-tab-btn:hover {
    background: #ffffff;
    color: #002b3a;
    border-color: #e4bc36;
    box-shadow: 0 2px 8px rgba(0, 62, 83, 0.12);
}

.prezentacie-tab-btn.active {
    background: #003e53;
    color: #ffffff;
    border-color: #e4bc36;
    box-shadow: 0 4px 12px rgba(0, 62, 83, 0.25);
}

.prezentacie-tab-icon {
    display: none !important;
}

.prezentacie-panel {
    display: none;
}

.prezentacie-panel.active {
    display: block;
    animation: fadeInPrezentacie 0.25s ease-in-out;
}

@keyframes fadeInPrezentacie {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Otestujte sa - Testovací systém a generátor testov
   ========================================================================== */

.lm-test-page-wrapper {
    background-color: #f5f6f8;
    min-height: 85vh;
    padding-bottom: 60px;
}

.lm-test-hero-header {
    padding: 35px 0 20px 0;
}

.lm-test-page-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.lm-test-page-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.lm-test-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Views switcher */
.lm-test-view {
    display: none;
}
.lm-test-view.active {
    display: block;
    animation: lmFadeIn 0.3s ease;
}

@keyframes lmFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Category 3x3 Grid (matches screenshot) */
.lm-test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.lm-test-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 220px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.lm-test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.lm-test-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    text-align: center;
}

.lm-test-card-title {
    color: #eab308;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
    letter-spacing: 0.3px;
}

.lm-test-card-btn {
    background-color: #003e53;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 7px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lm-test-card:hover .lm-test-card-btn {
    background-color: #0d5c78;
    transform: scale(1.04);
}

/* 2. Configuration Modal */
.lm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.lm-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}
.lm-modal-dialog {
    position: relative;
    background: #ffffff;
    width: 92%;
    max-width: 580px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 2;
    animation: lmModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes lmModalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.lm-modal-header {
    background: #003e53;
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.lm-modal-header h3 {
    margin: 0 0 4px 0;
    font-size: 19px;
    font-weight: 600;
    color: #ffffff;
}
.lm-modal-header p {
    margin: 0;
    font-size: 13px;
    color: #cbd5e1;
}
.lm-modal-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 0;
    margin-left: 12px;
}
.lm-modal-close-btn:hover {
    opacity: 1;
}

.lm-modal-body {
    padding: 24px;
}

.lm-form-group {
    margin-bottom: 22px;
}
.lm-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.lm-form-help {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 5px;
}

.lm-chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.lm-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lm-chip:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}
.lm-chip.active {
    background: #003e53;
    border-color: #003e53;
    color: #ffffff;
}

.lm-input-number {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.lm-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}
.lm-btn-primary {
    background: #003e53;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lm-btn-primary:hover {
    background: #0d546e;
}
.lm-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.lm-btn-secondary:hover {
    background: #e2e8f0;
}

/* 3. Test Runner UI */
.lm-test-runner-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 28px 32px;
    margin-bottom: 30px;
}

.lm-runner-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.lm-cat-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}
.lm-timer-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.lm-progress-wrapper {
    margin-bottom: 24px;
}
.lm-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}
.lm-progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.lm-progress-fill {
    height: 100%;
    background: #003e53;
    width: 0%;
    transition: width 0.25s ease;
}

/* Nav bubbles */
.lm-nav-bubbles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}
.lm-nav-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lm-nav-bubble:hover {
    background: #e2e8f0;
}
.lm-nav-bubble.current {
    background: #003e53;
    border-color: #003e53;
    color: #ffffff;
    transform: scale(1.1);
}
.lm-nav-bubble.answered:not(.current) {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

/* Question content */
.lm-question-box {
    margin-bottom: 26px;
}
.lm-q-header {
    margin-bottom: 16px;
}
.lm-q-title-wrap {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
}
.lm-q-number {
    color: #003e53;
    margin-right: 6px;
}

.lm-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lm-test-option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.lm-test-option-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.lm-test-option-item.selected {
    background: #f0fdf4;
    border-color: #86efac;
}

.lm-option-checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #003e53;
}

.lm-option-text {
    font-size: 14.5px;
    line-height: 1.45;
    color: #1e293b;
    flex-grow: 1;
}

/* Runner footer buttons */
.lm-runner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.lm-btn-nav {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lm-btn-nav:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.lm-btn-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lm-btn-nav.btn-highlight {
    background: #003e53;
    border-color: #003e53;
    color: #ffffff;
}
.lm-btn-nav.btn-highlight:hover {
    background: #0d546e;
}

.lm-btn-danger-sm {
    background: none;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lm-btn-danger-sm:hover {
    background: #fef2f2;
}

/* 4. Results & Detailed Error Review */
.lm-results-score-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 32px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
}

.lm-score-circle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.lm-score-pct {
    font-size: 44px;
    font-weight: 700;
    color: #003e53;
    line-height: 1;
    margin-bottom: 6px;
}
.lm-res-grade-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}
.lm-res-grade-pill.pass {
    background: #dcfce7;
    color: #166534;
}
.lm-res-grade-pill.fail {
    background: #fee2e2;
    color: #991b1b;
}

.lm-score-details h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #0f172a;
}
.lm-res-pass-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}
.lm-res-pass-text.pass { color: #16a34a; }
.lm-res-pass-text.fail { color: #dc2626; }

.lm-score-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
.lm-stat-item {
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.lm-stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}
.lm-stat-val {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.lm-score-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Detailed review list */
.lm-detailed-review-header {
    margin-bottom: 20px;
}
.lm-detailed-review-header h3 {
    font-size: 20px;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.lm-detailed-review-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.lm-review-question-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.lm-review-question-card.has-errors {
    border-left: 5px solid #ef4444;
}
.lm-review-question-card.is-all-correct {
    border-left: 5px solid #22c55e;
}

.lm-review-q-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.lm-review-q-title {
    font-size: 16px;
    line-height: 1.45;
    color: #0f172a;
}
.lm-review-q-status {
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}
.lm-review-q-status.status-correct {
    background: #dcfce7;
    color: #166534;
}
.lm-review-q-status.status-error {
    background: #fee2e2;
    color: #991b1b;
}

.lm-review-q-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lm-review-opt-item {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.45;
    border: 1px solid transparent;
}
.lm-review-opt-item.correct-checked {
    background: #f0fdf4;
    border-color: #86efac;
}
.lm-review-opt-item.correct-unchecked {
    background: #fafaf9;
    border-color: #e7e5e4;
}
.lm-review-opt-item.error-wrongly-checked {
    background: #fef2f2;
    border-color: #fca5a5;
}
.lm-review-opt-item.error-missed {
    background: #fffbeb;
    border-color: #fde68a;
}

.lm-review-opt-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.lm-review-opt-badge {
    font-size: 12px;
    font-weight: 600;
}
.lm-review-opt-badge.correct-checked { color: #166534; }
.lm-review-opt-badge.correct-unchecked { color: #57534e; }
.lm-review-opt-badge.error-wrongly-checked { color: #991b1b; }
.lm-review-opt-badge.error-missed { color: #b45309; }

.lm-review-truth-tag {
    font-size: 11.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
}
.lm-review-truth-tag.truth-pos {
    background: #dcfce7;
    color: #166534;
}
.lm-review-truth-tag.truth-neg {
    background: #f1f5f9;
    color: #475569;
}

.lm-review-opt-body {
    display: flex;
    gap: 8px;
    color: #1e293b;
}
.lm-review-check-marker {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.lm-review-check-marker.checked { color: #0284c7; }
.lm-review-check-marker.unchecked { color: #64748b; }

/* 5. History Section */
.lm-history-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.lm-history-header h3 {
    margin: 0 0 4px 0;
    font-size: 19px;
    color: #0f172a;
}
.lm-history-header p {
    margin: 0 0 20px 0;
    font-size: 13.5px;
    color: #64748b;
}

.lm-history-table-wrapper {
    overflow-x: auto;
}
.lm-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.lm-history-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #e2e8f0;
}
.lm-history-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.lm-hist-pct.pass { color: #16a34a; }
.lm-hist-pct.fail { color: #dc2626; }

.lm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.lm-badge-pass { background: #dcfce7; color: #166534; }
.lm-badge-fail { background: #fee2e2; color: #991b1b; }

.lm-btn-review-hist {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #003e53;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lm-btn-review-hist:hover {
    background: #003e53;
    color: #ffffff;
    border-color: #003e53;
}

.lm-history-footer {
    margin-top: 18px;
    text-align: right;
}
.lm-btn-secondary-sm {
    background: none;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}
.lm-btn-secondary-sm:hover {
    background: #f1f5f9;
    color: #334155;
}

.lm-history-empty {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
}
.lm-history-empty svg {
    margin-bottom: 8px;
    color: #cbd5e1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .lm-test-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lm-results-score-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lm-test-grid {
        grid-template-columns: 1fr;
    }
    .lm-score-stats-grid {
        grid-template-columns: 1fr;
    }
    .lm-runner-footer {
        flex-direction: column;
        gap: 12px;
    }
    .lm-runner-footer .lm-btn-nav {
        width: 100%;
    }
}

/* Extra styles for test preparation status and mix categories */
.lm-card-count-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.lm-card-count-badge.badge-preparing {
    background: #ea580c;
    color: #ffffff;
    border-color: #f97316;
}

.lm-test-card.is-preparing {
    opacity: 0.75;
    cursor: not-allowed;
}
.lm-test-card.is-preparing:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.lm-test-card-btn.btn-preparing {
    background-color: #64748b !important;
    cursor: not-allowed;
    opacity: 0.9;
}

/* Mix categories selection grid */
.lm-mix-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 6px;
}
.lm-mix-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}
.lm-mix-cat-item:hover {
    background: #f1f5f9;
}
.lm-mix-cat-item.selected {
    background: #f0fdf4;
    border-color: #86efac;
}
.lm-mix-cat-name {
    flex-grow: 1;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lm-mix-cat-badge {
    font-size: 11px;
    background: #e2e8f0;
    color: #475569;
    padding: 1px 6px;
    border-radius: 8px;
}

/* Review filters */
.lm-review-filters {
    display: flex;
    gap: 6px;
}
.lm-btn-review-filter {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lm-btn-review-filter:hover {
    background: #f1f5f9;
}
.lm-btn-review-filter.active {
    background: #003e53;
    border-color: #003e53;
    color: #ffffff;
}
.lm-review-q-cat {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    margin-left: 6px;
}

/* ==========================================================================
   Kontakt Page Styles
   ========================================================================== */
.kontakt-page-wrapper {
    background-color: #f7f9fb;
    padding: 35px 0 70px 0;
    min-height: calc(100vh - 320px);
}

.kontakt-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.kontakt-page-title {
    font-size: 2.1rem;
    font-weight: 500;
    color: #333333;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.kontakt-card {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 40px 45px;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 45px;
    align-items: start;
}

.kontakt-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.kontakt-divider {
    width: 55px;
    height: 3px;
    background-color: var(--color-primary, #003e53);
    margin-bottom: 28px;
}

.kontakt-section {
    margin-bottom: 26px;
}

.kontakt-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary, #003e53);
    margin: 0 0 10px 0;
}

.kontakt-email-text {
    font-size: 0.98rem;
    margin: 0;
    color: #333333;
}

.kontakt-email-link {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kontakt-email-link:hover {
    color: var(--color-accent, #2098d1);
    text-decoration: underline;
}

.kontakt-address {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #444444;
    margin: 0;
}

.kontakt-grant-section {
    margin-top: 36px;
    margin-bottom: 0;
    padding-top: 6px;
}

.kontakt-grant-text {
    font-size: 0.95rem;
    color: #333333;
    margin: 0;
    line-height: 1.5;
}

.kontakt-grant-text strong {
    font-weight: 700;
    color: var(--color-primary, #003e53);
}

.kontakt-map-col {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
}

.kontakt-map-col iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 991px) {
    .kontakt-card {
        grid-template-columns: 1fr;
        padding: 30px 24px;
        gap: 32px;
    }

    .kontakt-map-col {
        height: 340px;
    }
}

/* ==========================================================================
   Hefty Page Styles
   ========================================================================== */
.hefty-page-wrapper {
    background-color: #f7f9fb;
    padding: 35px 0 70px 0;
    min-height: calc(100vh - 320px);
}

.hefty-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.hefty-page-title {
    font-size: 2.1rem;
    font-weight: 500;
    color: #333333;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.hefty-card {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 45px 50px;
}

.hefty-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hefty-item {
    font-size: 15.5px;
    font-style: italic;
    color: #2c3e50;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 768px) {
    .hefty-card {
        padding: 30px 24px;
    }
    
    .hefty-item {
        font-size: 14.5px;
        gap: 14px;
    }
}

/* ==========================================================================
   Content Protection Gate (Lock Screen) Styles
   ========================================================================== */
.lm-gate-wrapper {
    background-color: #f7f9fb;
    padding: 60px 20px;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-gate-card {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 65px 50px;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.lm-gate-title {
    font-size: 30px;
    font-weight: 700;
    color: #003e53;
    margin: 0 0 24px 0;
    line-height: 1.25;
}

.lm-gate-desc {
    font-size: 15px;
    color: #666666;
    max-width: 680px;
    margin: 0 auto 38px auto;
    line-height: 1.65;
}

.lm-gate-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lm-gate-btn {
    display: inline-block;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lm-gate-btn-primary {
    background: #003e53;
    color: #ffffff;
    border: 2px solid #003e53;
}

.lm-gate-btn-primary:hover {
    background: #002a38;
    border-color: #002a38;
    color: #ffffff;
}

.lm-gate-btn-secondary {
    background: #f7f9fb;
    color: #003e53;
    border: 2px solid #003e53;
}

.lm-gate-btn-secondary:hover {
    background: #003e53;
    color: #ffffff;
}

/* ==========================================================================
   Login & Registration Form Styles (Matching Screenshot 2)
   ========================================================================== */
.lm-auth-page-wrapper {
    background-color: #f7f9fb;
    padding: 45px 0 80px 0;
    min-height: calc(100vh - 320px);
}

.lm-auth-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.lm-auth-card {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 50px 55px;
}

.lm-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.lm-auth-col-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.lm-auth-col-subtitle {
    font-size: 14px;
    color: #555555;
    margin: 0 0 30px 0;
}

.lm-form-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.lm-form-label {
    font-size: 14.5px;
    color: #333333;
    font-weight: 500;
}

.lm-form-control-wrapper {
    position: relative;
    width: 100%;
}

.lm-form-input {
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    font-size: 14.5px;
    border: 1px solid #b8cde3;
    border-radius: 3px;
    background-color: #ebf3fb;
    color: #2c3e50;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
}

.lm-form-input:focus {
    outline: none;
    border-color: #2098d1;
    background-color: #ebf3fb;
}

.lm-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    padding: 4px;
    display: flex;
    align-items: center;
}

.lm-password-toggle:hover {
    color: #2c3e50;
}

/* Strength indicator */
.lm-strength-wrapper {
    margin-top: -10px;
    margin-bottom: 20px;
}

.lm-strength-indicator {
    background: #eeeeee;
    border: 1px solid #dddddd;
    color: #555555;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 8px;
    border-radius: 3px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.lm-strength-indicator.weak {
    background: #ffebe8;
    border-color: #ffb3a7;
    color: #d9534f;
}

.lm-strength-indicator.medium {
    background: #fff8e1;
    border-color: #ffe082;
    color: #f0ad4e;
}

.lm-strength-indicator.strong {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #5cb85c;
}

/* Green Buttons matching screenshot 2 */
.lm-btn-green {
    background-color: #5cb85c;
    border: 1px solid #4cae4c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lm-btn-green:hover {
    background-color: #449d44;
    border-color: #398439;
}

.lm-login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.lm-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555555;
    cursor: pointer;
}

.lm-remember-me input {
    cursor: pointer;
}

.lm-auth-links {
    margin-top: 15px;
    font-size: 14px;
}

.lm-auth-links a {
    color: #5cb85c;
    text-decoration: none;
    font-weight: 500;
}

.lm-auth-links a:hover {
    text-decoration: underline;
}

/* Support note below both columns */
.lm-auth-support-note {
    margin-top: 55px;
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
    text-align: center;
    color: #4a5568;
    font-size: 14px;
}

.lm-auth-support-note p {
    margin: 4px 0;
}

.lm-auth-support-email {
    font-size: 15px;
    color: #2c3e50;
}

.lm-auth-alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.lm-auth-alert.error {
    background: #fdf2f2;
    border: 1px solid #f8b4b4;
    color: #9b1c1c;
    display: block;
}

.lm-auth-alert.success {
    background: #edf8f2;
    border: 1px solid #bcf0da;
    color: #03543f;
    display: block;
}

/* ==========================================================================
   Admin Book Codes Management Modal
   ========================================================================== */
.lm-codes-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lm-codes-modal.open {
    display: flex;
}

.lm-codes-modal-dialog {
    background: #ffffff;
    border-radius: 6px;
    max-width: 980px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.lm-codes-modal-header {
    background: #003e53;
    color: #ffffff;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lm-codes-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.lm-codes-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

.lm-codes-modal-close:hover {
    opacity: 1;
}

.lm-codes-modal-body {
    padding: 25px;
    overflow-y: auto;
    font-size: 14px;
}

.lm-codes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.lm-codes-table th,
.lm-codes-table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
    font-size: 13.5px;
}

.lm-codes-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.lm-code-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.lm-code-badge.free {
    background: #def7ec;
    color: #03543f;
}

.lm-code-badge.used {
    background: #fef08a;
    color: #854d0e;
}

.lm-code-badge.exhausted {
    background: #fde8e8;
    color: #9b1c1c;
}

.lm-admin-toolbar {
    display: none;
    margin-top: 25px;
    text-align: center;
}

.lm-admin-toolbar.is-admin {
    display: block !important;
}

.lm-admin-btn {
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    color: #475569;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lm-admin-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #64748b;
}

@media (max-width: 900px) {
    .lm-auth-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .lm-form-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .lm-strength-wrapper {
        margin-top: 0;
    }
    
    .lm-auth-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   Atlas & Bakteriológia Accordion Styles (Matching Screenshot)
   ========================================================================== */
.bakteriologia-accordion-card,
.atlas-accordion-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: visible !important;
  padding: 0 !important;
}

.bakteriologia-accordion-item,
.atlas-accordion-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  margin-bottom: 0 !important;
}

.bakteriologia-accordion-item:hover,
.atlas-accordion-item:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07) !important;
}

.bakteriologia-accordion-header,
.atlas-accordion-header {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  padding: 16px 22px !important;
  background: #ffffff !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: background-color 0.15s ease !important;
  font-family: inherit !important;
  border-radius: 6px !important;
}

.bakteriologia-accordion-header:hover,
.atlas-accordion-header:hover {
  background-color: #f8fafc !important;
}

.bakteriologia-accordion-header.active,
.atlas-accordion-header.active {
  background-color: #fbfcfd !important;
  border-bottom: 1px solid #edf2f7 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Okrúhle tmavomodré tlačidlo s bielym + z obrázka */
.bakteriologia-accordion-icon,
.atlas-accordion-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #003e53 !important;
  color: #ffffff !important;
  margin-right: 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  user-select: none !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.bakteriologia-accordion-header:hover .bakteriologia-accordion-icon,
.atlas-accordion-header:hover .atlas-accordion-icon {
  background: #002a38 !important;
  transform: scale(1.06) !important;
}

/* Nadpis položky: Streptococcus 1 / Acinetobacter... */
.bakteriologia-accordion-title,
.atlas-accordion-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #003e53 !important;
  letter-spacing: -0.2px !important;
}

.bakteriologia-accordion-title i,
.bakteriologia-accordion-title em,
.atlas-accordion-title i,
.atlas-accordion-title em {
  font-style: italic !important;
}

.bakteriologia-accordion-content,
.atlas-accordion-content {
  padding: 24px 22px !important;
  background: #ffffff !important;
  animation: fadeInAccordion 0.25s ease !important;
}



/* ==========================================================================
   Secure PDF Presentation Viewer (PDF.js Canvas - Anti-download)
   ========================================================================== */
.secure-pdf-viewer {
    background: #1e2530;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    margin-top: 10px;
}

.secure-pdf-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    background: #003e53;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.secure-pdf-controls-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.spdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1;
}

.spdf-btn:hover:not(:disabled) {
    background: #00a2c7;
    border-color: #00a2c7;
    color: #ffffff;
    transform: translateY(-1px);
}

.spdf-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.spdf-btn-fullscreen {
    background: #00a2c7;
    border-color: #00a2c7;
}

.spdf-btn-fullscreen:hover {
    background: #0088a8 !important;
    border-color: #0088a8 !important;
}

.spdf-page-indicator {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.spdf-page-input {
    width: 48px;
    padding: 4px 6px;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.spdf-page-input:focus {
    outline: none;
    border-color: #00a2c7;
    background: rgba(0, 0, 0, 0.55);
}

.spdf-zoom-level {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    min-width: 42px;
    text-align: center;
}

.spdf-badge-single {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
}

.secure-pdf-stage {
    position: relative;
    min-height: 540px;
    max-height: 80vh;
    overflow: auto;
    background: #1a202c;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
}

.secure-pdf-canvas-container {
    position: relative;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}

.spdf-canvas {
    display: block;
    max-width: none;
    pointer-events: none;
}

.spdf-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 32, 44, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 10;
}

.spdf-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #00a2c7;
    border-radius: 50%;
    animation: spdfSpin 0.8s linear infinite;
}

@keyframes spdfSpin {
    to { transform: rotate(360deg); }
}

.spdf-error {
    background: #742a2a;
    color: #fff5f5;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 0.92rem;
    text-align: center;
}

/* Fullscreen Mode */
.secure-pdf-viewer.is-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.secure-pdf-viewer.is-fullscreen .secure-pdf-stage {
    max-height: calc(100vh - 56px) !important;
    height: calc(100vh - 56px) !important;
    padding: 24px;
}

body.spdf-fullscreen-active {
    overflow: hidden !important;
}

/* Skrytie odznakov a upozornení */
.pdf-badge-protected,
.pdf-protected-notice,
.spdf-badge-single,
.pdf-preview-badges,
.prezentacie-panel .pdf-fallback-note {
    display: none !important;
}

/* Security toast notification */
.spdf-security-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #9b2c2c;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000000;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.spdf-security-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Anti-print: úplné zamedzenie tlače prezentácií */
@media print {
    .secure-pdf-viewer,
    .pdf-preview-card,
    .prezentacie-hero {
        display: none !important;
    }
    body::after {
        content: 'Tlač a sťahovanie prezentácií sú zakázané autorským zákonom.';
        display: block;
        padding: 40px;
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
        color: #c53030;
    }
}

@media (max-width: 768px) {
    .secure-pdf-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .secure-pdf-controls-group {
        justify-content: center;
    }
    .secure-pdf-stage {
        min-height: 420px;
        padding: 12px 6px;
    }
}
