/**
 * GeMEMIS — Geita Mineral Exhibition Management Information System
 * Golden design system: Obsidian (#070506), Amber Gold (#FFBF00), White (#FFFFFF).
 * The gold reads as the mineral the exhibition is about; the emblem is the
 * Court of Arms of the United Republic of Tanzania.
 */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Noto+Sans+Display:wght@500;600;700;800&display=swap");

:root {
  --gem-brand: #FFBF00;
  --gem-brand-bright: #FCD116;
  --gem-brand-light: #FFE9A8;
  --gem-brand-dark: #B8860B;
  --gem-brand-glow: rgba(255, 191, 0, 0.35);
  --gem-bg: #070506;
  --gem-bg-card: #0c0a0e;
  --gem-surface: #141117;
  --gem-surface-2: #1c1822;
  --gem-border-subtle: rgba(255, 191, 0, 0.18);
  --gem-text-primary: #FFFFFF;
  --gem-text-secondary: rgba(255, 255, 255, 0.75);
  --gem-text-muted: rgba(255, 255, 255, 0.50);
}

/* =========================================================
   GLOBAL RESET & ATMOSPHERE
   ========================================================= */
/* Scoped to the GeMEMIS-branded pages only, so public pages still on the
   legacy Medipro theme keep their own light layout. */
body.gememis-theme,
body.login-container,
body.login-page-body,
body.register-page-body,
body.recovery-page-body,
body.challenge-page-body,
body.reset-page-body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif !important;
  color: var(--gem-text-primary) !important;
  background-color: var(--gem-bg) !important;
  background-image: radial-gradient(1200px 480px at 50% -8%, rgba(255, 191, 0, 0.22), transparent 60%) !important;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Kicker font */
.font-tourney,
.font-kicker {
  font-family: "Noto Sans Display", "Montserrat", sans-serif;
  letter-spacing: 0.15em;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   BRAND CARD (The Uiverse "bg-brand-box" technique)
   ========================================================= */
.brand-card,
.container-card.bg-brand-box {
  position: relative;
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(71deg, #080509, #1a171c, #080509) padding-box,
    linear-gradient(71deg, #110e0e, #FFBF00, #110e0e) border-box !important;
  border-radius: 26px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(255, 191, 0, 0.10);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card-hover:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(255, 191, 0, 0.22);
}

/* =========================================================
   GOLD PILL (Hero countdowns, stats, badges)
   ========================================================= */
.brand-pill {
  border: 1.5px solid transparent !important;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 50% -5%, rgba(255, 191, 0, 0.2), transparent 58%) padding-box,
    linear-gradient(71deg, #080509, #1a171c, #080509) padding-box,
    linear-gradient(71deg, #110e0e, #FFBF00, #110e0e) border-box !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 8px 22px -12px rgba(255, 191, 0, 0.45);
  color: #fff;
}

.brand-pill .tabular,
.brand-pill .brand-num {
  color: #FFBF00;
  text-shadow: 0 0 18px rgba(255, 191, 0, 0.4);
}

/* =========================================================
   GOLD CHIP (Small tags, row status)
   ========================================================= */
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background:
    linear-gradient(71deg, #0c0a0d, #161318) padding-box,
    linear-gradient(71deg, #110e0e, #FFBF00, #110e0e) border-box;
  color: #FFBF00;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-text {
  color: #FFBF00 !important;
}

/* =========================================================
   SHIMMER TEXT (Signature SabaSaba Slogan)
   ========================================================= */
.shimmer-text {
  display: inline-block;
  background-image:
    linear-gradient(
      100deg,
      transparent 36%,
      #fff7dd 47%,
      #ffffff 50%,
      #ffe9a8 53%,
      transparent 64%
    ),
    linear-gradient(#ffbf00, #ffbf00);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 150% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: shimmer-text 6.5s ease-in-out infinite;
  font-weight: 600;
}

@keyframes shimmer-text {
  0% {
    background-position: 150% 0, 0 0;
  }
  55%,
  100% {
    background-position: -50% 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shimmer-text {
    animation: none;
  }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-brand-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: #FFBF00 !important;
  font-weight: 600;
  border: none;
  padding: 8px 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.btn-brand-ghost:hover {
  color: #FFE9A8 !important;
  text-decoration: underline;
}

/* =========================================================
   ALERTS (Gold luxury alert banners)
   ========================================================= */
.alert-brand-danger {
  background: rgba(220, 53, 69, 0.15) !important;
  border: 1px solid rgba(220, 53, 69, 0.45) !important;
  color: #ff8b94 !important;
  border-radius: 14px;
  padding: 12px 18px;
}
.alert-brand-success {
  background: rgba(25, 135, 84, 0.18) !important;
  border: 1px solid rgba(25, 135, 84, 0.5) !important;
  color: #7ce4a5 !important;
  border-radius: 14px;
  padding: 12px 18px;
}
.alert-brand-info {
  background: rgba(255, 191, 0, 0.12) !important;
  border: 1px solid rgba(255, 191, 0, 0.4) !important;
  color: #FFE9A8 !important;
  border-radius: 14px;
  padding: 12px 18px;
}

/* =========================================================
   PUBLIC BREADCRUMBS & SECTIONS
   ========================================================= */
.breadcrumbs.overlay,
.breadcrumbs {
  position: relative;
  background-color: #0c090e !important;
  padding: 50px 0 35px !important;
  border-bottom: 1.5px solid rgba(255, 191, 0, 0.22) !important;
  margin-bottom: 35px !important;
}

.breadcrumbs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 5, 6, 0.85) 0%, rgba(7, 5, 6, 0.95) 100%);
  z-index: 1;
}

.breadcrumbs .container {
  position: relative;
  z-index: 2;
}

.breadcrumbs h2 {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 2rem !important;
  letter-spacing: 0.02em;
}

.breadcrumbs .bread-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 13.5px;
}

.breadcrumbs .bread-list a {
  color: #FFBF00 !important;
  text-decoration: none;
}

.breadcrumbs .bread-list .active {
  color: rgba(255, 255, 255, 0.6) !important;
}

.breadcrumbs b,
.breadcrumbs .text-black {
  color: #FFBF00 !important;
}

/* =========================================================
   PUBLIC CARDS & NEWS TILES (E.g. Programs, Categories, Exhibitors)
   ========================================================= */
.single-news {
  background:
    linear-gradient(71deg, #080509, #1a171c, #080509) padding-box,
    linear-gradient(71deg, #110e0e, #FFBF00, #110e0e) border-box !important;
  border: 1.5px solid transparent !important;
  border-radius: 22px !important;
  padding: 18px !important;
  color: #ffffff !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 191, 0, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  margin-bottom: 24px;
  overflow: hidden;
}

.single-news:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 191, 0, 0.2) !important;
}

.single-news .news-head img {
  border-radius: 14px;
  max-height: 220px;
  object-fit: cover;
  margin-bottom: 14px;
}

.single-news .news-content h2,
.single-news .news-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.single-news .news-content p {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13.5px;
  line-height: 1.6;
}

.single-news a {
  color: #FFBF00;
  font-weight: 600;
}

.single-news hr {
  border-color: rgba(255, 191, 0, 0.2) !important;
}

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.section-title p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.6;
}

.choose-left h3 {
  color: #FFBF00;
  font-weight: 700;
  margin-bottom: 14px;
}

.choose-left p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.choose-left a {
  color: #FFBF00;
  font-weight: 600;
}

/* =========================================================
   TABLES
   ========================================================= */
.table,
table {
  color: #ffffff !important;
  border-color: rgba(255, 191, 0, 0.2) !important;
}

.table th,
thead th {
  background: rgba(255, 191, 0, 0.1) !important;
  color: #FFBF00 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-bottom: 1.5px solid rgba(255, 191, 0, 0.3) !important;
}

.table td,
tbody td {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.table-striped tbody tr:nth-of-type(odd) td {
  background: rgba(255, 255, 255, 0.02) !important;
}

.table tbody tr:hover td {
  background: rgba(255, 191, 0, 0.06) !important;
}
