:root {
  --robo-primary: #0d47a1;
  --robo-primary-dark: #082f68;
  --robo-accent: #f2a900;
  --robo-dark: #16243c;
  --robo-light: #f5f7fb;
  --robo-text: #2b3441;
  --robo-muted: #6b7684;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--robo-text);
  background: #fff;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Navbar ---------- */
#mainNav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  min-height: 62px;
}

#mainNav .navbar-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--robo-primary);
  font-size: 1.25rem;
}

#mainNav .brand-year {
  color: var(--robo-accent);
}

#mainNav .nav-link {
  color: var(--robo-text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.6rem 0.75rem;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--robo-primary);
}

/* ---------- Hero ---------- */
.masthead {
  padding-top: 200px;
  padding-bottom: 160px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 47, 104, 0.92) 0%, rgba(13, 71, 161, 0.86) 50%, rgba(22, 36, 60, 0.92) 100%),
    url("../img/hero-bg.jpg") no-repeat center center;
  background-size: cover;
  position: relative;
}

.hero-logo {
  margin-bottom: 0;
}

.hero-logo img {
  max-width: 100%;
  height: auto;
  max-height: 340px;
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-tagline {
  text-align: left;
}

.hero-badges {
  margin-bottom: 28px;
}

.badge-conf {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50rem;
}

.badge-conf strong {
  color: var(--robo-accent);
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 850px;
  margin: 0 0 1.2rem 0;
  color: #eaf0fb;
}

.hero-tagline {
  font-size: 1.08rem;
  color: #cfd9ec;
  max-width: 760px;
  margin: 0 0 2.2rem 0;
}

.hero-actions .btn {
  margin: 0.25rem 0.35rem;
}

.hero-actions .btn-lg {
  padding: 0.8rem 1.5rem;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section-section {
  padding: 100px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--robo-primary);
  display: inline-block;
  position: relative;
  padding-bottom: 0.6rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  height: 3px;
  border-radius: 3px;
  background: var(--robo-accent);
}

.subsection-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--robo-primary-dark);
  margin-top: 2.4rem;
  margin-bottom: 1.2rem;
}

.section-section p {
  line-height: 1.8;
}

.text-muted {
  color: var(--robo-muted) !important;
}

/* ---------- News ---------- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #e9edf4;
}

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

.news-date {
  flex-shrink: 0;
  min-width: 150px;
  font-weight: 700;
  color: var(--robo-muted);
  font-size: 0.9rem;
  padding-top: 2px;
}

.news-body {
  line-height: 1.7;
}

.badge-complete {
  background: #e6f4ea;
  color: #1b7f3b;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- Feature / cards ---------- */
.feature-card,
.track-card,
.baseline-card,
.metric-card {
  border: 1px solid #e9edf4;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.feature-card:hover,
.track-card:hover,
.baseline-card:hover,
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 71, 161, 0.12);
}

.feature-icon,
.metric-icon,
.baseline-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--robo-light);
  color: var(--robo-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.baseline-icon {
  background: #fff3e0;
  color: var(--robo-accent);
}

.track-card .track-badge {
  background: var(--robo-primary);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50rem;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.track-card .track-sub {
  color: var(--robo-accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.track-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.track-list li {
  margin-bottom: 8px;
  color: var(--robo-text);
}

.track-list .fa-check-circle {
  color: #1b7f3b;
  margin-right: 8px;
}

.track-list .fa-clock,
.track-list .fa-circle-exclamation,
.track-list .fa-shield-halved {
  color: var(--robo-accent);
  margin-right: 8px;
}

.track-metric {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-metric .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--robo-muted);
}

.track-metric .value {
  background: var(--robo-light);
  color: var(--robo-primary);
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 50rem;
}

.card-sub {
  color: var(--robo-muted);
}

/* ---------- Data ---------- */
.figure-img.img-robot {
  max-height: 360px;
}

.fig-label {
  font-weight: 700;
  color: var(--robo-primary);
}

.split-box {
  background: var(--robo-light);
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  padding: 20px 8px;
}

.split-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--robo-primary);
}

.split-num small {
  font-size: 1rem;
  font-weight: 600;
}

.split-label {
  color: var(--robo-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.cam-box {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 10px;
  padding: 16px;
  height: 100%;
}

.cam-name {
  display: block;
  font-weight: 700;
  color: var(--robo-primary);
  margin-bottom: 4px;
}

.cam-detail {
  color: var(--robo-muted);
  font-size: 0.88rem;
}

/* ---------- Leaderboard / card-info ---------- */
.card-info {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 12px;
  padding: 24px;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dfe6f0;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 30px 40px 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding: 0 0 40px 30px;
  text-align: left;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--robo-primary);
  top: 4px;
  right: -8px;
}

.timeline-item:nth-child(even)::after {
  left: -8px;
  right: auto;
}

.timeline-item.completed::after {
  background: var(--robo-accent);
  border-color: var(--robo-accent);
}

.timeline-date {
  font-weight: 700;
  color: var(--robo-primary);
  font-size: 0.95rem;
}

.timeline-title {
  color: var(--robo-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.badge-complete {
  vertical-align: middle;
}

/* ---------- Custom / lists ---------- */
.custom-list li {
  margin-bottom: 10px;
}

/* ---------- Awards ---------- */
.award-box {
  border-radius: 14px;
  padding: 26px;
  color: #fff;
}

.award-gold { background: linear-gradient(135deg, #f2b204, #d98b00); }
.award-silver { background: linear-gradient(135deg, #aab4c0, #8894a3); }
.award-bronze { background: linear-gradient(135deg, #c98455, #a5623a); }

.award-title {
  font-weight: 700;
  font-size: 1.2rem;
}

.award-amount {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 6px;
}

/* ---------- Sponsors ---------- */
.sponsor-card {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 71, 161, 0.1);
}

.sponsor-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--robo-light);
  color: var(--robo-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 14px;
}

.sponsor-name a {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--robo-primary-dark);
  text-decoration: none;
}

.sponsor-name a:hover {
  color: var(--robo-primary);
  text-decoration: underline;
}

/* ---------- Organizers ---------- */
.org-card {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 71, 161, 0.1);
}

.org-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--robo-light);
  color: var(--robo-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
}

.org-name {
  font-weight: 700;
  color: var(--robo-primary-dark);
}

.org-name a {
  color: inherit;
  text-decoration: none;
}

.org-name a:hover {
  color: var(--robo-primary);
  text-decoration: underline;
}

.org-affil {
  color: var(--robo-muted);
  font-size: 0.83rem;
  margin-top: 3px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  background: var(--robo-dark);
  color: #cfd9ec;
}

.footer a {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.15rem;
  }
  .hero-logo img {
    max-height: 260px;
  }
}

@media (max-width: 767px) {
  .section-section {
    padding: 70px 0;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-content,
  .hero-content .hero-title,
  .hero-content .hero-subtitle,
  .hero-content .hero-tagline {
    text-align: center;
  }
  .hero-subtitle,
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-logo-wrap {
    margin-top: 30px;
  }
  .hero-logo img {
    max-height: 200px;
  }
  .masthead {
    padding-top: 150px;
    padding-bottom: 120px;
  }
  .news-item {
    flex-direction: column;
    gap: 6px;
  }
  .news-date {
    min-width: 0;
  }
  .timeline::before {
    left: 10px;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 30px 36px;
  }
  .timeline-item::after,
  .timeline-item:nth-child(even)::after {
    left: 4px;
    right: auto;
  }
}
