/*
Theme Name: Blue Stones Cup
Theme URI: https://example.com/blue-stones-cup
Author: Blue Stones Cup
Description: Mobile-first one-page WordPress theme for the Blue Stones Cup international judo tournament.
Version: 1.6.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: blue-stones-cup
License: GNU General Public License v2 or later
*/
:root {
      --navy: #04111f;
      --navy-soft: #071b31;
      --blue: #0d609e;
      --sky: #5bc0f7;
      --white: #f7fbff;
      --muted: #a7bbcc;
      --line: rgba(255,255,255,.13);
      --glass: rgba(6,25,43,.72);
      --radius: 24px;
      --shadow: 0 28px 90px rgba(0,0,0,.36);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--white);
      background:
        radial-gradient(circle at 12% 0%, rgba(57,165,230,.15), transparent 33%),
        linear-gradient(180deg, #03101d 0%, #071b31 48%, #03101d 100%);
      font-family: Inter, Arial, sans-serif;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 100;
      opacity: .045;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    button, input, select, textarea { font: inherit; }
    section { position: relative; }
    .container { width: min(1180px, calc(100% - 32px)); margin: auto; }

    .nav {
      position: fixed;
      inset: 0 0 auto;
      height: 76px;
      display: flex;
      align-items: center;
      z-index: 60;
      transition: .3s ease;
    }

    .nav.scrolled {
      background: rgba(3,14,25,.88);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--line);
    }

    .nav-inner {
      width: min(1180px, calc(100% - 32px));
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-family: "Barlow Condensed", sans-serif;
      font-size: 1.23rem;
      font-weight: 800;
      letter-spacing: .8px;
    }

    .brand img {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(255,255,255,.72);
    }

    .nav-right { display: flex; align-items: center; gap: 14px; }
    .nav-links { display: flex; align-items: center; gap: 24px; font-size: .91rem; color: #d9e8f4; }
    .nav-links a { transition: .2s ease; }
    .nav-links a:hover { color: var(--sky); }

    .lang-switch {
      display: inline-flex;
      padding: 4px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.05);
      backdrop-filter: blur(10px);
    }

    .lang-btn {
      border: 0;
      background: transparent;
      color: var(--muted);
      border-radius: 999px;
      padding: 8px 11px;
      font-size: .75rem;
      font-weight: 800;
      cursor: pointer;
    }

    .lang-btn.active { color: #03101d; background: var(--white); }
    .menu-btn { display: none; border: 0; background: none; color: white; font-size: 1.8rem; cursor: pointer; }

    .btn {
      min-height: 50px;
      padding: 0 22px;
      border-radius: 999px;
      border: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-weight: 800;
      cursor: pointer;
      transition: .25s ease;
    }

    .btn-primary {
      color: #03101d;
      background: linear-gradient(135deg, #86d7ff, #2ba2e8);
      box-shadow: 0 13px 34px rgba(43,162,232,.28);
    }

    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 17px 40px rgba(43,162,232,.39); }
    .btn-outline { color: white; border: 1px solid rgba(255,255,255,.27); background: rgba(255,255,255,.055); }
    .btn-outline:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }

    .hero {
      min-height: 100svh;
      padding: 112px 0 56px;
      display: grid;
      place-items: center;
      overflow: hidden;
    }

    .video-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      z-index: -4;
      opacity: 1;
      filter: none;
      background: #03101d;
    }


    .video-play-btn {
      position: absolute;
      left: 50%;
      bottom: 28px;
      transform: translateX(-50%);
      z-index: 8;
      width: 58px;
      height: 58px;
      display: none;
      place-items: center;
      border: 1px solid rgba(255,255,255,.55);
      border-radius: 50%;
      color: white;
      background: rgba(3,15,27,.68);
      backdrop-filter: blur(12px);
      box-shadow: 0 12px 35px rgba(0,0,0,.32);
      cursor: pointer;
    }
    .video-play-btn.show { display: grid; }

    .video-fallback {
      position: absolute;
      inset: 0;
      z-index: -5;
      background: #03101d;
      transform: scale(1.03);
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 30%;
      z-index: -3;
      pointer-events: none;
      background: linear-gradient(180deg, transparent, rgba(3,15,27,.58));
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.07fr .93fr;
      align-items: center;
      gap: 70px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #b4e2fb;
      text-transform: uppercase;
      letter-spacing: 2px;
      font-size: .77rem;
      font-weight: 800;
      margin-bottom: 15px;
    }

    .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--sky); }

    h1, h2, h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; }

    h1 {
      font-size: clamp(3.8rem, 8vw, 7.4rem);
      line-height: .82;
      letter-spacing: -2px;
      text-transform: uppercase;
    }

    h1 span {
      display: block;
      margin-top: 17px;
      color: var(--sky);
      font-size: .46em;
      letter-spacing: 4px;
    }

    .hero-copy { text-shadow: 0 3px 18px rgba(0,0,0,.74); }

    .hero-copy p {
      max-width: 630px;
      margin: 28px 0;
      color: #c6d6e4;
      font-size: 1.05rem;
      line-height: 1.75;
    }

    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

    .hero-card {
      max-width: 430px;
      justify-self: end;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      transform: none;
      animation: float 6s ease-in-out infinite;
      filter: drop-shadow(0 24px 40px rgba(0,0,0,.42));
    }

    .hero-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; clip-path: circle(49% at 50% 50%); }
    @keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }

    .countdown-wrap { margin-top: 42px; display: flex; gap: 12px; flex-wrap: wrap; }
    .count-box {
      min-width: 90px;
      padding: 14px 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.055);
      backdrop-filter: blur(9px);
    }

    .count-box strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2rem; }
    .count-box small { color: var(--muted); text-transform: uppercase; font-size: .64rem; letter-spacing: 1.2px; }


    .event-facts {
      margin-top: -1px;
      padding: 0 0 26px;
      background: linear-gradient(180deg, rgba(3,15,27,.96), transparent);
    }

    .facts-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .fact {
      min-height: 112px;
      padding: 22px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
      text-align: center;
    }

    .fact span {
      color: var(--sky);
      text-transform: uppercase;
      letter-spacing: 1.2px;
      font-size: .7rem;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .fact strong {
      font-family: "Barlow Condensed", sans-serif;
      font-size: 1.35rem;
      line-height: 1.1;
    }

    .section { padding: 108px 0; }
    .section-title { max-width: 760px; margin-bottom: 46px; }
    .section-title h2 { font-size: clamp(2.7rem, 6vw, 4.5rem); line-height: .94; text-transform: uppercase; }
    .section-title p { color: var(--muted); line-height: 1.72; }

    .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .info-card {
      padding: 28px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
      transition: .3s ease;
    }

    .info-card:hover { transform: translateY(-8px); border-color: rgba(91,192,247,.45); }
    .icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: rgba(91,192,247,.13);
      color: var(--sky);
      font-size: 1.35rem;
      margin-bottom: 20px;
    }

    .info-card h3 { font-size: 1.68rem; margin-bottom: 8px; }
    .info-card p { margin: 0; color: var(--muted); line-height: 1.65; }


    .schedule-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
    .schedule-day { padding:26px; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025)); }
    .schedule-date { display:inline-flex; padding:7px 11px; margin-bottom:14px; border-radius:999px; color:var(--sky); background:rgba(91,192,247,.12); font-size:.75rem; font-weight:800; letter-spacing:1px; }
    .schedule-day h3 { font-size:1.8rem; margin-bottom:16px; }
    .schedule-row { display:grid; grid-template-columns:110px 1fr; gap:14px; padding:12px 0; border-top:1px solid rgba(255,255,255,.09); color:var(--muted); }
    .schedule-row strong { color:white; }
    .categories-section { background:linear-gradient(180deg,rgba(255,255,255,.02),transparent); }
    .fee-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:22px; }
    .fee-strip>div { padding:22px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.045); text-align:center; }
    .fee-strip span { display:block; min-height:34px; color:var(--muted); font-size:.78rem; line-height:1.35; }
    .fee-strip strong { display:block; margin-top:8px; color:var(--sky); font-family:"Barlow Condensed",sans-serif; font-size:1.65rem; }
    .table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:22px; background:rgba(255,255,255,.035); }
    .categories-table { width:100%; min-width:760px; border-collapse:collapse; }
    .categories-table th,.categories-table td { padding:14px 16px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; }
    .categories-table th { color:var(--sky); background:rgba(91,192,247,.07); font-size:.78rem; text-transform:uppercase; letter-spacing:.7px; }
    .categories-table td { color:#d7e4ee; }
    .extra-info-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:22px; }

    .registration {
      background:
        radial-gradient(circle at 86% 50%, rgba(52,166,232,.15), transparent 30%),
        linear-gradient(180deg, transparent, rgba(255,255,255,.025), transparent);
    }

    .tabs {
      display: inline-flex;
      padding: 5px;
      margin-bottom: 26px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.04);
    }

    .tab-btn {
      border: 0;
      background: none;
      color: var(--muted);
      padding: 12px 20px;
      border-radius: 999px;
      font-weight: 800;
      cursor: pointer;
    }

    .tab-btn.active { background: var(--white); color: var(--navy); }

    .form-panel {
      display: none;
      padding: 30px;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: rgba(255,255,255,.045);
      box-shadow: var(--shadow);
    }

    .form-panel.active { display: block; animation: appear .35s ease; }
    @keyframes appear { from { opacity: 0; transform: translateY(8px); } }

    .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .field { display: flex; flex-direction: column; gap: 8px; }
    .field.full { grid-column: 1 / -1; }
    label { color: #dce8f1; font-size: .84rem; }

    input, select, textarea {
      width: 100%;
      padding: 15px 16px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(0,0,0,.19);
      color: white;
      outline: none;
      transition: .2s ease;
    }

    input:focus, select:focus, textarea:focus {
      border-color: var(--sky);
      box-shadow: 0 0 0 3px rgba(91,192,247,.12);
    }

    option { color: #111; }
    .form-note { color: var(--muted); font-size: .82rem; }
    .submit-row { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

    .download-box {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 28px;
      align-items: center;
      padding: 34px;
      border-radius: 28px;
      border: 1px solid rgba(91,192,247,.34);
      background: linear-gradient(135deg, rgba(13,96,158,.31), rgba(255,255,255,.04));
    }

    .download-box h3 { font-size: 2rem; }
    .download-box p { margin-bottom: 0; color: var(--muted); }


    .gallery-tabs {
      display: flex;
      gap: 10px;
      padding: 6px;
      margin-bottom: 24px;
      overflow-x: auto;
      scrollbar-width: none;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.04);
    }

    .gallery-tabs::-webkit-scrollbar { display: none; }

    .gallery-tab {
      flex: 0 0 auto;
      padding: 12px 18px;
      border: 0;
      border-radius: 999px;
      color: var(--muted);
      background: transparent;
      font-weight: 800;
      cursor: pointer;
      transition: .25s ease;
    }

    .gallery-tab.active {
      color: #03101d;
      background: var(--white);
    }

    .gallery-panel { display: none; }
    .gallery-panel.active { display: block; animation: appear .35s ease; }

    .hall-video-card {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: #020b13;
      box-shadow: var(--shadow);
    }

    .hall-video-card video {
      display: block;
      width: 100%;
      max-height: 680px;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      background: #020b13;
    }

    .hall-video-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
      padding: 18px 22px;
      background: rgba(3,15,27,.88);
    }

    .hall-video-info h3 { font-size: 1.6rem; }
    .hall-video-info p { margin: 4px 0 0; color: var(--muted); }

    .photo-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }

    .gallery-photo {
      position: relative;
      min-height: 230px;
      padding: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: rgba(255,255,255,.045);
      cursor: zoom-in;
    }

    .gallery-photo:nth-child(1),
    .gallery-photo:nth-child(5) {
      grid-column: span 2;
    }

    .gallery-photo img {
      width: 100%;
      height: 100%;
      min-height: 230px;
      object-fit: cover;
      transition: transform .45s ease, filter .45s ease;
    }

    .gallery-photo:hover img {
      transform: scale(1.055);
      filter: brightness(1.08);
    }

    .gallery-photo::after {
      content: "＋";
      position: absolute;
      right: 14px;
      bottom: 14px;
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: white;
      background: rgba(3,15,27,.68);
      backdrop-filter: blur(10px);
      opacity: 0;
      transform: translateY(8px);
      transition: .25s ease;
    }

    .gallery-photo:hover::after {
      opacity: 1;
      transform: none;
    }

    .gallery-empty-note {
      margin-top: 14px;
      color: var(--muted);
      font-size: .82rem;
      text-align: center;
    }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(0,0,0,.92);
    }

    .lightbox.open { display: flex; }

    .lightbox img {
      max-width: min(1200px, 92vw);
      max-height: 86vh;
      object-fit: contain;
      border-radius: 12px;
      box-shadow: 0 28px 100px rgba(0,0,0,.55);
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
      position: absolute;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.25);
      border-radius: 50%;
      color: white;
      background: rgba(3,15,27,.7);
      backdrop-filter: blur(10px);
      cursor: pointer;
    }

    .lightbox-close { top: 22px; right: 22px; font-size: 1.4rem; }
    .lightbox-prev { left: 22px; }
    .lightbox-next { right: 22px; }


    footer {
      padding: 38px 0;
      border-top: 1px solid var(--line);
      color: var(--muted);
    }

    .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
    .socials { display: flex; gap: 12px; }
    .socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }

    .reveal { opacity: 0; transform: translateY(28px); transition: .7s ease; }
    .reveal.visible { opacity: 1; transform: none; }

    @media (max-width: 920px) {
      .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 84px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: #071b31;
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
      }

      .nav-links.open { display: flex; }
      .menu-btn { display: block; }
      .hero-grid { grid-template-columns: 1fr; gap: 44px; }
      .hero-card { justify-self: center; max-width: 360px; }
      .cards, .schedule-grid, .extra-info-grid { grid-template-columns: 1fr; }
      .photo-grid { grid-template-columns: repeat(2, 1fr); }
      .gallery-photo:nth-child(1), .gallery-photo:nth-child(5) { grid-column: auto; }
      .fee-strip { grid-template-columns: repeat(2, 1fr); }
      .facts-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 640px) {
      .container { width: calc(100% - 22px); }
      .nav-inner { width: calc(100% - 22px); }
      .brand span { display: none; }
      .hero { padding-top: 100px; }
      .hero-copy { text-align: center; }
      .hero-copy .eyebrow { justify-content: center; }
      .hero-actions, .countdown-wrap { justify-content: center; }
      .count-box { min-width: calc(25% - 10px); padding: 11px 7px; text-align: center; }
      .count-box strong { font-size: 1.55rem; }
      .section { padding: 82px 0; }
      .section-title { text-align: center; margin-left: auto; margin-right: auto; }
      .form-grid { grid-template-columns: 1fr; }
      .field.full { grid-column: auto; }
      .form-panel { padding: 18px; }
      .download-box { grid-template-columns: 1fr; text-align: center; }
      .download-box .btn, .submit-row .btn { width: 100%; }
      .hero-card { width: 88%; transform: none; animation: none; }
      .lang-btn { padding: 8px 9px; }
      .facts-grid { grid-template-columns: 1fr; }
      .fact { min-height: 94px; }
      .fee-strip { grid-template-columns: 1fr; }
      .schedule-row { grid-template-columns: 92px 1fr; }
      .video-play-btn { bottom: 18px; }
      .photo-grid { grid-template-columns: 1fr; }
      .gallery-photo, .gallery-photo img { min-height: 250px; }
      .hall-video-info { align-items: flex-start; flex-direction: column; }
      .lightbox-prev { left: 8px; }
      .lightbox-next { right: 8px; }
    }

/* WordPress theme optimizations */
.admin-bar .nav { top: 32px; }
.hero-video-only {
  min-height: 100svh;
  height: 100svh;
  padding: 0;
  display: block;
  background: #03101d;
}
.hero-video-only .video-bg { z-index: 0; }
.hero-video-only .video-fallback { z-index: -1; background: #03101d; }
.hero-video-only::after {
  z-index: 1;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(3,15,27,.62));
}
.hero-video-only .video-play-btn { z-index: 4; }
.hero-scroll {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  width: 34px;
  height: 54px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 9px;
  background: rgba(3,15,27,.18);
  backdrop-filter: blur(6px);
}
.hero-scroll span {
  width: 5px;
  height: 9px;
  border-radius: 99px;
  background: white;
  animation: scrollHint 1.7s infinite;
}
@keyframes scrollHint {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(22px); }
}
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Hero without the large circular logo */
.hero-without-logo .hero-grid {
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
}

.hero-without-logo .hero-copy {
  max-width: 820px;
}

@media (max-width: 760px) {
  .hero-without-logo .hero-grid {
    justify-content: center;
  }

  .hero-without-logo .hero-copy {
    max-width: 100%;
  }
}


/* Two downloadable registration forms */
.download-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.download-actions .btn {
  min-width: 190px;
  justify-content: center;
}

@media (max-width: 760px) {
  .download-actions {
    width: 100%;
    flex-direction: column;
  }

  .download-actions .btn {
    width: 100%;
  }
}


/* Version 1.4 - structured online registration and email status */
.bsc-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--sky);
}

.team-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.roster-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.roster-section h3 {
  margin: 0 0 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.roster-grid {
  display: grid;
  gap: 14px;
}

.team-extra-fields {
  margin-top: 18px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: .92rem;
  line-height: 1.45;
}

.form-status.is-visible { display: block; }
.form-status.is-loading {
  color: #dcefff;
  border: 1px solid rgba(91,192,247,.38);
  background: rgba(13,96,158,.2);
}
.form-status.is-success {
  color: #dffff0;
  border: 1px solid rgba(82,214,144,.42);
  background: rgba(31,136,82,.2);
}
.form-status.is-error {
  color: #ffe6e6;
  border: 1px solid rgba(255,112,112,.42);
  background: rgba(164,44,44,.22);
}

.form-submit:disabled {
  opacity: .66;
  cursor: wait;
}

@media (max-width: 760px) {
  .team-roster { grid-template-columns: 1fr; }
  .roster-section { padding: 16px; }
}


/* Editable content, blog and sponsors */
.hero-title-main {
  display: block;
  margin: 0;
  color: var(--white);
  font-size: 1em;
  letter-spacing: -2px;
}


.bsc-admin-hint {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed rgba(91,192,247,.45);
  border-radius: 14px;
  color: #cfeaff;
  background: rgba(91,192,247,.08);
}

.blog-section {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.025), transparent);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.blog-card:hover {
  transform: translateY(-7px);
  border-color: rgba(91,192,247,.44);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.blog-card[hidden] { display: none !important; }

.blog-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0d609e, #071b31);
}

.blog-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.blog-card:hover .blog-image img { transform: scale(1.045); }

.blog-image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(255,255,255,.82);
}

.blog-card-body { padding: 24px; }
.blog-meta {
  color: var(--sky);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.blog-card h3 { margin: 9px 0 10px; font-size: 1.8rem; line-height: 1.05; }
.blog-card h3 a { color: var(--white); text-decoration: none; }
.blog-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.blog-read-more { color: var(--sky); font-weight: 800; text-decoration: none; }
.blog-empty {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}



/* Accommodation / hotel offers */
.stay-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 20%, rgba(91,192,247,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 70%);
}
.stay-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr); gap:28px; align-items:stretch; }
.stay-hotel-card,.stay-offers-wrap { border:1px solid var(--line); border-radius:28px; background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025)); overflow:hidden; }
.stay-hotel-copy { padding:30px 30px 24px; }
.stay-hotel-badge { color:var(--sky); font-size:.75rem; font-weight:800; letter-spacing:.12em; }
.stay-hotel-card h3 { margin:9px 0 12px; font-size:clamp(2rem,4vw,3.1rem); line-height:1; }
.stay-description p { margin:0; color:var(--muted); line-height:1.75; }
.stay-gallery { padding:0 14px 16px; }
.stay-gallery-main { position:relative; aspect-ratio:16/10; overflow:hidden; border-radius:20px; background:#061523; }
.stay-gallery-main img { width:100%; height:100%; object-fit:cover; display:block; opacity:1; transform:scale(1); transition:opacity .2s ease,transform .45s ease; }
.stay-gallery-main img.is-changing { opacity:.35; transform:scale(1.015); }
.stay-gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:44px; height:44px; border:1px solid rgba(255,255,255,.25); border-radius:50%; background:rgba(3,14,25,.72); color:#fff; font-size:1.8rem; line-height:1; cursor:pointer; backdrop-filter:blur(8px); }
.stay-gallery-prev { left:12px; }.stay-gallery-next{right:12px}
.stay-gallery-count { position:absolute; right:13px; bottom:12px; padding:6px 9px; border-radius:999px; color:#fff; background:rgba(3,14,25,.72); font-size:.78rem; font-weight:700; backdrop-filter:blur(8px); }
.stay-gallery-thumbs { display:flex; gap:8px; padding-top:9px; overflow-x:auto; scrollbar-width:none; }.stay-gallery-thumbs::-webkit-scrollbar{display:none}
.stay-thumb { width:70px; height:48px; flex:0 0 auto; padding:0; overflow:hidden; border:2px solid transparent; border-radius:10px; opacity:.62; background:none; cursor:pointer; transition:.2s ease; }.stay-thumb.active{opacity:1;border-color:var(--sky);transform:translateY(-2px)}.stay-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.stay-offers-wrap { padding:24px; display:flex; flex-direction:column; }
.stay-offer-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; padding:6px; border:1px solid var(--line); border-radius:16px; background:rgba(0,0,0,.16); }
.stay-offer-tab { min-height:56px; padding:10px 12px; border:0; border-radius:12px; color:#9fb2c1; background:transparent; font:700 .85rem/1.15 Inter,sans-serif; cursor:pointer; transition:.2s ease; }.stay-offer-tab.active{color:#04101c;background:var(--sky);box-shadow:0 8px 24px rgba(91,192,247,.18)}
.stay-offer-stage { flex:1; display:grid; margin-top:16px; }
.stay-offer-card { grid-area:1/1; padding:27px; border:1px solid rgba(255,255,255,.08); border-radius:22px; background:linear-gradient(160deg,rgba(10,34,55,.95),rgba(5,20,34,.94)); animation:bscStayIn .32s ease both; }.stay-offer-card[hidden]{display:none!important}
@keyframes bscStayIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
.stay-offer-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; border-bottom:1px solid rgba(255,255,255,.08); padding-bottom:22px; }
.stay-offer-number { color:rgba(255,255,255,.24); font-family:'Barlow Condensed',sans-serif; font-size:1.2rem; font-weight:800; letter-spacing:.12em; }
.stay-offer-head h3 { margin:3px 0 0; max-width:330px; font-size:clamp(1.8rem,3vw,2.55rem); line-height:1; }
.stay-price { text-align:right; white-space:nowrap; }.stay-price strong{display:block;color:#fff;font-family:'Barlow Condensed',sans-serif;font-size:3.25rem;line-height:.9}.stay-price span{display:block;margin-top:6px;color:var(--sky);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.stay-facts { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0; }.stay-facts>div{padding:14px;border-radius:14px;background:rgba(255,255,255,.045)}.stay-facts span,.stay-small-label{display:block;margin-bottom:5px;color:#7f9aad;font-size:.69rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.stay-facts strong{font-size:.95rem}
.stay-included ul { display:grid; gap:9px; margin:10px 0 0; padding:0; list-style:none; }.stay-included li{position:relative;padding-left:25px;color:#d4e1ea;line-height:1.45}.stay-included li::before{content:'✓';position:absolute;left:0;top:0;color:var(--sky);font-weight:900}
.stay-booking-note { margin-top:14px; padding:17px 18px; border-radius:16px; background:rgba(91,192,247,.07); border:1px solid rgba(91,192,247,.18); }.stay-booking-note>span{color:var(--sky);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.stay-booking-note p{margin:6px 0 0;color:#c8d7e1;font-size:.9rem;line-height:1.55}
[data-bsc-lang][hidden]{display:none!important}

@media(max-width:900px){.stay-grid{grid-template-columns:1fr}.stay-offers-wrap{min-height:0}}
@media(max-width:600px){.stay-hotel-copy{padding:24px 20px 18px}.stay-offers-wrap{padding:14px}.stay-offer-card{padding:20px}.stay-offer-head{align-items:flex-end}.stay-price strong{font-size:2.65rem}.stay-facts{grid-template-columns:1fr}.stay-gallery-main{aspect-ratio:4/3}.stay-offer-tabs{overflow-x:auto;grid-template-columns:minmax(145px,1fr) minmax(185px,1fr) minmax(145px,1fr)}.stay-offer-tab{font-size:.78rem}.stay-gallery-arrow{width:40px;height:40px}}

.sponsors-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 86px;
  border-top: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at 50% 0%, rgba(91,192,247,.055), transparent 42%),
    #020d18;
}

.sponsors-heading { margin-bottom: 34px; }

.sponsor-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 70px 0 78px;
}

/* Soft edge curtains: logos disappear behind the left edge and enter from right. */
.sponsor-marquee::before,
.sponsor-marquee::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: clamp(30px, 7vw, 110px);
  pointer-events: none;
}

.sponsor-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #020d18 0%, rgba(2,13,24,.92) 25%, rgba(2,13,24,0) 100%);
}

.sponsor-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #020d18 0%, rgba(2,13,24,.92) 25%, rgba(2,13,24,0) 100%);
}

.sponsor-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: bscSponsorLoop 30s linear infinite;
}

.sponsor-set {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 0 0 auto;
  min-width: 100vw;
  gap: clamp(34px, 6vw, 90px);
  padding: 24px clamp(55px, 9vw, 150px);
  box-sizing: border-box;
}

.sponsor-logo {
  width: 178px;
  height: 92px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 14px 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.965);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  text-decoration: none;
  transform: scale(var(--bsc-sponsor-scale, 1));
  transform-origin: center center;
  will-change: transform;
  transition: box-shadow .14s linear, border-color .14s linear;
}

.sponsor-logo img {
  display: block;
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-logo.is-in-lens {
  z-index: 8;
  border-color: rgba(91,192,247,.46);
  box-shadow:
    0 24px 60px rgba(0,0,0,.34),
    0 0 34px rgba(91,192,247,.16);
}

/* Two identical sets sit side by side. Moving exactly one set width creates
   a seamless loop: anything disappearing left is already entering right. */
@keyframes bscSponsorLoop {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Blog article pages — reading-first layout */
.bsc-post-page {
  min-height:100vh;
  padding:118px 0 88px;
  background:
    radial-gradient(circle at 50% 0%, rgba(91,192,247,.09), transparent 36%),
    linear-gradient(180deg,#061523 0%,#03101c 100%);
}
.bsc-post-shell { max-width:1040px; margin:0 auto; }
.bsc-back-link { display:inline-flex; align-items:center; gap:6px; margin-bottom:26px; color:var(--sky); text-decoration:none; font-weight:800; font-size:.9rem; }
.bsc-post-head { max-width:820px; margin:0 auto 32px; text-align:left; }
.bsc-post-head h1 {
  margin:0;
  color:#f5f9fc;
  font-family:Inter,sans-serif;
  font-size:clamp(2.25rem,5vw,4.65rem);
  font-weight:750;
  line-height:1.04;
  letter-spacing:-.045em;
  text-transform:none;
  overflow-wrap:anywhere;
}
.bsc-post-date { margin-bottom:13px; color:var(--sky); font-weight:800; text-transform:uppercase; letter-spacing:.1em; font-size:.72rem; }
.bsc-post-featured { max-width:940px; margin:0 auto 34px; overflow:hidden; border-radius:26px; border:1px solid rgba(255,255,255,.1); background:#07192b; }
.bsc-post-featured img { display:block; width:100%; max-height:620px; object-fit:cover; }
.bsc-post-content {
  max-width:820px;
  margin:0 auto;
  padding:clamp(24px,4vw,46px);
  border:1px solid rgba(255,255,255,.10);
  border-radius:26px;
  background:linear-gradient(160deg,rgba(255,255,255,.052),rgba(255,255,255,.024));
  box-shadow:0 26px 70px rgba(0,0,0,.16);
}
.bsc-post-content p,.bsc-post-content li { color:#cbd8e2; font-size:clamp(1rem,1.4vw,1.1rem); line-height:1.78; }
.bsc-post-content p { margin:0 0 1.35em; }
.bsc-post-content h1,.bsc-post-content h2,.bsc-post-content h3,.bsc-post-content h4 { color:#fff; font-family:Inter,sans-serif; text-transform:none; letter-spacing:-.025em; overflow-wrap:anywhere; }
.bsc-post-content h1 { margin:1.2em 0 .55em; font-size:clamp(2rem,4vw,3rem); line-height:1.08; }
.bsc-post-content h2 { margin:1.45em 0 .55em; font-size:clamp(1.7rem,3vw,2.35rem); line-height:1.12; }
.bsc-post-content h3 { margin:1.35em 0 .5em; font-size:clamp(1.4rem,2.4vw,1.85rem); line-height:1.18; }
.bsc-post-content h4 { margin:1.2em 0 .45em; font-size:1.25rem; }
.bsc-post-content strong { color:#eef7fd; font-weight:750; }
.bsc-post-content a { color:var(--sky); text-underline-offset:3px; }
.bsc-post-content ul,.bsc-post-content ol { margin:0 0 1.5em; padding-left:1.35em; }
.bsc-post-content li+li { margin-top:.45em; }
.bsc-post-content img { display:block; max-width:100%; height:auto; border-radius:18px; }
.bsc-post-content figure { margin:1.8em 0; }
.bsc-post-content figcaption { margin-top:8px; color:#8299aa; font-size:.82rem; text-align:center; }
.bsc-post-content .wp-block-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.bsc-post-content .wp-block-gallery figure { margin:0!important; width:auto!important; }
.bsc-post-content .wp-block-gallery img { width:100%; height:100%; min-height:180px; object-fit:cover; }
.bsc-post-content blockquote { margin:1.8em 0; padding:18px 22px; border-left:3px solid var(--sky); border-radius:0 14px 14px 0; background:rgba(91,192,247,.075); }
.bsc-post-content blockquote p { margin:0; color:#e0edf5; font-size:1.12rem; }
.bsc-post-content hr { margin:2.2em 0; border:0; border-top:1px solid rgba(255,255,255,.12); }
.bsc-post-content .wp-block-button__link { display:inline-flex; padding:12px 18px; border-radius:999px; background:var(--sky); color:#04111d; font-weight:800; text-decoration:none; }
.bsc-post-content table { width:100%; border-collapse:collapse; margin:1.5em 0; font-size:.94rem; }
.bsc-post-content th,.bsc-post-content td { padding:12px; border:1px solid rgba(255,255,255,.12); text-align:left; }
.bsc-post-content th { background:rgba(91,192,247,.09); color:#fff; }

/* Cleaner article nav on phones */
.single-post .nav-inner,.blog .nav-inner,.archive .nav-inner { min-height:74px; }
.single-post .nav .btn,.blog .nav .btn,.archive .nav .btn { white-space:nowrap; }

@media(max-width:680px){
  .bsc-post-page{padding-top:98px}
  .bsc-post-shell{width:100%}
  .bsc-post-head{margin-bottom:24px}
  .bsc-post-head h1{font-size:clamp(2rem,10vw,3.15rem);line-height:1.05;letter-spacing:-.035em}
  .bsc-post-featured{border-radius:18px;margin-bottom:20px}
  .bsc-post-content{padding:24px 19px;border-radius:20px}
  .bsc-post-content p,.bsc-post-content li{font-size:1rem;line-height:1.72}
  .bsc-post-content .wp-block-gallery{grid-template-columns:1fr}
  .single-post .nav .brand span,.blog .nav .brand span,.archive .nav .brand span{display:none}
  .single-post .nav .btn,.blog .nav .btn,.archive .nav .btn{padding:10px 12px;font-size:.78rem}
}

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

@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .sponsor-marquee { padding-top: 58px; padding-bottom: 64px; }
  .sponsor-logo { width: 148px; height: 80px; padding: 11px 15px; }
  .sponsor-logo img { max-height: 52px; }
  .sponsor-set {
    min-width: 100vw;
    gap: 32px;
    padding-left: 38px;
    padding-right: 38px;
  }
  .sponsor-track { animation-duration: 24s; }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-track { animation-duration: 45s; }
}

@media (min-width: 921px) {
  .nav-links { gap: 14px; font-size: .82rem; }
}

.bsc-blog-index-title{font-size:clamp(2.8rem,6vw,5rem);line-height:1;margin:.1em 0 .2em}


/* v1.6.1 — robust language visibility and accommodation tabs */
.stay-offer-tabs {
  position: relative;
  z-index: 5;
}
.stay-offer-tab {
  position: relative;
  z-index: 6;
  pointer-events: auto !important;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: rgba(91,192,247,.16);
}
.stay-offer-stage {
  position: relative;
  z-index: 1;
}

/* Secondary language safety net. JS also updates [hidden]. */
html[data-bsc-language="bg"] [data-bsc-lang="en"],
html[data-bsc-language="en"] [data-bsc-lang="bg"] {
  display: none !important;
}
html[data-bsc-language="bg"] [data-bsc-lang="bg"],
html[data-bsc-language="en"] [data-bsc-lang="en"] {
  display: revert;
}


/* v1.6.2 — three accommodation offers */
@media (max-width: 780px) {
  .stay-offer-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 72vw);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .stay-offer-tabs::-webkit-scrollbar { display: none; }
  .stay-offer-tab { scroll-snap-align: start; }
}
