/* Static-site fixes. The original theme and its visual proportions are retained. */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #36a8e0; outline-offset: 4px; }
[hidden] { display: none !important; }
#intro { background-position: center top; }
.navbar-toggle { cursor: pointer; }
.navbar-collapse.is-open { display: block; }
.navbar-nav > li.is-active > a { color: #66ccff; }
#detail p { line-height: 1.6; color: #bdbdbd; }
#detail a { color: #83d2f9; }
#program { scroll-margin-top: 90px; }
.card-img-top { width: 100%; max-width: 500px; height: auto; }
.rules-item { background: #fff; margin: 0 0 5px; border: 1px solid #ddd; border-radius: 4px; }
.rules-item summary { padding: 16px 20px; font-size: 18px; font-weight: 500; background: #f0f0f0; cursor: pointer; }
.rules-item[open] summary { color: #222; }
.rules-item .panel-body { padding: 24px 20px; }
.gallery { position: relative; background: #222; width: 100%; }
.gallery-slide img { display: block; width: 100%; height: auto; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 24px; position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 30px; background: rgba(0,0,0,.75); color: white; }
.gallery-controls button { width: 44px; height: 44px; padding: 0; border: none; background: transparent; color: white; font-size: 32px; line-height: 1; }
.gallery-counter { white-space: nowrap; min-width: 50px; text-align: center; }
#sponsors > .container > .row { display: flex; flex-wrap: wrap; align-items: flex-start; }
#sponsors > .container > .row:before, #sponsors > .container > .row:after { display: none; }
#sponsors img { max-height: 240px; object-fit: contain; }
#contact .email-note { font-size: 13px; line-height: 1.5; margin: 16px 0; }
#contact .email-submit input { width: 100%; padding: 10px 14px; letter-spacing: .5px; font-size: 14px; }
#contact .contact_detail { padding-bottom: 50px; }
.email-direct { padding: 16px; background: white; text-align: center; font-size: 13px; }
.language-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; margin: 20px 0; }
.language-switch a { font-size: 14px; }
.language-switch [aria-current] { color: #c5323e; font-weight: bold; border-bottom: 2px solid currentColor; }
.go-top { display: none; }
.go-top.is-visible { display: block; }
.privacy-page { max-width: 960px; padding: 36px 24px; margin: auto; }
.privacy-page h1 { font-size: 30px; }
@media (min-width: 1200px) { html[lang="ro"] .navbar-brand { font-size: 20px; } }
@media (min-width: 768px) and (max-width: 991px) {
  .custom-navbar { padding: 0; background: #101010; }
  .navbar-header { float: none; }
  .navbar-toggle { display: block; }
  .navbar-collapse.collapse { display: none !important; }
  .navbar-collapse.is-open { display: block !important; }
  .navbar-nav, .navbar-nav > li { float: none !important; }
  .navbar-nav { margin: 8px 0; }
  .custom-navbar .nav li a { font-size: 13px; line-height: 24px; }
}
@media (max-width: 1199px) and (min-width: 768px) {
  .custom-navbar .navbar-brand { font-size: 19px; padding-right: 8px; }
  .custom-navbar .nav li a { padding-left: 8px; padding-right: 8px; font-size: 10px; letter-spacing: 0; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 70px; }
  .custom-navbar .navbar-brand { max-width: calc(100% - 65px); padding-top: 15px; font-size: clamp(14px,4.5vw,20px); line-height: 20px; height: auto; }
  .custom-navbar .nav li a { line-height: 24px; font-size: 13px; }
  .navbar-collapse { max-height: calc(100svh - 60px); }
  #intro { height: 100svh; min-height: 540px; padding: 90px 0 40px; background-position: center top; background-attachment: scroll !important; }
  #intro h1 { font-size: clamp(27px,7vw,36px); line-height: 1.2; letter-spacing: 1px; }
  #intro h3 { font-size: 20px; line-height: 1.4; letter-spacing: 1px; }
  #intro .btn { margin-right: 0; }
  #overview { padding: 70px 0; }
  #detail, #video, #speakers, #sponsors, #contact, footer { padding: 60px 0; }
  #overview p, #contact p { font-size: 14px; }
  #contact { background-attachment: scroll; }
  #contact .contact_detail { margin-top: 35px; padding: 32px 24px; }
  #contact .btn { white-space: normal; padding: 14px 24px; }
  #sponsors .col-xs-8 { width: 100%; }
  .gallery-controls { bottom: 8px; gap: 10px; padding: 0 8px; }
  .rules-item summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Compact header language control; links also work without JavaScript. */
.custom-navbar > .header-layout { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; align-items: center; }
.custom-navbar > .header-layout::before, .custom-navbar > .header-layout::after { display: none; }
.header-layout > .navbar-brand { float: none; padding-left: 0; padding-right: 0; }
.header-actions { display: flex; align-items: center; gap: 6px; grid-column: 3; grid-row: 1; }
.locale-picker { position: relative; color: #fff; flex: 0 0 auto; }
.locale-picker > summary { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 8px; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 600; user-select: none; }
.locale-picker summary::-webkit-details-marker { display: none; }
.locale-picker > summary .locale-icon { font-size: 19px; }
.locale-picker > summary .locale-arrow { font-size: 12px; transition: transform .15s; }
.locale-picker[open] > summary .locale-arrow { transform: rotate(180deg); }
.locale-picker > summary:hover, .locale-picker[open] > summary { background: rgba(255,255,255,.12); }
.locale-picker .language-switch { position: absolute; top: calc(100% + 8px); right: 0; min-width: 166px; display: flex; flex-direction: column; gap: 2px; padding: 6px; margin: 0; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.22); border: 1px solid #e8e8e8; border-radius: 8px; z-index: 1100; }
.locale-picker .language-switch a { display: block; padding: 10px 12px; line-height: 22px; color: #333; border-radius: 4px; font-size: 14px; text-transform: none; letter-spacing: 0; }
.locale-picker .language-switch a:hover { background: #f6f6f6; }
.locale-picker .language-switch a[aria-current] { border: none; background: #fff0f1; color: #b92d38; }
@media (min-width: 1200px) {
  .header-layout #main-menu { display: flex !important; align-items: center; justify-content: flex-end; padding: 0; min-width: 0; }
  .header-layout .navbar-nav { display: flex; float: none !important; margin: 0; }
  .header-layout .navbar-nav > li { flex-shrink: 0; }
  .custom-navbar .nav li a { padding-left: 11px; padding-right: 11px; }
  .header-layout > .navbar-brand { font-size: 23px; }
  html:not([lang="hu"]) .header-layout > .navbar-brand { font-size: 19px; }
}
@media (max-width: 1199px) {
  .custom-navbar { padding: 0; background: #101010; }
  .custom-navbar > .header-layout { grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; }
  .header-layout > .navbar-brand { max-width: none; min-width: 0; height: auto; padding: 14px 0; line-height: 21px; font-size: clamp(14px,3.6vw,20px); }
  .header-actions { grid-column: 2; }
  .header-actions .navbar-toggle { display: block; float: none; margin: 0; padding: 12px 9px; min-width: 40px; min-height: 44px; }
  .header-layout #main-menu { grid-column: 1 / -1; grid-row: 2; float: none; width: 100%; margin: 0; padding: 0; max-height: calc(100svh - 85px); overflow-y: auto; }
  .header-layout #main-menu.collapse { display: none !important; }
  .header-layout #main-menu.is-open { display: block !important; }
  .header-layout .navbar-nav { float: none !important; margin: 8px 0; }
  .header-layout .navbar-nav > li { float: none; }
  .custom-navbar .nav li a { padding: 10px 0; font-size: 13px; line-height: 24px; }
}

/* Accommodation content is unchanged and available on demand. */
.accommodation { margin: 24px 0; border: 1px solid #dedede; border-radius: 6px; background: #fafafa; }
.accommodation > summary { position: relative; padding: 18px 48px 18px 20px; list-style: none; cursor: pointer; color: #333; font-size: 16px; }
.accommodation > summary::-webkit-details-marker { display: none; }
.accommodation > summary::after { content: '+'; position: absolute; right: 20px; top: 13px; font-size: 25px; font-weight: 400; color: #b92d38; }
.accommodation[open] > summary::after { content: '−'; }
.accommodation-content { padding: 0 20px 12px; }

/* Partners keep their original order, logos and acknowledgment copy. */
#sponsors { background: #fafafa; }
#sponsors .partner-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin: 0; align-items: stretch; }
#sponsors .partner-heading { grid-column: 1 / -1; padding: 0 0 10px; }
#sponsors .partner-heading h2 { margin-top: 0; }
#sponsors .partner-card { min-width: 0; padding: 24px; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#sponsors .partner-card img { display: block; width: 100%; height: 115px; max-height: none; object-fit: contain; padding: 0; margin: 0; }
#sponsors .partner-card p { font-size: 12px; line-height: 1.5; margin: 12px 0 0; text-align: center; }
#sponsors .partner-acknowledgment { grid-column: span 2; }
#sponsors .partner-acknowledgment img { height: 80px; }
#sponsors .partner-wide { grid-column: 1 / -1; }
#sponsors .partner-wide img { height: 110px; }
.partner-banner { display: block; width: 100%; max-width: 1140px; margin: 26px auto; height: auto; }
@media (max-width: 767px) {
  #overview { padding: 46px 0; }
  #detail, #speakers, #contact { padding: 42px 0; }
  #sponsors { padding: 42px 0; }
  #video, footer { padding: 30px 0; }
  #faq { padding-top: 42px; padding-bottom: 42px; }
  #speakers br { display: none; }
  #speakers .card { margin-top: 18px; }
  #speakers .col-sm-6 { margin-bottom: 24px !important; }
  #sponsors .partner-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  #sponsors .partner-card { padding: 16px 12px; }
  #sponsors .partner-card img { height: 80px; }
  #sponsors .partner-acknowledgment { grid-column: span 1; }
  #sponsors .partner-acknowledgment img { height: 60px; }
  #sponsors .partner-card p { font-size: 12px; }
  #sponsors .partner-heading { padding-bottom: 0; }
  #sponsors .partner-heading h2 { font-size: 26px; }
  .partner-banner { margin: 16px auto; }
  .accommodation { margin: 20px 0; }
}


/* Font-free replacement icons for the static build. */
.locale-icon, .locale-arrow, .detail-icon, .top-arrow { display: inline-block; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1; }
.detail-icon { color: #f2545f; font-size: 48px; margin-bottom: 15px; }
.social-link { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.go-top .top-arrow { font-size: 34px; line-height: 50px; }


/* 2026-09 refinement: hide the mid-page photo carousel above partners. */
.gallery { display: none !important; }

/* Modern, soft in-view animation. */
.reveal-ready .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.reveal-ready .reveal-on-scroll.reveal-delay-1 { transition-delay: .06s; }
.reveal-ready .reveal-on-scroll.reveal-delay-2 { transition-delay: .12s; }
.reveal-ready .reveal-on-scroll.reveal-delay-3 { transition-delay: .18s; }

/* Live social cards instead of plain white links. */
#video.social-preview-section {
  background: linear-gradient(135deg, #141414 0%, #242424 55%, #111 100%);
  color: #fff;
  padding: 72px 0;
}
#video.social-preview-section .section-title h2,
#video.social-preview-section h3,
#video.social-preview-section p { color: #fff; }
.social-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}
.social-card {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 22px 65px rgba(0,0,0,.28);
}
.social-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.social-card-header h3 { margin: 0; font-size: 20px; }
.social-card-header a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.55);
}
.social-card-frame {
  position: relative;
  display: block;
  width: 100%;
  min-height: 360px;
  background: #fff;
}
.social-card-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}
.social-card-frame.youtube {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #000;
}
.social-card-frame.youtube iframe {
  position: absolute;
  inset: 0;
  height: 100%;
}
.social-fallback {
  padding: 14px 20px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
}
.social-fallback a { color: #fff; font-weight: 700; }
@media (max-width: 767px) {
  #video.social-preview-section { padding: 46px 0; }
  .social-preview-grid { grid-template-columns: 1fr; gap: 18px; }
  .social-card { min-height: auto; border-radius: 10px; }
  .social-card-frame, .social-card-frame iframe { min-height: 320px; height: 320px; }
  .social-card-frame.youtube { min-height: 0; }
  .social-card-header { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* TENORI ženských sŕdc promotional section. */
#tenori.tenori-section {
  padding: 76px 0;
  background: radial-gradient(circle at top left, rgba(242,84,95,.14), transparent 32%), linear-gradient(135deg, #fff 0%, #fafafa 100%);
}
#tenori .section-title p { max-width: 760px; margin: 10px auto 0; color: #777; }
.tenori-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  margin: 28px 0 34px;
}
.tenori-hero-copy, .tenori-video-box, .tenori-media-block, .tenori-carousel, .tenori-poster-card {
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}
.tenori-hero-copy { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.tenori-kicker { color: #222; font-size: 28px; line-height: 1.2; font-weight: 800; margin: 0 0 20px; }
.tenori-bullets { list-style: none; padding: 0; margin: 0 0 24px; }
.tenori-bullets li { margin: 10px 0; font-size: 18px; color: #333; }
.tenori-fpu-note { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 18px; align-items: center; padding: 18px; border-radius: 14px; background: #f4f9ff; color: #103a68; }
.tenori-fpu-note img { max-width: 116px; width: 100%; height: auto; }
.tenori-video-box { padding: 22px; }
.tenori-video-box h3, .tenori-media-block h3, .tenori-poster-heading h3 { margin-top: 0; }
.tenori-video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #111; }
.tenori-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tenori-quick-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.tenori-quick-links a, .tenori-media-card {
  color: #b92d38;
  font-weight: 800;
  text-decoration: none;
}
.tenori-media-block { padding: 26px; margin: 0 0 30px; }
.tenori-media-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.tenori-media-card { min-height: 105px; padding: 16px; border: 1px solid #eee; border-radius: 14px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tenori-media-card:hover { transform: translateY(-4px); border-color: rgba(185,45,56,.28); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.tenori-media-card span { display: inline-block; margin-bottom: 10px; padding: 4px 9px; border-radius: 999px; background: #fff0f1; color: #b92d38; font-size: 12px; font-weight: 800; }
.tenori-media-card strong { display: block; color: #222; line-height: 1.3; }
.tenori-carousel { position: relative; display: grid; grid-template-columns: 54px minmax(0,1fr) 54px; align-items: center; padding: 22px; margin: 0 0 34px; background: #171717; }
.tenori-carousel-window { overflow: hidden; border-radius: 14px; }
.tenori-carousel-track { display: flex; gap: 18px; transition: transform .55s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.tenori-slide { flex: 0 0 min(330px, 82vw); margin: 0; overflow: hidden; border-radius: 14px; background: #fff; }
.tenori-slide a { display: block; }
.tenori-slide img { display: block; width: 100%; aspect-ratio: 3 / 4.25; object-fit: cover; background: #eee; }
.tenori-slide-caption { display: flex; gap: 10px; align-items: center; padding: 12px 14px; color: #222; }
.tenori-slide-caption span { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #b92d38; color: #fff; font-size: 12px; font-weight: 800; }
.tenori-slide-caption strong { font-size: 14px; }
.tenori-carousel-btn { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 32px; line-height: 1; }
.tenori-carousel-btn:hover { background: rgba(255,255,255,.2); }
.tenori-poster-heading { text-align: center; margin: 0 0 22px; }
.tenori-poster-heading p { color: #777; }
.tenori-poster-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.tenori-poster-card { overflow: hidden; }
.tenori-poster-image { display: block; background: #eee; }
.tenori-poster-image img { display: block; width: 100%; aspect-ratio: 3 / 4.25; object-fit: cover; transition: transform .4s ease; }
.tenori-poster-card:hover .tenori-poster-image img { transform: scale(1.035); }
.tenori-poster-body { padding: 16px; }
.tenori-poster-body h4 { margin: 0 0 14px; font-size: 17px; line-height: 1.25; }
.tenori-fpu-mini { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 12px; align-items: center; min-height: 58px; padding: 12px; border-radius: 12px; background: #f4f9ff; color: #103a68; font-size: 12px; line-height: 1.35; }
.tenori-fpu-mini img { width: 74px; height: auto; }
.poster-placeholder { aspect-ratio: 3 / 4.25; display: flex; align-items: center; justify-content: center; font-size: 38px; color: #999; background: #f4f4f4; }
@media (max-width: 991px) {
  .tenori-hero { grid-template-columns: 1fr; }
  .tenori-media-grid, .tenori-poster-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  #tenori.tenori-section { padding: 46px 0; }
  .tenori-hero-copy, .tenori-video-box, .tenori-media-block { padding: 20px; border-radius: 12px; }
  .tenori-kicker { font-size: 23px; }
  .tenori-bullets li { font-size: 16px; }
  .tenori-fpu-note { grid-template-columns: 1fr; text-align: center; }
  .tenori-fpu-note img { margin: auto; }
  .tenori-media-grid, .tenori-poster-grid { grid-template-columns: 1fr; }
  .tenori-carousel { grid-template-columns: 42px minmax(0,1fr) 42px; padding: 12px; }
  .tenori-carousel-btn { width: 36px; height: 36px; font-size: 27px; }
  .tenori-slide { flex-basis: min(280px, 78vw); }
}


/* v4 fixes: robust video cards and stronger visible scroll effects. */
.video-link-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: inherit;
  color: #fff;
  background: linear-gradient(135deg, #090909 0%, #1f1028 54%, #090909 100%);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.video-link-card:hover,
.video-link-card:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.video-link-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.video-link-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .84;
  transition: transform .45s ease, opacity .45s ease;
}
.video-link-card:hover .video-link-thumb img { transform: scale(1.035); opacity: 1; }
.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #e62117;
  color: #fff;
  font-size: 31px;
  line-height: 1;
  text-indent: 4px;
  box-shadow: 0 16px 42px rgba(0,0,0,.42);
}
.video-link-body {
  display: grid;
  gap: 6px;
  padding: 18px 20px 22px;
  background: linear-gradient(180deg, rgba(0,0,0,.84), rgba(0,0,0,.96));
}
.video-link-eyebrow {
  color: #ffdddd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.video-link-body strong { color: #fff; font-size: 19px; line-height: 1.25; }
.video-link-small { color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; }
.tenori-video-frame .video-link-card { height: 100%; }
.social-card-frame.youtube { aspect-ratio: auto; min-height: 360px; height: auto; padding: 0; background: #090909; }
.social-card-frame.youtube .video-link-card { min-height: 360px; border-radius: 0; }
.social-card-frame.youtube .video-link-thumb { aspect-ratio: 16 / 9; }
@media (max-width: 767px) {
  .social-card-frame.youtube,
  .social-card-frame.youtube .video-link-card { min-height: 0; height: auto; }
  .video-play-button { width: 62px; height: 62px; font-size: 25px; }
}

.reveal-ready .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(.985);
  filter: blur(4px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1), filter .9s ease;
}
.reveal-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
