/*
 * ════════════════════════════════════════════
 * ELITEBIKER.SK — Custom CSS v3 pre Titan šablónu
 * Vložiť do: Admin → HTML kódy → Hlavička
 * Zabaliť do: <style> ... </style>
 * Limit: 8 192 znakov
 * ════════════════════════════════════════════
 */

/* ──────────────────────────────────────────
   SKRYŤ: Natívne bannery / carousel / články
   ────────────────────────────────────────── */
body.type-index .sliders,
body.type-index .hp-banners,
body.type-index .hp-banners-section,
body.type-index .banner-hp,
body.type-index .carousel-section,
body.type-index .banner-section,
body.type-index .hp-slider-section,
body.type-index .main-slider,
body.type-index #hp-banners,
body.type-index [data-hp-section="banners"],
body.type-index .hp-articles,
body.type-index .articles-hp,
body.type-index .article-list-hp,
body.type-index .hp-section-articles,
body.type-index [data-hp-section="articles"],
body.type-index .hp-blog,
body.type-index .blog-section-hp {
  display: none !important;
}

/* ──────────────────────────────────────────
   HERO SEKCIA
   Hlavný banner s carousel — plná šírka
   ────────────────────────────────────────── */
.eb-hero {
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
  min-height: 380px;
}

/* Ľavý veľký banner (≈65% šírky) */
.eb-hero-main {
  flex: 0 0 65%;
  position: relative;
 
  overflow: hidden;
  background: #0433ff;
  min-height: 380px;
}

/* Slides */
.eb-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 40px;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center;
}

.eb-hero-slide.is-active {
  opacity: 1;
}

/* Gradient overlay */
.eb-hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.18) 60%,
    transparent 100%
  );
}

.eb-hero-content {
  position: relative;
  z-index: 1;
}

.eb-hero-tag {
  display: inline-block;
  background: var(--color-primary, #0433ff);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
 
  margin-bottom: 10px;
}

.eb-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.eb-hero-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 20px;
}

.eb-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary, #0433ff);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 22px;
  
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}

.eb-hero-cta:hover {
  background: #0228cc;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* Navigačné bodky */
.eb-hero-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.eb-hero-dot {
  width: 8px;
  height: 8px;
 
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.eb-hero-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* ── Pravý stĺpec: mini-bannery (≈35%) ── */
.eb-hero-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eb-mini-banner {
  flex: 1;

  overflow: hidden;
  position: relative;
  min-height: 175px;
  background: #1e2a4a;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  transition: transform 0.18s;
}

.eb-mini-banner:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.eb-mini-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.05) 70%,
    transparent 100%
  );
}

.eb-mini-content {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
}

.eb-mini-badge {
  display: inline-block;
  background: var(--color-primary, #0433ff);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;

  margin-bottom: 5px;
}

.eb-mini-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  display: block;
}

.eb-mini-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-top: 3px;
}

/* ──────────────────────────────────────────
   MANIFESTO STRIP v4 — Bulletproof Flexbox Fix
   ────────────────────────────────────────── */
.eb-manifesto {
  display: flex !important;
  flex-direction: row !important; /* Na PC pekne vedľa seba */
  flex-wrap: wrap !important;
  gap: 16px !important;
  background: var(--color-primary, #0433ff) !important;
  padding: 20px !important;
  margin: 0 0 32px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(4, 51, 255, 0.15) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.eb-manifesto-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  background: #ffffff !important; /* Biele vnútro */
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  box-sizing: border-box !important;
  flex: 1 1 calc(25% - 12px) !important; /* Rozdelenie na 4 stĺpce na PC */
  min-width: 200px !important;
}

/* Kruh pod ikonou */
.eb-m-icon { 
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f0f2f8 !important; 
  border-radius: 50% !important;
  font-size: 18px !important;
}

/* Tmavé texty pre dokonalú čitateľnosť na bielej karte */
.eb-manifesto-item strong {
  display: block !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e1e1e !important; 
  line-height: 1.25 !important;
}

.eb-manifesto-item em {
  font-style: normal !important;
  display: block !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 11px !important;
  color: #666666 !important; 
  margin-top: 2px !important;
  line-height: 1.3 !important;
}

/* ──────────────────────────────────────────
   NEPRIESTRELNÝ RESPONSIVE PRE MOBIL (do 767px)
   ────────────────────────────────────────── */
@media screen and (max-width: 767px) {
  .eb-manifesto {
    flex-direction: column !important; /* STRATÉGICKÝ PRÍKAZ: Karty BUDÚ pod sebou */
    gap: 12px !important;
    padding: 16px !important;
  }
  
  .eb-manifesto-item {
    flex: 1 1 100% !important;
    width: 100% !important; /* Karta zaberie celú šírku modrého boxu */
    min-width: 0 !important;
    padding: 12px 14px !important;
  }

  .eb-m-icon {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }
}

/* ──────────────────────────────────────────
   RIDER TYPE FINDER
   ────────────────────────────────────────── */
.eb-finder {
  background: #ffffff;
  border: 1px solid #e8e8e8;

  padding: 36px 28px;
  text-align: center;
  margin: 0 0 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.eb-finder-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}

.eb-finder-title span { color: var(--color-primary, #0433ff); }

.eb-finder-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #888;
  margin: 0 0 24px;
}

.eb-rider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.eb-rider-btn {
  background: #f7f8fc;
  border: 1.5px solid #e0e4f0;
 
  padding: 18px 10px 14px;
  text-decoration: none;
  display: block;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.eb-rider-btn:hover {
  border-color: var(--color-primary, #0433ff);
  background: rgba(4,51,255,0.05);
  transform: translateY(-2px);
  text-decoration: none;
}

.eb-rider-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}

.eb-rider-label {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #1e1e1e;
  display: block;
  margin-bottom: 3px;
}

.eb-rider-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  color: #aaa;
  display: block;
}

/* ──────────────────────────────────────────
   TÍM SEKCIA — Kompaktná verzia s celými fotkami
   ────────────────────────────────────────── */
.eb-team { 
  max-width: 1430px;      
  margin: 0 auto 40px;    
  padding: 0 15px;        
  width: 100%;
  box-sizing: border-box;
}

.eb-team-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: #1e1e1e;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.eb-team-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #999;
  text-align: center;
  margin: 0 0 22px;
}

.eb-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.eb-person {
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.eb-person-photo {
  width: 100%;
  height: 280px;          /* Výrazne zmenšená výška, aby sekcia nebola obrovská */
  object-fit: contain;    /* Zobrazí fotku VŽDY celú bez akéhokoľvek orezania hlavy */
  object-position: center; 
  display: block;
  background: #f7f8fc;    /* Jemné sivasté pozadie, ktoré vyplní prípadné prázdne okraje okolo fotky */
  padding-top: 10px;      /* Drobná rezerva zvrchu, aby účes nebol nalepený na okraji */
}

.eb-person-body { padding: 18px 20px; }

.eb-person-name {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0 0 3px;
}

.eb-person-role {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary, #0433ff);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.eb-person-quote {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #777;
  line-height: 1.7;
  font-style: italic;
  border-left: 3px solid var(--color-primary, #0433ff);
  padding-left: 12px;
  margin: 0 0 16px;
}

.eb-person-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7f8fc;
  border: 1px solid #e0e4f0;
  
  padding: 7px 13px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #555;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.18s, color 0.18s;
}

.eb-person-contact:hover {
  border-color: var(--color-primary, #0433ff);
  color: var(--color-primary, #0433ff);
  text-decoration: none;
}

/* ──────────────────────────────────────────
   FLOATING CHAT TLAČIDLO
   ────────────────────────────────────────── */
.eb-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.eb-chat-bubble {
  background: #1e1e1e;
  color: #fff;
  padding: 9px 14px;
 
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  white-space: nowrap;
  animation: ebSlideIn 0.4s ease 2s both;
}

.eb-chat-btn {
  width: 52px;
  height: 52px;
  background: var(--color-primary, #0433ff);
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(4,51,255,0.4);
  transition: transform 0.18s, box-shadow 0.18s;
}

.eb-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(4,51,255,0.55);
}

@keyframes ebSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   MOBILE RESPONZÍVNOSŤ
   ════════════════════════════════════════ */

@media (max-width: 900px) {
  .eb-hero { flex-direction: column; min-height: auto; }
  .eb-hero-main { flex: none; min-height: 320px; }
  .eb-hero-side { flex-direction: row; }
  .eb-mini-banner { min-height: 140px; }
  .eb-team-grid { grid-template-columns: 1fr 1fr; }
  .eb-rider-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .eb-hero-main { min-height: 260px; }
  .eb-hero-slide { padding: 24px 20px; }
  .eb-hero-title { font-size: 20px; }
  .eb-hero-cta { font-size: 12px; padding: 9px 16px; }

  .eb-hero-side { flex-direction: row; gap: 8px; }
  .eb-mini-banner { min-height: 120px; }
  .eb-mini-title { font-size: 13px; }

  .eb-manifesto { padding: 12px 16px; }
  .eb-manifesto-item {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 8px 10px;
  }
  .eb-manifesto-item:last-child { border-bottom: none; }

  .eb-team-grid { grid-template-columns: 1fr; }

  .eb-rider-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .eb-finder { padding: 24px 16px; }

  .eb-chat-bubble { display: none; }
  .eb-chat-widget { bottom: 16px; right: 16px; }
}

@media (max-width: 420px) {
  .eb-hero-side { flex-direction: column; }
  .eb-manifesto-item { flex: 1 1 100%; }
  .eb-person-photo { height: 180px; }
  .eb-rider-btn { padding: 12px 6px 10px; }
  .eb-rider-icon { font-size: 20px; }
  .eb-rider-label { font-size: 11px; }
}