/* ============================
   RESOURCES (Zdroje) — hub + ebooks + videos
   ============================ */

.resources-hero {
  padding: 120px 0 50px;
  background: linear-gradient(180deg, #F5F8FE 0%, #FFFFFF 100%);
  text-align: center;
}
.resources-hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: #253D85;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 16px auto 20px;
  max-width: 780px;
}
.resources-hero p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.resources-subhero {
  padding: 100px 0 40px;
  background: linear-gradient(180deg, #F5F8FE 0%, #FFFFFF 100%);
  text-align: center;
}
.resources-subhero h1 {
  font-size: 44px;
  font-weight: 800;
  color: #253D85;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 16px auto 16px;
  max-width: 720px;
}
.resources-subhero p {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.resources-breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
}
.resources-breadcrumb a { color: var(--gray-500); text-decoration: none; }
.resources-breadcrumb a:hover { color: #253D85; }
.resources-breadcrumb span { opacity: 0.4; margin: 0 6px; }

.resources-empty {
  text-align: center;
  color: var(--gray-500);
  padding: 80px 0;
  font-size: 17px;
}

/* ---------- HUB ---------- */
.resources-hub { padding: 40px 0 40px; }
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
@media (max-width: 860px) {
  .hub-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}
.hub-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  border: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(37,61,133,0.04) 100%);
  pointer-events: none;
}
.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -15px rgba(37,61,133,0.2);
}
.hub-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.hub-card--blog .hub-card-icon { background: #EEF2FF; color: #253D85; }
.hub-card--ebook .hub-card-icon { background: #FFF4EA; color: #E8732A; }
.hub-card--video .hub-card-icon { background: #FEE2E2; color: #DC2626; }
.hub-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #253D85;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.hub-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 22px;
}
.hub-cta {
  font-size: 14px;
  font-weight: 700;
  color: #253D85;
  display: inline-block;
  transition: transform .2s;
}
.hub-card:hover .hub-cta { transform: translateX(4px); }

/* ---------- E-BOOK LIST ---------- */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.ebook-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
}
.ebook-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(37,61,133,0.18);
}
.ebook-card-link { display: block; color: inherit; text-decoration: none; }
.ebook-card-cover {
  aspect-ratio: 16 / 9;
  background: #F5F8FE;
  overflow: hidden;
}
.ebook-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.ebook-card:hover .ebook-card-cover img { transform: scale(1.03); }
.ebook-card-body { padding: 24px 26px 28px; }
.ebook-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #253D85;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 10px;
}
.ebook-card-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 14px;
}
.ebook-card-meta {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 14px;
}
.ebook-card-cta {
  font-size: 14px;
  font-weight: 700;
  color: #E8732A;
}

/* ---------- E-BOOK DETAIL ---------- */
.ebook-hero { padding: 100px 0 40px; background: linear-gradient(180deg, #F5F8FE 0%, #FFFFFF 100%); }
.ebook-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}
.ebook-hero-badge {
  display: inline-block;
  background: #FFF4EA;
  color: #E8732A;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.ebook-hero-text h1 {
  font-size: 46px;
  font-weight: 800;
  color: #253D85;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 18px;
}
.ebook-hero-excerpt {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0 0 22px;
}
.ebook-hero-meta {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 26px;
}
.ebook-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.ebook-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #253D85;
  font-weight: 500;
}
.ebook-bullets svg { flex-shrink: 0; margin-top: 2px; }
.ebook-hero-cover {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ebook-hero-cover img {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(37,61,133,0.45), 0 10px 30px -10px rgba(37,61,133,0.2);
  transform: rotate(-2deg);
  transition: transform .3s;
}
.ebook-hero-cover img:hover { transform: rotate(0deg); }

/* ---------- FORM ---------- */
.ebook-form-section { max-width: 640px; margin: 0 auto 40px; }
.ebook-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 60px -20px rgba(37,61,133,0.18);
  border: 1px solid var(--gray-100);
}
.ebook-form-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #253D85;
  margin: 0 0 10px;
}
.ebook-form-card > p {
  font-size: 15px;
  color: var(--gray-600);
  margin: 0 0 24px;
}
.ebook-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.ebook-form .form-field { margin-bottom: 14px; }
.ebook-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #253D85;
  margin-bottom: 6px;
}
.ebook-form .req { color: #E8732A; }
.ebook-form .opt { font-weight: 400; color: var(--gray-400); font-size: 12px; text-transform: lowercase; }
.ebook-form input[type="text"],
.ebook-form input[type="email"],
.ebook-form input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-900);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.ebook-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,95,219,0.1);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  font-weight: 400 !important;
  margin: 16px 0 18px;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #253D85;
  cursor: pointer;
}
.form-consent a { color: #253D85; text-decoration: underline; }
.form-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: #253D85;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.form-submit-btn:hover:not(:disabled) {
  background: #1c2f68;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(37,61,133,0.35);
}
.form-submit-btn:disabled { opacity: 0.75; cursor: wait; }
.form-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}
.form-submit-btn.is-loading .form-submit-spinner { display: inline-block; }
.form-submit-btn.is-loading .form-submit-label { opacity: 0.7; }
@keyframes spinnerRotate { to { transform: rotate(360deg); } }
.form-note {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.5;
  margin: 14px 0 0;
}

.ebook-success {
  text-align: center;
  padding: 20px 10px 0;
}
.ebook-success-icon { font-size: 48px; margin-bottom: 12px; }
.ebook-success h3 { color: #253D85; margin: 0 0 8px; font-size: 22px; }
.ebook-success p { color: var(--gray-600); font-size: 14px; line-height: 1.6; margin: 0; }
.ebook-success a { color: #253D85; font-weight: 600; text-decoration: underline; }
.ebook-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 10px;
  color: #B91C1C;
  font-size: 14px;
}

/* ---------- CHAPTERS ---------- */
.ebook-chapters-section { padding: 40px 0 20px; }
.ebook-chapters-section h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #253D85;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .chapter-grid { grid-template-columns: 1fr; }
}
.chapter-card {
  min-width: 0;
  background: #F5F8FE;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-100);
  transition: transform .2s, box-shadow .2s;
}
.chapter-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(37,61,133,0.18); }
.chapter-num {
  font-size: 12px;
  font-weight: 700;
  color: #E8732A;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.chapter-title {
  font-size: 17px;
  font-weight: 700;
  color: #253D85;
  line-height: 1.3;
  margin: 0 0 6px;
}
.chapter-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .ebook-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .ebook-hero-text h1 { font-size: 34px; }
  .ebook-hero-cover img { max-width: 260px; }
  .ebook-form-card { padding: 28px; }
  .ebook-form .form-row { grid-template-columns: 1fr; }
  .resources-hero h1, .resources-subhero h1 { font-size: 36px; }
}

/* ---------- VIDEOS ---------- */
.video-channels {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  text-decoration: none;
  color: #253D85;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, transform .15s;
}
.channel-badge:hover { border-color: #253D85; transform: translateY(-2px); }
.channel-badge svg { flex-shrink: 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.video-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -15px rgba(37,61,133,0.18); }
.video-card-link { display: block; color: inherit; text-decoration: none; }
.video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f1b3d;
  overflow: hidden;
}
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s, opacity .2s; }
.video-card:hover .video-card-thumb img { transform: scale(1.04); opacity: 0.85; }
.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform .25s;
}
.video-card:hover .video-card-play { transform: scale(1.08); }
.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.video-card-body { padding: 18px 20px 22px; }
.video-lang {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.video-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #253D85;
  line-height: 1.35;
  margin: 0 0 8px;
}
.video-card-body p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- VIDEO LIGHTBOX ---------- */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(13, 20, 50, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-lightbox[hidden] { display: none !important; }
.video-lightbox:not([hidden]) { display: flex; }
.video-lightbox.is-open { opacity: 1; }
.video-lightbox-inner {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
}
.video-lightbox-embed,
.video-lightbox-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.video-lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ---------- VIDEO CARD (button variant) ---------- */
.video-card .video-card-link {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.video-card .video-card-link:focus-visible { outline: 3px solid #3B5FDB; outline-offset: 3px; }

.resources-empty-channels {
  text-align: center;
  padding: 60px 20px;
}
.resources-empty-channels > p {
  font-size: 17px;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.channel-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
