:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e40af;
  --secondary-color: #10b981;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --link: #334155;
  --link-hover: #0f172a;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --accent-orange: #f59e0b;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

*,
:before,
:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: #e5e7eb;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: "Nunito", sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.content-spacing {
  padding-top: 5rem;
}

.page-hero {
  padding-top: 2rem;
  padding-bottom: 1rem;
  text-align: center;
}

.page-hero p {
  font-size: 1.15rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  background-color: #fff;
  z-index: 1000;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navigation__logo {
  margin-bottom: 0;
  z-index: 1001;
}

.navigation__logo img {
  height: 2.2rem;
  width: auto;
  max-width: 13rem;
}

.navigation__wrapper {
  position: fixed;
  top: -100%;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
  padding-top: 5rem;
  transition: 250ms ease-out;
  height: 0;
  box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  display: none;
  overflow: auto;
}

.navigation__wrapper.active {
  display: block;
  top: 0;
}

.navigation__list {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  max-width: 100%;
  flex-direction: column;
  list-style: none;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.navigation__list li {
  padding: 0.5rem;
}

.navigation__list li:before {
  content: none;
}

.navigation__link {
  display: block;
  border-radius: 0.375rem;
  padding: 0.5rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.2s;
  font-size: 1.25rem;
  line-height: 1.5rem;
  margin-bottom: 0;
}

.navigation__link:hover {
  color: var(--link-hover);
}

/* Hamburger tlačítko */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger__line {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Animace hamburger ikony */
.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 7px);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/**********************************/

/* Container */
.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Images */
img {
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2rem, 1.7955rem + 0.9091vw, 2.5rem);
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(1.75rem, 1.6477rem + 0.4545vw, 2rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 1.1477rem + 0.4545vw, 1.5rem);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-gray);
}

p,
li,
a {
  font-size: clamp(1rem, 0.8977rem + 0.4545vw, 1.25rem);
}

strong {
  color: var(--text-dark);
  font-weight: 600;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/*Utils*/
.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 0.75rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-limit {
  max-width: 70ch;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Sections */
section {
  scroll-margin-top: 2rem;
  padding: 7rem 0;
  text-align: center;
}

section:not(:last-child) {
  position: relative;
  border-bottom: none;
}

section:not(:last-child)::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 1232px;
  /* Content width (1280px - 3rem padding) */
  height: 1px;
  background-color: var(--border-color);
  margin: 0 auto;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

section:last-child {
  padding-bottom: 0;
}

.reference-desc {
  background: #f0f9ff;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #4169e1;
}

/* Hero Section */
.hero-spacer {
  height: 5rem;
}

.hero-banner {
  margin-bottom: 0;
}

.hero-banner__bg {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 16px;
  overflow: hidden;
  padding: 6rem 2rem;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
}

.hero-banner__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero-desc {
  font-size: 1.375rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Logos Section */
.logos-section {
  padding: 3rem 0;
  text-align: center;
}

.logos-section .logos {
  margin: 0;
  padding-bottom: 0;
}

/* Safeguarding Intro - two columns */
.safeguarding-intro-section {
  padding: 4rem 0;
}

.safeguarding-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.safeguarding-intro__text {
  text-align: left;
}

.safeguarding-intro__text h2 {
  margin-top: 0;
}

.safeguarding-intro__text p {
  text-align: left;
}

.safeguarding-intro__video {
  text-align: left;
}

.safeguarding-intro__video h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.safeguarding-intro__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.safeguarding-intro__video .video-text-muted {
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

/* Welcome Section */
.welcome-section {
  background-color: var(--bg-light);
  padding: 3rem;
  border-radius: 12px;
  margin: 3rem 0;
}

.welcome-section h2 {
  color: var(--text-dark);
  margin-top: 0;
}

/* Video Container */
.video-container {
  margin: 3rem 0;
  text-align: center;
}

.video-container h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.video-container iframe {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.video-text-muted {
  font-size: 1rem;
}

/* Buttons */
.buttons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 1rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white !important;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.5;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: white;
  color: var(--text-dark);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-gray);
  background-color: var(--bg-light);
}

.btn-danger {
  background-color: #ef4444;
  color: white;
  border-color: #ef4444;
}

.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
}

.download-button,
.download-all-button {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: white !important;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-button span {
  font-size: 0.5rem;
}

.download-button:hover,
.download-all-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Lists */
ul {
  max-width: 42rem;
  margin: 0 auto;
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
  text-align: left;
}

ul li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: var(--text-gray);
}

ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

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

.numbered-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}

.numbered-list li::before {
  content: none !important;
  display: none !important;
}

.number-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: #1e40af;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid #1e40af;
}

/* Logos */
.logos {
  padding-bottom: 2rem;
  border-radius: 8px;
  margin: 2rem 0 3rem;
  text-align: center;
}

.logos-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Screenshots */
.screenshots {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem 0;
  text-align: center;
}

/* Vyhody Boxes */
.vyhody-box {
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 8px;
}

.vyhody-box h3 {
  margin-top: 0;
  color: var(--text-dark);
}

/* Pricing Table */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.price-option {
  background-color: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.price-option:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.price-option h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

.discount {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.highlight {
  border-color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
}

.best-deal {
  border-color: var(--secondary-color);
  background-color: rgba(16, 185, 129, 0.05);
  position: relative;
}

.best-deal::before {
  content: "💰 BEST OFFER";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Banner Table */
.table-container {
  max-width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
}

.banner-table {
  width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.banner-table thead {
  background-color: var(--primary-color);
  color: white;
}

.banner-table th,
.banner-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.banner-table td a {
  font-size: 1rem;
}

.banner-table th {
  font-weight: 600;
}

.banner-table tbody tr:hover {
  background-color: var(--bg-light);
}

.banner-table tbody tr:last-child td {
  border-bottom: none;
}

.banner-table thead tr th:last-child {
  text-align: right;
}

.banner-table tbody tr td:last-child a {
  margin-left: auto;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background-color: var(--bg-light);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-button {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background-color: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

/*Scroll top arrow button*/
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 3px solid white;
  border-right: 3px solid white;
  transform: rotate(-45deg);
  margin-top: 5px;
}

/*Lightbox*/
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-wrapper {
  display: flex;
  justify-content: center;
  max-height: calc(100% - 3rem);
  max-width: calc(100% - 10rem);
  overflow-y: auto;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  object-fit: contain;
}

.lightbox-close-wrapper {
  position: absolute;
  top: 18px;
  right: 24px;
}

.lightbox-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* HOTFIX: Force button text color on hover */
a.btn-primary:hover,
button.btn-primary:hover {
  color: #ffffff !important;
  text-decoration: none !important;
  background-color: var(--primary-dark) !important;
}



.lightbox-close:hover {
  color: #ccc;
}

/* Badges */
.recommended-badge-container {
  display: none;
  padding-left: 2rem;
  padding-top: 1rem;
  padding-bottom: 0.25rem;
  max-width: 42rem;
  margin: 0 auto;
  text-align: left;
}

.recommended-badge-mobile,
.recommended-badge {
  display: inline-block;
  background: linear-gradient(135deg, #4169e1 0%, #1e40af 100%);
  font-size: 0.85rem;
  color: white;
  padding: 6px 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
  position: relative;
}

.recommended-badge-mobile {
  border-radius: 6px;
}

.recommended-badge {
  float: left;
  margin-right: 30px;
  margin-left: -240px;
  border-radius: 6px 0 0 6px;
}

.recommended-badge-mobile::after,
.recommended-badge::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent transparent transparent #1e40af;
}

.recommended-badge-mobile::after {
  left: 1.5rem;
  bottom: -10px;
  border-width: 6px 0 6px 10px;
  rotate: 90deg;
}

.recommended-badge::after {
  top: 0;
  right: -20px;
  border-width: 18px 0 18px 20px;
}

/*Form*/
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-container {
  margin-bottom: 5rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.073);
  width: 100%;
  padding: 50px 40px;
  animation: fadeIn 0.6s ease-out;
}

.form-container form {
  max-width: 48rem;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-title {
  color: #333;
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
  text-align: left;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #00d4aa;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #999;
}

.submit-btn {
  width: fit-content;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #00d4aa 0%, #00a896 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 212, 170, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.success-message {
  display: none;
  background: #10b981;
  color: white;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  margin-top: 20px;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-message {
  display: none;
  background: #ef4444;
  color: white;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  margin-top: 20px;
}

/* Contact Info */
.text-limit {
  max-width: 70ch;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Sections */
section {
  scroll-margin-top: 2rem;
}

/* ... existing code ... */

/* Contact Info */
.contact-info {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 500px;
}

.contact-info p {
  margin-bottom: 1rem;
}

/*Footer*/
.footer-pattern {
  margin-bottom: -1rem;
}

.footer-container {
  padding: 8rem 1.5rem 1rem;
  background-color: var(--bg-light);
}

.footer p {
  text-align: center;
  margin-bottom: 0;
  font-size: 1rem;
}

/*Partner logos*/
.logos .scroll-content {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 67rem;
  overflow: hidden;
}

.scroll-content__inner {
  will-change: transform;
  white-space: nowrap;
  display: inline-flex;
}

.logos .scroll-content__inner a {
  margin-left: 2rem;
  margin-right: 2rem;
}

.scroll-content-logo img {
  max-width: initial;
  height: auto;
  width: 120px;
}

/*Screens*/
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item:before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.675);
  z-index: 100;
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.gallery-item:hover:before {
  opacity: 1;
}

.gallery-links-wrapper {
  display: none;
  position: absolute;
  z-index: 110;
  color: #fff;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.gallery-item:hover .gallery-links-wrapper {
  display: flex;
}

.gallery-item a:hover {
  text-decoration: none;
  color: #fff;
}

.gallery-link-mobile:hover {
  text-decoration: none;
}

.gallery-item img {
  max-width: 100%;
}

.gallery-link,
.gallery-button {
  color: #fff;
  margin-top: auto;
  margin-bottom: 0;
}

.gallery-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.125rem;
  background-color: #000;
  border-color: 1px solid #000;
  transition: 250ms ease-out;
  font-weight: 500;
}

.gallery-item .gallery-button:hover {
  transform: translateY(-1px);
}

.gallery-link-mobile,
.gallery-link {
  font-size: 0.875rem;
}

.gallery-link-mobile:hover .gallery-link-text,
.gallery-link:hover .gallery-link-text {
  text-decoration: underline;
}

.gallery-link-mobile {
  display: none;
}

.no-scroll {
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
  .recommended-badge-container {
    display: block;
  }

  .recommended-badge-mobile {
    display: inline-block;
  }

  .recommended-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .content-spacing {
    padding-top: 7rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__desc {
    font-size: 1rem;
  }

  .pricing-table {
    grid-template-columns: 1fr;
  }

  .welcome-section,
  .contact-form {
    padding: 1.5rem;
  }

  .video-container iframe {
    height: 250px;
  }

  .banner-table {
    font-size: 0.9rem;
  }

  .banner-table th,
  .banner-table td {
    padding: 0.75rem 0.5rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
  }

  .gallery-button {
    margin-top: initial;
  }

  .gallery-item {
    width: fit-content;
  }

  .hero-banner__bg {
    padding: 3rem 1.5rem;
    min-height: 300px;
  }

  .safeguarding-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .safeguarding-intro__text {
    text-align: center;
  }

  .safeguarding-intro__text p {
    text-align: center;
  }

  .safeguarding-intro__text .buttons-container {
    justify-content: center !important;
  }

  .safeguarding-intro__video {
    text-align: center;
  }

  .gallery-link-mobile {
    display: block;
    margin-bottom: 3rem;
    margin-top: 0.5rem;
  }

  .gallery-link {
    display: none;
  }

  .hero-desc {
    font-size: 1.175rem;
  }

  .lightbox-wrapper {
    max-width: calc(100% - 6rem);
  }
}

@media (max-width: 480px) {
  .cta-button {
    display: block;
    margin: 10px 0;
    text-align: center;
  }

  ul li {
    padding-left: 1.5rem;
    font-size: 0.95rem;
  }
}

/* Desktop Navigation */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .navigation__wrapper {
    position: static;
    display: block;
    height: auto;
    min-height: initial;
    width: 100%;
    padding-top: 0;
    background-color: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .navigation__list {
    display: flex;
    flex-direction: row;
    border-top: none;
    padding-top: 0;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
  }

  .navigation__list li {
    padding: 0;
  }

  /* Make sure main links take available space or stay standard, 
     but push the split section to the right */
  .desktop-split {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .navigation__link {
    font-size: 1rem;
    padding: 0.5rem 0.5rem;
    margin-bottom: 0;
    white-space: nowrap;
  }

  /* Styling buttons in nav differently */
  .navigation__link.cta-button {
    padding: 0.75rem 2rem;
    background-color: #dc2626;
    /* Red color */
    color: white !important;
    font-weight: 700;
    border-radius: 9999px;
    /* Pill shape */
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
  }

  .navigation__link.cta-button:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.4);
    text-decoration: none;
  }
}

/* 
=========================================
   COURSE PLATFORM STYLES (LMS)
=========================================
*/

/* Course Hero */
.course-hero {
  background-color: #1e3a8a;
  color: white;
  padding: 3rem 2.5rem 3rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.course-hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.course-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
  /* Override global h1 color */
}

.course-hero__desc {
  font-size: 1.15rem;
  max-width: 700px;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

/* Hero Info Pills */
.course-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.course-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.course-hero__pill svg {
  opacity: 0.8;
}

/* Hero Progress (enrolled users) */
.course-hero__progress {
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.course-hero__progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.course-hero__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #facc15, #fbbf24);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.course-hero__progress-text {
  font-size: 0.85rem;
  color: #93c5fd;
  margin-top: 6px;
  font-weight: 600;
}

.course-hero__overlay {
  position: absolute;
  right: -5%;
  top: -10%;
  width: 50%;
  height: 120%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-15deg);
  pointer-events: none;
}

/* Course Stats Bar */
.course-stats {
  background: white;
  border-bottom: 1px solid var(--border-color);
}

.course-stats__container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 1.5rem 1.5rem;
  color: var(--text-gray);
  font-weight: 500;
}

.course-stats__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Course Layout */
.course-layout {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .course-layout {
    grid-template-columns: 2fr 1fr;
  }

  .course-player-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
  }
}

/* Lesson List (Syllabus) */
.lesson-list {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.lesson-item {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
  text-decoration: none !important;
  /* Override global a link styles */
  color: var(--text-dark);
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-item:hover {
  background-color: #f8fafc;
}

.lesson-item.active {
  background-color: #eff6ff;
  border-left: 4px solid var(--primary-color);
}

.lesson-item__number {
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  color: var(--text-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 1.25rem;
  flex-shrink: 0;
}

.lesson-item.active .lesson-item__number {
  background: var(--primary-color);
  color: white;
}

.lesson-item__content {
  flex: 1;
}

.lesson-item__title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  display: block;
}

.lesson-item.active .lesson-item__title {
  color: var(--primary-color);
}

.lesson-item__meta {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.lesson-item__status {
  margin-left: 1rem;
  font-size: 1.2rem;
}

/* Sidebar Box (Instructor/Progress) */
.sidebar-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-box.sticky {
  position: sticky;
  top: 6rem;
  /* Account for fixed header */
}

/* Player Styles */
.player-wrapper {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.video-embed {
  aspect-ratio: 16/9;
  background: black;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lesson-content {
  padding: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
  max-width: 800px;
  /* Readability */
  margin: 0 auto;
}

/* Mobile Adjustments for Course Pages */
@media (max-width: 1023px) {
  .course-stats__container {
    gap: 1.5rem;
    flex-direction: column;
  }

  .course-layout,
  .course-player-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .course-player-layout {
    flex-direction: column-reverse;
  }

  .video-embed {
    border-radius: 12px 12px 0 0;
  }
}

/*
=========================================
   ACADEMY DESIGN (Responsiblo Style)
=========================================
*/

/* --- Academy Hero (Dashboard) --- */
.academy-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: white;
  padding: 3rem 2.5rem 2.5rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.academy-hero::after {
  content: "";
  position: absolute;
  right: -5%;
  top: -20%;
  width: 40%;
  height: 140%;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%);
  transform: skewX(-15deg);
  pointer-events: none;
}

.academy-hero h1 {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.academy-hero p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Stats row in hero */
.academy-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.academy-stat {
  text-align: center;
}

.academy-stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

.academy-stat__label {
  font-size: 0.85rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* --- Course Cards Grid --- */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.course-card__image {
  height: 180px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card__image-placeholder {
  font-size: 3.5rem;
  opacity: 0.3;
}

.course-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.course-card__badge--enrolled {
  background: #22c55e;
  color: white;
}

.course-card__badge--new {
  background: #f59e0b;
  color: white;
}

.course-card__badge--price {
  background: white;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.course-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.course-card__desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

/* Metadata badges row */
.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.meta-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Progress bar in course card */
.course-card__progress {
  margin-bottom: 1rem;
}

.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-bar__text {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
  font-weight: 600;
}

.course-card__action {
  display: block;
  text-align: center;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.course-card__action--primary {
  background: #2563eb;
  color: white;
}

.course-card__action--primary:hover {
  background: #1d4ed8;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.course-card__action--success {
  background: #16a34a;
  color: white;
}

.course-card__action--success:hover {
  background: #15803d;
  color: white;
  text-decoration: none;
}

.course-card__action--outline {
  background: white;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.course-card__action--outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  text-decoration: none;
}

/* Coming soon placeholder card */
.course-card--placeholder {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  text-align: center;
}

/* --- Course Detail with Sidebar (kurz.php) --- */
.academy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

@media (max-width: 1023px) {
  .academy-layout {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }
}

/* Left sidebar in course detail */
.academy-sidebar {
  position: sticky;
  top: 5rem;
}

.academy-sidebar__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0 0.75rem;
}

.academy-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.academy-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}

.academy-sidebar__link:hover {
  background: #f1f5f9;
  color: #1e293b;
  text-decoration: none;
}

.academy-sidebar__link--active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.academy-sidebar__link--active:hover {
  background: #dbeafe;
  color: #2563eb;
}

.academy-sidebar__icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.academy-sidebar__link--active .academy-sidebar__icon {
  background: #2563eb;
}

/* Course detail main area */
.course-detail {
  min-width: 0;
}

/* Chapter cards for course content */
.chapter-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.chapter-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.chapter-card__number {
  width: 36px;
  height: 36px;
  background: #2563eb;
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.chapter-card__info {
  flex: 1;
  min-width: 0;
}

.chapter-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
  line-height: 1.3;
}

.chapter-card__subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0;
}

.chapter-card__lessons {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.chapter-card__lessons li {
  padding: 0;
}

.chapter-card__lessons li::before {
  content: none;
}

.chapter-lesson {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #334155;
  transition: background 0.15s ease;
  gap: 0.75rem;
}

.chapter-lesson:last-child {
  border-bottom: none;
}

.chapter-lesson:hover {
  background: #f8fafc;
  text-decoration: none;
  color: #2563eb;
}

.chapter-lesson__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.chapter-lesson__icon--pending {
  background: #f1f5f9;
  color: #94a3b8;
}

.chapter-lesson__icon--completed {
  background: #dcfce7;
  color: #16a34a;
}

.chapter-lesson__title {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
}

.chapter-lesson__duration {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Sidebar instructor box refinement */
.sidebar-instructor {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  margin-top: 2rem;
}

/* --- Lesson Page Refinements --- */
.lesson-sidebar {
  background: white;
  border-right: 1px solid #e2e8f0;
  padding: 80px 0 1.5rem 0;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lesson-sidebar::-webkit-scrollbar {
  display: none;
}

/* Sidebar head */
.lesson-sidebar__head {
  font-size: 0.95rem;
  font-weight: 800;
  color: #2563eb;
  padding: 0.25rem 1rem 0.4rem;
}

/* Sidebar nav links (Akademie, Course) */
.lesson-sidebar__nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  padding: 0.4rem 1rem;
  transition: color 0.15s;
}

.lesson-sidebar__nav-link:hover {
  color: #2563eb;
  text-decoration: none;
}

.lesson-sidebar__course-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin-bottom: 0.25rem;
  background: #eff6ff;
  border-radius: 6px;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  transition: background 0.15s;
}

.lesson-sidebar__course-link:hover {
  background: #dbeafe;
  text-decoration: none;
}

.lesson-sidebar__chapters {
  padding-top: 0.25rem;
}

/* Sidebar chapter groups */
.lesson-sidebar__group {
  margin-bottom: 0.1rem;
}

.lesson-sidebar__group--active {
  margin-bottom: 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding-bottom: 0.4rem;
}

.lesson-sidebar__chapter {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 6px;
  margin: 0.15rem 0.5rem;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.lesson-sidebar__chapter:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  text-decoration: none;
}

.lesson-sidebar__chapter--active {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.82rem;
  padding-top: 0.6rem;
  margin: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  border: none;
}

.lesson-sidebar__chapter--active:hover {
  background: transparent;
  border: none;
  color: #0f172a;
}

.lesson-sidebar__ch-title {
  flex: 1;
}

.lesson-sidebar__ch-count {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 1px;
}

.lesson-sidebar__ch-icon {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 0.55rem;
  margin-top: 2px;
}

.lesson-sidebar__ch-icon--done {
  color: #16a34a;
}

.lesson-sidebar__chapter--active .lesson-sidebar__ch-icon {
  color: #2563eb;
}

.lesson-sidebar__item {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.65rem 0.35rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 1px;
  color: #475569;
  transition: all 0.15s ease;
  gap: 6px;
  line-height: 1.3;
}

.lesson-sidebar__item:hover {
  background: #e2e8f0;
  text-decoration: none;
  color: #1e293b;
}

.lesson-sidebar__item--active {
  background: #dbeafe;
  color: #2563eb;
  font-weight: 600;
}

.lesson-sidebar__item--active:hover {
  background: #bfdbfe;
}

.lesson-sidebar__check {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.5rem;
  font-size: 0.85rem;
}

.lesson-sidebar__check--done {
  color: #16a34a;
}

.lesson-sidebar__check--active {
  color: #2563eb;
}

.lesson-sidebar__check--pending {
  color: #cbd5e1;
}

/* Mobile lesson sidebar toggle */
.lesson-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #1e293b;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  gap: 8px;
  align-items: center;
}

.lesson-sidebar-toggle svg {
  width: 18px;
  height: 18px;
}

.lesson-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.lesson-sidebar-overlay.active {
  display: block;
}

@media (max-width: 1023px) {
  .academy-sidebar {
    position: static;
    display: none;
  }

  .academy-stats {
    gap: 1.5rem;
  }

  .academy-stat__number {
    font-size: 1.5rem;
  }

  .academy-grid {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar-toggle {
    display: inline-flex;
  }

  .lesson-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 1px solid #e2e8f0;
    padding-top: 1rem;
  }

  .lesson-sidebar.mobile-open {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .academy-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .course-card__meta {
    gap: 0.4rem;
  }

  .meta-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}