*{
  margin: 0 auto;
}
.content{
  margin: 15px;
}
.content{ /* final content margin */
  margin: 15px;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  background-color: #fff;
}
.navbar {
    background-color: #ba0202;
    overflow: hidden;
    line-height: 50px;
    
}
.navbarbutton {
    color: black;
    border-radius: 25px;
    background-color: hsl(0, 0%, 90%);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.322);
    border-width: 2.5px;
  margin: 8px; /* reduced spacing between buttons */
  text-decoration: none;
  display: inline-block; /* make anchors behave like buttons */
  padding: 6px 12px;    /* smaller clickable area */
  font-size: 14px;      /* slightly smaller text */
  line-height: 1;       /* compact the button height */
  text-align: center;
  cursor: pointer;

   
}
.navbarbutton a,
.navbarbutton a:link,
.navbarbutton a:visited {
  color: #000000; /* force black text for links inside the button */
  text-decoration: none; /* remove underline */
}
.navbarbutton:hover a {
  color: #ffffff; /* match button hover text color */
}
.navbarbutton:hover{
    color: white;
    background-color: hsl(0, 0%, 60%);
    box-shadow: none;
  border-width: 1.5px;
    border-color: rgba(245, 240, 240, 0.322);
}

/* Focus styles for keyboard accessibility */
.navbarbutton:focus,
.navbarbutton:focus-visible {
  outline: 3px solid #ffffff;      /* visible white outline against dark navbar */
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.18); /* subtle blue ring */
  color: #ffffff;                  /* ensure readable text when focused */
}

#start-btn:focus, #submit-btn:focus, #quizterug:focus {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.18);
}
 
/* Pictogram: logo in the nav */
.Pictogram {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-right: 12px;
  cursor: pointer; /* indicate interactive element for minigame */
}
.Pictogram:focus, .Pictogram:focus-visible {
  outline: 4px solid #830101;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255,213,79,0.22);
}

/* Visual feedback for long-press (progress ring) */
.Pictogram.itf-holding{ position:relative; }
.Pictogram.itf-holding::after{
  content: ''; position: absolute; left: -6px; top: -6px; right: -6px; bottom: -6px; border-radius: 12px; box-shadow: 0 0 0 4px rgba(255,213,79,0.18) inset; animation: longpress-hold 5s linear forwards; pointer-events:none;
}
@keyframes longpress-hold { from { box-shadow: 0 0 0 0 rgba(255,213,79,0.2) inset; } to { box-shadow: 0 0 0 52px rgba(255,213,79,0.08) inset; } }

/* A small hint below pictogram (optional) */
.Pictogram .itf-longpress-hint{
  display:block;
  font-size:0.72rem;
  color: #666;
  margin-top: 2px;
}

/* ================= Quiz Container ================= */
#quiz-section {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  /* more transparent to reduce white glow */
  background-color: rgba(249,249,249,0.70);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
}

/* Titel */
#quiz-section h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Startknop en verzendknop */
#start-btn, #submit-btn {
  display: block;
  margin: 16px auto;
  padding: 8px 18px; /* reduced size */
  font-size: 14px;   /* smaller text */
  border: none;
  border-radius: 10px;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

#start-btn:hover, #submit-btn:hover {
  background-color: #0056b3;
}

/* Vraag styling */
.question {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 10px;
  background-color: #e6f0ff;
}

.question p {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Radio buttons styling */
label {
  display: block;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

label:hover {
  background-color: #d9eaff;
}

/* Resultaat styling */
#result {
  margin-top: 30px;
  padding: 20px;
  border-radius: 15px;
  background-color: #0dca0d;
  text-align: center;
  font-size: 18px;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.bands-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;
}

.bands-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.band {
    flex: 0 1 auto;
    text-align: center;
    padding: 16px 20px;
    min-width: 100px;
    border-radius: 10px;
    font-weight: bold;
    color: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
}

/* Equipment images on the equipment page */
.equipment {
  width: 100%;
  height: 160px;
  display: block;
  margin: 0 0 8px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  object-fit: cover; /* ensures nice image cropping */
  object-position: center center;
}

/* Equipment grid layout */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.equipment-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.equipment-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,0.08); }
.equipment-card figure { overflow: hidden; border-radius: 10px; }
.equipment { transition: transform 0.5s cubic-bezier(.2,.8,.2,1); transform-origin: center center; }
.equipment-card:hover .equipment { transform: scale(1.18); }
.equipment-card:active .equipment { transform: scale(1.12); }
.equipment-card figure { margin: 0 0 8px 0; }
.equipment-card figcaption { text-align: center; color: #222; font-weight: 700; margin-top: 6px; }
.equipment-card p { margin: 8px 0 0 0; color: #444; }

/* Featured membership card */
.equipment-card.featured {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border: 2px solid #ba0202;
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(186,14,2,0.15);
}

.equipment-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 18px 50px rgba(186,14,2,0.2);
}

.featured-badge {
  position: absolute;
  top: 10px;
  right: -22px;
  left: auto;
  transform: rotate(20deg);
  background-color: #ba0202;
  color: #ffd700;
  padding: 3px 16px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(186,14,2,0.18);
  border: 2px solid #ffd700;
  z-index: 3;

/* Small cancellation note used under each plan and CTA */
.cancel-note {
  font-size: 0.60rem;
  color: #7a7a7a;
  margin-top: 6px;
  text-align: center;
  opacity: 0.95;
}
  pointer-events: none;
}

.equipment-card ul {
  margin: 10px 0;
  padding-left: 20px;
  list-style-type: disc;
  color: #555;
  font-size: 0.9rem;
}

.equipment-card ul li {
  margin: 6px 0;
  color: #555;
}

@media (max-width: 900px) {
  .equipment-grid { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
}
@media (max-width: 600px) {
  .equipment-grid { grid-template-columns: 1fr; }
}

.band:hover {
    transform: scale(1.1);
}

.band-wit { background-color: #ffffff; color: #333; border: 2px solid  #8e8d8d;}
.band-geel { background-color: #FFD700; color: #333; border: 2px solid  #cbaa03;}
.band-groen { background-color: #32CD32; color: #333; border: 2px solid  #03a73d;}
.band-blauw { background-color: #1E90FF; color: #333; border: 2px solid  #0357b0;}
.band-rood { background-color: #ff2200; color: #333; border: 2px solid  #b10303;}
.band-zwart { background-color: #000000; border: 2px solid  #242020;}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.bands-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;
    opacity: 0;               /* start onzichtbaar */
    animation: fadeIn 1s forwards; /* fade-in animatie */
}

#quizterug {
   display: block;
  margin: 12px auto;
  padding: 8px 16px; /* smaller reset button */
  font-size: 14px;
  border: none;
  border-radius: 10px;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

#quizterug:hover {
  background-color: #0056b3;
}

#Gebit {
  height: 180px;

}

#Hoofdbescherming {
  height: 180px;
}

#Handschoenen {
  height: 180px;
}

#Voetbeschermers {
  height: 180px;
}

/* Navbar layout helpers */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 10px;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Hero section */
.hero {
  background: linear-gradient(180deg, rgba(186,14,2,0.06), rgba(0,0,0,0.02));
  padding: 48px 16px;
  text-align: center;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  font-weight: bold;
}
.hero p {
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
  font-size: 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.hero-cta .cta {
  margin: 8px 8px 0 8px;
}

/* CTA style (primary) */
.cta {
  background-color: #ba0e02;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
}
.cta:hover {
  background-color: #8f0b01;
}

/* Feature card grid */
.features {
  /* Stack feature cards vertically so the homepage becomes scrollable */
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  margin: 30px auto 40px auto;
  padding: 0 16px;
}
.feature-card {
  display: block;
  background: #ffffff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  color: #222;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card h3 {
  margin: 0 0 8px 0;
}
.feature-card p {
  margin: 0;
  color: #555;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.site-footer {
  text-align: center;
  padding: 24px 12px;
  color: #444;
  background-color: rgba(0,0,0,0.02);
  border-top: 1px solid rgba(0,0,0,0.04);
}

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .navbar-inner { flex-direction: column; gap: 8px; }
}

@media (max-width: 600px) {
  /* For centered nav, don't absolute-position the pictogram on small screens */
  .navbar.centered .Pictogram {
    position: static;
    transform: none;
    margin-right: 12px;
  }
  .navbar.centered .navbar-inner { justify-content: center; }
}
.hero-small {
  padding: 32px 12px;
}
.section {
  max-width: 900px;
  margin: 20px auto;
  padding: 28px;
  background: rgba(255,255,255,0.65);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-left: 4px solid #ba0e02;
  line-height: 1.6;
  backdrop-filter: blur(12px);
}
.section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #ba0e02;
  font-size: 1.6rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 12px;
}
.section p {
  color: #444;
  margin-bottom: 14px;
  font-size: 1rem;
}
.section ul, .section li {
  color: #444;
  margin-bottom: 10px;
}
.section ul {
  margin-left: 20px;
}
.section-cta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.section-cta .cta {
  flex: 1 1 auto;
  min-width: 180px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(186,14,2,0.3);
  transition: all 0.3s ease;
}
.section-cta .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(186,14,2,0.4);
}
.navbar.centered .navbar-inner {
  justify-content: center;
  position: relative; /* allow absolute positioning for pictogram */
}
.navbar.centered .Pictogram {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.navbar.centered .nav-links {
  justify-content: center; /* ensure links are centered */
  display: flex;
  gap: 8px;
}

/* Auth button (right side) */
.auth-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px; /* keep original padding */
  margin-left: 8px;
  border-radius: 999px; /* pill */
  background: #ffffff; /* subtle card style */
  border: 1px solid rgba(0,0,0,0.08);
  color: #111;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  /* keep default white background and subtle shadow */
}
.auth-button:active { transform: translateY(1px); }

.auth-button:hover, .auth-button:focus {
  color: #ffffff; /* like other nav buttons */
  background-color: hsl(0, 0%, 60%);
  box-shadow: none;
  border-width: 1.5px;
  border-color: rgba(245, 240, 240, 0.322);
}

.auth-button.logged-in {
  background: linear-gradient(180deg,#27ae60,#1f8c45);
  color: #ffffff;
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 6px 20px rgba(37,160,96,0.18);
}
.auth-button.logged-in:hover { opacity: 0.95; }
.navbar.centered .auth-button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }

/* Modal */
.modal { display: none; position: fixed; inset: 0; z-index: 9999; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.modal-content { position: relative; width: 100%; max-width: 420px; margin: 8% auto; background: #fff; border-radius: 10px; padding: 18px; z-index: 1; }
/* Make modal content scrollable so touchpad two-finger scrolling works naturally */
#checkout-modal .modal-content {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-close { position: absolute; right: 8px; top: 8px; background: transparent; border: none; font-size: 1.2rem; cursor: pointer; }
.modal-content h2 { margin-top: 0; }
.modal-content input { width: 100%; padding: 10px 8px; margin: 8px 0 12px 0; border: 1px solid #e6e6e6; border-radius: 8px; background: #fbfbfb; }
.modal-content input:focus {
  outline: none; /* remove ugly native outline */
  border-color: #ba0e02; /* brand color */
  box-shadow: 0 0 0 4px rgba(186,14,2,0.08);
}
.modal-content input::placeholder { color: #9b9b9b; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-actions button { padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.modal-actions #login { background: linear-gradient(180deg,#ba0e02,#9e0b01); color: #fff; border: none; box-shadow: 0 6px 18px rgba(186,14,2,0.12); }
.modal-actions #create-account { background: #fff; border: 1px solid #e6e6e6; color: #222; }

@media (max-width: 600px) {
  .navbar.centered .auth-button { position: static; transform: none; }
}

/* Toast notifications (bottom-right) */
.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
}
.toast {
  min-width: 200px;
  max-width: 320px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
  font-size: 14px;
}

/* =====================================
   Full-page Minigame styles
   ===================================== */
.itf-fullgame-page{ background: linear-gradient(180deg,#fff 0%, #f8f9fb 60%); min-height:100vh; display:flex; flex-direction:column;}
.itf-game-header-page{ background: linear-gradient(90deg,#ba0202 0%, #e63946 100%); color:#fff; padding:12px 18px; }
.itf-game-header-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; max-width:1200px; margin:0 auto; }
.itf-game-actions{ display:flex; gap:8px; align-items:center }
.itf-game-title h1{ font-size:1.7rem; margin:0; font-weight:800; letter-spacing:0.5px }
.itf-game-sub{ margin:6px 0 0 0; opacity:0.95; font-size:0.98rem }
.itf-game-main{ display:flex; gap:20px; align-items:stretch; max-width:1200px; margin:20px auto; width:100%; padding:0 12px; }
.itf-game-panel{ width:340px; background: linear-gradient(180deg,#fff,#fffefc); border-radius:14px; box-shadow: 0 12px 40px rgba(0,0,0,0.08); padding:18px; border: 1px solid rgba(186,14,2,0.06) }
.itf-game-panel-inner{ display:flex; flex-direction:column; gap:12px; }
.itf-game-stats{ display:flex; gap:8px; justify-content:space-between; }
.itf-stat{ text-align:center; padding:10px 14px; border-radius:10px; background: linear-gradient(180deg,#fff,#fff8f8); box-shadow: inset 0 2px 0 rgba(255,255,255,0.9); min-width:88px; border: 1px solid rgba(186,14,2,0.06) }
.itf-stat label{ display:block; font-size:0.82rem; color:#666 }
.itf-stat div{ font-weight:700; font-size:1.1rem }
.itf-stat div{ transition: transform 160ms ease; }
.itf-stat.update { transform: scale(1.04); }
.itf-game-controls{ display:flex; gap:8px; }
.play-btn{ padding:10px 14px; border-radius:10px; border:none; background:linear-gradient(180deg,#ba0202,#9e0b01); color:#fff; cursor:pointer; box-shadow: 0 10px 30px rgba(186,14,2,0.18); font-weight:700 }
.play-btn:disabled{ opacity:0.6; cursor: not-allowed }
.menu-btn{ padding:8px 12px; border-radius:12px; border:1px solid rgba(0,0,0,0.06); background:#fff; cursor:pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.itf-game-actions .menu-btn{ background: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.06); color:#222; font-weight:700 }
.itf-help-box{ background:#fff; padding:12px; border-radius:8px; border:1px solid rgba(0,0,0,0.04); font-size:0.92rem }
.itf-leaderboard{ margin-top: 12px; }
.itf-leaderboard h3{ margin:0 0 8px 0; font-size:1.05rem; color:#ba0202 }
.itf-leaderboard-list{ list-style: decimal inside; padding-left: 8px; margin:0 0 8px 0; max-height: 220px; overflow:auto }
.itf-leaderboard-list li{ padding:8px 12px; border-radius:10px; display:flex; justify-content:space-between; gap:8px; background: linear-gradient(180deg,#fff,#fbfbfb); border: 1px solid rgba(0,0,0,0.04); margin-bottom:8px; align-items:center }
.itf-leaderboard-list li .rank{ width:40px; height:40px; display:inline-grid; place-items:center; border-radius:6px; font-weight:700; color:#222; background:rgba(0,0,0,0.03); margin-right:8px }
.itf-leaderboard-list li .rank.gold{ background: linear-gradient(180deg,#ffd700,#ffc200); color:#5a3e00 }
.itf-leaderboard-list li .rank.silver{ background: linear-gradient(180deg,#e5e9ef,#d6ddeb); color:#1e2a33 }
.itf-leaderboard-list li .rank.bronze{ background: linear-gradient(180deg,#ffdfc6,#ffd6b1); color:#7a3b21 }
.itf-leaderboard-list li.you{ outline: 3px solid rgba(186,14,2,0.08); background: linear-gradient(180deg,#fffef6,#fff8f2) }
.itf-leaderboard-list li.you{ animation: highlightUser 900ms ease; }
@keyframes highlightUser{ 0%{ transform: translateY(-6px); opacity:0.85 } 70%{ transform: translateY(0); opacity:1 } 100%{ transform: translateY(0); opacity:1 } }
.itf-leaderboard-list li strong{ font-weight:700; color:#111 }
.itf-leaderboard-list li:nth-child(1){ background: linear-gradient(180deg,#fffbe6,#fff1cc); border-color: #ffd700; }
.itf-leaderboard-list li:nth-child(2){ background: linear-gradient(180deg,#f9f9ff,#f0f0ff); border-color: #c0c0ff; }
.itf-leaderboard-list li:nth-child(3){ background: linear-gradient(180deg,#fff3f4,#ffeef0); border-color: #ffb0b0; }
.itf-leaderboard-submit{ display:flex; gap:8px; align-items:center }
.itf-leaderboard-submit input{ flex:1; padding:8px 10px; border-radius:8px; border:1px solid rgba(0,0,0,0.06) }
.itf-leaderboard-submit button{ padding:8px 12px }
.itf-sound-control{ margin-top: 8px; color:#333; }
.itf-sound-control label{ display:inline-flex; gap:8px; align-items:center; font-size:0.95rem }
.itf-sound-control input{ width:18px; height:18px }
.itf-share-box{ margin-top:6px }
.itf-game-area{ flex:1; min-height:520px; background: linear-gradient(180deg,#fff8f8 0%, #fff 80%); border-radius:14px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; border: 1px solid rgba(0,0,0,0.03) }
.itf-game-area::before{ content:''; position:absolute; inset:0; background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px); background-size: 20px 20px; opacity:0.25; pointer-events:none }
.itf-game-canvas{ position:relative; width:100%; height:100%; }
.itf-pad-target:hover{ transform: scale(1.05); box-shadow: 0 16px 36px rgba(0,0,0,0.22); }
.itf-pad-target:active{ transform: scale(0.9) rotate(-6deg); }
.itf-game-canvas .itf-pad-target{ transition: transform 180ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease, box-shadow 180ms ease; }
.itf-pad-target{ position:absolute; display:block; border-radius:50%; border:4px solid rgba(255,255,255,0.7); box-shadow: 0 10px 34px rgba(0,0,0,0.18); background: radial-gradient(circle at 28% 28%, #fff 0%, #ffb9b9 25%, #ff5a5a 55%, #e72f2f 100%); transform-origin:center center; transition:transform .22s cubic-bezier(.2,.9,.2,1), opacity .22s ease, box-shadow .16s ease; outline: none; transform:scale(0); opacity:0;}
.itf-pad-target.pop{ transform:scale(1); opacity:1 }
.itf-float-score{ position:absolute; pointer-events:none; transform: translateY(0); padding:4px 8px; background: rgba(0,0,0,0.72); color:#fff; border-radius:8px; font-weight:700; font-size:0.95rem; opacity:0; transition: transform 700ms cubic-bezier(.2,.9,.2,1), opacity 700ms ease }
.itf-float-score.show{ opacity:1; transform: translateY(-36px) scale(1.05) }
.itf-pad-target::after{ content:''; display:block; position:absolute; inset:6px; border-radius:50%; border:6px solid rgba(255,255,255,0.14); box-shadow: inset 0 4px 14px rgba(255,255,255,0.05) }
.itf-pad-target:focus{ box-shadow:0 0 0 4px rgba(255,77,77,0.15), 0 6px 10px rgba(0,0,0,0.1); }
.itf-pad-target.hit{ transform:scale(.86) rotate(-8deg); opacity:0.7 }
.itf-pad-target.pop{ transform:scale(1); opacity:1 }
.itf-toast{ position:fixed; left:50%; transform: translateX(-50%); bottom:28px; background:#111;color:#fff;padding:10px 12px;border-radius:8px;opacity:0; transition:opacity 200ms ease; z-index:10000 }
.itf-toast.visible{ opacity:1 }

@media (max-width:960px){
  .itf-game-main{ flex-direction:column; }
  .itf-game-panel{ width:100%; }
  .itf-game-area{ min-height:320px }
}

/* Small accessibility helpers */
.itf-pad-target:after{ content:''; display:block; width:10px; height:10px; border-radius:50%; margin:auto; opacity:0 }

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success { background: linear-gradient(180deg,#27ae60,#1f8c45); }
.toast.info { background: linear-gradient(180deg,#2d9cdb,#1b7ec6); }
.toast.warn { background: linear-gradient(180deg,#f39c12,#e08800); }

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20000;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.cookie-banner .cookie-text { flex: 1 1 auto; color: #222; }
.cookie-banner .cookie-actions { display: flex; gap: 8px; align-items: center; }
.cookie-banner .cookie-category { display: flex; align-items: center; gap: 6px; }
.cookie-banner .cookie-btn { padding: 8px 12px; border-radius: 8px; border: 1px solid #ddd; cursor: pointer; background: #fff; }
.cookie-banner .cookie-btn.primary { background: #ba0e02; color: white; border: none; }
.cookie-settings { display: none; margin-top: 8px; gap: 8px; }
.cookie-settings.open { display: flex; }
.cookie-settings label { display: flex; gap: 8px; align-items: center; }

/* Full-page Taekwondo background with gentle fade-in */
.page-bg {
  position: fixed;
  inset: 0;
  background-image: url("../img/Taekwondo.png");
  background-size: cover;
  /* move the image up a bit so hero text sits over a less-busy area */
  background-position: center 30%;
  background-repeat: no-repeat;
  /* soften the background image a bit so foreground text reads better */
  filter: blur(2px) saturate(0.94) contrast(0.96);
  opacity: 0;
  transform: scale(1.04);
  animation: bgFadeIn 1.2s ease forwards;
  z-index: -1;
  pointer-events: none;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* very strong overlay at top, fades out lower */
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
@keyframes bgFadeIn {
  from { opacity: 0.3; transform: scale(1.04); }
  to { opacity: 0.88; transform: scale(1); }
}

/* Alternative background image for basis info page */
.page-bg-basis {
  background-image: url("../img/kick.jpg");
  background-position: center 40%;
}

/* Background image for quiz page (use attached karate kick image) */
.page-bg-quiz {
  /* use the specifically named karate kick image from the img folder */
  background-image: url("../img/karate kick.jpg");
  background-position: center 35%;
}

/* Background image for contact page */
.page-bg-contact {
  background-image: url("../img/kick.jpg");
  background-position: center 35%;
}

/* Background image for equipment page */
.page-bg-equipment {
  /* use the user's requested 'group' image file for the equipment page background */
  background-image: url("../img/group.jpg");
  background-position: center 35%;
  background-size: cover;
}

/* Background images for newly added pages */
.page-bg-faq {
  background-image: url("../img/Korea Taekwondo.jpg");
  background-position: center 35%;
  background-size: cover;
}
.page-bg-membership {
  background-image: url("../img/Training taekwondo.jpg");
  background-position: center 35%;
  background-size: cover;
}
.page-bg-events {
  background-image: url("../img/Incheon_AsianGames_Taekwondo_030_(15409139955).jpg");
  background-position: center 35%;
  background-size: cover;
}

/* Tidy equipment card visuals to match site style */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}
.equipment-card {
  background: rgba(255,255,255,0.82);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.equipment-card figure { margin: 0; overflow: hidden; border-radius: 10px; }
.equipment-card img.equipment { height: 160px; width: 100%; object-fit: cover; }
.equipment-card figcaption { text-align: left; font-weight: 800; margin-top: 10px; color: #222; }
.equipment-card p { color: #444; margin-top: 8px; }
.equipment-card:hover { transform: translateY(-6px); box-shadow: 0 18px 46px rgba(0,0,0,0.10); }

/* ================= CONTACT PAGE STYLING ================= */
.contact-container {
  max-width: 950px;
  margin: 50px auto;
  padding: 0 16px;
}

.contact-box {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  /* more transparent to reveal the background image */
  background: rgba(255,255,255,0.82);
  border-radius: 18px;
  padding: 48px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  border: none;
}

.contact-card h2 {
  color: #ba0e02;
  font-size: 2.2rem;
  margin-bottom: 12px;
  margin-top: 0;
  font-weight: bold;
}

.intro-text {
  color: #666;
  font-size: 1.08rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  margin-bottom: 44px;
}

.info-item {
  padding: 24px;
  background: linear-gradient(135deg, rgba(186,14,2,0.04), rgba(186,14,2,0.02));
  border-radius: 14px;
  border-left: 5px solid #ba0e02;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(186,14,2,0.12);
}

.info-item h3 {
  color: #ba0e02;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 14px;
  font-weight: 600;
}

.info-item p {
  color: #666;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ba0e02;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #8f0b01;
  gap: 14px;
}

.contact-link .icon {
  font-size: 1.4rem;
}

.contact-form-section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 3px solid #f2f2f2;
}

.contact-form-section h3 {
  color: #ba0e02;
  font-size: 1.6rem;
  margin-bottom: 28px;
  margin-top: 0;
  font-weight: bold;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #333;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 0.98rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: #ba0e02;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ba0e02;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(186,14,2,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  padding: 16px 36px;
  background-color: #ba0e02;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(186,14,2,0.35);
  margin-top: 12px;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background-color: #8f0b01;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(186,14,2,0.45);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* ================= Table Styling ================= */
.events-table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(255,255,255,0.95);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 20px 0;
}

.events-table thead {
  background-color: #ba0202;
  color: #ffffff;
  font-weight: 700;
}

.events-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #8f0b01;
}

.events-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.9rem;
  color: #333;
}

.events-table tbody tr:hover {
  background-color: rgba(186,14,2,0.04);
  transition: background-color 0.2s ease;
}

.events-table tbody tr:last-child td {
  border-bottom: none;
}

.perk-list {
  min-height: 220px;
  margin: 10px 0;
  padding-left: 20px;
  list-style-type: disc;
  color: #555;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.perk-list li {
  margin: 6px 0;
  color: #555;
  transition: color 0.2s;
}
.perk-faded {
  color: #bbb !important;
  opacity: 0.55;
  text-decoration: line-through;
}
.membership-grid {
  align-items: stretch;
}
.membership-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  border: 3px solid #ba0202;
  border-radius: 12px;
}
.membership-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ba0202;
  margin-top: auto;
  margin-bottom: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.price-original {
  color: #bbb;
  text-decoration: line-through;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 0.1px;
}
.membership-toggle-btn {
  display: block;
  margin: 0 auto 18px auto;
  padding: 8px 22px;
  font-size: 1rem;
  background: #ba0202;
  color: #fff;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(186,14,2,0.12);
  transition: background 0.2s;
}
.membership-toggle-btn:hover {
  background: #8f0b01;
}
.premium-pop {
  min-height: 450px;
  box-shadow: 0 0 0 6px #ffd700, 0 0 35px rgba(255,215,0,0.4), 0 20px 55px rgba(186,14,2,0.24);
  z-index: 2;
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #fffbe6 100%);
  transform: scale(1.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premium-pop:hover {
  transform: scale(1.09);
  box-shadow: 0 0 0 6px #ffd700, 0 0 45px rgba(255,215,0,0.5), 0 24px 65px rgba(186,14,2,0.28);
}
.featured-badge {
  position: absolute;
  top: 10px;
  right: -22px;
  left: auto;
  transform: rotate(20deg);
  background-color: #ba0202;
  color: #ffd700;
  padding: 3px 16px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(186,14,2,0.18);
  border: 2px solid #ffd700;
  z-index: 3;
  pointer-events: none;
}
.membership-switch-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 28px 0 36px 0;
}
.price-switch {
  position: relative;
  width: 56px;
  height: 30px;
  margin: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.price-switch input[type="checkbox"] {
  width: 0;
  height: 0;
  opacity: 0;
}
.price-switch-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #d5d5d5;
  border-radius: 15px;
  transition: background 0.35s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}
.price-switch input:checked + .price-switch-slider {
  background: #ba0202;
}
.price-switch-slider:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  display: block;
}
.price-switch input:checked + .price-switch-slider:before {
  transform: translateX(26px);
}
.switch-label {
  font-size: 0.93rem;
  font-weight: 600;
  color: #aaa;
  transition: color 0.3s ease, font-weight 0.3s ease;
  margin: 0;
  cursor: default;
  user-select: none;
  display: inline-block;
}
.switch-label.active {
  color: #ba0202;
  font-weight: 700;
}
.membership-discount {
  display: inline-block;
  background: linear-gradient(135deg, #ba0202 0%, #ff4444 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  margin-left: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(186, 14, 2, 0.2);
}
.price-with-discount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.terms-section {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 28px 32px;
  border-radius: 16px;
  margin: 32px auto 0 auto;
  max-width: 540px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.10);
}
.terms-section h3 {
  margin-bottom: 12px;
  color: #ba0202;
  font-size: 1.1rem;
  text-align: center;
}
.terms-section ul {
  list-style-position: inside;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin: 0 auto;
  max-width: 420px;
}
.terms-section li {
  margin-bottom: 8px;
  padding-left: 6px;
}

.checkout-btn {
  display: block;
  width: 100%;
  margin: 18px 0 0 0;
  padding: 12px 0;
  background: linear-gradient(90deg, #ba0202 60%, #ff4444 100%);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(186,14,2,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.checkout-btn:hover {
  background: linear-gradient(90deg, #ff4444 0%, #ba0202 100%);
  transform: scale(1.04);
}
/* Modal styling for checkout */
#checkout-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.18);
  overflow-y: auto;
  padding: 40px 0;
}
#checkout-modal[aria-hidden="false"] {
  display: block;
}
#checkout-modal .modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: transparent;
  z-index: 1;
}
#checkout-modal .modal-content {
  position: relative;
  background: rgba(255,255,255,0.99);
  border-radius: 22px;
  max-width: 650px;
  margin: 20px auto;
  padding: 36px 36px 28px 36px;
  box-shadow: 0 12px 48px 0 rgba(0,0,0,0.22), 0 1.5px 8px rgba(186,14,2,0.08);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1.5px solid #eee;
}
#checkout-modal h2 {
  text-align: center;
  color: #ba0202;
  margin-bottom: 10px;
  font-size: 1.4rem;
}
#checkout-modal label {
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.95rem;
}
#checkout-modal input[type="text"],
#checkout-modal input[type="number"],
#checkout-modal input[type="email"],
#checkout-modal input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  margin: 4px 0 12px 0;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fafafa;
  transition: border 0.2s, box-shadow 0.2s;
}
#checkout-modal input:focus {
  border-color: #ba0202;
  box-shadow: 0 0 0 2px rgba(186,14,2,0.08);
  outline: none;
}
.checkout-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.checkout-col {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pay-btn {
  background: linear-gradient(90deg, #ba0202 60%, #ff4444 100%);
  color: #fff;
  font-size: 1.13rem;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  padding: 12px 38px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(186,14,2,0.13);
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
  margin-top: 8px;
}
.pay-btn:hover {
  background: linear-gradient(90deg, #ff4444 0%, #ba0202 100%);
  transform: scale(1.05);
}
#checkout-modal .modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
#checkout-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ba0202;
  cursor: pointer;
  z-index: 3;
}
@media (max-width: 700px) {
  #checkout-modal {
    padding: 10px 0;
  }
  .checkout-grid {
    flex-direction: column;
    gap: 0;
  }
  #checkout-modal .modal-content {
    max-width: 98vw;
    margin: 10px auto;
    padding: 18px 6vw 18px 6vw;
  }
}

/* Custom Notification */
#notification {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
#notification.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.notification-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 0 1px rgba(186,14,2,0.1);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  border-left: 4px solid #22c55e;
  backdrop-filter: blur(10px);
}
.notification-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}
.notification-text {
  flex: 1;
}
.notification-text h3 {
  margin: 0 0 4px 0;
  color: #222;
  font-size: 1rem;
  font-weight: 700;
}
.notification-text p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}
.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s;
}
.notification-close:hover {
  color: #999;
}

/* Checkout Summary */
.checkout-summary {
  background: #f5f5f5;
  padding: 16px 18px;
  border-radius: 10px;
  margin: 16px 0;
  border: 1px solid #eee;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}
.summary-price {
  color: #ba0202;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Enhanced Pay Button */
.pay-btn {
  background: linear-gradient(90deg, #ba0202 0%, #ff4444 100%);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 14px 0;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(186,14,2,0.18);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.3px;
}
.pay-btn:hover {
  background: linear-gradient(90deg, #ff4444 0%, #ba0202 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(186,14,2,0.25);
}
.pay-btn:active {
  transform: translateY(0);
}

@media (max-width: 700px) {
  #notification {
    top: 20px;
    right: 20px;
    left: 20px;
  }
  .notification-content {
    max-width: 100%;
  }
}

/* FAQ styles (accordion + search) */
.faq-section .faq-hero {
  text-align: center;
  margin-bottom: 18px;
}
.faq-section .faq-hero h2 {
  font-size: 1.6rem;
  margin: 0 0 6px 0;
  color: #222;
}
.faq-section .muted { color: #666; margin: 0 0 12px 0; }
.faq-container {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(20,20,20,0.06);
}
.faq-search-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.faq-search {
  width: 100%;
  max-width: 720px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #fbfbfb;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.02);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.faq-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(250,250,250,1), rgba(245,245,245,1));
  border: none;
  cursor: pointer;
}
.faq-toggle { font-weight: 900; color: #ba0202; margin-left: 12px; }
.faq-answer {
  padding: 12px 16px 18px 16px;
  color: #444;
  line-height: 1.6;
  border-top: 1px solid #f5f5f5;
}
.faq-answer p { margin: 0; }

@media (max-width: 640px) {
  .faq-search { max-width: 100%; padding: 10px; }
  .faq-question { padding: 10px 12px; }
  .faq-answer { padding: 10px 12px 14px 12px; }
}