:root {
  --brand-primary: #6366f1;
  --brand-primary-dark: #4f46e5;
  --brand-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --brand-gradient-reverse: linear-gradient(135deg, #4f46e5, #4338ca);
  --success-gradient: linear-gradient(135deg, #059669, #10b981);
  --dark-bg-start: #0f172a;
  --dark-bg-end: #1e293b;
  --glass-bg: rgba(255, 255, 255, 0.75);
}

/* @font-face { */
/*   font-family: 'Inter'; */
/*   src: url('https://googleapis.com'); */
/*   font-weight: 100 900; */
/*   font-style: normal; */
/*   font-display: swap; */
/* } */

/* body { */
/*   font-family: 'Inter', sans-serif; */
/* } */


body {
  min-height: 100vh;
  padding-top: 56px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  /* font-feature-settings: "cv02", "cv03", "cv04", "cv11"; */
}

.background {
  background: linear-gradient(160deg, var(--dark-bg-start) 0%, var(--dark-bg-end) 50%, var(--dark-bg-start) 100%);
  background-attachment: fixed;
}

.u-non-blurred {
  position: relative;
  z-index: 1;
}

/*
 * ── Navbar ──────────────────────────────────────────
 */
.navbar {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: var(--glass-bg) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

/*
 * ── Central Card ────────────────────────────────────
 */
.central-card {
  min-height: calc(100vh - 56px);
  background: white;
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  min-width: 0;
  overflow-x: clip;
}

@media (min-width: 576px) {
  .central-card {
    min-height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .challenge-card-bg {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  }
}

@media (max-width: 575.98px) {
  .central-card {
    padding: 1.25rem;
  }
}

/*
 * ── Typography ──────────────────────────────────────
 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/*
 * ── Buttons ─────────────────────────────────────────
 */
.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand-gradient);
  border: none;
}

.btn-primary:hover {
  background: var(--brand-gradient-reverse);
}

.btn-primary:active {
  background: var(--brand-gradient-reverse) !important;
}

.btn-success {
  background: var(--success-gradient);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #047857, #059669);
}

.btn-outline-danger {
  border-width: 2px;
}

/*
 * ── Cards ───────────────────────────────────────────
 */
.card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/*
 * ── Tables ──────────────────────────────────────────
 */
.table {
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

.table thead th {
  border-bottom: 2px solid var(--brand-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #64748b;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.table-hover tbody tr {
  transition: background-color 0.15s ease;
}

.table-dark {
  --bs-table-bg: #1e293b;
}

/*
 * ── Difficulty Labels ───────────────────────────────
 */
.easy {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: white !important;
  border: none !important;
}

.medium {
  background: linear-gradient(135deg, #d97706, #f59e0b) !important;
  color: white !important;
  border: none !important;
}

.hard {
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  color: white !important;
  border: none !important;
}

/*
 * ── Query / Target labels ───────────────────────────
 */
.query-obj {
  color: var(--brand-primary);
  font-weight: 600;
}

.target-obj {
  color: #dc2626;
  font-weight: 600;
}

/*
 * ── Hero Section ────────────────────────────────────
 */
.hero-section {
  padding: 1.5rem 0 1rem;
}

.hero-title {
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 400;
}

/*
 * ── News Section ────────────────────────────────────
 */
.news-section {
  background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.3) !important;
}

.news-section h2 {
  color: white;
  margin-top: 0;
}

.news-section h2::after {
  background: rgba(255, 255, 255, 0.7);
}

.news-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.news-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-right: 0.5rem;
}

/*
 * ── Section Dividers ────────────────────────────────
 */
.section-divider {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.section-divider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: white;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/*
 * ── Social Login ────────────────────────────────────
 */
.social-login-container {
    text-align: center;
    margin: 20px 0;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: all 0.2s ease;
}

.btn-google {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-google:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.btn-github {
  background-color: #24292e;
  color: #ffffff;
  border: none;
}

.btn-github:hover {
  background-color: #1a1e21;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-facebook {
  background-color: #1877f2;
  color: #ffffff;
  border: none;
}

.btn-facebook:hover {
  background-color: #135cb8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/*
 * ── Badges ──────────────────────────────────────────
 */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/*
 * ── Info Footer ─────────────────────────────────────
 */
.info-footer {
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border-left: 4px solid var(--brand-primary);
  margin-top: 1.5rem;
}

/*
 * ── Misc ────────────────────────────────────────────
 */
hr {
  opacity: 0.15;
  margin: 2rem 0;
}

pre, code {
  font-size: 0.875rem;
}

pre {
  overflow-x: auto;
  max-width: 100%;
}

/*
 * ── Site Footer ─────────────────────────────────────
 */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.site-footer h6 {
  color: #e2e8f0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.footer-desc {
  color: #64748b;
  margin-bottom: 0;
}

.footer-logos {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}

.footer-logo {
  height: 60px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.8rem;
  color: #475569;
}

.footer-bottom p {
  margin-bottom: 0;
}

/*
 * ── Cookie Consent Banner ─────────────────────────────
 */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-consent-banner--visible {
  transform: translateY(0);
}

.cookie-consent-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  flex: 1 1 300px;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-consent-actions .btn-outline-secondary {
  color: #cbd5e1;
  border-color: #475569;
}

.cookie-consent-actions .btn-outline-secondary:hover {
  color: #fff;
  background: #334155;
  border-color: #64748b;
}

@media (max-width: 575.98px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: center;
  }
}

/*
 * ── Organizers ──────────────────────────────────────
 */
.organizer-card {
  text-align: center;
}

.organizer-card a {
  text-decoration: none;
  color: var(--bs-body-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.organizer-card a:hover {
  color: var(--brand-primary);
}

.organizer-card img {
  transition: transform 0.3s ease;
}

.organizer-card img:hover {
  transform: scale(1.05);
}

.organizer-logo {
  max-height: 140px;
  width: auto;
}

/*
 * ── Table Responsive ────────────────────────────────
 */
.table-responsive {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/*
 * ── Data Page Components ───────────────────────────
 */
.data-resource-card {
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.data-resource-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.data-resource-card p {
  margin-bottom: 0.85rem;
}

.data-section-band {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.6rem;
  margin-top: 1.8rem;
}

.tutorial-step {
  border-left: 3px solid #e2e8f0;
  padding-left: 1rem;
  margin-bottom: 1.15rem;
}

.tutorial-step h3 {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}

.tutorial-step p {
  margin-bottom: 0.55rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.55rem;
  flex: 0 0 auto;
}

.sample-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  height: 100%;
}

.sample-panel img {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
}

.sample-facts {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.sample-fact {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
}

.sample-fact-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sample-fact-value {
  color: var(--bs-body-color);
  font-size: 0.94rem;
}

.metadata-code {
  max-height: 650px;
  font-size: 0.82rem;
  line-height: 1.8;
}

/*
 * ── Background filter (reserved) ────────────────────
 */
/* .background-filter::after {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  content: "";
  display: block;
  position: absolute;
  width: 100%; height: 100%;
  top: 0;
} */

/* .background-filter {
  position: relative;
} */



/*
 * ── Timeline Stepper ─────────────────────────────────
 */
.timeline-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 1.5rem 0 0.5rem;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  z-index: 0;
}

.timeline-stepper .step-connector-fill {
  position: absolute;
  top: 2rem;
  left: 1.5rem;
  height: 4px;
  background: var(--brand-gradient);
  border-radius: 2px;
  z-index: 1;
  transition: width 0.5s ease;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 3px solid #cbd5e1;
  background: #fff;
  color: #94a3b8;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-circle.past {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}

.step-circle.current {
  border-color: var(--brand-primary);
  background: #fff;
  color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.step-circle.future {
  background: #fff;
  border-color: #cbd5e1;
  color: #94a3b8;
}

.step-label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
  max-width: 110px;
}

.step-label small {
  display: block;
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.step-label .past-label {
  color: var(--brand-primary);
}

.step-label .current-label {
  color: var(--brand-primary);
  font-weight: 700;
}

/*
 * ── Overall Progress Bar ─────────────────────────────
 */
.timeline-progress-wrapper {
  margin-bottom: 0.75rem;
}

.timeline-progress-wrapper .progress {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
}

.timeline-progress-wrapper .progress-bar {
  background: var(--brand-gradient);
  border-radius: 3px;
}

@media (max-width: 575.98px) {
  .timeline-stepper {
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
  }

  .timeline-stepper::before {
    display: none;
  }

  .timeline-stepper .step-connector-fill {
    display: none;
  }

  .step-item {
    flex-direction: row;
    gap: 0.75rem;
    text-align: left;
  }

  .step-label {
    max-width: none;
    margin-top: 0;
  }
}

.form-label {
  font-weight: bold;
}
