
:root{
  --bg:#050505;
  --bg-elevated:#0c0c0c;
  --bg-soft:#111;
  --gold:#d4af37;
  --muted:#aaaaaa;
  --border:#262626;
  --radius-lg:22px;
  --radius-md:14px;
  --radius-sm:999px;
  --transition:.25s ease;
  --shadow-soft:0 18px 45px rgba(0,0,0,.8);
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:#f5f5f5;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  /* Prevent "rubber band" overscroll blank area where supported */
  overscroll-behavior-y:none;
}

body{
  line-height:1.6;
  position:relative;
  z-index:0;
  min-height:100vh;
  background:transparent;
}

/* Global gold haze background (same feel as the home hero) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 0% 0%, rgba(212,175,55,.18), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(to bottom,#050505 0%,#050505 45%,#020202 100%);
  z-index:-1;
  pointer-events:none;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

/* Keyboard focus */
a:focus-visible{
  outline:2px solid rgba(212,175,55,.75);
  outline-offset:4px;
  border-radius:10px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(212,175,55,.45);
  background:rgba(10,10,10,.92);
  color:var(--gold);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.78rem;
  z-index:2000;
}

.skip-link:focus{
  left:16px;
}

/* Layout helpers */

.wrap{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
}

.section{
  padding:56px 0;
}

.section-narrow{
  padding:36px 0;
}

.row{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
}

.grid{
  display:grid;
  gap:24px;
}
.cols-1{grid-template-columns:1fr;}
.cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.cols-5{grid-template-columns:repeat(5,minmax(0,1fr));}

@media(max-width:960px){
  .cols-5{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cols-4{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cols-3{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .cols-5,
  .cols-4,
  .cols-3,
  .cols-2{grid-template-columns:1fr;}
}

h1,h2,h3,h4{
  font-family:"Cinzel Decorative","Times New Roman",serif;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin:0 0 16px;
}

h1{
  font-size:clamp(2.2rem,4vw,3.3rem);
  line-height:1.15;
}

h2{
  font-size:clamp(1.8rem,3vw,2.4rem);
}

h3{
  font-size:clamp(1.4rem,2.4vw,1.8rem);
}

p{
  margin:0 0 10px;
  max-width:48rem;
}

.lead{
  font-size:1.05rem;
  line-height:1.75;
  max-width:60rem;
}

/* NAVBAR + MOBILE HAMBURGER */

.nav{
  position:sticky;
  top:0;
  z-index:1400;
  background:linear-gradient(to bottom, #000 0%, #050505 70%, #050505 100%);
  border-bottom:1px solid #111;
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0 10px;
}

.nav-right{
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--gold);
}

.brand-logo{
  width:64px;
  height:64px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 0 18px rgba(0,0,0,.85);
}

.brand-text{
  display:flex;
  flex-direction:column;
}

.brand-title{
  font-family:"Cinzel Decorative","Times New Roman",serif;
  font-size:1.05rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.brand-sub{
  font-size:.7rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}

/* main menu */

.menu{
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:center;
  flex-wrap:wrap;
}

.menu a{
  font-family:"Cinzel Decorative","Times New Roman",serif;
  font-size:.82rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  padding:4px 8px;
  border-bottom:2px solid transparent;
  border-radius:0;
  color:#f5f5f5;
}

/* Focus styling (keyboard) */
.menu a:focus{ outline:none; }
.menu a:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

/* On touch devices we don't want a persistent focus ring after tapping links */
@media (hover:none) and (pointer:coarse){
  .menu a:focus-visible{ outline:none; }
}

/* Hover only on devices that actually support hover (prevents sticky hover on touch) */
@media (hover:hover) and (pointer:fine){
  .menu a:hover{
    border-bottom-color:var(--gold);
    color:var(--gold);
  }
}

.menu a.active{
  border-bottom-color:var(--gold);
}

/* language switcher */

.langbar{
  display:flex;
  align-items:center;
  gap:6px;
}

.langbar button{
  border-radius:999px;
  padding:4px 10px;
  border:1px solid #333;
  background:#050505;
  color:#ddd;
  font-size:.75rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.langbar button.active{
  border-color:var(--gold);
  color:var(--gold);
}

/* Hamburger toggle (mobile) */

.nav-toggle{
  display:none;
  border:none;
  background:transparent;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid #333;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  box-shadow:0 0 0 1px rgba(255,255,255,.02), 0 8px 20px rgba(0,0,0,.8);
  transition:var(--transition);
}

.nav-toggle:hover{
  border-color:var(--gold);
}

.nav-toggle:focus-visible{
  outline:2px solid rgba(212,175,55,.85);
  outline-offset:2px;
}

.nav-toggle span{
  width:20px;
  height:2px;
  border-radius:999px;
  background:var(--gold);
  transition:transform var(--transition), opacity var(--transition);
}

/* Backdrop (created by JS) */
.nav-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.68);
  opacity:0;
  pointer-events:none;
  transition:opacity var(--transition);
  z-index:1250;
}

body.nav-open,
body.no-scroll{
  overflow:hidden;
}

body.nav-open .nav-backdrop{
  opacity:1;
  pointer-events:auto;
}

/* Mobile: off-canvas drawer */
@media(max-width:900px){
  .nav-inner{
    padding:10px 0 8px;
  }

  .nav-toggle{
    display:flex;
  }

  .brand-logo{
    width:56px;
    height:56px;
  }

  .brand-title{
    font-size:.98rem;
  }

  .nav-right{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(88vw, 360px);
    padding:calc(14px + env(safe-area-inset-top) + 72px) 16px 18px;
    overflow:auto;
    /* Contain scroll chaining (supported in Chromium/Firefox; JS handles iOS) */
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    background:
      radial-gradient(circle at top, rgba(212,175,55,.18), transparent 55%),
      rgba(5,5,5,.96);
    border-left:1px solid #151515;
    box-shadow:-18px 0 55px rgba(0,0,0,.85);
    transform:translateX(110%);
    transition:transform var(--transition);
    z-index:1300;
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-left:0;
  }

  .nav.nav-open .nav-right{
    transform:translateX(0);
  }

  .menu{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:4px;
    flex-wrap:nowrap;
  }

  .menu a{
    padding:10px 10px;
    border-bottom:none;
    border-radius:12px;
    background:transparent;
  }

  /* Touch feedback without sticky hover */
  .menu a:active{
    border-bottom:none;
    background:rgba(212,175,55,.08);
  }

  .menu a.active{
    border-bottom:none;
    background:rgba(212,175,55,.12);
  }

  /* If a device supports hover (e.g. desktop), keep hover highlight in the drawer too */
  @media (hover:hover) and (pointer:fine){
    .menu a:hover{
      border-bottom:none;
      background:rgba(212,175,55,.08);
    }
  }

  .langbar{
    width:100%;
    justify-content:flex-start;
    padding-top:10px;
    margin-top:6px;
    border-top:1px solid #111;
  }
}

/* On touch devices we don't want tap-focus outlines to look like a second “active” menu item */
@media (max-width: 900px) and (hover:none) and (pointer:coarse){
  .menu a:focus,
  .menu a:focus-visible{
    outline:none;
  }
}

/* Hamburger -> X animation */
.nav.nav-open .nav-toggle span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.nav.nav-open .nav-toggle span:nth-child(2){
  opacity:0;
}
.nav.nav-open .nav-toggle span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .nav-toggle,
  .nav-toggle span,
  .nav-right,
  .nav-backdrop{
    transition:none !important;
  }
}



/* Motion safety for interactive elements */
@media (prefers-reduced-motion: reduce){
  .btn,
  .card{
    transition:none !important;
  }
  .btn:hover,
  .card:hover,
  .card:focus-within{
    transform:none !important;
    box-shadow:none !important;
  }
}

/* HERO */

.hero{
  position:relative;
  overflow:hidden;
  padding:40px 0 32px;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:transparent;
    radial-gradient(circle at 18% 16%, rgba(212,175,55,.16), transparent 56%),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.05), transparent 58%),
    linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.0) 42%, rgba(0,0,0,.0) 100%);
  pointer-events:none;
  opacity:0;
}
.hero .wrap,
.hero-inner,
.hero .section{
  position:relative;
  z-index:1;
}

.hero-inner{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  gap:32px;
  align-items:center;
}

@media(max-width:900px){
  .hero-inner{
    grid-template-columns:1fr;
  }
}

.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.75rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  padding:4px 12px;
  border-radius:999px;
  border:1px solid rgba(212,175,55,.4);
  background:radial-gradient(circle at top left, rgba(212,175,55,.18), transparent 60%);
  color:var(--muted);
}

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

.hero-image{
  position:relative;
}

.hero-image img{
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:cover;
  border:none;
  /* Melt the image into the background */
  -webkit-mask-image:radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 54%, rgba(0,0,0,0) 100%);
  mask-image:radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 54%, rgba(0,0,0,0) 100%);
}

/* strip */

.hero-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:26px;
}

.hero-strip img{
  border-radius:16px;
  border:1px solid #222;
  width:100%;
  height:110px;
  object-fit:cover;
}

.hero-strip figure{
  margin:0;
  position:relative;
}

.hero-strip figcaption{
  position:absolute;
  inset:auto 10px 8px 10px;
  font-size:.68rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-shadow:0 0 6px rgba(0,0,0,.9);
}

@media(max-width:780px){
  .hero-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Buttons */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid transparent;
  background:var(--gold);
  color:#000;
  font-size:.82rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  cursor:pointer;
  transition:transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition), filter var(--transition);
}
.btn.ghost{
  background:transparent;
  border-color:var(--gold);
  color:var(--gold);
}

/* Smaller button variant (for “Bővebben” links inside cards) */
.btn.sm{
  padding:8px 14px;
  font-size:.72rem;
  letter-spacing:.14em;
}

/* Helper: push actions to the bottom inside flex cards */
.card-actions{
  margin-top:auto;
  padding-top:14px;
  width:100%;
  display:flex;
  justify-content:center;
}

.page-competition #disciplines .discipline-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.btn:hover{
  filter:brightness(1.08);
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(0,0,0,.55);
}
.btn:active{
  transform:translateY(0);
  box-shadow:none;
}
.btn.ghost:hover{
  background:rgba(212,175,55,.10);
  border-color:rgba(212,175,55,.85);
}

/* Cards */

.card{
  position:relative;
  padding:22px 20px 20px;
  border-radius:var(--radius-lg);
  background:radial-gradient(circle at top left,#141414, #050505 65%);
  border:1px solid #222;
  box-shadow:0 12px 32px rgba(0,0,0,.7);
  transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover,
.card:focus-within{
  transform:translateY(-3px);
  box-shadow:0 18px 55px rgba(0,0,0,.85);
  border-color:rgba(212,175,55,.22);
}

.card h3{
  margin-bottom:8px;
}
.card p{
  max-width:none;
  line-height:1.65;
}

/* A.H.E. – Judging page redesign */

.ahe-hero{
  position:relative;
  overflow:hidden;
}
.ahe-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:transparent;
    radial-gradient(circle at 18% 12%, rgba(212,175,55,.18), transparent 56%),
    radial-gradient(circle at 78% 28%, rgba(212,175,55,.10), transparent 62%),
    radial-gradient(circle at 50% 90%, rgba(255,255,255,.05), transparent 55%);
  pointer-events:none;
  opacity:0;
}
.ahe-hero .wrap{position:relative;}

.ahe-kicker{
  display:inline-block;
  margin-bottom:12px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(212,175,55,.35);
  color:var(--gold);
  font-size:.78rem;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.ahe-subtitle{
  color:var(--muted);
  max-width:56rem;
  margin-top:-6px;
}

.ahe-quote{
  margin:18px 0 0;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(212,175,55,.25);
  background:rgba(0,0,0,.35);
  color:#e9e9e9;
  max-width:56rem;
}

.ahe-grid{
  margin-top:26px;
  display:grid;
  gap:22px;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:960px){
  .ahe-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .ahe-grid{grid-template-columns:1fr;}
}

.ahe-box{
  position:relative;
  padding:22px 20px 20px;
  border-radius:18px;
  background:linear-gradient(180deg,#0b0b0b 0%, #050505 70%);
  border:1px solid rgba(212,175,55,.38);
  box-shadow:0 16px 40px rgba(0,0,0,.75);
  overflow:hidden;
}
.ahe-box::after{
  content:"";
  position:absolute;
  inset:-50px;
  background:radial-gradient(circle at 20% 20%, rgba(212,175,55,.14), transparent 58%);
  opacity:.6;
  pointer-events:none;
}

.ahe-letter,
.ahe-label,
.ahe-points,
.ahe-body{position:relative; z-index:1;}

.ahe-letter{
  font-family:"Cinzel Decorative","Times New Roman",serif;
  font-size:3.8rem;
  line-height:1;
  letter-spacing:.12em;
  color:var(--gold);
  margin:0 0 10px;
}

.ahe-label{
  margin:0 0 4px;
  font-size:1.05rem;
  letter-spacing:.18em;
}

.ahe-points{
  margin:0 0 12px;
  color:var(--muted);
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.ahe-body p{
  margin:0;
  max-width:none;
}
.ahe-body p + p{margin-top:8px;}

.ahe-cta{
  margin-top:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid #222;
  background:radial-gradient(circle at top left,#141414, #050505 70%);
}
.ahe-cta strong{
  display:block;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.92rem;
}
.ahe-cta .muted{
  margin-top:4px;
  color:var(--muted);
  font-size:.85rem;
}
.cta-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.cta-actions .btn{white-space:nowrap;}

@media(max-width:720px){
  .ahe-cta{flex-direction:column; align-items:flex-start;}
}

.jury-grid{
  margin-top:18px;
  display:grid;
  gap:18px;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
@media(max-width:960px){
  .jury-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .jury-grid{grid-template-columns:1fr;}
}

.jury-person{
  text-align:center;
  padding:16px 14px;
  border-radius:18px;
  border:1px solid #222;
  background:linear-gradient(180deg,#0b0b0b, #050505 70%);
}
.jury-avatar{
  width:74px;
  height:74px;
  border-radius:50%;
  margin:0 auto 12px;
  border:1px solid rgba(212,175,55,.62);
  background:radial-gradient(circle at 30% 30%, #1a1a1a, #050505 75%);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold);
  letter-spacing:.18em;
  font-weight:800;
}
.jury-photo{
  width:86px;
  height:86px;
  border-radius:50%;
  margin:0 auto 12px;
  border:1px solid rgba(212,175,55,.62);
  box-shadow:0 14px 34px rgba(0,0,0,.75);
  object-fit:cover;
  background:#050505;
}
.jury-name{
  margin:0;
  font-size:.88rem;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.jury-role{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.78rem;
  max-width:none;
}
.jury-meta{
  margin:2px 0 0;
  color:#d8d8d8;
  font-size:.78rem;
  max-width:none;
  opacity:.9;
}

/* Pillars grid (ART / SKILL / SPIRIT / INNOVATION) */

.pillars-grid{margin-top:24px;}
.pillar-card{
  position:relative;
  padding:22px 20px 20px;
  border-radius:18px;
  background:linear-gradient(180deg,#0b0b0b, #050505 70%);
  border:1px solid rgba(212,175,55,.22);
  box-shadow:0 14px 34px rgba(0,0,0,.7);
  overflow:hidden;
}
.pillar-card::after{
  content:"";
  position:absolute;
  inset:-60px;
  background:radial-gradient(circle at 24% 18%, rgba(212,175,55,.10), transparent 58%);
  opacity:.6;
  pointer-events:none;
}
.pillar-icon,
.pillar-title,
.pillar-sub,
.pillar-body,
.pillar-example{position:relative; z-index:1;}

.pillar-icon{
  width:46px;
  height:46px;
  margin:0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pillar-icon svg{
  width:44px;
  height:44px;
  stroke:var(--gold);
  fill:none;
  stroke-width:2;
  opacity:.95;
}

.pillar-title{
  text-align:center;
  color:var(--gold);
  font-family:"Cinzel Decorative","Times New Roman",serif;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:1.35rem;
  margin:0 0 6px;
}

.pillar-sub{
  text-align:center;
  margin:0 0 10px;
  color:#f2f2f2;
  letter-spacing:.06em;
  text-transform:none;
  font-size:.95rem;
}

.pillar-body{
  text-align:center;
  margin:0 0 10px;
  color:var(--muted);
  font-size:.88rem;
  max-width:none;
}

.pillar-example{
  text-align:center;
  margin:0;
  color:#e8e8e8;
  font-size:.82rem;
  letter-spacing:.08em;
}
.pillar-example em{color:var(--gold); font-style:italic;}

/* gallery on home */

.gallery{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.gallery img{
  border-radius:14px;
  border:1px solid #222;
  width:100%;
  height:120px;
  object-fit:cover;
}
@media(max-width:1100px){
  .gallery{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:640px){
  .gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


@media(max-width:640px){
  .gallery img{
    height:84px;
  }
}

/* Forms */

.form{
  display:grid;
  gap:14px;
  max-width:540px;
}

.form label{
  font-size:.86rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
}

.form input,
.form select,
.form textarea{
  width:100%;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid #333;
  background:#050505;
  color:#f5f5f5;
  font-size:.9rem;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible{
  outline:2px solid rgba(212,175,55,.7);
  outline-offset:2px;
  border-color:rgba(212,175,55,.8);
  box-shadow:0 0 0 3px rgba(212,175,55,.18);
}

/* Checkbox row (label text left, checkbox right) */

.form .check-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid #222;
  background:linear-gradient(180deg,#090909, #050505 70%);
  text-transform:none;
  letter-spacing:.08em;
  color:#d0d0d0;
}
.form .check-row .check-text{flex:1;}
.form .check-row a{
  color:var(--gold);
  text-decoration:underline;
  text-underline-offset:3px;
}
.form .check-row a:hover{opacity:.92;}
.form input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0;
  padding:0;
  accent-color:var(--gold);
}

.form textarea{
  min-height:120px;
  resize:vertical;
}

.form small{
  font-size:.78rem;
  color:var(--muted);
}

/* table */

.table-like{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
}
.table-like th,
.table-like td{
  border:1px solid #333;
  padding:8px 10px;
  font-size:.9rem;
  vertical-align:top;
}


.table-like.compact th,
.table-like.compact td{
  padding:6px 8px;
  font-size:.88rem;
}

/* Footer */

footer{
  border-top:1px solid #111;
  padding:24px 0 30px;
  font-size:.78rem;
  color:var(--muted);
}

/* Languages visibility */

.lang-hu,
.lang-en,
.lang-de{
  display:none;
}

[data-lang-current="hu"] .lang-hu,
[data-lang-current="en"] .lang-en,
[data-lang-current="de"] .lang-de{
  display:revert;
}

/* Utility */

/* Utility helpers */
.muted{
  color:var(--muted);
}

.divider{
  height:1px;
  background:#111;
  margin:14px 0;
}

.badge-line{
  display:inline-block;
  margin-bottom:8px;
  padding-bottom:4px;
  border-bottom:1px solid #333;
}



/* === Tickets: color-coded badges === */

.ticket-legend{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
@media(max-width:640px){
  .ticket-legend{ grid-template-columns:1fr; }
}

.ticket-color{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:radial-gradient(circle at top left, rgba(255,255,255,.06), rgba(0,0,0,.32) 55%);
}

.ticket-swatch{
  width:14px;
  height:14px;
  margin-top:3px;
  border-radius:50%;
  box-shadow:0 0 0 2px rgba(0,0,0,.6), 0 10px 22px rgba(0,0,0,.75);
  flex:0 0 14px;
}

.ticket-name{
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ticket-color .muted{
  font-size:.92rem;
  line-height:1.6;
  margin-top:6px;
  max-width:none;
}

.ticket-red .ticket-swatch{ background:#e53935; }
.ticket-orange .ticket-swatch{ background:#fb8c00; }
.ticket-blue .ticket-swatch{ background:#1e88e5; }
.ticket-green .ticket-swatch{ background:#43a047; }

/* === Discipline pages: prettier hero header === */

.page-discipline .hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid #111;
}

.page-discipline .hero::before{
  opacity:1;
  background:
    radial-gradient(circle at 16% 18%, rgba(212,175,55,.22), transparent 62%),
    radial-gradient(circle at 72% 10%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,.0) 65%);
}

.discipline-hero-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}

.discipline-hero-left{
  display:flex;
  align-items:center;
  gap:16px;
  flex:1 1 420px;
  min-width:min(420px, 100%);
}

.discipline-hero-icon{
  width:82px;
  height:82px;
  border-radius:24px;
  border:1px solid rgba(212,175,55,.35);
  background:radial-gradient(circle at top left, rgba(212,175,55,.22), rgba(0,0,0,.2) 60%);
  box-shadow:0 14px 40px rgba(0,0,0,.7);
  display:grid;
  place-items:center;
  overflow:hidden;
}

.discipline-hero-icon img{
  width:64px;
  height:64px;
  object-fit:contain;
  filter:drop-shadow(0 14px 18px rgba(0,0,0,.7));
}

.discipline-hero-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.discipline-hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

@media(max-width:780px){
  .discipline-hero-left{ flex:1 1 100%; }
  .discipline-hero-actions{ justify-content:flex-start; }
}

/* Map placeholder */

#kv-map{
  width:100%;
  height:360px;
  border-radius:18px;
  border:1px solid #222;
  overflow:hidden;
  margin-top:20px;
}
@media(max-width:780px){
  #kv-map{
    height:260px;
  }
}


/* === RESPONSIVE TUNING AFTER TESTING ON REAL DEVICES (IPHONE 15 PRO MAX ETC.) === */

/* Slightly tighter spacing on medium screens so menu does not wrap awkwardly */
@media(min-width:901px) and (max-width:1200px){
  .nav-inner{ gap:12px; }
  .menu{ gap:12px; }
}


/* Make hamburger visually a bit stronger */
.nav-toggle{
  box-shadow:0 0 0 1px rgba(255,255,255,.02), 0 8px 20px rgba(0,0,0,.8);
}
.nav-toggle:hover{
  border-color:var(--gold);
}

/* Hero and sections on small screens – reduce vertical spacing to avoid "szétcsúszás" feel */
@media(max-width:780px){
  .hero{
    padding:26px 0 20px;
  }
  .section{
    padding:32px 0;
  }
  .hero-inner{
    gap:20px;
  }
  .hero-strip img{
    height:96px;
  }
}


@media(max-width:780px){
  .hero-image img{
    max-height:260px;
  }
}

/* Cards & forms on narrow devices – full width and comfortable spacing */
@media(max-width:640px){
  .card{
    padding:18px 16px 18px;
  }
  .form{
    max-width:100%;
  }
  .form input,
  .form select,
  .form textarea{
    font-size:.9rem;
  }
}


/* --- Custom UI updates (hover, hero gradient, mobile nav, gallery lightbox) --- */

/* Keep the global gold haze on the whole page (body::before).
   The hero itself stays transparent so the background does not 'cut' when scrolling. */
.hero{
  background:transparent;
  position:relative;
  overflow:visible;
}

/* global button hover feedback (native buttons only; .btn is handled above) */
button{
  transition:var(--transition);
}

button:hover,
button:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 18px 45px rgba(0,0,0,.85);
  filter:brightness(1.08);
}

/* highlight hero & gallery images on hover */
.hero-strip img,
.gallery img{
  transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition), filter var(--transition);
}

.hero-strip img:hover,
.gallery img:hover{
  transform:translateY(-3px) scale(1.03);
  border-color:var(--gold);
  box-shadow:var(--shadow-soft);
  filter:brightness(1.05);
  cursor:pointer;
}

/* lightbox gallery */
body.no-scroll{
  overflow:hidden;
}

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:80;
  opacity:0;
  pointer-events:none;
  transition:opacity var(--transition);
}

.lightbox.open{
  opacity:1;
  pointer-events:auto;
}

.lightbox-inner{
  position:relative;
  max-width:min(960px,90vw);
  max-height:min(80vh,640px);
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox-image{
  max-width:100%;
  max-height:100%;
  border-radius:18px;
  border:1px solid #333;
  box-shadow:var(--shadow-soft);
  object-fit:cover;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position:absolute;
  border:none;
  background:rgba(15,15,15,.8);
  border-radius:999px;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  color:#f5f5f5;
  cursor:pointer;
}

.lightbox-close{
  top:-42px;
  right:0;
}

.lightbox-prev{
  left:-52px;
}

.lightbox-next{
  right:-52px;
}

@media(max-width:700px){
  .lightbox-prev{
    left:8px;
  }
  .lightbox-next{
    right:8px;
  }
  .lightbox-close{
    top:12px;
    right:12px;
  }
}



/* Discipline mini artworks */
.discipline-icon{
  display:block;
  width:56px;
  height:56px;
  margin:10px auto 12px;
  border-radius:14px;
  border:1px solid rgba(212,175,55,.35);
  box-shadow:0 12px 26px rgba(0,0,0,.65);
  object-fit:contain;
  background:transparent;
  padding:10px; /* optical consistency across different symbols */
}

/* Larger, centered symbols (Judging / Competition) */
.discipline-icon.discipline-icon-lg{
  width:86px;
  height:86px;
  margin:14px auto 10px;
  border-radius:18px;
  padding:12px;
}

.page-judging .ahe-grid .discipline-icon{
  width:84px;
  height:84px;
  margin:14px auto 10px;
  border-radius:18px;
}

.page-judging .ahe-box{
  text-align:center;
}

.page-competition #disciplines .discipline-icon{
  width:86px;
  height:86px;
  margin:14px auto 8px;
  border-radius:18px;
}

.page-competition #disciplines .discipline-name{
  text-align:center;
  margin:0 0 14px;
  letter-spacing:.12em;
}

.ahe-box .discipline-icon{
  width:52px;
  height:52px;
  margin:10px auto 8px;
}

.grid.cols-5 .discipline-icon{
  width:48px;
  height:48px;
  margin:10px auto 6px;
}

@media (max-width:700px){
  .grid.cols-5 .discipline-icon{
    width:44px;
    height:44px;
  }
}

/* Home – pentathlon section: align with other homepage sections */
.page-home .section-pentathlon{
  /* Make this block slightly more compact than a full section, and keep it aligned to the global .wrap */
  padding:40px 0 28px;
}

.page-home .section-pentathlon h2{
  font-size:clamp(1.55rem,2.2vw,2.05rem);
  margin-bottom:12px;
}

.page-home .pentathlon-grid{
  align-items:stretch;
}

.page-home .pentathlon-grid .pentathlon-card{
  text-align:center;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-height:340px;
}
.page-home .pentathlon-grid .pentathlon-card p{
  margin-top:0;
}
@media (max-width:700px){
  .page-home .pentathlon-grid .pentathlon-card{
    min-height:auto;
  }
}

.page-home .pentathlon-grid .discipline-icon{
  width:92px;
  height:92px;
  margin:14px auto 10px;
  border-radius:18px;
}

.page-home .pentathlon-grid .discipline-name{
  text-align:center;
  margin:0 0 10px;
  font-size:clamp(1.05rem,1.2vw,1.30rem);
  letter-spacing:.06em;
  line-height:1.06;
  max-width:100%;
  /* Safety: prevent long labels from overflowing on narrower desktop widths */
  overflow-wrap:anywhere;
}

.page-home .pentathlon-grid p{
  text-align:center;
}

@media (max-width:700px){
  .page-home .pentathlon-grid .discipline-icon{
    width:78px;
    height:78px;
  }
  .page-home .pentathlon-grid .discipline-name{
    letter-spacing:.07em;
  }
}




/* --------------------------------
   Elegant motion (scroll reveals)
   -------------------------------- */
@keyframes aohFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.js .reveal-section{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.65,.2,1);
  will-change: opacity, transform;
}

.js .reveal-section.is-visible{
  opacity:1;
  transform: translateY(0);
}

.js .hero .badge-soft{ animation: aohFadeUp .95s ease both; }
.js .hero h1{ animation: aohFadeUp 1.05s ease both; animation-delay: .08s; }
.js .hero .lead{ animation: aohFadeUp 1.05s ease both; animation-delay: .18s; }
.js .hero .hero-cta{ animation: aohFadeUp 1.05s ease both; animation-delay: .28s; }

@media (prefers-reduced-motion: reduce){
  .js .reveal-section{
    opacity:1;
    transform:none;
    transition:none;
  }
  .js .hero .badge-soft,
  .js .hero h1,
  .js .hero .lead,
  .js .hero .hero-cta{
    animation:none;
  }
}

/* --------------------------------
   Venue media (layout diagram + video)
   -------------------------------- */
.layout-scroll{
  border-radius:16px;
  border:1px solid #222;
  background:#050505;
  padding:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.layout-scroll img{
  display:block;
  width:100%;
  height:auto;
  /* keep text readable on smaller screens */
  min-width:0;
}
@media (min-width:980px){
  .layout-scroll img{ min-width:0; }
}

.video-frame video{
  width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid #222;
  background:#000;
  display:block;
}

/* Venue layout tools + details */
.layout-tools{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 10px;
}
.btn.small{ padding:10px 12px; font-size:14px; }
.layout-help{ margin-top:10px; }

.details{
  margin:0 0 12px;
  border:1px solid #222;
  border-radius:16px;
  background:#070707;
  padding:10px 12px;
}
.details summary{
  cursor:pointer;
  font-weight:700;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.details summary::-webkit-details-marker{ display:none; }
.details summary::after{
  content:"+";
  font-weight:700;
  color:#d4af37;
  margin-left:10px;
}
.details[open] summary::after{ content:"–"; }
.details-list{ margin:10px 0 0; padding-left:18px; }
.details-list li{ margin:10px 0; }

/* Venue modal */
body.modal-open{ overflow:hidden; }
.modal{
  position:fixed;
  inset:0;
  z-index:2000;
  display:none;
}
.modal[aria-hidden="false"]{ display:block; }
.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.75);
}
.modal-panel{
  position:relative;
  margin:4vh auto;
  width:min(1100px, 94vw);
  max-height:92vh;
  background:#050505;
  border:1px solid #222;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 20px 70px rgba(0,0,0,.6);
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid #222;
}
.modal-title{ font-weight:700; }
.modal-close{
  width:42px;
  height:38px;
  border-radius:12px;
  border:1px solid #222;
  background:#0b0b0b;
  color:#fff;
  font-size:22px;
  line-height:34px;
  cursor:pointer;
}
.modal-body{
  padding:12px;
  overflow:auto;
  max-height:calc(92vh - 58px);
  -webkit-overflow-scrolling:touch;
}
.modal-body img{
  display:block;
  height:auto;
  width:auto;
  max-width:none;
  min-width:980px;
}


/* --- Netlify Forms helpers (v15) --- */
.form-honeypot{ display:none !important; }
.form-status{ margin:14px 0 0; padding:12px 14px; border-radius: var(--radius-md); background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.10); }
.form-status--ok{ border-color: rgba(0,255,0,0.25); }
.form-status--err{ border-color: rgba(255,0,0,0.25); }
.btn.is-loading{ opacity:0.7; pointer-events:none; }
.optional{ opacity:0.75; font-weight:500; font-size:0.95em; }
html.js-enabled .form-hint{ display:none; }

/* Ticket timeslot table */
.timeslot-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}
.timeslot-table th, .timeslot-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}
.timeslot-table thead {
  background: #111;
  color: #fff;
}
.timeslot-table tr.red { background: #ffdddd; }
.timeslot-table tr.orange { background: #ffe6cc; }
.timeslot-table tr.blue { background: #dde9ff; }
.timeslot-table tr.green { background: #e0f2e0; }
.note {
  margin-top: 1rem;
  font-style: italic;
}

/* Timeslot schedule (tickets) */
.table-scroll { overflow-x: auto; }
.timeslot-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.timeslot-table th, .timeslot-table td { border: 1px solid rgba(255,255,255,.12); padding: 10px; text-align: left; vertical-align: top; }
.timeslot-table thead { background: rgba(255,255,255,.06); }
.timeslot-table tbody tr:hover { background: rgba(255,255,255,.04); }

.slot-day { margin-top: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px; background: rgba(255,255,255,.03); }
.slot-day > summary { cursor: pointer; font-weight: 700; padding: 6px 4px; }
.slot-day[open] > summary { margin-bottom: 10px; }

.slot-badge { display:inline-flex; align-items:center; justify-content:center; min-width: 28px; height: 22px; padding: 0 8px; border-radius: 999px; font-weight: 800; font-size: 12px; color:#111; }
.badge-red { background:#ff6b6b; }
.badge-orange { background:#ffb84d; }
.badge-blue { background:#6bb3ff; }
.badge-green { background:#7ee08a; }

.build-stamp { margin-top: 10px; opacity: .7; font-size: 12px; text-align: center; }
