:root {
  --bg: #ffffff;
  --text: #0b2340;
  --accent: #d62828;
  --muted: #55677a;
  --card: #f4f7fb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

/* === HERO === */
.hero {
  position: relative;
  width: 100%;
  height: 400px;
  background: url("https://sport.insure/upload/iblock/c32/c320ad32a37a60e9e90c1782c94cb2c2.jpg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px 40px;
  border-radius: 10px;
}

.hero-overlay h1 {
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  text-align: center;
}

/* === POPUP === */
.popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.popup-content {
  background: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

/* === FOOTER === */
footer {
  background: #0b2340;
  color: #fff;
  text-align: center;
  padding: 25px 0;
  margin-top: 50px;
}

/* === DARK MODE === */
body.dark-mode {
  --bg: #0b2340;
  --text: #ffffff;
  --card: #1e2d48;
}

/* === MEDAL COUNTERS === */
.counter {
  color: #d62828;
  font-weight: 700;
  font-size: 2.2rem;
  transition: all 0.3s ease;
}
.counter:hover {
  transform: scale(1.1);
  color: #a51c1c;
}

/* === FAQ IMPROVED DESIGN === */
.faq-item {
  background: var(--card);
  border-left: 6px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.faq-item .question {
  font-weight: 700;
  color: #0b2340;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.3s ease;
}

.faq-item .question:hover {
  color: var(--accent);
}

.faq-item .answer {
  margin-top: 10px;
  color: #333;
  display: none;
  line-height: 1.5;
}

.faq-item .answer.show {
  display: block;
}

.faq-item .question::after {
  content: "+";
  font-weight: bold;
  color: var(--accent);
  font-size: 20px;
  margin-left: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.open .question::after {
  content: "–";
  transform: rotate(180deg);
  color: #000;
}

/* === SCROLL BAR === */
#scrollBar {
  position: fixed;
  top: 0; left: 0;
  height: 5px;
  background-color: var(--accent);
  width: 0%;
  z-index: 9999;
  transition: width 0.25s ease;
}

/* === LAZY IMAGES === */
.lazy {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
.lazy[src] {
  opacity: 1;
}
/* === GALLERY IMAGE UNIFICATION === */
.row.g-3 img {
  width: 100%;
  height: 250px;           
  object-fit: cover;      
  border-radius: 12px;     
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.row.g-3 img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
/* ===== AUTOCOMPLETE ===== */
#suggestions {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 480px;
  margin-top: 4px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#suggestions li {
  list-style: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #0b2340;
}
#suggestions li:hover {
  background: #f8d7da;
}

/* ===== SEARCH HIGHLIGHT ===== */
mark {
  background: #ffed66;
  padding: 0 3px;
  border-radius: 2px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  font-weight: 500;
}

/* ===== SPINNER BUTTON ===== */
button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* ===== FAQ QUESTIONS (for highlighting) ===== */
.faq-item .question mark {
  background: #ffd6d6;
}
