/* ARSO + UNBS theme colours */
:root {
  --primary: #1a7c3d;
  --primary-dark: #0d6b2e;
  --primary-light: #2d9b52;
  --unbs-blue: #a8d4e8;
  --unbs-blue-light: #d4edf8;
  --dark: #1a1a1a;
  --text: #374151;
  --light: #f0f7f2;
  --primary-rgb: 26, 124, 61;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* UNBS branding - light blue tint for sections */
.bg-unbs-light {
  background-color: var(--unbs-blue-light) !important;
}

/* Global theme: buttons, cards, tables across all pages */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.badge.bg-primary { background-color: var(--primary) !important; }

/* Participant pages: themed background */
body.participant-page {
  background: linear-gradient(to bottom, var(--unbs-blue-light) 0%, rgba(212, 237, 218, 0.4) 100%);
  min-height: 100vh;
}

/* Cards and tables with theme accents */
.card {
  border-color: rgba(var(--primary-rgb), 0.15);
}
.card.border-0 { border: none; }
.table thead.table-light {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(168, 212, 232, 0.25) 100%) !important;
  color: var(--dark);
}
.list-group-item {
  border-color: rgba(var(--primary-rgb), 0.1);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
}

.navbar-logo {
  height: 40px;
  width: auto;
  display: block;
}

.site-header .nav-link {
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 1rem !important;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  background-color: var(--unbs-blue-light);
  background-image: linear-gradient(to right, rgba(212, 237, 218, 0.85) 0%, rgba(232, 245, 236, 0.9) 30%, var(--unbs-blue-light) 55%, rgba(168, 212, 232, 0.6) 100%);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: url(../images/hero.png) center right / cover no-repeat;
  filter: blur(14px);
  z-index: -1;
}

.min-vh-80 {
  min-height: 80vh;
}

@media (min-width: 992px) {
  .hero .row.min-vh-80 {
    align-items: stretch;
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-event-dates {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* Countdown */
.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  border: 2px solid rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  max-width: fit-content;
}

.countdown-item {
  text-align: center;
  min-width: 4.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.countdown-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.countdown-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-top: 0.35rem;
}

@media (min-width: 480px) {
  .countdown {
    padding: 1.5rem 1.75rem;
    gap: 1rem 1.25rem;
  }

  .countdown-value {
    font-size: 2.5rem;
  }

  .countdown-item {
    min-width: 5rem;
    padding: 0.6rem 0.85rem;
  }
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.hero-buttons .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
}

.hero-buttons .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Hero image: cover the right section */
.hero-image-col {
  display: flex;
  align-items: stretch;
}

.hero-image-wrap {
  width: 100%;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(168, 212, 232, 0.4);
  background: var(--unbs-blue-light);
}

@media (min-width: 992px) {
  .hero-image-col {
    min-height: calc(80vh - 80px);
  }

  .hero-image-wrap {
    min-height: 0;
    height: 100%;
    min-height: calc(80vh - 80px);
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 992px) {
  .hero-image {
    min-height: calc(80vh - 80px);
    height: 100%;
  }
}

/* Sections */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--text);
  font-size: 1.1rem;
}

/* Features */
.features {
  background: #fff;
}

.feature-card {
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5efe8;
  height: 100%;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  font-size: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* About */
.about-image {
  width: 100%;
  height: 360px;
  max-width: 480px;
  background: linear-gradient(135deg, #e8f5ec 0%, #d4edda 100%);
  border-radius: 20px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-lead {
  opacity: 0.95;
  font-size: 1.1rem;
}

.cta .btn-light {
  font-weight: 600;
  padding: 0.65rem 1.75rem;
}

.cta .btn-light:hover {
  background: #fff;
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #a0aec0;
}

.site-footer a {
  color: #a0aec0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-newsletter .form-control {
  border-radius: 8px 0 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .btn {
  border-radius: 0 8px 8px 0;
  background: var(--primary);
  border-color: var(--primary);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-image-col {
    margin-bottom: 1.5rem;
  }
}
